Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
2
3         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
4         definitions are requested.
5
6 2000-09-13  Andreas Jaeger  <aj@suse.de>
7
8         * shlib-versions: libBrokenLocale needs minimal version for ia64,
9         sparc64 and sh to synch with libc.
10
11 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
12
13         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
14         (distribute): Add iso-2022-cn-ext.c.
15         Add definitions to compile the new module.
16         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
17         * iconvdata/iso-2022-cn-ext.c: New file.
18         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
19         ucs4_from_isoir165.  Increment input pointer if successful.
20
21         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
22
23         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
24
25 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
26
27         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
28         __syscall_getdents64 wrapper.
29
30         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
31
32 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
33
34         * iconvdata/gb18030.c: Many many changes.  Make consistent with
35         charmap and with itself.
36         * iconvdata/tst-tables.sh: Test GB18030.
37
38 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
39
40         * iconv/skeleton.c: Fix last patch, add missing parameter to
41         unaligned function call.
42
43 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
44
45         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
46         of decimal ellipsis.
47
48 2000-09-11  Bruno Haible <haible@clisp.cons.org>
49
50         * locale/programs/ld-collate.c (collate_read): Always initialize
51         error_section.next.
52
53 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
54
55         * locale/programs/ld-collate.c (collate_finish): Upper bound for
56         ruleidx is 128, not 256.
57
58 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
59
60         * locale/programs/ld-collate.c (collate_read): Correct check for
61         already inserted entries.
62
63 2000-09-10  Bruno Haible <haible@clisp.cons.org>
64
65         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
66         second try as well.
67
68 2000-09-10  Bruno Haible <haible@clisp.cons.org>
69
70         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
71         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
72
73 2000-09-10  Bruno Haible <haible@clisp.cons.org>
74
75         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
76         SAVE_RESET_STATE.
77
78 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
79
80         * iconvdata/utf-7.c: New file.
81         * iconvdata/gconv-modules (UTF-7): New module entries.
82         * iconvdata/Makefile (modules): Add UTF-7.
83         (distribute): Add utf-7.c.
84         * iconvdata/testdata/UTF-7: New file.
85         * iconvdata/testdata/UTF-7..UTF8: New file.
86         * iconvdata/TESTS (UTF-7): New entry.
87         * iconvdata/run-iconv-test.sh: Fix confusing output.
88
89 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
90
91         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
92
93 2000-09-10  David S. Miller  <davem@redhat.com>
94
95         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
96         frame pointer offset for non-fast path.
97
98 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
99
100         * locale/programs/3level.h (*_init): Initialize level1, level2,
101         and level3 as well.
102         (*_add): Remove a few unnecessary conditionals.
103
104 2000-09-05  Wolfram Gloger  <wg@malloc.de>
105
106         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
107         ensure usability of mutex as an `in use' flag.
108
109 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
110
111         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
112
113         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
114         ugly GMON_WEAK_START hack.
115         Patch by Philip Blundell <philb@gnu.org>.
116
117         * sysdeps/i386/i486/bits/string.h: Pretty printing.
118
119 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
120
121         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
122         and PPC_ICBI asm for broken compilers.
123         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
124
125 2000-09-09  Andreas Jaeger  <aj@suse.de>
126
127         * manual/message.texi (Advanced gettext functions): Fix typo.
128
129         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
130         strncpy prototype.
131
132 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
133
134         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
135         warnings.
136         * sysdeps/ia64/memccpy.S: Likewise.
137         Patches by Jim Wilson <wilson@redhat.com>.
138
139         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
140         before trying to read /proc.
141         Patch by Matt Wilson <msw@redhat.com>.
142         * include/sys/utsname.h: Declare __uname.
143         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
144         * sysdeps/mach/hurd/uname.c: Likewise.
145         * sysdeps/unix/syscalls.list: Likewise.
146
147         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
148         unloading a bit.
149
150 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
151
152         * posix/getopt.c (_getopt_internal): When long_only is set always
153         recognize conflicts just like before.
154
155 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
156
157         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
158
159 2000-09-08  Greg McGary  <greg@mcgary.org>
160
161         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
162         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
163         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
164
165 2000-09-08  Andreas Jaeger  <aj@suse.de>
166
167         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
168
169         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
170
171         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
172         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
173         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
174
175 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
176
177         * iconvdata/tst-tables.sh: Enable EUC-KR test.
178
179         * elf/dl-load.c (lose): Decrement _nl_loaded.
180         (_dl_map_object_from_fd): Don't try to dlopen executables.
181
182         * iconvdata/tst-tables.sh: Actually return with an error if
183         something goes wrong.
184         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
185         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
186
187         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
188
189         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
190         * iconvdata/tst-table-from.c: Include <string.h>.
191         (try): Correct cast in iconv call.
192
193         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
194         too.
195         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
196         (sysdep_routines): Remove dl-start.
197         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
198
199         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
200
201         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
202         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
203
204 2000-09-06  Andreas Schwab  <schwab@suse.de>
205
206         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
207
208 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
209
210         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
211
212         * scripts/config.sub: Strip out -unknown for Linux targets.
213         Patch by Scott Bambrough <scottb@netwinder.org>.
214
215         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
216         add one more test.
217
218 2000-09-07  Andreas Jaeger  <aj@suse.de>
219
220         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
221
222         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
223         syscalls.
224
225         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
226
227         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
228         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
229
230         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
231
232         * stdlib/tst-bsearch.c (main): Add more test cases.
233
234         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
235         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
236         Reported by GOTO Masanori <gotom@debian.or.jp>.
237
238 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
239
240         * posix/Makefile (tests): Add tst-dir.
241         (tst-dir-ARGS): New variable.
242         * posix/tst-dir.c: New file.
243
244 2000-09-07  Andreas Jaeger  <aj@suse.de>
245
246         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
247         (SYS_fcntl64): New.
248
249         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
250
251 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
252
253         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
254         use the hack with tryopen_o_directory to determine at runtime
255         whether it works.
256         * sysdeps/unix/sysv/linux/opendir.c: New file.
257         * sysdeps/unix/sysv/linux/kernel-features.h: Define
258         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
259
260         * catgets/Depend: New file.  Add intl.
261         * catgets/Makefile (tests): Add tst-catgets.
262         (generated): Remove de.msg.
263         (generated-dirs): Add de.
264         Add dependency if tst-catgets output on de/libc.cat.
265         * catgets/tst-catgets.c: New file.
266
267         * po/ja.po: New file.
268         * po/el.po: Update from translation team.
269
270         * wcsmbs/Depend: New file.
271         * wcsmbs/Makefile (tests): Add tst-btowc.
272         (tst-btowc-ENV): Define.
273         * wcsmbs/tst-btowc.c: New file.
274
275         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
276         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
277
278         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
279
280         * stdlib/Makefile (tests): Add tst-bsearch.
281         * stdlib/tst-bsearch.c: New file.
282
283         * posix/getopt.c (_getopt_internal): Don't recognize an option
284         name as ambiguous if it's a prefix for more than one name but the
285         other struct option values are identical.
286
287         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
288         Don't depend on visual inspection of the output file to recognize
289         errors.
290         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
291
292 2000-09-06  Andreas Jaeger  <aj@suse.de>
293
294         * sysdeps/alpha/soft-fp/Dist: New file.
295         * sysdeps/i386/soft-fp/Dist: New file.
296         * sysdeps/mips/mips64/soft-fp/Dist: New file.
297         * sysdeps/mips/soft-fp/Dist: New file.
298         * sysdeps/powerpc/soft-fp/Dist: New file.
299         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
300         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
301
302         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
303         Use sysdep_routines instead of routines to fix make dist failure.
304         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
305         out code).
306         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
307
308         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
309         sysdep_headers instead of headers for make dist.
310
311         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
312         Likewise.
313
314 2000-09-06  Andreas Schwab  <schwab@suse.de>
315
316         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
317
318 2000-09-06  Andreas Jaeger  <aj@suse.de>
319
320         * soft-fp/Makefile (distribute): Remove ChangeLog.
321
322         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
323         sysdep_routines instead of routines for make dist.
324
325 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
326
327         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
328         compatibility check for old stream and call _IO_wide in doubt.
329         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
330         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
331         needed tst for such an old structure and don't do anything.
332         * libio/freopen.c: Remove declaration of _IO_stdin_used.
333
334 2000-09-06  Andreas Jaeger  <aj@suse.de>
335
336         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
337         sysdep-dl-routines and sysdep_routines instead of rtld-routines
338         and dl-routines.
339
340         * soft-fp/ChangeLog: Merged with this file.
341
342 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
343
344         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
345
346         * soft-fp/Makefile (distribute): Add the math functions, too.
347
348         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
349
350 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
351
352         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
353         as a statement.
354
355         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
356         * soft-fp/sysdeps/powerpc/q_*: New files.
357
358 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
359
360         * stdio-common/vfprintf.c (process_string_arg): Handle precision
361         in wide char case correctly.  Don't allocate too long temporary
362         strings with alloca.
363
364         * stdio-common/Makefile (tests): Add tst-swprintf.
365         (tst-swprintf-ENV): New variable.
366         * stdio-common/tst-swprintf.c: New file.
367
368 2000-09-05  Andreas Jaeger  <aj@suse.de>
369
370         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
371         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
372         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
373
374 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
375
376         * configure.in: Strip out "unknown" from configuration names.
377
378 2000-09-05  Andreas Jaeger  <aj@suse.de>
379
380         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
381
382         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
383         * sysdeps/sparc/sparc32/Implies: Likewise.
384         * sysdeps/powerpc/Implies: Likewise.
385
386         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
387         * libio/oldiofgetpos64.c: Likewise.
388
389         * soft-fp/Makefile (distribute): Remove configure.
390
391         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
392
393         * soft-fp/configure: Remove.
394
395         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
396         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
397
398         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
399         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
400
401         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
402         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
403
404         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
405         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
406
407         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
408         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
409
410         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
411         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
412
413         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
414         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
415
416         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
417         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
418
419         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
420         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
421
422         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
423         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
424
425         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
426         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
427
428         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
429         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
430
431         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
432         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
433
434         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
435         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
436
437         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
438         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
439
440         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
441         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
442
443         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
444         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
445
446         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
447         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
448
449         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
450         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
451
452         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
453         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
454
455         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
456         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
457
458         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
459         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
460
461         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
462         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
463
464         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
465         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
466
467         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
468         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
469
470         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
471         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
472
473         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
474         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
475
476         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
477         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
478
479         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
480         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
481
482         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
483         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
484
485         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
486         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
487
488         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
489         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
490
491         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
492         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
493
494         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
495         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
496
497         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
498         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
499
500         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
501         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
502
503         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
504         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
505
506         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
507         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
508
509         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
510         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
511
512         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
513         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
514
515         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
516         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
517
518         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
519         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
520
521         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
522         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
523
524         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
525         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
526
527         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
528         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
529
530         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
531         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
532
533         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
534         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
535
536         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
537         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
538
539         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
540         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
541
542         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
543         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
544
545         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
546         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
547
548         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
549         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
550
551         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
552         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
553
554         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
555         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
556
557         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
558         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
559
560         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
561         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
562
563         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
564         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
565
566         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
567         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
568
569         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
570         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
571
572         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
573         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
574
575         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
576         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
577
578         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
579         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
580
581         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
582         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
583
584         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
585         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
586
587         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
588         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
589
590         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
591         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
592
593         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
594         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
595
596         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
597         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
598
599         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
600         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
601
602         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
603         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
604
605         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
606         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
607
608         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
609         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
610
611         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
612         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
613
614         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
615         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
616
617         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
618         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
619
620         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
621         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
622
623         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
624         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
625
626         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
627         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
628
629         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
630         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
631
632         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
633         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
634
635         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
636         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
637
638         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
639         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
640
641         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
642         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
643
644         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
645         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
646
647         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
648         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
649
650         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
651         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
652
653         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
654         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
655
656         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
657         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
658
659         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
660         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
661
662         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
663         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
664
665         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
666         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
667
668         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
669         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
670
671         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
672         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
673
674         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
675         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
676
677         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
678         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
679
680         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
681         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
682
683         * soft-fp/sysdeps/powerpc/Versions: Move from here...
684         * sysdeps/powerpc/soft-fp/Versions: ... to here.
685
686         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
687         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
688
689         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
690         change symbol version.
691         * libio/oldiofgetpos64.c: Likewise.
692         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
693
694         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
695         typo.
696         Reported by dyky@kondara.org, closes PR libc/1886.
697
698         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
699         libc/1880.
700
701 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
702
703         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
704         script when ^C is hit.
705
706         * locale/programs/localedef.c (construct_output_path): Correct
707         computation of endp after asprintf.
708         * locale/programs/locfile.c (write_locale_data): Don't add extra
709         slash in filename.
710
711 2000-09-05  Andreas Jaeger  <aj@suse.de>
712
713         * scripts/config.guess: New upstream version.
714         * scripts/config.sub: Likewise.
715         * manual/texinfo.tex: Likewise.
716
717 2000-09-04  Andreas Schwab  <schwab@suse.de>
718
719         * elf/Makefile (all-dl-routines): New variable.
720         (elide-routines.os): Use it instead of $(dl-routines).
721         (all-rtld-routines): New variable.
722         (extra-objs): Use it instead of $(rtld-routines).
723         ($(objpfx)dl-allobjs.os): Likewise.
724         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
725         sysdep-dl-routines and sysdep_routines instead of rtld-routines
726         and dl-routines.
727
728 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
729
730         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
731         Set fname to NULL if the module wasn't found.
732
733 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
734
735         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
736         true if trans->name already ends in ".so".
737
738 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
739
740         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
741         void.
742         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
743         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
744         (__gconv_release_shlib): Change return type to void.
745         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
746         step->__counter here.
747         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
748         if the reference is zero.
749         (release_step): New function.
750         (gen_steps): Always initialize the __counter to 1. Use release_step.
751         Don't call the destructor on the step whose initializer failed.
752         (increment_counter): Use release_step. Don't normally run destructors
753         here.
754         (__gconv_close_transform): Use release_step.
755
756 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
757
758         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
759         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
760
761 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
762
763         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
764         If the first byte is 0x8E, don't ask for 4 bytes until it has been
765         verified that the second byte is valid. Leave it to cns11643_to_ucs4
766         to check for incomplete input.
767         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
768         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
769         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
770         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
771         0x9f9d..0x9fa5.
772         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
773         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
774         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
775         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
776         upto index 0x0052.
777
778 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
779
780         * iconv/gconv_db.c (find_derivation): Always use the least-cost
781         solution.
782
783 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
784
785         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
786         are invalid.
787
788 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
789
790         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
791         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
792         U+007E.
793
794 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
795
796         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
797
798 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
799
800         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
801
802 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
803
804         * iconvdata/tst-tables.sh: New file.
805         * iconvdata/tst-table.sh: New file.
806         * iconvdata/tst-table-from.c: New file.
807         * iconvdata/tst-table-to.c: New file.
808         * iconvdata/tst-table-charmap.sh: New file.
809         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
810         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
811         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
812         ISIRI-3342.irreversible, SJIS.irreversible.
813         (tests): Add dependency on tst-tables.out.
814         (tst-tables.out, tst-tables-clean): New rules.
815         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
816         * iconvdata/ISIRI-3342.irreversible: New file.
817         * iconvdata/EUC-JP.irreversible: New file.
818         * iconvdata/SJIS.irreversible: New file.
819
820 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
821
822         * manual/locale.texi (General Numeric): Update description of
823         representation of the grouping information in the locale data.
824         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
825
826 2000-09-04  Andreas Jaeger  <aj@suse.de>
827
828         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
829         * iconv/iconv_prog.c (options): Fix typo.
830         Reported by dyky@kondara.org, closes PR libc/1885.
831
832 2000-09-04  Andreas Jaeger  <aj@suse.de>
833
834         * sysdeps/generic/fegetenv.c: It's __fegetenv.
835         Reported by Rob Levin <lilo@transvirtual.com>.
836
837 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
838
839         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
840         to the typedefs of __timezone_ptr_t.
841         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
842
843 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
844
845         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
846         the loop.
847
848 2000-09-01  H.J. Lu  <hjl@gnu.org>
849
850         * Makeconfig (built-program-cmd): Don't use the dynamic linker
851         to run a binary if it is in $(tests-static).
852
853         * Rules (binaries-static): Add $(tests-static).
854
855 2000-09-02  Andreas Jaeger  <aj@suse.de>
856
857         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
858
859         * libio/fmemopen.c (fmemopen_close): Revert one part of last
860         patch.
861
862 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
863
864         * iconvdata/big5hkscs.c: Regenerated from charmap.
865         * iconvdata/testdata/BIG5HKSCS: Regenerated.
866         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
867
868         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
869         statement.  General cleanup.
870
871 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
872
873         * wctype/wcfuncs.c (iswblank): New function.
874         * wctype/wcfuncs_l.c (__iswblank_l): New function.
875         * wctype/wcextra.c: Remove file.
876         * wctype/wcextra_l.c: Remove file.
877         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
878
879 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
880
881         * locale/programs/ld-collate.c (collate_output): Remove redundant
882         assert call.
883         * string/strcoll.c: Likewise.
884         * string/strxfrm.c: Include assert.h.  Add assert calls like in
885         string/strcoll.c.
886
887 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
888
889         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
890         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
891         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
892         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
893         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
894         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
895         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
896         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
897         _NL_CTYPE_GAP5/6 respectively.
898
899         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
900         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
901         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
902         Don't initialize __ctype_names and __ctype_width.
903         * wctype/cname-lookup.h: Remove file.
904         * wctype/Makefile (distribute): Remove cname-lookup.h.
905         * wctype/wchar-lookup.h: Include stdint.h.
906         * wctype/wctype.c (__wctype): Assume new locale format.
907         * wctype/wctype_l.c (__wctype_l): Likewise.
908         * wctype/iswctype.c: Don't include cname-lookup.h.
909         (__iswctype): Assume new locale format.
910         * wctype/iswctype_l.c: Don't include cname-lookup.h.
911         (__iswctype_l): Assume new locale format.
912         * wctype/wctrans.c: Don't include ctype.h.
913         (wctrans): Assume new locale format.
914         * wctype/wctrans_l.c (__wctrans_l): Likewise.
915         * wctype/towctrans.c: Don't include cname-lookup.h.
916         (__towctrans): Assume new locale format.
917         * wctype/towctrans_l.c: Don't include cname-lookup.h.
918         (__towctrans_l): Assume new locale format.
919         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
920         localeinfo.h instead.
921         (__NO_WCTYPE): Remove unused macro.
922         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
923         declarations.
924         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
925         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
926         (towlower, towupper): Likewise.
927         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
928         localeinfo.h instead.
929         (__NO_WCTYPE): Remove unused macro.
930         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
931         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
932         __iswxdigit_l): Assume new locale format.
933         (__towlower_l, __towupper_l): Likewise.
934         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
935         (__ctype32_b): Remove declaration.
936         (internal_wcwidth): Assume new locale format.
937         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
938         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
939         to map32_b, rename width_3level to width.
940         (ctype_output): Always create new locale format. Don't emit
941         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
942         (allocate_arrays): Always create new locale format.
943
944         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
945         * locale/weightwc.h (findidx): Assume new locale format.
946         * string/strcoll.c (wcscoll): Remove local variables size, layers,
947         names.
948         * string/strxfrm.c (wcsxfrm): Likewise.
949         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
950         local variable collseq to 'const char *'.
951         (SUFFIX): Don't use, don't undefine.
952         * posix/fnmatch.c: Remove SUFFIX definition.
953         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
954         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
955         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
956         (collate_finish): Always create new locale format. Remove local
957         variables min_total, act_size.
958         (collate_output): Always create new locale format. Remove local
959         variables table_size, names, tablewc. Rename tablewc_3level to
960         tablewc.
961
962 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
963
964         * locale/programs/ld-collate.c (obstack_int32_grow,
965         obstack_int32_grow_fast): New inline functions.
966         (output_weightwc, collate_output): Use them where possible.
967
968 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
969
970         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
971         patch (_mode -> _flags).
972
973         * libio/Makefile (headers): Add stdio_ext.h.
974         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
975         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
976         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
977         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
978         __fsetlocking, and _flushlbf.
979         * libio/__fbufsize.c: New file.
980         * libio/__flbf.c: New file.
981         * libio/__fpending.c: New file.
982         * libio/__fpurge.c: New file.
983         * libio/__freadable.c: New file.
984         * libio/__freading.c: New file.
985         * libio/__fsetlocking.c: New file.
986         * libio/__fwritable.c: New file.
987         * libio/__fwriting.c: New file.
988         * libio/stdio_ext.h: New file.
989         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
990         * libio/libio.h (_IO_USER_LOCK): Define.
991         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
992         test _IO_USER_LOCK flag first.
993
994         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
995         malloc fails.
996
997 2000-09-01  Andreas Jaeger  <aj@suse.de>
998
999         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1000
1001         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1002
1003 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1004
1005         * math/Makefile (tests): Add tst-defintions.
1006         * math/tst-definitions.c: New file.
1007
1008         * stdlib/Makefile (headers): Add bits/wchar.h.
1009         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1010         * sysdeps/generic/bits/wchar.h: New file.
1011         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1012         file to define WCHAR_MIN and WCHAR_MAX.
1013         Change UINT*8_MAX and UIN*16_MAX value to type int.
1014         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1015         file to define WCHAR_MIN and WCHAR_MAX.
1016         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1017         int values.
1018         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1019         * sysdeps/generic/bits/mathdef.h: Likewise.
1020         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1021         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1022         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1023         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1024         * locale/locale.h (struct lconv): Add __ prefix to the new members
1025         if not C99.
1026         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1027         imaxdiv optimizations.
1028         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1029         * sysdeps/wordsize-64/ldiv.c: Likewise.
1030         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1031         const fenv_t*.
1032         * sysdeps/generic/bits/fenv.h: Likewise.
1033         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1034         * sysdeps/ia64/bits/fenv.h: Likewise.
1035         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1036         * sysdeps/mips/bits/fenv.h: Likewise.
1037         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1038         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1039         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1040
1041         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1042         * inet/ruserpass.c: Likewise.
1043         * catgets/open_catalog.c: Likewise.
1044         * intl/loadmsgcat.c: Likewise.
1045         * io/getdirname.c: Likewise.
1046         * locale/loadlocale.c: Likewise.
1047         * misc/getusershell.c: Likewise.
1048         * stdlib/canonicalize.c: Likewise.
1049         * sysdeps/posix/euidaccess.c: Likewise.
1050         * sysdeps/posix/isfdtype.c: Likewise.
1051         * sysdeps/posix/posix_fallocate.c: Likewise.
1052         * sysdeps/posix/tempname.c: Likewise.
1053         * sysdeps/unix/grantpt.c: Likewise.
1054         * sysdeps/unix/opendir.c: Likewise.
1055         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1056         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1057         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1058         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1059         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1060         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1061         * sysvipc/ftok.c: Likewise.
1062         * time/getdate.c: Likewise.
1063
1064         * time/getdate.c: Add extra access test.
1065
1066 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1067
1068         * version.h (VERSION): Bump to 2.1.93.
1069
1070         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1071         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1072
1073         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1074         Make this a new rule depending on tst-gettext.out and run mtrace.
1075         * intl/tst-gettext.c: Call mtrace.
1076         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1077
1078         * elf/dl-reloc.c: Add a few more __builtin_expect.
1079
1080         * configure.in: Remove --with-gettext option.
1081
1082         * intl/dcigettext.c (free_mem): Correct freeing of
1083         _nl_domain_bindings list.
1084
1085         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1086         allocated memory.
1087
1088         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1089
1090         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1091
1092         * stdio-common/itoa-digits.c: Move upper digits to...
1093         * stdio-common/itoa-udigits.c: ...here.  New file.
1094         * stdio-common/Makefile (routines): Add itoa-udigits.
1095
1096         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1097         relocate ld.so don't add supprt for relocations which should not
1098         appear in ld.so.
1099
1100         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1101         __secure_getenv.  Instead test __libc_enable_secure once.
1102
1103         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1104
1105 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1106
1107         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1108         whether the new record should be freed if it's a duplicate.
1109         (add_module): Adjust insert_module call.
1110         (__gconv_read_conf): Likewise.
1111         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1112         mtrace-tst-loading.
1113         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1114
1115         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1116         _dl_all_init_dirs.
1117         * include/link.h (struct r_search_path_struct): New.
1118         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1119         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1120         _dl_all_init_dirs.
1121         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1122         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1123         added at startup time.
1124         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1125         contains element to remember fact that we can free memory.
1126         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1127         (_dl_init_all_dirs): New variable.
1128         (fillin_rpath): Save one malloc call.
1129         (decompose_rpath): Change interface.  New first parameter points to
1130         r_search_path_struct.
1131         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1132         deletable.  Set _dl_init_all_paths value.
1133         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1134         parameter replaced with r_search_path_struct *.  Information about
1135         freeing now contained in r_search_path_struct.
1136         (_dl_map_object): Adjust for above changes.
1137
1138         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1139
1140         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1141         when adding new entries.
1142
1143         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1144         since the object being loaded can be unloaded.
1145
1146         * iconvdata/Makefile (tests): Add tst-loading.
1147         * iconvdata/tst-loading.c: New file.
1148
1149 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1150
1151         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1152         When comparing a char with an int, always cast the char to
1153         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1154         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1155
1156 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1157
1158         * time/strftime.c (my_strftime): Add compatibility code for use
1159         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1160
1161         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1162         return 0 for success but always < 0 on failure.
1163
1164         * nss/getXXbyYY_r.c: Define result to *result before including
1165         digits_dots.c.
1166
1167 2000-08-30  Andreas Jaeger  <aj@suse.de>
1168
1169         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1170
1171 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1172
1173         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1174         official file.
1175         * iconvdata/TESTS: Add BIG5HKSCS entry.
1176         * iconvdata/testdata/BIG5HKSCS: New file.
1177         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1178
1179         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1180         always true.
1181
1182         * libio/iogetline.c: Set mode before the loop in case n==0.
1183         * libio/iogetwline.c: Likewise.
1184
1185 2000-08-29  H.J. Lu  <hjl@gnu.org>
1186
1187         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1188         of fp->_mode < 0.
1189         (_IO_new_file_overflow): Likewise.
1190         * libio/genops.c (_IO_flush_all): Likewise.
1191         * libio/ioftell.c (_IO_ftell): Likewise.
1192
1193 2000-08-29  Akira Higuchi  <a@kondara.org>
1194
1195         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1196         and __end_fct fields of struct __gconv_step.
1197         * iconv/Makefile (tests): Add iconv-bug2.
1198         * iconv/iconv-bug2.c: New file.
1199
1200         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1201         instead of 'inptr - inend' to ksc5601_to_ucs4.
1202
1203         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1204
1205         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1206         character or shift sequence is found at the end of the input
1207         string, return__GCONV_INCOMPLETE_INPUT instead of
1208         __GCONV_EMPTY_INPUT.
1209         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1210         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1211
1212         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1213         __GCONV_ILLEGAL_INPUT for 8bit characters.
1214
1215 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1216
1217         * signal/signal.h (sigpause): Move __THROW before __asm__.
1218
1219         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1220         names don't match don't return.
1221         Patch by Olaf Kirch <okir@flash.lst.de>.
1222
1223 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1224
1225         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1226
1227 2000-08-27  H.J. Lu  <hjl@gnu.org>
1228
1229         * posix/Makefile (otherlibs): Add for building with static-nss
1230         for "make check".
1231
1232 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1233
1234         * libio/stdio.h: Add fmemopen prototype.
1235
1236 2000-08-25  Andreas Jaeger  <aj@suse.de>
1237
1238         * libio/Makefile (routines): Add fmemopen.
1239         (tests): Add test-fmemopen.
1240         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1241         * libio/test-fmemopen.c: New file.
1242         * libio/fmemopen.c: New file.
1243         Patches by Hanno Mueller <kontakt@hanno.de>.
1244
1245 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1246
1247         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1248         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1249
1250         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1251         to avoid crashing statically linked applications.
1252
1253 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1254
1255         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1256         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1257
1258         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1259         If the result is fits in the buffer, copy only as many bytes as needed.
1260
1261         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1262         buffer after copying numbuf into it.
1263         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1264
1265 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1266
1267         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1268         the result.  When string_len < len, don't clear the rest of the buffer.
1269
1270 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1271
1272         Support for new LC_COLLATE format.
1273         * locale/coll-lookup.h: New file.
1274         * locale/weightwc.h (findidx): When size == 0, call
1275         collidx_table_lookup.
1276         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1277         * wcsmbs/wcsxfrm.c: Likewise.
1278         * posix/fnmatch.c: Likewise.
1279         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1280         collseq_table_lookup.
1281         * locale/programs/3level.h: New file.
1282         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1283         by including "3level.h".
1284         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1285         collseq_table): New types, defined by including "3level.h".
1286         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1287         (encoding_mask, encoding_byte): Remove.
1288         (utf8_encode): Use simple shifts instead.
1289         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1290         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1291         (collate_output): New local variable tablewc_3level. When
1292         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1293         tablewc_3level instead of tablewc. Change format of TABLEWC and
1294         COLLSEQWC entries written to the file.
1295         * locale/C-collate.c (collseqwc): Change format.
1296         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1297         of COLLSEQWC.
1298         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1299
1300 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1301
1302         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1303         (locale_ctype_t): New charnames_idx field.
1304         (ctype_startup): Initialize charnames_idx field.
1305         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1306
1307 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1308
1309         * locale/C-ctype.c: Switch to new locale format.
1310         (_nl_C_LC_CTYPE_names): Remove array.
1311         (STRUCT_CTYPE_CLASS): New macro.
1312         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1313         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1314         New three-level tables.
1315         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1316         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1317         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1318         12 class tables and 2 map tables at the end.
1319         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1320         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1321         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1322         New declarations.
1323         (b): Remove trailing semicolon.
1324         (__ctype_names, __ctype_width): Don't initialize.
1325         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1326
1327 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1328
1329         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1330         is guaranteed to be allocated with the same malloc() and may be
1331         passed to free().
1332         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1333         been set to empty by an earlier open_path call, don't pass it again.
1334
1335 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1336
1337         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1338         we are not optimizing.
1339
1340         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1341         inclusion.
1342
1343         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1344         really match EOF.
1345         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1346
1347 2000-08-28  Andreas Jaeger  <aj@suse.de>
1348
1349         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1350
1351 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1352
1353         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1354         getpeername.  Use ISO C style function definition.
1355         (getpeername): Provide weak alias.
1356         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1357         setrlimit.  Use ISO C style function definition.
1358         (setrlimit): Provide weak alias.
1359
1360 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1361
1362         * shlib-versions: Add a rule for S/390 to the libm version list.
1363         * sysdeps/s390/Versions: New file.
1364         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1365         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1366         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1367         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1368         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1369         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1370         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1371         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1372         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1373         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1374         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1375         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1376         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1377         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1378         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1379         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1380         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1381         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1382
1383 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1384
1385         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1386         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1387
1388         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1389         * elf/dl-close.c (_dl_close): Print debug message if object is not
1390         unloaded.
1391         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1392         returning to caller.
1393
1394         * po/zh.po: Renamed to...
1395         * po/zh_TW.po: ...this.
1396
1397 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1398
1399         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1400
1401         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1402         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1403         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1404         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1405
1406 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1407
1408         * locale/programs/ld-collate.c (insert_weights): Also update
1409         backpointer of next element.
1410         (collate_read): Allow definition of new collation symbols in stage 2.
1411         Symbol after reorder-after can be UCS4 value.
1412         Allow reordering of collation symbols and elements.
1413         Do not only move reorder entry in new position.  Instead call
1414         insert_weight to do this and read the weights.
1415
1416         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1417
1418         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1419         to determine invalid locale name.
1420         * locale/findlocale.c (_nl_find_locale): Likewise.
1421
1422         * posix/annexc.c: Correct test for unavailable feature.
1423
1424         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1425         __inline.
1426
1427 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1428
1429         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1430         syscall.
1431
1432         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1433         (sysdep_routines): Add oldgetrlimit64.
1434
1435         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1436         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1437         (tests): Add unload, reldep, reldep2, and reldep3.
1438         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1439         and reldepmod4.
1440         Add rules to build and run unload, reldep, reldep2, and reldep3.
1441         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1442         Don't create relocation dependency if it is nonzero.
1443         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1444         can never happen here.
1445         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1446         Don't create relocation dependency if it is nonzero.
1447         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1448         stuff.  This can never happen here.
1449         * sysdeps/generic/ldsodefs.h: Change prototypes.
1450         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1451         _dl_lookup_up and _dl_lookup_versioned_symbol.
1452         (RESOLV): Likewise.
1453         * elf/dl-runtime.c (fixup): Likewise.
1454         (profile_fixup): Likewise.
1455         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1456         _dl_lookup_symbol.
1457         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1458         * elf/rtld.c (dl_main): Likewise.
1459         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1460         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1461         and pass down the caller map.
1462         (_dl_vsym): Likewise.
1463         * elf/reldep.c: New file.
1464         * elf/reldep2.c: New file.
1465         * elf/reldep3.c: New file.
1466         * elf/reldepmod1.c: New file.
1467         * elf/reldepmod2.c: New file.
1468         * elf/reldepmod3.c: New file.
1469         * elf/reldepmod4.c: New file.
1470         * elf/unload.c: New file.
1471         * elf/unloadmod.c: New file.
1472
1473         * elf/do-lookup.h: Remove unused undef_name parameter.
1474         * elf/dl-lookup.c: Adjust callers.
1475
1476 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1477
1478         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1479         irreversible in recursive call of conversion function to signal that
1480         no error handling is wanted.
1481         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1482         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1483         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1484         recursive error handling call, otherwise to &lirreversible.  Use it
1485         for calls to conversion functions.
1486         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1487         transliterating.
1488         (ucs4_internal_loop_unaligned): Likewise.
1489         (ucs4le_internal_loop): Likewise.
1490         (ucs4le_internal_loop_unaligned): Likewise.
1491
1492 2000-08-25  Greg McGary  <greg@mcgary.org>
1493
1494         * sysdeps/i386/memchr.S: Check high bound against chars
1495         actually scanned.
1496         * sysdeps/i386/memcmp.S: Likewise.
1497         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1498         account for pointers that lie one beyond end-of-buffer.
1499
1500 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1501
1502         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1503         * elf/nodelete.c (fini_ran): New global variable.
1504         (do_test): Before every dlclose call clear fini_ran and test
1505         afterwards that it is not set by the destructors.
1506         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1507         * elf/nodelmod2.c: Likewise.
1508         * elf/nodelmod4.c: Likewise.
1509
1510 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1511
1512         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1513         getrlimit to the list.
1514
1515 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1516
1517         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1518         long double format so use ldbl-96 instead of ldbl-128.
1519
1520 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1521
1522         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1523         even if bits 10 a 11 are non-zero.
1524         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1525
1526         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1527         included before building gnu/lib-names.h
1528         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1529
1530         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1531         marked DF_1_NODELETE.
1532
1533         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1534         since we call sigaction in the child.
1535
1536 2000-08-25  Andreas Jaeger  <aj@suse.de>
1537
1538         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1539         gconv-modules.
1540
1541 2000-08-25  Andreas Jaeger  <aj@suse.de>
1542
1543         * manual/arith.texi (Control Functions): Clarify possible
1544         arguments.  Closes PR libc/1856.
1545
1546 2000-08-24  H.J. Lu  <hjl@gnu.org>
1547
1548         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1549         * malloc/Makefile (tests): Likewise.
1550
1551 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1552
1553         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1554
1555 2000-08-24  Andreas Jaeger  <aj@suse.de>
1556
1557         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1558         only if LIBGD is available.
1559
1560 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1561
1562         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1563         problems with now restrict parameter types.
1564         (convaddr4to6): Likewise.
1565
1566 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1567
1568         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1569         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1570         * sysdeps/s390/fpu/fegetexcept.c: New file.
1571         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1572         FPC_VALID_MASK.
1573
1574 2000-08-24  Andreas Jaeger  <aj@suse.de>
1575
1576         * malloc/Makefile (extra-objs): Add memusagestat.o.
1577         (generated): Added memusage and memusagestat for make clean.
1578
1579         * libio/tst_putwc.c (do_test): Delete temporary file.
1580         Move inclusion of test-skeleton to front to have prototype for
1581         add_temp_file.
1582
1583         * posix/Makefile (generated): Add wordexp-tst.out.
1584
1585 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1586
1587         * resolv/res_hconf.c (free_mem): Remove not needed if.
1588
1589         * time/tzset.c (free_mem): New function.
1590         * string/strsignal.c (free_mem): New function.
1591         * inet/inet_ntoa.c (free_mem): New function.
1592         * sunrpc/clnt_perr.c (free_mem): New function.
1593
1594 2000-08-24  Andreas Jaeger  <aj@suse.de>
1595
1596         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1597         * sysdeps/unix/sysv/syscalls.list: Likewise.
1598
1599         * posix/unistd.h: Move internal prototypes from here ...
1600         * include/unistd.h: ... to here.
1601
1602         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1603
1604 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1605
1606         * grp/initgroups.c (initgroups): Deallocate groups array.
1607         Reported by jani.raiha@sonera.com [PR libc/1868].
1608
1609         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1610         * sysdeps/alpha/Dist: Likewise.
1611
1612 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1613
1614         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1615         destructor).  Reported by Solar Designer <solar@false.com>.
1616
1617         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1618         avoid adding double slashes.
1619
1620 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1621
1622         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1623         out of the __REDIRECT macro.
1624
1625 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1626
1627         * stdio-common/vfscanf.c: Add %F format support.
1628
1629         * locale/programs/ld-ctype.c (ctype_output): Make sure
1630         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1631         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1632         (ctype_read): Enable returning of wide character strings for reading
1633         transliteration information.
1634
1635 2000-08-23  Andreas Jaeger  <aj@suse.de>
1636
1637         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1638         Use static __inline instead of _EXTERN_INLINE.
1639
1640         * misc/sys/select.h: Move prototypes of __select from here ...
1641         * include/sys/select.h: ... to here.
1642
1643         * socket/sys/socket.h: Move prototypes of __send and __connect
1644         from here....
1645         * include/sys/socket.h: ... to here.
1646
1647         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1648         lr_error.
1649
1650 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1651
1652         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1653         __setrlimit as strong name. Takes only 2 arguments.
1654
1655         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1656         takes only 2 arguments.
1657
1658 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1659
1660         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1661
1662         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1663
1664 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1665
1666         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1667         default_missing character being specified, pick the first
1668         representable.
1669
1670 2000-08-23  Andreas Jaeger  <aj@suse.de>
1671
1672         * include/wchar.h: Add some pure attributes.
1673
1674         * time/time.h: Add const attribute for dysize.
1675
1676         * include/stdlib.h: Add malloc attribute to __posix memalign.
1677
1678         * stdlib/stdlib.h: Add some pure and malloc attributes.
1679         * wcsmbs/wchar.h: Likewise.
1680
1681         * dirent/dirent.h: Add some pure attributes.
1682         * include/dirent.h: Likewise.
1683
1684 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1685
1686         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1687         on 64bit arches.
1688
1689 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1690
1691         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1692         missing buffer size checks.
1693
1694 2000-08-23  Andreas Jaeger  <aj@suse.de>
1695
1696         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1697         strong name.
1698         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1699
1700         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1701         otherwise __LINUX_KERNEL_VERSION might not be defined.
1702         (MIN): Define if not already defined.
1703
1704 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1705
1706         * stdio-common/vfprintf.c: Handle %F format.
1707         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1708         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1709
1710         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1711
1712         * po/zh.po: New file.
1713
1714         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1715         enough room in target buffer.
1716         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1717         * iconvdata/bug-iconv1.c: New file.
1718         * iconvdata/Makefile (tests): Add bug-iconv1.
1719
1720         * locale/iso-4217.def: Update entry for Nicaragua.
1721
1722 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1723
1724         * hurd/hurdsig.c: Rearrange headers a bit.
1725         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1726         when cthreads is being used.
1727
1728 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1729
1730         * elf/Makefile (distribute): Add dl-osinfo.h.
1731         * sysdeps/generic/dl-osinfo.h: New file.
1732         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1733         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1734         if defined.
1735         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1736         only for !SHARED case.  Get the code from dl-osinfo.h.
1737
1738         * stdlib/random_r.c: Cleanups.
1739         * stdlib/tst-random.c: New file.
1740         * stdlib/Makefile (tests): Add tst-random.
1741         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1742
1743 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1744
1745         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1746         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1747         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1748         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1749
1750 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1751
1752         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1753         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1754         (__syscall__sysctl): Add.
1755
1756 2000-08-21  Andreas Jaeger  <aj@suse.de>
1757
1758         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1759         libc/1864).
1760         * stdlib/tst-strtoll.c: Likewise.
1761
1762 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1763
1764         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1765         correctly.
1766         (__initstate_r): Set errno on error.
1767         (__random_r): Likewise.
1768         (__setstate_r): Correct offset when computing
1769         new rptr and fptr.  Test for arg_state being NULL.
1770         Reported by Michael Fischer <fischer@cs.yale.edu>.
1771
1772         * posix/regex.h: Add macro definitions to allow compiling outside
1773         glibc.
1774
1775         * sysdeps/i370/Implies: Removed.
1776         * sysdeps/mvs/Implies: Removed.
1777
1778         * catgets/catgets.c (catopen): Filter out env_var values with / if
1779         necessary.
1780
1781         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1782         locale name after all getenvs.
1783
1784         * configure.in: Allow sed versions like 3.02.8.
1785         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1786
1787 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1788
1789         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1790
1791 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1792
1793         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1794         of gethostbyname2_r call.
1795
1796         * intl/locale.alias: Add aliases for Korean.
1797
1798 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1799
1800         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1801         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1802         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1803         * sysdeps/s390/fpu/fegetenv.c: New file.
1804         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1805         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1806         * sysdeps/s390/fpu/fenv_libc.h: New file.
1807         * sysdeps/s390/fpu/fesetenv.c: New file.
1808         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1809         * sysdeps/s390/fpu/feupdateenv.c: New file.
1810         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1811         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1812         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1813         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1814         * sysdeps/s390/fpu/ftestexcept.c: New file.
1815         * sysdeps/s390/fpu/libm-test-ulps: New file.
1816         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1817         * sysdeps/s390/initfini.c: New file.
1818         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1819         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1820         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1821         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1822         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1823         sys/procfs.h as proposed by Mark Kettenis.
1824         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1825
1826 2000-08-21  Andreas Jaeger  <aj@suse.de>
1827
1828         * include/poll.h: Include include/sys/poll.h to get __poll
1829         declaration.
1830
1831         * io/sys/poll.h: Move __poll declaration from here...
1832         * include/sys/poll.h: ...to here.
1833
1834         * include/sys/socket.h (__getpeername): Add declaration.
1835
1836         * include/wchar.h (__vswprintf): Add declaration.
1837
1838         * include/stdio.h (__flockfile): Add declaration.
1839         (__funlockfile): Likewise.
1840
1841 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1842
1843         * misc/sys/cdefs.h: Define __restrict_arr.
1844         * include/sys/time.h: Add restrict where required by AGd4.
1845         * inet/arpa/inet.h: Likewise.
1846         * io/sys/stat.h: Likewise.
1847         * io/sys/statvfs.h: Likewise.
1848         * misc/search.h: Likewise.
1849         * misc/sys/select.h: Likewise.
1850         * posix/glob.h: Likewise.
1851         * posix/regex.h: Likewise.
1852         * posix/spawn.h: Likewise.
1853         * posix/unistd.h: Likewise.
1854         * rt/aio.h: Likewise.
1855         * signal/signal.h: Likewise.
1856         * socket/sys/socket.h: Likewise.
1857         * stdlib/ucontext.h: Likewise.
1858         * streams/stropts.h: Likewise.
1859         * string/string.h: Likewise.
1860         * time/time.h: Likewise.
1861         * time/sys/time.h: Likewise.
1862
1863         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
1864         and posix_spawnattr_setscheparam.
1865
1866         * libio/stdio.h: Make cuserid prototype again available for all
1867         XPG versions.
1868
1869         * argp/argp-help.c: Unify use of function aliases to make more compact
1870         PLT.
1871         * include/libintl.h: Likewise.
1872         * inet/rcmd.c: Likewise.
1873         * intl/dcigettext.c: Likewise.
1874         * libio/iofputws.c: Likewise.
1875         * libio/iofputws_u.c: Likewise.
1876         * libio/iogetwline.c: Likewise.
1877         * libio/swprintf.c: Likewise.
1878         * malloc/malloc.c: Likewise.
1879         * nss/digits_dots.c: Likewise.
1880         * posix/fnmatch.c: Likewise.
1881         * posix/spawn_faction_addclose.c: Likewise.
1882         * posix/spawn_faction_adddup2.c: Likewise.
1883         * posix/spawn_faction_addopen.c: Likewise.
1884         * posix/spawni.c: Likewise.
1885         * posix/wordexp.c: Likewise.
1886         * posix/spawni.c: Likewise.
1887         * resolv/res_hconf.c: Likewise.
1888         * resolv/res_init.c: Likewise.
1889         * shadow/lckpwdf.c: Likewise.
1890         * signal/sighold.c: Likewise.
1891         * signal/sigrelse.c: Likewise.
1892         * stdio-common/printf-parse.h: Likewise.
1893         * stdio-common/printf-prs.c: Likewise.
1894         * stdio-common/printf_fp.c: Likewise.
1895         * stdio-common/vfprintf.c: Likewise.
1896         * stdio-common/vfscanf.c: Likewise.
1897         * stdlib/rpmatch.c: Likewise.
1898         * sunrpc/create_xid.c: Likewise.
1899         * sunrpc/key_call.c: Likewise.
1900         * sysdeps/generic/setrlimit64.c: Likewise.
1901         * sysdeps/generic/utmp_file.c: Likewise.
1902         * sysdeps/generic/vlimit.c: Likewise.
1903         * sysdeps/posix/posix_fallocate.c: Likewise.
1904         * sysdeps/posix/posix_fallocate64.c: Likewise.
1905         * sysdeps/posix/sigpause.c: Likewise.
1906         * sysdeps/posix/sigset.c: Likewise.
1907         * sysdeps/unix/grantpt.c: Likewise.
1908         * sysdeps/unix/bsd/ualarm.c: Likewise.
1909         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1910         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
1911         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1912         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
1913         * time/strftime.c: Likewise.
1914         * wcsmbs/wcscoll.c: Likewise.
1915         * wcsmbs/wcsxfrm.c: Likewise.
1916
1917         * time/tst-getdate.c (main): Make error messages more human readable.
1918
1919         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
1920         postinc/predec instruction.
1921         (_FPU_SETCW): Likewise.
1922         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1923
1924 2000-08-20  Andreas Jaeger  <aj@suse.de>
1925
1926         * time/tst-getdate.c (main): Increase error in case of wrong
1927         conversion.
1928         Fix typo in test case.
1929
1930 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1931
1932         * ctype/ctype.h (isblank): Make available if ISO C99.
1933         * wctype/wctype.h (iswblank): Make available if ISO C99.
1934         * math/math.h (signgam): Don't make available if ISO C99.
1935         * math/tgmath.h (tgamma): Renamed from gamma.
1936         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1937
1938         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
1939         Pretty printing.
1940         * intl/plural.y (new_exp): Take number of optional parameters in
1941         second parameter.  Test for correct number of parameters and free
1942         correctly in case of failure.  Adjust all callers.
1943         (yylex): Allow ';' as terminator character.
1944
1945 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1946
1947         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
1948         walt_digits.
1949
1950         * locale/findlocale.c (free_mem): Also free here->filename.
1951
1952         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
1953
1954         * math/test-fenv.c (feenv_tests): Clear all exceptions before
1955         first test.
1956         (feexcp_nomask_test): Correct printf args.
1957         (feexcp_mask_test): Likewise.
1958
1959 2000-08-19  Andreas Jaeger  <aj@suse.de>
1960
1961         * inet/tst-gethnm.c: Include string.h to provide prototype for
1962         strcmp.
1963
1964         * malloc/mtrace.pl (usage): Inform about --help.
1965
1966 2000-08-19  Wolfram Gloger  <wg@malloc.de>
1967
1968         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
1969         size HEAP_MAX_SIZE.
1970
1971 2000-08-19  Andreas Jaeger  <aj@suse.de>
1972
1973         * shlib-versions: Remove libnss_db, libdb and libdb1.
1974
1975 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
1976
1977         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
1978         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
1979         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
1980         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
1981         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
1982         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
1983         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
1984         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
1985         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
1986         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
1987         getdents.
1988         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
1989         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1990
1991 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1992
1993         * include/glob.h (__glob64): Add prototype.
1994         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
1995         define glob and glob_in_dir.
1996         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
1997         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1998         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1999         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2000         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2001         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2002         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2003         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2004
2005 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2006
2007         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2008
2009 2000-08-17  Andreas Jaeger  <aj@suse.de>
2010
2011         * math/test-fenv.c (fe_single_test): New function.
2012         (fe_env_tests): Use fe_single_test.
2013         (feenable_test): New tests for feenable/fedisable and
2014         fegetexcpetions.
2015         (feexcp_mask_test): New function.
2016         (feexcp_nomask_test): New function.
2017
2018 2000-08-19  Richard Henderson  <rth@cygnus.com>
2019
2020         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2021         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2022         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2023         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2024         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2025         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2026         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2027         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2028         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2029         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2030         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2031         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2032         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2033         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2034         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2035         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2036         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2037
2038 2000-08-19  Andreas Jaeger  <aj@suse.de>
2039
2040         * elf/constload1.c: Include <stdio.h> for puts prototype.
2041
2042 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2043
2044         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2045         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2046         a dynamically loaded object remove old l_initfini list.
2047         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2048         remove some dynamically allocated memory blocks in the dynamic
2049         loading data structures.
2050         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2051         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2052         Instead call _dl_check_map_versions only for the dependencies.
2053         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2054         information of initial objects as not free-able.
2055         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2056         element.
2057
2058         * elf/filter.c: Call mtrace.
2059         * elf/restest1.c: Likewise.  Close the objects.
2060         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2061         debug information.
2062
2063         * elf/constload1.c: Add comment explaining not freed memory.
2064
2065 2000-08-18  Andreas Jaeger  <aj@suse.de>
2066
2067         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2068         alignment for structs stat and stat64.
2069         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2070
2071 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2072
2073         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2074         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2075
2076         * nss/Versions: Remove libnss_db information.
2077
2078 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2079
2080         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2081         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2082         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2083         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2084
2085         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2086         to match Solaris.
2087
2088 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2089
2090         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2091         (_FPU_SETCW): Likewise.
2092         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2093
2094         * stdio-common/printf_fp.c: Fix chars_needed computation.
2095         Patch by Greg McGary <greg@mcgary.org>.
2096
2097 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2098
2099         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2100         _dl_loaded are NULL.
2101
2102 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2103
2104         * manual/arith.texi (feholdexcept): Returns 0 on success.
2105
2106 2000-08-17  Andreas Jaeger  <aj@suse.de>
2107
2108         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2109         (ifr_newname): New.
2110         Reported by Andi Kleen <ak@suse.de>.
2111
2112 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2113
2114         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2115         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2116         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2117
2118 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2119
2120         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2121         of buf->st_ino and kbuf->st_ino, not __st_ino.
2122         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2123         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2124         directive so that only linux/getdents.c is used, not some
2125         architecture specific one.
2126
2127 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2128
2129         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2130         enabled, not disabled exceptions.
2131         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2132         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2133
2134 2000-08-17  Greg McGary  <greg@mcgary.org>
2135
2136         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2137         from test program name when constructing suffix for $(LDLIBS-*).
2138         (bounded-thread-library): New variable.
2139         * crypt/Makefile
2140         [build-shared, build-static] (libcrypt-dep): Remove variable.
2141         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2142         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2143         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2144         (librt-tests): Add variable.  (tests): Use it.
2145         [build-shared, build-static]
2146         ($(addprefix $(objpfx),$(tests)),
2147         $(addprefix $(objpfx),$(librt-tests))):
2148         Consolidate individual dependencies.
2149         [build-bounded]
2150         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2151         Add dependencies.
2152         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2153         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2154         * misc/Makefile
2155         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2156         * rt/Makefile
2157         [build-shared, build-static]
2158         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2159         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2160
2161 2000-08-17  Greg McGary  <greg@mcgary.org>
2162
2163         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2164         * sysdeps/unix/make-syscalls.sh: Likewise.
2165         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2166         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2167         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2168         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2169         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2170
2171 2000-08-17  Greg McGary  <greg@mcgary.org>
2172
2173         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2174         Wrap extern symbols in BP_SYM ().
2175         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2176         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2177         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2178         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2179         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2180         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2181         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2182         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2183         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2184         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2185
2186 2000-08-16  Andreas Schwab  <schwab@suse.de>
2187
2188         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2189         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2190         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2191
2192 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2193
2194         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2195         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2196         * elf/dl-support.c: Define _nl_nloaded.
2197         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2198         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2199         object to global list.
2200         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2201         from _dl_loaded list.
2202         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2203         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2204         number here.
2205
2206         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2207         unmask, exceptions.
2208         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2209         exceptions.
2210         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2211
2212 2000-08-16  Andreas Jaeger  <aj@suse.de>
2213
2214         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2215
2216 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2217
2218         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2219
2220 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2221
2222         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2223         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2224         (sysdep_routines): Add oldgetrlimit64.
2225         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2226         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2227
2228         * include/link.h: Undo last patches.  Hurd now has stat64.
2229         * elf/Makefile: Likewise.
2230         * elf/dl-load.c: Likewise.
2231         * elf/dl-misc.c: Likewise.
2232         * elf/dl-profile.c: Likewise.
2233         * sysdeps/generic/sysd-link.h: Removed.
2234         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2235
2236         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2237         thread event callback function.
2238         (__aio_notify_only): Use function above.
2239         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2240
2241 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2242
2243         * sysdeps/mach/hurd/lseek64.c: New file.
2244
2245 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2246
2247         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2248         Remove typedefs.
2249         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2250         typedefs.
2251         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2252         typedefs.
2253         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2254
2255 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2256
2257         * sysdeps/mach/hurd/xstatconv.c: New file.
2258         * sysdeps/mach/hurd/fxstat64.c: New file.
2259         * sysdeps/mach/hurd/lxstat64.c: New file.
2260         * sysdeps/mach/hurd/xstat64.c: New file.
2261         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2262
2263 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2264
2265         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2266         Initialize, needed for change in common symbol handling in newer
2267         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2268
2269 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2270
2271         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2272         * elf/constload2.c: Add destructor to unload constload3.
2273
2274         * include/link.h: Include sysd-link.h.
2275         * sysdeps/generic/sysd-link.h: New file.
2276         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2277         * elf/Makefile (distribute): Add sysd-link.h.
2278         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2279         types and functions directly.
2280         * elf/dl-misc.c: Likewise.
2281         * elf/dl-profile.c: Likewise.
2282
2283         * elf/loadfail.c (main): Close all successfully loaded objects.
2284
2285         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2286         free wd.
2287         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2288         there is already one.
2289
2290         * elf/dl-close.c: Pretty print.
2291
2292 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2293
2294         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2295         global (with file scope).  Add __libc_subfreeres function to free the
2296         string.
2297         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2298         in ttyname function.
2299
2300         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2301
2302         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2303
2304         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2305         mapping them to /x5c and /x7e respectively.
2306
2307         * locale/programs/ld-ctype.c: Add support for more definitions after
2308         copy statement.
2309
2310 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2311
2312         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2313         * sysdeps/unix/sysv/linux/kernel-features.h
2314         (__ASSUME_GETDENTS64_SYSCALL): Define.
2315         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2316         syscall if available to get d_type fields.
2317         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2318         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2319         __lxstat64): Export at GLIBC_2.2.
2320         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2321         Likewise.
2322         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2323         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2324         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2325         getdirentries64, versionsort64): Remove.
2326         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2327         getdirentries64, versionsort64): Remove.
2328
2329 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2330
2331         * posix/Makefile: Remove rules to generate glob package.
2332
2333         * posix/Makefile (tests): Add tst-regexloc.
2334         (tst-regexloc-ENV): Add LOCPATH.
2335         * posix/tst-regexloc.c: New file.
2336
2337 2000-08-12  Andreas Jaeger  <aj@suse.de>
2338
2339         * include/features.h (__STDC_ISO_10646__): Define.
2340         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2341
2342 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2343
2344         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2345
2346         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2347         for revision 6 and up).
2348
2349         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2350         including <time.h>.
2351         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2352         to get definitions of just these types.
2353
2354         * signal/signal.h: Define thread signal handling functions also for
2355         POSIX95.
2356
2357         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2358         POSIX95.
2359         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2360         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2361         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2362         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2363
2364         * sysvipc/sys/shm.h: Define pid_t for XPG.
2365
2366         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2367         they are not anymore required here.
2368
2369         * wcsmbs/wchar.h: Make the various wide char string and stream
2370         functions available for the respective XPG versions.
2371
2372         * nss/Makefile: Remove rules to build and distribute nss_db.
2373
2374         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2375         * sysdeps/generic/scandir64.c: Likewise.
2376         * sysdeps/generic/versionsort64.c: Likewise.
2377
2378 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2379             Benjamin Koznik  <bkoz@redhat.com>
2380
2381         * libio/fileops.c: Merge with libstdc++-v3.
2382         * libio/genops.c: Likewise.
2383         * libio/iofclose.c: Likewise.
2384         * libio/iofopen.c: Likewise.
2385         * libio/iofwide.c: Likewise.
2386         * libio/libio.h: Likewise.
2387         * libio/libioP.h: Likewise.
2388         * libio/stdfiles.c: Likewise.
2389         * libio/stdio.c: Likewise.
2390         * libio/wfileops.c: Likewise.
2391         * libio/wgenops.c: Likewise.
2392
2393         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2394
2395 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2396
2397         * locale/programs/localedef.c: Implement --prefix option to allow
2398         writing in standard places of alternative install directories.
2399
2400         * posix/regex.c (compile_range): Implement collation sequence
2401         handling for glibc.  Use simple character ordering otherwise and
2402         not strcoll.
2403
2404 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2405
2406         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2407
2408 2000-08-12  Andreas Jaeger  <aj@suse.de>
2409
2410         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2411         __USE_FILE_OFFSET64 correctly for locking.
2412         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2413
2414 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2415
2416         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2417         Define for 2.4.1 on sparc as well.
2418         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2419         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2420         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2421         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2422
2423 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2424
2425         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2426         defined.
2427
2428 2000-08-12  Andreas Jaeger  <aj@suse.de>
2429
2430         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2431         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2432
2433         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2434         mips2 for assembler.
2435
2436         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2437         if fnctl64 is not available for F_*LK*64.
2438
2439         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2440
2441 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2442
2443         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2444         Define for 2.4.1 on x86.
2445         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2446         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2447         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2448
2449         * dirent/dirent.h: Define DT_WHT.
2450
2451         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2452         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2453         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2454         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2455         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2456         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2457
2458 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2459
2460         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2461         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2462         * inet/Makefile (tests): Add tst-gethnm.
2463         * inet/tst-gethnm.c: New file.
2464
2465         * rt/aio_cancel.c: If canceling a specific request which is running
2466         *really* do nothing.
2467         * rt/aio_misc.h: Add `done' to states of a request.
2468         * rt/aio_misc.c: Add several tests for the correct state.
2469         Simplify request table memory handling.
2470
2471 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2472
2473         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2474         * dirent/scandir64.c: Move...
2475         * sysdeps/generic/scandir64.c: ...here.
2476         * dirent/alphasort64.c: Move...
2477         * sysdeps/generic/alphasort64.c: ...here.
2478         * dirent/versionsort64.c: Move...
2479         * sysdeps/generic/versionsort64.c: ...here.
2480         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2481         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2482         Export symbols at GLIBC_2.2.
2483         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2484         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2485         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2486         __versionsort64): Add prototypes.
2487         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2488         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2489         unused prototype.
2490         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2491         and GLIBC_2.2.
2492         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2493         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2494         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2495         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2496         __u_quad_t.
2497         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2498         Adjust for kernel-2.4.0-test6 layout.
2499         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2500         GLIBC_2.1 and GLIBC_2.2.
2501         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2502         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2503         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2504         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2505         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2506         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2507         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2508         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2509         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2510         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2511         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2512         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2513         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2514         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2515         __u_quad_t.
2516         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2517         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2518         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2519         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2520         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2521         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2522         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2523         __u_quad_t.
2524         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2525         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2526         Define.
2527         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2528         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2529         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2530         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2531         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2532         Define.
2533         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2534         alpha/readdir.c.
2535         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2536         alpha/readdir_r.c
2537         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2538         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2539         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2540         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2541         st_ino from __st_ino.
2542         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2543         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2544         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2545         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2546         set __st_ino in addition to st_ino.
2547         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2548         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2549         __old_getdents64 as well.
2550         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2551         getdirentries64 and old_getdirentries64 as well.
2552         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2553         __GETDENTS): Define.
2554         (GETDENTS64): Remove.
2555         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2556         Define.
2557         (GETDENTS64): Remove.
2558         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2559         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2560         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2561         as well.
2562         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2563         __old_readdir64_r as well.
2564         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2565         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2566
2567 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2568
2569         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2570         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2571         define of the kernel.
2572         Add missing __SEG_PSTKOVF definition.
2573         Adjust the padding of struct siginfo and struct sigevent to
2574         match the fact that sigval_t is 64 bit.
2575
2576 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2577
2578         * timezone/zic.c: Update from tzcode2000f.
2579         * timezone/australasia: Update from tzdata2000f.
2580         * timezone/europe: Likewise.
2581         * timezone/southamerica: Likewise.
2582         * timezone/yearistype: Likewise.
2583
2584 2000-08-10  Andreas Jaeger  <aj@suse.de>
2585
2586         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2587         stat with current MIPS kernel.
2588
2589 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2590
2591         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2592         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2593         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2594         Remove the junk that's only relevant in the Linux kernel itself.
2595         Add a warning saying that this file is now obsolete, and include
2596         <sys/procfs.h>.
2597         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2598         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2599         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2600         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2601         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2602         and add the notice that the file is primarily there for GDB.
2603         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2604
2605 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2606
2607         * time/tzfile.c (__tzfile_compute): __tzstring zones
2608         from zone_names.
2609
2610 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2611
2612         * resolv/resolv.h (__res_state): Surround prototype with
2613         __BEGIN_DECLS/__END_DECLS.
2614         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2615
2616 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2617
2618         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2619         Make independant of asm/resource.h from the Linux kernel.
2620
2621 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2622
2623         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2624
2625 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2626
2627         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2628         * locale/Makefile (locale-CPPFLAGS): Likewise.
2629
2630 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2631
2632         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2633         for AMD processors.
2634
2635 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2636
2637         * misc/Versions (mincore): Export at GLIBC_2.2.
2638
2639 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2640
2641         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2642
2643 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2644
2645         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2646         socketpair.  Made socketpair a weak alias.
2647         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2648         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2649         conforming, but fall back on the old protocol if the socket server
2650         doesn't support it.
2651         * include/sys/socket.h: Add prototype for __socketpair.
2652
2653 2000-08-09  Andreas Schwab  <schwab@suse.de>
2654
2655         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2656         long long modifier is seen.
2657
2658         * elf/nodelete.c (do_test): Remove reference to undefined member
2659         sa_restorer.
2660         * rt/tst-aio4.c (do_test): Likewise.
2661
2662         * configure.in: Add `-lm' when checking for libgd.
2663         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2664         linking.
2665
2666 2000-08-09  Andreas Jaeger  <aj@suse.de>
2667
2668         * configure.in: Change required make versions.
2669
2670         * manual/install.texi (Tools for Compilation): Document required
2671         make version.
2672         (Supported Configurations): Update list of supported
2673         configurations.
2674
2675 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2676
2677         * locale/linereader.c (get_string): Don't print an error is a string
2678         contains an unknown character.
2679
2680 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2681
2682         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2683         (new_symbol): Take new parameters with name of the symbol.
2684         Adjust callers.
2685         (handle_ellipsis): Don't only allow character symbols.
2686         (collate_read): Allow string of collating elements contain invalid
2687         characters; ignore entry in this case.
2688         Handle ellipsis of collating symbols before first order_start.
2689         Allow ellipsis in state 0.
2690
2691 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2692
2693         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2694         error message.
2695         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2696
2697 2000-08-04  Greg McGary  <greg@mcgary.org>
2698
2699         * posix/regex.c (SET_HIGH_BOUND): New macro.
2700         (MOVE_BUFFER_POINTER): Use it.
2701         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2702         (EXTEND_BUFFER): Use it.
2703
2704 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2705
2706         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2707         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2708         _wide_data but from _IO_FILE directly.
2709         * libio/iofclose.c: Likewise.
2710         * libio/wfileops.c: Likewise.
2711
2712         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2713         * libio/libioP.h: Change prototypes.
2714
2715 2000-08-03  Greg McGary  <greg@mcgary.org>
2716
2717         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2718         frame pointer early so that we save caller's frame pointer.
2719         * sysdeps/i386/elf/setjmp.S: Likewise.
2720
2721         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2722         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2723
2724         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2725         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2726         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2727
2728 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2729
2730         * iconvdata/big5.c: Updated.
2731         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2732
2733 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2734
2735         * Makeconfig (all-subdirs): Add conform.
2736         * conform/Makefile: Include ../Rules.
2737
2738         * Makefile (README): Add rules to generate here as well.
2739
2740 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2741
2742         * version.h (VERSION): Bump to 2.1.92.
2743
2744         * sysdeps/ia64/Dist: Add _mcount.S.
2745
2746         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2747
2748         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2749
2750         * elf/Makefile (distribute): Add missing modules.
2751
2752         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2753
2754         * posix/regex.c (compile_range): Translate range start and end
2755         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2756
2757         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2758         asm/resource.h.
2759
2760         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2761
2762 2000-08-02  Andreas Jaeger  <aj@suse.de>
2763
2764         * elf/elf.h (EM_S390): Added.
2765         (R_390_*): New relocs for S390.
2766
2767         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2768         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2769         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2770         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2771         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2772         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2773         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2774         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2775         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2776         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2777         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2778         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2779         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2780         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2781         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2782         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2783         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2784         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2785         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2786         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2787         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2788         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2789         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2790         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2791         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2792         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2793         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2794         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2795         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2796         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2797         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2798         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2799         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2800         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2801         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2802         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2803         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2804         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2805         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2806         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2807         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2808         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2809         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2810         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2811         * sysdeps/s390/sysdep.h: New file.
2812         * sysdeps/s390/sys/ucontext.h: New file.
2813         * sysdeps/s390/sub_n.S: New file.
2814         * sysdeps/s390/strncpy.S: New file.
2815         * sysdeps/s390/strcpy.S: New file.
2816         * sysdeps/s390/stackinfo.h: New file.
2817         * sysdeps/s390/setjmp.S: New file.
2818         * sysdeps/s390/s390-mcount.S: New file.
2819         * sysdeps/s390/mul_1.S: New file.
2820         * sysdeps/s390/memusage.h: New file.
2821         * sysdeps/s390/memset.S: New file.
2822         * sysdeps/s390/memcpy.S: New file.
2823         * sysdeps/s390/memchr.S: New file.
2824         * sysdeps/s390/machine-gmon.h: New file.
2825         * sysdeps/s390/ldbl2mpn.c: New file.
2826         * sysdeps/s390/gmp-mparam.h: New file.
2827         * sysdeps/s390/fpu/fpu_control.h: New file.
2828         * sysdeps/s390/fpu/fesetround.c: New file.
2829         * sysdeps/s390/fpu/fegetround.c: New file.
2830         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2831         * sysdeps/s390/fpu/bits/fenv.h: New file.
2832         * sysdeps/s390/ffs.c: New file.
2833         * sysdeps/s390/elf/start.S: New file.
2834         * sysdeps/s390/elf/setjmp.S: New file.
2835         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2836         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2837         * sysdeps/s390/dl-machine.h: New file.
2838         * sysdeps/s390/bzero.S: New file.
2839         * sysdeps/s390/bsd-setjmp.S: New file.
2840         * sysdeps/s390/bsd-_setjmp.S: New file.
2841         * sysdeps/s390/bits/string.h: New file.
2842         * sysdeps/s390/bits/setjmp.h: New file.
2843         * sysdeps/s390/bits/huge_val.h: New file.
2844         * sysdeps/s390/bits/endian.h: New file.
2845         * sysdeps/s390/bits/byteswap.h: New file.
2846         * sysdeps/s390/bcopy.S: New file.
2847         * sysdeps/s390/backtrace.c: New file.
2848         * sysdeps/s390/atomicity.h: New file.
2849         * sysdeps/s390/asm-syntax.h: New file.
2850         * sysdeps/s390/addmul_1.S: New file.
2851         * sysdeps/s390/add_n.S: New file.
2852         * sysdeps/s390/abort-instr.h: New file.
2853         * sysdeps/s390/__longjmp.c: New file.
2854         * sysdeps/s390/Makefile: New file.
2855         * sysdeps/s390/Implies: New file.
2856         * sysdeps/s390/Dist: New file.
2857         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2858
2859 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2860
2861         Remove incompatible IPv6 extension of RPC.
2862         * sunrpc/Makefile: Undo changes.
2863         * sunrpc/rpc_main.c: Likewise.
2864         * sunrpc/rpc/clnt.h: Likewise.
2865         * sunrpc/rpc/svc.h: Likewise.
2866         * sunrpc/bindrsvprt6.c: Removed.
2867         * sunrpc/clnt_tcp6.c: Removed.
2868         * sunrpc/clnt_udp6.c: Removed.
2869         * sunrpc/svc_tcp6.c: Removed.
2870         * sunrpc/svc_udp6.c: Removed.
2871
2872         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
2873         dgettext, and dcgettetxt.
2874
2875         * intl/locale.alias: Update japanese aliases.
2876
2877         * sysdeps/ia64/bits/byteswap.h: New file.
2878         Patch by Dan Pop <Dan.Pop@cern.ch>.
2879
2880         * misc/sys/cdefs.h: Define __attribute_format_arg__.
2881         * intl/libintl.h: Use it here instead of using __attribute__ directly.
2882
2883 2000-07-13  H.J. Lu  <hjl@gnu.org>
2884
2885         * posix/regex.c (re_max_failures): Set to 4000.
2886
2887 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2888
2889         * gnulib/Makefile (tests): Add tst-gcc.
2890         * gnulib/tst-gcc.c: New file.
2891
2892         * assert/Makefile (routines): Add __assert.
2893         * assert/Versions: Export __assert for glibc 2.2.
2894         * assert/__assert.c: New file.
2895         * assert/assert.h: Declare __assert.
2896
2897 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2898
2899         * locale/localeinfo.h (_ISCTYPE): New macro.
2900         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
2901         LC_CTYPE locale format.
2902         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
2903         (ctype_output): Output class_b[nr] right before class_3level[nr].
2904         (allocate_arrays): Fill class_b, similarly to class_3level.
2905
2906 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2907             Joseph S. Myers  <jsm28@cam.ac.uk>
2908
2909         * math/tgmath.h: Make standard compliant.  Don't ask how.
2910
2911 2000-07-04  H.J. Lu  <hjl@gnu.org>
2912
2913         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
2914         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
2915         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
2916
2917 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2918
2919         * include/features.h (_XOPEN_SOURCE): Update the explanation.
2920         (__USE_LARGEFILE): Add an explanation.
2921         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
2922         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
2923
2924 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2925
2926         * libio/Makefile: Enable exception handling for genops, wgenops,
2927         fileops, and wfileops.
2928
2929 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2930
2931         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
2932         acount that elf/rtld's main program might remove some varibales
2933         from the environment if we're trying to be secure.  Move the Hurd
2934         startup data if necessary, or, if we there is no startup data,
2935         make sure the magical convention that ARGV[0] is stored just after
2936         the environment list.
2937
2938 2000-08-01  Philip Blundell  <philb@gnu.org>
2939
2940         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
2941         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
2942         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
2943         oldsetrlimit for GLIBC_2.0.
2944
2945 2000-08-01  Andreas Jaeger  <aj@suse.de>
2946
2947         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
2948         (LINE_PARSER): Allow any number of spaces between ip address and
2949         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
2950
2951         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
2952
2953         * include/netdb.h: Remove getipnodebyaddr and friends, leave
2954         constants in.
2955
2956         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
2957         _nss_nisplus_getipnodebyname_r.
2958
2959         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
2960         now, getipnodebyname is deprecated.
2961         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
2962         Likewise.
2963
2964         * inet/Makefile (routines): Don't build getipnodebyaddr and
2965         friends.
2966
2967         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
2968
2969         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
2970
2971         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
2972
2973         * wctype/Makefile (distribute): Add wchar-lookup.h.
2974
2975         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
2976
2977         * iconvdata/Makefile (distribute): Add isiri-3342.h.
2978
2979 2000-08-01  Andreas Schwab  <schwab@suse.de>
2980
2981         * Make-dist (dist): Resolve `..' in file names.
2982
2983 2000-08-01  Andreas Jaeger  <aj@suse.de>
2984
2985         * stdio-common/Makefile (distribute): Remove removed files, add
2986         new files.
2987
2988         * Makefile (distribute): Remove include/db_185.h and db.h.
2989
2990         * include/db_185.h: Remove, it's not needed anymore.
2991         * include/db.h: Likewise.
2992
2993 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2994
2995         * inet/Makefile (tests): Remove tst-ipnode.
2996         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
2997         now.
2998
2999 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3000
3001         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3002         endp statements have already been added.
3003
3004 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3005
3006         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3007         <sysdeps/ia64/sysdep.h>.
3008
3009         * sysdeps/ia64/_mcount.S: New file.
3010
3011         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3012         __gmon_start__.  Fix up extraneous whitespace.
3013
3014 2000-01-12  H.J. Lu  <hjl@gnu.org>
3015
3016         * sysdeps/ia64/elf/initfini.c: New file.
3017
3018 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3019
3020         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3021         dependency between branch and ar.pfs write.
3022
3023 2000-07-31  H.J. Lu  <hjl@gnu.org>
3024
3025         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3026         handle the wchar_t array.
3027
3028 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3029
3030         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3031         10646 which are not yet assigned.
3032         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3033
3034 2000-07-31  Andreas Jaeger  <aj@suse.de>
3035
3036         * inet/Versions: Remove getipnodebyaddr and friends from
3037         GLIBC_2.2.
3038
3039         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3040
3041 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3042
3043         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3044         ch >= 0x81 && ch2 < 0x40 as invalid.
3045
3046 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3047
3048         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3049         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3050
3051 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3052
3053         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3054         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3055
3056 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3057
3058         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3059         0xb8.
3060         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3061
3062 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3063
3064         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3065
3066 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3067
3068         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3069         (from_ucs4): Change values of U+00A4 and U+00ED.
3070         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3071
3072 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3073
3074         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3075         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3076
3077 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3078
3079         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3080         * iconvdata/isiri-3342.h: New file.
3081         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3082         treat 0x80 as a gap.
3083
3084 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3085
3086         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3087         (utf8_encode): Use simple shifts instead.  Fix return value.
3088
3089 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3090
3091         * timezone/private.h: Update from tzcode2000e.
3092         * timezone/asia: Update from tzdata2000e.
3093         * timezone/australasia: Likewise.
3094         * timezone/europe: Likewise.
3095         * timezone/northamerica: Likewise.
3096         * timezone/zone-tab: Likewise.
3097
3098 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3099
3100         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3101         the order of struct sigaltstack members is different.
3102
3103 2000-07-26  Philip Blundell  <philb@gnu.org>
3104
3105         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3106
3107 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3108
3109         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3110         * locale/programs/ld-ctype.c: Adjust for this.
3111
3112         * locale/programs/ld-collate.c: Add more alignment checks.
3113         * locale/string/strcoll.c: Likewise.
3114
3115 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3116
3117         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3118         outside USE_IN_LIBIO block.
3119
3120 2000-07-26  Philip Blundell  <philb@gnu.org>
3121
3122         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3123         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3124
3125 2000-07-28  Philip Blundell  <philb@gnu.org>
3126
3127         * math/test-fpucw.c: Ignore reserved bits in control word.
3128
3129 2000-07-28  Philip Blundell  <philb@gnu.org>
3130
3131         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3132         (ret): Redefine to PSEUDO_RET.
3133         (PSEUDO): Remove jump to syscall_error.
3134
3135 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3136
3137         * resolv/README: Add some information about using the resolver in
3138         multi-threaded code and with C++.  Spelling fixes.
3139
3140 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3141
3142         * resolv/resolv.h (struct __sockaddr_in): Remove.
3143         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3144
3145 2000-07-29  Greg McGary  <greg@mcgary.org>
3146
3147         * Rules (test-bp-inputs, make-test-out): New variables.
3148         ($(objpfx)%-bp.out): New rule.
3149         ($(objpfx)%.out): Rewrite in terms of new variables.
3150
3151         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3152         internal function that uses vtable.
3153         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3154         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3155
3156         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3157         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3158         (chunk_align): Likewise.
3159
3160         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3161         in a way that conforms to decl, and avoids spurious bounds violation.
3162
3163         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3164         * sysdeps/generic/frame.h: Likewise.
3165         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3166         around return value.
3167         (__backtrace): Qualify frame-pointer chain and return address
3168         pointers as __unbounded.  Wrap bounds around variable `current'.
3169         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3170         around return value.
3171         (catch_segfault): Qualify frame-pointer chain and return address
3172         pointers as __unbounded.  Wrap bounds around variable `current'.
3173         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3174         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3175         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3176         __unbounded.
3177         (__backtrace): Qualify frame-pointer chain and return address
3178         pointers as __unbounded.  Wrap bounds around variable `current'.
3179
3180         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3181         * sysdeps/i386/mul_1.S: Likewise.
3182         * sysdeps/i386/submul_1.S: Likewise.
3183         * sysdeps/i386/i586/addmul_1.S: Likewise.
3184         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3185         * sysdeps/i386/i586/submul_1.S: Likewise.
3186
3187 2000-07-27  Andreas Jaeger  <aj@suse.de>
3188
3189         * libio/Depend: New file, libio needs localedata for tests.
3190         * posix/Depend: Likewise.
3191
3192 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3193
3194         * stdio-common/_i18n_itoa.c: Removed.
3195         * stdio-common/_i18n_itoa.h: Removed.
3196         * stdio-common/_i18n_itowa.c: Removed.
3197         * stdio-common/_i18n_itowa.h: Removed.
3198         * stdio-common/_i18n_number.h: New file.
3199         * stdio-common/Depend: New file.
3200         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3201         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3202         printing.  Change printing of numbers with locale specific digits to
3203         use new code in _i18n_number.h.
3204         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3205         _i18n_itowa.
3206
3207         * stdio-common/bug13.c: Improve messages.
3208
3209         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3210         (set_class_defaults): Always search also for Uxxxx names.
3211         Detect insufficient number of outdigits.
3212
3213         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3214
3215 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3216
3217         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3218         _NL_CTYPE_MAP_NAMES.
3219         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3220         * wctype/wcfuncs.c (towlower, towupper): Use them.
3221         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3222         * wctype/wctrans.c (wctrans): Likewise.
3223         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3224
3225 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3226
3227         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3228         Use the optimized version of this function outside glibc as well.
3229
3230 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3231
3232         * locale/indigits.h (indigit_value): Correct.
3233         * locale/indigitswc.h (indigitwc_value): Correct.
3234         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3235         conversion, add GROUP checking for it, fix GROUP number
3236         conversion with strlen(thousands) > 1.
3237         Honour width correctly in the presence of floating
3238         decimal points and thousands separators.
3239         * stdio-common/tst-sscanf.c: New test.
3240         * stdio-common/Makefile: Add it to tests.
3241         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3242         thousands separators and group argument is non-zero.
3243
3244 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3245
3246         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3247         starts at GLIBC_2.2.
3248
3249 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3250
3251         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3252         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3253         _test_and_set.
3254         (headers): Add sys/tas.h.
3255         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3256         GLIBC_2.2 from libc.
3257         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3258         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3259         _test_and_set.
3260
3261 2000-07-28  Andreas Jaeger  <aj@suse.de>
3262
3263         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3264
3265         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3266         ($(objpfx)tst-dladdr.out): new.
3267         (tests): Add tst-dladdr.
3268         ($(objpfx)glrefmain): Use libdl.
3269
3270         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3271         <vs@caldera.de>.
3272
3273 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3274
3275         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3276         ftruncate(64) calls.
3277
3278 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3279
3280         * intl/tst-translit.c: Include string.h to get prototype for
3281         strcmp().
3282
3283 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3284
3285         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3286         name and add weak alias for __fork.
3287
3288         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3289         & pwrite to use __libc_<name> as strong names instead of
3290         __syscall_<name>.
3291
3292         * include/sched.h: Add clone2 prototype.
3293
3294 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3295
3296         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3297         procedure name twice.
3298
3299 2000-07-27  Philip Blundell  <philb@gnu.org>
3300
3301         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3302
3303 2000-07-27  Andreas Jaeger  <aj@suse.de>
3304
3305         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3306         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3307         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3308         Reported by Andi Kleen <ak@suse.de>.
3309
3310         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3311         (do_wait): Test requests with aio_return64.
3312         (do_test): Change callers of do_wait.
3313
3314 2000-07-26  Andreas Jaeger  <aj@suse.de>
3315
3316         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3317         (do_wait): Test requests with aio_return.
3318         (do_test): Change callers of do_wait.
3319
3320 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3321
3322         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3323         from request list.  Don't do the list handling here, call
3324         __aio_remove_request.
3325         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3326         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3327         request might already be processed.  Don't do the list handling
3328         here, call __aio_remove_request.
3329
3330         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3331         LIO_DSYNC.
3332
3333         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3334         are missing.
3335
3336 2000-07-27  Greg McGary  <greg@mcgary.org>
3337
3338         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3339         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3340         in union init.  Pass zero for ignored semnum arg to semctl.
3341         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3342
3343 2000-07-26  Greg McGary  <greg@mcgary.org>
3344
3345         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3346         data structure pointers as __unbounded.
3347         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3348         * sysdeps/generic/bp-semctl.h: New file.
3349         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3350         pointers as __unbounded.  Check bounds of syscall args.
3351         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3352         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3353         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3354         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3355         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3356         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3357         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3358         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3359         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3360         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3361         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3362         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3363         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3364         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3365         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3366         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3367
3368 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3369
3370         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3371         by default.
3372         * locale/C-ctype.c: Likewise.
3373         * wcsmbs/wcsmbsload.c: Likewise.
3374
3375 2000-07-26  Greg McGary  <greg@mcgary.org>
3376
3377         * Makeconfig (+link-bounded, link-libc-bounded,
3378         link-extra-libs-bounded): New variables.
3379         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3380         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3381         * Rules (tests-bp.out): New variable.
3382         (tests): Conditionally add BP tests.
3383         (binaries-bounded): Add variable and associated rule.
3384         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3385         Move conditional stuff after place where condition is defined.
3386
3387         * malloc/malloc.c (bp-checks.h): Add #include.
3388         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3389         (_bin_at): Add unbounded version of bin_at.
3390         (IAV, chunk_alloc): Use unbounded _bin_at.
3391         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3392         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3393         Wrap BOUNDED_N around return value.
3394         (chunk_realloc): Adjust oldsize once.
3395
3396         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3397         (__ubp_memchr): Add correct decl.
3398         (_CHECK_STRING): Use __ubp_memchr.
3399         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3400         New alias for unbounded-pointer __memchr.
3401         * sysdeps/i386/memchr.S: Likewise.
3402         * sysdeps/ia64/memchr.S: Likewise.
3403         * sysdeps/m68k/memchr.S: Likewise.
3404         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3405         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3406         * sysdeps/vax/memchr.s: Likewise.
3407
3408         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3409         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3410         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3411         * sysdeps/i386/i686/strtok.S: Likewise.
3412         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3413         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3414
3415         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3416         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3417
3418         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3419         bounds of copy_result to mount_proc.
3420
3421 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3422
3423         * wctype/wctype.h (__wctrans_l): New declaration.
3424         * wctype/wctrans_l.c: New file.
3425         * wctype/Makefile (routines): Add wctrans_l.
3426
3427 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3428
3429         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3430         Patch by MacGyver <macgyver@tos.net>.
3431
3432 2000-07-26  Andreas Jaeger  <aj@suse.de>
3433
3434         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3435         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3436         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3437
3438         * rt/tst-aio.c (test_file): Fix typo.
3439         * rt/tst-aio64.c (test_file): Likewise.
3440
3441         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3442         * rt/Makefile: Add rules to build and run tst-aio3.
3443
3444         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3445         it's not needed and confuses only.
3446
3447 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3448
3449         * resolv/res_init.c: Add support for nameserver communication with
3450         IPv6.
3451         * resolv/res_send.c: Likewise.
3452         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3453         in nsaddrs field.
3454         Patch by <venaas@nvg.ntnu.no>.
3455
3456 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3457
3458         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3459         (wcwidth_table_get): New function.
3460         (wcwidth_table_add): Call it.
3461         (wctrans_table_get): New function.
3462         (wctrans_table_add): Call it.
3463
3464 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3465
3466         * rt/lio_listio.c (lio_listio): Always disable individual
3467         notification.
3468         * rt/Makefile: Add rules to build and run tst-aio2.
3469         * rt/tst-aio2.c: New file.
3470
3471         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3472         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3473
3474 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3475
3476         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3477         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3478         leading and trailing spaces from host, user and domain name.
3479
3480 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3481
3482         * csu/defs.awk: Add support for need_endp.
3483
3484 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3485
3486         * resolv/resolv.h: Remove __P from res_send_qhook and
3487         res_send_rhook typedefs.
3488
3489 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3490
3491         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3492
3493 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3494
3495         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3496
3497 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3498
3499         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3500         calling thread, set the cancellation flag and return success
3501         instead of EINTR.
3502
3503 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3504
3505         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3506         * libio/tst-widetext.c: New file.
3507         * libio/tst-widetext.input: New file.
3508
3509         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3510
3511         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3512         empty external buffer correctly.
3513
3514 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3515
3516         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3517         __STRING(entry) and not #entry.
3518         (_RTLD_EPILOGUE): Likewise.
3519         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3520
3521 2000-07-25  Andreas Jaeger  <aj@suse.de>
3522
3523         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3524         according to changes in test program, run also with static only
3525         builds.
3526         ($(objpfx)tst-printf.out): Likewise.
3527
3528         * stdio-common/tst-unbputc.sh: Likewise.
3529         * stdio-common/tst-printf.sh: Likewise.
3530
3531 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3532
3533         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3534
3535         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3536         loop.
3537
3538         * libio/fileops.c: Pretty print.
3539
3540 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3541
3542         * wctype/wchar-lookup.h: New file.
3543         * wctype/iswctype.c: Include "wchar-lookup.h".
3544         (__iswctype): Support alternate locale format with 3-level tables.
3545         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3546         * wctype/towctrans.c (__towctrans): Likewise.
3547         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3548         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3549         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3550         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3551         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3552         __iswxdigit, towlower, towupper): Support alternate locale format
3553         with 3-level tables.
3554         * wctype/wcextra.c (iswblank): Likewise.
3555         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3556         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3557         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3558         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3559         format with 3-level tables.
3560         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3561         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3562         format, return a 3-level table pointer.
3563         * wctype/wctype_l.c (__wctype_l): Likewise.
3564         * wctype/wctrans.c (wctrans): Likewise.
3565         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3566         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3567         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3568         (iswctype): Remove macro definition.
3569         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3570         (internal_wcwidth): Support alternate locale format with 3-level
3571         tables.
3572         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3573         New nl_items.
3574         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3575         Define them as being type "word".
3576         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3577         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3578         __ctype32_width): New exported variables.
3579         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3580         alternate locale format. Don't initialize __ctype_names and
3581         __ctype_width in the alternate locale format.
3582         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3583         * locale/programs/localedef.c (oldstyle_tables): New variable.
3584         (OPT_OLDSTYLE): New macro.
3585         (options): Add --old-style option.
3586         (parse_opt): Handle --old-style option.
3587         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3588         map_offset, class_3level, map_3level, width_3level members.
3589         (ctype_output): Support for alternate locale format: Computation of
3590         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3591         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3592         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3593         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3594         now contain both class and map tables.
3595         (struct wctype_table): New type.
3596         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3597         functions.
3598         (struct wcwidth_table): New type.
3599         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3600         functions.
3601         (struct wctrans_table): New type.
3602         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3603         functions.
3604         (allocate_arrays): Support for alternate locale format: Set
3605         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3606         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3607         to the first 256 characters. Compute ctype->map_3level. Set
3608         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3609         instead of ctype->width.
3610
3611 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3612
3613         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3614         string functions.
3615
3616 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3617
3618         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3619         in wide characters, not bytes.
3620         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3621         into file.
3622
3623 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3624
3625         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3626         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3627         LC_MEASUREMENT, LC_IDENTIFICATION.
3628
3629         * locale/xlocale.h (struct __locale_struct): Increase size of
3630         __locales array.
3631         * locale/duplocale.c (__duplocale): Copy newly added categories as
3632         well.
3633         * locale/freelocale.c (__freelocale): Free newly added categories.
3634         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3635         If a base is given, use it, don't simply return it.
3636
3637 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3638
3639         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3640         variables, copied_key and copied_salt, instead of boolean variables.
3641
3642 2000-07-24  Andreas Jaeger  <aj@suse.de>
3643
3644         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3645         check for offset.
3646
3647         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3648         initgroups_function, adopted prototype for change from 2000-07-23.
3649         (initgroups): Follow type change.
3650
3651         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3652         & PAGE_MASK case, reformat.
3653
3654         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3655         from stdin and setup environment.
3656
3657 2000-07-24  Andreas Schwab  <schwab@suse.de>
3658
3659         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3660
3661 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3662
3663         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3664         more.  Patch by scarlet@mit.edu [PR libc/1799].
3665
3666         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3667         [PR libc/1792].
3668
3669         * argp/argp-parse.c (parser_finalize): Reverse order in which
3670         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3671
3672         * grp/initgroups.c (initgroups): Don't limit the possible number
3673         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3674         the setgroups call while the call fails and descrease the number
3675         of groups each round.
3676         The name of the initgroups function in the NSS modules changed.
3677         (compat_call): Adapt for dynamic resizing.
3678         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3679         Implement dynamic resizing.
3680         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3681         Likewise.
3682         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3683         * hesiod/Versions: Change exported interface name.
3684         * nis/Versions: Change exported interface name.
3685
3686 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3687
3688         * locale/iso-639.def: Some errors corrected.
3689         Patch by Keld Simonsen.
3690
3691         * include/limits.h: Update non-gcc portion.
3692         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3693
3694 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3695
3696         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3697         program's data space, reallocate only the space that was just
3698         deallocated to release its backing space.
3699
3700 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3701
3702         * stdio-common/vfprintf.c (process_string_arg): For wide character
3703         version, handle precision also correctly.
3704
3705         * nss/nss_files/files-hosts.c: Correct problem with three or more
3706         entries with the same name.
3707
3708         * nss/nss_files/files-hosts.c: Implement multi handling.
3709         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3710
3711 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3712
3713         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3714         strcasecmp.
3715
3716         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3717         * malloc/Makefile: Likewise.
3718         * malloc/tst-mtrace.sh: Likewise.
3719         * posix/Makefile: Likewise.
3720         * posix/globtest.sh: Likewise.
3721         * posix/wordexp-tst.sh: Likewise.
3722         * string/Makefile: Likewise.
3723
3724 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3725
3726         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3727         size instead of LC_ALL to take into account the new locale
3728         categories.
3729
3730 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3731
3732         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3733         remainders of hash table.
3734         * locale/categories.def: Remove remainders of transliteration
3735         hash table.
3736         * locale/langinfo.h: Likewise.
3737         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3738         transliteration tables.
3739
3740         * locale/gen-translit.pl: New file.
3741         * locale/C-translit.h.in: New file.
3742         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3743         data pointers with data from this file.
3744         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3745         and gen-translit.pl.
3746         Add rule to generate C-translit.h.
3747         * intl/tst-translit.c (main): Update for now performed
3748         transliteration.
3749
3750         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3751         (it's no input error).
3752         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3753         * stdio-common/scanf12.c: Correct expected result for first scanf.
3754
3755         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3756         of multibyte character strings in %s format with precision.
3757
3758 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3759
3760         * locale/programs/ld-collate.c (collate_read): Allow collating
3761         symbols and elements be named in reorder-after instructions.
3762         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3763
3764         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3765         duplication with generated name, not the name of the first
3766         character.
3767         Patch by Yong Li <yong.li@asu.edu>.
3768
3769         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3770         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3771
3772 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3773
3774         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3775         allocations only if a non-main arena cannot be extended.
3776
3777 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3778
3779         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3780         in DF_1_NODEFLIB handling.
3781
3782 2000-07-21  Andreas Jaeger  <aj@suse.de>
3783
3784         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3785         own rule.
3786
3787         * libio/fwide.c: Include <wchar.h> for prototype.
3788
3789 2000-07-21  Greg McGary  <greg@mcgary.org>
3790
3791         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3792         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3793         Define in terms of chunk_at_offset.
3794         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3795         (next_bin, prev_bin): offset by size of real array elements.
3796         (chunk_align): Make `m' a scalar, since that's how it's used.
3797
3798 2000-07-21  Greg McGary  <greg@mcgary.org>
3799
3800         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3801         UNCHECK_BOUNDS.
3802         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3803         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3804         Wrap bounds around argv & envp and each of their string members.
3805         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3806         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3807         symbol in BP_SYM ().  Discard bounds of address arg.
3808         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3809         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3810         Discard bounds on address arg, add bounds to return value.
3811
3812 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3813
3814         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3815         * elf/filter.c: New file.
3816         * elf/filtmod1.c: New file.
3817         * elf/filtmod2.c: New file.
3818
3819         * elf/rtld.c: Define _dl_bind_not variable.
3820         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3821         * elf/dl-support.c: Likewise.
3822         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3823         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3824         _dl_bind_not.
3825         (profile_fixup): Likewise.
3826
3827         * libio/Makefile (routines): Add fwide.
3828         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3829         fwide now.  Internal calls to _IO_fwide must do locking themselves
3830         or don't need locking.
3831         * libio/fwide.c: New file.
3832
3833         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3834
3835         * elf/Makefile: Add no modules for nodelete test.
3836         * elf/nodelmod3.c: New file.
3837         * elf/nodelmod4.c: New file.
3838         * elf/nodelete.c: Also test case where dependency of dlopen() object
3839         is marked nodelete.
3840
3841         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3842         * elf/nodlopen.c: New file.
3843         * elf/nodlopenmod.c: New file.
3844         * include/dlfcn.h: Define __RTLD_DLOPEN.
3845         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3846         and this is a dlopen() call, do not load the binary.
3847         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3848         * dlfcn/dlopenold.c: Likewise.
3849         * configure.in: Add test for -z nodelete option.
3850         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3851
3852 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3853
3854         Make Hesiod NSS module thread-safe.
3855
3856         * hesiod/README.hesiod: Update.
3857
3858         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3859         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3860         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3861         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3862         hesiod-proto.
3863         * hesiod/nss_hesiod/hesiod-init.c: New file.
3864         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
3865         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
3866         * hesiod/nss_hesiod/nss_hesiod.h: New file.
3867         * hesiod/nss_hesiod/hesiod-service.c
3868         (_nss_hesiod_getservbyport_r): New function.  Provide support for
3869         looking up services by port number.
3870         * hesiod/nss_hesiod/hesiod-proto.c: New file.
3871
3872         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
3873         * hesiod/hesiod.h: Likewise.
3874         * hesiod/hesiod_p.h: Likewise.
3875
3876 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3877
3878         Fix problems with `struct __res_state' getting too big.
3879         * resolv/resolv.h (struct __sockaddr_in): New definition.
3880         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
3881         the private parts of the structure to save some space.
3882         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
3883         (struct sockaddr_in *) in call to sock_eq.
3884         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
3885
3886 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3887
3888         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
3889         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
3890         with nodelete.
3891         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
3892         to _dl_map_object.  Return immediately if no object loaded.
3893         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
3894         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
3895         if it exists into l_flags_1 word.
3896         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
3897         it to determine whether loading is wanted or not.
3898         (_dl_map_object): Likewise.
3899         Call _dl_map_object_from_fd with new parameter.
3900         * sysdeps/generic/ldsodefs.h: Update prototype.
3901         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
3902         * elf/rtld.c: Likewise.
3903         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3904         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
3905         * elf/noload.c: New file.
3906         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
3907         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
3908         * sysdeps/mips/bits/dlfcn.h: Likewise.
3909         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
3910         (tests-nodelete-yes): Define.
3911         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
3912         Add rules to build nodelete and modules.
3913         * elf/nodelete.c: New file.
3914         * elf/nodelmod1.c: New file.
3915         * elf/nodelmod2.c: New file.
3916         * configure.in: Add test for -z nodelete option.
3917         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3918
3919         * libio/Makefile (tests): Add tst_wprintf2.
3920         (tst_wprintf2-ARGS): Define.
3921         * libio/tst_wprintf2.c: New file.
3922         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
3923
3924         * libio/wfiledoalloc.c: Only allocate external buffer if this
3925         hasn't happened yet.
3926
3927         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
3928         something in the buffer.  gconv call can write up to end of the
3929         buffer, not only _IO_write_end.
3930         (_IO_wfile_overflow): Allocate also external buffer.
3931
3932 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
3933
3934         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
3935         strings with precision in vfwprintf correctly.
3936         * stdio-common/vfprintf.c: Fix completely broken handling of
3937         unbuffered wide character streams.
3938         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3939
3940         * resolv/Makefile (distribute): Add README.
3941
3942         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
3943
3944 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
3945
3946         Update resolver code to BIND 8.2.3-T5B.
3947
3948         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
3949         __res_nclose.
3950         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
3951         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
3952         __res_search.
3953         * resolv/Banner: BIND-8.2.3-T5B.
3954
3955         * resolv/base64.c: Update from BIND 8.2.3-T5B.
3956         * resolv/herror.c: Likewise.
3957         * resolv/inet_addr.c: Likewise.
3958         * resolv/inet_net_ntop.c: Likewise.
3959         * resolv/inet_net_pton.c: Likewise.
3960         * resolv/inet_neta.c: Likewise.
3961         * resolv/inet_ntop.c: Likewise.
3962         * resolv/nsap_addr.c: Likewise.
3963         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
3964         IPv6 addresses (ISC bug #520).
3965
3966         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
3967         * resolv/ns_parse.c: Likewise.
3968         * resolv/ns_netint.c: Likewise.
3969         * resolv/ns_samedomain.c: Likewise.
3970         * resolv/ns_ttl.c: Likewise.
3971         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
3972         RCS ID in object file.
3973
3974         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
3975         * resolv/res_mkquery.c: Likewise.
3976         * resolv/res_query.c: Likewise.
3977         * resolv/res_init.c: Likewise.
3978         (res_setoptions): Mark internal.
3979         * resolv/res_send.c: Likewise.
3980         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
3981         by using poll instead.
3982         * resolv/res_comp.c: Likewise.
3983         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
3984         weak alias for __dn_expand.
3985         * resolv/res_data.c: Likewise.
3986         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
3987         in _res.options.  Avoids a potential security risk by avoiding a
3988         close (0).
3989         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
3990         res_mkquery, res_query, res_querydomain adn res_search weak
3991         aliases for __res_mkquery, __res_query, __res_querydomain and
3992         __res_search.
3993         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
3994         instead to avoid close(0).
3995         (res_init): Always use the static resolver context.
3996         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
3997         alias for __res_init.
3998
3999         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4000         RES_SET_H_ERRNO and accompanying comment to...
4001         * include/resolv.h: ... here.
4002
4003         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4004         * resolv/arpa/nameser_compat.h: Likewise.
4005
4006 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4007
4008         * nss/makedb.c (main): Compare result of load_db with
4009         NSS_STATUS_SUCCESS and not 0.
4010         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4011
4012         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4013
4014 2000-07-18  Greg McGary  <greg@mcgary.org>
4015
4016         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4017         (EXTEND_BUFFER): Use it.
4018
4019 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4020
4021         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4022         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4023         __builtin_return_address.
4024         * dlfcn/dlopenold.c: Likewise.
4025         * dlfcn/dlsym.c: Likewise.
4026         * dlfcn/dlvsym.c: Likewise.
4027         * elf/dl-profstub.c: Likewise.
4028         * malloc/malloc.c: Likewise.
4029         * sysdeps/generic/machine-gmon.h: Likewise.
4030         Based on a patch by schwidefsky@de.ibm.com.
4031
4032 2000-07-18  Andreas Jaeger  <aj@suse.de>
4033
4034         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4035         NULL to elf_machine_fixup_plt t argument to silence GCC.
4036
4037         * include/string.h: Add prototype for __memchr.
4038
4039         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4040
4041         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4042         instead of memrchr.
4043
4044 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4045
4046         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4047
4048         * locale/C-ctype.c: Add initializers for gap elements.
4049         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4050         for gap elements.
4051
4052 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4053
4054         * nscd/nscd.c (print_version): Update copyright year.
4055
4056 2000-07-17  Greg McGary  <greg@mcgary.org>
4057
4058         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4059         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4060         signature argnames with angle-brackets for use as word delimiters,
4061         and to induce syntax errors for any args not handled.  Split
4062         multi-echo echoes and comment each stage.
4063         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4064         * sysdeps/unix/inet/syscalls.list: Likewise.
4065         * sysdeps/unix/mman/syscalls.list: Likewise.
4066         * sysdeps/unix/syscalls.list: Likewise.
4067         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4068         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4069         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4070         * sysdeps/unix/sysv/syscalls.list: Likewise.
4071         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4072
4073         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4074         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4075         qualifiers.  Don't check NULL-terminator of argv & envp.
4076         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4077         unbounded pointer type in word-size assertion.
4078         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4079         cases to stifle warnings.
4080
4081         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4082         _IO_file_attach.
4083         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4084
4085         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4086         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4087         ptr as __unbouned.
4088
4089         * Makerules (o-objects): Supplement with $(o-objects$o).
4090         * string/Makefile (o-objects.ob): Add variable to pull
4091         unbounded versions of memcpy, memset and memchr into libc_b.
4092
4093         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4094         rather than non-existent __ubp_memchr.
4095         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4096         (_CHECK_STRING, _CHECK_N): New macros.
4097         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4098         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4099         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4100         Add weak alias "memchr".
4101         * sysdeps/generic/memchr.c: Likewise.
4102         * sysdeps/i386/memchr.S: Likewise.
4103         * sysdeps/ia64/memchr.S: Likewise.
4104         * sysdeps/m68k/memchr.S: Likewise.
4105         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4106         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4107         * sysdeps/vax/memchr.s: Likewise.
4108
4109         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4110
4111         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4112         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4113         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4114         __BOUNDED_POINTERS__.
4115         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4116         for __BOUNDED_POINTERS__.
4117
4118 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4119
4120         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4121         field of struct __gconv_trans_data differently.  Don't pass NULL to
4122         trans_init_fct.  Simplify list append operation.
4123
4124 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4125
4126         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4127         not only those having tsearch.
4128
4129 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4130
4131         * locale/langinfo.h: Add placeholder values in enum for removed
4132         LC_CTYPE entries.
4133
4134 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4135
4136         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4137         chain if the PHDR check fails.
4138
4139 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4140
4141         * nss/getent.c (print_hosts): Make sure we always print a space
4142         between numeric addresses and hostnames.
4143
4144 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4145
4146         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4147         i.e. if n_mmaps_max>0.
4148
4149 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4150
4151         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4152         values to remove possible clash with other AI_* constants.
4153         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4154         hexadecimal constants to stress the fact they're in fact
4155         bit flags.
4156
4157 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4158
4159         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4160         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4161         instead of res_init.
4162
4163 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4164
4165         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4166         parameters of memset calls to avoid warnings.
4167
4168 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4169
4170         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4171         necessary.
4172
4173         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4174         Patch by Greg McGary <greg@mcgary.org>.
4175
4176         * io/Makefile (tests): Add tst-getcwd.
4177         * io/tst-getcwd.c: New file.
4178
4179         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4180
4181 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4182
4183         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4184         structure.
4185
4186 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4187
4188         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4189         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4190
4191 2000-07-12  H.J. Lu  <hjl@gnu.org>
4192
4193         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4194         GLIBC_2.2.
4195         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4196         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4197         (sysdep-routines): Add clone2.
4198         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4199
4200 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4201
4202         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4203         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4204
4205 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4206
4207         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4208         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4209         Change type of si_band from "int" to "long".
4210         (si_imm) [USE_GNU]: Define
4211         (si_isr) [USE_GNU]: Ditto.
4212         (ILL_BREAK) [USE_GNU]: Ditto.
4213         (FPE_DECOVF) [USE_GNU]: Ditto.
4214         (FPE_DECDIV) [USE_GNU]: Ditto.
4215         (FPE_DECERR) [USE_GNU]: Ditto.
4216         (FPE_INVASC) [USE_GNU]: Ditto.
4217         (FPE_INVDEC) [USE_GNU]: Ditto.
4218         (TRAP_BRANCH) [USE_GNU]: Ditto.
4219         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4220
4221 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4222
4223         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4224         bits/sigcontext as struct mcontext does not depend on it.
4225
4226         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4227
4228 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4229
4230         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4231
4232 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4233
4234         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4235
4236 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4237
4238         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4239
4240 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4241
4242         * intl/Makefile (test-srcs): Add tst-translit.
4243         (tests): Likewise.
4244         Add rules to build and run tst-translit.
4245         * intl/tst-translit.c: New file.
4246         * intl/tst-translit.sh: New file.
4247         * intl/translit.po: New file.
4248
4249 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4250
4251         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4252         transliteration function did its job, continue, don't stop.
4253
4254         * iconvdata/iso646.c: Little optimizations in body for conversion
4255         from UCS4.
4256
4257 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4258
4259         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4260
4261 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4262
4263         * configure.in: Check for pwd binary.
4264         * config.make.in: Add PWD_P to be subsituted.
4265         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4266
4267 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4268
4269         * iconvdata/Makefile (modules): Add GB18030.
4270         (distribute): Add gb18030.c.
4271         * iconvdata/gconv-modules: Add entries for GB18030 module.
4272         * iconvdata/gb18030.c: New file.
4273         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4274         and Wu Jian.
4275
4276 2000-07-13  Andreas Jaeger  <aj@suse.de>
4277
4278         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4279         patch.
4280
4281         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4282         * inet/getnetgrent.c (free_mem): Likewise.
4283         * misc/mntent.c (free_mem): Likewise.
4284         * nss/getXXbyYY.c (free_mem): Likewise.
4285         * nss/getXXent.c (free_mem): Likewise.
4286         * pwd/fgetpwent.c (free_mem): Likewise.
4287         * shadow/fgetspent.c (free_mem): Likewise.
4288
4289 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4290
4291         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4292         64-bit architecture correctly [PR libc/1794].
4293
4294 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4295
4296         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4297         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4298         report that we are out of memory.
4299         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4300         * elf/dl-libc.c (dlerror_run): Likewise.
4301         * elf/dl-open.c (_dl_open): Likewise.
4302         * elf/rtld.c (dl_main): Likewise.
4303         * elf/dl-error.c: Define _dl_out_of_memory.
4304         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4305         the error string.
4306         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4307         [PR libc/1813].
4308
4309         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4310
4311         * iconv/loop.c: Fix comment.
4312
4313         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4314
4315 2000-07-13  Andreas Jaeger  <aj@suse.de>
4316
4317         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4318         getcwd (NULL, size) with size > 0.
4319         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4320
4321 2000-07-13  Andreas Jaeger  <aj@suse.de>
4322
4323         * posix/Makefile: Remove build rules for libposix.
4324
4325 2000-07-13  Andreas Schwab  <schwab@suse.de>
4326
4327         * sysdeps/generic/glob.c (glob): Fix memory leak.
4328         [SHELL]: Remove reference to undefined variable `files'.
4329         Fixes PR libc/1782.
4330
4331 2000-07-13  Andreas Jaeger  <aj@suse.de>
4332
4333         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4334         functions.
4335
4336         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4337         memory if it was allocated.
4338
4339 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4340
4341         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4342         step.
4343
4344         * iconv/gconv_open.c (__gconv_open): Reapply
4345         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4346
4347                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4348
4349         * iconv/gconv_open.c: Undo last two changes for now.  They break
4350         everything.
4351
4352 2000-07-12  Andreas Jaeger  <aj@suse.de>
4353
4354         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4355         compiler.
4356         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4357         (CFLAGS-dl-cache.c): Likewise.
4358         (CFLAGS-ldconfig.c): Added, passes directory locations.
4359
4360         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4361         locate cache.
4362         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4363         (main): Use configured LIBDIR and SLIBDIR.
4364
4365 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4366
4367         * math/bits/cmathcalls.h (cimag): Add __THROW.
4368         (creal, conj): Likewise.
4369         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4370         by negative value.
4371
4372 2000-07-12  H.J. Lu  <hjl@gnu.org>
4373
4374         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4375         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4376
4377 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4378
4379         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4380         it is wrong.
4381
4382 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4383
4384         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4385
4386 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4387
4388         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4389         __modname.
4390
4391 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4392
4393         * iconv/gconv_open.c (__gconv_open): Initialize
4394         result->__steps[cnt].__data.
4395
4396 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4397
4398         * nss/getent.c (services_keys): Pass port number in network byte
4399         order in call to getservbyport.
4400
4401 2000-07-11  Andreas Jaeger  <aj@suse.de>
4402
4403         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4404         source dir.
4405         * intl/Makefile (do-gettext-test): Likewise.
4406         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4407
4408 2000-07-11  Andreas Schwab  <schwab@suse.de>
4409
4410         * Makeconfig (run-program-prefix): New rule.
4411         (built-program-cmd): Use run-program-prefix.
4412
4413 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4414
4415         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4416         and NOEXPR unconditionally available.
4417
4418 2000-07-12  Greg McGary  <greg@mcgary.org>
4419
4420         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4421         * sysdeps/posix/open64.c: Likewise.
4422         * sysdeps/generic/fegetenv.c: Likewise.
4423         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4424         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4425         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4426         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4427         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4428         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4429
4430 2000-07-11  Greg McGary  <greg@mcgary.org>
4431
4432         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4433         Add extra level of macro expansion.
4434         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4435         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4436         is available at the time `select' prototype is declared.
4437         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4438         Collect non-versioned weak aliases.  Consider only non-versioned
4439         aliases for the user-visible systemcall name.  Do checks inline with
4440         call to primitive system call.
4441         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4442         stand-alone bounds checks to suppress unused value warnings.
4443         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4444
4445 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4446
4447         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4448         file descriptor checking in SUID programs for the Hurd.
4449
4450         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4451         res_hostalias instead of __hostalias for thread-safety.
4452
4453 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4454
4455         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4456         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4457
4458 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4459
4460         * include/features.h: Include ISO C99 features if the compiler used
4461         is an ISO C99 compiler.
4462         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4463
4464 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4465
4466         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4467
4468 2000-07-10  Andreas Jaeger  <aj@suse.de>
4469
4470         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4471         it's overridden by libpthreads.
4472         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4473         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4474         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4475         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4476         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4477
4478         * malloc/Makefile: Run tst-mtrace only with shared libs.
4479
4480         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4481         with shared libs.
4482
4483 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4484
4485         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4486         that gpreg really points to the GOT section of the calling object.
4487         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4488         checking a start address of first one.
4489         Fix typos.
4490         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4491         Likewise.
4492
4493         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4494
4495 2000-07-10  Andreas Jaeger  <aj@suse.de>
4496
4497         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4498         (string_alias->strong_alias).
4499
4500 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4501
4502         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4503
4504 2000-07-07  Greg McGary  <greg@mcgary.org>
4505
4506         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4507         have no names without leading underscores.
4508
4509 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4510
4511         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4512         U007E.
4513
4514         * stdio-common/Makefile (tests): Remove tst-printf here...
4515         (tests-srcs): ...and add it here.
4516         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4517         Add rules to run tst-printf.sh.
4518         * stdio-common/tst-printf.c: Move code around so that there is really
4519         no further output where it's stated.
4520         * stdio-common/tst-printf.sh: New file.
4521
4522 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4523
4524         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4525         (do_write): Renamed from pwrite.
4526         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4527         `struct _IO_cookie_file'.
4528
4529 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4530
4531         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4532         detected.
4533         * malloc/tst-mtrace.sh: Run mtrace script.
4534
4535 2000-07-07  Greg McGary  <greg@mcgary.org>
4536
4537         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4538         Move all three components of a bounded pointer.
4539
4540 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4541
4542         * locale/programs/locale.c (write_locales): Don't simply add all
4543         directories found in the subdir, test whether at least the
4544         LC_CTYPE file is in there.
4545
4546 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4547
4548         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4549         * iconvdata/euc-kr.c: Likewise.
4550
4551         * stdio-common/vfprintf.c (process_string_arg): Check result of
4552         wcrtomb call and bail out if it failed.
4553
4554         * malloc/Makefile (test-srcs): Add tst-mtrace.
4555         (distribute): Add tst-mtrace.sh.
4556         Add rule to run tst-mtrace.sh.
4557         * malloc/tst-mtrace.c: New file.
4558         * malloc/tst-mtrace.sh: New file.
4559
4560         * include/signal.h: Declare __libc_sigaction.
4561         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4562         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4563         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4564         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4565         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4566         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4567         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4568
4569         * configure.in: Fix CFLAGS-memprofstat.c definition after
4570         2000-06-19 change.
4571         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4572
4573 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4574
4575         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4576         instead of NULL to elf_machine_fixup_plt t argument.
4577         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4578         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4579         cast.
4580
4581 2000-07-06  Andreas Jaeger  <aj@suse.de>
4582
4583         * crypt/Makefile (LDLIBS-cert): Removed.
4584         (LDLIBS-md5c-test): Removed.
4585         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4586         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4587
4588 2000-07-06  Andreas Jaeger  <aj@suse.de>
4589
4590         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4591         of the proc system is "proc".
4592
4593         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4594         thread library for static programs.
4595
4596 2000-07-06  Greg McGary  <greg@mcgary.org>
4597
4598         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4599         New macros.
4600         * sysdeps/generic/strcpy.c: Add bounds checks.
4601         * sysdeps/unix/fxstat.c: Likewise.
4602         * sysdeps/unix/xstat.c: Likewise.
4603         * sysdeps/unix/common/lxstat.c: Likewise.
4604         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4605         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4606         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4607         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4608         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4609         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4610         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4611         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4612         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4613         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4614         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4615         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4616         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4617         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4618         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4619         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4620         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4621         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4622         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4623         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4624         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4625         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4626         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4627         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4628         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4629         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4630         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4631         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4632         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4633         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4634         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4635         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4636         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4637         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4638         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4639         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4640         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4641         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4642         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4643         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4644         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4645         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4646         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4647         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4648         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4649         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4650         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4651         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4652         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4653         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4654         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4655         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4656         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4657         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4658         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4659         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4660         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4661         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4662         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4663         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4664         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4665         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4666         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4667         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4668
4669         * string/endian.h (__LONG_LONG_PAIR): New macro.
4670         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4671         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4672         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4673         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4674         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4675         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4676         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4677         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4678         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4679         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4680         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4681         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4682
4683         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4684
4685 2000-07-06  Andreas Jaeger  <aj@suse.de>
4686
4687         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4688         Initialize result.
4689
4690         * math/test-fpucw.c: Include <stdio.h> for printf.
4691
4692 2000-07-05  Greg McGary  <greg@mcgary.org>
4693
4694         * sysdeps/generic/bp-checks.h: New file.
4695         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4696         with list of #include files.
4697         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4698         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4699         Don't generate BP thunk if `V' appears in signature.
4700         Generate thunks with complete bounds checks.
4701         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4702         * sysdeps/unix/inet/syscalls.list: Likewise.
4703         * sysdeps/unix/mman/syscalls.list: Likewise.
4704         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4705         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4706         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4707         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4708
4709 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4710
4711         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4712         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4713         If mount not in the file fall back on /proc.
4714
4715         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4716         string got copied in.
4717         Patch by Solar Designer <solar@false.com>.
4718
4719 2000-07-05  Andreas Jaeger  <aj@suse.de>
4720
4721         * manual/install.texi (Installation): Update information about
4722         add-ons.
4723         (Configuring and compiling): Update for glibc 2.2.
4724
4725 2000-07-04  Andreas Jaeger  <aj@suse.de>
4726
4727         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4728         (_FPU_IEEE): Likewise.
4729
4730         * math/Makefile (tests): Add test-fpucw.
4731
4732         * math/test-fpucw.c (main): New file.
4733
4734 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4735
4736         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4737
4738         * locale/programs/ld-collate.c (collate_output): Also write out the
4739         collation sequence values and the wide character string for the
4740         collation symbol table.
4741
4742         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4743         * posix/fnmatch_loop.c: Implement collating symbol handling.
4744         * posix/tst-fnmatch.input: Add more tests, especially for collating
4745         symbol handling.
4746
4747         * posix/regex.c: Fix comment.
4748
4749 2000-07-05  Andreas Jaeger  <aj@suse.de>
4750
4751         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4752         (_FPU_GETCW): Remove extra colon.
4753         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4754
4755         * posix/fnmatch_loop.c (FCT): Only declare len if
4756         !WIDE_CHAR_VERSION to silence GCC.
4757
4758         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4759         prototype.
4760         * sysdeps/generic/strchrnul.c: Likewise.
4761         * sysdeps/generic/strlen.c: Likewise.
4762         * sysdeps/generic/strchr.c: Likewise.
4763         * sysdeps/generic/memchr.c: Likewise.
4764
4765 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4766
4767         * posix/fnmatch_loop.c: Implement equivalence class handling.
4768         * posix/tst-fnmatch.input: Add tests for equivalence class
4769         handling.
4770
4771         * posix/fnmatch_loop.c: Improve performance for single-byte
4772         character sets by not using btowc.
4773
4774         * posix/tst-fnmatch.input: Add tests for locale dependent
4775         behaviour.
4776         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4777
4778         * posix/tst-fnmatch.input: Add more test cases.
4779
4780         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4781         are not aligned to alignof(md5_uint32) do it before calling
4782         __md5_process_bytes.
4783         * crypt/md5.c: Make sure buffers are aligned.
4784         * crypt/md5.h: Likewise.
4785         Reported by Solar Designer <solar@false.com>.
4786
4787         * crypt/Makefile: Add dependencies for test programs.
4788
4789         * Rules: Define LC_ALL=C in environments of all programs we run.
4790
4791         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4792
4793 2000-07-03  H.J. Lu  <hjl@gnu.org>
4794
4795         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4796         is 2 + elem + offset, not 2 + elem + offset + 2.
4797
4798 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4799
4800         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4801         suite.
4802         * posix/Makefile (tests): Add tst-fnmatch.
4803         (tst-fnmatch-ENV): Define.
4804         * posix/tst-fnmatch.c: New file.
4805         * posix/tst-fnmatch.sh: New file.
4806
4807 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4808
4809         * locale/programs/charmap.c (charmap_read): Prepend
4810         the condition filename == NULL.
4811
4812 2000-07-03  Greg McGary  <greg@mcgary.org>
4813
4814         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4815
4816         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4817         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4818
4819         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4820         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4821         (FILEBUF_LITERAL): Add cast for CHAIN init.
4822         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4823         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4824         Revert type of `fp' to _IO_FILE*.
4825         (_IO_iter_file): Remove cast.
4826         (_IO_iter_next): Elide intermediate member reference.
4827
4828         * sysdeps/powerpc/strchr.S:  Check bounds.
4829         Wrap extern symbols in BP_SYM ().
4830
4831 2000-07-03  Andreas Jaeger  <aj@suse.de>
4832
4833         * dlfcn/Makefile (generated): New.
4834
4835 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4836
4837         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4838         (__uflow): Likewise.
4839         (__underflow): Likewise.
4840         * libio/wgenops.c (__wunderflow): Likewise.
4841         * stdio-common/tst-unbputc.c: New file.
4842         * stdio-common/tst-unbputc.sh: New file.
4843         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4844
4845         * po/en_GB.po: New file.
4846         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4847
4848 2000-07-01  Andreas Jaeger  <aj@suse.de>
4849
4850         * intl/Makefile (generated-dirs): New.
4851
4852         * elf/Makefile (generated): trusted-dirs.h is always generated,
4853         move out of build-shared condition.
4854         (generated): Merge the two entries for build-shared.
4855
4856 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4857
4858         * debug/Makefile (distribute): Add xtrace.sh.
4859
4860 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4861
4862         * version.h (VERSION): Bump to 2.1.91.
4863
4864         * configure.in: Update warning comment.  glibc should not be
4865         broken anymore.
4866
4867         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
4868         ioperm.c, sys/procfs.h, and sys/io.h.
4869
4870         * sysdeps/powerpc/Dist: Add bp-asm.h.
4871
4872         * assert/Depend: Add localedata.
4873         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
4874         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
4875
4876         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
4877         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
4878         relocation address to prevent unaligned trap.
4879         Suggested by Richard Henderson <rth@cygnus.com>.
4880
4881 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4882
4883         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
4884         if redirecting and either redirection is done using defines or
4885         not optimizing.
4886
4887 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4888
4889         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
4890         generated expressions.
4891         Patch by Darren McClelland <dmcclell@zetec.com>.
4892
4893         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
4894         since zic uses setlocale and gettext but we cannot make it use the
4895         new locale data since zic calls a shell which might not use the
4896         new libc.
4897
4898         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
4899         handling the internation currency symbol.  POSIX says that the
4900         fourth character is used to separate the currency symbol from the
4901         value.  Therefore it does not have to be printed.  But we cannot
4902         remove the space if the currency symbol is printed before the
4903         number since this is what many locales expect.
4904
4905         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
4906         whether this information is available.
4907
4908         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
4909         buffers in case the translation is too large.  Remember allocated
4910         memory blocks in a list.
4911         (free_mem): Free memory for translations.
4912
4913         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
4914
4915         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
4916         information is available set the string length to zero.
4917
4918         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
4919
4920 2000-06-30  Greg McGary  <greg@mcgary.org>
4921
4922         * sysdeps/powerpc/bp-asm.h: New file.
4923         * sysdeps/powerpc/__longjmp.S:  Check bounds.
4924         Wrap extern symbols in BP_SYM ().
4925         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
4926         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
4927         * sysdeps/powerpc/setjmp.S: Likewise.
4928         * sysdeps/powerpc/add_n.S: Likewise.
4929         * sysdeps/powerpc/addmul_1.S: Likewise.
4930         * sysdeps/powerpc/lshift.S: Likewise.
4931         * sysdeps/powerpc/rshift.S: Likewise.
4932         * sysdeps/powerpc/mul_1.S: Likewise.
4933         * sysdeps/powerpc/sub_n.S: Likewise.
4934         * sysdeps/powerpc/submul_1.S: Likewise.
4935         * sysdeps/powerpc/strlen.S: Likewise.
4936         * sysdeps/powerpc/memset.S: Likewise.
4937         * sysdeps/powerpc/stpcpy.S: Likewise.
4938         * sysdeps/powerpc/strcmp.S: Likewise.
4939         * sysdeps/powerpc/strcpy.S: Likewise.
4940         * sysdeps/powerpc/elf/bzero.S: Likewise.
4941
4942         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
4943         Line up operands column with tabs.
4944
4945 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4946
4947         * elf/Makefile (LDFLAGS-origtest): Actually add it.
4948
4949         * sysdeps/ia64/htonl.S: New file.
4950         * sysdeps/ia64/htons.S: New file.
4951         * sysdeps/ia64/memcpy.S: Replace with version which does not use
4952         floating point registers.
4953         Patches by Dan Pop <Dan.Pop@cern.ch>.
4954
4955 2000-06-30  Andreas Jaeger  <aj@suse.de>
4956
4957         * posix/Makefile (tests): tst-exec and tst-spawn only work with
4958         shared libraries.
4959
4960         * io/Makefile (CFLAGS-test-lfs.c): New.
4961         (tests): Add test-lfs.
4962
4963         * io/test-lfs.c: New file.
4964
4965 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4966
4967         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
4968         instruction.
4969
4970 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
4971
4972         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
4973
4974 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
4975
4976         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
4977         alias to the fstatfs call.
4978
4979         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
4980         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
4981
4982         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
4983         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
4984
4985         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
4986         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
4987         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
4988         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
4989
4990         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
4991         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
4992
4993         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
4994         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
4995
4996         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
4997         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
4998
4999         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5000
5001 2000-06-29  Andreas Jaeger  <aj@suse.de>
5002
5003         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5004         with syslog.
5005         (print_err_message): Likewise.
5006         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5007
5008 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5009
5010         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5011         used as words is properly aligned.
5012
5013         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5014         data files.
5015
5016 2000-06-29  Greg McGary  <greg@mcgary.org>
5017
5018         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5019         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5020         length 7..9, just in case...
5021         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5022
5023         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5024         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5025         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5026         (PUSH_SIGNAL_MASK): New macro.
5027         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5028         LEAVE is unnecessary.  Check bounds of jmp_buf.
5029         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5030         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5031         immediately before tail-call.
5032         * sysdeps/i386/setjmp.S: Likewise.
5033         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5034         * sysdeps/i386/bsd-setjmp.S: Likewise.
5035
5036 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5037
5038         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5039         versioned_symbol.
5040         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5041         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5042         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5043         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5044         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5045         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5046         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5047         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5048
5049 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5050
5051         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5052         we later need to calling free().
5053         Patch by Matt Wilson <msw@redhat.com>.
5054
5055         * stdio-common/tst-printf.c: Add test for above problem.
5056
5057 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5058
5059         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5060         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5061
5062 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5063
5064         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5065         prototype for abs().
5066         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5067
5068 2000-06-23  Andreas Jaeger  <aj@suse.de>
5069
5070         * config.h.in: Don't use regparm with bounded pointers.
5071
5072 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5073
5074         * stdlib/grouping.h: Correctly handle multibyte thousands
5075         separator and decimal point.
5076         * stdlib/stdtod.c: Likewise.
5077         * sysdeps/generic/strtol.c: Likewise.
5078
5079         * locale/categories.def: Add entries for wide character decimal point
5080         and thousands separator in numeric and monetary category.
5081
5082 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5083
5084         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5085         second definition and initialization of decimal.
5086
5087 2000-06-28  Greg McGary  <greg@mcgary.org>
5088
5089         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5090         out.
5091         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5092         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5093         in.
5094         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5095         (struct _IO_FILE_plus *).
5096         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5097         THIS, since _IO_JUMPS no longer does it implicitly.
5098         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5099         arg type as (struct _IO_FILE_plus *).
5100         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5101         arg as (_IO_strfile *).
5102         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5103         Declare 1st arg as (_IO_strfile *).
5104         * libio/fileops.c (_IO_new_file_init): Declare
5105         arg type as (struct _IO_FILE_plus *).
5106         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5107         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5108         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5109         Declare iteration pointer as (struct _IO_FILE_plus *).
5110         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5111                 (struct _IO_FILE_plus *).
5112         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5113         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5114         (_IO_check_libio): Set user-visible handles to
5115         (struct _IO_FILE_plus *).
5116         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5117         to (struct _IO_FILE_plus *).
5118
5119         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5120         whose high bound includes vtable to all functions that will use
5121         vtable.  For streambufs, pass pointer whose bounds include struct
5122         _IO_strfile.
5123         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5124         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5125         * libio/iofopen.c (_IO_new_fopen): Likewise.
5126         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5127         * libio/iofopen64.c (_IO_fopen64): Likewise.
5128         * libio/iopopen.c (_IO_new_popen): Likewise.
5129         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5130         * libio/memstream.c (open_memstream): Likewise.
5131         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5132         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5133         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5134         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5135         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5136         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5137         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5138         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5139         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5140         * stdlib/strfmon.c (__strfmon_l): Likewise.
5141         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5142         (vfprintf): Qualify computed-goto targets as unbounded.
5143
5144 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5145
5146         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5147         thousands separator correctly.
5148
5149         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5150         * stdio-common/vfwscanf.c: Likewise.
5151
5152 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5153
5154         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5155         count into signatures for most calls.
5156
5157 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5158
5159         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5160         the generic parser now.
5161
5162 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5163
5164         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5165         table entries are 32 bit on the ia64 (as specified by the ABI),
5166         not 64 bit as on the Alpha.
5167
5168         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5169         change of objects to use 32 bit hash table indices (see above).
5170
5171 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5172
5173         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5174         prototype for abs().
5175
5176 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5177
5178         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5179         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5180         may have been reached.
5181
5182 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5183
5184         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5185         symbols in multi-character weights correctly.
5186
5187         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5188         depending on whether the input string is empty or not.
5189
5190         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5191         given state and not avoiding this by modifying a local object.
5192         * wcsmbs/wcrtomb.c: Likewise.
5193
5194         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5195         object since some incomplete characters might be in there.
5196
5197         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5198         sequences with first byte 0x8e correctly.
5199
5200         * iconvdata/jis0208.h: Remove redundant test.
5201
5202 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5203
5204         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5205         Add it where it is needed now.
5206
5207         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5208         the input charset into account when generating the hash table.
5209         (allocate_arrays): Correct setting default width.  Not all empty slots
5210         in the table are filled, only those not covert explicitly by the
5211         locale description and in the charset.
5212
5213         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5214         return values from the wctrans function.
5215
5216         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5217         wide character version.
5218         For %C handling, test correct pointer variable for NULL.
5219
5220         * wcsmbs/wctob.c: Handle WEOF special.
5221
5222         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5223
5224         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5225         always-true test to avoid warning.
5226
5227 2000-06-27  Greg McGary  <greg@mcgary.org>
5228
5229         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5230         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5231         (symbol_version, default_symbol_version): Factor redundant
5232         definitions out of conditional.
5233
5234 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5235
5236         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5237         not obstack_blank.
5238
5239 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5240
5241         * include/libc-symbols.h (symbol_version): Add extra level of
5242         macro expansion.
5243         (default_symbol_version): Likewise.
5244
5245 2000-06-26  Greg McGary  <greg@mcgary.org>
5246
5247         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5248         for BP return value & push implicit struct-return pointer to
5249         __errno_location.
5250         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5251         (SYSCALL_ERROR_HANDLER): Likewise.
5252         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5253         (SYSCALL_ERROR_HANDLER): Likewise.
5254
5255         * Makeconfig: Add missing comment.
5256         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5257         BP-flavored startup object.
5258         ($(objpfx)b$(start-installed-name)): New rule.
5259         * include/libc-symbols.h (symbol_set_declare): Change type
5260         of `__start_##set' and `__stop_##set' to pointer-to-function.
5261         (symbol_set_declare): Change type of `set' to array of
5262         pointer-to-function.
5263         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5264         pointer-to-function.
5265
5266         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5267
5268         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5269         Remove clock_* and timer_* entries.
5270         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5271         arg-count with signatures.
5272
5273         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5274         Check bounds of arguments.
5275         * sysdeps/i386/addmul_1.S: Likewise.
5276         * sysdeps/i386/lshift.S: Likewise.
5277         * sysdeps/i386/mul_1.S: Likewise.
5278         * sysdeps/i386/rshift.S: Likewise.
5279         * sysdeps/i386/sub_n.S: Likewise.
5280         * sysdeps/i386/submul_1.S: Likewise.
5281         * sysdeps/i386/i586/add_n.S: Likewise.
5282         * sysdeps/i386/i586/addmul_1.S: Likewise.
5283         * sysdeps/i386/i586/lshift.S: Likewise.
5284         * sysdeps/i386/i586/rshift.S: Likewise.
5285         * sysdeps/i386/i586/sub_n.S: Likewise.
5286         * sysdeps/i386/i686/add_n.S: Likewise.
5287
5288         * sysdeps/i386/memchr.S: Likewise.
5289         * sysdeps/i386/memcmp.S: Likewise.
5290         * sysdeps/i386/rawmemchr.S: Likewise.
5291         * sysdeps/i386/i586/bzero.S: Likewise.
5292         * sysdeps/i386/i586/memcpy.S: Likewise.
5293         * sysdeps/i386/i586/mempcpy.S: Likewise.
5294         * sysdeps/i386/i586/memset.S: Likewise.
5295         * sysdeps/i386/i686/bzero.S: Likewise.
5296         * sysdeps/i386/i686/memcpy.S: Likewise.
5297         * sysdeps/i386/i686/mempcpy.S: Likewise.
5298         * sysdeps/i386/i686/memset.S: Likewise.
5299
5300         * sysdeps/i386/stpcpy.S: Likewise.
5301         * sysdeps/i386/stpncpy.S: Likewise.
5302         * sysdeps/i386/strchr.S: Likewise.
5303         * sysdeps/i386/strchrnul.S: Likewise.
5304         * sysdeps/i386/strcspn.S: Likewise.
5305         * sysdeps/i386/strpbrk.S: Likewise.
5306         * sysdeps/i386/strrchr.S: Likewise.
5307         * sysdeps/i386/strspn.S: Likewise.
5308         * sysdeps/i386/strtok.S: Likewise.
5309         * sysdeps/i386/strtok_r.S: Likewise.
5310         * sysdeps/i386/i486/strcat.S: Likewise.
5311         * sysdeps/i386/i486/strlen.S: Likewise.
5312         * sysdeps/i386/i586/strchr.S: Likewise.
5313         * sysdeps/i386/i586/strcpy.S: Likewise.
5314         * sysdeps/i386/i586/strlen.S: Likewise.
5315         * sysdeps/i386/i686/strcmp.S: Likewise.
5316         * sysdeps/i386/i686/strtok.S: Likewise.
5317         * sysdeps/i386/i686/strtok_r.S: Likewise.
5318
5319         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5320         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5321         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5322         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5323         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5324
5325         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5326         * sysdeps/i386/mul_1.S: Likewise.
5327         * sysdeps/i386/submul_1.S: Likewise.
5328         * sysdeps/i386/i586/add_n.S: Likewise.
5329         * sysdeps/i386/i586/addmul_1.S: Likewise.
5330         * sysdeps/i386/i586/lshift.S: Likewise.
5331         * sysdeps/i386/i586/mul_1.S: Likewise.
5332         * sysdeps/i386/i586/rshift.S: Likewise.
5333         * sysdeps/i386/i586/sub_n.S: Likewise.
5334         * sysdeps/i386/i586/submul_1.S: Likewise.
5335
5336 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5337
5338         * rt/Makefile (librt-routines): Add clock_nanosleep.
5339         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5340         * sysdeps/generic/clock_nanosleep.c: New file.
5341         * sysdeps/unix/clock_nanosleep.c: New file.
5342         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5343         * time/time.h: Declare clock_nanosleep.
5344
5345 2000-06-26  Greg McGary  <greg@mcgary.org>
5346
5347         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5348         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5349         (ALIGN): Cleanup surrounding conditionals.
5350
5351         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5352         Call ENTER/LEAVE macros.
5353         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5354         * sysdeps/i386/submul_1.S: Likewise.
5355
5356         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5357         syntax.  Define & use symbolic argument stack offsets.  Call
5358         ENTER/LEAVE macros.
5359         * sysdeps/i386/i586/mul_1.S: Likewise.
5360         * sysdeps/i386/i586/submul_1.S: Likewise.
5361
5362 2000-06-25  Greg McGary  <greg@mcgary.org>
5363
5364         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5365         not as bcopy.
5366
5367 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5368
5369         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5370         * iconvdata/gen-8bit-gap.sh: Likewise.
5371         * iconvdata/gen-8bit.sh: Likewise.
5372
5373         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5374
5375         * locale/programs/ld-collate.c (collate_read): Don't actually read
5376         the copy locale if we are ignoring the content.
5377
5378         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5379         unknown character.
5380
5381         * locale/programs/ld-collate.c: Correct handling of different
5382         collation sections.
5383         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5384         as extra parameter from which to copy category information.
5385         Change all callers.
5386         (load_locale): Likewise.
5387         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5388         and load_locale.
5389         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5390         * locale/programs/locfile.h: Likewise.
5391         * locale/programs/locfile-kw.gperf: Add entry for script.
5392         * locale/programs/locfile-token.h: Add tok_script.
5393
5394         * locale/programs/locale.c: Update copyright year.
5395         * locale/programs/localedef.c: Likewise.
5396
5397 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5398
5399         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5400         Jens Moeller <jens.moeller@waii.com>.
5401
5402 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5403
5404         * locale/programs/ld-name.c (name_finish): Add missing format
5405         specifier to test for name_fmt.
5406
5407         * locale/programs/ld-address.c (iso639): Correct length of string
5408         elements.
5409         (iso3166): Likewise.
5410
5411         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5412
5413         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5414         Define.
5415
5416         * elf/elf.h (NT_PRFPXREG): Define.
5417
5418 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5419
5420         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5421         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5422
5423 2000-06-23  Andreas Schwab  <schwab@suse.de>
5424
5425         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5426         with signatures.
5427
5428 2000-06-23  Andreas Jaeger  <aj@suse.de>
5429
5430         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5431
5432         * io/test-stat.c: Add copyright header, mention Maciej.
5433
5434         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5435         SYS_mincore, SYS_madvise): Added.
5436
5437         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5438         execve.
5439
5440 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5441
5442         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5443         (CFLAGS-tst_putwc.c): New definition.
5444         * libio/tst_getwc.c: New file.
5445         * libio/tst_getwc.input: New file.
5446         * libio/tst_putwc.c: New file.
5447
5448         * include/string.h: Add prototype for __strdup.
5449
5450 2000-06-22  Greg McGary  <greg@mcgary.org>
5451
5452         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5453         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5454         Fix signatures.
5455
5456 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5457
5458         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5459
5460 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5461
5462         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5463
5464 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5465
5466         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5467         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5468
5469 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5470
5471         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5472         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5473         and __S_TYPEISSHM.
5474         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5475         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5476         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5477         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5478         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5479         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5480         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5481         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5482         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5483         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5484         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5485         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5486         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5487         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5488         S_TYPEISSHM.
5489
5490 2000-06-22  Andreas Jaeger  <aj@suse.de>
5491
5492         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5493         with signatures.
5494
5495         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5496
5497         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5498
5499 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5500
5501         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5502         ahead.
5503
5504 2000-06-21  Greg McGary  <greg@mcgary.org>
5505
5506         * Makerules (elide-routines.*, elide-bp-thunks):
5507         Define unconditionally.
5508
5509 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5510
5511         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5512
5513 2000-06-21  Andreas Jaeger  <aj@suse.de>
5514
5515         * io/Makefile (tests): Add test-stat.
5516         (CFLAGS-test-stat.c): New.
5517
5518         * io/test-stat.c: New file from Maciej W. Rozycki
5519         <macro@ds2.pg.gda.pl>.
5520
5521 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5522
5523         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5524         in __rlimit_resource to make them match the kernel order.
5525         rlim_t is always 64 bit, use __rlim64_t to declare it
5526         unconditionally.
5527
5528 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5529
5530         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5531         RLIM_INFINITY before defining it to avoid clash with kernel header
5532
5533 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5534
5535         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5536
5537 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5538
5539         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5540
5541 2000-06-21  Andreas Jaeger  <aj@suse.de>
5542
5543         * stdio-common/temptest.c: Include <stdlib.h>.
5544         * stdio-common/tst-fileno.c: Likewise.
5545         * stdio-common/scanf4.c: Likewise.
5546         * stdio-common/scanf5.c: Likewise.
5547         * time/clocktest.c: Likewise.
5548         * posix/test-vfork.c: Likewise.
5549         * posix/globtest.c: Likewise.
5550         * io/test-utime.c: Likewise.
5551         * wctype/test_wcfuncs.c: Likewise.
5552         * crypt/cert.c: Likewise.
5553
5554         * stdio-common/tst-printfsz.c: Include <string.h>.
5555         * libio/tst_swscanf.c: Likewise.
5556         * libio/tst_wscanf.c: Likewise.
5557         * posix/runtests.c: Likewise.
5558         * posix/tst-getaddrinfo.c: Likewise.
5559         * posix/wordexp-test.c: Likewise.
5560         * misc/tst-efgcvt.c: Likewise.
5561
5562         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5563         * nss/test-netdb.c: Likewise.
5564
5565         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5566         supported kernel for MIPS.
5567
5568         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5569         * rt/aio_suspend.c: Likewise.
5570
5571 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5572
5573         * math/libm-test.inc: Include <string.h>.
5574
5575 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5576
5577         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5578
5579 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5580
5581         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5582         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5583
5584 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5585
5586         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5587
5588 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5589
5590         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5591
5592 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5593
5594         * locale/programs/ld-collate.c (insert_value): Now take string and
5595         length instead of struct token* parameter.  Adjust use of token.
5596         (handle_ellipsis): Likewise.
5597         (collate_read): Allow <Uxxxx> names and transform them into names
5598         to be passed to insert_value and handle_ellipsis.
5599
5600         * locale/programs/ld-ctype.c (uninames): New array with names of
5601         digits in <Uxxxxxxxx> format.
5602         (ctype_finish): Correct search for space character value.  Likewise
5603         for default outdigits values.
5604
5605 2000-06-20  Greg McGary  <greg@mcgary.org>
5606
5607         * Makerules (objects): Add BP thunks.
5608
5609 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5610
5611         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5612         in width definitions.
5613
5614 2000-06-20  Andreas Jaeger  <aj@suse.de>
5615
5616         * sysdeps/mips/fpu/libm-test-ulps: New file.
5617
5618         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5619         first.
5620
5621         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5622
5623         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5624
5625 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5626
5627         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5628         change in gconv_builtin.h.
5629
5630         * malloc/Makefile: Change all references to memprof into memusage.
5631         * malloc/memprof.c: Rename to...
5632         * malloc/memusage.c: ...this.  New file.
5633         * malloc/memprof.sh: Rename to...
5634         * malloc/memusage.sh: ...this.  New file.
5635         * malloc/memprofstat.c: Rename to...
5636         * malloc/memusagestat.c: ...this.  New file.
5637         * sysdeps/alpha/memprof.h: Rename to..
5638         * sysdeps/alpha/memusage.h: ...this.  New file.
5639         * sysdeps/arm/memprof.h: Rename to..
5640         * sysdeps/arm/memusage.h: ...this.  New file.
5641         * sysdeps/generic/memprof.h: Rename to..
5642         * sysdeps/generic/memusage.h: ...this.  New file.
5643         * sysdeps/i386/memprof.h: Rename to..
5644         * sysdeps/i386/memusage.h: ...this.  New file.
5645         * sysdeps/ia64/memprof.h: Rename to..
5646         * sysdeps/ia64/memusage.h: ...this.  New file.
5647         * sysdeps/m68k/memprof.h: Rename to..
5648         * sysdeps/m68k/memusage.h: ...this.  New file.
5649         * sysdeps/mips/memprof.h: Rename to..
5650         * sysdeps/mips/memusage.h: ...this.  New file.
5651         * sysdeps/powerpc/memprof.h: Rename to..
5652         * sysdeps/powerpc/memusage.h: ...this.  New file.
5653         * sysdeps/sparc/memprof.h: Rename to..
5654         * sysdeps/sparc/memusage.h: ...this.  New file.
5655         * sysdeps/sh/memprof.h: Rename to..
5656         * sysdeps/sh/memusage.h: ...this.  New file.
5657
5658         * elf/sprof.c (print_version): Update year.
5659
5660         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5661         table entry values.  Use D_PTR.
5662         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5663         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5664
5665 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5666
5667         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5668         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5669         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5670         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5671
5672 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5673
5674         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5675
5676 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5677
5678         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5679         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5680         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5681
5682         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5683
5684         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5685         kernel change.
5686
5687         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5688         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5689         structure.
5690         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5691         implementation.
5692
5693 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5694
5695         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5696
5697 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5698
5699         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5700
5701 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5702
5703         * iconv/gconv_int.h (strict gconv_module): Remove all members
5704         associated with regular expressions.  Use a simple string as the
5705         from name.
5706         * iconv/gconv_db.c: Remove code handling regular expressions.
5707         * iconv/gconv_conf.c: Likewise.
5708         * iconv/iconv_prog.c: Likewise.
5709         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5710
5711         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5712         General namespace cleanup.
5713         (struct __gconv_trans_data): Add next field.
5714         (struct __gconv_step_data): Make __trans a pointer.
5715         * iconv/gconv_conf.c: Split out code to find gconv directories from
5716         __gconv_read_conf in new functions.
5717         * iconv/gconv_int.h: Define new data structure and declare new
5718         functions for handling of gconv directory list.
5719         * iconv/gconv_open.c: Allow more than one error handling step being
5720         used.  Call function to load error handling module if it is none
5721         of the builtin transformations.
5722         * iconv/gconv_close.c: Add code to free transliteration data.
5723         * iconv/gconv_trans.c: Add functions to load and unload modules
5724         implementing transliteration etc.
5725         * iconv/skeleton.c: Call all context functions now that more than
5726         one module is allowed.
5727         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5728         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5729         where the full error handling using transliteration is needed.
5730         * iconvdata/8bit-gap.c: Likewise.
5731         * iconvdata/8bit-generic.c: Likewise.
5732         * iconvdata/ansi_x3.110.c: Likewise.
5733         * iconvdata/big5.c: Likewise.
5734         * iconvdata/big5hkscs.c: Likewise.
5735         * iconvdata/euc-cn.c: Likewise.
5736         * iconvdata/euc-jp.c: Likewise.
5737         * iconvdata/euc-kr.c: Likewise.
5738         * iconvdata/euc-tw.c: Likewise.
5739         * iconvdata/gbgbk.c: Likewise.
5740         * iconvdata/gbk.c: Likewise.
5741         * iconvdata/iso-2022-cn.c: Likewise.
5742         * iconvdata/iso-2022-jp.c: Likewise.
5743         * iconvdata/iso-2022-kr.c: Likewise.
5744         * iconvdata/iso646.c: Likewise.
5745         * iconvdata/iso8859-1.c: Likewise.
5746         * iconvdata/iso_6937-2.c: Likewise.
5747         * iconvdata/iso_6937.c: Likewise.
5748         * iconvdata/johab.c: Likewise.
5749         * iconvdata/sjis.c: Likewise.
5750         * iconvdata/t.61.c: Likewise.
5751         * iconvdata/uhc.c: Likewise.
5752         * iconvdata/unicode.c: Likewise.
5753         * iconvdata/utf-16.c: Likewise.
5754         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5755         structure correctly after last change.
5756         * wcsmbs/btowc.c: Likewise.
5757         * wcsmbs/mbrtowc.c: Likewise.
5758         * wcsmbs/mbsnrtowcs.c: Likewise.
5759         * wcsmbs/mbsrtowcs.c: Likewise.
5760         * wcsmbs/wcrtomb.c: Likewise.
5761         * wcsmbs/wcsnrtombs.c: Likewise.
5762         * wcsmbs/wcsrtombs.c: Likewise.
5763         * wcsmbs/wctob.c: Likewise.
5764
5765         * localedata/Makefile: Set -Wno-format for some files since gcc does
5766         not know all the format specifiers.
5767
5768 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5769
5770         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5771         unneeded code.
5772         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5773
5774 2000-06-18  Andreas Jaeger  <aj@suse.de>
5775
5776         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5777         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5778
5779 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5780
5781         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5782         LINUX_LINK_MAX.
5783         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5784
5785         * locale/programs/ld-ctype.c (ctype_output): Really write out
5786         mboutdigits information.
5787         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5788         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5789         * localedata/tests/trans.def: Add outdigit information.
5790
5791         * localedata/tst-mbswcs3.c: Remove comment.
5792
5793         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5794         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5795         * libio/tst_wprintf.c (main): Add test for I flag.
5796
5797         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5798         * locale/langinfo.h: Add entries for translit_ignore information.
5799         * locale/categories.def: Add entries for new LC_CTYPE elements.
5800         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5801         pointer instead of "" where possible.
5802         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5803         * intl/Depend: Add localedata.
5804         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5805         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5806
5807 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5808
5809         * locale/langinfo.h: Add entries for default_missing information.
5810         * locale/C-ctype.c: Add initializers for new fields.
5811         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5812         information.
5813         * locale/categories.h: Add entries for all LC_CTYPE values.
5814         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5815         information.
5816
5817         * localedata/tst-trans.c: Write out an error message if class is
5818         not found.
5819
5820         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5821         * iconv/gconv_open.c: Remove error handling specification from `from'
5822         character set name.
5823         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5824         new parameter to always enable transliteration.
5825         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5826         change.
5827         (struct locale_data): Add new members use_translit and options.
5828         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5829         character set name contained modifier TRANSLIT.
5830         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5831         and options fields.
5832         (_nl_unload_locale): Free options string if necessary.
5833         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5834         the locale names suggested this.
5835         * locale/C-address.c: Add two new initialilzers to adjust data
5836         structure for new format.
5837         * locale/C-collate.c: Likewise.
5838         * locale/C-ctype.c: Likewise.
5839         * locale/C-identification.c: Likewise.
5840         * locale/C-measurement.c: Likewise.
5841         * locale/C-messages.c: Likewise.
5842         * locale/C-monetary.c: Likewise.
5843         * locale/C-name.c: Likewise.
5844         * locale/C-numeric.c: Likewise.
5845         * locale/C-paper.c: Likewise.
5846         * locale/C-telephone.c: Likewise.
5847         * locale/C-time.c: Likewise.
5848
5849         * locale/setlocale.c: Add some more __builtin_expect.
5850
5851 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5852
5853         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5854         unsigned char **.
5855         (__gconv_init_fct): Remove two parameters.
5856         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5857         gconv_transliterate.  Remove two parameters.
5858         Change prototypes of builtin functions according to __gconv_fct change.
5859         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5860         != NULL only during error handling.  Stop in this case after the
5861         conversion.
5862         * iconv/gconv_trans.c: Replace with real implementation for
5863         __gconv_transliterate.
5864         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
5865         * iconv/gconv.c: Change calls to downstream functions once again.
5866         Use NULL for the fifth parameter instead of pointer to output buffer.
5867         * libio/iofwide.c: Likewise.
5868         * wcsmbs/btowc.c: Likewise.
5869         * wcsmbs/mbrtowc.c: Likewise.
5870         * wcsmbs/mbsnrtowcs.c: Likewise.
5871         * wcsmbs/mbsrtowcs.c: Likewise.
5872         * wcsmbs/wcrtomb.c: Likewise.
5873         * wcsmbs/wcsnrtombs.c: Likewise.
5874         * wcsmbs/wcsrtombs.c: Likewise.
5875         * wcsmbs/wctob.c: Likewise.
5876         * iconv/gconv_simple.c: Remove two parameters from error handling
5877         function call.
5878         * iconvdata/8bit-gap.c: Likewise.
5879         * iconvdata/8bit-generic.c: Likewise.
5880         * iconvdata/ansi_x3.110.c: Likewise.
5881         * iconvdata/big5.c: Likewise.
5882         * iconvdata/big5hkscs.c: Likewise.
5883         * iconvdata/euc-cn.c: Likewise.
5884         * iconvdata/euc-jp.c: Likewise.
5885         * iconvdata/euc-kr.c: Likewise.
5886         * iconvdata/euc-tw.c: Likewise.
5887         * iconvdata/gbgbk.c: Likewise.
5888         * iconvdata/gbk.c: Likewise.
5889         * iconvdata/iso-2022-cn.c: Likewise.
5890         * iconvdata/iso-2022-jp.c: Likewise.
5891         * iconvdata/iso-2022-kr.c: Likewise.
5892         * iconvdata/iso646.c: Likewise.
5893         * iconvdata/iso8859-1.c: Likewise.
5894         * iconvdata/iso_6937-2.c: Likewise.
5895         * iconvdata/iso_6937.c: Likewise.
5896         * iconvdata/johab.c: Likewise.
5897         * iconvdata/sjis.c: Likewise.
5898         * iconvdata/t.61.c: Likewise.
5899         * iconvdata/uhc.c: Likewise.
5900         * iconvdata/unicode.c: Likewise.
5901         * iconvdata/utf-16.c: Likewise.
5902
5903 2000-06-15  Greg McGary  <greg@mcgary.org>
5904
5905         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
5906         of callnum assignment.  Tolerate callnum expressions containing
5907         parens.
5908
5909 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5910
5911         * login/Makefile (utmpd): Remove rule to build utmpd.
5912
5913         * csu/Versions: Move libgcc frame handling functions from here...
5914         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
5915         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
5916         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
5917         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
5918         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
5919         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
5920         New file.
5921         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
5922
5923         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
5924
5925         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
5926
5927 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5928
5929         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
5930         compatibility.
5931         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
5932         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
5933         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
5934         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
5935
5936 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
5937
5938         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
5939         defined, terminate quotes and read them after the comment char.
5940         * configure.in (HAVE_SECTION_QUOTES): Test whether
5941         __attribute__((section ("x"))) puts quotes around x or not.
5942         * config.h.in (HAVE_SECTION_QUOTES): Add.
5943         * configure: Rebuilt.
5944
5945 2000-06-14  Andreas Jaeger  <aj@suse.de>
5946
5947         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
5948         depending on the configure option --sysconfdir.
5949         Closes PR libc/1762.
5950         Patch by Andreas Schwab <schwab@suse.de>.
5951
5952         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
5953         entry point.
5954         Reported by Jim Pick <jim@jimpick.com>.
5955
5956 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5957
5958         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
5959         crashing the application.  Emit some simple error message.
5960         Reported by mju@panasas.com [PR libc/1769].
5961
5962 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5963
5964         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
5965
5966         * crypt/Makefile (distribute): Add md5.h.
5967
5968         * Makefile (distribute): Add include/shlib-compat.h.
5969
5970         * Make-dist: Search for tests also in sysdeps hierachy.
5971
5972         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
5973         ufc.c, speeds.c, README.ufc-crypt, and Banner.
5974
5975         * sysdeps/sparc/Subdirs: New file.
5976
5977         * locale/Makefile (distribute): Add weightwc.h and
5978         programs/localedef.h.
5979
5980         * time/Makefile (distribute): Add datemsk.
5981
5982         * sysdeps/ia64/Dist: Add softpipe.h.
5983
5984         * sysdeps/unix/sysv/aix/Dist: New file.
5985
5986         * posix/setpgrp.c: Moved to...
5987         * sysdeps/generic/setpgrp.c: ...here.  New file.
5988         * io/mknod.c: Moved to...
5989         * sysdeps/generic/mknod.c: ...here.  New file.
5990
5991         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
5992
5993         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
5994
5995         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
5996
5997         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
5998         gprsave0.S, gprrest1.S, and gprrest0.S.
5999
6000         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6001
6002         * posix/Makefile (routines): Add spawnattr_getsigmask,
6003         spawnattr_getschedpolicy, spawnattr_getschedparam,
6004         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6005         spawnattr_setschedparam.
6006         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6007         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6008         posix_spawnattr_setschedparam.
6009
6010         * posix/spawnattr_setschedparam.c: Fix typo.
6011
6012         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6013         Correct typo.
6014
6015         * login/programs/utmpd.c: Removed.
6016         * login/programs/utmpd.h: Removed.
6017         * login/programs/utmpd-private.h: Removed.
6018
6019         * Makefile (distribute): Add include/db_185.h and include/db.h.
6020
6021         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6022         iso-ir-165.h.
6023
6024         * elf/Makefile (distribute): Add missing files.
6025
6026         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6027         * elf/eval.c: Moved to...
6028         * dlfcn/eval.c: ...here.  New file.
6029
6030         * Makefile (distribute): Also distribute ChangeLog.1?.
6031
6032         * Make-dist (+tsrcs): Remove .args handling here as well.
6033
6034         * rt/Makefile (tests): Add tst-timer.
6035         * sysdeps/generic/tst-timer.c: New file.
6036
6037         * Makerules (sources): Don't add BP sources here.
6038
6039         * login/Makefile (distribute): Remove xtmp.h.
6040
6041         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6042         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6043
6044 2000-06-13  Andreas Jaeger  <aj@suse.de>
6045
6046         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6047         Patch by Ralf Baechle <ralf@gnu.org>.
6048
6049 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6050
6051         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6052         for mincore syscall.
6053
6054         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6055         __BOUNDED_POINTERS__ is not defined.
6056
6057 2000-06-07  Greg McGary  <greg@mcgary.org>
6058
6059         * sysdeps/generic/bp-sym.h: New file.
6060         * sysdeps/generic/bp-start.h: New file.
6061         * sysdeps/i386/elf/start.S: Designate BP symbols.
6062         * sysdeps/generic/libc-start.c: Wrap bounds around
6063         argv & envp and each of their string members.
6064
6065 2000-06-07  Greg McGary  <greg@mcgary.org>
6066
6067         * sysdeps/unix/make-syscalls.sh: Add comments to
6068         output that aid debugging & comprehension.
6069         Map simple syscall signatures to number of args.
6070         Generate BP syscall thunk definitions.
6071         * sysdeps/generic/bp-thunks.h: New file.
6072         * sysdeps/unix/syscalls.list: Replace arg-count with
6073         simple return+arg signature.
6074         * sysdeps/unix/common/syscalls.list: Likewise.
6075         * sysdeps/unix/inet/syscalls.list: Likewise.
6076         * sysdeps/unix/mman/syscalls.list: Likewise.
6077         * sysdeps/unix/sysv/syscalls.list: Likewise.
6078         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6079         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6080
6081 2000-06-07  Greg McGary  <greg@mcgary.org>
6082
6083         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6084         for all files *.[cS].
6085         (CFLAGS-.ob): Don't optimize sibling calls.
6086         (bppfx): New variable.
6087         * Makerules (elide-bp-thunks): New variable.
6088         (elide-routines.*): Elide BP-* files for all but *.ob.
6089         (sources): Include bp-thunks.
6090
6091 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6092
6093         * iconv/gconv_simple.c: Remove unnecessary prototype.
6094
6095         * iconv/gconv_trans.c: Pretty print.
6096
6097         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6098
6099         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6100         minimal kernel versions.  Add information about IA-64 kernel.
6101
6102         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6103         specific minimal supported kernel versions to be specified.
6104
6105         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6106         step data structure.
6107         * wcsmbs/btowc.c: Likewise.
6108         * wcsmbs/mbrtowc.c: Likewise.
6109         * wcsmbs/mbsnrtowcs.c: Likewise.
6110         * wcsmbs/mbsrtowcs.c: Likewise.
6111         * wcsmbs/wcrtomb.c: Likewise.
6112         * wcsmbs/wcsnrtombs.c: Likewise.
6113         * wcsmbs/wcsrtombs.c: Likewise.
6114         * wcsmbs/wctob.c: Likewise.
6115
6116         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6117         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6118
6119         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6120
6121         * misc/sys/cdefs.h: Remove one more __P.
6122
6123         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6124         Reported by HJ Lu.
6125
6126         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6127         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6128         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6129
6130 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6131             Yutaka Niibe  <gniibe@chroot.org>
6132
6133         * configure.in: Add machine sh3, sh4.
6134         * elf/elf.h: Add SH specific declarations of relocations.
6135         * shlib-versions: Add sh*-*-linux* cases.
6136
6137 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6138
6139         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6140         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6141         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6142         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6143         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6144         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6145
6146         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6147         instead of KERNEL_MATH_EMULATION.
6148         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6149         KERNEL_MATH_EMULATION.
6150
6151         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6152         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6153         * sysdeps/sh/dl-machine.h: ...here.  New file.
6154         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6155         and include generic SH version.
6156         * sysdeps/sh/sh3/bits/endian.h: Move to...
6157         * sysdeps/sh/bits/endian.h: ...here.  New file.
6158         * sysdeps/sh/sh4/bits/endian.h: Removed.
6159         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6160         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6161         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6162
6163         * include/libc-symbols.h (link_warning): Work around a change in
6164         GAS which warns about changing section attributes.
6165         Proposed by Nick Clifton <nickc@redhat.com>.
6166
6167 2000-06-12  H.J. Lu  <hjl@gnu.org>
6168
6169         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6170
6171 2000-06-11  H.J. Lu  <hjl@gnu.org>
6172
6173         * sysdeps/i386/fpu/Versions: New file.
6174
6175 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6176
6177         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6178         parameters.
6179         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6180         exists.
6181
6182 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6183
6184         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6185         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6186         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6187
6188         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6189         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6190         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6191
6192 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6193             Yutaka Niibe  <gniibe@chroot.org>
6194
6195         * sysdeps/sh/Dist: New file.
6196         * sysdeps/sh/Implies: New file.
6197         * sysdeps/sh/elf/initfini.c: New file.
6198         * sysdeps/sh/gmp-mparam.h: New file.
6199         * sysdeps/sh/init-first.c: New file.
6200         * sysdeps/sh/machine-gmon.h: New file.
6201         * sysdeps/sh/memcpy.S: New file.
6202         * sysdeps/sh/memprof.h: New file.
6203         * sysdeps/sh/memset.S: New file.
6204         * sysdeps/sh/sh3/__longjmp.S: New file.
6205         * sysdeps/sh/sh3/bits/endian.h: New file.
6206         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6207         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6208         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6209         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6210         * sysdeps/sh/sh3/dl-machine.h: New file.
6211         * sysdeps/sh/sh3/setjmp.S: New file.
6212         * sysdeps/sh/sh4/__longjmp.S: New file.
6213         * sysdeps/sh/sh4/bits/endian.h: New file.
6214         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6215         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6216         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6217         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6218         * sysdeps/sh/sh4/dl-machine.h: New file.
6219         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6220         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6221         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6222         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6223         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6224         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6225         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6226         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6227         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6228         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6229         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6230         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6231         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6232         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6233         * sysdeps/sh/sh4/setjmp.S: New file.
6234         * sysdeps/sh/elf/start.S: New file.
6235         * sysdeps/sh/sys/ucontext.h: New file.
6236         * sysdeps/sh/strlen.S: New file.
6237         * sysdeps/sh/sysdep.h: New file.
6238         * sysdeps/unix/sh/sysdep.S: New file.
6239         * sysdeps/unix/sh/sysdep.h: New file.
6240         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6241         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6242         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6243         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6244         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6245         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6246         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6247         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6248         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6249         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6250         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6251         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6252         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6253         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6254         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6255         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6256         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6257         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6258         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6259         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6260         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6261         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6262         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6263         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6264         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6265         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6266         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6267         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6268         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6269         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6270         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6271         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6272         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6273         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6274         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6275         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6276         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6277         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6278         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6279         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6280         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6281         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6282         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6283         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6284         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6285         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6286         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6287         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6288         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6289         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6290
6291 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6292
6293         * Rules (%.out): Define GCONV_PATH in the environment.
6294         * assert/Depend: New file.
6295         * iconvdata/Depend: New file.
6296         * intl/Depend: New file.
6297         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6298         * intl/tst-gettext.sh: Likewise.
6299         * iconv/Makefile (routines): Add gconv_trans.
6300         * iconv/gconv_trans.c: New file.
6301         * iconv/gconv.h (struct __gconv_trans_data): New type.
6302         (__gconv_fct): New parameter with starting position in output buffer.
6303         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6304         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6305         (struct __gconv_step): Add new member __trans.
6306         * iconv/gconv_int.h: Pretty print prototypes.
6307         (gconv_transliterate): New prototype.
6308         (__BUILTIN_TRANS): Update for new conversion function interface.
6309         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6310         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6311         in names, find appropriate function, and install in the conversion
6312         steps it can be used.
6313         * iconv/skeleton.c: Add additional parameter for beginning of output
6314         buffer.  Change calls of downstream functions.
6315         * iconv/loop.c: Change loop function interface completely.  Pass in
6316         step and step_data structure.  Remove optimization for BODY with
6317         NEED_LENGTH_TEST == 0.
6318         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6319         appropriate error handling code to use transliteration steps.  Remove
6320         optimization for BODY with NEED_LENGTH_TEST == 0.
6321         * iconvdata/8bit-gap.c: Likewise.
6322         * iconvdata/8bit-generic.c: Likewise.
6323         * iconvdata/ansi_x3.110.c: Likewise.
6324         * iconvdata/big5.c: Likewise.
6325         * iconvdata/big5hkscs.c: Likewise.
6326         * iconvdata/euc-cn.c: Likewise.
6327         * iconvdata/euc-jp.c: Likewise.
6328         * iconvdata/euc-kr.c: Likewise.
6329         * iconvdata/euc-tw.c: Likewise.
6330         * iconvdata/gbgbk.c: Likewise.
6331         * iconvdata/gbk.c: Likewise.
6332         * iconvdata/iso-2022-cn.c: Likewise.
6333         * iconvdata/iso-2022-jp.c: Likewise.
6334         * iconvdata/iso-2022-kr.c: Likewise.
6335         * iconvdata/iso646.c: Likewise.
6336         * iconvdata/iso8859-1.c: Likewise.
6337         * iconvdata/iso_6937-2.c: Likewise.
6338         * iconvdata/iso_6937.c: Likewise.
6339         * iconvdata/johab.c: Likewise.
6340         * iconvdata/sjis.c: Likewise.
6341         * iconvdata/t.61.c: Likewise.
6342         * iconvdata/uhc.c: Likewise.
6343         * iconvdata/unicode.c: Likewise.
6344         * iconvdata/utf-16.c: Likewise.
6345         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6346         DL_CALL_FCT.
6347         * wcsmbs/btowc.c: Likewise.
6348         * wcsmbs/mbrtowc.c: Likewise.
6349         * wcsmbs/mbsnrtowcs.c: Likewise.
6350         * wcsmbs/mbsrtowcs.c: Likewise.
6351         * wcsmbs/wcrtomb.c: Likewise.
6352         * wcsmbs/wcsnrtombs.c: Likewise.
6353         * wcsmbs/wcsrtombs.c: Likewise.
6354         * wcsmbs/wctob.c: Likewise.
6355
6356 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6357
6358         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6359         other header files.  Mention about 128-byte cache line sizes.
6360         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6361         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6362         for current calling sequence.
6363         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6364
6365         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6366         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6367
6368         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6369         and setrlimit syscalls for backwards compatibility.
6370
6371 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6372
6373         * iconv/skeleton.c:  Rename converted written to correcter name
6374         irreversible.
6375         * iconv/gconv.c: Rename converted variable to correcter name
6376         irreversible.
6377         * iconv/gconv_int.h: Likewise.
6378         * iconv/gconv_simple.c: Likewise.
6379         * iconv/iconv.c: Likewise.
6380         * iconv/loop.c: Likewise.
6381         * iconvdata/8bit-gap.c: Likewise.
6382         * iconvdata/8bit-generic.c: Likewise.
6383         * iconvdata/ansi_x3.110.c: Likewise.
6384         * iconvdata/big5.c: Likewise.
6385         * iconvdata/big5hkscs.c: Likewise.
6386         * iconvdata/euc-cn.c: Likewise.
6387         * iconvdata/euc-jp.c: Likewise.
6388         * iconvdata/euc-kr.c: Likewise.
6389         * iconvdata/gbgbk.c: Likewise.
6390         * iconvdata/gbk.c: Likewise.
6391         * iconvdata/iso-2022-cn.c: Likewise.
6392         * iconvdata/iso-2022-jp.c: Likewise.
6393         * iconvdata/iso-2022-kr.c: Likewise.
6394         * iconvdata/iso646.c: Likewise.
6395         * iconvdata/iso8859-1.c: Likewise.
6396         * iconvdata/iso_6937-2.c: Likewise.
6397         * iconvdata/iso_6937.c: Likewise.
6398         * iconvdata/johab.c: Likewise.
6399         * iconvdata/sjis.c: Likewise.
6400         * iconvdata/t.61.c: Likewise.
6401         * iconvdata/uhc.c: Likewise.
6402         * iconvdata/unicode.c: Likewise.
6403         * iconvdata/utf-16.c: Likewise.
6404
6405         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6406         __cmsg_data field with __extension__.
6407
6408 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6409
6410         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6411
6412 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6413
6414         * iconv/gconv_simple.c: Fix various small bugs in several
6415         functions.
6416
6417         * iconv/loop.c: Fix comment.
6418
6419 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6420
6421         * elf/link.h: Remove libc internal declarations.
6422         * include/link.h: Move them here.
6423
6424 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6425
6426         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6427         Patch by Dan Pop <Dan.Pop@cern.ch>.
6428
6429         Rewrite error message handling.
6430         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6431         _dl_catch_error.
6432         * elf/dl-error (struct catch): Add objname member.
6433         (_dl_signal_error): Take new parameter with object name.  When
6434         passing message on simply store object name and duplicate error
6435         message.
6436         (_dl_catch_error): Take new parameter.  Store object name in the
6437         place pointed to.
6438         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6439         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6440         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6441         (dlerror): Add objname to asprintf() parameters.
6442         (_dl_error_run): Pass new parameter to _dl_catch_error.
6443         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6444         * elf/dl-open.c (_dl_open): Likewise.
6445         * elf/rtld.c (dl_main): Likewise.
6446         * elf/dl-close.c: Mark error messages with N_().
6447         * elf/dl-deps.c: Likewise.
6448         * elf/dl-error.c: Likewise.
6449         * elf/dl-load.c: Likewise.
6450         * elf/dl-open.c: Likewise.
6451         * elf/dl-reloc.c: Likewise.
6452         * elf/dl-support.c: Likewise.
6453         * elf/dl-sym.c: Likewise.
6454         * elf/dl-version.c: Likewise.
6455         * elf/dl-lookup.c: Add comments about problems with error message
6456         translations.
6457         * elf/dl-reloc.c: Likewise.
6458         * elf/dl-version.c: Likewise.
6459
6460 2000-06-09  H.J. Lu  <hjl@gnu.org>
6461
6462         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6463         after freeing it.
6464
6465         * dlfcn/Makefile (distribute): Add failtestmod.c.
6466         (tests): Add failtest.
6467         Add rules to build and run failtest.
6468         * dlfcn/failtest.c: New file.
6469         * dlfcn/failtestmod.c: New file.
6470
6471 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6472
6473         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6474         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6475         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6476         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6477         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6478
6479 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6480
6481         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6482         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6483
6484 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6485             Ulrich Drepper  <drepper@redhat.com>
6486
6487         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6488         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6489         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6490         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6491         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6492         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6493
6494 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6495
6496         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6497         to find correct mount point despite wrong information from the
6498         kernel.
6499
6500 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6501
6502         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6503         the address of a symbol so function pointers are handled properly.
6504
6505 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6506
6507         * sysdeps/i386/Dist: Add bp-asm.h.
6508
6509         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6510         defaultdir variable instead of "/var/shm" everywhere.
6511         (defaultdir): Change to /dev/shm/.
6512
6513 2000-06-08  Greg McGary  <greg@mcgary.org>
6514
6515         * sysdeps/i386/bp-asm.h: New file.
6516         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6517         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6518         frame-pointer chain when debugging.
6519         * sysdeps/i386/add_n.S: Likewise.
6520         * sysdeps/i386/addmul_1.S: Likewise.
6521         * sysdeps/i386/lshift.S: Likewise.
6522         * sysdeps/i386/memchr.S: Likewise.
6523         * sysdeps/i386/memcmp.S: Likewise.
6524         * sysdeps/i386/mul_1.S: Likewise.
6525         * sysdeps/i386/rawmemchr.S: Likewise.
6526         * sysdeps/i386/rshift.S: Likewise.
6527         * sysdeps/i386/stpcpy.S: Likewise.
6528         * sysdeps/i386/stpncpy.S: Likewise.
6529         * sysdeps/i386/strchr.S: Likewise.
6530         * sysdeps/i386/strchrnul.S: Likewise.
6531         * sysdeps/i386/strcspn.S: Likewise.
6532         * sysdeps/i386/strpbrk.S: Likewise.
6533         * sysdeps/i386/strrchr.S: Likewise.
6534         * sysdeps/i386/strspn.S: Likewise.
6535         * sysdeps/i386/strtok.S: Likewise.
6536         * sysdeps/i386/sub_n.S: Likewise.
6537         * sysdeps/i386/submul_1.S: Likewise.
6538         * sysdeps/i386/elf/setjmp.S: Likewise.
6539         * sysdeps/i386/i486/strcat.S: Likewise.
6540         * sysdeps/i386/i486/strlen.S: Likewise.
6541         * sysdeps/i386/i586/add_n.S: Likewise.
6542         * sysdeps/i386/i586/lshift.S: Likewise.
6543         * sysdeps/i386/i586/memcpy.S: Likewise.
6544         * sysdeps/i386/i586/memset.S: Likewise.
6545         * sysdeps/i386/i586/rshift.S: Likewise.
6546         * sysdeps/i386/i586/strchr.S: Likewise.
6547         * sysdeps/i386/i586/strcpy.S: Likewise.
6548         * sysdeps/i386/i586/strlen.S: Likewise.
6549         * sysdeps/i386/i586/sub_n.S: Likewise.
6550         * sysdeps/i386/i686/add_n.S: Likewise.
6551         * sysdeps/i386/i686/memcpy.S: Likewise.
6552         * sysdeps/i386/i686/mempcpy.S: Likewise.
6553         * sysdeps/i386/i686/memset.S: Likewise.
6554         * sysdeps/i386/i686/strcmp.S: Likewise.
6555
6556 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6557
6558         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6559
6560         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6561         256 and don't use OPEN_MAX.
6562
6563         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6564         use it instead of LINK_MAX.
6565         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6566
6567 2000-06-08  Andreas Jaeger  <aj@suse.de>
6568
6569         * libio/genops.c (_IO_list_lock): Only compile body if we're
6570         thread safe.
6571         (_IO_list_unlock): Likewise.
6572         (_IO_list_resetlock): Likewise.
6573
6574 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6575
6576         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6577         unless user defined it.
6578
6579         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6580         if not defined by the user.
6581
6582         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6583         * libio/iofwrite.c (_IO_fwrite): Likewise.
6584
6585         * time/time.h: Add missing __THROW for clock_getcpuclockid
6586         prototype.
6587
6588         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6589         * include/elf.h: Include also <dl-dtprocnum.h>.
6590         * elf/dl-deps.c: Likewise.
6591         * elf/dl-lookup.c: Likewise.
6592         * elf/dl-runtime.c: Likewise.
6593         * elf/dl-version.c: Likewise.
6594         * elf/do-rel.h: Likewise.
6595         * elf/dynamic-link.h: Likewise.
6596         * elf/link.h: Likewise.
6597         * elf/rtld.c: Likewise.
6598         * sysdeps/generic/dl-dtprocnum.h: New file.
6599         * sysdeps/ia64/dl-dtprocnum.h: New file.
6600         * sysdeps/mips/dl-dtprocnum.h: New file.
6601         * sysdeps/sparc/dl-dtprocnum.h: New file.
6602
6603         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6604
6605         * elf/do-lookup.h: Add some __builtin_expect.
6606
6607         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6608
6609         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6610         (_dl_dynamic_weak): New variable.
6611         * elf/dl-support.c: Likewise.
6612         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6613         * elf/do-lookup.h: If we find a weak definition treat it like a
6614         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6615         case treat it like before.
6616
6617         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6618         is in main program.
6619         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6620
6621         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6622         using l_map_start and l_map_end.
6623
6624         * elf/dl-version.c: Add __builtin_expect in many places.
6625
6626         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6627         Update.
6628
6629 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6630
6631         Lock for stdio stream list becomes global, for use in LinuxThreads.
6632
6633         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6634         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6635         _IO_list_resetlock): New interface for iterating global list of
6636         streams without accessing the _IO_list_all global variable,
6637         and for manipulating the lock which protects this list.
6638         * libio/libioP.h: Likewise.
6639         * libio/Version: Add entries for the new functions.
6640
6641         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6642         pointer to _IO_FILE.
6643
6644 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6645
6646         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6647         BIT() must actually be BITw().
6648
6649         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6650
6651         * locale/programs/charmap.c: Allow string arguments for
6652         code_set_name and repertoiremap.
6653
6654 2000-06-07  Andreas Jaeger  <aj@suse.de>
6655
6656         * elf/Makefile: Build ldconfig only when building shared libraries.
6657
6658 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6659
6660         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6661         __USE_ISOC99.
6662         (fdimf, __fdim, fdim): Likewise.
6663
6664 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6665
6666         * locale/findlocale.c: Add __builtin_expect in many places.
6667         * locale/loadlocale.c: Likewise.
6668
6669 2000-06-06  Greg McGary  <greg@mcgary.org>
6670
6671         * sysdeps/mips/elf/start.S: Trim redundant code.
6672
6673         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6674         Use C comments throughout.  Line up operands column with tabs.
6675         * sysdeps/powerpc/strchr.S: Likewise.
6676         * sysdeps/powerpc/strcmp.S: Likewise.
6677         * sysdeps/powerpc/strcpy.S: Likewise.
6678         * sysdeps/powerpc/strlen.S: Likewise.
6679
6680         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6681         Get low part of &__curbrk with @l.
6682
6683 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6684
6685         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6686         * iconvdata/unicode.c: Likewise.
6687         * iconvdata/uhc.c: Likewise.
6688         * iconvdata/t.61.c: Likewise.
6689         * iconvdata/sjis.c: Likewise.
6690         * iconvdata/johab.c: Likewise.
6691         * iconvdata/iso_6937.c: Likewise.
6692         * iconvdata/iso_6937-2.c: Likewise.
6693         * iconvdata/iso8859-1.c: Likewise.
6694         * iconvdata/iso646.c: Likewise.
6695         * iconvdata/iso-2022-kr.c: Likewise.
6696         * iconvdata/iso-2022-jp.c: Likewise.
6697         * iconvdata/iso-2022-cn.c: Likewise.
6698         * iconvdata/gbgbk.c: Likewise.
6699         * iconvdata/gbk.c: Likewise.
6700         * iconvdata/euc-kr.c: Likewise.
6701         * iconvdata/euc-jp.c: Likewise.
6702         * iconvdata/euc-cn.c: Likewise.
6703
6704 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6705
6706         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6707         * iconvdata/big5.c: Likewise.
6708         * iconvdata/ansi_x3.110.c: Likewise.
6709         * iconvdata/8bit-generic.c: Likewise.
6710         * iconvdata/8bit-gap.c: Likewise.
6711         * iconv/loop.c: Likewise.
6712         * iconv/gconv_db.c: Likewise.
6713         * iconv/gconv_dl.c: Likewise.
6714         * iconv/gconv_simple.c: Likewise.
6715         * iconv/skeleton.c: Likewise.
6716
6717         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6718         (struct __gconv_step_data): Rename __is_last to __flags.
6719         * iconv/gconv_close.c: Change all uses of __is_last.
6720         * iconv/skeleton.c: Likewise.
6721         * iconvdata/iso-2022-cn.c: Likewise.
6722         * iconvdata/iso-2022-jp.c: Likewise.
6723         * iconvdata/iso-2022-kr.c: Likewise.
6724         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6725         Recognize IGNORE error handling, set flag, and remove from name.
6726         * iconv/loop.c (ignore_errors_p): Define.
6727         Add flags parameter to both functions.
6728         * iconv/skeleton.c: Pass flags to all conversion functions.
6729         * iconv/gconv_simple.c: Add flags parameter to all functions.
6730         Don't return error for invald error if ignore flag is set.
6731         (ucs4_internal_loop_single): Add missing pointer increment.
6732         (internal_ucs4le_loop_single): Likewise.
6733         * iconv/iconv_prog.c: Implement handling of -c parameter.
6734         * iconvdata/8bit-gap.c: Don't return error for invald error if
6735         ignore flag is set.
6736         * iconvdata/8bit-generic.c: Likewise.
6737         * iconvdata/ansi_x3.110.c: Likewise.
6738         * iconvdata/big5.c: Likewise.
6739         * iconvdata/big5hkscs.c: Likewise.
6740         * iconvdata/euc-cn.c: Likewise.
6741         * iconvdata/euc-jp.c: Likewise.
6742         * iconvdata/euc-kr.c: Likewise.
6743         * iconvdata/gbgbk.c: Likewise.
6744         * iconvdata/gbk.c: Likewise.
6745         * iconvdata/iso-2022-cn.c: Likewise.
6746         * iconvdata/iso-2022-jp.c: Likewise.
6747         * iconvdata/iso-2022-kr.c: Likewise.
6748         * iconvdata/iso646.c: Likewise.
6749         * iconvdata/iso8859-1.c: Likewise.
6750         * iconvdata/iso_6937-2.c: Likewise.
6751         * iconvdata/iso_6937.c: Likewise.
6752         * iconvdata/johab.c: Likewise.
6753         * iconvdata/sjis.c: Likewise.
6754         * iconvdata/t.61.c: Likewise.
6755         * iconvdata/uhc.c: Likewise.
6756         * iconvdata/unicode.c: Likewise.
6757         * iconvdata/utf-16.c: Likewise.
6758         * libio/fileops.c: Likewise.
6759         * libio/iofwide.c: Likewise.
6760         * wcsmbs/btowc.c: Likewise.
6761         * wcsmbs/mbrtowc.c: Likewise.
6762         * wcsmbs/mbsnrtowcs.c: Likewise.
6763         * wcsmbs/mbsrtowcs.c: Likewise.
6764         * wcsmbs/wcrtomb.c: Likewise.
6765         * wcsmbs/wcsnrtombs.c: Likewise.
6766         * wcsmbs/wcsrtombs.c: Likewise.
6767         * wcsmbs/wctob.c: Likewise.
6768
6769         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6770         an error.
6771
6772 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6773
6774         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6775         counter for the object we are releasing, just decrement it.
6776         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6777
6778 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6779
6780         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6781         if -ffast-math.
6782
6783 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6784
6785         * iconvdata/big5hkscs.c: New file.
6786         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6787
6788         * iconvdata/gconv-modules: Add entry for new module.
6789         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6790         (distribute): Add big5hkscs.c.
6791
6792 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6793
6794         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6795         inlines to match prototypes in mathcalls.h.
6796         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6797         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6798         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6799         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6800
6801 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6802
6803         * elf/elf.h (SHT_SUNW_move): Define.
6804
6805         * elf/elf.h: Add more Solaris compatiblity definitions.
6806
6807 2000-06-03  Andreas Jaeger  <aj@suse.de>
6808
6809         * sysdeps/powerpc/dl-start.S: Close open comment.
6810
6811 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6812
6813         * inet/Versions: Fix typo in rresvport_af export.
6814
6815 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6816
6817         * math/tgmath.h: Pretty print.
6818
6819 2000-06-02  Andreas Jaeger  <aj@suse.de>
6820
6821         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6822         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6823
6824 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6825
6826         * elf/rtld.c (process_envvars): Test for = after variable name.
6827
6828 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6829
6830         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6831         have extra call to __gmon_start__, use the pointer we already have.
6832
6833         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6834         shifting.
6835
6836         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6837         binutils.  gas now emits a jump through the PLT instead of a
6838         relative jump if the jump target is an exported symbol.
6839
6840 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6841
6842         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6843
6844 2000-05-31  Andreas Jaeger  <aj@suse.de>
6845
6846         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6847         gregset_t.
6848
6849         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6850         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6851
6852         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6853         syscall.
6854         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6855
6856 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6857
6858         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6859
6860         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6861         * locale/localeconv.c: Make function versioned (with same definition).
6862
6863         * elf/Makefile (modules-names): Strip before using it.
6864
6865 2000-05-30  Andreas Jaeger  <aj@suse.de>
6866
6867         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
6868         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
6869         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
6870         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
6871         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
6872         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
6873
6874 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6875
6876         * Makefile: Add GNU make magic.
6877
6878         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
6879         Removed.
6880         * inet/rcmd.c: Remove __P.  Remove unused variables.
6881         (iruserfopen): Make first parameter const.
6882         (ruserok_sa): Return result of ruserok2_sa.
6883         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
6884         * inet/rexec.c: Remove unused variables.  Other small cleanups.
6885         * inet/ruserpass.c: Remove __P.  Remove unused variables.
6886         (ruserpass): Check results of memory allocation.
6887         * include/netdb.h: Add prototype for ruserpass.
6888
6889 2000-05-29  Andreas Jaeger  <aj@suse.de>
6890
6891         * elf/readlib.c (interpreters): Use LD_SO since this is supported
6892         for all platforms.
6893
6894 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
6895
6896         * inet/rcmd.c (rresvport_af): Use correct port number.
6897
6898 2000-05-26  Andreas Schwab  <schwab@suse.de>
6899
6900         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
6901         entries in all-sonames.
6902         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
6903         preserving the old name if different for compatibility.
6904
6905 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6906
6907         * posix/Makefile (tests): Add tst-spawn.
6908         (tst-spawn-ARGS): New variable.
6909         * posix/tst-spawn.c: New file.
6910
6911         * posix/spawn_faction_addclose.c: Correctly account for new entry.
6912         * posix/spawn_faction_adddup2.c: Likewise.
6913         * posix/spawn_faction_addopen.c: Likewise.
6914         * posix/spawni.c: Correctly test for success of dup2 calls.
6915
6916         * posix/tst-preadwrite.c: Check success of malloc call.
6917
6918 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6919
6920         * posix/Makefile (tests): Add tst-exec.
6921         (tst-exec-ARGS): New variable.
6922         * posix/tst-exec.c: New file.
6923
6924         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
6925
6926 2000-05-04  Andreas Jaeger  <aj@suse.de>
6927
6928         * string/string.h: Remove __strdup prototype, it's not needed in
6929         this file anymore.
6930
6931 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6932
6933         * posix/Makefile (tests): Add tst-fork.
6934         * posix/tst-fork.c: New file.
6935
6936         * resolv/inet_pton.c: Loose __P.
6937
6938 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6939
6940         * libio/libioP.h (_IO_CHECK_WIDE): Define.
6941         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
6942         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
6943         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
6944         _IO_CHECK_WIDE fails.
6945
6946 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6947
6948         * po/da.po: New file.
6949
6950         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
6951         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
6952
6953         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
6954         (Other iconv Implementations): Fix typo.
6955         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
6956
6957 2000-05-27  Andreas Jaeger  <aj@suse.de>
6958
6959         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
6960         normal version now.
6961         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
6962         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
6963         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6964         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6965         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
6966         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
6967
6968         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
6969         endianness to decide how to pass arguments.
6970         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
6971
6972         * elf/vismain.c: Use test-skeleton interface.
6973         (TEST_FUNCTION): New macro.
6974         (do_test): Renamed from main.
6975
6976 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
6977
6978         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
6979         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
6980
6981         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
6982         handling of AI_V4MAPPED flag.
6983
6984         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
6985         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
6986         perform lookup for T_A type and tell getanswer_r to convert the
6987         result with new argument.
6988         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
6989         Don't convert addresses from IPv4 to IPv6 here.
6990         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
6991         IPv6 is wanted.  Allow qtype and type from reply to disagree if
6992         IPv4 mapping has to be done.  Perform mappings if required by the
6993         caller and not if RES_USE_INET6 bit in _res.options is set.
6994         Add several __builtin_expect.
6995
6996 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
6997
6998         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
6999
7000         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7001         NULL.
7002
7003         * posix/tst-preadwrite.c: Allow parallel execution of
7004         tst-preadwrite and tst-preadwrite64.
7005
7006         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7007         * posix/tst-truncate.c: New file.
7008         * posix/tst-truncate64.c: New file.
7009
7010         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7011         was switched.
7012
7013         * posix/Makefile (tests): Add tst-preadwrite64.
7014         * posix/tst-preadwrite.c: Alloc file being used also for testing
7015         pread64 and pwrite64.
7016         * posix/tst-preadwrite64.c: New file.
7017
7018 2000-05-26  Andreas Jaeger  <aj@suse.de>
7019
7020         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7021         of arguments dependend on endianness.
7022         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7023
7024         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7025         normal version now.
7026         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7027         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7028         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7029         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7030
7031         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7032         endianness to check how to pass argument.
7033         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7034
7035         * elf/ldconfig.h: Update parameter list for process_elf_file.
7036
7037         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7038         Add parameter file_length and pass it ot process_elf*file.
7039
7040         * sysdeps/generic/readelflib.c (check_ptr): New.
7041         (process_elf_file): Use check_ptr to check all accesses to the
7042         mmapped file. Add parameter file_length.
7043
7044         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7045         library names.
7046
7047         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7048         Closes PR libc/1573, reported by Bradley White
7049         <bww@laurelnetworks.com>.
7050
7051 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7052
7053         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7054         __FAST_MATH__ is defined.
7055
7056 2000-05-22  Andreas Jaeger  <aj@suse.de>
7057
7058         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7059         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7060
7061         * manual/math.texi (FP Function Optimizations): Document gcc
7062         -ffast-math behaviour with mathinlines.
7063
7064         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7065         functions unless -ffast-math is given to gcc.
7066
7067 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7068
7069         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7070         __sincosl): Guard with __USE_GNU.
7071
7072 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7073
7074         * csu/Makefile (routines): Add check_fds.
7075         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7076         binaries.  Add various __builtin_expect.
7077         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7078         * sysdeps/generic/check_fds.c: ...here.  New file.
7079
7080         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7081         binaries if file /etc/suid-debug is available.
7082
7083         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7084         and wcseqorder members.
7085         (struct locale_collate_t): Likewise.
7086         (collate_finish): Assign collation sequence value to each character.
7087         Create tables for output.
7088         (collate_output): Write out tables with collation sequence information.
7089         * locale/C-collate.c: Provide C locale data for collation sequence
7090         table.
7091         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7092         _NL_COLLATE_COLLSEQWC.
7093         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7094         _NL_COLLATE_COLLSEQWC.
7095         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7096         include fnmatch_loop.c.
7097         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7098         character is matched by range expression.  Use collation sequence
7099         table.  Outside glibc fall back on simple character value comparison.
7100
7101 2000-05-24  Andreas Jaeger  <aj@suse.de>
7102
7103         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7104         words.
7105
7106         * intl/Makefile: Run gettext-test only if msgfmt is available.
7107
7108         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7109         Define it for newer kernels.
7110
7111 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7112
7113         * elf/dl-sym.c: Minor cleanups.
7114
7115         * configure.in: Add test for .protected.
7116         * config.make.in: Add have-protected variable.
7117         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7118         (tests-vis-yes): Add vismain.
7119         (modules-names): Add $(modules-vis-$(have-protected)).
7120         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7121         Add rules to generate and run vismain.
7122         * elf/vismain.c: New file.
7123         * elf/vismod1.c: New file.
7124         * elf/vismod2.c: New file.
7125         * elf/vismod3.c: New file.
7126
7127 2000-05-23  Andreas Jaeger  <aj@suse.de>
7128
7129         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7130
7131         * manual/search.texi (Array Sort Function): Document that qsort is
7132         not necessarily in-place.
7133
7134         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7135         Closes PR libc/1731.
7136
7137         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7138         * dirent/scandir64.c: Likewise.
7139         * pwd/getpw.c: Likewise.
7140         * stdlib/bsearch.c (bsearch): Likewise.
7141         * stdlib/tst-strtoll.c: Likewise.
7142         * localedata/collate-test.c: Likewise.
7143         * localedata/xfrm-test.c: Likewise.
7144         * posix/bsd-getpgrp.c: Likewise.
7145         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7146         * sysdeps/generic/bits/siginfo.h: Likewise.
7147         * sysdeps/generic/bits/sockaddr.h: Likewise.
7148         * sysdeps/generic/sys/swap.h: Likewise.
7149         * sysdeps/generic/sys/sysinfo.h: Likewise.
7150         * sysdeps/generic/vfork.c: Likewise.
7151         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7152         * sysdeps/mach/hurd/fdopen.c: Likewise.
7153         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7154         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7155         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7156         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7157         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7158         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7159         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7160
7161         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7162         * shadow/lckpwdf.c: Likewise.
7163         * stdlib/tst-strtol.c: Likewise.
7164         * sysdeps/generic/tcsetattr.c: Likewise.
7165         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7166         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7167
7168 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7169
7170         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7171         free it and set to (void *) -1.
7172
7173 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7174
7175         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7176         not the second character in the range.
7177         * stdio-common/tstscanf.c (main): Add testcase for the above.
7178         Reported by jik@kamens.brookline.ma.us.
7179
7180 2000-05-21  H.J. Lu  <hjl@gnu.org>
7181
7182         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7183         with noexec and noplt parameter.
7184         (do_lookup): Likewise.
7185
7186         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7187         do_lookup.  Support STV_PROTECTED.
7188         (_dl_lookup_symbol_skip): Likewise.
7189         (_dl_lookup_versioned_symbol): Likewise.
7190         (_dl_lookup_versioned_symbol_skip): Likewise.
7191
7192         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7193
7194         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7195
7196 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7197
7198         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7199         * sysdeps/i386/bits/huge_val.h: Likewise.
7200         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7201         * sysdeps/m68k/bits/huge_val.h: Likewise.
7202         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7203         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7204
7205 2000-05-22  Andreas Jaeger  <aj@suse.de>
7206
7207         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7208         change in iconv.h.
7209
7210 2000-05-19  Andreas Jaeger  <aj@suse.de>
7211
7212         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7213         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7214         breaks compilation without linuxthreads.
7215
7216 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7217
7218         * sysdeps/ia64/memccpy.S: New file.
7219         * sysdeps/ia64/memchr.S: New file.
7220         * sysdeps/ia64/memcmp.S: New file.
7221         * sysdeps/ia64/memcpy.S: New file.
7222         * sysdeps/ia64/memmove.S: New file.
7223         * sysdeps/ia64/memset.S: New file.
7224         * sysdeps/ia64/strcat.S: New file.
7225         * sysdeps/ia64/strchr.S: New file.
7226         * sysdeps/ia64/strcmp.S: New file.
7227         * sysdeps/ia64/strcpy.S: New file.
7228         * sysdeps/ia64/strlen.S: New file.
7229         * sysdeps/ia64/strncmp.S: New file.
7230         * sysdeps/ia64/strncpy.S: New file.
7231         * sysdeps/ia64/softpipe.h: New file.
7232         Patches by Dan Pop <Dan.Pop@cern.ch>.
7233
7234         * manual/memory.texi: Document memory handling functions (mlock,
7235         munlock, mlockall, munlockall, brk, and sbrk)
7236         * manual/time.texi: Document timespec and friends.
7237         * manual/conf.texi: Fix references.
7238         * manual/ctype.texi: Likewise.
7239         * manual/errno.texi: Likewise.
7240         * manual/intro.texi: Likewise.
7241         * manual/locale.texi: Likewise.
7242         * manual/sysinfo.texi: Likewise.
7243         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7244
7245 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7246
7247         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7248         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7249
7250 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7251
7252         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7253         dxfer_direction.
7254
7255 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7256
7257         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7258         * locale/localeconv.c: Initialize new elements from ISO C99.
7259         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7260         new standard elements.
7261         * locale/categories.def: Adjust accordingly.
7262
7263         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7264         * iconv/iconv.c: Likewise.
7265         * conform/data/iconv.h-data: Likewise.
7266         * iconv/iconv_prog.c (process_block): Remove const from second
7267         parameter.
7268         (main): Remove const from addr definition.
7269         * manual/charset.texi (Generic Conversion Interface): Remove from
7270         inbuf parameter of iconv.
7271
7272         * intl/dcigettext.c: Fix typo in comment.
7273
7274 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7275
7276         * resolv/res_libc.c (_res): Initialize _sock to -1.
7277
7278 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7279
7280         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7281         (fopencookie@@GLIBC_2.2): New.
7282         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7283         (fopencookie@GLIBC_2.0): New.
7284         * libio/Versions: Add fopencookie to GLIBC_2.2.
7285
7286 2000-05-18  Andreas Jaeger  <aj@suse.de>
7287
7288         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7289         Closes PR libc/1731.
7290
7291         * manual/arith.texi (Parsing of Integers): Fix typo.
7292         Closes PR libc/1744, reported by blp@gnu.org.
7293
7294 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7295
7296         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7297         __extension__ to hexadecimal floating constant notation.
7298         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7299         Likewise.
7300         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7301         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7302         Likewise.
7303         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7304         HUGE_VALL): Likewise.
7305         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7306         HUGE_VALL): Likewise.
7307         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7308
7309 2000-05-17  Andreas Jaeger  <aj@suse.de>
7310
7311         * string/envz.h: Add pure attributes if possible.
7312
7313         * string/argz.h: argz_count is a pure function.
7314
7315         * string/strings.h: Add pure and const attributes if possible.
7316
7317         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7318         possibly searching through the whole memory.
7319         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7320
7321 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7322
7323         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7324         not yet defined.
7325         (_dl_cache_check_flags): Likewise.
7326         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7327         dl-cache.h.
7328
7329 2000-05-17  Andreas Jaeger  <aj@suse.de>
7330
7331         * manual/creature.texi (Feature Test Macros): Remove paragraph
7332         since the description is wrong.
7333         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7334
7335         * scripts/config.sub: New version.
7336         * scripts/config.guess: Likewise.
7337         * manual/texinfo.tex: Likewise.
7338
7339         * time/test_time.args: Removed.
7340         * time/Makefile (test_time-ARGS): Added contents here instead.
7341
7342         * posix/tstgetopt.args: Removed.
7343         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7344
7345         * Rules: Allow arguments for test files to be specified in
7346         Makefile with testname-ARGS; remove rules with .args in it.
7347
7348         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7349         remove old bogus rule for opendir-tst1.args.
7350
7351         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7352
7353         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7354         into objdir.  This allows a readonly sourcetree.
7355         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7356
7357 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7358             David Huggins-Daines <dhd@linuxcare.com>
7359
7360         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7361         cache_data in case of only new cache format correctly.
7362
7363         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7364         cache_file_new.
7365
7366         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7367         struct cache_file_new.
7368
7369         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7370         present.
7371
7372         * elf/cache.c (save_cache): Align struct new_file_cache.
7373         (print_cache): Likewise.
7374
7375 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7376
7377         * elf/soinit.c (__libc_global_ctors): Move
7378         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7379         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7380         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7381         variable, don't define it to __res_state call.
7382
7383 2000-05-13  Andreas Jaeger  <aj@suse.de>
7384
7385         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7386         Linux 2.3.99pre7.
7387         (AF_PPPOX): Likewise.
7388         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7389         (AF_PPPOX): Likewise.
7390
7391 2000-05-12  Andreas Jaeger  <aj@suse.de>
7392
7393         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7394         Reported by tmoestl@gmx.net, closes PR libc/1732.
7395
7396 2000-05-11  Jan Hubicka  <jh@suse.cz>
7397
7398         * misc/sys/cdefs.h: Add support for pure attribute.
7399
7400         * include/string.h: Add __attribute_pure__ to various functions.
7401         * string/string.h: Likewise.
7402
7403 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7404
7405         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7406         argument.
7407         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7408         R_SPARC_UA64.
7409         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7410
7411 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7412
7413         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7414         at proper place.  Compute the high nibble correctly.
7415
7416 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7417
7418         * elf/ldconfig.c: Include elf.h.
7419
7420         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7421         (_dl_vsym): Likewise.
7422         Reported by Owen Taylor <otaylor@redhat.com>.
7423
7424         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7425         always.
7426
7427 2000-05-08  Andreas Jaeger  <aj@suse.de>
7428
7429         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7430
7431         * intl/bindtextdom.c (set_binding_values): Add prototype.
7432
7433 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7434
7435         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7436         call to elf_machine_fixup_plt.
7437         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7438         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7439
7440 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7441
7442         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7443         they are not dlclose'd from underneath us.
7444
7445 2000-05-08  Andreas Schwab  <schwab@suse.de>
7446
7447         * posix/execle.c: Fix size parameter of memcpy.
7448
7449 2000-05-08  Andreas Schwab  <schwab@suse.de>
7450
7451         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7452         getpagesize syscall if available.
7453
7454 2000-05-08  Andreas Jaeger  <aj@suse.de>
7455
7456         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7457         set errno.
7458
7459 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7460
7461         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7462         sizeof(struct link_map *) chunks, not in bytes.
7463
7464 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7465
7466         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7467         only needed for locale.
7468         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7469         It's only needed for catgets.
7470         Patches by Greg McGary <gkm@eng.ascend.com>.
7471
7472 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7473
7474         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7475         Remove duplicate <errno.h> include.  Remove inclusion of
7476         <libintl.h> and "nsswitch.h".
7477         (set_cloexec_flag): New function, broken out of dbopen.
7478         (dbopen): Changed return type to `enum
7479         nss_status'.  Mostly rewritten to make sure that we do not report
7480         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7481         (internal_setent): Change return type to nss_status.
7482         Document, and make sure that the function
7483         behaves accordingly.  Make dynamically loading the database
7484         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7485         failed.
7486         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7487         unecessary casts.
7488         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7489         documentation.
7490         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7491         c_get function member.
7492         * nss/nss_db/nss_db.h: Add and tweak some comments.
7493         (DBT): Move typedef before NSS_DBC typedef.
7494         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7495
7496 2000-05-07  H.J. Lu  <hjl@gnu.org>
7497
7498         * csu/initfini.c: Moved to ....
7499         * sysdeps/generic/initfini.c: ...here.
7500
7501         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7502
7503 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7504
7505         * manual/resource.texi: Document POSIX scheduling functions.
7506         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7507
7508         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7509         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7510
7511         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7512         for x since promotion in comparison might leads to unexpected
7513         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7514
7515         * iconv/Makefile (tests): Add tst-iconv1.
7516         * iconv/tst-iconv1.c: New file.
7517         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7518         empty input buffer over full output buffer.
7519         (ucs4_internal_loop): Likewise.
7520         (ucs4_internal_loop_unaligned): Likewise.
7521         (internal_ucs4le_loop): Likewise.
7522         (internal_ucs4le_loop_unaligned): Likewise.
7523         (ucs4le_internal_loop): Likewise.
7524         (ucs4le_internal_loop_unaligned): Likewise.
7525         Reported by yaoz@nih.gov.
7526
7527 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7528
7529         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7530         returned != __GCONV_OK, there is nothing to clean up.
7531
7532 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7533
7534         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7535         OUTPUT_CHARSET environment variables.
7536
7537 2000-05-06  Andreas Jaeger  <aj@suse.de>
7538
7539         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7540         (struct cache_file_new): New.
7541         (struct file_entry): New (moved from cache.c).
7542         (struct cache_file): New (moved from cache.c).
7543
7544         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7545         from _dl_load_cache_lookup.
7546         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7547         the different cache formats.
7548         New variable cache_new for new format.
7549
7550         * elf/ldconfig.h: Change according to changes in cache.c and
7551         ldconfig.c; remove cache_libcmp; add opt_format.
7552
7553         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7554         stuff that's defined in those headers.
7555         Add hwcap to struct lib_entry.
7556         (opt_format): New variable to select cache format.
7557         (options): Add format parameter.
7558         (is_hwcap): New function.
7559         (path_hwcap): New function.
7560         (parse_opt): Handle new format parameter.
7561         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7562
7563         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7564         ldconfig is part of glibc.
7565         Include dl-cache.h and remove stuff that's defined there.
7566         (struct cache_entry): Add new member hwcap.
7567         (print_entry): Print hwcap, cleanup a bit.
7568         (print_cache): Print new and old formats.
7569         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7570         (save_cache): Save new and old formats.
7571         (add_to_cache): Handle hwcap.
7572
7573         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7574         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7575         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7576         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7577         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7578         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7579
7580 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7581
7582         * intl/dcigettext.c (alignof): New macro.
7583         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7584         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7585         freemem_size to 0.
7586
7587 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7588
7589         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7590         return value.
7591
7592 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7593
7594         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7595         (mempcpy): Correct typo is parameter list.
7596
7597 2000-05-06  Andreas Jaeger  <aj@suse.de>
7598
7599         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7600         functions unless -ffast-math is given to gcc.
7601
7602 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7603
7604         * po/ko.po: Update from translation team.
7605
7606 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7607
7608         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7609         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7610         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7611         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7612         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7613         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7614
7615         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7616         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7617         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7618
7619         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7620         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7621         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7622         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7623
7624         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7625         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7626
7627 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7628
7629         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7630         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7631
7632         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7633         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7634
7635         * sysdeps/ia64/Implies: New file.
7636         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7637         * sysdeps/ia64/Makefile: New file.
7638         * sysdeps/ia64/gmp-mparam.h: New file,
7639
7640         * sysdeps/ia64/elf/start.S: New file.
7641
7642         * sysdeps/ia64/bits/fenv.h: New file.
7643
7644 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7645
7646         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7647
7648 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7649
7650         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7651         ia64 has 64 bit .hash entries just as the Alpha.
7652
7653 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7654
7655         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7656
7657 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7658
7659         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7660         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7661         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7662         * sysdeps/ia64/fpu/fegetenv.c: New file.
7663         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7664         * sysdeps/ia64/fpu/fegetround.c: New file.
7665         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7666         * sysdeps/ia64/fpu/fesetenv.c: New file.
7667         * sysdeps/ia64/fpu/fesetround.c: New file.
7668         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7669         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7670         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7671         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7672         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7673
7674 2000-05-05  Andreas Jaeger  <aj@suse.de>
7675
7676         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7677
7678         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7679         (_dl_string_hwcap): New, does nothing.
7680
7681         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7682         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7683         (_dl_string_hwcap): New function, converts from string to hwcap
7684         encoding.
7685         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7686         (_DL_HWCAP_COUNT): New.
7687         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7688         (_dl_string_hwcap): New function, converts from string to hwcap
7689         encoding.
7690         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7691         (_DL_HWCAP_COUNT): New.
7692         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7693         (_dl_string_hwcap): New function, converts from string to hwcap
7694         encoding.
7695
7696 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7697
7698         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7699         * sysdeps/ia64/Dist: New file.
7700
7701         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7702         parameter to mprotect and for variable assignments.
7703
7704 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7705
7706         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7707         validity of map before dereferencing it.
7708
7709         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7710
7711 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7712
7713         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7714         lookup to the arguments to elf_machine_fixup_plt().
7715
7716         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7717         of the symbol being resolved to input argument list and make the
7718         function return the pointer to the reloc.
7719
7720         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7721         return valuie to lookup_t and return the value.
7722         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7723         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7724         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7725         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7726         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7727         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7728
7729         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7730         Make it an inline function returning value after calling
7731         __elf_machine_fixup_plt().
7732
7733         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7734         symbol address.
7735
7736         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7737         obtain the symbol address.
7738
7739         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7740         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7741
7742         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7743         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7744         inline on non ia64.
7745
7746 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7747
7748         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7749         symbol address of an object.
7750
7751         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7752         the symbol address of an object.
7753
7754         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7755         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7756         (_dl_lookup_symbol_skip): Likewise.
7757         (_dl_lookup_versioned_symbol): Likewise.
7758         (_dl_lookup_versioned_symbol_skip): Likewise.
7759
7760 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7761
7762         * elf/rtld.c (_dl_start): Get the function pointer return address
7763         via _dl_start_address for architectures that need a function
7764         pointer descriptor rather than just a pointer (ia64).
7765
7766         * sysdeps/generic/dl-lookupcfg.h: New file.
7767         * sysdeps/ia64/dl-lookupcfg.h: New file.
7768         * sysdeps/ia64/dl-machine.h: New file.
7769         * sysdeps/ia64/dl-symaddr.c: New file.
7770         * sysdeps/ia64/dl-fptr.c: New file.
7771
7772         * elf/elf.h: Add IA-64 specific definitions.
7773
7774 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7775
7776         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7777         end of enum.
7778
7779 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7780
7781         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7782         happy.
7783
7784 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7785
7786         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7787         symbol.  Call _dl_init rather than the old way.
7788
7789 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7790
7791         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7792         test for pointer in range of DSO address space.
7793
7794 2000-05-04  Andreas Jaeger  <aj@suse.de>
7795
7796         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7797
7798 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7799
7800         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7801         calls of _nl_make_l10nflist.
7802
7803         * libio/stdio.h: Make fseeko and ftello prototypes available is
7804         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7805
7806         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7807         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7808
7809 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7810
7811         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7812         before calling tfind.
7813
7814 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7815
7816         * resolv/resolv.h (res_querydomain): Remove redefinition to
7817         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7818
7819 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7820
7821         * po/gl.po: Update from translation team.
7822
7823         * manual/intro.texi (Program Basics): Change section title.
7824         * manual/process.texi: Fix reference.
7825         (Executing a File): Add reference exec in other section.
7826         * manual/signal.texi: Fix reference.
7827         * manual/startup.texi: Document syscall function.
7828         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7829
7830 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7831
7832         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7833         * intl/bindtextdom.c (set_binding_values): New function.
7834         (bindtextdomain): Call it.
7835         (bind_textdomain_codeset): New function.
7836         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7837         (free_mem): Free each binding's codeset.
7838         * intl/gettextP.h (struct binding): Add codeset field.
7839         (_nl_find_domain): Add domainbinding argument.
7840         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7841         Pass it to _nl_make_l10nflist.
7842         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7843         (_nl_make_l10nflist): Add domainbinding argument.
7844         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7845         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7846         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7847         locale_charset().
7848         * manual/message.texi: New node "Charset conversion in gettext".
7849
7850 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7851
7852         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7853         appropriate.  Handle possible __read error.
7854
7855 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7856
7857         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7858         compiler builtin.
7859         * intl/loadinfo.h (__builtin_expect): Likewise.
7860         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7861         __builtin_expect where appropriate.
7862         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7863         * intl/localealias.c (extend_alias_table): Return an error indicator.
7864         (read_alias_file): Bail out if extend_alias_table fails.
7865
7866 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7867
7868         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
7869         * intl/localealias.c: Likewise.
7870
7871 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7872
7873         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
7874         Initialize domain->plural and domain->nplurals even if there is no
7875         nullentry.
7876
7877 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7878
7879         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
7880         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
7881         In case of failure, goto converted.
7882
7883 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7884
7885         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
7886         * iconv/gconv_int.h (norm_add_slashes): Move to here.
7887         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
7888         __gconv_open.
7889
7890 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7891
7892         * intl/dcigettext.c (transcmp): Compare the domains as well.
7893         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
7894         not before.
7895         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
7896         <errno.h>.
7897
7898 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7899
7900         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
7901         Reported by Bruno Haible.
7902
7903 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7904
7905         * manual/arith.texi: Remove @w from @itemize.
7906
7907 2000-05-02  Andreas Jaeger  <aj@suse.de>
7908
7909         * conform/data/tar.h-data: Add some checks for specific values.
7910
7911         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
7912         and RAND_MAX.
7913
7914         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
7915         FOPEN_MAX.
7916
7917         * conform/data/netinet/in.h-data: Add exact checks for the values
7918         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
7919
7920         * conform/data/float.h-data: Add some minimal values.
7921
7922         * conform/conformtest.pl: Test for macros with string constants,
7923         check for minimum and maximum values.
7924         Add limits.h to headers.
7925
7926         * conform/data/cpio.h-data: Test for value of MAGIC.
7927
7928         * conform/data/limits.h-data: New file.
7929
7930 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7931
7932         * math/Makefile (headers): Add bits/fenvinline.h.
7933
7934 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
7935
7936         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
7937         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
7938
7939         * posix/Versions: Change posix_spawnattr_getdefault and
7940         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
7941         and posix_spawnattr_setsigdefault respectively.
7942         * posix/spawn.h: Likewise.
7943         * posix/spawnattr_getdefault.h: Likewise.
7944         * posix/spawnattr_setdefault.h: Likewise.
7945         * conform/data/spawn.h-data: Likewise.
7946
7947 2000-05-01  Andreas Jaeger  <aj@suse.de>
7948
7949         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
7950
7951 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7952
7953         * manual/sysinfo.texi: Document getdomainname, setdomainname
7954         and sysctl.
7955         * manual/string.texi: Fix typo.
7956         * manual/terminal.texi: Document gtty and stty.
7957         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7958
7959 2000-04-30  Andreas Jaeger  <aj@suse.de>
7960
7961         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
7962         accordance with Austin Draft.
7963
7964 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7965
7966         * catgets/gencat.c (read_input_file): Use isblank and not isspace
7967         to recognize second character in comment line.
7968
7969         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
7970         ENOBUFS if we are out of memory.
7971
7972         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
7973         available if __USE_XOPEN2K.
7974         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
7975         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7976         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7977         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7978         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
7979         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7980         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
7981         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
7982
7983 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7984
7985         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
7986         Recognize option -s, -c, and -l.
7987
7988 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
7989
7990         * nscd/nscd.c: Start new session for nscd, drop privilegs
7991         to configured user if requested and no -S parameter are used.
7992         * nscd/nscd.conf: Add new option "server-user".
7993         * nscd/nscd_conf.c: Add support for new "server-user" option.
7994         * nscd/nscd.h: Add declaration for server_user variable.
7995         Based on patch by Chris Wing <wingc@engin.umich.edu>
7996
7997 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7998
7999         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8000         that changing the __restore and __restore_rt signal return code
8001         will break GDB.
8002
8003 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8004
8005         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8006         <sys/user.h>.
8007
8008 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8009
8010         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8011
8012 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8013
8014         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8015         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8016         arpa/inet.h.
8017         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8018         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8019         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8020         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8021         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8022         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8023         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8024         posix_fallocate, and posix_madvise.
8025         * conform/data/netdb.h-data: New file.
8026         * conform/data/pthread.h-data: Add pthread_barrier_t,
8027         pthread_barrierattr_t, pthread_barrier_destroy,
8028         pthread_barrier_init, pthread_barrier_wait,
8029         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8030         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8031         pthread_condattr_getclock, pthread_condattr_setclock,
8032         pthread_getcpuclockid, pthread_mutex_timedlock,
8033         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8034         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8035         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8036         * conform/data/sched.h-data: Add sched_ss_low_priority,
8037         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8038         SCHED_SPORADIC.
8039         * conform/data/semaphore.h-data: Add sem_timedwait.
8040         * conform/data/signal.h-data: Add SIGIO.
8041         * conform/data/spawn.h-data: New file.
8042         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8043         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8044         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8045         Fix typo in gmtime_r definition.
8046         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8047         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8048         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8049         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8050         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8051         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8052         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8053         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8054         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8055         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8056         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8057         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8058         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8059         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8060         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8061         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8062         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8063         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8064         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8065         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8066         typo in off_t definition.
8067         * conform/data/net/if.h-data: New file.
8068         * conform/data/netinet/in.h-data: New file.
8069         * conform/data/netinet/tcp.h-data: New file.
8070         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8071         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8072         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8073         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8074         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8075         and posix_typed_mem_open.
8076         * conform/data/sys/socket.h-data: New file.
8077         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8078         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8079         pthread_barrierattr_t, and pthread_spinlock_t.
8080         * conform/data/sys/un.h-data: New file.
8081         * conform/data/sys/utsname.h-data: New file.
8082
8083         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8084         parameter.
8085         * inet/gethstbyad.c (gethostbyname): Likewise.
8086         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8087         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8088         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8089         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8090         Likewise.
8091         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8092         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8093         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8094         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8095         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8096         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8097         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8098         and second parameter.
8099
8100         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8101         == NULL.
8102
8103 2000-04-29  Andreas Jaeger  <aj@suse.de>
8104
8105         * conform/data/arpa/inet.h-data: New file.
8106
8107 2000-04-28  Geoff Clare <gwc@unisoft.com>
8108
8109         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8110         path passed to ftw() or nftw() is an empty string.
8111         Closes PR libc/1710.
8112
8113 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8114
8115         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8116         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8117         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8118         * localedata/tst-mbswcs4.c: New file.
8119         * localedata/tst-mbswcs5.c: New file.
8120
8121         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8122         == NULL.  Little optimization.
8123
8124         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8125         DT_PREINIT_ARRAYSZ).
8126         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8127
8128         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8129         overflows in conversion from ASCII.
8130
8131 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8132
8133         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8134         * Makerules (full_config_sysdirs): Likewise.
8135         * MakeTAGS (full_config_sysdirs): Likewise.
8136
8137 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8138
8139         * .cvsignore: Remove linuxthreads.
8140         * po/.cvsignore: Remove *.pot.
8141         * posix/glob/.cvsignore: Removed.
8142         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8143
8144 2000-04-25  Andreas Jaeger  <aj@suse.de>
8145
8146         * conform/Makefile (distribute): Also distribute contents of
8147         subdirectories.
8148
8149         * Makerules (no_deps): Remove abi-versions.h.
8150
8151         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8152
8153 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8154
8155         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8156         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8157         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8158         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8159         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8160         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8161         objects.
8162
8163 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8164
8165         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8166
8167 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8168
8169         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8170         * intl/l10nflist.c: Likewise.
8171
8172 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8173
8174         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8175         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8176         * intl/textdomain.c [!_LIBC]: Likewise.
8177         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8178         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8179         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8180         syntax error.
8181
8182 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8183
8184         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8185         character set conversion also in the case the translation was found
8186         after a hash collision or through binary search.  Store the maximum
8187         index together with the converted message.  Use iconv() when available.
8188         In case of out of memory during conversion, return the unconverted
8189         translated string, not NULL.
8190
8191 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8192
8193         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8194         to avoid name clashes with the ia32 linker.
8195
8196 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8197
8198         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8199         handling.
8200
8201 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8202
8203         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8204         strtoumax, strfry, and memfrob.
8205         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8206         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8207
8208         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8209         if this function is available.
8210
8211         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8212         all values.
8213
8214 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8215
8216         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8217
8218 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8219
8220         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8221         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8222         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8223         * localedata/tst-mbswcs3.c: New file.
8224
8225 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8226
8227         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8228         characters.  Don't handle incomplete characters as errors.
8229         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8230         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8231         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8232         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8233         * localedata/tst-mbswcs2.c: New file.
8234
8235         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8236         stored character in state in UNPACK_BYTES macro.
8237         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8238         test for available characters, handle result of BODY code correctly.
8239         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8240         (distribute): Add tst-mbswcs.sh.
8241         Add rule to run tst-mbswcs.sh.
8242         * localedata/tst-mbswcs.sh: New file.
8243         * localedata/tst-mbswcs1.c: New file.
8244
8245 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8246
8247         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8248         allocation fixups centrally, fix __builtin_expect call, return NULL
8249         on failure, not NIS_NOMEMORY.
8250
8251 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8252
8253         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8254
8255         * intl/loadinfo.h (internal_function): Define if not already defined.
8256
8257 2000-04-27  Andreas Jaeger  <aj@suse.de>
8258
8259         * intl/libintl.h: Fix typo, reported by Bruno Haible
8260         <haible@clisp.cons.org>.
8261
8262 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8263
8264         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8265         setting the state to GMON_PROF_BUSY.
8266
8267 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8268
8269         * elf/dl-profile.c (_dl_start_profile): define all variables which
8270         do not have to be global as local variables.
8271
8272         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8273         patch.  Keep needed tests for failed memory allocation.
8274
8275         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8276         __builtin_expect saying that we don't normally expect to profile.
8277
8278         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8279         __builtin_expect where desirable.
8280
8281 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8282
8283         * manual/Makefile (chapters): Add syslog.
8284         * manual/syslog.texi: New file.
8285         * manual/math.texi: Fix references.
8286         * manual/terminal.texi: Likewise.
8287         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8288
8289 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8290
8291         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8292         stdlib.h was not included or __USE_XOPEN not defined.
8293
8294 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8295
8296         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8297         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8298
8299 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8300
8301         * manual/examples/subopt.c (mount_opts): Add missing terminating
8302         entry.
8303         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8304
8305         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8306         * libio/ftello.c: Likewise.
8307         * libio/ftello64.c: Likewise.
8308         * libio/ioftell.c: Likewise.
8309         * sysdeps/generic/memrchr.c: Likewise.
8310         * sysdeps/posix/libc_fatal.c: Likewise.
8311         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8312         * misc/fstab.c: Include <string.h> for strcmp prototype.
8313         * sysdeps/generic/ldsodefs.h: Likewise.
8314         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8315         Patch by Kurt Roeckx <Q@ping.be>.
8316
8317         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8318         Remove db-open.  Change all uses.
8319         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8320
8321 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8322
8323         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8324         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8325         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8326         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8327         with .set noat/at to shut up warnings.
8328         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8329         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8330         compilation if __NR_pciconfig_iobase is not defined.
8331         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8332         Add alias.
8333
8334 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8335
8336         * manual/sysinfo.texi: Fix typo.
8337         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8338         Replace "high precision time" with "high accuracy clock".
8339         Fix language.
8340         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8341
8342         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8343         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8344         instead of malloc.
8345         * nis/nis_subr.c: Use __builtin_expect.
8346         * nis/ypclnt.c: Likewise.
8347         * nis/nis_getservlist.c: Likewise.
8348         * nis/nis_creategroup.c: Likewise.
8349
8350         * nis/nis_callback.c (__nis_create_callback): Check result of
8351         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8352         (__nis_destroy_callback): Fix memory leaks.
8353
8354 2000-04-21  Andreas Jaeger  <aj@suse.de>
8355
8356         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8357         * sysdeps/mips/mips64/add_n.S: Likewise.
8358         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8359         * sysdeps/mips/mips64/lshift.S: Likewise.
8360         * sysdeps/mips/mips64/mul_1.S: Likewise.
8361         * sysdeps/mips/mips64/rshift.S: Likewise.
8362         * sysdeps/mips/mips64/setjmp.S: Likewise.
8363         * sysdeps/mips/mips64/sub_n.S: Likewise.
8364         * sysdeps/mips/mips64/submul_1.S: Likewise
8365         * sysdeps/unix/mips/sysdep.S: Likewise.
8366
8367         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8368         and update comment.  The strtab from _dl_relocate_object can be
8369         used.
8370
8371 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8372
8373         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8374         * iconv/iconv_close.c (iconv_close): Likewise.
8375         * iconv/iconv_open.c (iconv_open): Likewise.
8376
8377         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8378         __builtin_expect where useful.
8379
8380         * grp/initgroups.c (initgroups): Test for result of memory
8381         allocation and punt if it fails.
8382
8383         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8384         * grp/fgetgrent.c (fgetfrent): Likewise.
8385         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8386
8387 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8388
8389         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8390
8391 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8392
8393         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8394         don't search for NUL byte to decrement counter.
8395         Reported by Ulrich.Brink@sap.com.
8396
8397         * iconv/gconv_simple.c: Define separate functions to convert from
8398         UCS4/UCS4-LE to the internal encoding.
8399         * iconv/gconv_builtin.h: Use separate functions to convert from
8400         UCS4/UCS4-LE to the internal encoding.
8401         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8402         __gconv_transform_ucs4le_internal.
8403
8404         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8405         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8406
8407         * iconv/skeleton.c: Add some more __builtin_expect.
8408         * iconv/loop.c: Likewise.
8409
8410 2000-03-08  H.J. Lu  <hjl@gnu.org>
8411
8412         * posix/regex.c (regex_compile): Correctly handle "\{" when
8413         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8414
8415 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8416
8417         * manual/stdio.texi: Give advise about handling error when using
8418         stream functions.
8419         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8420
8421 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8422
8423         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8424         field to nelems * sizeof (uint32_t).
8425         * locale/programs/ld-address.c (address_output): Align word fields
8426         properly.
8427         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8428         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8429         field.
8430         Avoid giving arbitrary garbage in the crncystr field.
8431         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8432         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8433         fields.
8434         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8435         Don't restart idx pointers to idx end at the decimal_point_wc field.
8436         * locale/programs/ld-time.c (time_output): week_1stday should be
8437         word, not byte.  Align it properly.
8438
8439 2000-04-19  H.J. Lu  <hjl@gnu.org>
8440
8441         * csu/gmon-start.c (_start): Declared as "extern void".
8442         (etext): Likewise.
8443
8444 2000-04-18  Andreas Jaeger  <aj@suse.de>
8445
8446         * manual/install.texi (Running make install): Don't mention utmpd
8447         anymore.
8448
8449 2000-04-18  Andreas Jaeger  <aj@suse.de>
8450
8451         * linuxthreads/Versions: Use ld instead of ld.so.
8452
8453         * elf/Makefile (ld-map): Use ld.map.
8454
8455         * Versions.def: Use ld instead of ld.so.
8456         * elf/Versions: Likewise.
8457         * sysdeps/mach/hurd/Versions: Likewise.
8458
8459 2000-04-20  Andreas Jaeger  <aj@suse.de>
8460
8461         * elf/rtld.c (print_statistics): Move ifndef further up.
8462         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8463         (dl_main): Likewise.
8464
8465 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8466
8467         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8468         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8469
8470         * po/cs.po: Update from translation team.
8471
8472         * sysdeps/generic/updwtmp.c: Remove daemon support.
8473
8474         * login/Makefile (routines): Remove utmp_daemon.
8475
8476         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8477         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8478         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8479         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8480
8481         * elf/rtld.c: Display statitics option also if hp timing is not
8482         available.
8483
8484         * login/programs/connection.c: Removed.
8485         * login/programs/database.c Removed.
8486         * login/programs/error.c: Removed.
8487         * login/programs/request.c: Removed.
8488         * login/programs/xtmp.c: Removed.
8489         * login/programs/xtmp.h: Removed.
8490         * login/Makefile: Remove rules for utmpd.
8491         * login/README.utmpd: Removed.
8492         * login/utmp_daemon.c: Removed.
8493         * login/getutent_r.c: Remove references to daemon functions.
8494         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8495         declaration.
8496
8497 2000-04-18  Andreas Jaeger  <aj@suse.de>
8498
8499         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8500         2.2 for libnsl, libresolv, librt, libnss_*.
8501
8502         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8503
8504         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8505
8506 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8507
8508         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8509         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8510         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8511         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8512         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8513         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8514         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8515         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8516         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8517         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8518         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8519         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8520         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8521         it here.
8522         * sysdeps/unix/sysv/aix/msync.c: New file.
8523         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8524         * sysdeps/unix/sysv/aix/net/if.h: New file.
8525         * sysdeps/unix/sysv/aix/pipe.c: New file.
8526         * sysdeps/unix/sysv/aix/poll.c: New file.
8527         * sysdeps/unix/sysv/aix/rename.c: New file.
8528         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8529         * sysdeps/unix/sysv/aix/select.c: New file.
8530         * sysdeps/unix/sysv/aix/semctl.c: New file.
8531         * sysdeps/unix/sysv/aix/semget.c: New file.
8532         * sysdeps/unix/sysv/aix/semop.c: New file.
8533         * sysdeps/unix/sysv/aix/sendto.c: New file.
8534         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8535         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8536         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8537         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8538         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8539         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8540         * sysdeps/unix/sysv/aix/setsid.c: New file.
8541         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8542         * sysdeps/unix/sysv/aix/shmat.c: New file.
8543         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8544         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8545         * sysdeps/unix/sysv/aix/shmget.c: New file.
8546         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8547         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8548         * sysdeps/unix/sysv/aix/socket.c: New file.
8549         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8550         * sysdeps/unix/sysv/aix/speed.c: New file.
8551         * sysdeps/unix/sysv/aix/symlink.c: New file.
8552         * sysdeps/unix/sysv/aix/sync.c: New file.
8553         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8554         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8555         * sysdeps/unix/sysv/aix/times.c: New file.
8556         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8557         * sysdeps/unix/sysv/aix/umask.c: New file.
8558         * sysdeps/unix/sysv/aix/unlink.c: New file.
8559         * sysdeps/unix/sysv/aix/ustat.c: New file.
8560         * sysdeps/unix/sysv/aix/utimes.c: New file.
8561
8562 2000-04-18  Andreas Jaeger  <aj@suse.de>
8563
8564         * manual/startup.texi (Environment Access): Fix putenv prototype
8565         according to recent changes.
8566         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8567         PR libc/1692.
8568
8569         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8570         needed.
8571
8572 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8573
8574         * posix/Makefile (tests): Add tst-getaddrinfo.
8575         * posix/tst-getaddrinfo.c: New file.
8576
8577 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8578
8579         * manual/sysinfo.texi: Document that umount2 is not widely available.
8580
8581         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8582         signal timing is not really implemented.
8583
8584 2000-04-17  Andreas Jaeger  <aj@suse.de>
8585
8586         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8587
8588 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8589
8590         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8591         and inst_libdir.
8592
8593 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8594
8595         * manual/intro.texi: Change reference from System Information to
8596         System Management.
8597         * manual/users.texi: Likewise.
8598         * manual/conf.texi: Likewise.
8599         * manual/sysinfo.texi: Document mount, umount, and umount2.
8600         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8601
8602 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8603
8604         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8605         Create wnumstr as well as numstr to support wide character output
8606         correctly.
8607
8608 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8609
8610         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8611         modification and move it...
8612         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8613         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8614         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8615         switch to $(LD) on sparc-linux.
8616
8617 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8618
8619         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8620         and setresuid from sysdep_routines.
8621
8622 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8623
8624         * manual/Makefile (chapters): Add resource.
8625
8626         * manual/time.texi: Move section on resources to...
8627         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8628         and vtimes.
8629         * manual/setjmp.texi: Adjust back reference.
8630         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8631
8632         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8633         definition.
8634         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8635         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8636         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8637         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8638         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8639         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8640         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8641         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8642         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8643         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8644         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8645         * sysdeps/unix/sysv/aix/Implies: New file.
8646         * sysdeps/unix/sysv/aix/Versions: New file.
8647         * sysdeps/unix/sysv/aix/bind.c: New file.
8648         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8649         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8650         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8651         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8652         * sysdeps/unix/sysv/aix/chdir.c: New file.
8653         * sysdeps/unix/sysv/aix/chmod.c: New file.
8654         * sysdeps/unix/sysv/aix/chroot.c: New file.
8655         * sysdeps/unix/sysv/aix/creat.c: New file.
8656         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8657         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8658         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8659         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8660         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8661         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8662         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8663         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8664         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8665         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8666         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8667         * sysdeps/unix/sysv/aix/link.c: New file.
8668         * sysdeps/unix/sysv/aix/madvise.c: New file.
8669         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8670         * sysdeps/unix/sysv/aix/mknod.c: New file.
8671         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8672         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8673         * sysdeps/unix/sysv/aix/msgget.c: New file.
8674         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8675
8676 2000-04-17  Andreas Jaeger  <aj@suse.de>
8677
8678         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8679         as suggested by Ulrich Drepper.
8680         (__dl_runtime_resolve): Remove unused variable, initialize sym
8681         directly.
8682         (RTLD_START): Document OFFSET_GP_GOT.
8683         (OFFSET_GP_GOT): New magic value.
8684         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8685         (elf_machine_got_rel): Only declare strtab if needed.
8686         (elf_machine_relplt): Removed, it's not needed.
8687         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8688
8689         * sysdeps/mips/add_n.S: Add newline at EOF.
8690         * sysdeps/mips/rshift.S: Likewise.
8691         * sysdeps/mips/mul_1.S: Likewise.
8692         * sysdeps/mips/lshift.S: Likewise.
8693         * sysdeps/mips/addmul_1.S: Likewise.
8694
8695 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8696
8697         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8698
8699         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8700         * elf/dl-lookup.c: Likewise.
8701         * elf/dl-init.c (_dl_init): Likewise.
8702         * elf/dl-fini.c (_dl_fini): Likewise.
8703         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8704         * elf/dl-close.c (_dl_close): Likewise.
8705         * elf/rtld.c (_dl_start_final): Likewise.
8706
8707         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8708
8709 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8710
8711         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8712         only fall back on using Linux.
8713
8714         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8715         Before testing versions check that we actually loaded the object
8716         and whether we are in trace mode.  If not loaded during tracing don't
8717         test versions in this object.
8718         (_dl_check_all_versions): Take new parameter and pass to
8719         _dl_check_map_versions.
8720         * sysdeps/generic/ldsodefs.h: Update prototypes for
8721         _dl_check_all_versions and _dl_check_map_versions.
8722         * elf/rtld.c (struct version_check_args): Add dotrace.
8723         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8724         (dl_main): Pass info about trace mode to version_check_doit.
8725         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8726         _dl_check_all_versions.
8727
8728         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8729         and getutmpx.
8730         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8731
8732         * manual/argp.texi: Document index parameter of argp_parse.
8733         Fix typo.
8734         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8735
8736 2000-04-14  Andreas Jaeger  <aj@suse.de>
8737
8738         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8739         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8740
8741         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8742
8743 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8744
8745         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8746         compat_symbol call for old adjtime.
8747
8748         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8749         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8750
8751         * posix/Makefile (headers): Add spawn.h.
8752         (distribute): Add spawn_int.h.
8753         (routines): Add spawn_faction_init, spawn_faction_destroy,
8754         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8755         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8756         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8757         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8758         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8759         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8760         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8761         posix_spawnattr_init, posix_spawnattr_destroy,
8762         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8763         posix_spawnattr_getflags, posix_spawnattr_setflags,
8764         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8765         and posix_spawnp.
8766         * posix/spawn.c: New file.
8767         * posix/spawn.h: New file.
8768         * posix/spawn_faction_addclose.c: New file.
8769         * posix/spawn_faction_adddup2.c: New file.
8770         * posix/spawn_faction_addopen.c: New file.
8771         * posix/spawn_faction_destroy.c: New file.
8772         * posix/spawn_faction_init.c: New file.
8773         * posix/spawn_int.h: New file.
8774         * posix/spawnattr_destroy.c: New file.
8775         * posix/spawnattr_getdefault.c: New file.
8776         * posix/spawnattr_getflags.c: New file.
8777         * posix/spawnattr_getpgroup.c: New file.
8778         * posix/spawnattr_getschedparam.c: New file.
8779         * posix/spawnattr_getschedpolicy.c: New file.
8780         * posix/spawnattr_getsigmask.c: New file.
8781         * posix/spawnattr_init.c: New file.
8782         * posix/spawnattr_setdefault.c: New file.
8783         * posix/spawnattr_setflags.c: New file.
8784         * posix/spawnattr_setpgroup.c: New file.
8785         * posix/spawnattr_setschedparam.c: New file.
8786         * posix/spawnattr_setschedpolicy.c: New file.
8787         * posix/spawnattr_setsigmask.c: New file.
8788         * posix/spawni.c: New file.
8789         * posix/spawnp.c: New file.
8790
8791         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8792         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8793
8794 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8795
8796         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8797         * malloc/malloc.c: Implement posix_memalign for glibc.
8798         * include/stdlib.h: Add prototype for __posix_memalign.
8799         * stdlib/stdlib.h: Add prototype for posix_memalign.
8800
8801 2000-04-14  Andreas Jaeger  <aj@suse.de>
8802
8803         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8804         symidx correctly.
8805         (elf_machine_got_rel): Cast sym correctly.
8806
8807         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8808         * sysdeps/mips/addmul_1.S: Likewise.
8809         * sysdeps/mips/lshift.S: Likewise.
8810         * sysdeps/mips/mul_1.S: Likewise.
8811         * sysdeps/mips/rshift.S: Likewise.
8812         * sysdeps/mips/sub_n.S: Likewise.
8813         * sysdeps/mips/submul_1.S: Likewise.
8814
8815         * stdlib/stdlib.h: Fix typo in comment.
8816
8817         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8818         2.2 for libdl, ld and libm.
8819
8820         * sysdeps/generic/madvise.c: Fix typos.
8821
8822         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8823
8824         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8825
8826         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8827         warnings.
8828
8829 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8830
8831         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8832         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8833         Make old name weak alias.
8834         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8835         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8836         Make old name weak alias.
8837         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8838
8839         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8840         posix_fallocate, and posix_fallocate64.
8841         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8842         posix_fallocate, and posix_fallocate64.
8843         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8844         posix_fallocate, and posix_fallocate64.
8845         * sysdeps/generic/fadvise.c: New file.
8846         * sysdeps/generic/fadvise64.c: New file.
8847         * sysdeps/generic/fallocate.c: New file.
8848         * sysdeps/generic/fallocate64.c: New file.
8849         * sysdeps/posix/fallocate.c: New file.
8850         * sysdeps/posix/fallocate64.c: New file.
8851         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8852         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8853         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8854         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8855         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8856         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8857         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8858         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8859         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8860
8861         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8862         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8863
8864 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8865
8866         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
8867         * misc/sys/mman.h (posix_madvise): Add prototype.
8868         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
8869         old name and posix_madvise weak aliases.
8870         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8871         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
8872         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8873         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8874         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8875         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8876         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8877
8878 2000-04-13  Andreas Jaeger  <aj@suse.de>
8879
8880         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
8881         versioning.
8882         (elf_machine_got_rel): Only add runtime display if needed.
8883         (elf_machine_got_rel): Handle symbol versioning.
8884
8885 2000-04-13  Andreas Jaeger  <aj@suse.de>
8886
8887         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
8888
8889         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
8890         default.
8891
8892         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
8893         with some applications.
8894         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
8895
8896         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
8897         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8898         * sysdeps/mips/setjmp.S: Likewise.
8899
8900         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
8901
8902 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8903
8904         * posix/globtest.sh: Work around inconsistency with expanding ~/
8905         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
8906
8907 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8908
8909         * posix/getconf.c: Add support for many more POSIX options.
8910         * sysdeps/posix/sysconf.c: Likewise.
8911         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
8912         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
8913         _POSIX_SHELL.
8914         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8915         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
8916         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
8917         CLOCK_THREAD_CPUTIME_ID.
8918         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
8919         CLOCK_PROCESS_CPUTIME_ID.
8920         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
8921         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
8922         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
8923         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
8924
8925         * malloc/Makefile (tests): Add tst-calloc.
8926         * malloc/tst-calloc.c: New file.
8927
8928         * sysdeps/arm/libm-test-ulps: New file.
8929
8930         * malloc/malloc.c: Undo all of today's changes.
8931
8932         * locale/programs/locale.c (show_info): Don't try to look into
8933         data for LC_ALL (there is none).
8934
8935         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
8936         avoid writing over boundary.
8937         Patch by Greg McGary <gkm@eng.ascend.com>.
8938
8939         * sysdeps/arm/memprof.h: New file.
8940
8941 2000-04-12  Andreas Jaeger  <aj@suse.de>
8942
8943         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
8944
8945         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
8946         for memmem declaration.
8947
8948 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8949
8950         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
8951         to -1.
8952         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
8953
8954         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
8955         mode is invalid.
8956         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8957         Patch by Bart Veer <bartv@redhat.com>.
8958
8959         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
8960         function interface.
8961
8962 2000-04-11  Andreas Jaeger  <aj@suse.de>
8963
8964         * sysdeps/mips/dl-machine.h: Update some comments.
8965         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
8966
8967 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8968
8969         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
8970         _POSIX_SHARED_MEMORY_OBJECTS.
8971
8972         * rt/Makefile (tests): Add tst-shm.
8973         Add rules to generate tst-shm.
8974         * rt/tst-shm.c: New file.
8975
8976         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
8977         for descriptor.
8978
8979         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
8980         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
8981         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
8982         * sysdeps/generic/shm_open.c: New file.
8983         * sysdeps/generic/shm_unlink.c: New file.
8984         * sysdeps/unix/sysv/linux/shm_open.c: New file.
8985         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
8986         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
8987          __endmntent, __getmntent_r, __setmntent, and __statfs.
8988
8989         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
8990         fragmentation by allocating new memory at the end instead of
8991         reallocating.
8992
8993         * posix/globtest.sh: Fix last change.
8994
8995 2000-04-10  Philip Blundell  <philb@gnu.org>
8996
8997         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
8998         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
8999         IPV6_DROP_MEMBERSHIP.
9000         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9001         Likewise.
9002
9003 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9004
9005         * elf/readlib (process_file): Close streams in case of an error.
9006
9007 2000-04-09  Andreas Jaeger  <aj@suse.de>
9008
9009         * elf/readlib.c (process_file): Check if file is big enough to
9010         contain aout and ELF headers.
9011         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9012
9013 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9014
9015         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9016
9017 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9018
9019         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9020         stream unbuffered.
9021         * rt/Makefile (tests): Add tst-clock.
9022         Add rules to build tst-clock.
9023         * rt/tst-clock.c: New file.
9024         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9025         about initialization of nsec.
9026         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9027         about initialization of freq.  Set retval to zero if successful.
9028         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9029
9030 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9031
9032         * Versions.def (librt): Add GLIBC_2.2.
9033         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9034         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9035         timer_getoverr, timer_gettime, and timer_settime.
9036         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9037         clock_settime, timer_create, timer_delete, timer_getoverrun,
9038         timer_gettime, and timer_settime.
9039         * sysdeps/generic/clock_getcpuclockid.c: New file.
9040         * sysdeps/generic/get_clockfreq.c: New file.
9041         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9042         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9043         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9044         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9045         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9046         * sysdeps/unix/i386/i686/Implies: New file.
9047         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9048         * time/Makefile (routines): Move clock_getres, clock_gettime,
9049         clock_settime, timer_create, timer_delete, timer_getoverr,
9050         timer_gettime, and timer_settime to rt/Makefile.
9051         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9052         clock_settime, timer_create, timer_delete, timer_getoverrun,
9053         timer_gettime, and timer_settime.
9054         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9055
9056         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9057         and not const as attribute name.
9058
9059 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9060
9061         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9062
9063 2000-04-10  Andreas Schwab  <schwab@suse.de>
9064
9065         * posix/globtest.sh: Skip tests that depend on unreadable
9066         directories if run as root.
9067
9068 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9069
9070         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9071         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9072
9073 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9074
9075         * sysdeps/unix/clock_gettime.c: New file.
9076         * sysdeps/unix/clock_settime.c: New file.
9077         * sysdeps/posix/clock_getres.c: New file.
9078
9079         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9080
9081         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9082         lseek call be passing in a buffer which never allow a successful
9083         first getdents syscall if not at leas the initial entry can be
9084         stored in the user buffer.
9085
9086         * localedata/Makefile: Add rules to clean up directories created by
9087         new strfmon tests.
9088
9089 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9090
9091         * localedata/tst-fmon.data: Added new tests for strfmon()
9092         using test locales with all combinations of cs_precedes,
9093         sign_posn and sep_by_space.
9094         * localedata/tst-fmon.sh: Updated to support the new tests.
9095         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9096         the localedef source for the new strfmon() test locale.
9097         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9098         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9099         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9100         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9101         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9102         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9103         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9104         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9105         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9106         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9107         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9108         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9109         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9110         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9111
9112         * stdlib/strfmon.c: Correct problems with missing or extra
9113         spaces for unusual combinations of sign_posn and sep_by_space.
9114         Improved left-precision alignment code.
9115
9116 2000-04-07  Andreas Jaeger  <aj@suse.de>
9117
9118         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9119
9120 2000-04-10  Andreas Jaeger  <aj@suse.de>
9121
9122         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9123
9124 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9125
9126         Implement handling of restartable conversion functions according to
9127         ISO C.
9128         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9129         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9130         * iconv/gconv.c: Pass additional parameter to conversion function.
9131         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9132         (internal_ucs4le_loop_single): New function.
9133         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9134         (__gconv_transform_internal_ascii): Likewise.
9135         (__gconv_transform_internal_utf8): Likewise.
9136         (__gconv_transform_utf8_internal): Likewise.
9137         (__gconv_transform_ucs2_internal): Likewise.
9138         (__gconv_transform_internal_ucs2): Likewise.
9139         (__gconv_transform_ucs2reverse_internal): Likewise.
9140         (__gconv_transform_internal_ucs2reverse): Likewise.
9141         (internal_ucs4le_loop_unaligned): Before return
9142         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9143         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9144         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9145         * iconv/loop.c: Fit in definition of function to convert one character
9146         for processing of left-over bytes from the state object.
9147         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9148         inend to match names in loop functions.
9149         (RESET_INPUT_BUFFER): Change apprpriately.
9150         (gconv): If needed, call function to process bytes from the state
9151         object.  Similar at the end: store left over bytes if input is
9152         incomplete.
9153         Take extra argument and add new argument to all calls of the
9154         conversion function.
9155         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9156         information in the state object to not conflict with length count.
9157         * iconvdata/iso-2022-jp.c: Likewise.
9158         * iconvdata/iso-2022-kr.c: Likewise.
9159         * iconvdata/unicode.c: Adjust for change change in parameters of
9160         skeleton function.
9161         * iconvdata/utf-16.c: Likewise.
9162         * libio/iofwide.c: Add new parameter to all calls of conversion
9163         function.
9164         * wcsmbs/btowc.c: Likewise.
9165         * wcsmbs/mbrtowc.c: Likewise.
9166         * wcsmbs/mbsnrtowcs.c: Likewise.
9167         * wcsmbs/mbsrtowcs.c: Likewise.
9168         * wcsmbs/wcrtomb.c: Likewise.
9169         * wcsmbs/wcsnrtombs.c: Likewise.
9170         * wcsmbs/wcsrtombs.c: Likewise.
9171         * wcsmbs/wctob.c: Likewise.
9172
9173         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9174         MAX_NEEDED_INPUT.
9175
9176 2000-04-07  Andreas Jaeger  <aj@suse.de>
9177
9178         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9179         newer kernels.
9180
9181 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9182
9183         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9184         element a union to allow byte access.
9185         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9186         mbstate_t.
9187         * iconvdata/iso-2022-jp.c: Likewise.
9188         * iconvdata/iso-2022-kr.c: Likewise.
9189         * wcsmbs/mbsinit.c: Likewise.
9190         * stdlib/mblen.c: Likewise.
9191         * stdio-common/printf-parse.h: Likewise.
9192
9193 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9194
9195         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9196         kernel does not allow relative seeks on descriptors associated
9197         with directories.  Go back to get the position in the directory
9198         every time we enter the function.  Return -1 and set errno if one
9199         entry could be read from the kernel but does not fit into the
9200         buffer passed in by the user.
9201
9202         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9203         Support ..(2).. ellipsis.
9204         (parse_charmap): Recognize ..(2).. etc and pass step down.
9205         Correctly generate names for UCS4 characters.
9206
9207         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9208         (ctype_finish): We know the wide character value for <SP>,
9209         don't search.
9210         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9211         (charclass_ucs4_ellipsis): Likewise.
9212         (read_translit_ignore_entry): Store ellipsis step.
9213         (ctype_read): Recognize ..(2).. etc and pass step down.
9214
9215         * locale/programs/linereader.c (lr_token): When seeing comment
9216         character ignore only rest of line in sources but stop at escaped
9217         newline.
9218         Recognize ..(2).. and ....(2).....
9219
9220         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9221         and tok_ellipsis4_2.
9222
9223 2000-04-06  Andreas Jaeger  <aj@suse.de>
9224
9225         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9226         removed, remove it here also.
9227         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9228         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9229         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9230         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9231
9232 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9233
9234         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9235         include bits/sigcontext.h.
9236         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9237
9238 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9239
9240         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9241         collation symbol definition.  Value in quivalence definition must
9242         be defined, don't check that it is not.
9243
9244         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9245         values as character names.
9246
9247         * locale/programs/ld-ctype.c (get_character): Handle missing
9248         repertoire map correctly.
9249
9250 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9251
9252         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9253         because it is used in generic code.
9254         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9255         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9256         * intl/gettext.c: Include <locale.h>.
9257         * intl/ngettext.c: Likewise.
9258
9259 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9260
9261         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9262         socklen_t type for size.
9263         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9264         init function interface.
9265         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9266         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9267         sys/ucontext.h.
9268         (__jmp_buf): Declare the whole type structure here, don't use
9269         ucontext.
9270
9271 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9272
9273         * iconv/skeleton.c (put16u): Fix typo.
9274         Reported by Bruno Haible <haible@ilog.fr>.
9275
9276         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9277         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9278         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9279         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9280         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9281         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9282
9283         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9284         * Makefile (distribute): Add abi-versions.awk and
9285         firstversions.awk.
9286         Patches by Torsten Duwe <duwe@caldera.de>.
9287
9288 2000-04-05  Andreas Schwab  <schwab@suse.de>
9289
9290         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9291
9292 2000-04-05  Andreas Schwab  <schwab@suse.de>
9293
9294         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9295         entry point, used on Hurd.
9296
9297 2000-04-04  Andreas Jaeger  <aj@suse.de>
9298
9299         * intl/Makefile: Only run the gettext test with shared libraries.
9300
9301 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9302
9303         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9304         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9305
9306 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9307
9308         * Makeconfig: Undo last change.
9309         * configure.in: If --disable-shared was given, don't set VERSIONING,
9310         don't define DO_VERSIONING, and don't give scare warning for no
9311         versioning.
9312         * configure: Regenerated.
9313
9314 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9315
9316         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9317
9318 2000-04-04  Andreas Jaeger  <aj@suse.de>
9319
9320         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9321
9322 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9323
9324         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9325         STV_HIDDEN and STV_INTERNAL during lookup.
9326         (profile_fixup): Likewise.
9327         * elf/dl-reloc.c (RESOLVE): Likewise.
9328
9329         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9330         unaligned so that it compiles for system which need unaligned
9331         access handling.
9332
9333 2000-04-04  Andreas Schwab  <schwab@suse.de>
9334
9335         * elf/cache.c (print_entry): Only look at the type field when
9336         printing the type.
9337
9338 2000-04-04  Andreas Schwab  <schwab@suse.de>
9339
9340         * iconvdata/big5.c (BODY): Fix typo.
9341
9342 2000-04-04  Andreas Schwab  <schwab@suse.de>
9343
9344         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9345         function interface.  Remove unused _dl_start_user entry point.
9346
9347 2000-04-03  Andreas Jaeger  <aj@suse.de>
9348
9349         * include/arpa/inet.h (__inet_aton): Add protoype.
9350
9351 2000-04-01  Andreas Jaeger  <aj@suse.de>
9352
9353         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9354
9355         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9356         * sysdeps/mach/mips/thread_state.h: Likewise.
9357
9358         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9359         * sysdeps/generic/fegetenv.c: Likewise.
9360         * sysdeps/generic/fesetenv.c: Likewise.
9361         * sysdeps/generic/feupdateenv.c: Likewise.
9362         * sysdeps/generic/fraiseexcpt.c: Likewise.
9363         * sysdeps/generic/fsetexcptflg.c: Likewise.
9364         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9365         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9366         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9367         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9368
9369 2000-04-02  H.J. Lu  <hjl@gnu.org>
9370
9371         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9372
9373 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9374
9375         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9376         (add_name_to_object): Add cast in malloc call.
9377         (fillin_rpath): Optimize loop to initialize ->status a bit.
9378
9379         * sysdeps/i386/dl-machine.h: Undo last change.
9380         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9381         Restore %edx register after call here.
9382
9383         * sysdeps/arm/atomicity.h: New file.
9384         Contributed by Jesper Skov <jskov@redhat.com>.
9385
9386 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9387
9388         * Makeconfig (preprocess-versions): Undo last change.
9389         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9390
9391         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9392         here, before we might move the stack.
9393         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9394         (init1): And not here.
9395
9396         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9397         change, to restore argc value in call-clobbered register after
9398         RTLD_START_SPECIAL_INIT, which will contain a call.
9399
9400         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9401         allocating and initializing L->l_initfini.
9402
9403         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9404
9405 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9406
9407         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9408         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9409         (open_path): Change type of fourth parameter.  Make pointer to array
9410         of pointers.  Create variable dirs with original type.
9411         Track whether any directory for the object exists and if not,
9412         change *DIRSP to (void*) -1 to signal there is no such search path.
9413         (_dl_map_object): Change all calls of open_path.
9414         Rewrite decompose_rpath calls.
9415
9416 2000-03-31  Andreas Schwab  <schwab@suse.de>
9417
9418         * string/strfry.c: Declare STATE as array of char instead of int
9419         and do not initialize it (done by initstate_r).  Pass correct
9420         size.
9421
9422 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9423
9424         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9425
9426         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9427         instruction out of the code.
9428
9429 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9430
9431         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9432         element at this position.
9433
9434         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9435         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9436         l_reldeps elements.
9437         * elf/dl-lookup.c (add_dependency): New function.
9438         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9439         dynamically loaded object.
9440         (_dl_lookup_symbol_skip): Likewise.
9441         (_dl_lookup_versioned_symbol): Likewise.
9442         (_dl_lookup_versioned_symbol_skip): Likewise.
9443         * elf/dl-open.c: Don't define _dl_load_lock here...
9444         * elf/rtld.c: ...but here...
9445         * elf/dl-support.c: ...and here.
9446         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9447         through relocation.
9448         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9449         relocations.
9450         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9451         anymore.
9452         * dlfcn/glrefmain.c: Add one more debug message.
9453
9454         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9455         command line.
9456         * Makerules (sysd-versions): Use ( ) instead of { }.
9457
9458         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9459         optimize for the non-debugging case.
9460         * elf/dl-lookup.c: Likewise.
9461         * sysdeps/generic/libc-start.c: Likewise.
9462
9463 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9464
9465         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9466         (init1): Don't initialize __environ here, since init already does it.
9467         (first_init): New function, broken out of _init.
9468         (_hurd_stack_setup): Use it.
9469         [SHARED] (_dl_init_first): New function, renamed from old _init.
9470         (init1) [SHARED]: Don't call posixland_init here.
9471         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9472         [SHARED] (_init): Define as alias for posixland_init.
9473         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9474         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9475         RTLD_START_SPECIAL_INIT before calling initializers.
9476         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9477         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9478         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9479         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9480
9481         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9482         since we define the function with the name `tmpfile'.
9483
9484         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9485         * hurd/Versions: Likewise.
9486
9487 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9488
9489         * elf/dl-runtime.c (fixup): Fix typo in comment.
9490
9491         * resolv/netdb.h (getnameinfo): All length parameters are of type
9492         socklen_t.
9493         * inet/getnameinfo.c: Likewise.
9494
9495 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9496
9497         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9498         (gethostname): Change type of second parameter to socklen_t.
9499         * include/unistd.h (__gethostname): Change type of second
9500         parameter to socklen_t.
9501         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9502         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9503         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9504         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9505         Likewise.
9506         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9507         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9508         Allow definition elsewhere.
9509         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9510         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9511         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9512         * sysdeps/generic/bits/types.h: Define __socklen_t.
9513         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9514         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9515         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9516         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9517         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9518         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9519         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9520
9521         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9522         (inet_lnaof): Likewise.
9523         (inet_netof): Likewise.
9524         (inet_network): Likewise.
9525         (inet_aton): Likewise.
9526         (inet_makeaddr): Change parameter types to in_addr_t.
9527         (inet_neta): Likewise.
9528         (inet_ntop): Change type of last parameter to socklen_t.
9529         (inet_aton): Only make available if __USE_MISC.
9530         (inet_neta): Likewise.
9531         (inet_net_ntop): Likewise.
9532         (inet_net_pton): Likewise.
9533         (inet_nsap_ntoa): Likewise.
9534
9535         * inet/in.h: Define in_port_t type.
9536         Define in_addr_t type.
9537         (struct in_addr): Use in_addr_t in definition.
9538         (IN_CLASSA): Use cast to in_addr_t.
9539         (IN_CLASSB): Likewise.
9540         (IN_CLASSC): Likewise.
9541         (IN_CLASSD): Likewise.
9542         (IN_EXPERIMENTAL): Likewise.
9543         (IN_BADCLASS): Likewise.
9544         (INADDR_ANY): Likewise.
9545         (INADDR_BROADCAST): Likewise.
9546         (INADDR_NONE): Likewise.
9547         (INADDR_LOOPBACK): Likewise.
9548         (INADDR_UNSPEC_GROUP): Likewise.
9549         (INADDR_ALLHOSTS_GROUP): Likewise.
9550         (INADDR_ALLRTRS_GROUP): Likewise.
9551         (INADDR_MAX_LOCAL_GROUP): Likewise.
9552         (struct sockaddr_in): Use in_port_t for sin_port element.
9553         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9554         Use uint8_t instead of u_int8_t.
9555
9556         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9557         Call __inet_aton instead of inet_aton.
9558         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9559
9560         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9561         (innetgr): Likewise.
9562         (struct addrinfo): Use socklen_t for ai_addrlen element.
9563
9564         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9565         IPV6_RECVERR): New defines.
9566
9567         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9568         * inet/getnetbyad.c: Likewise.
9569         * inet/getnetbyad_r.c: Likewise.
9570         * nis/nss_nis/nis-network.c: Likewise.
9571         * nis/nssplus_nis/nisplus-network.c: Likewise.
9572         * nss/nss_files/files-network.c: Likewise.
9573         * resolv/netdb.h: Define uint32_t if not already happened.
9574         Include bits/netdb.h.  Remove definition of struct netent.
9575         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9576         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9577         * sysdeps/generic/bits/netdb.h: New file.
9578         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9579
9580         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9581         (tests): Add glrefmain.
9582         Add rules to build modules and run tests.  Ignore result of glrefmain
9583         for now since it fails.
9584         * dlfcn/glrefmain.c: New file.
9585         * dlfcn/glreflib1.c: New file.
9586         * dlfcn/glreflib2.c: New file.
9587
9588         * test-skeleton.c: Include <string.h> for strsignal prototype.
9589
9590         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9591         to be missing.
9592
9593         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9594         former init-first.h.  Initialize __libc_multiple_libcs.
9595
9596 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9597
9598         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9599         #if expression for use of unaligned function to the one used in
9600         the definition of these functions.
9601         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9602         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9603         (internal_ucs4le_loop_unaligned): New function.
9604
9605         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9606         (tests): Add order.
9607         (module-names): Add dep1, dep2, dep3, and dep4.
9608         Add dependencies for dep* modules and order.
9609         Define rule for order.out which checks the result.
9610         * elf/dep1.c: New file.
9611         * elf/dep2.c: New file.
9612         * elf/dep3.c: New file.
9613         * elf/dep4.c: New file.
9614         * elf/order.c: New file.
9615
9616         * elf/dl-init.c: Fix typo in comment.
9617
9618 2000-03-31  Andreas Jaeger  <aj@suse.de>
9619
9620         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9621         init function interface.
9622         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9623
9624 2000-03-31  Andreas Jaeger  <aj@suse.de>
9625
9626         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9627         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9628         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9629         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9630         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9631
9632         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9633         anymore, update comment.
9634
9635         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9636
9637         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9638         SHLIB_COMPAT - the struct is always needed.
9639
9640 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9641
9642         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9643         * elf/dl-support.c: Define _dl_starting_up.
9644
9645 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9646
9647         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9648         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9649
9650         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9651
9652         * elf/Makefile (dl-routines): Remove preinit.
9653         * elf/Versions: Remove _dl_preinit.
9654         * elf/dl-preinit.c: Removed.  Move content into...
9655         * elf/dl-init.c: ...here.
9656         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9657
9658         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9659         elements.
9660
9661 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9662
9663         * stdlib/strfmon.c: Corrected problems with the code that
9664         sets default values for [np]_sep_by_space and
9665         [np]_sign_posn; also the new positive/negative alignment
9666         code from the previous patch was not quite right for
9667         [np]_sign_posn = 0.
9668
9669         * localedata/tst-fmon.data: Changes corresponding to the
9670         two sets of fixes made to stdlib/strfmon.c.
9671
9672 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9673
9674         * malloc/malloc.c: Declare bit flags UL so that they will not
9675         default to int size when being inverted.
9676
9677 2000-03-29  Andreas Jaeger  <aj@suse.de>
9678
9679         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9680         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9681
9682 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9683             Ralf Baechle <ralf@uni-koblenz.de>
9684
9685         * Makeconfig: Introduce new variable SHARED to mark code used in
9686         the shared library.
9687         * elf/dl-close.c: Use it instead of PIC.
9688         * elf/dl-load.c: Likewise.
9689         * elf/dl-open.c: Likewise.
9690         * hurd/geteuids.c: Likewise.
9691         * include/libc-symbols.h: Likewise.
9692         * include/shlib-compat.h: Likewise.
9693         * libio/freopen.c: Likewise.
9694         * linuxthreads/cancel.c: Likewise.
9695         * linuxthreads/pthread.c: Likewise.
9696         * linuxthreads/wrapsyscall.c: Likewise.
9697         * nss/nsswitch.c: Likewise.
9698         * stdio-common/vfprintf.c: Likewise.
9699         * sysdeps/arm/init-first.c: Likewise.
9700         * sysdeps/i386/init-first.c: Likewise
9701         * sysdeps/generic/init-first.c: Likewise.
9702         * sysdeps/generic/libc-start.c: Likewise.
9703         * sysdeps/mips/init-first.c: Likewise.
9704         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9705         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9706         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9707         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9708         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9709
9710         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9711
9712 2000-03-29  Andreas Jaeger  <aj@suse.de>
9713
9714         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9715         Use D_PTR to access relocated entries in l_info.
9716         (elf_machine_rela): Likewise.
9717
9718         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9719         Likewise.
9720         (elf_machine_rela): Likewise.
9721
9722         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9723         Likewise.
9724         (__elf_machine_fixup_plt): Likewise.
9725         (__process_machine_rela): Likewise.
9726
9727         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9728         (elf_machine_rela): Likewise.
9729
9730         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9731         (elf_machine_rel): Likewise.
9732
9733         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9734         (elf_machine_fixup_plt): Likewise.
9735         (elf_machine_rela): Likewise.
9736
9737 2000-03-29  Andreas Jaeger  <aj@suse.de>
9738
9739         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9740         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9741         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9742         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9743         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9744         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9745         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9746         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9747         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9748         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9749         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9750         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9751         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9752         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9753         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9754
9755         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9756         macros, remove K&R prototypes.
9757
9758 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9759
9760         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9761         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9762         (PR libc/1677).
9763
9764 2000-03-30  Andreas Jaeger  <aj@suse.de>
9765
9766         * misc/sys/cdefs.h: Remove K&R support.
9767
9768 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9769
9770         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9771         more cases.
9772         * iconv/loop.c: Likewise.
9773
9774 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9775
9776         * iconv/loop.c (put16): Remove __const. Fix access index.
9777         (put32): Remove __const. Use uint32_t instead of uint16_t.
9778         * iconv/skeleton.c: Likewise.
9779
9780 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9781
9782         * mach/Versions (libc: GLIBC_2.0)
9783         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9784         __vm_allocate on this.
9785         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9786         mutex- and spinlock-related symbols on this.
9787         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9788         New version set.  Lock-related symbols go here instead in this case.
9789         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9790         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9791         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9792         * hurd/Versions
9793         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9794         Put them here instead.
9795         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9796         New version set.  Those cthreads symbols go here instead in this case.
9797         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9798
9799 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9800
9801         * elf/dl-init.c (_dl_init): We don't need to call constructors
9802         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9803
9804         Implement dynamic determination of constructor/destructor order in
9805         the dynamic linker.
9806         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9807         (GLIBC_2.2): Add _dl_init.
9808         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9809         r_duplist is not anymore allocated separately.  l_initfini is and
9810         therefore free it if necessary.
9811         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9812         malloc block.  Otherwise allocate l_initfini list only.
9813         Put dependencies for the object in l_initfini list.
9814         Sort dependencies for the object to be loaded topologically.
9815         * elf/dl-fini.c: Before running the destructors sort the topologically.
9816         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9817         call constructors instead of iterating over the pointers.  Get list of
9818         objects for which to run constructors from l_initfini element. Accept
9819         argc, argv, and env as parameters and pass them to the constructors.
9820         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9821         with size of dynamic section.
9822         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9823         _dl_init_next and calling constructors ourself.
9824         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9825         Take argc, argv, and env as parameters and pass them to the
9826         constructors.  Rewrite to call all constructors and not iterate over
9827         the pointers.
9828         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9829         precompute l_initcount and l_preinitcount.
9830         * elf/link.h (struct link_map): Add l_ldnum member.
9831         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9832         l_initcount, and l_preinitcount.  Add l_initfini.
9833         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9834         one for _dl_init.
9835         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9836         function interface.
9837         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9838         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9839         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9840         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9841         conventions now match.
9842
9843         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9844         effect for shared objects.  Don't emit message and call only for
9845         static library.
9846
9847 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9848
9849         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9850         CSA_Z243.4-1985-1..UCS2.
9851         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9852         ISO-8859-10..UCS2.
9853
9854 2000-03-29  Andreas Jaeger  <aj@suse.de>
9855
9856         * include/unistd.h: Remove duplicate entry for __rmdir.
9857         Remove declaration of __mkdir since __mkdir is declared in
9858         sys/stat.h.
9859
9860         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9861         by Michael Deutschmann <michael@talamasca.ocis.net>.
9862
9863         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
9864         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9865         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9866         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9867         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
9868
9869 2000-03-28  Andreas Jaeger  <aj@suse.de>
9870
9871         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
9872         declaration, the prototype is defined via bits/mathcalls.h.
9873         (__sincosf): Likewise.
9874         (__sincosl): Likewise.
9875         (ldexp): Likewise.
9876         (ldexpf): Likewise.
9877         (ldexpl): Likewise.
9878         (__finite): Likewise.
9879         (__inline_mathcodeNP): New macro without prototype
9880         declarations.
9881         (__inline_mathcodeNP2): Likewise.
9882         (__inline_mathcodeNP3): Likewise.
9883         (__inline_mathcodeNP_): Likewise.
9884         (__inline_mathcodeNP2_): Likewise.
9885         (__inline_mathcodeNP3_): Likewise.
9886         (__inline_mathopNP): Likewise.
9887         (__inline_mathop_declNP): Likewise.
9888         (__inline_mathop_declNP_): Likewise.
9889         (__inline_mathcode_): Use __inline_mathcodeNP_.
9890         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
9891         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
9892         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
9893         (__expm1l): Don't define prototype, the prototype is defined via
9894         bits/mathcalls.h.
9895         (exp): Likewise.
9896         (__expl): Likewise.
9897         (tan): Likewise.
9898         (atan2): Likewise.
9899         (__atan2l): Likewise.
9900         (fmod): Likewise.
9901         (pow): Likewise.
9902         (fabsf): Likewise.
9903         (fabsl): Likewise.
9904         (__fabsl): Likewise.
9905         (asin): Likewise.
9906         (acos): Likewise.
9907         (sinh): Likewise.
9908         (cosh): Likewise.
9909         (tanh): Likewise.
9910         (floor): Likewise.
9911         (ceil): Likewise.
9912         (expm1): Likewise.
9913         (log1p): Likewise.
9914         (asinh): Likewise.
9915         (acosh): Likewise.
9916         (atanh): Likewise.
9917         (hypot): Likewise.
9918         (logb): Likewise.
9919         (fma): Likewise.
9920         (drem): Likewise.
9921         (sqrt): Likewise.
9922         (__sqrtl): Likewise.
9923         (sin): Likewise.
9924         (cos): Likewise.
9925         (atan): Likewise.
9926         (log): Likewise.
9927         (log10): Likewise.
9928         (asinh): Likewise.
9929         (log2): Likewise.
9930         (rint): Likewise.
9931
9932 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
9933
9934         * Makerules: If make variable md5 is defined to yes after
9935         generating dependencies generate MD5 sum for the object.
9936
9937         * iconv/gconv_builtin.h: Fix length in transformation definition
9938         for UNICODEBIG.
9939
9940         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
9941
9942         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
9943         allow as well reading from/writing to unaligned addresses on machines
9944         which don't support this in hardware.  Use FCTNAME macro to define
9945         function name.  Include the file a second time for platforms which
9946         need special unaligned handling.
9947         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
9948         to access potentially unaligned addresses.  These macros are intended
9949         to be used only outside the loops.
9950         (unaligned): New definition.  In case the machine can handle unaligned
9951         access define as zero.  Otherwise as a variable which is initialized
9952         as nonzero in case the buffer passed in at runtime is unaligned with
9953         respect to the character set encoding involved.
9954         Call aligned or unaligned looop functions according to unaligned
9955         variable.
9956         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
9957         of direct casting pointer to potentially handle unaligned memory
9958         accesses.
9959         * iconvdata/8bit-generic.c: Likewise.
9960         * iconvdata/ansi_x3.110.c: Likewise.
9961         * iconvdata/big5.c: Likewise.
9962         * iconvdata/euc-cn.c: Likewise.
9963         * iconvdata/euc-jp.c: Likewise.
9964         * iconvdata/euc-kr.c: Likewise.
9965         * iconvdata/euc-tw.c: Likewise.
9966         * iconvdata/gbk.c: Likewise.
9967         * iconvdata/iso-2022-cn.c: Likewise.
9968         * iconvdata/iso-2022-jp.c: Likewise.
9969         * iconvdata/iso-2022-kr.c: Likewise.
9970         * iconvdata/iso646.c: Likewise.
9971         * iconvdata/iso_6937-2.c: Likewise.
9972         * iconvdata/iso_6937.c: Likewise.
9973         * iconvdata/johab.c: Likewise.
9974         * iconvdata/sjis.c: Likewise.
9975         * iconvdata/t.61.c: Likewise.
9976         * iconvdata/uhc.c: Likewise.
9977         * iconvdata/unicode.c: Likewise.
9978         * iconvdata/utf-16.c: Likewise.
9979
9980         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
9981         prototypes.
9982
9983         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
9984         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
9985         public.
9986         * malloc/mcheck.h (mcheck_check_all): Declare.
9987
9988         * stdio-common/Makefile (tests): Add tst-obprintf.
9989
9990 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
9991
9992         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
9993         Declare pthread_sigmask.
9994
9995         * csu/version.c: Add 2000 to copyright years.
9996         Remove Emacs local variables section.
9997
9998 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9999
10000         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10001         __gconv_transform_internal_ucs2little): Remove declarations.
10002         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10003         __gconv_transform_internal_ucs2): Never need to bswap_16.
10004         (__gconv_transform_ucs2reverse_internal,
10005         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10006
10007 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10008
10009         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10010         obsoleting version not being defined at all, in which case the
10011         result is always true.
10012
10013         * Makeconfig (preprocess-versions): New canned sequence for running
10014         cpp on shlib-versions and the like.
10015         (soversions.i): Use it.
10016         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10017         Versions.def and Versions files.
10018
10019 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10020
10021         * stdio-common/tst-obprintf.c (main): Add another check to see
10022         obstack_printf handling all possible beginnings of the block
10023         inside an obstack chunk.
10024
10025         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10026         install mcheck handler.
10027
10028         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10029         handling problem.
10030
10031 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10032
10033         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10034
10035         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10036         on [HAVE_ELF && DO_VERSIONING].
10037
10038 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10039
10040         * stdio-common/tst-obprintf.c: New file.
10041
10042 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10043
10044         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10045         _IO_OVERFLOW directly instead through __overflow.
10046
10047         * locale/programs/localedef.c (construct_output_path): If path
10048         contains a / compute the end of the directory name correctly.
10049
10050         * include/features.h: Undef and document __USE_XOPEN2K.
10051
10052         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10053         whenever a function is called.  Initiated by calling mcheck_pedantic
10054         instead of mcheck.
10055         * malloc/mcheck.h: Declare mcheck_pedantic.
10056         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10057         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10058         for now.
10059
10060 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10061
10062         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10063         * dlfcn/dlopenold.c: Likewise.
10064         * nss/getXXbyYY_r.c: Likewise.
10065         * nss/getXXent_r.c: Likewise.
10066         * hurd/hurdinit.c: Likewise.
10067         * hurd/compat-20.c: Likewise.
10068         * libio/oldiofopen.c: Likewise.
10069         * libio/oldiofclose.c: Likewise.
10070         * libio/oldiofdopen.c: Likewise.
10071         * libio/oldfileops.c: Likewise.
10072         * libio/oldstdfiles.c: Likewise.
10073         * libio/oldiofsetpos.c: Likewise.
10074         * libio/oldiofgetpos.c: Likewise.
10075         * libio/oldiofgetpos64.c: Likewise.
10076         * libio/oldiofsetpos64.c: Likewise.
10077         * libio/oldiopopen.c: Likewise.
10078         * libio/oldpclose.c: Likewise.
10079         * libio/oldtmpfile.c: Likewise.
10080         * libio/freopen.c (freopen): Likewise.
10081         * libio/iofclose.c (_IO_new_fclose): Likewise.
10082
10083         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10084         (reboot): Declare it.
10085
10086         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10087
10088         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10089
10090         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10091
10092         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10093         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10094         We need this for the sbrk decl, which can be included without Unix98.
10095
10096 2000-03-20  Richard Henderson  <rth@cygnus.com>
10097
10098         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10099         argument to yperr2nss is an int, not size_t.
10100         * posix/regex.c (print_partial_compiled_pattern): Cast all
10101         ptrdiff_t to long for printing.
10102         (print_compiled_pattern): Use Z for printing size_t.
10103         * posix/testfnm.c (tests): Avoid trigraphs.
10104         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10105         Use a C comment, not an assembly comment.
10106
10107         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10108         of __ASSUME_32BITUIDS.
10109
10110 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10111
10112         * libio/iofopncook.c: Remove K&R prototypes.
10113
10114 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10115
10116         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10117         an initial value of 1024 instead of RLIM_INFINITY.
10118
10119         * Versions.def (libmachuser, libhurduser): Remove these sections,
10120         since these libraries do not presently use symbol versions.
10121
10122         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10123         is RLIM_INFINITY, return -1 instead.
10124
10125 2000-03-24  Andreas Jaeger  <aj@suse.de>
10126
10127         * Makefile (postclean): Added soversions.i.
10128
10129 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10130
10131         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10132         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10133         and _FPU_IEEE.  Change _FPU_RESERVED.
10134
10135 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10136
10137         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10138
10139 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10140
10141         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10142         (gaih_inet): Remove unused duplicate variable.
10143
10144         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10145         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10146         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10147         only flavors supported by this function anyway.
10148
10149 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10150
10151         * stdlib/strfmon.c: Corrected problems with missing signs and
10152         missing or extra spaces; allow for sign strings longer than
10153         one character; add padding to ensure positive and negative
10154         formats are aligned when a left precision is used.
10155
10156 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10157
10158         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10159         Patch by John Mizel <John.Mizel@msdw.com>.
10160
10161 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10162
10163         * manual/install.texi: Remove references to crypt add-on.
10164
10165 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10166
10167         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10168         section while taking the _hurd_rlimit_lock.
10169         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10170
10171 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10172
10173         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10174         using $(LN_S).
10175
10176         * sysdeps/mach/hurd/if_index.c: New file.
10177
10178         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10179         * sysdeps/gnu/net/if.h: here.
10180         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10181         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10182         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10183         functions and `struct if_nameindex' type.
10184         * socket/Makefile (headers): Add net/if.h here.
10185         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10186         * sysdeps/mach/hurd/Dist: Remove it here.
10187         * sysdeps/unix/sysv/linux/Dist: And here.
10188         * sysdeps/generic/if_index.c: Include <net/if.h>.
10189
10190 2000-03-24  Andreas Jaeger  <aj@suse.de>
10191
10192         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10193         access relocated entries in l_info.
10194         (elf_machine_got_rel): Likewise.
10195         (elf_machine_runtime_setup): Likewise.
10196         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10197         (elf_machine_runtime_setup): Likewise.
10198         (__dl_runtime_resolve): Likewise.
10199
10200 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10201
10202         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10203         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10204         according to RFC 2553.
10205         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10206         * inet/getnameinfo.c: Likewise.
10207         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10208
10209 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10210
10211         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10212         Remove no-op pointer increment.
10213
10214 2000-03-23  Andreas Jaeger  <aj@suse.de>
10215
10216         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10217         follow change for libio.h from 2000-03-10.
10218
10219 2000-03-23  Andreas Jaeger  <aj@suse.de>
10220
10221         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10222         change.
10223         * elf/dl-debug.c: Likewise.
10224         * elf/dl-deps.c: Likewise.
10225         * elf/dl-error.c: Likewise.
10226         * elf/dl-fini.c: Likewise.
10227         * elf/dl-init.c: Likewise.
10228         * elf/dl-load.c: Likewise.
10229         * elf/dl-lookup.c: Likewise.
10230         * elf/dl-minimal.c: Likewise.
10231         * elf/dl-object.c: Likewise.
10232         * elf/dl-open.c: Likewise.
10233         * elf/dl-preinit.c: Likewise.
10234         * elf/dl-profile.c: Likewise.
10235         * elf/dl-profstub.c: Likewise.
10236         * elf/dl-reloc.c: Likewise.
10237         * elf/dl-runtime.c: Likewise.
10238         * elf/dl-support.c: Likewise.
10239         * elf/dl-symbol.c: Likewise.
10240         * elf/dl-version.c: Likewise.
10241         * elf/rtld.c: Likewise.
10242         * elf/sprof.c: Likewise.
10243         * sysdeps/generic/dl-cache.c: Likewise.
10244         * sysdeps/generic/dl-origin.c: Likewise.
10245         * sysdeps/generic/dl-sysdep.c: Likewise.
10246         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10247         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10248         * sysdeps/generic/libc-start.c: Likewise.
10249         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10250         * sysdeps/powerpc/dl-machine.c: Likewise.
10251         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10252         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10253         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10254         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10255
10256         * elf/ldsodefs.h: Move file to ...
10257         * sysdeps/generic/ldsodefs.h: ... here.
10258
10259         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10260
10261         * sysdeps/mips/elf/ldsodefs.h: New file.
10262
10263         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10264         entries in l_info.
10265         (_dl_check_map_versions): Likewise.
10266         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10267         * elf/dl-load.c (_dl_init_paths): Likewise.
10268         (_dl_map_object): Likewise.
10269         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10270         (elf_get_dynamic_info): Likewise.
10271         * elf/do-lookup.h (FCT): Likewise.
10272         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10273         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10274         * elf/dl-addr.c (_dl_addr): Likewise.
10275         * elf/dl-runtime.c (profile_fixup): Likewise.
10276         (fixup): Likewise.
10277         * elf/dl-init.c (_dl_init_next): Likewise.
10278         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10279         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10280         (DISTINGUISH_LIB_VERSIONS): Likewise.
10281         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10282         (elf_machine_rel): Likewise.
10283
10284         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10285         for writable dynamic section.
10286
10287 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10288
10289         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10290         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10291
10292 2000-03-22  Andreas Jaeger  <aj@suse.de>
10293
10294         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10295         from latest Linux kernel.
10296
10297 2000-03-21  Andreas Jaeger  <aj@suse.de>
10298
10299         * Versions.def: Add version 2.1.4.
10300
10301 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10302
10303         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10304         * libio/oldiofopen.c: Likewise.
10305         * libio/oldiofclose.c: Likewise.
10306         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10307
10308 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10309
10310         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10311         indicating the first version set to obsolete the conditionalized code.
10312         (compat_symbol): New macro.
10313         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10314         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10315         integer values to the ABI_* macros for supported versions.
10316         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10317         compat_symbol macro.
10318
10319 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10320
10321         * nscd/connections.c (nscd_run): Pretty print.
10322         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10323
10324         * manual/charset.texi: Fix typos.  Rephrase.
10325         * manual/process.texi: Likewise.
10326         * manual/signal.texi: Likewise.
10327         Patches by Mike Coleman <mkc@kc.net>.
10328
10329         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10330         versions.
10331         * libio/iofdopen.c: Likewise.
10332         * libio/iofgetpos.c: Likewise.
10333         * libio/iofgetpos64.c: Likewise.
10334         * libio/iofopen.c: Likewise.
10335         * libio/iofsetpos.c: Likewise.
10336         * libio/iofsetpos64.c: Likewise.
10337         * libio/iopopen.c: Likewise.
10338         * libio/oldiofopen.c: Likewise.
10339         * libio/pclose.c: Likewise.
10340         * sysdeps/gnu/siglist.c: Likewise.
10341         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10342
10343         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10344         chance to expand VERSION_##lib##_##version.
10345
10346         * libio/fileops.c: Use new macros from shlib-compat.h to define
10347         versions.
10348         * libio/iofclose.c: Likewise.
10349         * libio/oldiofclose.c: Likewise.
10350         Patch by Roland McGrath <roland@frob.com>.
10351
10352 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10353
10354         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10355         Lay out struct sigcontext according to what really gets passed on
10356         the stack.
10357         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10358         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10359         (prgregset_t, prfpregset_t): Define to elf_* types.
10360         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10361         Define to correct value.
10362         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10363         sigcontext.
10364         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10365
10366 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10367
10368         * scripts/firstversions.awk: Allow multiple version sets in the
10369         "earliest version" specification, meaning that version sets in the
10370         gaps between listed versions should be folded into the earliest later
10371         version that is explicitly listed.
10372         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10373         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10374
10375 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10376
10377         * iconv/gconv_builtin.c: Include <endian.h>.
10378         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10379         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10380         according to current platform.
10381         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10382         __gconv_transform_internal_ucs2reverse, and
10383         __gconv_transform_internal_ucs4le.
10384         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10385         __gconv_transform_ucs2reverse_internal and
10386         __gconv_transform_internal_ucs2reverse.
10387         * iconvdata/Makefile (modules): Add UNICODE.
10388         (distribute): Add unicode.c.
10389         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10390         * iconvdata/unicode.c: New file.
10391
10392         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10393         determine byte order of input and convert accordingly.
10394
10395         * iconvdata/utf-16.c (gconv_init): Fix typo.
10396
10397 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10398
10399         * iconvdata/gconv-modules: Fix typo.
10400
10401         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10402         more messages.
10403
10404         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10405
10406 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10407
10408         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10409
10410 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10411
10412         * misc/Makefile (routines): Add mincore.
10413
10414 2000-03-20  Andreas Jaeger  <aj@suse.de>
10415
10416         * sysdeps/generic/mincore.c: New stub file.
10417
10418         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10419         from latest Linux kernel.
10420
10421 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10422
10423         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10424         _SC_GETPW_R_SIZE_MAX.
10425
10426 2000-03-20  Richard Henderson  <rth@cygnus.com>
10427
10428         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10429         in GLIBC_2.1.4.
10430
10431 2000-03-20  Richard Henderson  <rth@cygnus.com>
10432
10433         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10434         of arithmetic instructions.
10435
10436         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10437         with the fpcr.  Protect from INV exception.
10438         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10439         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10440         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10441
10442         * sysdeps/alpha/fpu/s_copysign.c: New.
10443         * sysdeps/alpha/fpu/s_copysignf.c: New.
10444         * sysdeps/alpha/fpu/s_fabs.c: New.
10445         * sysdeps/alpha/fpu/s_fabsf.c: New.
10446         * sysdeps/alpha/fpu/s_rint.c: New.
10447         * sysdeps/alpha/fpu/s_rintf.c: New.
10448
10449         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10450
10451         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10452         Kill sethae.
10453         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10454         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10455         Use physical addresses not KSEG addresses.
10456         (io_system): Add PYXIS.
10457         (io): Remove hae.reg, sys, hae_shift.
10458         (stb_mb, stw_mb, stl_mb, __sethae): New.
10459         (inline_outb, inline_outw, inline_outl): Don't set hae.
10460         (inline_inb, inline_inw, inline_inl): Likewise.
10461         (dense_sethae): New null function.
10462         (struct cpuinfo_data): New.
10463         (process_cpuinfo): Use local and stack variables, not static.
10464         Move readlink check here from init_iosys.
10465         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10466         (_iopl): Simplify.
10467         (_hae_shift): Calculate it here.
10468         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10469         add pciconfig_iobase.
10470
10471 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10472
10473         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10474         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10475
10476         * scripts/versions.awk: Fixed version renaming code to distinguish
10477         libraries properly.
10478
10479 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10480
10481         * include/stdlib.h: Add prototype for __cxa_atexit.
10482
10483         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10484         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10485
10486 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10487
10488         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10489         existing rtld-installed-name.
10490         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10491         replace existing rtld-installed-name using $(symbolic-link-prog).
10492
10493 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10494
10495         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10496         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10497         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10498         but not the former.
10499
10500 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10501
10502         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10503         glob64.  Since there is no glob64 in the LFS proposal applications
10504         can assume that glob handles LFS situations.  glob64 is only needed
10505         if alternative filesystem functions are used.
10506
10507 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10508
10509         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10510         when GLOB_DOOFFS is set; correct handling of patterns
10511         containing escaped wildcards (and no unescaped ones);
10512         GLOB_ERR flag was being ignored in some situations.
10513
10514         * posix/globtest.c, posix/globtest.sh: Updated to include
10515         tests for the problems fixed by the above changes to glob.c.
10516
10517         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10518
10519 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10520
10521         * Makeconfig (soversion.i): Use only first match for each lib.
10522
10523         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10524
10525         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10526         rather than $(sysd-dirs-done) to protect these rules.
10527
10528         * Makerules (version-renames.def): Target removed.
10529         (Versions.all): Depend on soversions.i directly and parse it.
10530
10531         * Makeconfig (soversions.i): New target, input-reading parts of
10532         soversions.mk generation moved here; result is a canonicalized
10533         list "LIB VERSION [SET]" for this configuration.
10534         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10535         * Makerules (version-renames.def): New target, generated from
10536         soversions.i with contents that was in $(map-firstversions).
10537         (Versions.all): Don't depend on soversions.mk, depend on
10538         version-renames.def instead; just cat it into the input.
10539
10540         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10541         for $(map-firstversions), which better handles it being empty.
10542
10543         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10544         supported version for libc 0.2.90.libio to GLIBC_2.2.
10545
10546         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10547         and use it to emit new variable `map-firstversions'.
10548         * scripts/firstversions.awk: New file.
10549         * Makerules (Versions.all): Use scripts/firstversions.awk and
10550         the $(map-firstversions) value to generate a modified versions list
10551         that includes renames in "A = B" syntax for each version set earlier
10552         than the "earliest symbol version" named in shlib-versions.
10553         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10554         rename version set A to B in the output to the intermediate file.
10555         * scripts/abi-versions.awk: New file.
10556         * Makerules (abi-versions.h): New target, generated by that script.
10557         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10558         * include/shlib-compat.h: New file, uses that generated header.
10559
10560 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10561
10562         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10563         after stripping # comments, and then run it through cpp.
10564         This allows things like "%ifdef FOO" based on config.h settings.
10565         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10566
10567         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10568         and other errors that indicate a pseudo-receive happened, grok through
10569         the message buffer for port rights that need references fixed up.
10570
10571 2000-03-16  Andreas Jaeger  <aj@suse.de>
10572
10573         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10574
10575         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10576
10577         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10578         from latest Linux kernel.
10579         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10580
10581         * misc/sys/mman.h: Add prototype for mincore.
10582
10583 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10584
10585         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10586         entry for GLIBC_2.0 version of setrlimit.
10587         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10588
10589 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10590
10591         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10592         * nis/nss_compat/compat-initgroups.c: Likewise.
10593         * nis/nss_nis/nis-initgroups.c: Likewise.
10594         * nis/nss_nis/nis-netgrp.c: Likewise.
10595         * nis/nss_nis/nis-proto.c: Likewise.
10596         * nis/nss_nis/nis-rpc.c: Likewise.
10597         * nis/nss_nis/nis-service.c: Likewise.
10598         * nis/ypclnt.c: Likewise.
10599
10600 2000-03-16  Andreas Jaeger  <aj@suse.de>
10601
10602         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10603         doesn't exist, correct checks.  Fixes PR libc/1649.
10604
10605 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10606
10607         * nscd/hstcache.c: Restore correct UID.
10608         * nscd/pwdcache.c: Likewise.
10609         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10610
10611 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10612
10613         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10614         macros for register names, in line with 2000-03-14 linux change.
10615
10616         * sysdeps/mach/sched_yield.c: New file.
10617
10618 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10619
10620         * sysdeps/generic/lockfile.c: Include <stdio.h>
10621         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10622         case <libio.h> defined them.
10623         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10624         from __internal_*.
10625         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10626         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10627
10628         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10629         for more pleasing parse error.
10630
10631 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10632
10633         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10634         memory for eras.
10635         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10636
10637         * elf/Makefile: Add rules to compile and run constload1 test.
10638         * elf/constload1.c: New file.
10639         * elf/constload2.c: New file.
10640         * elf/constload3.c: New file.
10641
10642 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10643
10644         * sysdeps/posix/open64.c: Make __open64 weak alias.
10645         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10646         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10647         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10648         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10649         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10650         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10651         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10652         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10653         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10654         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10655
10656 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10657
10658         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10659         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10660
10661 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10662
10663         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10664         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10665
10666 2000-03-08  Andreas Jaeger  <aj@suse.de>
10667
10668         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10669
10670 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10671
10672         * timezone/africa: Update from tzdata2000d.
10673         * timezone/asia: Likewise.
10674         * timezone/australasia: Likewise.
10675         * timezone/europe: Likewise.
10676         * timezone/northamerica: Likewise.
10677         * timezone/southamerica: Likewise.
10678
10679         * po/fr.po: Update from translation team.
10680         * po/de.po: Likewise.
10681
10682         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10683         last parameter.  Move code to add map to global scope from here...
10684         * elf/dl-open.c (dl_open_worker): ...here.
10685         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10686         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10687
10688         * locale/programs/ld-collate.c (collate_read): Fix warning.
10689
10690         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10691         values and macros for register names.
10692
10693         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10694         returned by seek cookie function is -1.
10695
10696 2000-03-14  Andreas Jaeger  <aj@suse.de>
10697
10698         * locale/localeconv.c (localeconv): Fix typo.
10699         Reported by Andre Charbonneau <andrec@corel.com>.
10700
10701 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10702
10703         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10704         since modules depend on it counting the number of times the conversion
10705         function got called.
10706
10707         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10708
10709         * iconv/gconv.h: Pretty print.
10710
10711 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10712
10713         * posix/wordexp-test.c: Correct one of the tests added in the last
10714         change.  Really get the root passwd entry to check again ~root.
10715
10716 2000-03-10  Andreas Jaeger  <aj@suse.de>
10717
10718         * manual/filesys.texi (Working Directory): Fix last patch.
10719         Patch by Martin Buchholz  <martin@xemacs.org>.
10720
10721 2000-03-10  Andreas Jaeger  <aj@suse.de>
10722
10723         * manual/creature.texi (Feature Test Macros): Fix language.
10724
10725 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10726
10727         * mach/devstream.c (devstream_write, devstream_read): New functions.
10728         (input, output): Functions removed.
10729         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10730         using only the vanilla fopencookie interface.
10731
10732         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10733         as macro for __io_functions.
10734         (funcsio): Use cookie_io_functions_t type name.
10735         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10736
10737         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10738         fopencookie.
10739         (fopencookie): Use it.
10740         * libio/libio.h: Declare _IO_cookie_init.
10741         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10742         _IO_cookie_init.
10743
10744         * libio/libio.h (__io_seek_fn): Fix second argument type
10745         to be a pointer, in line with the manual and the old stdio.
10746         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10747
10748         * sysdeps/generic/bits/stdio-lock.h: New file.
10749         This is a stub with #error, but that's better than no file at all.
10750
10751 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10752
10753         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10754         * manual/message.texi (Using gettextized software): Doc Fixes.
10755         * manual/message.texi (Message Translation): Doc Fixes.
10756         * manual/filesys.texi (File Size): Doc Fixes.
10757         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10758         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10759         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10760         * manual/install.texi: Doc Fixes.
10761         * manual/search.texi (Hash Search Function): Doc Fixes.
10762         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10763         * FAQ.in: Doc Fixes.
10764         * config.h.in: Doc Fixes.
10765         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10766         Doc Fixes.  `allows to' is not correct English.
10767
10768         * elf/rtld.c: Doc fixes.
10769         * manual/creature.texi (Feature Test Macros): Doc fixes.
10770         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10771
10772         * manual/filesys.texi (Working Directory): Check for ERANGE to
10773         avoid infloop.
10774
10775 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10776
10777         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10778         conditions so as not to clobber the final '\0' when there is only one
10779         element in the vector.
10780
10781 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10782
10783         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10784         broken by 2000-02-27 change.
10785
10786         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10787
10788 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10789
10790         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10791         argument type, for 2000-02-22 change in signal/signal.h declaration.
10792
10793 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10794
10795         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10796         to getdirentries64 (no __), since the Linux implementation
10797         has no __ name, and there is no declaration for the __ name.
10798
10799         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10800
10801         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10802         sed regexp so as not to break directory names including /../ within.
10803
10804         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10805         The sysdeps/generic file is right for BSD.  This file was in fact the
10806         Hurd file, but the only difference was the WNOREAP flag that was never
10807         actually implemented or used anywhere.
10808
10809         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10810         since AC_PATH_PROG already does it for us.
10811         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10812         correctness and sh portability.  I replaced the broken check
10813         with a more sensible implementation of the apparently intended
10814         semantics, which might still be questionable.  Using expr causes
10815         a non-numeric value for `perl -V:apiversion` to be accepted,
10816         refusing to use only a perl that reports a number less than 5;
10817         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10818         * configure: Regenerated.
10819
10820 2000-03-08  Andreas Jaeger  <aj@suse.de>
10821
10822         * manual/crypt.texi: Fix paths.
10823
10824 2000-03-07  Andreas Jaeger  <aj@suse.de>
10825
10826         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10827         were swapped.
10828         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10829         libc/1636.
10830
10831 2000-03-06  Andreas Jaeger  <aj@suse.de>
10832
10833         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10834         in __sgn1l, otherwise g++ fails to parse this.
10835         Reported by Sean Chen <sean.chen@turbolinux.com>.
10836
10837 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10838
10839         * configure.in: Compute sizeof-long-double.
10840         * configure: Regenerated.
10841         * config.make.in: Make sizeof-long-double available to sub-makes.
10842
10843 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10844
10845         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10846         call.
10847
10848 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10849
10850         * Makeconfig (rpath-dirs): Add crypt.
10851         (all-subdirs): Remove md5crypt.
10852         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10853         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10854         * sysdeps/generic/crypt-entry.c: Delete.
10855         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10856         * sysdeps/generic/crypt.h: Delete.
10857         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10858         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10859         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10860         * sysdeps/generic/des_impl.c: Delete.
10861         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10862         * crypt/sysdeps: Delete.
10863         * crypt/crypt_util.c: Don't use `patchlevel.h'.
10864         * md5-crypt/Versions: Move to crypt/.
10865         * md5-crypt/md5-crypt.c: Move to crypt/.
10866         * md5-crypt/md5.c: Move to crypt/.
10867         * md5-crypt/md5c-test.c: Move to crypt/.
10868         * md5-crypt/md5test.c: Move to crypt/.
10869         * md5-crypt: Delete.
10870         * crypt/Makefile: Adjust for new structure.
10871
10872 2000-03-03  Paul Eggert  <eggert@twinsun.com>
10873
10874         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
10875         define to 1 if not defined.
10876
10877 2000-03-03  Andreas Jaeger  <aj@suse.de>
10878
10879         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
10880
10881 2000-03-03  Andreas Jaeger  <aj@suse.de>
10882
10883         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
10884         cases.
10885         (xdr_int64_t): Correctly handle lower half.
10886         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
10887
10888 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10889
10890         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10891         call.
10892
10893 2000-03-02  Andreas Jaeger  <aj@suse.de>
10894
10895         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
10896         2.3.43.
10897
10898 2000-03-02  Andreas Jaeger  <aj@suse.de>
10899
10900         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
10901
10902 2000-03-01  Andreas Jaeger  <aj@suse.de>
10903
10904         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
10905         (tests): Added tst-getdate.
10906
10907         * time/tst-getdate.c: New file.
10908
10909         * time/datemsk: New file, needed for tst-getdate.
10910
10911 2000-02-29  Cristian Gafton  <gafton@redhat.com>
10912
10913         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
10914
10915 2000-02-17  H.J. Lu  <hjl@gnu.org>
10916
10917         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
10918
10919         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
10920         available.
10921         (svcudp_recv): Set up message with the new "xp_pad" field for
10922         IP_PKTINFO.
10923         (svcudp_reply): Support IP_PKTINFO if available.
10924
10925 2000-03-01  Andreas Jaeger  <aj@suse.de>
10926
10927         * time/getdate.c (check_mday): Fix check for february.
10928         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
10929         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
10930
10931 2000-03-02  Andreas Jaeger  <aj@suse.de>
10932
10933         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
10934         g++ fails to parse this.
10935         Reported by Sean Chen <sean.chen@turbolinux.com>.
10936
10937 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10938
10939         * io/creat.c: Moved to...
10940         * sysdeps/generic/creat.c: ...here.
10941         * io/creat64.c: Moved to...
10942         * sysdeps/generic/creat64.c: ...here.
10943         * io/lockf.c: Moved to...
10944         * sysdeps/generic/lockf.c: ...here.
10945
10946         * crypt/crypt.texi: Moved to...
10947         * manual/crypt.texi: ...here.
10948         * crypt/examples/genpass.c: Moved to...
10949         * manual/examples/genpass.c: ...here.
10950         * crypt/examples/mygenpass.c: Moved to...
10951         * manual/examples/mygenpass.c: ...here.
10952         * crypt/examples/testpass.c: Moved to...
10953         * manual/examples/testpass.c: ...here.
10954
10955         * manual/Makefile (chapters): Add crypt.
10956         * manual/conf.texi: Add usual header for not-last chapter.
10957         * manual/crypt.texi: Add special header for last chapter.
10958
10959 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10960
10961         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
10962         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
10963         complain if there is no crypt add-on.
10964         * crypt/configure: Removed.
10965
10966         * crypt/crypt.texi: Update documentation of US export restrictions
10967         to match the 14 Jan 2000 regulations.
10968
10969 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10970
10971         * crypt: New subdirectory, merged in from the crypt add-on.
10972
10973 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10974
10975         * include/unistd.h: Add __rmdir and __mkdir prototypes.
10976
10977
10978 See ChangeLog.10 for earlier changes.