Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
2
3         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
4
5         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
6         to not use sysctl().  Too many architectures have problems with it.
7
8 2000-09-14  Andreas Jaeger  <aj@suse.de>
9
10         * scripts/config.sub: New version from subversions.gnu.org.
11
12         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
13         long.
14
15 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
16
17         * posix/regex.c (compile_range): Cast collseq index to unsigned char
18         to avoid accessing data before collseq.
19
20         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
21         pasting strings together.
22
23 2000-09-14  Greg McGary  <greg@mcgary.org>
24
25         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
26         copyright notice.
27         * sysdeps/generic/bp-semctl.h: Likewise.
28         * sysdeps/generic/bp-start.h: Likewise.
29         * sysdeps/generic/bp-sym.h: Likewise.
30         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
31         rename prototype.
32
33 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
34
35         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
36         don't fail.
37
38         * elf/elf.h: Add missing official relocations.
39
40         * libio/stdio.h: Define __FILE if __need___FILE is defined.
41         * stdio/stdio.h: Likewise.
42         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
43         * include/stdio.h: Handle __need___FILE like __need_FILE.
44         * include/wchar.h: Use __FILE instead of FILE.
45         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
46         * libio/fwscanf.c: Likewise.
47         * libio/getwc.c: Likewise.
48
49         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
50         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
51         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
52
53         * assert/assert.h: Update comment header about ISO C section.
54         * math/complex.h: Likewise.
55         * ctype/ctype.h: Likewise.
56         * include/errno.h: Likewise.
57         * include/limits.h: Likewise.
58         * locale/locale.h: Likewise.
59         * math/math.h: Likewise.
60         * setjmp/setjmp.h: Likewise.
61         * signal/signal.h: Likewise.
62         * stdio/stdio.h: Likewise.
63         * libio/stdio.h: Likewise.
64         * stdlib/stdlib.h: Likewise.
65         * string/string.h: Likewise.
66         * time/time.h: Likewise.
67         * wcsmbs/wchar.h: Likewise.
68         * wctype/wctype.h: Likewise.
69         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
70
71 2000-09-13  Andreas Jaeger  <aj@suse.de>
72
73         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
74         for no more entries.
75         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
76         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
77         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
78
79 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
80
81         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
82         constant since this is what clock_t is.
83         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
84         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
85         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
86         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
87
88         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
89         definitions are requested.
90
91 2000-09-13  Andreas Jaeger  <aj@suse.de>
92
93         * shlib-versions: libBrokenLocale needs minimal version for ia64,
94         sparc64 and sh to synch with libc.
95
96 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
97
98         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
99         (distribute): Add iso-2022-cn-ext.c.
100         Add definitions to compile the new module.
101         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
102         * iconvdata/iso-2022-cn-ext.c: New file.
103         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
104         ucs4_from_isoir165.  Increment input pointer if successful.
105
106         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
107
108         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
109
110 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
111
112         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
113         __syscall_getdents64 wrapper.
114
115         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
116
117 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
118
119         * iconvdata/gb18030.c: Many many changes.  Make consistent with
120         charmap and with itself.
121         * iconvdata/tst-tables.sh: Test GB18030.
122
123 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
124
125         * iconv/skeleton.c: Fix last patch, add missing parameter to
126         unaligned function call.
127
128 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
129
130         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
131         of decimal ellipsis.
132
133 2000-09-11  Bruno Haible <haible@clisp.cons.org>
134
135         * locale/programs/ld-collate.c (collate_read): Always initialize
136         error_section.next.
137
138 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
139
140         * locale/programs/ld-collate.c (collate_finish): Upper bound for
141         ruleidx is 128, not 256.
142
143 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
144
145         * locale/programs/ld-collate.c (collate_read): Correct check for
146         already inserted entries.
147
148 2000-09-10  Bruno Haible <haible@clisp.cons.org>
149
150         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
151         second try as well.
152
153 2000-09-10  Bruno Haible <haible@clisp.cons.org>
154
155         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
156         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
157
158 2000-09-10  Bruno Haible <haible@clisp.cons.org>
159
160         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
161         SAVE_RESET_STATE.
162
163 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
164
165         * iconvdata/utf-7.c: New file.
166         * iconvdata/gconv-modules (UTF-7): New module entries.
167         * iconvdata/Makefile (modules): Add UTF-7.
168         (distribute): Add utf-7.c.
169         * iconvdata/testdata/UTF-7: New file.
170         * iconvdata/testdata/UTF-7..UTF8: New file.
171         * iconvdata/TESTS (UTF-7): New entry.
172         * iconvdata/run-iconv-test.sh: Fix confusing output.
173
174 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
175
176         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
177
178 2000-09-10  David S. Miller  <davem@redhat.com>
179
180         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
181         frame pointer offset for non-fast path.
182
183 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
184
185         * locale/programs/3level.h (*_init): Initialize level1, level2,
186         and level3 as well.
187         (*_add): Remove a few unnecessary conditionals.
188
189 2000-09-05  Wolfram Gloger  <wg@malloc.de>
190
191         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
192         ensure usability of mutex as an `in use' flag.
193
194 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
195
196         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
197
198         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
199         ugly GMON_WEAK_START hack.
200         Patch by Philip Blundell <philb@gnu.org>.
201
202         * sysdeps/i386/i486/bits/string.h: Pretty printing.
203
204 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
205
206         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
207         and PPC_ICBI asm for broken compilers.
208         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
209
210 2000-09-09  Andreas Jaeger  <aj@suse.de>
211
212         * manual/message.texi (Advanced gettext functions): Fix typo.
213
214         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
215         strncpy prototype.
216
217 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
218
219         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
220         warnings.
221         * sysdeps/ia64/memccpy.S: Likewise.
222         Patches by Jim Wilson <wilson@redhat.com>.
223
224         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
225         before trying to read /proc.
226         Patch by Matt Wilson <msw@redhat.com>.
227         * include/sys/utsname.h: Declare __uname.
228         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
229         * sysdeps/mach/hurd/uname.c: Likewise.
230         * sysdeps/unix/syscalls.list: Likewise.
231
232         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
233         unloading a bit.
234
235 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
236
237         * posix/getopt.c (_getopt_internal): When long_only is set always
238         recognize conflicts just like before.
239
240 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
241
242         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
243
244 2000-09-08  Greg McGary  <greg@mcgary.org>
245
246         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
247         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
248         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
249
250 2000-09-08  Andreas Jaeger  <aj@suse.de>
251
252         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
253
254         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
255
256         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
257         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
258         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
259
260 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
261
262         * iconvdata/tst-tables.sh: Enable EUC-KR test.
263
264         * elf/dl-load.c (lose): Decrement _nl_loaded.
265         (_dl_map_object_from_fd): Don't try to dlopen executables.
266
267         * iconvdata/tst-tables.sh: Actually return with an error if
268         something goes wrong.
269         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
270         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
271
272         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
273
274         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
275         * iconvdata/tst-table-from.c: Include <string.h>.
276         (try): Correct cast in iconv call.
277
278         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
279         too.
280         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
281         (sysdep_routines): Remove dl-start.
282         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
283
284         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
285
286         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
287         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
288
289 2000-09-06  Andreas Schwab  <schwab@suse.de>
290
291         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
292
293 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
294
295         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
296
297         * scripts/config.sub: Strip out -unknown for Linux targets.
298         Patch by Scott Bambrough <scottb@netwinder.org>.
299
300         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
301         add one more test.
302
303 2000-09-07  Andreas Jaeger  <aj@suse.de>
304
305         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
306
307         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
308         syscalls.
309
310         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
311
312         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
313         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
314
315         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
316
317         * stdlib/tst-bsearch.c (main): Add more test cases.
318
319         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
320         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
321         Reported by GOTO Masanori <gotom@debian.or.jp>.
322
323 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
324
325         * posix/Makefile (tests): Add tst-dir.
326         (tst-dir-ARGS): New variable.
327         * posix/tst-dir.c: New file.
328
329 2000-09-07  Andreas Jaeger  <aj@suse.de>
330
331         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
332         (SYS_fcntl64): New.
333
334         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
335
336 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
337
338         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
339         use the hack with tryopen_o_directory to determine at runtime
340         whether it works.
341         * sysdeps/unix/sysv/linux/opendir.c: New file.
342         * sysdeps/unix/sysv/linux/kernel-features.h: Define
343         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
344
345         * catgets/Depend: New file.  Add intl.
346         * catgets/Makefile (tests): Add tst-catgets.
347         (generated): Remove de.msg.
348         (generated-dirs): Add de.
349         Add dependency if tst-catgets output on de/libc.cat.
350         * catgets/tst-catgets.c: New file.
351
352         * po/ja.po: New file.
353         * po/el.po: Update from translation team.
354
355         * wcsmbs/Depend: New file.
356         * wcsmbs/Makefile (tests): Add tst-btowc.
357         (tst-btowc-ENV): Define.
358         * wcsmbs/tst-btowc.c: New file.
359
360         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
361         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
362
363         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
364
365         * stdlib/Makefile (tests): Add tst-bsearch.
366         * stdlib/tst-bsearch.c: New file.
367
368         * posix/getopt.c (_getopt_internal): Don't recognize an option
369         name as ambiguous if it's a prefix for more than one name but the
370         other struct option values are identical.
371
372         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
373         Don't depend on visual inspection of the output file to recognize
374         errors.
375         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
376
377 2000-09-06  Andreas Jaeger  <aj@suse.de>
378
379         * sysdeps/alpha/soft-fp/Dist: New file.
380         * sysdeps/i386/soft-fp/Dist: New file.
381         * sysdeps/mips/mips64/soft-fp/Dist: New file.
382         * sysdeps/mips/soft-fp/Dist: New file.
383         * sysdeps/powerpc/soft-fp/Dist: New file.
384         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
385         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
386
387         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
388         Use sysdep_routines instead of routines to fix make dist failure.
389         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
390         out code).
391         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
392
393         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
394         sysdep_headers instead of headers for make dist.
395
396         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
397         Likewise.
398
399 2000-09-06  Andreas Schwab  <schwab@suse.de>
400
401         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
402
403 2000-09-06  Andreas Jaeger  <aj@suse.de>
404
405         * soft-fp/Makefile (distribute): Remove ChangeLog.
406
407         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
408         sysdep_routines instead of routines for make dist.
409
410 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
411
412         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
413         compatibility check for old stream and call _IO_wide in doubt.
414         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
415         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
416         needed tst for such an old structure and don't do anything.
417         * libio/freopen.c: Remove declaration of _IO_stdin_used.
418
419 2000-09-06  Andreas Jaeger  <aj@suse.de>
420
421         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
422         sysdep-dl-routines and sysdep_routines instead of rtld-routines
423         and dl-routines.
424
425         * soft-fp/ChangeLog: Merged with this file.
426
427 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
428
429         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
430
431         * soft-fp/Makefile (distribute): Add the math functions, too.
432
433         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
434
435 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
436
437         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
438         as a statement.
439
440         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
441         * soft-fp/sysdeps/powerpc/q_*: New files.
442
443 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
444
445         * stdio-common/vfprintf.c (process_string_arg): Handle precision
446         in wide char case correctly.  Don't allocate too long temporary
447         strings with alloca.
448
449         * stdio-common/Makefile (tests): Add tst-swprintf.
450         (tst-swprintf-ENV): New variable.
451         * stdio-common/tst-swprintf.c: New file.
452
453 2000-09-05  Andreas Jaeger  <aj@suse.de>
454
455         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
456         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
457         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
458
459 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
460
461         * configure.in: Strip out "unknown" from configuration names.
462
463 2000-09-05  Andreas Jaeger  <aj@suse.de>
464
465         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
466
467         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
468         * sysdeps/sparc/sparc32/Implies: Likewise.
469         * sysdeps/powerpc/Implies: Likewise.
470
471         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
472         * libio/oldiofgetpos64.c: Likewise.
473
474         * soft-fp/Makefile (distribute): Remove configure.
475
476         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
477
478         * soft-fp/configure: Remove.
479
480         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
481         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
482
483         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
484         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
485
486         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
487         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
488
489         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
490         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
491
492         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
493         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
494
495         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
496         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
497
498         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
499         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
500
501         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
502         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
503
504         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
505         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
506
507         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
508         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
509
510         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
511         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
512
513         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
514         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
515
516         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
517         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
518
519         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
520         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
521
522         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
523         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
524
525         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
526         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
527
528         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
529         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
530
531         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
532         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
533
534         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
535         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
536
537         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
538         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
539
540         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
541         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
542
543         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
544         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
545
546         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
547         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
548
549         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
550         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
551
552         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
553         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
554
555         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
556         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
557
558         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
559         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
560
561         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
562         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
563
564         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
565         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
566
567         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
568         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
569
570         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
571         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
572
573         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
574         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
575
576         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
577         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
578
579         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
580         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
581
582         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
583         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
584
585         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
586         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
587
588         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
589         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
590
591         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
592         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
593
594         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
595         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
596
597         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
598         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
599
600         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
601         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
602
603         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
604         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
605
606         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
607         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
608
609         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
610         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
611
612         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
613         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
614
615         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
616         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
617
618         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
619         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
620
621         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
622         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
623
624         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
625         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
626
627         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
628         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
629
630         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
631         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
632
633         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
634         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
635
636         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
637         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
638
639         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
640         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
641
642         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
643         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
644
645         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
646         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
647
648         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
649         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
650
651         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
652         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
653
654         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
655         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
656
657         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
658         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
659
660         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
661         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
662
663         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
664         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
665
666         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
667         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
668
669         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
670         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
671
672         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
673         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
674
675         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
676         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
677
678         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
679         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
680
681         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
682         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
683
684         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
685         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
686
687         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
688         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
689
690         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
691         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
692
693         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
694         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
695
696         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
697         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
698
699         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
700         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
701
702         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
703         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
704
705         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
706         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
707
708         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
709         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
710
711         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
712         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
713
714         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
715         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
716
717         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
718         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
719
720         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
721         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
722
723         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
724         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
725
726         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
727         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
728
729         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
730         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
731
732         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
733         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
734
735         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
736         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
737
738         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
739         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
740
741         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
742         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
743
744         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
745         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
746
747         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
748         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
749
750         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
751         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
752
753         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
754         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
755
756         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
757         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
758
759         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
760         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
761
762         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
763         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
764
765         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
766         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
767
768         * soft-fp/sysdeps/powerpc/Versions: Move from here...
769         * sysdeps/powerpc/soft-fp/Versions: ... to here.
770
771         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
772         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
773
774         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
775         change symbol version.
776         * libio/oldiofgetpos64.c: Likewise.
777         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
778
779         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
780         typo.
781         Reported by dyky@kondara.org, closes PR libc/1886.
782
783         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
784         libc/1880.
785
786 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
787
788         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
789         script when ^C is hit.
790
791         * locale/programs/localedef.c (construct_output_path): Correct
792         computation of endp after asprintf.
793         * locale/programs/locfile.c (write_locale_data): Don't add extra
794         slash in filename.
795
796 2000-09-05  Andreas Jaeger  <aj@suse.de>
797
798         * scripts/config.guess: New upstream version.
799         * scripts/config.sub: Likewise.
800         * manual/texinfo.tex: Likewise.
801
802 2000-09-04  Andreas Schwab  <schwab@suse.de>
803
804         * elf/Makefile (all-dl-routines): New variable.
805         (elide-routines.os): Use it instead of $(dl-routines).
806         (all-rtld-routines): New variable.
807         (extra-objs): Use it instead of $(rtld-routines).
808         ($(objpfx)dl-allobjs.os): Likewise.
809         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
810         sysdep-dl-routines and sysdep_routines instead of rtld-routines
811         and dl-routines.
812
813 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
814
815         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
816         Set fname to NULL if the module wasn't found.
817
818 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
819
820         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
821         true if trans->name already ends in ".so".
822
823 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
824
825         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
826         void.
827         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
828         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
829         (__gconv_release_shlib): Change return type to void.
830         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
831         step->__counter here.
832         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
833         if the reference is zero.
834         (release_step): New function.
835         (gen_steps): Always initialize the __counter to 1. Use release_step.
836         Don't call the destructor on the step whose initializer failed.
837         (increment_counter): Use release_step. Don't normally run destructors
838         here.
839         (__gconv_close_transform): Use release_step.
840
841 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
842
843         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
844         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
845
846 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
847
848         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
849         If the first byte is 0x8E, don't ask for 4 bytes until it has been
850         verified that the second byte is valid. Leave it to cns11643_to_ucs4
851         to check for incomplete input.
852         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
853         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
854         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
855         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
856         0x9f9d..0x9fa5.
857         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
858         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
859         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
860         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
861         upto index 0x0052.
862
863 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
864
865         * iconv/gconv_db.c (find_derivation): Always use the least-cost
866         solution.
867
868 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
869
870         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
871         are invalid.
872
873 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
874
875         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
876         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
877         U+007E.
878
879 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
880
881         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
882
883 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
884
885         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
886
887 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
888
889         * iconvdata/tst-tables.sh: New file.
890         * iconvdata/tst-table.sh: New file.
891         * iconvdata/tst-table-from.c: New file.
892         * iconvdata/tst-table-to.c: New file.
893         * iconvdata/tst-table-charmap.sh: New file.
894         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
895         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
896         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
897         ISIRI-3342.irreversible, SJIS.irreversible.
898         (tests): Add dependency on tst-tables.out.
899         (tst-tables.out, tst-tables-clean): New rules.
900         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
901         * iconvdata/ISIRI-3342.irreversible: New file.
902         * iconvdata/EUC-JP.irreversible: New file.
903         * iconvdata/SJIS.irreversible: New file.
904
905 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
906
907         * manual/locale.texi (General Numeric): Update description of
908         representation of the grouping information in the locale data.
909         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
910
911 2000-09-04  Andreas Jaeger  <aj@suse.de>
912
913         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
914         * iconv/iconv_prog.c (options): Fix typo.
915         Reported by dyky@kondara.org, closes PR libc/1885.
916
917 2000-09-04  Andreas Jaeger  <aj@suse.de>
918
919         * sysdeps/generic/fegetenv.c: It's __fegetenv.
920         Reported by Rob Levin <lilo@transvirtual.com>.
921
922 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
923
924         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
925         to the typedefs of __timezone_ptr_t.
926         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
927
928 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
929
930         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
931         the loop.
932
933 2000-09-01  H.J. Lu  <hjl@gnu.org>
934
935         * Makeconfig (built-program-cmd): Don't use the dynamic linker
936         to run a binary if it is in $(tests-static).
937
938         * Rules (binaries-static): Add $(tests-static).
939
940 2000-09-02  Andreas Jaeger  <aj@suse.de>
941
942         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
943
944         * libio/fmemopen.c (fmemopen_close): Revert one part of last
945         patch.
946
947 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
948
949         * iconvdata/big5hkscs.c: Regenerated from charmap.
950         * iconvdata/testdata/BIG5HKSCS: Regenerated.
951         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
952
953         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
954         statement.  General cleanup.
955
956 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
957
958         * wctype/wcfuncs.c (iswblank): New function.
959         * wctype/wcfuncs_l.c (__iswblank_l): New function.
960         * wctype/wcextra.c: Remove file.
961         * wctype/wcextra_l.c: Remove file.
962         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
963
964 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
965
966         * locale/programs/ld-collate.c (collate_output): Remove redundant
967         assert call.
968         * string/strcoll.c: Likewise.
969         * string/strxfrm.c: Include assert.h.  Add assert calls like in
970         string/strcoll.c.
971
972 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
973
974         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
975         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
976         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
977         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
978         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
979         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
980         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
981         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
982         _NL_CTYPE_GAP5/6 respectively.
983
984         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
985         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
986         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
987         Don't initialize __ctype_names and __ctype_width.
988         * wctype/cname-lookup.h: Remove file.
989         * wctype/Makefile (distribute): Remove cname-lookup.h.
990         * wctype/wchar-lookup.h: Include stdint.h.
991         * wctype/wctype.c (__wctype): Assume new locale format.
992         * wctype/wctype_l.c (__wctype_l): Likewise.
993         * wctype/iswctype.c: Don't include cname-lookup.h.
994         (__iswctype): Assume new locale format.
995         * wctype/iswctype_l.c: Don't include cname-lookup.h.
996         (__iswctype_l): Assume new locale format.
997         * wctype/wctrans.c: Don't include ctype.h.
998         (wctrans): Assume new locale format.
999         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1000         * wctype/towctrans.c: Don't include cname-lookup.h.
1001         (__towctrans): Assume new locale format.
1002         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1003         (__towctrans_l): Assume new locale format.
1004         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1005         localeinfo.h instead.
1006         (__NO_WCTYPE): Remove unused macro.
1007         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1008         declarations.
1009         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1010         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1011         (towlower, towupper): Likewise.
1012         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1013         localeinfo.h instead.
1014         (__NO_WCTYPE): Remove unused macro.
1015         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1016         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1017         __iswxdigit_l): Assume new locale format.
1018         (__towlower_l, __towupper_l): Likewise.
1019         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1020         (__ctype32_b): Remove declaration.
1021         (internal_wcwidth): Assume new locale format.
1022         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1023         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1024         to map32_b, rename width_3level to width.
1025         (ctype_output): Always create new locale format. Don't emit
1026         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1027         (allocate_arrays): Always create new locale format.
1028
1029         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1030         * locale/weightwc.h (findidx): Assume new locale format.
1031         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1032         names.
1033         * string/strxfrm.c (wcsxfrm): Likewise.
1034         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1035         local variable collseq to 'const char *'.
1036         (SUFFIX): Don't use, don't undefine.
1037         * posix/fnmatch.c: Remove SUFFIX definition.
1038         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1039         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1040         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1041         (collate_finish): Always create new locale format. Remove local
1042         variables min_total, act_size.
1043         (collate_output): Always create new locale format. Remove local
1044         variables table_size, names, tablewc. Rename tablewc_3level to
1045         tablewc.
1046
1047 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1048
1049         * locale/programs/ld-collate.c (obstack_int32_grow,
1050         obstack_int32_grow_fast): New inline functions.
1051         (output_weightwc, collate_output): Use them where possible.
1052
1053 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1054
1055         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1056         patch (_mode -> _flags).
1057
1058         * libio/Makefile (headers): Add stdio_ext.h.
1059         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1060         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1061         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1062         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1063         __fsetlocking, and _flushlbf.
1064         * libio/__fbufsize.c: New file.
1065         * libio/__flbf.c: New file.
1066         * libio/__fpending.c: New file.
1067         * libio/__fpurge.c: New file.
1068         * libio/__freadable.c: New file.
1069         * libio/__freading.c: New file.
1070         * libio/__fsetlocking.c: New file.
1071         * libio/__fwritable.c: New file.
1072         * libio/__fwriting.c: New file.
1073         * libio/stdio_ext.h: New file.
1074         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1075         * libio/libio.h (_IO_USER_LOCK): Define.
1076         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1077         test _IO_USER_LOCK flag first.
1078
1079         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1080         malloc fails.
1081
1082 2000-09-01  Andreas Jaeger  <aj@suse.de>
1083
1084         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1085
1086         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1087
1088 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1089
1090         * math/Makefile (tests): Add tst-defintions.
1091         * math/tst-definitions.c: New file.
1092
1093         * stdlib/Makefile (headers): Add bits/wchar.h.
1094         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1095         * sysdeps/generic/bits/wchar.h: New file.
1096         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1097         file to define WCHAR_MIN and WCHAR_MAX.
1098         Change UINT*8_MAX and UIN*16_MAX value to type int.
1099         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1100         file to define WCHAR_MIN and WCHAR_MAX.
1101         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1102         int values.
1103         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1104         * sysdeps/generic/bits/mathdef.h: Likewise.
1105         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1106         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1107         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1108         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1109         * locale/locale.h (struct lconv): Add __ prefix to the new members
1110         if not C99.
1111         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1112         imaxdiv optimizations.
1113         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1114         * sysdeps/wordsize-64/ldiv.c: Likewise.
1115         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1116         const fenv_t*.
1117         * sysdeps/generic/bits/fenv.h: Likewise.
1118         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1119         * sysdeps/ia64/bits/fenv.h: Likewise.
1120         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1121         * sysdeps/mips/bits/fenv.h: Likewise.
1122         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1123         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1124         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1125
1126         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1127         * inet/ruserpass.c: Likewise.
1128         * catgets/open_catalog.c: Likewise.
1129         * intl/loadmsgcat.c: Likewise.
1130         * io/getdirname.c: Likewise.
1131         * locale/loadlocale.c: Likewise.
1132         * misc/getusershell.c: Likewise.
1133         * stdlib/canonicalize.c: Likewise.
1134         * sysdeps/posix/euidaccess.c: Likewise.
1135         * sysdeps/posix/isfdtype.c: Likewise.
1136         * sysdeps/posix/posix_fallocate.c: Likewise.
1137         * sysdeps/posix/tempname.c: Likewise.
1138         * sysdeps/unix/grantpt.c: Likewise.
1139         * sysdeps/unix/opendir.c: Likewise.
1140         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1141         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1142         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1143         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1144         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1145         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1146         * sysvipc/ftok.c: Likewise.
1147         * time/getdate.c: Likewise.
1148
1149         * time/getdate.c: Add extra access test.
1150
1151 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1152
1153         * version.h (VERSION): Bump to 2.1.93.
1154
1155         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1156         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1157
1158         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1159         Make this a new rule depending on tst-gettext.out and run mtrace.
1160         * intl/tst-gettext.c: Call mtrace.
1161         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1162
1163         * elf/dl-reloc.c: Add a few more __builtin_expect.
1164
1165         * configure.in: Remove --with-gettext option.
1166
1167         * intl/dcigettext.c (free_mem): Correct freeing of
1168         _nl_domain_bindings list.
1169
1170         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1171         allocated memory.
1172
1173         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1174
1175         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1176
1177         * stdio-common/itoa-digits.c: Move upper digits to...
1178         * stdio-common/itoa-udigits.c: ...here.  New file.
1179         * stdio-common/Makefile (routines): Add itoa-udigits.
1180
1181         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1182         relocate ld.so don't add supprt for relocations which should not
1183         appear in ld.so.
1184
1185         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1186         __secure_getenv.  Instead test __libc_enable_secure once.
1187
1188         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1189
1190 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1191
1192         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1193         whether the new record should be freed if it's a duplicate.
1194         (add_module): Adjust insert_module call.
1195         (__gconv_read_conf): Likewise.
1196         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1197         mtrace-tst-loading.
1198         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1199
1200         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1201         _dl_all_init_dirs.
1202         * include/link.h (struct r_search_path_struct): New.
1203         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1204         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1205         _dl_all_init_dirs.
1206         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1207         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1208         added at startup time.
1209         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1210         contains element to remember fact that we can free memory.
1211         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1212         (_dl_init_all_dirs): New variable.
1213         (fillin_rpath): Save one malloc call.
1214         (decompose_rpath): Change interface.  New first parameter points to
1215         r_search_path_struct.
1216         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1217         deletable.  Set _dl_init_all_paths value.
1218         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1219         parameter replaced with r_search_path_struct *.  Information about
1220         freeing now contained in r_search_path_struct.
1221         (_dl_map_object): Adjust for above changes.
1222
1223         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1224
1225         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1226         when adding new entries.
1227
1228         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1229         since the object being loaded can be unloaded.
1230
1231         * iconvdata/Makefile (tests): Add tst-loading.
1232         * iconvdata/tst-loading.c: New file.
1233
1234 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1235
1236         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1237         When comparing a char with an int, always cast the char to
1238         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1239         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1240
1241 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1242
1243         * time/strftime.c (my_strftime): Add compatibility code for use
1244         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1245
1246         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1247         return 0 for success but always < 0 on failure.
1248
1249         * nss/getXXbyYY_r.c: Define result to *result before including
1250         digits_dots.c.
1251
1252 2000-08-30  Andreas Jaeger  <aj@suse.de>
1253
1254         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1255
1256 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1257
1258         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1259         official file.
1260         * iconvdata/TESTS: Add BIG5HKSCS entry.
1261         * iconvdata/testdata/BIG5HKSCS: New file.
1262         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1263
1264         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1265         always true.
1266
1267         * libio/iogetline.c: Set mode before the loop in case n==0.
1268         * libio/iogetwline.c: Likewise.
1269
1270 2000-08-29  H.J. Lu  <hjl@gnu.org>
1271
1272         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1273         of fp->_mode < 0.
1274         (_IO_new_file_overflow): Likewise.
1275         * libio/genops.c (_IO_flush_all): Likewise.
1276         * libio/ioftell.c (_IO_ftell): Likewise.
1277
1278 2000-08-29  Akira Higuchi  <a@kondara.org>
1279
1280         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1281         and __end_fct fields of struct __gconv_step.
1282         * iconv/Makefile (tests): Add iconv-bug2.
1283         * iconv/iconv-bug2.c: New file.
1284
1285         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1286         instead of 'inptr - inend' to ksc5601_to_ucs4.
1287
1288         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1289
1290         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1291         character or shift sequence is found at the end of the input
1292         string, return__GCONV_INCOMPLETE_INPUT instead of
1293         __GCONV_EMPTY_INPUT.
1294         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1295         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1296
1297         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1298         __GCONV_ILLEGAL_INPUT for 8bit characters.
1299
1300 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1301
1302         * signal/signal.h (sigpause): Move __THROW before __asm__.
1303
1304         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1305         names don't match don't return.
1306         Patch by Olaf Kirch <okir@flash.lst.de>.
1307
1308 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1309
1310         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1311
1312 2000-08-27  H.J. Lu  <hjl@gnu.org>
1313
1314         * posix/Makefile (otherlibs): Add for building with static-nss
1315         for "make check".
1316
1317 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1318
1319         * libio/stdio.h: Add fmemopen prototype.
1320
1321 2000-08-25  Andreas Jaeger  <aj@suse.de>
1322
1323         * libio/Makefile (routines): Add fmemopen.
1324         (tests): Add test-fmemopen.
1325         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1326         * libio/test-fmemopen.c: New file.
1327         * libio/fmemopen.c: New file.
1328         Patches by Hanno Mueller <kontakt@hanno.de>.
1329
1330 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1331
1332         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1333         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1334
1335         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1336         to avoid crashing statically linked applications.
1337
1338 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1339
1340         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1341         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1342
1343         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1344         If the result is fits in the buffer, copy only as many bytes as needed.
1345
1346         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1347         buffer after copying numbuf into it.
1348         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1349
1350 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1351
1352         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1353         the result.  When string_len < len, don't clear the rest of the buffer.
1354
1355 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1356
1357         Support for new LC_COLLATE format.
1358         * locale/coll-lookup.h: New file.
1359         * locale/weightwc.h (findidx): When size == 0, call
1360         collidx_table_lookup.
1361         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1362         * wcsmbs/wcsxfrm.c: Likewise.
1363         * posix/fnmatch.c: Likewise.
1364         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1365         collseq_table_lookup.
1366         * locale/programs/3level.h: New file.
1367         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1368         by including "3level.h".
1369         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1370         collseq_table): New types, defined by including "3level.h".
1371         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1372         (encoding_mask, encoding_byte): Remove.
1373         (utf8_encode): Use simple shifts instead.
1374         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1375         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1376         (collate_output): New local variable tablewc_3level. When
1377         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1378         tablewc_3level instead of tablewc. Change format of TABLEWC and
1379         COLLSEQWC entries written to the file.
1380         * locale/C-collate.c (collseqwc): Change format.
1381         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1382         of COLLSEQWC.
1383         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1384
1385 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1386
1387         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1388         (locale_ctype_t): New charnames_idx field.
1389         (ctype_startup): Initialize charnames_idx field.
1390         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1391
1392 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1393
1394         * locale/C-ctype.c: Switch to new locale format.
1395         (_nl_C_LC_CTYPE_names): Remove array.
1396         (STRUCT_CTYPE_CLASS): New macro.
1397         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1398         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1399         New three-level tables.
1400         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1401         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1402         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1403         12 class tables and 2 map tables at the end.
1404         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1405         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1406         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1407         New declarations.
1408         (b): Remove trailing semicolon.
1409         (__ctype_names, __ctype_width): Don't initialize.
1410         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1411
1412 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1413
1414         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1415         is guaranteed to be allocated with the same malloc() and may be
1416         passed to free().
1417         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1418         been set to empty by an earlier open_path call, don't pass it again.
1419
1420 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1421
1422         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1423         we are not optimizing.
1424
1425         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1426         inclusion.
1427
1428         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1429         really match EOF.
1430         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1431
1432 2000-08-28  Andreas Jaeger  <aj@suse.de>
1433
1434         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1435
1436 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1437
1438         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1439         getpeername.  Use ISO C style function definition.
1440         (getpeername): Provide weak alias.
1441         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1442         setrlimit.  Use ISO C style function definition.
1443         (setrlimit): Provide weak alias.
1444
1445 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1446
1447         * shlib-versions: Add a rule for S/390 to the libm version list.
1448         * sysdeps/s390/Versions: New file.
1449         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1450         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1451         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1452         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1453         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1454         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1455         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1456         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1457         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1458         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1459         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1460         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1461         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1462         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1463         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1464         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1465         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1466         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1467
1468 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1469
1470         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1471         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1472
1473         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1474         * elf/dl-close.c (_dl_close): Print debug message if object is not
1475         unloaded.
1476         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1477         returning to caller.
1478
1479         * po/zh.po: Renamed to...
1480         * po/zh_TW.po: ...this.
1481
1482 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1483
1484         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1485
1486         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1487         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1488         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1489         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1490
1491 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1492
1493         * locale/programs/ld-collate.c (insert_weights): Also update
1494         backpointer of next element.
1495         (collate_read): Allow definition of new collation symbols in stage 2.
1496         Symbol after reorder-after can be UCS4 value.
1497         Allow reordering of collation symbols and elements.
1498         Do not only move reorder entry in new position.  Instead call
1499         insert_weight to do this and read the weights.
1500
1501         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1502
1503         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1504         to determine invalid locale name.
1505         * locale/findlocale.c (_nl_find_locale): Likewise.
1506
1507         * posix/annexc.c: Correct test for unavailable feature.
1508
1509         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1510         __inline.
1511
1512 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1513
1514         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1515         syscall.
1516
1517         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1518         (sysdep_routines): Add oldgetrlimit64.
1519
1520         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1521         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1522         (tests): Add unload, reldep, reldep2, and reldep3.
1523         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1524         and reldepmod4.
1525         Add rules to build and run unload, reldep, reldep2, and reldep3.
1526         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1527         Don't create relocation dependency if it is nonzero.
1528         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1529         can never happen here.
1530         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1531         Don't create relocation dependency if it is nonzero.
1532         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1533         stuff.  This can never happen here.
1534         * sysdeps/generic/ldsodefs.h: Change prototypes.
1535         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1536         _dl_lookup_up and _dl_lookup_versioned_symbol.
1537         (RESOLV): Likewise.
1538         * elf/dl-runtime.c (fixup): Likewise.
1539         (profile_fixup): Likewise.
1540         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1541         _dl_lookup_symbol.
1542         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1543         * elf/rtld.c (dl_main): Likewise.
1544         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1545         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1546         and pass down the caller map.
1547         (_dl_vsym): Likewise.
1548         * elf/reldep.c: New file.
1549         * elf/reldep2.c: New file.
1550         * elf/reldep3.c: New file.
1551         * elf/reldepmod1.c: New file.
1552         * elf/reldepmod2.c: New file.
1553         * elf/reldepmod3.c: New file.
1554         * elf/reldepmod4.c: New file.
1555         * elf/unload.c: New file.
1556         * elf/unloadmod.c: New file.
1557
1558         * elf/do-lookup.h: Remove unused undef_name parameter.
1559         * elf/dl-lookup.c: Adjust callers.
1560
1561 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1562
1563         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1564         irreversible in recursive call of conversion function to signal that
1565         no error handling is wanted.
1566         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1567         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1568         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1569         recursive error handling call, otherwise to &lirreversible.  Use it
1570         for calls to conversion functions.
1571         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1572         transliterating.
1573         (ucs4_internal_loop_unaligned): Likewise.
1574         (ucs4le_internal_loop): Likewise.
1575         (ucs4le_internal_loop_unaligned): Likewise.
1576
1577 2000-08-25  Greg McGary  <greg@mcgary.org>
1578
1579         * sysdeps/i386/memchr.S: Check high bound against chars
1580         actually scanned.
1581         * sysdeps/i386/memcmp.S: Likewise.
1582         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1583         account for pointers that lie one beyond end-of-buffer.
1584
1585 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1586
1587         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1588         * elf/nodelete.c (fini_ran): New global variable.
1589         (do_test): Before every dlclose call clear fini_ran and test
1590         afterwards that it is not set by the destructors.
1591         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1592         * elf/nodelmod2.c: Likewise.
1593         * elf/nodelmod4.c: Likewise.
1594
1595 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1596
1597         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1598         getrlimit to the list.
1599
1600 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1601
1602         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1603         long double format so use ldbl-96 instead of ldbl-128.
1604
1605 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1606
1607         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1608         even if bits 10 a 11 are non-zero.
1609         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1610
1611         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1612         included before building gnu/lib-names.h
1613         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1614
1615         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1616         marked DF_1_NODELETE.
1617
1618         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1619         since we call sigaction in the child.
1620
1621 2000-08-25  Andreas Jaeger  <aj@suse.de>
1622
1623         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1624         gconv-modules.
1625
1626 2000-08-25  Andreas Jaeger  <aj@suse.de>
1627
1628         * manual/arith.texi (Control Functions): Clarify possible
1629         arguments.  Closes PR libc/1856.
1630
1631 2000-08-24  H.J. Lu  <hjl@gnu.org>
1632
1633         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1634         * malloc/Makefile (tests): Likewise.
1635
1636 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1637
1638         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1639
1640 2000-08-24  Andreas Jaeger  <aj@suse.de>
1641
1642         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1643         only if LIBGD is available.
1644
1645 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1646
1647         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1648         problems with now restrict parameter types.
1649         (convaddr4to6): Likewise.
1650
1651 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1652
1653         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1654         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1655         * sysdeps/s390/fpu/fegetexcept.c: New file.
1656         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1657         FPC_VALID_MASK.
1658
1659 2000-08-24  Andreas Jaeger  <aj@suse.de>
1660
1661         * malloc/Makefile (extra-objs): Add memusagestat.o.
1662         (generated): Added memusage and memusagestat for make clean.
1663
1664         * libio/tst_putwc.c (do_test): Delete temporary file.
1665         Move inclusion of test-skeleton to front to have prototype for
1666         add_temp_file.
1667
1668         * posix/Makefile (generated): Add wordexp-tst.out.
1669
1670 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1671
1672         * resolv/res_hconf.c (free_mem): Remove not needed if.
1673
1674         * time/tzset.c (free_mem): New function.
1675         * string/strsignal.c (free_mem): New function.
1676         * inet/inet_ntoa.c (free_mem): New function.
1677         * sunrpc/clnt_perr.c (free_mem): New function.
1678
1679 2000-08-24  Andreas Jaeger  <aj@suse.de>
1680
1681         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1682         * sysdeps/unix/sysv/syscalls.list: Likewise.
1683
1684         * posix/unistd.h: Move internal prototypes from here ...
1685         * include/unistd.h: ... to here.
1686
1687         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1688
1689 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1690
1691         * grp/initgroups.c (initgroups): Deallocate groups array.
1692         Reported by jani.raiha@sonera.com [PR libc/1868].
1693
1694         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1695         * sysdeps/alpha/Dist: Likewise.
1696
1697 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1698
1699         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1700         destructor).  Reported by Solar Designer <solar@false.com>.
1701
1702         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1703         avoid adding double slashes.
1704
1705 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1706
1707         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1708         out of the __REDIRECT macro.
1709
1710 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1711
1712         * stdio-common/vfscanf.c: Add %F format support.
1713
1714         * locale/programs/ld-ctype.c (ctype_output): Make sure
1715         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1716         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1717         (ctype_read): Enable returning of wide character strings for reading
1718         transliteration information.
1719
1720 2000-08-23  Andreas Jaeger  <aj@suse.de>
1721
1722         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1723         Use static __inline instead of _EXTERN_INLINE.
1724
1725         * misc/sys/select.h: Move prototypes of __select from here ...
1726         * include/sys/select.h: ... to here.
1727
1728         * socket/sys/socket.h: Move prototypes of __send and __connect
1729         from here....
1730         * include/sys/socket.h: ... to here.
1731
1732         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1733         lr_error.
1734
1735 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1736
1737         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1738         __setrlimit as strong name. Takes only 2 arguments.
1739
1740         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1741         takes only 2 arguments.
1742
1743 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1744
1745         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1746
1747         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1748
1749 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1750
1751         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1752         default_missing character being specified, pick the first
1753         representable.
1754
1755 2000-08-23  Andreas Jaeger  <aj@suse.de>
1756
1757         * include/wchar.h: Add some pure attributes.
1758
1759         * time/time.h: Add const attribute for dysize.
1760
1761         * include/stdlib.h: Add malloc attribute to __posix memalign.
1762
1763         * stdlib/stdlib.h: Add some pure and malloc attributes.
1764         * wcsmbs/wchar.h: Likewise.
1765
1766         * dirent/dirent.h: Add some pure attributes.
1767         * include/dirent.h: Likewise.
1768
1769 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1770
1771         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1772         on 64bit arches.
1773
1774 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1775
1776         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1777         missing buffer size checks.
1778
1779 2000-08-23  Andreas Jaeger  <aj@suse.de>
1780
1781         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1782         strong name.
1783         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1784
1785         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1786         otherwise __LINUX_KERNEL_VERSION might not be defined.
1787         (MIN): Define if not already defined.
1788
1789 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1790
1791         * stdio-common/vfprintf.c: Handle %F format.
1792         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1793         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1794
1795         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1796
1797         * po/zh.po: New file.
1798
1799         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1800         enough room in target buffer.
1801         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1802         * iconvdata/bug-iconv1.c: New file.
1803         * iconvdata/Makefile (tests): Add bug-iconv1.
1804
1805         * locale/iso-4217.def: Update entry for Nicaragua.
1806
1807 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1808
1809         * hurd/hurdsig.c: Rearrange headers a bit.
1810         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1811         when cthreads is being used.
1812
1813 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1814
1815         * elf/Makefile (distribute): Add dl-osinfo.h.
1816         * sysdeps/generic/dl-osinfo.h: New file.
1817         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1818         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1819         if defined.
1820         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1821         only for !SHARED case.  Get the code from dl-osinfo.h.
1822
1823         * stdlib/random_r.c: Cleanups.
1824         * stdlib/tst-random.c: New file.
1825         * stdlib/Makefile (tests): Add tst-random.
1826         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1827
1828 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1829
1830         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1831         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1832         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1833         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1834
1835 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1836
1837         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1838         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1839         (__syscall__sysctl): Add.
1840
1841 2000-08-21  Andreas Jaeger  <aj@suse.de>
1842
1843         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1844         libc/1864).
1845         * stdlib/tst-strtoll.c: Likewise.
1846
1847 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1848
1849         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1850         correctly.
1851         (__initstate_r): Set errno on error.
1852         (__random_r): Likewise.
1853         (__setstate_r): Correct offset when computing
1854         new rptr and fptr.  Test for arg_state being NULL.
1855         Reported by Michael Fischer <fischer@cs.yale.edu>.
1856
1857         * posix/regex.h: Add macro definitions to allow compiling outside
1858         glibc.
1859
1860         * sysdeps/i370/Implies: Removed.
1861         * sysdeps/mvs/Implies: Removed.
1862
1863         * catgets/catgets.c (catopen): Filter out env_var values with / if
1864         necessary.
1865
1866         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1867         locale name after all getenvs.
1868
1869         * configure.in: Allow sed versions like 3.02.8.
1870         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1871
1872 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1873
1874         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1875
1876 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1877
1878         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1879         of gethostbyname2_r call.
1880
1881         * intl/locale.alias: Add aliases for Korean.
1882
1883 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1884
1885         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1886         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1887         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1888         * sysdeps/s390/fpu/fegetenv.c: New file.
1889         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1890         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1891         * sysdeps/s390/fpu/fenv_libc.h: New file.
1892         * sysdeps/s390/fpu/fesetenv.c: New file.
1893         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1894         * sysdeps/s390/fpu/feupdateenv.c: New file.
1895         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1896         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1897         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1898         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1899         * sysdeps/s390/fpu/ftestexcept.c: New file.
1900         * sysdeps/s390/fpu/libm-test-ulps: New file.
1901         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1902         * sysdeps/s390/initfini.c: New file.
1903         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1904         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1905         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1906         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1907         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1908         sys/procfs.h as proposed by Mark Kettenis.
1909         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1910
1911 2000-08-21  Andreas Jaeger  <aj@suse.de>
1912
1913         * include/poll.h: Include include/sys/poll.h to get __poll
1914         declaration.
1915
1916         * io/sys/poll.h: Move __poll declaration from here...
1917         * include/sys/poll.h: ...to here.
1918
1919         * include/sys/socket.h (__getpeername): Add declaration.
1920
1921         * include/wchar.h (__vswprintf): Add declaration.
1922
1923         * include/stdio.h (__flockfile): Add declaration.
1924         (__funlockfile): Likewise.
1925
1926 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1927
1928         * misc/sys/cdefs.h: Define __restrict_arr.
1929         * include/sys/time.h: Add restrict where required by AGd4.
1930         * inet/arpa/inet.h: Likewise.
1931         * io/sys/stat.h: Likewise.
1932         * io/sys/statvfs.h: Likewise.
1933         * misc/search.h: Likewise.
1934         * misc/sys/select.h: Likewise.
1935         * posix/glob.h: Likewise.
1936         * posix/regex.h: Likewise.
1937         * posix/spawn.h: Likewise.
1938         * posix/unistd.h: Likewise.
1939         * rt/aio.h: Likewise.
1940         * signal/signal.h: Likewise.
1941         * socket/sys/socket.h: Likewise.
1942         * stdlib/ucontext.h: Likewise.
1943         * streams/stropts.h: Likewise.
1944         * string/string.h: Likewise.
1945         * time/time.h: Likewise.
1946         * time/sys/time.h: Likewise.
1947
1948         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
1949         and posix_spawnattr_setscheparam.
1950
1951         * libio/stdio.h: Make cuserid prototype again available for all
1952         XPG versions.
1953
1954         * argp/argp-help.c: Unify use of function aliases to make more compact
1955         PLT.
1956         * include/libintl.h: Likewise.
1957         * inet/rcmd.c: Likewise.
1958         * intl/dcigettext.c: Likewise.
1959         * libio/iofputws.c: Likewise.
1960         * libio/iofputws_u.c: Likewise.
1961         * libio/iogetwline.c: Likewise.
1962         * libio/swprintf.c: Likewise.
1963         * malloc/malloc.c: Likewise.
1964         * nss/digits_dots.c: Likewise.
1965         * posix/fnmatch.c: Likewise.
1966         * posix/spawn_faction_addclose.c: Likewise.
1967         * posix/spawn_faction_adddup2.c: Likewise.
1968         * posix/spawn_faction_addopen.c: Likewise.
1969         * posix/spawni.c: Likewise.
1970         * posix/wordexp.c: Likewise.
1971         * posix/spawni.c: Likewise.
1972         * resolv/res_hconf.c: Likewise.
1973         * resolv/res_init.c: Likewise.
1974         * shadow/lckpwdf.c: Likewise.
1975         * signal/sighold.c: Likewise.
1976         * signal/sigrelse.c: Likewise.
1977         * stdio-common/printf-parse.h: Likewise.
1978         * stdio-common/printf-prs.c: Likewise.
1979         * stdio-common/printf_fp.c: Likewise.
1980         * stdio-common/vfprintf.c: Likewise.
1981         * stdio-common/vfscanf.c: Likewise.
1982         * stdlib/rpmatch.c: Likewise.
1983         * sunrpc/create_xid.c: Likewise.
1984         * sunrpc/key_call.c: Likewise.
1985         * sysdeps/generic/setrlimit64.c: Likewise.
1986         * sysdeps/generic/utmp_file.c: Likewise.
1987         * sysdeps/generic/vlimit.c: Likewise.
1988         * sysdeps/posix/posix_fallocate.c: Likewise.
1989         * sysdeps/posix/posix_fallocate64.c: Likewise.
1990         * sysdeps/posix/sigpause.c: Likewise.
1991         * sysdeps/posix/sigset.c: Likewise.
1992         * sysdeps/unix/grantpt.c: Likewise.
1993         * sysdeps/unix/bsd/ualarm.c: Likewise.
1994         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1995         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
1996         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1997         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
1998         * time/strftime.c: Likewise.
1999         * wcsmbs/wcscoll.c: Likewise.
2000         * wcsmbs/wcsxfrm.c: Likewise.
2001
2002         * time/tst-getdate.c (main): Make error messages more human readable.
2003
2004         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2005         postinc/predec instruction.
2006         (_FPU_SETCW): Likewise.
2007         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2008
2009 2000-08-20  Andreas Jaeger  <aj@suse.de>
2010
2011         * time/tst-getdate.c (main): Increase error in case of wrong
2012         conversion.
2013         Fix typo in test case.
2014
2015 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2016
2017         * ctype/ctype.h (isblank): Make available if ISO C99.
2018         * wctype/wctype.h (iswblank): Make available if ISO C99.
2019         * math/math.h (signgam): Don't make available if ISO C99.
2020         * math/tgmath.h (tgamma): Renamed from gamma.
2021         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2022
2023         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2024         Pretty printing.
2025         * intl/plural.y (new_exp): Take number of optional parameters in
2026         second parameter.  Test for correct number of parameters and free
2027         correctly in case of failure.  Adjust all callers.
2028         (yylex): Allow ';' as terminator character.
2029
2030 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2031
2032         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2033         walt_digits.
2034
2035         * locale/findlocale.c (free_mem): Also free here->filename.
2036
2037         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2038
2039         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2040         first test.
2041         (feexcp_nomask_test): Correct printf args.
2042         (feexcp_mask_test): Likewise.
2043
2044 2000-08-19  Andreas Jaeger  <aj@suse.de>
2045
2046         * inet/tst-gethnm.c: Include string.h to provide prototype for
2047         strcmp.
2048
2049         * malloc/mtrace.pl (usage): Inform about --help.
2050
2051 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2052
2053         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2054         size HEAP_MAX_SIZE.
2055
2056 2000-08-19  Andreas Jaeger  <aj@suse.de>
2057
2058         * shlib-versions: Remove libnss_db, libdb and libdb1.
2059
2060 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2061
2062         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2063         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2064         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2065         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2066         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2067         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2068         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2069         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2070         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2071         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2072         getdents.
2073         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2074         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2075
2076 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2077
2078         * include/glob.h (__glob64): Add prototype.
2079         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2080         define glob and glob_in_dir.
2081         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2082         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2083         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2084         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2085         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2086         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2087         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2088         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2089
2090 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2091
2092         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2093
2094 2000-08-17  Andreas Jaeger  <aj@suse.de>
2095
2096         * math/test-fenv.c (fe_single_test): New function.
2097         (fe_env_tests): Use fe_single_test.
2098         (feenable_test): New tests for feenable/fedisable and
2099         fegetexcpetions.
2100         (feexcp_mask_test): New function.
2101         (feexcp_nomask_test): New function.
2102
2103 2000-08-19  Richard Henderson  <rth@cygnus.com>
2104
2105         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2106         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2107         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2108         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2109         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2110         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2111         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2112         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2113         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2114         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2115         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2116         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2117         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2118         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2119         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2120         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2121         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2122
2123 2000-08-19  Andreas Jaeger  <aj@suse.de>
2124
2125         * elf/constload1.c: Include <stdio.h> for puts prototype.
2126
2127 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2128
2129         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2130         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2131         a dynamically loaded object remove old l_initfini list.
2132         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2133         remove some dynamically allocated memory blocks in the dynamic
2134         loading data structures.
2135         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2136         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2137         Instead call _dl_check_map_versions only for the dependencies.
2138         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2139         information of initial objects as not free-able.
2140         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2141         element.
2142
2143         * elf/filter.c: Call mtrace.
2144         * elf/restest1.c: Likewise.  Close the objects.
2145         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2146         debug information.
2147
2148         * elf/constload1.c: Add comment explaining not freed memory.
2149
2150 2000-08-18  Andreas Jaeger  <aj@suse.de>
2151
2152         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2153         alignment for structs stat and stat64.
2154         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2155
2156 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2157
2158         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2159         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2160
2161         * nss/Versions: Remove libnss_db information.
2162
2163 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2164
2165         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2166         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2167         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2168         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2169
2170         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2171         to match Solaris.
2172
2173 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2174
2175         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2176         (_FPU_SETCW): Likewise.
2177         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2178
2179         * stdio-common/printf_fp.c: Fix chars_needed computation.
2180         Patch by Greg McGary <greg@mcgary.org>.
2181
2182 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2183
2184         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2185         _dl_loaded are NULL.
2186
2187 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2188
2189         * manual/arith.texi (feholdexcept): Returns 0 on success.
2190
2191 2000-08-17  Andreas Jaeger  <aj@suse.de>
2192
2193         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2194         (ifr_newname): New.
2195         Reported by Andi Kleen <ak@suse.de>.
2196
2197 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2198
2199         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2200         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2201         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2202
2203 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2204
2205         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2206         of buf->st_ino and kbuf->st_ino, not __st_ino.
2207         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2208         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2209         directive so that only linux/getdents.c is used, not some
2210         architecture specific one.
2211
2212 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2213
2214         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2215         enabled, not disabled exceptions.
2216         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2217         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2218
2219 2000-08-17  Greg McGary  <greg@mcgary.org>
2220
2221         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2222         from test program name when constructing suffix for $(LDLIBS-*).
2223         (bounded-thread-library): New variable.
2224         * crypt/Makefile
2225         [build-shared, build-static] (libcrypt-dep): Remove variable.
2226         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2227         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2228         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2229         (librt-tests): Add variable.  (tests): Use it.
2230         [build-shared, build-static]
2231         ($(addprefix $(objpfx),$(tests)),
2232         $(addprefix $(objpfx),$(librt-tests))):
2233         Consolidate individual dependencies.
2234         [build-bounded]
2235         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2236         Add dependencies.
2237         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2238         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2239         * misc/Makefile
2240         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2241         * rt/Makefile
2242         [build-shared, build-static]
2243         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2244         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2245
2246 2000-08-17  Greg McGary  <greg@mcgary.org>
2247
2248         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2249         * sysdeps/unix/make-syscalls.sh: Likewise.
2250         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2251         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2252         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2253         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2254         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2255
2256 2000-08-17  Greg McGary  <greg@mcgary.org>
2257
2258         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2259         Wrap extern symbols in BP_SYM ().
2260         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2261         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2262         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2263         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2264         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2265         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2266         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2267         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2268         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2269         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2270
2271 2000-08-16  Andreas Schwab  <schwab@suse.de>
2272
2273         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2274         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2275         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2276
2277 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2278
2279         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2280         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2281         * elf/dl-support.c: Define _nl_nloaded.
2282         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2283         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2284         object to global list.
2285         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2286         from _dl_loaded list.
2287         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2288         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2289         number here.
2290
2291         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2292         unmask, exceptions.
2293         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2294         exceptions.
2295         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2296
2297 2000-08-16  Andreas Jaeger  <aj@suse.de>
2298
2299         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2300
2301 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2302
2303         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2304
2305 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2306
2307         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2308         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2309         (sysdep_routines): Add oldgetrlimit64.
2310         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2311         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2312
2313         * include/link.h: Undo last patches.  Hurd now has stat64.
2314         * elf/Makefile: Likewise.
2315         * elf/dl-load.c: Likewise.
2316         * elf/dl-misc.c: Likewise.
2317         * elf/dl-profile.c: Likewise.
2318         * sysdeps/generic/sysd-link.h: Removed.
2319         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2320
2321         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2322         thread event callback function.
2323         (__aio_notify_only): Use function above.
2324         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2325
2326 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2327
2328         * sysdeps/mach/hurd/lseek64.c: New file.
2329
2330 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2331
2332         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2333         Remove typedefs.
2334         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2335         typedefs.
2336         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2337         typedefs.
2338         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2339
2340 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2341
2342         * sysdeps/mach/hurd/xstatconv.c: New file.
2343         * sysdeps/mach/hurd/fxstat64.c: New file.
2344         * sysdeps/mach/hurd/lxstat64.c: New file.
2345         * sysdeps/mach/hurd/xstat64.c: New file.
2346         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2347
2348 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2349
2350         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2351         Initialize, needed for change in common symbol handling in newer
2352         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2353
2354 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2355
2356         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2357         * elf/constload2.c: Add destructor to unload constload3.
2358
2359         * include/link.h: Include sysd-link.h.
2360         * sysdeps/generic/sysd-link.h: New file.
2361         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2362         * elf/Makefile (distribute): Add sysd-link.h.
2363         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2364         types and functions directly.
2365         * elf/dl-misc.c: Likewise.
2366         * elf/dl-profile.c: Likewise.
2367
2368         * elf/loadfail.c (main): Close all successfully loaded objects.
2369
2370         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2371         free wd.
2372         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2373         there is already one.
2374
2375         * elf/dl-close.c: Pretty print.
2376
2377 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2378
2379         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2380         global (with file scope).  Add __libc_subfreeres function to free the
2381         string.
2382         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2383         in ttyname function.
2384
2385         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2386
2387         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2388
2389         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2390         mapping them to /x5c and /x7e respectively.
2391
2392         * locale/programs/ld-ctype.c: Add support for more definitions after
2393         copy statement.
2394
2395 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2396
2397         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2398         * sysdeps/unix/sysv/linux/kernel-features.h
2399         (__ASSUME_GETDENTS64_SYSCALL): Define.
2400         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2401         syscall if available to get d_type fields.
2402         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2403         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2404         __lxstat64): Export at GLIBC_2.2.
2405         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2406         Likewise.
2407         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2408         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2409         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2410         getdirentries64, versionsort64): Remove.
2411         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2412         getdirentries64, versionsort64): Remove.
2413
2414 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2415
2416         * posix/Makefile: Remove rules to generate glob package.
2417
2418         * posix/Makefile (tests): Add tst-regexloc.
2419         (tst-regexloc-ENV): Add LOCPATH.
2420         * posix/tst-regexloc.c: New file.
2421
2422 2000-08-12  Andreas Jaeger  <aj@suse.de>
2423
2424         * include/features.h (__STDC_ISO_10646__): Define.
2425         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2426
2427 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2428
2429         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2430
2431         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2432         for revision 6 and up).
2433
2434         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2435         including <time.h>.
2436         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2437         to get definitions of just these types.
2438
2439         * signal/signal.h: Define thread signal handling functions also for
2440         POSIX95.
2441
2442         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2443         POSIX95.
2444         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2445         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2446         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2447         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2448
2449         * sysvipc/sys/shm.h: Define pid_t for XPG.
2450
2451         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2452         they are not anymore required here.
2453
2454         * wcsmbs/wchar.h: Make the various wide char string and stream
2455         functions available for the respective XPG versions.
2456
2457         * nss/Makefile: Remove rules to build and distribute nss_db.
2458
2459         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2460         * sysdeps/generic/scandir64.c: Likewise.
2461         * sysdeps/generic/versionsort64.c: Likewise.
2462
2463 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2464             Benjamin Koznik  <bkoz@redhat.com>
2465
2466         * libio/fileops.c: Merge with libstdc++-v3.
2467         * libio/genops.c: Likewise.
2468         * libio/iofclose.c: Likewise.
2469         * libio/iofopen.c: Likewise.
2470         * libio/iofwide.c: Likewise.
2471         * libio/libio.h: Likewise.
2472         * libio/libioP.h: Likewise.
2473         * libio/stdfiles.c: Likewise.
2474         * libio/stdio.c: Likewise.
2475         * libio/wfileops.c: Likewise.
2476         * libio/wgenops.c: Likewise.
2477
2478         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2479
2480 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2481
2482         * locale/programs/localedef.c: Implement --prefix option to allow
2483         writing in standard places of alternative install directories.
2484
2485         * posix/regex.c (compile_range): Implement collation sequence
2486         handling for glibc.  Use simple character ordering otherwise and
2487         not strcoll.
2488
2489 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2490
2491         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2492
2493 2000-08-12  Andreas Jaeger  <aj@suse.de>
2494
2495         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2496         __USE_FILE_OFFSET64 correctly for locking.
2497         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2498
2499 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2500
2501         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2502         Define for 2.4.1 on sparc as well.
2503         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2504         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2505         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2506         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2507
2508 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2509
2510         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2511         defined.
2512
2513 2000-08-12  Andreas Jaeger  <aj@suse.de>
2514
2515         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2516         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2517
2518         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2519         mips2 for assembler.
2520
2521         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2522         if fnctl64 is not available for F_*LK*64.
2523
2524         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2525
2526 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2527
2528         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2529         Define for 2.4.1 on x86.
2530         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2531         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2532         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2533
2534         * dirent/dirent.h: Define DT_WHT.
2535
2536         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2537         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2538         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2539         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2540         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2541         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2542
2543 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2544
2545         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2546         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2547         * inet/Makefile (tests): Add tst-gethnm.
2548         * inet/tst-gethnm.c: New file.
2549
2550         * rt/aio_cancel.c: If canceling a specific request which is running
2551         *really* do nothing.
2552         * rt/aio_misc.h: Add `done' to states of a request.
2553         * rt/aio_misc.c: Add several tests for the correct state.
2554         Simplify request table memory handling.
2555
2556 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2557
2558         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2559         * dirent/scandir64.c: Move...
2560         * sysdeps/generic/scandir64.c: ...here.
2561         * dirent/alphasort64.c: Move...
2562         * sysdeps/generic/alphasort64.c: ...here.
2563         * dirent/versionsort64.c: Move...
2564         * sysdeps/generic/versionsort64.c: ...here.
2565         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2566         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2567         Export symbols at GLIBC_2.2.
2568         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2569         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2570         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2571         __versionsort64): Add prototypes.
2572         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2573         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2574         unused prototype.
2575         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2576         and GLIBC_2.2.
2577         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2578         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2579         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2580         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2581         __u_quad_t.
2582         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2583         Adjust for kernel-2.4.0-test6 layout.
2584         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2585         GLIBC_2.1 and GLIBC_2.2.
2586         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2587         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2588         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2589         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2590         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2591         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2592         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2593         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2594         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2595         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2596         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2597         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2598         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2599         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2600         __u_quad_t.
2601         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2602         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2603         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2604         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2605         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2606         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2607         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2608         __u_quad_t.
2609         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2610         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2611         Define.
2612         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2613         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2614         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2615         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2616         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2617         Define.
2618         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2619         alpha/readdir.c.
2620         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2621         alpha/readdir_r.c
2622         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2623         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2624         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2625         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2626         st_ino from __st_ino.
2627         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2628         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2629         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2630         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2631         set __st_ino in addition to st_ino.
2632         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2633         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2634         __old_getdents64 as well.
2635         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2636         getdirentries64 and old_getdirentries64 as well.
2637         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2638         __GETDENTS): Define.
2639         (GETDENTS64): Remove.
2640         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2641         Define.
2642         (GETDENTS64): Remove.
2643         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2644         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2645         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2646         as well.
2647         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2648         __old_readdir64_r as well.
2649         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2650         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2651
2652 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2653
2654         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2655         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2656         define of the kernel.
2657         Add missing __SEG_PSTKOVF definition.
2658         Adjust the padding of struct siginfo and struct sigevent to
2659         match the fact that sigval_t is 64 bit.
2660
2661 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2662
2663         * timezone/zic.c: Update from tzcode2000f.
2664         * timezone/australasia: Update from tzdata2000f.
2665         * timezone/europe: Likewise.
2666         * timezone/southamerica: Likewise.
2667         * timezone/yearistype: Likewise.
2668
2669 2000-08-10  Andreas Jaeger  <aj@suse.de>
2670
2671         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2672         stat with current MIPS kernel.
2673
2674 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2675
2676         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2677         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2678         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2679         Remove the junk that's only relevant in the Linux kernel itself.
2680         Add a warning saying that this file is now obsolete, and include
2681         <sys/procfs.h>.
2682         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2683         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2684         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2685         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2686         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2687         and add the notice that the file is primarily there for GDB.
2688         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2689
2690 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2691
2692         * time/tzfile.c (__tzfile_compute): __tzstring zones
2693         from zone_names.
2694
2695 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2696
2697         * resolv/resolv.h (__res_state): Surround prototype with
2698         __BEGIN_DECLS/__END_DECLS.
2699         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2700
2701 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2702
2703         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2704         Make independant of asm/resource.h from the Linux kernel.
2705
2706 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2707
2708         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2709
2710 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2711
2712         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2713         * locale/Makefile (locale-CPPFLAGS): Likewise.
2714
2715 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2716
2717         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2718         for AMD processors.
2719
2720 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2721
2722         * misc/Versions (mincore): Export at GLIBC_2.2.
2723
2724 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2725
2726         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2727
2728 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2729
2730         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2731         socketpair.  Made socketpair a weak alias.
2732         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2733         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2734         conforming, but fall back on the old protocol if the socket server
2735         doesn't support it.
2736         * include/sys/socket.h: Add prototype for __socketpair.
2737
2738 2000-08-09  Andreas Schwab  <schwab@suse.de>
2739
2740         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2741         long long modifier is seen.
2742
2743         * elf/nodelete.c (do_test): Remove reference to undefined member
2744         sa_restorer.
2745         * rt/tst-aio4.c (do_test): Likewise.
2746
2747         * configure.in: Add `-lm' when checking for libgd.
2748         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2749         linking.
2750
2751 2000-08-09  Andreas Jaeger  <aj@suse.de>
2752
2753         * configure.in: Change required make versions.
2754
2755         * manual/install.texi (Tools for Compilation): Document required
2756         make version.
2757         (Supported Configurations): Update list of supported
2758         configurations.
2759
2760 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2761
2762         * locale/linereader.c (get_string): Don't print an error is a string
2763         contains an unknown character.
2764
2765 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2766
2767         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2768         (new_symbol): Take new parameters with name of the symbol.
2769         Adjust callers.
2770         (handle_ellipsis): Don't only allow character symbols.
2771         (collate_read): Allow string of collating elements contain invalid
2772         characters; ignore entry in this case.
2773         Handle ellipsis of collating symbols before first order_start.
2774         Allow ellipsis in state 0.
2775
2776 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2777
2778         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2779         error message.
2780         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2781
2782 2000-08-04  Greg McGary  <greg@mcgary.org>
2783
2784         * posix/regex.c (SET_HIGH_BOUND): New macro.
2785         (MOVE_BUFFER_POINTER): Use it.
2786         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2787         (EXTEND_BUFFER): Use it.
2788
2789 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2790
2791         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2792         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2793         _wide_data but from _IO_FILE directly.
2794         * libio/iofclose.c: Likewise.
2795         * libio/wfileops.c: Likewise.
2796
2797         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2798         * libio/libioP.h: Change prototypes.
2799
2800 2000-08-03  Greg McGary  <greg@mcgary.org>
2801
2802         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2803         frame pointer early so that we save caller's frame pointer.
2804         * sysdeps/i386/elf/setjmp.S: Likewise.
2805
2806         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2807         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2808
2809         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2810         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2811         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2812
2813 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2814
2815         * iconvdata/big5.c: Updated.
2816         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2817
2818 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2819
2820         * Makeconfig (all-subdirs): Add conform.
2821         * conform/Makefile: Include ../Rules.
2822
2823         * Makefile (README): Add rules to generate here as well.
2824
2825 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2826
2827         * version.h (VERSION): Bump to 2.1.92.
2828
2829         * sysdeps/ia64/Dist: Add _mcount.S.
2830
2831         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2832
2833         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2834
2835         * elf/Makefile (distribute): Add missing modules.
2836
2837         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2838
2839         * posix/regex.c (compile_range): Translate range start and end
2840         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2841
2842         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2843         asm/resource.h.
2844
2845         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2846
2847 2000-08-02  Andreas Jaeger  <aj@suse.de>
2848
2849         * elf/elf.h (EM_S390): Added.
2850         (R_390_*): New relocs for S390.
2851
2852         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2853         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2854         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2855         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2856         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2857         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2858         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2859         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2860         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2861         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2862         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2863         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2864         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2865         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2866         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2867         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2868         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2869         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2870         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2871         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2872         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2873         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2874         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2875         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2876         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2877         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2878         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2879         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2880         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2881         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2882         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2883         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2884         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2885         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2886         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2887         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2888         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2889         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2890         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2891         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2892         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2893         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2894         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2895         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2896         * sysdeps/s390/sysdep.h: New file.
2897         * sysdeps/s390/sys/ucontext.h: New file.
2898         * sysdeps/s390/sub_n.S: New file.
2899         * sysdeps/s390/strncpy.S: New file.
2900         * sysdeps/s390/strcpy.S: New file.
2901         * sysdeps/s390/stackinfo.h: New file.
2902         * sysdeps/s390/setjmp.S: New file.
2903         * sysdeps/s390/s390-mcount.S: New file.
2904         * sysdeps/s390/mul_1.S: New file.
2905         * sysdeps/s390/memusage.h: New file.
2906         * sysdeps/s390/memset.S: New file.
2907         * sysdeps/s390/memcpy.S: New file.
2908         * sysdeps/s390/memchr.S: New file.
2909         * sysdeps/s390/machine-gmon.h: New file.
2910         * sysdeps/s390/ldbl2mpn.c: New file.
2911         * sysdeps/s390/gmp-mparam.h: New file.
2912         * sysdeps/s390/fpu/fpu_control.h: New file.
2913         * sysdeps/s390/fpu/fesetround.c: New file.
2914         * sysdeps/s390/fpu/fegetround.c: New file.
2915         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2916         * sysdeps/s390/fpu/bits/fenv.h: New file.
2917         * sysdeps/s390/ffs.c: New file.
2918         * sysdeps/s390/elf/start.S: New file.
2919         * sysdeps/s390/elf/setjmp.S: New file.
2920         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2921         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2922         * sysdeps/s390/dl-machine.h: New file.
2923         * sysdeps/s390/bzero.S: New file.
2924         * sysdeps/s390/bsd-setjmp.S: New file.
2925         * sysdeps/s390/bsd-_setjmp.S: New file.
2926         * sysdeps/s390/bits/string.h: New file.
2927         * sysdeps/s390/bits/setjmp.h: New file.
2928         * sysdeps/s390/bits/huge_val.h: New file.
2929         * sysdeps/s390/bits/endian.h: New file.
2930         * sysdeps/s390/bits/byteswap.h: New file.
2931         * sysdeps/s390/bcopy.S: New file.
2932         * sysdeps/s390/backtrace.c: New file.
2933         * sysdeps/s390/atomicity.h: New file.
2934         * sysdeps/s390/asm-syntax.h: New file.
2935         * sysdeps/s390/addmul_1.S: New file.
2936         * sysdeps/s390/add_n.S: New file.
2937         * sysdeps/s390/abort-instr.h: New file.
2938         * sysdeps/s390/__longjmp.c: New file.
2939         * sysdeps/s390/Makefile: New file.
2940         * sysdeps/s390/Implies: New file.
2941         * sysdeps/s390/Dist: New file.
2942         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2943
2944 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2945
2946         Remove incompatible IPv6 extension of RPC.
2947         * sunrpc/Makefile: Undo changes.
2948         * sunrpc/rpc_main.c: Likewise.
2949         * sunrpc/rpc/clnt.h: Likewise.
2950         * sunrpc/rpc/svc.h: Likewise.
2951         * sunrpc/bindrsvprt6.c: Removed.
2952         * sunrpc/clnt_tcp6.c: Removed.
2953         * sunrpc/clnt_udp6.c: Removed.
2954         * sunrpc/svc_tcp6.c: Removed.
2955         * sunrpc/svc_udp6.c: Removed.
2956
2957         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
2958         dgettext, and dcgettetxt.
2959
2960         * intl/locale.alias: Update japanese aliases.
2961
2962         * sysdeps/ia64/bits/byteswap.h: New file.
2963         Patch by Dan Pop <Dan.Pop@cern.ch>.
2964
2965         * misc/sys/cdefs.h: Define __attribute_format_arg__.
2966         * intl/libintl.h: Use it here instead of using __attribute__ directly.
2967
2968 2000-07-13  H.J. Lu  <hjl@gnu.org>
2969
2970         * posix/regex.c (re_max_failures): Set to 4000.
2971
2972 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2973
2974         * gnulib/Makefile (tests): Add tst-gcc.
2975         * gnulib/tst-gcc.c: New file.
2976
2977         * assert/Makefile (routines): Add __assert.
2978         * assert/Versions: Export __assert for glibc 2.2.
2979         * assert/__assert.c: New file.
2980         * assert/assert.h: Declare __assert.
2981
2982 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2983
2984         * locale/localeinfo.h (_ISCTYPE): New macro.
2985         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
2986         LC_CTYPE locale format.
2987         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
2988         (ctype_output): Output class_b[nr] right before class_3level[nr].
2989         (allocate_arrays): Fill class_b, similarly to class_3level.
2990
2991 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2992             Joseph S. Myers  <jsm28@cam.ac.uk>
2993
2994         * math/tgmath.h: Make standard compliant.  Don't ask how.
2995
2996 2000-07-04  H.J. Lu  <hjl@gnu.org>
2997
2998         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
2999         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3000         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3001
3002 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3003
3004         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3005         (__USE_LARGEFILE): Add an explanation.
3006         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3007         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3008
3009 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3010
3011         * libio/Makefile: Enable exception handling for genops, wgenops,
3012         fileops, and wfileops.
3013
3014 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3015
3016         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3017         acount that elf/rtld's main program might remove some varibales
3018         from the environment if we're trying to be secure.  Move the Hurd
3019         startup data if necessary, or, if we there is no startup data,
3020         make sure the magical convention that ARGV[0] is stored just after
3021         the environment list.
3022
3023 2000-08-01  Philip Blundell  <philb@gnu.org>
3024
3025         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3026         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3027         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3028         oldsetrlimit for GLIBC_2.0.
3029
3030 2000-08-01  Andreas Jaeger  <aj@suse.de>
3031
3032         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3033         (LINE_PARSER): Allow any number of spaces between ip address and
3034         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3035
3036         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3037
3038         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3039         constants in.
3040
3041         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3042         _nss_nisplus_getipnodebyname_r.
3043
3044         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3045         now, getipnodebyname is deprecated.
3046         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3047         Likewise.
3048
3049         * inet/Makefile (routines): Don't build getipnodebyaddr and
3050         friends.
3051
3052         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3053
3054         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3055
3056         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3057
3058         * wctype/Makefile (distribute): Add wchar-lookup.h.
3059
3060         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3061
3062         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3063
3064 2000-08-01  Andreas Schwab  <schwab@suse.de>
3065
3066         * Make-dist (dist): Resolve `..' in file names.
3067
3068 2000-08-01  Andreas Jaeger  <aj@suse.de>
3069
3070         * stdio-common/Makefile (distribute): Remove removed files, add
3071         new files.
3072
3073         * Makefile (distribute): Remove include/db_185.h and db.h.
3074
3075         * include/db_185.h: Remove, it's not needed anymore.
3076         * include/db.h: Likewise.
3077
3078 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3079
3080         * inet/Makefile (tests): Remove tst-ipnode.
3081         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3082         now.
3083
3084 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3085
3086         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3087         endp statements have already been added.
3088
3089 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3090
3091         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3092         <sysdeps/ia64/sysdep.h>.
3093
3094         * sysdeps/ia64/_mcount.S: New file.
3095
3096         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3097         __gmon_start__.  Fix up extraneous whitespace.
3098
3099 2000-01-12  H.J. Lu  <hjl@gnu.org>
3100
3101         * sysdeps/ia64/elf/initfini.c: New file.
3102
3103 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3104
3105         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3106         dependency between branch and ar.pfs write.
3107
3108 2000-07-31  H.J. Lu  <hjl@gnu.org>
3109
3110         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3111         handle the wchar_t array.
3112
3113 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3114
3115         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3116         10646 which are not yet assigned.
3117         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3118
3119 2000-07-31  Andreas Jaeger  <aj@suse.de>
3120
3121         * inet/Versions: Remove getipnodebyaddr and friends from
3122         GLIBC_2.2.
3123
3124         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3125
3126 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3127
3128         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3129         ch >= 0x81 && ch2 < 0x40 as invalid.
3130
3131 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3132
3133         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3134         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3135
3136 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3137
3138         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3139         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3140
3141 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3142
3143         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3144         0xb8.
3145         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3146
3147 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3148
3149         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3150
3151 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3152
3153         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3154         (from_ucs4): Change values of U+00A4 and U+00ED.
3155         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3156
3157 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3158
3159         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3160         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3161
3162 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3163
3164         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3165         * iconvdata/isiri-3342.h: New file.
3166         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3167         treat 0x80 as a gap.
3168
3169 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3170
3171         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3172         (utf8_encode): Use simple shifts instead.  Fix return value.
3173
3174 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3175
3176         * timezone/private.h: Update from tzcode2000e.
3177         * timezone/asia: Update from tzdata2000e.
3178         * timezone/australasia: Likewise.
3179         * timezone/europe: Likewise.
3180         * timezone/northamerica: Likewise.
3181         * timezone/zone-tab: Likewise.
3182
3183 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3184
3185         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3186         the order of struct sigaltstack members is different.
3187
3188 2000-07-26  Philip Blundell  <philb@gnu.org>
3189
3190         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3191
3192 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3193
3194         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3195         * locale/programs/ld-ctype.c: Adjust for this.
3196
3197         * locale/programs/ld-collate.c: Add more alignment checks.
3198         * locale/string/strcoll.c: Likewise.
3199
3200 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3201
3202         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3203         outside USE_IN_LIBIO block.
3204
3205 2000-07-26  Philip Blundell  <philb@gnu.org>
3206
3207         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3208         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3209
3210 2000-07-28  Philip Blundell  <philb@gnu.org>
3211
3212         * math/test-fpucw.c: Ignore reserved bits in control word.
3213
3214 2000-07-28  Philip Blundell  <philb@gnu.org>
3215
3216         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3217         (ret): Redefine to PSEUDO_RET.
3218         (PSEUDO): Remove jump to syscall_error.
3219
3220 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3221
3222         * resolv/README: Add some information about using the resolver in
3223         multi-threaded code and with C++.  Spelling fixes.
3224
3225 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3226
3227         * resolv/resolv.h (struct __sockaddr_in): Remove.
3228         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3229
3230 2000-07-29  Greg McGary  <greg@mcgary.org>
3231
3232         * Rules (test-bp-inputs, make-test-out): New variables.
3233         ($(objpfx)%-bp.out): New rule.
3234         ($(objpfx)%.out): Rewrite in terms of new variables.
3235
3236         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3237         internal function that uses vtable.
3238         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3239         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3240
3241         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3242         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3243         (chunk_align): Likewise.
3244
3245         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3246         in a way that conforms to decl, and avoids spurious bounds violation.
3247
3248         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3249         * sysdeps/generic/frame.h: Likewise.
3250         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3251         around return value.
3252         (__backtrace): Qualify frame-pointer chain and return address
3253         pointers as __unbounded.  Wrap bounds around variable `current'.
3254         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3255         around return value.
3256         (catch_segfault): Qualify frame-pointer chain and return address
3257         pointers as __unbounded.  Wrap bounds around variable `current'.
3258         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3259         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3260         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3261         __unbounded.
3262         (__backtrace): Qualify frame-pointer chain and return address
3263         pointers as __unbounded.  Wrap bounds around variable `current'.
3264
3265         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3266         * sysdeps/i386/mul_1.S: Likewise.
3267         * sysdeps/i386/submul_1.S: Likewise.
3268         * sysdeps/i386/i586/addmul_1.S: Likewise.
3269         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3270         * sysdeps/i386/i586/submul_1.S: Likewise.
3271
3272 2000-07-27  Andreas Jaeger  <aj@suse.de>
3273
3274         * libio/Depend: New file, libio needs localedata for tests.
3275         * posix/Depend: Likewise.
3276
3277 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3278
3279         * stdio-common/_i18n_itoa.c: Removed.
3280         * stdio-common/_i18n_itoa.h: Removed.
3281         * stdio-common/_i18n_itowa.c: Removed.
3282         * stdio-common/_i18n_itowa.h: Removed.
3283         * stdio-common/_i18n_number.h: New file.
3284         * stdio-common/Depend: New file.
3285         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3286         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3287         printing.  Change printing of numbers with locale specific digits to
3288         use new code in _i18n_number.h.
3289         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3290         _i18n_itowa.
3291
3292         * stdio-common/bug13.c: Improve messages.
3293
3294         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3295         (set_class_defaults): Always search also for Uxxxx names.
3296         Detect insufficient number of outdigits.
3297
3298         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3299
3300 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3301
3302         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3303         _NL_CTYPE_MAP_NAMES.
3304         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3305         * wctype/wcfuncs.c (towlower, towupper): Use them.
3306         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3307         * wctype/wctrans.c (wctrans): Likewise.
3308         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3309
3310 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3311
3312         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3313         Use the optimized version of this function outside glibc as well.
3314
3315 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3316
3317         * locale/indigits.h (indigit_value): Correct.
3318         * locale/indigitswc.h (indigitwc_value): Correct.
3319         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3320         conversion, add GROUP checking for it, fix GROUP number
3321         conversion with strlen(thousands) > 1.
3322         Honour width correctly in the presence of floating
3323         decimal points and thousands separators.
3324         * stdio-common/tst-sscanf.c: New test.
3325         * stdio-common/Makefile: Add it to tests.
3326         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3327         thousands separators and group argument is non-zero.
3328
3329 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3330
3331         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3332         starts at GLIBC_2.2.
3333
3334 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3335
3336         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3337         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3338         _test_and_set.
3339         (headers): Add sys/tas.h.
3340         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3341         GLIBC_2.2 from libc.
3342         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3343         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3344         _test_and_set.
3345
3346 2000-07-28  Andreas Jaeger  <aj@suse.de>
3347
3348         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3349
3350         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3351         ($(objpfx)tst-dladdr.out): new.
3352         (tests): Add tst-dladdr.
3353         ($(objpfx)glrefmain): Use libdl.
3354
3355         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3356         <vs@caldera.de>.
3357
3358 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3359
3360         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3361         ftruncate(64) calls.
3362
3363 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3364
3365         * intl/tst-translit.c: Include string.h to get prototype for
3366         strcmp().
3367
3368 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3369
3370         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3371         name and add weak alias for __fork.
3372
3373         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3374         & pwrite to use __libc_<name> as strong names instead of
3375         __syscall_<name>.
3376
3377         * include/sched.h: Add clone2 prototype.
3378
3379 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3380
3381         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3382         procedure name twice.
3383
3384 2000-07-27  Philip Blundell  <philb@gnu.org>
3385
3386         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3387
3388 2000-07-27  Andreas Jaeger  <aj@suse.de>
3389
3390         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3391         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3392         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3393         Reported by Andi Kleen <ak@suse.de>.
3394
3395         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3396         (do_wait): Test requests with aio_return64.
3397         (do_test): Change callers of do_wait.
3398
3399 2000-07-26  Andreas Jaeger  <aj@suse.de>
3400
3401         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3402         (do_wait): Test requests with aio_return.
3403         (do_test): Change callers of do_wait.
3404
3405 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3406
3407         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3408         from request list.  Don't do the list handling here, call
3409         __aio_remove_request.
3410         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3411         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3412         request might already be processed.  Don't do the list handling
3413         here, call __aio_remove_request.
3414
3415         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3416         LIO_DSYNC.
3417
3418         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3419         are missing.
3420
3421 2000-07-27  Greg McGary  <greg@mcgary.org>
3422
3423         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3424         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3425         in union init.  Pass zero for ignored semnum arg to semctl.
3426         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3427
3428 2000-07-26  Greg McGary  <greg@mcgary.org>
3429
3430         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3431         data structure pointers as __unbounded.
3432         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3433         * sysdeps/generic/bp-semctl.h: New file.
3434         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3435         pointers as __unbounded.  Check bounds of syscall args.
3436         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3437         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3438         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3439         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3440         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3441         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3442         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3443         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3444         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3445         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3446         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3447         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3448         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3449         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3450         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3451         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3452
3453 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3454
3455         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3456         by default.
3457         * locale/C-ctype.c: Likewise.
3458         * wcsmbs/wcsmbsload.c: Likewise.
3459
3460 2000-07-26  Greg McGary  <greg@mcgary.org>
3461
3462         * Makeconfig (+link-bounded, link-libc-bounded,
3463         link-extra-libs-bounded): New variables.
3464         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3465         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3466         * Rules (tests-bp.out): New variable.
3467         (tests): Conditionally add BP tests.
3468         (binaries-bounded): Add variable and associated rule.
3469         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3470         Move conditional stuff after place where condition is defined.
3471
3472         * malloc/malloc.c (bp-checks.h): Add #include.
3473         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3474         (_bin_at): Add unbounded version of bin_at.
3475         (IAV, chunk_alloc): Use unbounded _bin_at.
3476         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3477         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3478         Wrap BOUNDED_N around return value.
3479         (chunk_realloc): Adjust oldsize once.
3480
3481         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3482         (__ubp_memchr): Add correct decl.
3483         (_CHECK_STRING): Use __ubp_memchr.
3484         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3485         New alias for unbounded-pointer __memchr.
3486         * sysdeps/i386/memchr.S: Likewise.
3487         * sysdeps/ia64/memchr.S: Likewise.
3488         * sysdeps/m68k/memchr.S: Likewise.
3489         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3490         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3491         * sysdeps/vax/memchr.s: Likewise.
3492
3493         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3494         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3495         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3496         * sysdeps/i386/i686/strtok.S: Likewise.
3497         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3498         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3499
3500         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3501         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3502
3503         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3504         bounds of copy_result to mount_proc.
3505
3506 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3507
3508         * wctype/wctype.h (__wctrans_l): New declaration.
3509         * wctype/wctrans_l.c: New file.
3510         * wctype/Makefile (routines): Add wctrans_l.
3511
3512 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3513
3514         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3515         Patch by MacGyver <macgyver@tos.net>.
3516
3517 2000-07-26  Andreas Jaeger  <aj@suse.de>
3518
3519         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3520         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3521         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3522
3523         * rt/tst-aio.c (test_file): Fix typo.
3524         * rt/tst-aio64.c (test_file): Likewise.
3525
3526         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3527         * rt/Makefile: Add rules to build and run tst-aio3.
3528
3529         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3530         it's not needed and confuses only.
3531
3532 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3533
3534         * resolv/res_init.c: Add support for nameserver communication with
3535         IPv6.
3536         * resolv/res_send.c: Likewise.
3537         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3538         in nsaddrs field.
3539         Patch by <venaas@nvg.ntnu.no>.
3540
3541 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3542
3543         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3544         (wcwidth_table_get): New function.
3545         (wcwidth_table_add): Call it.
3546         (wctrans_table_get): New function.
3547         (wctrans_table_add): Call it.
3548
3549 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3550
3551         * rt/lio_listio.c (lio_listio): Always disable individual
3552         notification.
3553         * rt/Makefile: Add rules to build and run tst-aio2.
3554         * rt/tst-aio2.c: New file.
3555
3556         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3557         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3558
3559 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3560
3561         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3562         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3563         leading and trailing spaces from host, user and domain name.
3564
3565 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3566
3567         * csu/defs.awk: Add support for need_endp.
3568
3569 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3570
3571         * resolv/resolv.h: Remove __P from res_send_qhook and
3572         res_send_rhook typedefs.
3573
3574 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3575
3576         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3577
3578 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3579
3580         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3581
3582 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3583
3584         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3585         calling thread, set the cancellation flag and return success
3586         instead of EINTR.
3587
3588 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3589
3590         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3591         * libio/tst-widetext.c: New file.
3592         * libio/tst-widetext.input: New file.
3593
3594         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3595
3596         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3597         empty external buffer correctly.
3598
3599 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3600
3601         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3602         __STRING(entry) and not #entry.
3603         (_RTLD_EPILOGUE): Likewise.
3604         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3605
3606 2000-07-25  Andreas Jaeger  <aj@suse.de>
3607
3608         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3609         according to changes in test program, run also with static only
3610         builds.
3611         ($(objpfx)tst-printf.out): Likewise.
3612
3613         * stdio-common/tst-unbputc.sh: Likewise.
3614         * stdio-common/tst-printf.sh: Likewise.
3615
3616 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3617
3618         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3619
3620         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3621         loop.
3622
3623         * libio/fileops.c: Pretty print.
3624
3625 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3626
3627         * wctype/wchar-lookup.h: New file.
3628         * wctype/iswctype.c: Include "wchar-lookup.h".
3629         (__iswctype): Support alternate locale format with 3-level tables.
3630         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3631         * wctype/towctrans.c (__towctrans): Likewise.
3632         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3633         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3634         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3635         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3636         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3637         __iswxdigit, towlower, towupper): Support alternate locale format
3638         with 3-level tables.
3639         * wctype/wcextra.c (iswblank): Likewise.
3640         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3641         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3642         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3643         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3644         format with 3-level tables.
3645         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3646         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3647         format, return a 3-level table pointer.
3648         * wctype/wctype_l.c (__wctype_l): Likewise.
3649         * wctype/wctrans.c (wctrans): Likewise.
3650         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3651         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3652         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3653         (iswctype): Remove macro definition.
3654         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3655         (internal_wcwidth): Support alternate locale format with 3-level
3656         tables.
3657         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3658         New nl_items.
3659         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3660         Define them as being type "word".
3661         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3662         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3663         __ctype32_width): New exported variables.
3664         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3665         alternate locale format. Don't initialize __ctype_names and
3666         __ctype_width in the alternate locale format.
3667         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3668         * locale/programs/localedef.c (oldstyle_tables): New variable.
3669         (OPT_OLDSTYLE): New macro.
3670         (options): Add --old-style option.
3671         (parse_opt): Handle --old-style option.
3672         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3673         map_offset, class_3level, map_3level, width_3level members.
3674         (ctype_output): Support for alternate locale format: Computation of
3675         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3676         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3677         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3678         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3679         now contain both class and map tables.
3680         (struct wctype_table): New type.
3681         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3682         functions.
3683         (struct wcwidth_table): New type.
3684         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3685         functions.
3686         (struct wctrans_table): New type.
3687         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3688         functions.
3689         (allocate_arrays): Support for alternate locale format: Set
3690         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3691         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3692         to the first 256 characters. Compute ctype->map_3level. Set
3693         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3694         instead of ctype->width.
3695
3696 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3697
3698         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3699         string functions.
3700
3701 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3702
3703         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3704         in wide characters, not bytes.
3705         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3706         into file.
3707
3708 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3709
3710         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3711         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3712         LC_MEASUREMENT, LC_IDENTIFICATION.
3713
3714         * locale/xlocale.h (struct __locale_struct): Increase size of
3715         __locales array.
3716         * locale/duplocale.c (__duplocale): Copy newly added categories as
3717         well.
3718         * locale/freelocale.c (__freelocale): Free newly added categories.
3719         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3720         If a base is given, use it, don't simply return it.
3721
3722 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3723
3724         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3725         variables, copied_key and copied_salt, instead of boolean variables.
3726
3727 2000-07-24  Andreas Jaeger  <aj@suse.de>
3728
3729         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3730         check for offset.
3731
3732         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3733         initgroups_function, adopted prototype for change from 2000-07-23.
3734         (initgroups): Follow type change.
3735
3736         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3737         & PAGE_MASK case, reformat.
3738
3739         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3740         from stdin and setup environment.
3741
3742 2000-07-24  Andreas Schwab  <schwab@suse.de>
3743
3744         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3745
3746 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3747
3748         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3749         more.  Patch by scarlet@mit.edu [PR libc/1799].
3750
3751         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3752         [PR libc/1792].
3753
3754         * argp/argp-parse.c (parser_finalize): Reverse order in which
3755         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3756
3757         * grp/initgroups.c (initgroups): Don't limit the possible number
3758         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3759         the setgroups call while the call fails and descrease the number
3760         of groups each round.
3761         The name of the initgroups function in the NSS modules changed.
3762         (compat_call): Adapt for dynamic resizing.
3763         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3764         Implement dynamic resizing.
3765         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3766         Likewise.
3767         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3768         * hesiod/Versions: Change exported interface name.
3769         * nis/Versions: Change exported interface name.
3770
3771 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3772
3773         * locale/iso-639.def: Some errors corrected.
3774         Patch by Keld Simonsen.
3775
3776         * include/limits.h: Update non-gcc portion.
3777         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3778
3779 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3780
3781         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3782         program's data space, reallocate only the space that was just
3783         deallocated to release its backing space.
3784
3785 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3786
3787         * stdio-common/vfprintf.c (process_string_arg): For wide character
3788         version, handle precision also correctly.
3789
3790         * nss/nss_files/files-hosts.c: Correct problem with three or more
3791         entries with the same name.
3792
3793         * nss/nss_files/files-hosts.c: Implement multi handling.
3794         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3795
3796 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3797
3798         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3799         strcasecmp.
3800
3801         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3802         * malloc/Makefile: Likewise.
3803         * malloc/tst-mtrace.sh: Likewise.
3804         * posix/Makefile: Likewise.
3805         * posix/globtest.sh: Likewise.
3806         * posix/wordexp-tst.sh: Likewise.
3807         * string/Makefile: Likewise.
3808
3809 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3810
3811         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3812         size instead of LC_ALL to take into account the new locale
3813         categories.
3814
3815 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3816
3817         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3818         remainders of hash table.
3819         * locale/categories.def: Remove remainders of transliteration
3820         hash table.
3821         * locale/langinfo.h: Likewise.
3822         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3823         transliteration tables.
3824
3825         * locale/gen-translit.pl: New file.
3826         * locale/C-translit.h.in: New file.
3827         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3828         data pointers with data from this file.
3829         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3830         and gen-translit.pl.
3831         Add rule to generate C-translit.h.
3832         * intl/tst-translit.c (main): Update for now performed
3833         transliteration.
3834
3835         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3836         (it's no input error).
3837         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3838         * stdio-common/scanf12.c: Correct expected result for first scanf.
3839
3840         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3841         of multibyte character strings in %s format with precision.
3842
3843 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3844
3845         * locale/programs/ld-collate.c (collate_read): Allow collating
3846         symbols and elements be named in reorder-after instructions.
3847         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3848
3849         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3850         duplication with generated name, not the name of the first
3851         character.
3852         Patch by Yong Li <yong.li@asu.edu>.
3853
3854         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3855         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3856
3857 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3858
3859         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3860         allocations only if a non-main arena cannot be extended.
3861
3862 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3863
3864         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3865         in DF_1_NODEFLIB handling.
3866
3867 2000-07-21  Andreas Jaeger  <aj@suse.de>
3868
3869         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3870         own rule.
3871
3872         * libio/fwide.c: Include <wchar.h> for prototype.
3873
3874 2000-07-21  Greg McGary  <greg@mcgary.org>
3875
3876         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3877         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3878         Define in terms of chunk_at_offset.
3879         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3880         (next_bin, prev_bin): offset by size of real array elements.
3881         (chunk_align): Make `m' a scalar, since that's how it's used.
3882
3883 2000-07-21  Greg McGary  <greg@mcgary.org>
3884
3885         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3886         UNCHECK_BOUNDS.
3887         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3888         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3889         Wrap bounds around argv & envp and each of their string members.
3890         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3891         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3892         symbol in BP_SYM ().  Discard bounds of address arg.
3893         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3894         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3895         Discard bounds on address arg, add bounds to return value.
3896
3897 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3898
3899         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3900         * elf/filter.c: New file.
3901         * elf/filtmod1.c: New file.
3902         * elf/filtmod2.c: New file.
3903
3904         * elf/rtld.c: Define _dl_bind_not variable.
3905         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3906         * elf/dl-support.c: Likewise.
3907         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3908         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3909         _dl_bind_not.
3910         (profile_fixup): Likewise.
3911
3912         * libio/Makefile (routines): Add fwide.
3913         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3914         fwide now.  Internal calls to _IO_fwide must do locking themselves
3915         or don't need locking.
3916         * libio/fwide.c: New file.
3917
3918         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3919
3920         * elf/Makefile: Add no modules for nodelete test.
3921         * elf/nodelmod3.c: New file.
3922         * elf/nodelmod4.c: New file.
3923         * elf/nodelete.c: Also test case where dependency of dlopen() object
3924         is marked nodelete.
3925
3926         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3927         * elf/nodlopen.c: New file.
3928         * elf/nodlopenmod.c: New file.
3929         * include/dlfcn.h: Define __RTLD_DLOPEN.
3930         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3931         and this is a dlopen() call, do not load the binary.
3932         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3933         * dlfcn/dlopenold.c: Likewise.
3934         * configure.in: Add test for -z nodelete option.
3935         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3936
3937 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3938
3939         Make Hesiod NSS module thread-safe.
3940
3941         * hesiod/README.hesiod: Update.
3942
3943         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3944         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3945         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3946         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3947         hesiod-proto.
3948         * hesiod/nss_hesiod/hesiod-init.c: New file.
3949         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
3950         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
3951         * hesiod/nss_hesiod/nss_hesiod.h: New file.
3952         * hesiod/nss_hesiod/hesiod-service.c
3953         (_nss_hesiod_getservbyport_r): New function.  Provide support for
3954         looking up services by port number.
3955         * hesiod/nss_hesiod/hesiod-proto.c: New file.
3956
3957         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
3958         * hesiod/hesiod.h: Likewise.
3959         * hesiod/hesiod_p.h: Likewise.
3960
3961 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3962
3963         Fix problems with `struct __res_state' getting too big.
3964         * resolv/resolv.h (struct __sockaddr_in): New definition.
3965         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
3966         the private parts of the structure to save some space.
3967         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
3968         (struct sockaddr_in *) in call to sock_eq.
3969         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
3970
3971 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3972
3973         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
3974         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
3975         with nodelete.
3976         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
3977         to _dl_map_object.  Return immediately if no object loaded.
3978         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
3979         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
3980         if it exists into l_flags_1 word.
3981         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
3982         it to determine whether loading is wanted or not.
3983         (_dl_map_object): Likewise.
3984         Call _dl_map_object_from_fd with new parameter.
3985         * sysdeps/generic/ldsodefs.h: Update prototype.
3986         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
3987         * elf/rtld.c: Likewise.
3988         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3989         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
3990         * elf/noload.c: New file.
3991         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
3992         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
3993         * sysdeps/mips/bits/dlfcn.h: Likewise.
3994         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
3995         (tests-nodelete-yes): Define.
3996         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
3997         Add rules to build nodelete and modules.
3998         * elf/nodelete.c: New file.
3999         * elf/nodelmod1.c: New file.
4000         * elf/nodelmod2.c: New file.
4001         * configure.in: Add test for -z nodelete option.
4002         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4003
4004         * libio/Makefile (tests): Add tst_wprintf2.
4005         (tst_wprintf2-ARGS): Define.
4006         * libio/tst_wprintf2.c: New file.
4007         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4008
4009         * libio/wfiledoalloc.c: Only allocate external buffer if this
4010         hasn't happened yet.
4011
4012         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4013         something in the buffer.  gconv call can write up to end of the
4014         buffer, not only _IO_write_end.
4015         (_IO_wfile_overflow): Allocate also external buffer.
4016
4017 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4018
4019         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4020         strings with precision in vfwprintf correctly.
4021         * stdio-common/vfprintf.c: Fix completely broken handling of
4022         unbuffered wide character streams.
4023         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4024
4025         * resolv/Makefile (distribute): Add README.
4026
4027         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4028
4029 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4030
4031         Update resolver code to BIND 8.2.3-T5B.
4032
4033         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4034         __res_nclose.
4035         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4036         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4037         __res_search.
4038         * resolv/Banner: BIND-8.2.3-T5B.
4039
4040         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4041         * resolv/herror.c: Likewise.
4042         * resolv/inet_addr.c: Likewise.
4043         * resolv/inet_net_ntop.c: Likewise.
4044         * resolv/inet_net_pton.c: Likewise.
4045         * resolv/inet_neta.c: Likewise.
4046         * resolv/inet_ntop.c: Likewise.
4047         * resolv/nsap_addr.c: Likewise.
4048         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4049         IPv6 addresses (ISC bug #520).
4050
4051         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4052         * resolv/ns_parse.c: Likewise.
4053         * resolv/ns_netint.c: Likewise.
4054         * resolv/ns_samedomain.c: Likewise.
4055         * resolv/ns_ttl.c: Likewise.
4056         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4057         RCS ID in object file.
4058
4059         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4060         * resolv/res_mkquery.c: Likewise.
4061         * resolv/res_query.c: Likewise.
4062         * resolv/res_init.c: Likewise.
4063         (res_setoptions): Mark internal.
4064         * resolv/res_send.c: Likewise.
4065         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4066         by using poll instead.
4067         * resolv/res_comp.c: Likewise.
4068         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4069         weak alias for __dn_expand.
4070         * resolv/res_data.c: Likewise.
4071         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4072         in _res.options.  Avoids a potential security risk by avoiding a
4073         close (0).
4074         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4075         res_mkquery, res_query, res_querydomain adn res_search weak
4076         aliases for __res_mkquery, __res_query, __res_querydomain and
4077         __res_search.
4078         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4079         instead to avoid close(0).
4080         (res_init): Always use the static resolver context.
4081         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4082         alias for __res_init.
4083
4084         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4085         RES_SET_H_ERRNO and accompanying comment to...
4086         * include/resolv.h: ... here.
4087
4088         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4089         * resolv/arpa/nameser_compat.h: Likewise.
4090
4091 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4092
4093         * nss/makedb.c (main): Compare result of load_db with
4094         NSS_STATUS_SUCCESS and not 0.
4095         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4096
4097         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4098
4099 2000-07-18  Greg McGary  <greg@mcgary.org>
4100
4101         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4102         (EXTEND_BUFFER): Use it.
4103
4104 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4105
4106         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4107         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4108         __builtin_return_address.
4109         * dlfcn/dlopenold.c: Likewise.
4110         * dlfcn/dlsym.c: Likewise.
4111         * dlfcn/dlvsym.c: Likewise.
4112         * elf/dl-profstub.c: Likewise.
4113         * malloc/malloc.c: Likewise.
4114         * sysdeps/generic/machine-gmon.h: Likewise.
4115         Based on a patch by schwidefsky@de.ibm.com.
4116
4117 2000-07-18  Andreas Jaeger  <aj@suse.de>
4118
4119         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4120         NULL to elf_machine_fixup_plt t argument to silence GCC.
4121
4122         * include/string.h: Add prototype for __memchr.
4123
4124         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4125
4126         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4127         instead of memrchr.
4128
4129 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4130
4131         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4132
4133         * locale/C-ctype.c: Add initializers for gap elements.
4134         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4135         for gap elements.
4136
4137 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4138
4139         * nscd/nscd.c (print_version): Update copyright year.
4140
4141 2000-07-17  Greg McGary  <greg@mcgary.org>
4142
4143         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4144         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4145         signature argnames with angle-brackets for use as word delimiters,
4146         and to induce syntax errors for any args not handled.  Split
4147         multi-echo echoes and comment each stage.
4148         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4149         * sysdeps/unix/inet/syscalls.list: Likewise.
4150         * sysdeps/unix/mman/syscalls.list: Likewise.
4151         * sysdeps/unix/syscalls.list: Likewise.
4152         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4153         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4154         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4155         * sysdeps/unix/sysv/syscalls.list: Likewise.
4156         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4157
4158         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4159         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4160         qualifiers.  Don't check NULL-terminator of argv & envp.
4161         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4162         unbounded pointer type in word-size assertion.
4163         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4164         cases to stifle warnings.
4165
4166         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4167         _IO_file_attach.
4168         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4169
4170         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4171         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4172         ptr as __unbouned.
4173
4174         * Makerules (o-objects): Supplement with $(o-objects$o).
4175         * string/Makefile (o-objects.ob): Add variable to pull
4176         unbounded versions of memcpy, memset and memchr into libc_b.
4177
4178         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4179         rather than non-existent __ubp_memchr.
4180         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4181         (_CHECK_STRING, _CHECK_N): New macros.
4182         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4183         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4184         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4185         Add weak alias "memchr".
4186         * sysdeps/generic/memchr.c: Likewise.
4187         * sysdeps/i386/memchr.S: Likewise.
4188         * sysdeps/ia64/memchr.S: Likewise.
4189         * sysdeps/m68k/memchr.S: Likewise.
4190         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4191         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4192         * sysdeps/vax/memchr.s: Likewise.
4193
4194         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4195
4196         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4197         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4198         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4199         __BOUNDED_POINTERS__.
4200         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4201         for __BOUNDED_POINTERS__.
4202
4203 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4204
4205         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4206         field of struct __gconv_trans_data differently.  Don't pass NULL to
4207         trans_init_fct.  Simplify list append operation.
4208
4209 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4210
4211         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4212         not only those having tsearch.
4213
4214 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4215
4216         * locale/langinfo.h: Add placeholder values in enum for removed
4217         LC_CTYPE entries.
4218
4219 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4220
4221         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4222         chain if the PHDR check fails.
4223
4224 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4225
4226         * nss/getent.c (print_hosts): Make sure we always print a space
4227         between numeric addresses and hostnames.
4228
4229 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4230
4231         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4232         i.e. if n_mmaps_max>0.
4233
4234 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4235
4236         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4237         values to remove possible clash with other AI_* constants.
4238         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4239         hexadecimal constants to stress the fact they're in fact
4240         bit flags.
4241
4242 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4243
4244         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4245         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4246         instead of res_init.
4247
4248 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4249
4250         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4251         parameters of memset calls to avoid warnings.
4252
4253 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4254
4255         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4256         necessary.
4257
4258         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4259         Patch by Greg McGary <greg@mcgary.org>.
4260
4261         * io/Makefile (tests): Add tst-getcwd.
4262         * io/tst-getcwd.c: New file.
4263
4264         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4265
4266 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4267
4268         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4269         structure.
4270
4271 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4272
4273         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4274         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4275
4276 2000-07-12  H.J. Lu  <hjl@gnu.org>
4277
4278         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4279         GLIBC_2.2.
4280         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4281         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4282         (sysdep-routines): Add clone2.
4283         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4284
4285 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4286
4287         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4288         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4289
4290 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4291
4292         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4293         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4294         Change type of si_band from "int" to "long".
4295         (si_imm) [USE_GNU]: Define
4296         (si_isr) [USE_GNU]: Ditto.
4297         (ILL_BREAK) [USE_GNU]: Ditto.
4298         (FPE_DECOVF) [USE_GNU]: Ditto.
4299         (FPE_DECDIV) [USE_GNU]: Ditto.
4300         (FPE_DECERR) [USE_GNU]: Ditto.
4301         (FPE_INVASC) [USE_GNU]: Ditto.
4302         (FPE_INVDEC) [USE_GNU]: Ditto.
4303         (TRAP_BRANCH) [USE_GNU]: Ditto.
4304         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4305
4306 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4307
4308         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4309         bits/sigcontext as struct mcontext does not depend on it.
4310
4311         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4312
4313 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4314
4315         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4316
4317 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4318
4319         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4320
4321 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4322
4323         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4324
4325 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4326
4327         * intl/Makefile (test-srcs): Add tst-translit.
4328         (tests): Likewise.
4329         Add rules to build and run tst-translit.
4330         * intl/tst-translit.c: New file.
4331         * intl/tst-translit.sh: New file.
4332         * intl/translit.po: New file.
4333
4334 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4335
4336         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4337         transliteration function did its job, continue, don't stop.
4338
4339         * iconvdata/iso646.c: Little optimizations in body for conversion
4340         from UCS4.
4341
4342 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4343
4344         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4345
4346 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4347
4348         * configure.in: Check for pwd binary.
4349         * config.make.in: Add PWD_P to be subsituted.
4350         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4351
4352 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4353
4354         * iconvdata/Makefile (modules): Add GB18030.
4355         (distribute): Add gb18030.c.
4356         * iconvdata/gconv-modules: Add entries for GB18030 module.
4357         * iconvdata/gb18030.c: New file.
4358         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4359         and Wu Jian.
4360
4361 2000-07-13  Andreas Jaeger  <aj@suse.de>
4362
4363         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4364         patch.
4365
4366         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4367         * inet/getnetgrent.c (free_mem): Likewise.
4368         * misc/mntent.c (free_mem): Likewise.
4369         * nss/getXXbyYY.c (free_mem): Likewise.
4370         * nss/getXXent.c (free_mem): Likewise.
4371         * pwd/fgetpwent.c (free_mem): Likewise.
4372         * shadow/fgetspent.c (free_mem): Likewise.
4373
4374 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4375
4376         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4377         64-bit architecture correctly [PR libc/1794].
4378
4379 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4380
4381         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4382         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4383         report that we are out of memory.
4384         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4385         * elf/dl-libc.c (dlerror_run): Likewise.
4386         * elf/dl-open.c (_dl_open): Likewise.
4387         * elf/rtld.c (dl_main): Likewise.
4388         * elf/dl-error.c: Define _dl_out_of_memory.
4389         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4390         the error string.
4391         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4392         [PR libc/1813].
4393
4394         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4395
4396         * iconv/loop.c: Fix comment.
4397
4398         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4399
4400 2000-07-13  Andreas Jaeger  <aj@suse.de>
4401
4402         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4403         getcwd (NULL, size) with size > 0.
4404         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4405
4406 2000-07-13  Andreas Jaeger  <aj@suse.de>
4407
4408         * posix/Makefile: Remove build rules for libposix.
4409
4410 2000-07-13  Andreas Schwab  <schwab@suse.de>
4411
4412         * sysdeps/generic/glob.c (glob): Fix memory leak.
4413         [SHELL]: Remove reference to undefined variable `files'.
4414         Fixes PR libc/1782.
4415
4416 2000-07-13  Andreas Jaeger  <aj@suse.de>
4417
4418         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4419         functions.
4420
4421         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4422         memory if it was allocated.
4423
4424 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4425
4426         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4427         step.
4428
4429         * iconv/gconv_open.c (__gconv_open): Reapply
4430         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4431
4432                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4433
4434         * iconv/gconv_open.c: Undo last two changes for now.  They break
4435         everything.
4436
4437 2000-07-12  Andreas Jaeger  <aj@suse.de>
4438
4439         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4440         compiler.
4441         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4442         (CFLAGS-dl-cache.c): Likewise.
4443         (CFLAGS-ldconfig.c): Added, passes directory locations.
4444
4445         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4446         locate cache.
4447         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4448         (main): Use configured LIBDIR and SLIBDIR.
4449
4450 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4451
4452         * math/bits/cmathcalls.h (cimag): Add __THROW.
4453         (creal, conj): Likewise.
4454         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4455         by negative value.
4456
4457 2000-07-12  H.J. Lu  <hjl@gnu.org>
4458
4459         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4460         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4461
4462 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4463
4464         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4465         it is wrong.
4466
4467 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4468
4469         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4470
4471 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4472
4473         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4474         __modname.
4475
4476 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4477
4478         * iconv/gconv_open.c (__gconv_open): Initialize
4479         result->__steps[cnt].__data.
4480
4481 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4482
4483         * nss/getent.c (services_keys): Pass port number in network byte
4484         order in call to getservbyport.
4485
4486 2000-07-11  Andreas Jaeger  <aj@suse.de>
4487
4488         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4489         source dir.
4490         * intl/Makefile (do-gettext-test): Likewise.
4491         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4492
4493 2000-07-11  Andreas Schwab  <schwab@suse.de>
4494
4495         * Makeconfig (run-program-prefix): New rule.
4496         (built-program-cmd): Use run-program-prefix.
4497
4498 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4499
4500         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4501         and NOEXPR unconditionally available.
4502
4503 2000-07-12  Greg McGary  <greg@mcgary.org>
4504
4505         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4506         * sysdeps/posix/open64.c: Likewise.
4507         * sysdeps/generic/fegetenv.c: Likewise.
4508         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4509         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4510         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4511         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4512         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4513         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4514
4515 2000-07-11  Greg McGary  <greg@mcgary.org>
4516
4517         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4518         Add extra level of macro expansion.
4519         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4520         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4521         is available at the time `select' prototype is declared.
4522         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4523         Collect non-versioned weak aliases.  Consider only non-versioned
4524         aliases for the user-visible systemcall name.  Do checks inline with
4525         call to primitive system call.
4526         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4527         stand-alone bounds checks to suppress unused value warnings.
4528         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4529
4530 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4531
4532         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4533         file descriptor checking in SUID programs for the Hurd.
4534
4535         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4536         res_hostalias instead of __hostalias for thread-safety.
4537
4538 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4539
4540         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4541         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4542
4543 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4544
4545         * include/features.h: Include ISO C99 features if the compiler used
4546         is an ISO C99 compiler.
4547         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4548
4549 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4550
4551         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4552
4553 2000-07-10  Andreas Jaeger  <aj@suse.de>
4554
4555         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4556         it's overridden by libpthreads.
4557         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4558         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4559         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4560         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4561         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4562
4563         * malloc/Makefile: Run tst-mtrace only with shared libs.
4564
4565         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4566         with shared libs.
4567
4568 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4569
4570         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4571         that gpreg really points to the GOT section of the calling object.
4572         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4573         checking a start address of first one.
4574         Fix typos.
4575         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4576         Likewise.
4577
4578         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4579
4580 2000-07-10  Andreas Jaeger  <aj@suse.de>
4581
4582         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4583         (string_alias->strong_alias).
4584
4585 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4586
4587         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4588
4589 2000-07-07  Greg McGary  <greg@mcgary.org>
4590
4591         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4592         have no names without leading underscores.
4593
4594 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4595
4596         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4597         U007E.
4598
4599         * stdio-common/Makefile (tests): Remove tst-printf here...
4600         (tests-srcs): ...and add it here.
4601         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4602         Add rules to run tst-printf.sh.
4603         * stdio-common/tst-printf.c: Move code around so that there is really
4604         no further output where it's stated.
4605         * stdio-common/tst-printf.sh: New file.
4606
4607 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4608
4609         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4610         (do_write): Renamed from pwrite.
4611         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4612         `struct _IO_cookie_file'.
4613
4614 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4615
4616         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4617         detected.
4618         * malloc/tst-mtrace.sh: Run mtrace script.
4619
4620 2000-07-07  Greg McGary  <greg@mcgary.org>
4621
4622         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4623         Move all three components of a bounded pointer.
4624
4625 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4626
4627         * locale/programs/locale.c (write_locales): Don't simply add all
4628         directories found in the subdir, test whether at least the
4629         LC_CTYPE file is in there.
4630
4631 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4632
4633         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4634         * iconvdata/euc-kr.c: Likewise.
4635
4636         * stdio-common/vfprintf.c (process_string_arg): Check result of
4637         wcrtomb call and bail out if it failed.
4638
4639         * malloc/Makefile (test-srcs): Add tst-mtrace.
4640         (distribute): Add tst-mtrace.sh.
4641         Add rule to run tst-mtrace.sh.
4642         * malloc/tst-mtrace.c: New file.
4643         * malloc/tst-mtrace.sh: New file.
4644
4645         * include/signal.h: Declare __libc_sigaction.
4646         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4647         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4648         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4649         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4650         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4651         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4652         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4653
4654         * configure.in: Fix CFLAGS-memprofstat.c definition after
4655         2000-06-19 change.
4656         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4657
4658 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4659
4660         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4661         instead of NULL to elf_machine_fixup_plt t argument.
4662         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4663         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4664         cast.
4665
4666 2000-07-06  Andreas Jaeger  <aj@suse.de>
4667
4668         * crypt/Makefile (LDLIBS-cert): Removed.
4669         (LDLIBS-md5c-test): Removed.
4670         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4671         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4672
4673 2000-07-06  Andreas Jaeger  <aj@suse.de>
4674
4675         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4676         of the proc system is "proc".
4677
4678         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4679         thread library for static programs.
4680
4681 2000-07-06  Greg McGary  <greg@mcgary.org>
4682
4683         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4684         New macros.
4685         * sysdeps/generic/strcpy.c: Add bounds checks.
4686         * sysdeps/unix/fxstat.c: Likewise.
4687         * sysdeps/unix/xstat.c: Likewise.
4688         * sysdeps/unix/common/lxstat.c: Likewise.
4689         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4690         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4691         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4692         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4693         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4694         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4695         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4696         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4697         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4698         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4699         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4700         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4701         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4702         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4703         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4704         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4705         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4706         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4707         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4708         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4709         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4710         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4711         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4712         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4713         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4714         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4715         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4716         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4717         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4718         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4719         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4720         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4721         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4722         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4723         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4724         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4725         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4726         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4727         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4728         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4729         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4730         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4731         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4732         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4733         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4734         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4735         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4736         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4737         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4738         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4739         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4740         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4741         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4742         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4743         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4744         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4745         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4746         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4747         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4748         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4749         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4750         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4751         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4752         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4753
4754         * string/endian.h (__LONG_LONG_PAIR): New macro.
4755         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4756         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4757         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4758         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4759         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4760         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4761         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4762         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4763         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4764         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4765         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4766         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4767
4768         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4769
4770 2000-07-06  Andreas Jaeger  <aj@suse.de>
4771
4772         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4773         Initialize result.
4774
4775         * math/test-fpucw.c: Include <stdio.h> for printf.
4776
4777 2000-07-05  Greg McGary  <greg@mcgary.org>
4778
4779         * sysdeps/generic/bp-checks.h: New file.
4780         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4781         with list of #include files.
4782         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4783         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4784         Don't generate BP thunk if `V' appears in signature.
4785         Generate thunks with complete bounds checks.
4786         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4787         * sysdeps/unix/inet/syscalls.list: Likewise.
4788         * sysdeps/unix/mman/syscalls.list: Likewise.
4789         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4790         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4791         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4792         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4793
4794 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4795
4796         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4797         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4798         If mount not in the file fall back on /proc.
4799
4800         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4801         string got copied in.
4802         Patch by Solar Designer <solar@false.com>.
4803
4804 2000-07-05  Andreas Jaeger  <aj@suse.de>
4805
4806         * manual/install.texi (Installation): Update information about
4807         add-ons.
4808         (Configuring and compiling): Update for glibc 2.2.
4809
4810 2000-07-04  Andreas Jaeger  <aj@suse.de>
4811
4812         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4813         (_FPU_IEEE): Likewise.
4814
4815         * math/Makefile (tests): Add test-fpucw.
4816
4817         * math/test-fpucw.c (main): New file.
4818
4819 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4820
4821         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4822
4823         * locale/programs/ld-collate.c (collate_output): Also write out the
4824         collation sequence values and the wide character string for the
4825         collation symbol table.
4826
4827         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4828         * posix/fnmatch_loop.c: Implement collating symbol handling.
4829         * posix/tst-fnmatch.input: Add more tests, especially for collating
4830         symbol handling.
4831
4832         * posix/regex.c: Fix comment.
4833
4834 2000-07-05  Andreas Jaeger  <aj@suse.de>
4835
4836         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4837         (_FPU_GETCW): Remove extra colon.
4838         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4839
4840         * posix/fnmatch_loop.c (FCT): Only declare len if
4841         !WIDE_CHAR_VERSION to silence GCC.
4842
4843         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4844         prototype.
4845         * sysdeps/generic/strchrnul.c: Likewise.
4846         * sysdeps/generic/strlen.c: Likewise.
4847         * sysdeps/generic/strchr.c: Likewise.
4848         * sysdeps/generic/memchr.c: Likewise.
4849
4850 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4851
4852         * posix/fnmatch_loop.c: Implement equivalence class handling.
4853         * posix/tst-fnmatch.input: Add tests for equivalence class
4854         handling.
4855
4856         * posix/fnmatch_loop.c: Improve performance for single-byte
4857         character sets by not using btowc.
4858
4859         * posix/tst-fnmatch.input: Add tests for locale dependent
4860         behaviour.
4861         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4862
4863         * posix/tst-fnmatch.input: Add more test cases.
4864
4865         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4866         are not aligned to alignof(md5_uint32) do it before calling
4867         __md5_process_bytes.
4868         * crypt/md5.c: Make sure buffers are aligned.
4869         * crypt/md5.h: Likewise.
4870         Reported by Solar Designer <solar@false.com>.
4871
4872         * crypt/Makefile: Add dependencies for test programs.
4873
4874         * Rules: Define LC_ALL=C in environments of all programs we run.
4875
4876         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4877
4878 2000-07-03  H.J. Lu  <hjl@gnu.org>
4879
4880         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4881         is 2 + elem + offset, not 2 + elem + offset + 2.
4882
4883 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4884
4885         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4886         suite.
4887         * posix/Makefile (tests): Add tst-fnmatch.
4888         (tst-fnmatch-ENV): Define.
4889         * posix/tst-fnmatch.c: New file.
4890         * posix/tst-fnmatch.sh: New file.
4891
4892 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4893
4894         * locale/programs/charmap.c (charmap_read): Prepend
4895         the condition filename == NULL.
4896
4897 2000-07-03  Greg McGary  <greg@mcgary.org>
4898
4899         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4900
4901         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4902         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4903
4904         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4905         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4906         (FILEBUF_LITERAL): Add cast for CHAIN init.
4907         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4908         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4909         Revert type of `fp' to _IO_FILE*.
4910         (_IO_iter_file): Remove cast.
4911         (_IO_iter_next): Elide intermediate member reference.
4912
4913         * sysdeps/powerpc/strchr.S:  Check bounds.
4914         Wrap extern symbols in BP_SYM ().
4915
4916 2000-07-03  Andreas Jaeger  <aj@suse.de>
4917
4918         * dlfcn/Makefile (generated): New.
4919
4920 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4921
4922         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4923         (__uflow): Likewise.
4924         (__underflow): Likewise.
4925         * libio/wgenops.c (__wunderflow): Likewise.
4926         * stdio-common/tst-unbputc.c: New file.
4927         * stdio-common/tst-unbputc.sh: New file.
4928         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4929
4930         * po/en_GB.po: New file.
4931         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4932
4933 2000-07-01  Andreas Jaeger  <aj@suse.de>
4934
4935         * intl/Makefile (generated-dirs): New.
4936
4937         * elf/Makefile (generated): trusted-dirs.h is always generated,
4938         move out of build-shared condition.
4939         (generated): Merge the two entries for build-shared.
4940
4941 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4942
4943         * debug/Makefile (distribute): Add xtrace.sh.
4944
4945 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4946
4947         * version.h (VERSION): Bump to 2.1.91.
4948
4949         * configure.in: Update warning comment.  glibc should not be
4950         broken anymore.
4951
4952         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
4953         ioperm.c, sys/procfs.h, and sys/io.h.
4954
4955         * sysdeps/powerpc/Dist: Add bp-asm.h.
4956
4957         * assert/Depend: Add localedata.
4958         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
4959         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
4960
4961         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
4962         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
4963         relocation address to prevent unaligned trap.
4964         Suggested by Richard Henderson <rth@cygnus.com>.
4965
4966 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4967
4968         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
4969         if redirecting and either redirection is done using defines or
4970         not optimizing.
4971
4972 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4973
4974         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
4975         generated expressions.
4976         Patch by Darren McClelland <dmcclell@zetec.com>.
4977
4978         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
4979         since zic uses setlocale and gettext but we cannot make it use the
4980         new locale data since zic calls a shell which might not use the
4981         new libc.
4982
4983         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
4984         handling the internation currency symbol.  POSIX says that the
4985         fourth character is used to separate the currency symbol from the
4986         value.  Therefore it does not have to be printed.  But we cannot
4987         remove the space if the currency symbol is printed before the
4988         number since this is what many locales expect.
4989
4990         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
4991         whether this information is available.
4992
4993         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
4994         buffers in case the translation is too large.  Remember allocated
4995         memory blocks in a list.
4996         (free_mem): Free memory for translations.
4997
4998         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
4999
5000         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5001         information is available set the string length to zero.
5002
5003         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5004
5005 2000-06-30  Greg McGary  <greg@mcgary.org>
5006
5007         * sysdeps/powerpc/bp-asm.h: New file.
5008         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5009         Wrap extern symbols in BP_SYM ().
5010         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5011         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5012         * sysdeps/powerpc/setjmp.S: Likewise.
5013         * sysdeps/powerpc/add_n.S: Likewise.
5014         * sysdeps/powerpc/addmul_1.S: Likewise.
5015         * sysdeps/powerpc/lshift.S: Likewise.
5016         * sysdeps/powerpc/rshift.S: Likewise.
5017         * sysdeps/powerpc/mul_1.S: Likewise.
5018         * sysdeps/powerpc/sub_n.S: Likewise.
5019         * sysdeps/powerpc/submul_1.S: Likewise.
5020         * sysdeps/powerpc/strlen.S: Likewise.
5021         * sysdeps/powerpc/memset.S: Likewise.
5022         * sysdeps/powerpc/stpcpy.S: Likewise.
5023         * sysdeps/powerpc/strcmp.S: Likewise.
5024         * sysdeps/powerpc/strcpy.S: Likewise.
5025         * sysdeps/powerpc/elf/bzero.S: Likewise.
5026
5027         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5028         Line up operands column with tabs.
5029
5030 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5031
5032         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5033
5034         * sysdeps/ia64/htonl.S: New file.
5035         * sysdeps/ia64/htons.S: New file.
5036         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5037         floating point registers.
5038         Patches by Dan Pop <Dan.Pop@cern.ch>.
5039
5040 2000-06-30  Andreas Jaeger  <aj@suse.de>
5041
5042         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5043         shared libraries.
5044
5045         * io/Makefile (CFLAGS-test-lfs.c): New.
5046         (tests): Add test-lfs.
5047
5048         * io/test-lfs.c: New file.
5049
5050 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5051
5052         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5053         instruction.
5054
5055 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5056
5057         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5058
5059 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5060
5061         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5062         alias to the fstatfs call.
5063
5064         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5065         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5066
5067         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5068         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5069
5070         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5071         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5072         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5073         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5074
5075         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5076         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5077
5078         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5079         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5080
5081         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5082         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5083
5084         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5085
5086 2000-06-29  Andreas Jaeger  <aj@suse.de>
5087
5088         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5089         with syslog.
5090         (print_err_message): Likewise.
5091         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5092
5093 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5094
5095         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5096         used as words is properly aligned.
5097
5098         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5099         data files.
5100
5101 2000-06-29  Greg McGary  <greg@mcgary.org>
5102
5103         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5104         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5105         length 7..9, just in case...
5106         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5107
5108         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5109         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5110         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5111         (PUSH_SIGNAL_MASK): New macro.
5112         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5113         LEAVE is unnecessary.  Check bounds of jmp_buf.
5114         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5115         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5116         immediately before tail-call.
5117         * sysdeps/i386/setjmp.S: Likewise.
5118         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5119         * sysdeps/i386/bsd-setjmp.S: Likewise.
5120
5121 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5122
5123         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5124         versioned_symbol.
5125         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5126         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5127         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5128         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5129         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5130         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5131         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5132         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5133
5134 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5135
5136         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5137         we later need to calling free().
5138         Patch by Matt Wilson <msw@redhat.com>.
5139
5140         * stdio-common/tst-printf.c: Add test for above problem.
5141
5142 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5143
5144         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5145         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5146
5147 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5148
5149         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5150         prototype for abs().
5151         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5152
5153 2000-06-23  Andreas Jaeger  <aj@suse.de>
5154
5155         * config.h.in: Don't use regparm with bounded pointers.
5156
5157 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5158
5159         * stdlib/grouping.h: Correctly handle multibyte thousands
5160         separator and decimal point.
5161         * stdlib/stdtod.c: Likewise.
5162         * sysdeps/generic/strtol.c: Likewise.
5163
5164         * locale/categories.def: Add entries for wide character decimal point
5165         and thousands separator in numeric and monetary category.
5166
5167 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5168
5169         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5170         second definition and initialization of decimal.
5171
5172 2000-06-28  Greg McGary  <greg@mcgary.org>
5173
5174         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5175         out.
5176         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5177         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5178         in.
5179         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5180         (struct _IO_FILE_plus *).
5181         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5182         THIS, since _IO_JUMPS no longer does it implicitly.
5183         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5184         arg type as (struct _IO_FILE_plus *).
5185         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5186         arg as (_IO_strfile *).
5187         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5188         Declare 1st arg as (_IO_strfile *).
5189         * libio/fileops.c (_IO_new_file_init): Declare
5190         arg type as (struct _IO_FILE_plus *).
5191         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5192         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5193         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5194         Declare iteration pointer as (struct _IO_FILE_plus *).
5195         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5196                 (struct _IO_FILE_plus *).
5197         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5198         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5199         (_IO_check_libio): Set user-visible handles to
5200         (struct _IO_FILE_plus *).
5201         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5202         to (struct _IO_FILE_plus *).
5203
5204         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5205         whose high bound includes vtable to all functions that will use
5206         vtable.  For streambufs, pass pointer whose bounds include struct
5207         _IO_strfile.
5208         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5209         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5210         * libio/iofopen.c (_IO_new_fopen): Likewise.
5211         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5212         * libio/iofopen64.c (_IO_fopen64): Likewise.
5213         * libio/iopopen.c (_IO_new_popen): Likewise.
5214         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5215         * libio/memstream.c (open_memstream): Likewise.
5216         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5217         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5218         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5219         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5220         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5221         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5222         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5223         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5224         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5225         * stdlib/strfmon.c (__strfmon_l): Likewise.
5226         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5227         (vfprintf): Qualify computed-goto targets as unbounded.
5228
5229 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5230
5231         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5232         thousands separator correctly.
5233
5234         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5235         * stdio-common/vfwscanf.c: Likewise.
5236
5237 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5238
5239         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5240         count into signatures for most calls.
5241
5242 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5243
5244         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5245         the generic parser now.
5246
5247 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5248
5249         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5250         table entries are 32 bit on the ia64 (as specified by the ABI),
5251         not 64 bit as on the Alpha.
5252
5253         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5254         change of objects to use 32 bit hash table indices (see above).
5255
5256 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5257
5258         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5259         prototype for abs().
5260
5261 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5262
5263         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5264         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5265         may have been reached.
5266
5267 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5268
5269         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5270         symbols in multi-character weights correctly.
5271
5272         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5273         depending on whether the input string is empty or not.
5274
5275         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5276         given state and not avoiding this by modifying a local object.
5277         * wcsmbs/wcrtomb.c: Likewise.
5278
5279         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5280         object since some incomplete characters might be in there.
5281
5282         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5283         sequences with first byte 0x8e correctly.
5284
5285         * iconvdata/jis0208.h: Remove redundant test.
5286
5287 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5288
5289         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5290         Add it where it is needed now.
5291
5292         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5293         the input charset into account when generating the hash table.
5294         (allocate_arrays): Correct setting default width.  Not all empty slots
5295         in the table are filled, only those not covert explicitly by the
5296         locale description and in the charset.
5297
5298         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5299         return values from the wctrans function.
5300
5301         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5302         wide character version.
5303         For %C handling, test correct pointer variable for NULL.
5304
5305         * wcsmbs/wctob.c: Handle WEOF special.
5306
5307         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5308
5309         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5310         always-true test to avoid warning.
5311
5312 2000-06-27  Greg McGary  <greg@mcgary.org>
5313
5314         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5315         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5316         (symbol_version, default_symbol_version): Factor redundant
5317         definitions out of conditional.
5318
5319 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5320
5321         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5322         not obstack_blank.
5323
5324 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5325
5326         * include/libc-symbols.h (symbol_version): Add extra level of
5327         macro expansion.
5328         (default_symbol_version): Likewise.
5329
5330 2000-06-26  Greg McGary  <greg@mcgary.org>
5331
5332         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5333         for BP return value & push implicit struct-return pointer to
5334         __errno_location.
5335         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5336         (SYSCALL_ERROR_HANDLER): Likewise.
5337         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5338         (SYSCALL_ERROR_HANDLER): Likewise.
5339
5340         * Makeconfig: Add missing comment.
5341         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5342         BP-flavored startup object.
5343         ($(objpfx)b$(start-installed-name)): New rule.
5344         * include/libc-symbols.h (symbol_set_declare): Change type
5345         of `__start_##set' and `__stop_##set' to pointer-to-function.
5346         (symbol_set_declare): Change type of `set' to array of
5347         pointer-to-function.
5348         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5349         pointer-to-function.
5350
5351         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5352
5353         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5354         Remove clock_* and timer_* entries.
5355         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5356         arg-count with signatures.
5357
5358         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5359         Check bounds of arguments.
5360         * sysdeps/i386/addmul_1.S: Likewise.
5361         * sysdeps/i386/lshift.S: Likewise.
5362         * sysdeps/i386/mul_1.S: Likewise.
5363         * sysdeps/i386/rshift.S: Likewise.
5364         * sysdeps/i386/sub_n.S: Likewise.
5365         * sysdeps/i386/submul_1.S: Likewise.
5366         * sysdeps/i386/i586/add_n.S: Likewise.
5367         * sysdeps/i386/i586/addmul_1.S: Likewise.
5368         * sysdeps/i386/i586/lshift.S: Likewise.
5369         * sysdeps/i386/i586/rshift.S: Likewise.
5370         * sysdeps/i386/i586/sub_n.S: Likewise.
5371         * sysdeps/i386/i686/add_n.S: Likewise.
5372
5373         * sysdeps/i386/memchr.S: Likewise.
5374         * sysdeps/i386/memcmp.S: Likewise.
5375         * sysdeps/i386/rawmemchr.S: Likewise.
5376         * sysdeps/i386/i586/bzero.S: Likewise.
5377         * sysdeps/i386/i586/memcpy.S: Likewise.
5378         * sysdeps/i386/i586/mempcpy.S: Likewise.
5379         * sysdeps/i386/i586/memset.S: Likewise.
5380         * sysdeps/i386/i686/bzero.S: Likewise.
5381         * sysdeps/i386/i686/memcpy.S: Likewise.
5382         * sysdeps/i386/i686/mempcpy.S: Likewise.
5383         * sysdeps/i386/i686/memset.S: Likewise.
5384
5385         * sysdeps/i386/stpcpy.S: Likewise.
5386         * sysdeps/i386/stpncpy.S: Likewise.
5387         * sysdeps/i386/strchr.S: Likewise.
5388         * sysdeps/i386/strchrnul.S: Likewise.
5389         * sysdeps/i386/strcspn.S: Likewise.
5390         * sysdeps/i386/strpbrk.S: Likewise.
5391         * sysdeps/i386/strrchr.S: Likewise.
5392         * sysdeps/i386/strspn.S: Likewise.
5393         * sysdeps/i386/strtok.S: Likewise.
5394         * sysdeps/i386/strtok_r.S: Likewise.
5395         * sysdeps/i386/i486/strcat.S: Likewise.
5396         * sysdeps/i386/i486/strlen.S: Likewise.
5397         * sysdeps/i386/i586/strchr.S: Likewise.
5398         * sysdeps/i386/i586/strcpy.S: Likewise.
5399         * sysdeps/i386/i586/strlen.S: Likewise.
5400         * sysdeps/i386/i686/strcmp.S: Likewise.
5401         * sysdeps/i386/i686/strtok.S: Likewise.
5402         * sysdeps/i386/i686/strtok_r.S: Likewise.
5403
5404         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5405         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5406         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5407         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5408         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5409
5410         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5411         * sysdeps/i386/mul_1.S: Likewise.
5412         * sysdeps/i386/submul_1.S: Likewise.
5413         * sysdeps/i386/i586/add_n.S: Likewise.
5414         * sysdeps/i386/i586/addmul_1.S: Likewise.
5415         * sysdeps/i386/i586/lshift.S: Likewise.
5416         * sysdeps/i386/i586/mul_1.S: Likewise.
5417         * sysdeps/i386/i586/rshift.S: Likewise.
5418         * sysdeps/i386/i586/sub_n.S: Likewise.
5419         * sysdeps/i386/i586/submul_1.S: Likewise.
5420
5421 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5422
5423         * rt/Makefile (librt-routines): Add clock_nanosleep.
5424         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5425         * sysdeps/generic/clock_nanosleep.c: New file.
5426         * sysdeps/unix/clock_nanosleep.c: New file.
5427         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5428         * time/time.h: Declare clock_nanosleep.
5429
5430 2000-06-26  Greg McGary  <greg@mcgary.org>
5431
5432         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5433         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5434         (ALIGN): Cleanup surrounding conditionals.
5435
5436         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5437         Call ENTER/LEAVE macros.
5438         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5439         * sysdeps/i386/submul_1.S: Likewise.
5440
5441         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5442         syntax.  Define & use symbolic argument stack offsets.  Call
5443         ENTER/LEAVE macros.
5444         * sysdeps/i386/i586/mul_1.S: Likewise.
5445         * sysdeps/i386/i586/submul_1.S: Likewise.
5446
5447 2000-06-25  Greg McGary  <greg@mcgary.org>
5448
5449         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5450         not as bcopy.
5451
5452 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5453
5454         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5455         * iconvdata/gen-8bit-gap.sh: Likewise.
5456         * iconvdata/gen-8bit.sh: Likewise.
5457
5458         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5459
5460         * locale/programs/ld-collate.c (collate_read): Don't actually read
5461         the copy locale if we are ignoring the content.
5462
5463         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5464         unknown character.
5465
5466         * locale/programs/ld-collate.c: Correct handling of different
5467         collation sections.
5468         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5469         as extra parameter from which to copy category information.
5470         Change all callers.
5471         (load_locale): Likewise.
5472         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5473         and load_locale.
5474         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5475         * locale/programs/locfile.h: Likewise.
5476         * locale/programs/locfile-kw.gperf: Add entry for script.
5477         * locale/programs/locfile-token.h: Add tok_script.
5478
5479         * locale/programs/locale.c: Update copyright year.
5480         * locale/programs/localedef.c: Likewise.
5481
5482 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5483
5484         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5485         Jens Moeller <jens.moeller@waii.com>.
5486
5487 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5488
5489         * locale/programs/ld-name.c (name_finish): Add missing format
5490         specifier to test for name_fmt.
5491
5492         * locale/programs/ld-address.c (iso639): Correct length of string
5493         elements.
5494         (iso3166): Likewise.
5495
5496         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5497
5498         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5499         Define.
5500
5501         * elf/elf.h (NT_PRFPXREG): Define.
5502
5503 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5504
5505         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5506         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5507
5508 2000-06-23  Andreas Schwab  <schwab@suse.de>
5509
5510         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5511         with signatures.
5512
5513 2000-06-23  Andreas Jaeger  <aj@suse.de>
5514
5515         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5516
5517         * io/test-stat.c: Add copyright header, mention Maciej.
5518
5519         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5520         SYS_mincore, SYS_madvise): Added.
5521
5522         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5523         execve.
5524
5525 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5526
5527         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5528         (CFLAGS-tst_putwc.c): New definition.
5529         * libio/tst_getwc.c: New file.
5530         * libio/tst_getwc.input: New file.
5531         * libio/tst_putwc.c: New file.
5532
5533         * include/string.h: Add prototype for __strdup.
5534
5535 2000-06-22  Greg McGary  <greg@mcgary.org>
5536
5537         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5538         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5539         Fix signatures.
5540
5541 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5542
5543         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5544
5545 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5546
5547         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5548
5549 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5550
5551         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5552         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5553
5554 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5555
5556         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5557         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5558         and __S_TYPEISSHM.
5559         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5560         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5561         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5562         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5563         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5564         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5565         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5566         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5567         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5568         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5569         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5570         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5571         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5572         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5573         S_TYPEISSHM.
5574
5575 2000-06-22  Andreas Jaeger  <aj@suse.de>
5576
5577         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5578         with signatures.
5579
5580         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5581
5582         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5583
5584 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5585
5586         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5587         ahead.
5588
5589 2000-06-21  Greg McGary  <greg@mcgary.org>
5590
5591         * Makerules (elide-routines.*, elide-bp-thunks):
5592         Define unconditionally.
5593
5594 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5595
5596         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5597
5598 2000-06-21  Andreas Jaeger  <aj@suse.de>
5599
5600         * io/Makefile (tests): Add test-stat.
5601         (CFLAGS-test-stat.c): New.
5602
5603         * io/test-stat.c: New file from Maciej W. Rozycki
5604         <macro@ds2.pg.gda.pl>.
5605
5606 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5607
5608         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5609         in __rlimit_resource to make them match the kernel order.
5610         rlim_t is always 64 bit, use __rlim64_t to declare it
5611         unconditionally.
5612
5613 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5614
5615         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5616         RLIM_INFINITY before defining it to avoid clash with kernel header
5617
5618 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5619
5620         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5621
5622 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5623
5624         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5625
5626 2000-06-21  Andreas Jaeger  <aj@suse.de>
5627
5628         * stdio-common/temptest.c: Include <stdlib.h>.
5629         * stdio-common/tst-fileno.c: Likewise.
5630         * stdio-common/scanf4.c: Likewise.
5631         * stdio-common/scanf5.c: Likewise.
5632         * time/clocktest.c: Likewise.
5633         * posix/test-vfork.c: Likewise.
5634         * posix/globtest.c: Likewise.
5635         * io/test-utime.c: Likewise.
5636         * wctype/test_wcfuncs.c: Likewise.
5637         * crypt/cert.c: Likewise.
5638
5639         * stdio-common/tst-printfsz.c: Include <string.h>.
5640         * libio/tst_swscanf.c: Likewise.
5641         * libio/tst_wscanf.c: Likewise.
5642         * posix/runtests.c: Likewise.
5643         * posix/tst-getaddrinfo.c: Likewise.
5644         * posix/wordexp-test.c: Likewise.
5645         * misc/tst-efgcvt.c: Likewise.
5646
5647         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5648         * nss/test-netdb.c: Likewise.
5649
5650         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5651         supported kernel for MIPS.
5652
5653         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5654         * rt/aio_suspend.c: Likewise.
5655
5656 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5657
5658         * math/libm-test.inc: Include <string.h>.
5659
5660 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5661
5662         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5663
5664 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5665
5666         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5667         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5668
5669 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5670
5671         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5672
5673 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5674
5675         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5676
5677 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5678
5679         * locale/programs/ld-collate.c (insert_value): Now take string and
5680         length instead of struct token* parameter.  Adjust use of token.
5681         (handle_ellipsis): Likewise.
5682         (collate_read): Allow <Uxxxx> names and transform them into names
5683         to be passed to insert_value and handle_ellipsis.
5684
5685         * locale/programs/ld-ctype.c (uninames): New array with names of
5686         digits in <Uxxxxxxxx> format.
5687         (ctype_finish): Correct search for space character value.  Likewise
5688         for default outdigits values.
5689
5690 2000-06-20  Greg McGary  <greg@mcgary.org>
5691
5692         * Makerules (objects): Add BP thunks.
5693
5694 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5695
5696         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5697         in width definitions.
5698
5699 2000-06-20  Andreas Jaeger  <aj@suse.de>
5700
5701         * sysdeps/mips/fpu/libm-test-ulps: New file.
5702
5703         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5704         first.
5705
5706         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5707
5708         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5709
5710 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5711
5712         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5713         change in gconv_builtin.h.
5714
5715         * malloc/Makefile: Change all references to memprof into memusage.
5716         * malloc/memprof.c: Rename to...
5717         * malloc/memusage.c: ...this.  New file.
5718         * malloc/memprof.sh: Rename to...
5719         * malloc/memusage.sh: ...this.  New file.
5720         * malloc/memprofstat.c: Rename to...
5721         * malloc/memusagestat.c: ...this.  New file.
5722         * sysdeps/alpha/memprof.h: Rename to..
5723         * sysdeps/alpha/memusage.h: ...this.  New file.
5724         * sysdeps/arm/memprof.h: Rename to..
5725         * sysdeps/arm/memusage.h: ...this.  New file.
5726         * sysdeps/generic/memprof.h: Rename to..
5727         * sysdeps/generic/memusage.h: ...this.  New file.
5728         * sysdeps/i386/memprof.h: Rename to..
5729         * sysdeps/i386/memusage.h: ...this.  New file.
5730         * sysdeps/ia64/memprof.h: Rename to..
5731         * sysdeps/ia64/memusage.h: ...this.  New file.
5732         * sysdeps/m68k/memprof.h: Rename to..
5733         * sysdeps/m68k/memusage.h: ...this.  New file.
5734         * sysdeps/mips/memprof.h: Rename to..
5735         * sysdeps/mips/memusage.h: ...this.  New file.
5736         * sysdeps/powerpc/memprof.h: Rename to..
5737         * sysdeps/powerpc/memusage.h: ...this.  New file.
5738         * sysdeps/sparc/memprof.h: Rename to..
5739         * sysdeps/sparc/memusage.h: ...this.  New file.
5740         * sysdeps/sh/memprof.h: Rename to..
5741         * sysdeps/sh/memusage.h: ...this.  New file.
5742
5743         * elf/sprof.c (print_version): Update year.
5744
5745         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5746         table entry values.  Use D_PTR.
5747         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5748         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5749
5750 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5751
5752         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5753         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5754         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5755         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5756
5757 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5758
5759         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5760
5761 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5762
5763         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5764         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5765         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5766
5767         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5768
5769         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5770         kernel change.
5771
5772         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5773         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5774         structure.
5775         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5776         implementation.
5777
5778 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5779
5780         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5781
5782 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5783
5784         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5785
5786 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5787
5788         * iconv/gconv_int.h (strict gconv_module): Remove all members
5789         associated with regular expressions.  Use a simple string as the
5790         from name.
5791         * iconv/gconv_db.c: Remove code handling regular expressions.
5792         * iconv/gconv_conf.c: Likewise.
5793         * iconv/iconv_prog.c: Likewise.
5794         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5795
5796         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5797         General namespace cleanup.
5798         (struct __gconv_trans_data): Add next field.
5799         (struct __gconv_step_data): Make __trans a pointer.
5800         * iconv/gconv_conf.c: Split out code to find gconv directories from
5801         __gconv_read_conf in new functions.
5802         * iconv/gconv_int.h: Define new data structure and declare new
5803         functions for handling of gconv directory list.
5804         * iconv/gconv_open.c: Allow more than one error handling step being
5805         used.  Call function to load error handling module if it is none
5806         of the builtin transformations.
5807         * iconv/gconv_close.c: Add code to free transliteration data.
5808         * iconv/gconv_trans.c: Add functions to load and unload modules
5809         implementing transliteration etc.
5810         * iconv/skeleton.c: Call all context functions now that more than
5811         one module is allowed.
5812         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5813         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5814         where the full error handling using transliteration is needed.
5815         * iconvdata/8bit-gap.c: Likewise.
5816         * iconvdata/8bit-generic.c: Likewise.
5817         * iconvdata/ansi_x3.110.c: Likewise.
5818         * iconvdata/big5.c: Likewise.
5819         * iconvdata/big5hkscs.c: Likewise.
5820         * iconvdata/euc-cn.c: Likewise.
5821         * iconvdata/euc-jp.c: Likewise.
5822         * iconvdata/euc-kr.c: Likewise.
5823         * iconvdata/euc-tw.c: Likewise.
5824         * iconvdata/gbgbk.c: Likewise.
5825         * iconvdata/gbk.c: Likewise.
5826         * iconvdata/iso-2022-cn.c: Likewise.
5827         * iconvdata/iso-2022-jp.c: Likewise.
5828         * iconvdata/iso-2022-kr.c: Likewise.
5829         * iconvdata/iso646.c: Likewise.
5830         * iconvdata/iso8859-1.c: Likewise.
5831         * iconvdata/iso_6937-2.c: Likewise.
5832         * iconvdata/iso_6937.c: Likewise.
5833         * iconvdata/johab.c: Likewise.
5834         * iconvdata/sjis.c: Likewise.
5835         * iconvdata/t.61.c: Likewise.
5836         * iconvdata/uhc.c: Likewise.
5837         * iconvdata/unicode.c: Likewise.
5838         * iconvdata/utf-16.c: Likewise.
5839         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5840         structure correctly after last change.
5841         * wcsmbs/btowc.c: Likewise.
5842         * wcsmbs/mbrtowc.c: Likewise.
5843         * wcsmbs/mbsnrtowcs.c: Likewise.
5844         * wcsmbs/mbsrtowcs.c: Likewise.
5845         * wcsmbs/wcrtomb.c: Likewise.
5846         * wcsmbs/wcsnrtombs.c: Likewise.
5847         * wcsmbs/wcsrtombs.c: Likewise.
5848         * wcsmbs/wctob.c: Likewise.
5849
5850         * localedata/Makefile: Set -Wno-format for some files since gcc does
5851         not know all the format specifiers.
5852
5853 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5854
5855         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5856         unneeded code.
5857         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5858
5859 2000-06-18  Andreas Jaeger  <aj@suse.de>
5860
5861         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5862         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5863
5864 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5865
5866         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5867         LINUX_LINK_MAX.
5868         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5869
5870         * locale/programs/ld-ctype.c (ctype_output): Really write out
5871         mboutdigits information.
5872         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5873         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5874         * localedata/tests/trans.def: Add outdigit information.
5875
5876         * localedata/tst-mbswcs3.c: Remove comment.
5877
5878         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5879         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5880         * libio/tst_wprintf.c (main): Add test for I flag.
5881
5882         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5883         * locale/langinfo.h: Add entries for translit_ignore information.
5884         * locale/categories.def: Add entries for new LC_CTYPE elements.
5885         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5886         pointer instead of "" where possible.
5887         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5888         * intl/Depend: Add localedata.
5889         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5890         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5891
5892 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5893
5894         * locale/langinfo.h: Add entries for default_missing information.
5895         * locale/C-ctype.c: Add initializers for new fields.
5896         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5897         information.
5898         * locale/categories.h: Add entries for all LC_CTYPE values.
5899         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5900         information.
5901
5902         * localedata/tst-trans.c: Write out an error message if class is
5903         not found.
5904
5905         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5906         * iconv/gconv_open.c: Remove error handling specification from `from'
5907         character set name.
5908         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5909         new parameter to always enable transliteration.
5910         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5911         change.
5912         (struct locale_data): Add new members use_translit and options.
5913         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5914         character set name contained modifier TRANSLIT.
5915         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5916         and options fields.
5917         (_nl_unload_locale): Free options string if necessary.
5918         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5919         the locale names suggested this.
5920         * locale/C-address.c: Add two new initialilzers to adjust data
5921         structure for new format.
5922         * locale/C-collate.c: Likewise.
5923         * locale/C-ctype.c: Likewise.
5924         * locale/C-identification.c: Likewise.
5925         * locale/C-measurement.c: Likewise.
5926         * locale/C-messages.c: Likewise.
5927         * locale/C-monetary.c: Likewise.
5928         * locale/C-name.c: Likewise.
5929         * locale/C-numeric.c: Likewise.
5930         * locale/C-paper.c: Likewise.
5931         * locale/C-telephone.c: Likewise.
5932         * locale/C-time.c: Likewise.
5933
5934         * locale/setlocale.c: Add some more __builtin_expect.
5935
5936 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5937
5938         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5939         unsigned char **.
5940         (__gconv_init_fct): Remove two parameters.
5941         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5942         gconv_transliterate.  Remove two parameters.
5943         Change prototypes of builtin functions according to __gconv_fct change.
5944         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5945         != NULL only during error handling.  Stop in this case after the
5946         conversion.
5947         * iconv/gconv_trans.c: Replace with real implementation for
5948         __gconv_transliterate.
5949         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
5950         * iconv/gconv.c: Change calls to downstream functions once again.
5951         Use NULL for the fifth parameter instead of pointer to output buffer.
5952         * libio/iofwide.c: Likewise.
5953         * wcsmbs/btowc.c: Likewise.
5954         * wcsmbs/mbrtowc.c: Likewise.
5955         * wcsmbs/mbsnrtowcs.c: Likewise.
5956         * wcsmbs/mbsrtowcs.c: Likewise.
5957         * wcsmbs/wcrtomb.c: Likewise.
5958         * wcsmbs/wcsnrtombs.c: Likewise.
5959         * wcsmbs/wcsrtombs.c: Likewise.
5960         * wcsmbs/wctob.c: Likewise.
5961         * iconv/gconv_simple.c: Remove two parameters from error handling
5962         function call.
5963         * iconvdata/8bit-gap.c: Likewise.
5964         * iconvdata/8bit-generic.c: Likewise.
5965         * iconvdata/ansi_x3.110.c: Likewise.
5966         * iconvdata/big5.c: Likewise.
5967         * iconvdata/big5hkscs.c: Likewise.
5968         * iconvdata/euc-cn.c: Likewise.
5969         * iconvdata/euc-jp.c: Likewise.
5970         * iconvdata/euc-kr.c: Likewise.
5971         * iconvdata/euc-tw.c: Likewise.
5972         * iconvdata/gbgbk.c: Likewise.
5973         * iconvdata/gbk.c: Likewise.
5974         * iconvdata/iso-2022-cn.c: Likewise.
5975         * iconvdata/iso-2022-jp.c: Likewise.
5976         * iconvdata/iso-2022-kr.c: Likewise.
5977         * iconvdata/iso646.c: Likewise.
5978         * iconvdata/iso8859-1.c: Likewise.
5979         * iconvdata/iso_6937-2.c: Likewise.
5980         * iconvdata/iso_6937.c: Likewise.
5981         * iconvdata/johab.c: Likewise.
5982         * iconvdata/sjis.c: Likewise.
5983         * iconvdata/t.61.c: Likewise.
5984         * iconvdata/uhc.c: Likewise.
5985         * iconvdata/unicode.c: Likewise.
5986         * iconvdata/utf-16.c: Likewise.
5987
5988 2000-06-15  Greg McGary  <greg@mcgary.org>
5989
5990         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
5991         of callnum assignment.  Tolerate callnum expressions containing
5992         parens.
5993
5994 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5995
5996         * login/Makefile (utmpd): Remove rule to build utmpd.
5997
5998         * csu/Versions: Move libgcc frame handling functions from here...
5999         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6000         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6001         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6002         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6003         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6004         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6005         New file.
6006         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6007
6008         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6009
6010         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6011
6012 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6013
6014         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6015         compatibility.
6016         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6017         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6018         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6019         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6020
6021 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6022
6023         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6024         defined, terminate quotes and read them after the comment char.
6025         * configure.in (HAVE_SECTION_QUOTES): Test whether
6026         __attribute__((section ("x"))) puts quotes around x or not.
6027         * config.h.in (HAVE_SECTION_QUOTES): Add.
6028         * configure: Rebuilt.
6029
6030 2000-06-14  Andreas Jaeger  <aj@suse.de>
6031
6032         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6033         depending on the configure option --sysconfdir.
6034         Closes PR libc/1762.
6035         Patch by Andreas Schwab <schwab@suse.de>.
6036
6037         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6038         entry point.
6039         Reported by Jim Pick <jim@jimpick.com>.
6040
6041 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6042
6043         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6044         crashing the application.  Emit some simple error message.
6045         Reported by mju@panasas.com [PR libc/1769].
6046
6047 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6048
6049         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6050
6051         * crypt/Makefile (distribute): Add md5.h.
6052
6053         * Makefile (distribute): Add include/shlib-compat.h.
6054
6055         * Make-dist: Search for tests also in sysdeps hierachy.
6056
6057         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6058         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6059
6060         * sysdeps/sparc/Subdirs: New file.
6061
6062         * locale/Makefile (distribute): Add weightwc.h and
6063         programs/localedef.h.
6064
6065         * time/Makefile (distribute): Add datemsk.
6066
6067         * sysdeps/ia64/Dist: Add softpipe.h.
6068
6069         * sysdeps/unix/sysv/aix/Dist: New file.
6070
6071         * posix/setpgrp.c: Moved to...
6072         * sysdeps/generic/setpgrp.c: ...here.  New file.
6073         * io/mknod.c: Moved to...
6074         * sysdeps/generic/mknod.c: ...here.  New file.
6075
6076         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6077
6078         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6079
6080         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6081
6082         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6083         gprsave0.S, gprrest1.S, and gprrest0.S.
6084
6085         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6086
6087         * posix/Makefile (routines): Add spawnattr_getsigmask,
6088         spawnattr_getschedpolicy, spawnattr_getschedparam,
6089         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6090         spawnattr_setschedparam.
6091         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6092         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6093         posix_spawnattr_setschedparam.
6094
6095         * posix/spawnattr_setschedparam.c: Fix typo.
6096
6097         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6098         Correct typo.
6099
6100         * login/programs/utmpd.c: Removed.
6101         * login/programs/utmpd.h: Removed.
6102         * login/programs/utmpd-private.h: Removed.
6103
6104         * Makefile (distribute): Add include/db_185.h and include/db.h.
6105
6106         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6107         iso-ir-165.h.
6108
6109         * elf/Makefile (distribute): Add missing files.
6110
6111         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6112         * elf/eval.c: Moved to...
6113         * dlfcn/eval.c: ...here.  New file.
6114
6115         * Makefile (distribute): Also distribute ChangeLog.1?.
6116
6117         * Make-dist (+tsrcs): Remove .args handling here as well.
6118
6119         * rt/Makefile (tests): Add tst-timer.
6120         * sysdeps/generic/tst-timer.c: New file.
6121
6122         * Makerules (sources): Don't add BP sources here.
6123
6124         * login/Makefile (distribute): Remove xtmp.h.
6125
6126         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6127         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6128
6129 2000-06-13  Andreas Jaeger  <aj@suse.de>
6130
6131         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6132         Patch by Ralf Baechle <ralf@gnu.org>.
6133
6134 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6135
6136         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6137         for mincore syscall.
6138
6139         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6140         __BOUNDED_POINTERS__ is not defined.
6141
6142 2000-06-07  Greg McGary  <greg@mcgary.org>
6143
6144         * sysdeps/generic/bp-sym.h: New file.
6145         * sysdeps/generic/bp-start.h: New file.
6146         * sysdeps/i386/elf/start.S: Designate BP symbols.
6147         * sysdeps/generic/libc-start.c: Wrap bounds around
6148         argv & envp and each of their string members.
6149
6150 2000-06-07  Greg McGary  <greg@mcgary.org>
6151
6152         * sysdeps/unix/make-syscalls.sh: Add comments to
6153         output that aid debugging & comprehension.
6154         Map simple syscall signatures to number of args.
6155         Generate BP syscall thunk definitions.
6156         * sysdeps/generic/bp-thunks.h: New file.
6157         * sysdeps/unix/syscalls.list: Replace arg-count with
6158         simple return+arg signature.
6159         * sysdeps/unix/common/syscalls.list: Likewise.
6160         * sysdeps/unix/inet/syscalls.list: Likewise.
6161         * sysdeps/unix/mman/syscalls.list: Likewise.
6162         * sysdeps/unix/sysv/syscalls.list: Likewise.
6163         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6164         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6165
6166 2000-06-07  Greg McGary  <greg@mcgary.org>
6167
6168         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6169         for all files *.[cS].
6170         (CFLAGS-.ob): Don't optimize sibling calls.
6171         (bppfx): New variable.
6172         * Makerules (elide-bp-thunks): New variable.
6173         (elide-routines.*): Elide BP-* files for all but *.ob.
6174         (sources): Include bp-thunks.
6175
6176 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6177
6178         * iconv/gconv_simple.c: Remove unnecessary prototype.
6179
6180         * iconv/gconv_trans.c: Pretty print.
6181
6182         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6183
6184         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6185         minimal kernel versions.  Add information about IA-64 kernel.
6186
6187         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6188         specific minimal supported kernel versions to be specified.
6189
6190         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6191         step data structure.
6192         * wcsmbs/btowc.c: Likewise.
6193         * wcsmbs/mbrtowc.c: Likewise.
6194         * wcsmbs/mbsnrtowcs.c: Likewise.
6195         * wcsmbs/mbsrtowcs.c: Likewise.
6196         * wcsmbs/wcrtomb.c: Likewise.
6197         * wcsmbs/wcsnrtombs.c: Likewise.
6198         * wcsmbs/wcsrtombs.c: Likewise.
6199         * wcsmbs/wctob.c: Likewise.
6200
6201         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6202         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6203
6204         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6205
6206         * misc/sys/cdefs.h: Remove one more __P.
6207
6208         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6209         Reported by HJ Lu.
6210
6211         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6212         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6213         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6214
6215 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6216             Yutaka Niibe  <gniibe@chroot.org>
6217
6218         * configure.in: Add machine sh3, sh4.
6219         * elf/elf.h: Add SH specific declarations of relocations.
6220         * shlib-versions: Add sh*-*-linux* cases.
6221
6222 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6223
6224         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6225         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6226         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6227         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6228         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6229         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6230
6231         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6232         instead of KERNEL_MATH_EMULATION.
6233         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6234         KERNEL_MATH_EMULATION.
6235
6236         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6237         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6238         * sysdeps/sh/dl-machine.h: ...here.  New file.
6239         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6240         and include generic SH version.
6241         * sysdeps/sh/sh3/bits/endian.h: Move to...
6242         * sysdeps/sh/bits/endian.h: ...here.  New file.
6243         * sysdeps/sh/sh4/bits/endian.h: Removed.
6244         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6245         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6246         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6247
6248         * include/libc-symbols.h (link_warning): Work around a change in
6249         GAS which warns about changing section attributes.
6250         Proposed by Nick Clifton <nickc@redhat.com>.
6251
6252 2000-06-12  H.J. Lu  <hjl@gnu.org>
6253
6254         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6255
6256 2000-06-11  H.J. Lu  <hjl@gnu.org>
6257
6258         * sysdeps/i386/fpu/Versions: New file.
6259
6260 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6261
6262         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6263         parameters.
6264         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6265         exists.
6266
6267 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6268
6269         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6270         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6271         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6272
6273         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6274         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6275         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6276
6277 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6278             Yutaka Niibe  <gniibe@chroot.org>
6279
6280         * sysdeps/sh/Dist: New file.
6281         * sysdeps/sh/Implies: New file.
6282         * sysdeps/sh/elf/initfini.c: New file.
6283         * sysdeps/sh/gmp-mparam.h: New file.
6284         * sysdeps/sh/init-first.c: New file.
6285         * sysdeps/sh/machine-gmon.h: New file.
6286         * sysdeps/sh/memcpy.S: New file.
6287         * sysdeps/sh/memprof.h: New file.
6288         * sysdeps/sh/memset.S: New file.
6289         * sysdeps/sh/sh3/__longjmp.S: New file.
6290         * sysdeps/sh/sh3/bits/endian.h: New file.
6291         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6292         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6293         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6294         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6295         * sysdeps/sh/sh3/dl-machine.h: New file.
6296         * sysdeps/sh/sh3/setjmp.S: New file.
6297         * sysdeps/sh/sh4/__longjmp.S: New file.
6298         * sysdeps/sh/sh4/bits/endian.h: New file.
6299         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6300         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6301         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6302         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6303         * sysdeps/sh/sh4/dl-machine.h: New file.
6304         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6305         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6306         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6307         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6308         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6309         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6310         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6311         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6312         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6313         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6314         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6315         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6316         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6317         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6318         * sysdeps/sh/sh4/setjmp.S: New file.
6319         * sysdeps/sh/elf/start.S: New file.
6320         * sysdeps/sh/sys/ucontext.h: New file.
6321         * sysdeps/sh/strlen.S: New file.
6322         * sysdeps/sh/sysdep.h: New file.
6323         * sysdeps/unix/sh/sysdep.S: New file.
6324         * sysdeps/unix/sh/sysdep.h: New file.
6325         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6326         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6327         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6328         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6329         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6330         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6331         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6332         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6333         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6334         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6335         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6336         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6337         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6338         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6339         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6340         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6341         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6342         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6343         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6344         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6345         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6346         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6347         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6348         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6349         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6350         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6351         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6352         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6353         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6354         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6355         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6356         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6357         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6358         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6359         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6360         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6361         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6362         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6363         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6364         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6365         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6366         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6367         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6368         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6369         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6370         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6371         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6372         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6373         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6374         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6375
6376 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6377
6378         * Rules (%.out): Define GCONV_PATH in the environment.
6379         * assert/Depend: New file.
6380         * iconvdata/Depend: New file.
6381         * intl/Depend: New file.
6382         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6383         * intl/tst-gettext.sh: Likewise.
6384         * iconv/Makefile (routines): Add gconv_trans.
6385         * iconv/gconv_trans.c: New file.
6386         * iconv/gconv.h (struct __gconv_trans_data): New type.
6387         (__gconv_fct): New parameter with starting position in output buffer.
6388         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6389         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6390         (struct __gconv_step): Add new member __trans.
6391         * iconv/gconv_int.h: Pretty print prototypes.
6392         (gconv_transliterate): New prototype.
6393         (__BUILTIN_TRANS): Update for new conversion function interface.
6394         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6395         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6396         in names, find appropriate function, and install in the conversion
6397         steps it can be used.
6398         * iconv/skeleton.c: Add additional parameter for beginning of output
6399         buffer.  Change calls of downstream functions.
6400         * iconv/loop.c: Change loop function interface completely.  Pass in
6401         step and step_data structure.  Remove optimization for BODY with
6402         NEED_LENGTH_TEST == 0.
6403         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6404         appropriate error handling code to use transliteration steps.  Remove
6405         optimization for BODY with NEED_LENGTH_TEST == 0.
6406         * iconvdata/8bit-gap.c: Likewise.
6407         * iconvdata/8bit-generic.c: Likewise.
6408         * iconvdata/ansi_x3.110.c: Likewise.
6409         * iconvdata/big5.c: Likewise.
6410         * iconvdata/big5hkscs.c: Likewise.
6411         * iconvdata/euc-cn.c: Likewise.
6412         * iconvdata/euc-jp.c: Likewise.
6413         * iconvdata/euc-kr.c: Likewise.
6414         * iconvdata/euc-tw.c: Likewise.
6415         * iconvdata/gbgbk.c: Likewise.
6416         * iconvdata/gbk.c: Likewise.
6417         * iconvdata/iso-2022-cn.c: Likewise.
6418         * iconvdata/iso-2022-jp.c: Likewise.
6419         * iconvdata/iso-2022-kr.c: Likewise.
6420         * iconvdata/iso646.c: Likewise.
6421         * iconvdata/iso8859-1.c: Likewise.
6422         * iconvdata/iso_6937-2.c: Likewise.
6423         * iconvdata/iso_6937.c: Likewise.
6424         * iconvdata/johab.c: Likewise.
6425         * iconvdata/sjis.c: Likewise.
6426         * iconvdata/t.61.c: Likewise.
6427         * iconvdata/uhc.c: Likewise.
6428         * iconvdata/unicode.c: Likewise.
6429         * iconvdata/utf-16.c: Likewise.
6430         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6431         DL_CALL_FCT.
6432         * wcsmbs/btowc.c: Likewise.
6433         * wcsmbs/mbrtowc.c: Likewise.
6434         * wcsmbs/mbsnrtowcs.c: Likewise.
6435         * wcsmbs/mbsrtowcs.c: Likewise.
6436         * wcsmbs/wcrtomb.c: Likewise.
6437         * wcsmbs/wcsnrtombs.c: Likewise.
6438         * wcsmbs/wcsrtombs.c: Likewise.
6439         * wcsmbs/wctob.c: Likewise.
6440
6441 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6442
6443         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6444         other header files.  Mention about 128-byte cache line sizes.
6445         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6446         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6447         for current calling sequence.
6448         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6449
6450         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6451         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6452
6453         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6454         and setrlimit syscalls for backwards compatibility.
6455
6456 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6457
6458         * iconv/skeleton.c:  Rename converted written to correcter name
6459         irreversible.
6460         * iconv/gconv.c: Rename converted variable to correcter name
6461         irreversible.
6462         * iconv/gconv_int.h: Likewise.
6463         * iconv/gconv_simple.c: Likewise.
6464         * iconv/iconv.c: Likewise.
6465         * iconv/loop.c: Likewise.
6466         * iconvdata/8bit-gap.c: Likewise.
6467         * iconvdata/8bit-generic.c: Likewise.
6468         * iconvdata/ansi_x3.110.c: Likewise.
6469         * iconvdata/big5.c: Likewise.
6470         * iconvdata/big5hkscs.c: Likewise.
6471         * iconvdata/euc-cn.c: Likewise.
6472         * iconvdata/euc-jp.c: Likewise.
6473         * iconvdata/euc-kr.c: Likewise.
6474         * iconvdata/gbgbk.c: Likewise.
6475         * iconvdata/gbk.c: Likewise.
6476         * iconvdata/iso-2022-cn.c: Likewise.
6477         * iconvdata/iso-2022-jp.c: Likewise.
6478         * iconvdata/iso-2022-kr.c: Likewise.
6479         * iconvdata/iso646.c: Likewise.
6480         * iconvdata/iso8859-1.c: Likewise.
6481         * iconvdata/iso_6937-2.c: Likewise.
6482         * iconvdata/iso_6937.c: Likewise.
6483         * iconvdata/johab.c: Likewise.
6484         * iconvdata/sjis.c: Likewise.
6485         * iconvdata/t.61.c: Likewise.
6486         * iconvdata/uhc.c: Likewise.
6487         * iconvdata/unicode.c: Likewise.
6488         * iconvdata/utf-16.c: Likewise.
6489
6490         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6491         __cmsg_data field with __extension__.
6492
6493 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6494
6495         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6496
6497 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6498
6499         * iconv/gconv_simple.c: Fix various small bugs in several
6500         functions.
6501
6502         * iconv/loop.c: Fix comment.
6503
6504 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6505
6506         * elf/link.h: Remove libc internal declarations.
6507         * include/link.h: Move them here.
6508
6509 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6510
6511         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6512         Patch by Dan Pop <Dan.Pop@cern.ch>.
6513
6514         Rewrite error message handling.
6515         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6516         _dl_catch_error.
6517         * elf/dl-error (struct catch): Add objname member.
6518         (_dl_signal_error): Take new parameter with object name.  When
6519         passing message on simply store object name and duplicate error
6520         message.
6521         (_dl_catch_error): Take new parameter.  Store object name in the
6522         place pointed to.
6523         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6524         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6525         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6526         (dlerror): Add objname to asprintf() parameters.
6527         (_dl_error_run): Pass new parameter to _dl_catch_error.
6528         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6529         * elf/dl-open.c (_dl_open): Likewise.
6530         * elf/rtld.c (dl_main): Likewise.
6531         * elf/dl-close.c: Mark error messages with N_().
6532         * elf/dl-deps.c: Likewise.
6533         * elf/dl-error.c: Likewise.
6534         * elf/dl-load.c: Likewise.
6535         * elf/dl-open.c: Likewise.
6536         * elf/dl-reloc.c: Likewise.
6537         * elf/dl-support.c: Likewise.
6538         * elf/dl-sym.c: Likewise.
6539         * elf/dl-version.c: Likewise.
6540         * elf/dl-lookup.c: Add comments about problems with error message
6541         translations.
6542         * elf/dl-reloc.c: Likewise.
6543         * elf/dl-version.c: Likewise.
6544
6545 2000-06-09  H.J. Lu  <hjl@gnu.org>
6546
6547         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6548         after freeing it.
6549
6550         * dlfcn/Makefile (distribute): Add failtestmod.c.
6551         (tests): Add failtest.
6552         Add rules to build and run failtest.
6553         * dlfcn/failtest.c: New file.
6554         * dlfcn/failtestmod.c: New file.
6555
6556 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6557
6558         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6559         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6560         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6561         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6562         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6563
6564 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6565
6566         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6567         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6568
6569 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6570             Ulrich Drepper  <drepper@redhat.com>
6571
6572         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6573         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6574         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6575         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6576         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6577         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6578
6579 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6580
6581         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6582         to find correct mount point despite wrong information from the
6583         kernel.
6584
6585 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6586
6587         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6588         the address of a symbol so function pointers are handled properly.
6589
6590 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6591
6592         * sysdeps/i386/Dist: Add bp-asm.h.
6593
6594         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6595         defaultdir variable instead of "/var/shm" everywhere.
6596         (defaultdir): Change to /dev/shm/.
6597
6598 2000-06-08  Greg McGary  <greg@mcgary.org>
6599
6600         * sysdeps/i386/bp-asm.h: New file.
6601         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6602         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6603         frame-pointer chain when debugging.
6604         * sysdeps/i386/add_n.S: Likewise.
6605         * sysdeps/i386/addmul_1.S: Likewise.
6606         * sysdeps/i386/lshift.S: Likewise.
6607         * sysdeps/i386/memchr.S: Likewise.
6608         * sysdeps/i386/memcmp.S: Likewise.
6609         * sysdeps/i386/mul_1.S: Likewise.
6610         * sysdeps/i386/rawmemchr.S: Likewise.
6611         * sysdeps/i386/rshift.S: Likewise.
6612         * sysdeps/i386/stpcpy.S: Likewise.
6613         * sysdeps/i386/stpncpy.S: Likewise.
6614         * sysdeps/i386/strchr.S: Likewise.
6615         * sysdeps/i386/strchrnul.S: Likewise.
6616         * sysdeps/i386/strcspn.S: Likewise.
6617         * sysdeps/i386/strpbrk.S: Likewise.
6618         * sysdeps/i386/strrchr.S: Likewise.
6619         * sysdeps/i386/strspn.S: Likewise.
6620         * sysdeps/i386/strtok.S: Likewise.
6621         * sysdeps/i386/sub_n.S: Likewise.
6622         * sysdeps/i386/submul_1.S: Likewise.
6623         * sysdeps/i386/elf/setjmp.S: Likewise.
6624         * sysdeps/i386/i486/strcat.S: Likewise.
6625         * sysdeps/i386/i486/strlen.S: Likewise.
6626         * sysdeps/i386/i586/add_n.S: Likewise.
6627         * sysdeps/i386/i586/lshift.S: Likewise.
6628         * sysdeps/i386/i586/memcpy.S: Likewise.
6629         * sysdeps/i386/i586/memset.S: Likewise.
6630         * sysdeps/i386/i586/rshift.S: Likewise.
6631         * sysdeps/i386/i586/strchr.S: Likewise.
6632         * sysdeps/i386/i586/strcpy.S: Likewise.
6633         * sysdeps/i386/i586/strlen.S: Likewise.
6634         * sysdeps/i386/i586/sub_n.S: Likewise.
6635         * sysdeps/i386/i686/add_n.S: Likewise.
6636         * sysdeps/i386/i686/memcpy.S: Likewise.
6637         * sysdeps/i386/i686/mempcpy.S: Likewise.
6638         * sysdeps/i386/i686/memset.S: Likewise.
6639         * sysdeps/i386/i686/strcmp.S: Likewise.
6640
6641 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6642
6643         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6644
6645         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6646         256 and don't use OPEN_MAX.
6647
6648         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6649         use it instead of LINK_MAX.
6650         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6651
6652 2000-06-08  Andreas Jaeger  <aj@suse.de>
6653
6654         * libio/genops.c (_IO_list_lock): Only compile body if we're
6655         thread safe.
6656         (_IO_list_unlock): Likewise.
6657         (_IO_list_resetlock): Likewise.
6658
6659 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6660
6661         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6662         unless user defined it.
6663
6664         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6665         if not defined by the user.
6666
6667         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6668         * libio/iofwrite.c (_IO_fwrite): Likewise.
6669
6670         * time/time.h: Add missing __THROW for clock_getcpuclockid
6671         prototype.
6672
6673         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6674         * include/elf.h: Include also <dl-dtprocnum.h>.
6675         * elf/dl-deps.c: Likewise.
6676         * elf/dl-lookup.c: Likewise.
6677         * elf/dl-runtime.c: Likewise.
6678         * elf/dl-version.c: Likewise.
6679         * elf/do-rel.h: Likewise.
6680         * elf/dynamic-link.h: Likewise.
6681         * elf/link.h: Likewise.
6682         * elf/rtld.c: Likewise.
6683         * sysdeps/generic/dl-dtprocnum.h: New file.
6684         * sysdeps/ia64/dl-dtprocnum.h: New file.
6685         * sysdeps/mips/dl-dtprocnum.h: New file.
6686         * sysdeps/sparc/dl-dtprocnum.h: New file.
6687
6688         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6689
6690         * elf/do-lookup.h: Add some __builtin_expect.
6691
6692         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6693
6694         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6695         (_dl_dynamic_weak): New variable.
6696         * elf/dl-support.c: Likewise.
6697         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6698         * elf/do-lookup.h: If we find a weak definition treat it like a
6699         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6700         case treat it like before.
6701
6702         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6703         is in main program.
6704         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6705
6706         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6707         using l_map_start and l_map_end.
6708
6709         * elf/dl-version.c: Add __builtin_expect in many places.
6710
6711         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6712         Update.
6713
6714 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6715
6716         Lock for stdio stream list becomes global, for use in LinuxThreads.
6717
6718         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6719         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6720         _IO_list_resetlock): New interface for iterating global list of
6721         streams without accessing the _IO_list_all global variable,
6722         and for manipulating the lock which protects this list.
6723         * libio/libioP.h: Likewise.
6724         * libio/Version: Add entries for the new functions.
6725
6726         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6727         pointer to _IO_FILE.
6728
6729 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6730
6731         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6732         BIT() must actually be BITw().
6733
6734         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6735
6736         * locale/programs/charmap.c: Allow string arguments for
6737         code_set_name and repertoiremap.
6738
6739 2000-06-07  Andreas Jaeger  <aj@suse.de>
6740
6741         * elf/Makefile: Build ldconfig only when building shared libraries.
6742
6743 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6744
6745         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6746         __USE_ISOC99.
6747         (fdimf, __fdim, fdim): Likewise.
6748
6749 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6750
6751         * locale/findlocale.c: Add __builtin_expect in many places.
6752         * locale/loadlocale.c: Likewise.
6753
6754 2000-06-06  Greg McGary  <greg@mcgary.org>
6755
6756         * sysdeps/mips/elf/start.S: Trim redundant code.
6757
6758         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6759         Use C comments throughout.  Line up operands column with tabs.
6760         * sysdeps/powerpc/strchr.S: Likewise.
6761         * sysdeps/powerpc/strcmp.S: Likewise.
6762         * sysdeps/powerpc/strcpy.S: Likewise.
6763         * sysdeps/powerpc/strlen.S: Likewise.
6764
6765         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6766         Get low part of &__curbrk with @l.
6767
6768 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6769
6770         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6771         * iconvdata/unicode.c: Likewise.
6772         * iconvdata/uhc.c: Likewise.
6773         * iconvdata/t.61.c: Likewise.
6774         * iconvdata/sjis.c: Likewise.
6775         * iconvdata/johab.c: Likewise.
6776         * iconvdata/iso_6937.c: Likewise.
6777         * iconvdata/iso_6937-2.c: Likewise.
6778         * iconvdata/iso8859-1.c: Likewise.
6779         * iconvdata/iso646.c: Likewise.
6780         * iconvdata/iso-2022-kr.c: Likewise.
6781         * iconvdata/iso-2022-jp.c: Likewise.
6782         * iconvdata/iso-2022-cn.c: Likewise.
6783         * iconvdata/gbgbk.c: Likewise.
6784         * iconvdata/gbk.c: Likewise.
6785         * iconvdata/euc-kr.c: Likewise.
6786         * iconvdata/euc-jp.c: Likewise.
6787         * iconvdata/euc-cn.c: Likewise.
6788
6789 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6790
6791         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6792         * iconvdata/big5.c: Likewise.
6793         * iconvdata/ansi_x3.110.c: Likewise.
6794         * iconvdata/8bit-generic.c: Likewise.
6795         * iconvdata/8bit-gap.c: Likewise.
6796         * iconv/loop.c: Likewise.
6797         * iconv/gconv_db.c: Likewise.
6798         * iconv/gconv_dl.c: Likewise.
6799         * iconv/gconv_simple.c: Likewise.
6800         * iconv/skeleton.c: Likewise.
6801
6802         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6803         (struct __gconv_step_data): Rename __is_last to __flags.
6804         * iconv/gconv_close.c: Change all uses of __is_last.
6805         * iconv/skeleton.c: Likewise.
6806         * iconvdata/iso-2022-cn.c: Likewise.
6807         * iconvdata/iso-2022-jp.c: Likewise.
6808         * iconvdata/iso-2022-kr.c: Likewise.
6809         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6810         Recognize IGNORE error handling, set flag, and remove from name.
6811         * iconv/loop.c (ignore_errors_p): Define.
6812         Add flags parameter to both functions.
6813         * iconv/skeleton.c: Pass flags to all conversion functions.
6814         * iconv/gconv_simple.c: Add flags parameter to all functions.
6815         Don't return error for invald error if ignore flag is set.
6816         (ucs4_internal_loop_single): Add missing pointer increment.
6817         (internal_ucs4le_loop_single): Likewise.
6818         * iconv/iconv_prog.c: Implement handling of -c parameter.
6819         * iconvdata/8bit-gap.c: Don't return error for invald error if
6820         ignore flag is set.
6821         * iconvdata/8bit-generic.c: Likewise.
6822         * iconvdata/ansi_x3.110.c: Likewise.
6823         * iconvdata/big5.c: Likewise.
6824         * iconvdata/big5hkscs.c: Likewise.
6825         * iconvdata/euc-cn.c: Likewise.
6826         * iconvdata/euc-jp.c: Likewise.
6827         * iconvdata/euc-kr.c: Likewise.
6828         * iconvdata/gbgbk.c: Likewise.
6829         * iconvdata/gbk.c: Likewise.
6830         * iconvdata/iso-2022-cn.c: Likewise.
6831         * iconvdata/iso-2022-jp.c: Likewise.
6832         * iconvdata/iso-2022-kr.c: Likewise.
6833         * iconvdata/iso646.c: Likewise.
6834         * iconvdata/iso8859-1.c: Likewise.
6835         * iconvdata/iso_6937-2.c: Likewise.
6836         * iconvdata/iso_6937.c: Likewise.
6837         * iconvdata/johab.c: Likewise.
6838         * iconvdata/sjis.c: Likewise.
6839         * iconvdata/t.61.c: Likewise.
6840         * iconvdata/uhc.c: Likewise.
6841         * iconvdata/unicode.c: Likewise.
6842         * iconvdata/utf-16.c: Likewise.
6843         * libio/fileops.c: Likewise.
6844         * libio/iofwide.c: Likewise.
6845         * wcsmbs/btowc.c: Likewise.
6846         * wcsmbs/mbrtowc.c: Likewise.
6847         * wcsmbs/mbsnrtowcs.c: Likewise.
6848         * wcsmbs/mbsrtowcs.c: Likewise.
6849         * wcsmbs/wcrtomb.c: Likewise.
6850         * wcsmbs/wcsnrtombs.c: Likewise.
6851         * wcsmbs/wcsrtombs.c: Likewise.
6852         * wcsmbs/wctob.c: Likewise.
6853
6854         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6855         an error.
6856
6857 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6858
6859         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6860         counter for the object we are releasing, just decrement it.
6861         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6862
6863 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6864
6865         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6866         if -ffast-math.
6867
6868 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6869
6870         * iconvdata/big5hkscs.c: New file.
6871         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6872
6873         * iconvdata/gconv-modules: Add entry for new module.
6874         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6875         (distribute): Add big5hkscs.c.
6876
6877 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6878
6879         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6880         inlines to match prototypes in mathcalls.h.
6881         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6882         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6883         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6884         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6885
6886 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6887
6888         * elf/elf.h (SHT_SUNW_move): Define.
6889
6890         * elf/elf.h: Add more Solaris compatiblity definitions.
6891
6892 2000-06-03  Andreas Jaeger  <aj@suse.de>
6893
6894         * sysdeps/powerpc/dl-start.S: Close open comment.
6895
6896 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6897
6898         * inet/Versions: Fix typo in rresvport_af export.
6899
6900 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6901
6902         * math/tgmath.h: Pretty print.
6903
6904 2000-06-02  Andreas Jaeger  <aj@suse.de>
6905
6906         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6907         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6908
6909 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6910
6911         * elf/rtld.c (process_envvars): Test for = after variable name.
6912
6913 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6914
6915         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6916         have extra call to __gmon_start__, use the pointer we already have.
6917
6918         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6919         shifting.
6920
6921         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6922         binutils.  gas now emits a jump through the PLT instead of a
6923         relative jump if the jump target is an exported symbol.
6924
6925 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6926
6927         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6928
6929 2000-05-31  Andreas Jaeger  <aj@suse.de>
6930
6931         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6932         gregset_t.
6933
6934         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6935         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6936
6937         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6938         syscall.
6939         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6940
6941 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6942
6943         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6944
6945         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6946         * locale/localeconv.c: Make function versioned (with same definition).
6947
6948         * elf/Makefile (modules-names): Strip before using it.
6949
6950 2000-05-30  Andreas Jaeger  <aj@suse.de>
6951
6952         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
6953         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
6954         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
6955         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
6956         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
6957         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
6958
6959 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6960
6961         * Makefile: Add GNU make magic.
6962
6963         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
6964         Removed.
6965         * inet/rcmd.c: Remove __P.  Remove unused variables.
6966         (iruserfopen): Make first parameter const.
6967         (ruserok_sa): Return result of ruserok2_sa.
6968         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
6969         * inet/rexec.c: Remove unused variables.  Other small cleanups.
6970         * inet/ruserpass.c: Remove __P.  Remove unused variables.
6971         (ruserpass): Check results of memory allocation.
6972         * include/netdb.h: Add prototype for ruserpass.
6973
6974 2000-05-29  Andreas Jaeger  <aj@suse.de>
6975
6976         * elf/readlib.c (interpreters): Use LD_SO since this is supported
6977         for all platforms.
6978
6979 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
6980
6981         * inet/rcmd.c (rresvport_af): Use correct port number.
6982
6983 2000-05-26  Andreas Schwab  <schwab@suse.de>
6984
6985         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
6986         entries in all-sonames.
6987         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
6988         preserving the old name if different for compatibility.
6989
6990 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6991
6992         * posix/Makefile (tests): Add tst-spawn.
6993         (tst-spawn-ARGS): New variable.
6994         * posix/tst-spawn.c: New file.
6995
6996         * posix/spawn_faction_addclose.c: Correctly account for new entry.
6997         * posix/spawn_faction_adddup2.c: Likewise.
6998         * posix/spawn_faction_addopen.c: Likewise.
6999         * posix/spawni.c: Correctly test for success of dup2 calls.
7000
7001         * posix/tst-preadwrite.c: Check success of malloc call.
7002
7003 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7004
7005         * posix/Makefile (tests): Add tst-exec.
7006         (tst-exec-ARGS): New variable.
7007         * posix/tst-exec.c: New file.
7008
7009         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7010
7011 2000-05-04  Andreas Jaeger  <aj@suse.de>
7012
7013         * string/string.h: Remove __strdup prototype, it's not needed in
7014         this file anymore.
7015
7016 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7017
7018         * posix/Makefile (tests): Add tst-fork.
7019         * posix/tst-fork.c: New file.
7020
7021         * resolv/inet_pton.c: Loose __P.
7022
7023 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7024
7025         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7026         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7027         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7028         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7029         _IO_CHECK_WIDE fails.
7030
7031 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7032
7033         * po/da.po: New file.
7034
7035         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7036         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7037
7038         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7039         (Other iconv Implementations): Fix typo.
7040         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7041
7042 2000-05-27  Andreas Jaeger  <aj@suse.de>
7043
7044         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7045         normal version now.
7046         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7047         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7048         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7049         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7050         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7051         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7052
7053         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7054         endianness to decide how to pass arguments.
7055         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7056
7057         * elf/vismain.c: Use test-skeleton interface.
7058         (TEST_FUNCTION): New macro.
7059         (do_test): Renamed from main.
7060
7061 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7062
7063         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7064         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7065
7066         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7067         handling of AI_V4MAPPED flag.
7068
7069         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7070         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7071         perform lookup for T_A type and tell getanswer_r to convert the
7072         result with new argument.
7073         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7074         Don't convert addresses from IPv4 to IPv6 here.
7075         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7076         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7077         IPv4 mapping has to be done.  Perform mappings if required by the
7078         caller and not if RES_USE_INET6 bit in _res.options is set.
7079         Add several __builtin_expect.
7080
7081 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7082
7083         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7084
7085         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7086         NULL.
7087
7088         * posix/tst-preadwrite.c: Allow parallel execution of
7089         tst-preadwrite and tst-preadwrite64.
7090
7091         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7092         * posix/tst-truncate.c: New file.
7093         * posix/tst-truncate64.c: New file.
7094
7095         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7096         was switched.
7097
7098         * posix/Makefile (tests): Add tst-preadwrite64.
7099         * posix/tst-preadwrite.c: Alloc file being used also for testing
7100         pread64 and pwrite64.
7101         * posix/tst-preadwrite64.c: New file.
7102
7103 2000-05-26  Andreas Jaeger  <aj@suse.de>
7104
7105         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7106         of arguments dependend on endianness.
7107         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7108
7109         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7110         normal version now.
7111         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7112         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7113         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7114         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7115
7116         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7117         endianness to check how to pass argument.
7118         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7119
7120         * elf/ldconfig.h: Update parameter list for process_elf_file.
7121
7122         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7123         Add parameter file_length and pass it ot process_elf*file.
7124
7125         * sysdeps/generic/readelflib.c (check_ptr): New.
7126         (process_elf_file): Use check_ptr to check all accesses to the
7127         mmapped file. Add parameter file_length.
7128
7129         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7130         library names.
7131
7132         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7133         Closes PR libc/1573, reported by Bradley White
7134         <bww@laurelnetworks.com>.
7135
7136 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7137
7138         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7139         __FAST_MATH__ is defined.
7140
7141 2000-05-22  Andreas Jaeger  <aj@suse.de>
7142
7143         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7144         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7145
7146         * manual/math.texi (FP Function Optimizations): Document gcc
7147         -ffast-math behaviour with mathinlines.
7148
7149         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7150         functions unless -ffast-math is given to gcc.
7151
7152 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7153
7154         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7155         __sincosl): Guard with __USE_GNU.
7156
7157 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7158
7159         * csu/Makefile (routines): Add check_fds.
7160         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7161         binaries.  Add various __builtin_expect.
7162         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7163         * sysdeps/generic/check_fds.c: ...here.  New file.
7164
7165         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7166         binaries if file /etc/suid-debug is available.
7167
7168         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7169         and wcseqorder members.
7170         (struct locale_collate_t): Likewise.
7171         (collate_finish): Assign collation sequence value to each character.
7172         Create tables for output.
7173         (collate_output): Write out tables with collation sequence information.
7174         * locale/C-collate.c: Provide C locale data for collation sequence
7175         table.
7176         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7177         _NL_COLLATE_COLLSEQWC.
7178         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7179         _NL_COLLATE_COLLSEQWC.
7180         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7181         include fnmatch_loop.c.
7182         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7183         character is matched by range expression.  Use collation sequence
7184         table.  Outside glibc fall back on simple character value comparison.
7185
7186 2000-05-24  Andreas Jaeger  <aj@suse.de>
7187
7188         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7189         words.
7190
7191         * intl/Makefile: Run gettext-test only if msgfmt is available.
7192
7193         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7194         Define it for newer kernels.
7195
7196 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7197
7198         * elf/dl-sym.c: Minor cleanups.
7199
7200         * configure.in: Add test for .protected.
7201         * config.make.in: Add have-protected variable.
7202         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7203         (tests-vis-yes): Add vismain.
7204         (modules-names): Add $(modules-vis-$(have-protected)).
7205         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7206         Add rules to generate and run vismain.
7207         * elf/vismain.c: New file.
7208         * elf/vismod1.c: New file.
7209         * elf/vismod2.c: New file.
7210         * elf/vismod3.c: New file.
7211
7212 2000-05-23  Andreas Jaeger  <aj@suse.de>
7213
7214         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7215
7216         * manual/search.texi (Array Sort Function): Document that qsort is
7217         not necessarily in-place.
7218
7219         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7220         Closes PR libc/1731.
7221
7222         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7223         * dirent/scandir64.c: Likewise.
7224         * pwd/getpw.c: Likewise.
7225         * stdlib/bsearch.c (bsearch): Likewise.
7226         * stdlib/tst-strtoll.c: Likewise.
7227         * localedata/collate-test.c: Likewise.
7228         * localedata/xfrm-test.c: Likewise.
7229         * posix/bsd-getpgrp.c: Likewise.
7230         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7231         * sysdeps/generic/bits/siginfo.h: Likewise.
7232         * sysdeps/generic/bits/sockaddr.h: Likewise.
7233         * sysdeps/generic/sys/swap.h: Likewise.
7234         * sysdeps/generic/sys/sysinfo.h: Likewise.
7235         * sysdeps/generic/vfork.c: Likewise.
7236         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7237         * sysdeps/mach/hurd/fdopen.c: Likewise.
7238         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7239         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7240         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7241         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7242         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7243         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7244         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7245
7246         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7247         * shadow/lckpwdf.c: Likewise.
7248         * stdlib/tst-strtol.c: Likewise.
7249         * sysdeps/generic/tcsetattr.c: Likewise.
7250         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7251         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7252
7253 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7254
7255         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7256         free it and set to (void *) -1.
7257
7258 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7259
7260         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7261         not the second character in the range.
7262         * stdio-common/tstscanf.c (main): Add testcase for the above.
7263         Reported by jik@kamens.brookline.ma.us.
7264
7265 2000-05-21  H.J. Lu  <hjl@gnu.org>
7266
7267         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7268         with noexec and noplt parameter.
7269         (do_lookup): Likewise.
7270
7271         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7272         do_lookup.  Support STV_PROTECTED.
7273         (_dl_lookup_symbol_skip): Likewise.
7274         (_dl_lookup_versioned_symbol): Likewise.
7275         (_dl_lookup_versioned_symbol_skip): Likewise.
7276
7277         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7278
7279         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7280
7281 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7282
7283         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7284         * sysdeps/i386/bits/huge_val.h: Likewise.
7285         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7286         * sysdeps/m68k/bits/huge_val.h: Likewise.
7287         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7288         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7289
7290 2000-05-22  Andreas Jaeger  <aj@suse.de>
7291
7292         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7293         change in iconv.h.
7294
7295 2000-05-19  Andreas Jaeger  <aj@suse.de>
7296
7297         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7298         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7299         breaks compilation without linuxthreads.
7300
7301 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7302
7303         * sysdeps/ia64/memccpy.S: New file.
7304         * sysdeps/ia64/memchr.S: New file.
7305         * sysdeps/ia64/memcmp.S: New file.
7306         * sysdeps/ia64/memcpy.S: New file.
7307         * sysdeps/ia64/memmove.S: New file.
7308         * sysdeps/ia64/memset.S: New file.
7309         * sysdeps/ia64/strcat.S: New file.
7310         * sysdeps/ia64/strchr.S: New file.
7311         * sysdeps/ia64/strcmp.S: New file.
7312         * sysdeps/ia64/strcpy.S: New file.
7313         * sysdeps/ia64/strlen.S: New file.
7314         * sysdeps/ia64/strncmp.S: New file.
7315         * sysdeps/ia64/strncpy.S: New file.
7316         * sysdeps/ia64/softpipe.h: New file.
7317         Patches by Dan Pop <Dan.Pop@cern.ch>.
7318
7319         * manual/memory.texi: Document memory handling functions (mlock,
7320         munlock, mlockall, munlockall, brk, and sbrk)
7321         * manual/time.texi: Document timespec and friends.
7322         * manual/conf.texi: Fix references.
7323         * manual/ctype.texi: Likewise.
7324         * manual/errno.texi: Likewise.
7325         * manual/intro.texi: Likewise.
7326         * manual/locale.texi: Likewise.
7327         * manual/sysinfo.texi: Likewise.
7328         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7329
7330 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7331
7332         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7333         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7334
7335 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7336
7337         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7338         dxfer_direction.
7339
7340 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7341
7342         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7343         * locale/localeconv.c: Initialize new elements from ISO C99.
7344         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7345         new standard elements.
7346         * locale/categories.def: Adjust accordingly.
7347
7348         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7349         * iconv/iconv.c: Likewise.
7350         * conform/data/iconv.h-data: Likewise.
7351         * iconv/iconv_prog.c (process_block): Remove const from second
7352         parameter.
7353         (main): Remove const from addr definition.
7354         * manual/charset.texi (Generic Conversion Interface): Remove from
7355         inbuf parameter of iconv.
7356
7357         * intl/dcigettext.c: Fix typo in comment.
7358
7359 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7360
7361         * resolv/res_libc.c (_res): Initialize _sock to -1.
7362
7363 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7364
7365         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7366         (fopencookie@@GLIBC_2.2): New.
7367         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7368         (fopencookie@GLIBC_2.0): New.
7369         * libio/Versions: Add fopencookie to GLIBC_2.2.
7370
7371 2000-05-18  Andreas Jaeger  <aj@suse.de>
7372
7373         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7374         Closes PR libc/1731.
7375
7376         * manual/arith.texi (Parsing of Integers): Fix typo.
7377         Closes PR libc/1744, reported by blp@gnu.org.
7378
7379 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7380
7381         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7382         __extension__ to hexadecimal floating constant notation.
7383         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7384         Likewise.
7385         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7386         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7387         Likewise.
7388         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7389         HUGE_VALL): Likewise.
7390         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7391         HUGE_VALL): Likewise.
7392         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7393
7394 2000-05-17  Andreas Jaeger  <aj@suse.de>
7395
7396         * string/envz.h: Add pure attributes if possible.
7397
7398         * string/argz.h: argz_count is a pure function.
7399
7400         * string/strings.h: Add pure and const attributes if possible.
7401
7402         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7403         possibly searching through the whole memory.
7404         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7405
7406 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7407
7408         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7409         not yet defined.
7410         (_dl_cache_check_flags): Likewise.
7411         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7412         dl-cache.h.
7413
7414 2000-05-17  Andreas Jaeger  <aj@suse.de>
7415
7416         * manual/creature.texi (Feature Test Macros): Remove paragraph
7417         since the description is wrong.
7418         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7419
7420         * scripts/config.sub: New version.
7421         * scripts/config.guess: Likewise.
7422         * manual/texinfo.tex: Likewise.
7423
7424         * time/test_time.args: Removed.
7425         * time/Makefile (test_time-ARGS): Added contents here instead.
7426
7427         * posix/tstgetopt.args: Removed.
7428         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7429
7430         * Rules: Allow arguments for test files to be specified in
7431         Makefile with testname-ARGS; remove rules with .args in it.
7432
7433         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7434         remove old bogus rule for opendir-tst1.args.
7435
7436         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7437
7438         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7439         into objdir.  This allows a readonly sourcetree.
7440         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7441
7442 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7443             David Huggins-Daines <dhd@linuxcare.com>
7444
7445         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7446         cache_data in case of only new cache format correctly.
7447
7448         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7449         cache_file_new.
7450
7451         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7452         struct cache_file_new.
7453
7454         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7455         present.
7456
7457         * elf/cache.c (save_cache): Align struct new_file_cache.
7458         (print_cache): Likewise.
7459
7460 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7461
7462         * elf/soinit.c (__libc_global_ctors): Move
7463         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7464         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7465         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7466         variable, don't define it to __res_state call.
7467
7468 2000-05-13  Andreas Jaeger  <aj@suse.de>
7469
7470         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7471         Linux 2.3.99pre7.
7472         (AF_PPPOX): Likewise.
7473         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7474         (AF_PPPOX): Likewise.
7475
7476 2000-05-12  Andreas Jaeger  <aj@suse.de>
7477
7478         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7479         Reported by tmoestl@gmx.net, closes PR libc/1732.
7480
7481 2000-05-11  Jan Hubicka  <jh@suse.cz>
7482
7483         * misc/sys/cdefs.h: Add support for pure attribute.
7484
7485         * include/string.h: Add __attribute_pure__ to various functions.
7486         * string/string.h: Likewise.
7487
7488 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7489
7490         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7491         argument.
7492         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7493         R_SPARC_UA64.
7494         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7495
7496 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7497
7498         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7499         at proper place.  Compute the high nibble correctly.
7500
7501 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7502
7503         * elf/ldconfig.c: Include elf.h.
7504
7505         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7506         (_dl_vsym): Likewise.
7507         Reported by Owen Taylor <otaylor@redhat.com>.
7508
7509         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7510         always.
7511
7512 2000-05-08  Andreas Jaeger  <aj@suse.de>
7513
7514         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7515
7516         * intl/bindtextdom.c (set_binding_values): Add prototype.
7517
7518 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7519
7520         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7521         call to elf_machine_fixup_plt.
7522         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7523         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7524
7525 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7526
7527         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7528         they are not dlclose'd from underneath us.
7529
7530 2000-05-08  Andreas Schwab  <schwab@suse.de>
7531
7532         * posix/execle.c: Fix size parameter of memcpy.
7533
7534 2000-05-08  Andreas Schwab  <schwab@suse.de>
7535
7536         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7537         getpagesize syscall if available.
7538
7539 2000-05-08  Andreas Jaeger  <aj@suse.de>
7540
7541         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7542         set errno.
7543
7544 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7545
7546         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7547         sizeof(struct link_map *) chunks, not in bytes.
7548
7549 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7550
7551         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7552         only needed for locale.
7553         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7554         It's only needed for catgets.
7555         Patches by Greg McGary <gkm@eng.ascend.com>.
7556
7557 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7558
7559         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7560         Remove duplicate <errno.h> include.  Remove inclusion of
7561         <libintl.h> and "nsswitch.h".
7562         (set_cloexec_flag): New function, broken out of dbopen.
7563         (dbopen): Changed return type to `enum
7564         nss_status'.  Mostly rewritten to make sure that we do not report
7565         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7566         (internal_setent): Change return type to nss_status.
7567         Document, and make sure that the function
7568         behaves accordingly.  Make dynamically loading the database
7569         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7570         failed.
7571         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7572         unecessary casts.
7573         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7574         documentation.
7575         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7576         c_get function member.
7577         * nss/nss_db/nss_db.h: Add and tweak some comments.
7578         (DBT): Move typedef before NSS_DBC typedef.
7579         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7580
7581 2000-05-07  H.J. Lu  <hjl@gnu.org>
7582
7583         * csu/initfini.c: Moved to ....
7584         * sysdeps/generic/initfini.c: ...here.
7585
7586         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7587
7588 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7589
7590         * manual/resource.texi: Document POSIX scheduling functions.
7591         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7592
7593         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7594         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7595
7596         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7597         for x since promotion in comparison might leads to unexpected
7598         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7599
7600         * iconv/Makefile (tests): Add tst-iconv1.
7601         * iconv/tst-iconv1.c: New file.
7602         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7603         empty input buffer over full output buffer.
7604         (ucs4_internal_loop): Likewise.
7605         (ucs4_internal_loop_unaligned): Likewise.
7606         (internal_ucs4le_loop): Likewise.
7607         (internal_ucs4le_loop_unaligned): Likewise.
7608         (ucs4le_internal_loop): Likewise.
7609         (ucs4le_internal_loop_unaligned): Likewise.
7610         Reported by yaoz@nih.gov.
7611
7612 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7613
7614         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7615         returned != __GCONV_OK, there is nothing to clean up.
7616
7617 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7618
7619         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7620         OUTPUT_CHARSET environment variables.
7621
7622 2000-05-06  Andreas Jaeger  <aj@suse.de>
7623
7624         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7625         (struct cache_file_new): New.
7626         (struct file_entry): New (moved from cache.c).
7627         (struct cache_file): New (moved from cache.c).
7628
7629         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7630         from _dl_load_cache_lookup.
7631         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7632         the different cache formats.
7633         New variable cache_new for new format.
7634
7635         * elf/ldconfig.h: Change according to changes in cache.c and
7636         ldconfig.c; remove cache_libcmp; add opt_format.
7637
7638         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7639         stuff that's defined in those headers.
7640         Add hwcap to struct lib_entry.
7641         (opt_format): New variable to select cache format.
7642         (options): Add format parameter.
7643         (is_hwcap): New function.
7644         (path_hwcap): New function.
7645         (parse_opt): Handle new format parameter.
7646         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7647
7648         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7649         ldconfig is part of glibc.
7650         Include dl-cache.h and remove stuff that's defined there.
7651         (struct cache_entry): Add new member hwcap.
7652         (print_entry): Print hwcap, cleanup a bit.
7653         (print_cache): Print new and old formats.
7654         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7655         (save_cache): Save new and old formats.
7656         (add_to_cache): Handle hwcap.
7657
7658         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7659         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7660         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7661         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7662         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7663         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7664
7665 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7666
7667         * intl/dcigettext.c (alignof): New macro.
7668         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7669         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7670         freemem_size to 0.
7671
7672 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7673
7674         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7675         return value.
7676
7677 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7678
7679         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7680         (mempcpy): Correct typo is parameter list.
7681
7682 2000-05-06  Andreas Jaeger  <aj@suse.de>
7683
7684         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7685         functions unless -ffast-math is given to gcc.
7686
7687 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7688
7689         * po/ko.po: Update from translation team.
7690
7691 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7692
7693         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7694         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7695         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7696         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7697         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7698         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7699
7700         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7701         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7702         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7703
7704         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7705         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7706         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7707         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7708
7709         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7710         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7711
7712 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7713
7714         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7715         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7716
7717         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7718         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7719
7720         * sysdeps/ia64/Implies: New file.
7721         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7722         * sysdeps/ia64/Makefile: New file.
7723         * sysdeps/ia64/gmp-mparam.h: New file,
7724
7725         * sysdeps/ia64/elf/start.S: New file.
7726
7727         * sysdeps/ia64/bits/fenv.h: New file.
7728
7729 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7730
7731         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7732
7733 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7734
7735         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7736         ia64 has 64 bit .hash entries just as the Alpha.
7737
7738 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7739
7740         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7741
7742 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7743
7744         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7745         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7746         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7747         * sysdeps/ia64/fpu/fegetenv.c: New file.
7748         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7749         * sysdeps/ia64/fpu/fegetround.c: New file.
7750         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7751         * sysdeps/ia64/fpu/fesetenv.c: New file.
7752         * sysdeps/ia64/fpu/fesetround.c: New file.
7753         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7754         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7755         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7756         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7757         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7758
7759 2000-05-05  Andreas Jaeger  <aj@suse.de>
7760
7761         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7762
7763         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7764         (_dl_string_hwcap): New, does nothing.
7765
7766         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7767         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7768         (_dl_string_hwcap): New function, converts from string to hwcap
7769         encoding.
7770         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7771         (_DL_HWCAP_COUNT): New.
7772         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7773         (_dl_string_hwcap): New function, converts from string to hwcap
7774         encoding.
7775         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7776         (_DL_HWCAP_COUNT): New.
7777         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7778         (_dl_string_hwcap): New function, converts from string to hwcap
7779         encoding.
7780
7781 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7782
7783         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7784         * sysdeps/ia64/Dist: New file.
7785
7786         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7787         parameter to mprotect and for variable assignments.
7788
7789 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7790
7791         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7792         validity of map before dereferencing it.
7793
7794         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7795
7796 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7797
7798         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7799         lookup to the arguments to elf_machine_fixup_plt().
7800
7801         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7802         of the symbol being resolved to input argument list and make the
7803         function return the pointer to the reloc.
7804
7805         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7806         return valuie to lookup_t and return the value.
7807         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7808         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7809         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7810         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7811         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7812         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7813
7814         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7815         Make it an inline function returning value after calling
7816         __elf_machine_fixup_plt().
7817
7818         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7819         symbol address.
7820
7821         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7822         obtain the symbol address.
7823
7824         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7825         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7826
7827         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7828         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7829         inline on non ia64.
7830
7831 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7832
7833         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7834         symbol address of an object.
7835
7836         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7837         the symbol address of an object.
7838
7839         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7840         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7841         (_dl_lookup_symbol_skip): Likewise.
7842         (_dl_lookup_versioned_symbol): Likewise.
7843         (_dl_lookup_versioned_symbol_skip): Likewise.
7844
7845 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7846
7847         * elf/rtld.c (_dl_start): Get the function pointer return address
7848         via _dl_start_address for architectures that need a function
7849         pointer descriptor rather than just a pointer (ia64).
7850
7851         * sysdeps/generic/dl-lookupcfg.h: New file.
7852         * sysdeps/ia64/dl-lookupcfg.h: New file.
7853         * sysdeps/ia64/dl-machine.h: New file.
7854         * sysdeps/ia64/dl-symaddr.c: New file.
7855         * sysdeps/ia64/dl-fptr.c: New file.
7856
7857         * elf/elf.h: Add IA-64 specific definitions.
7858
7859 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7860
7861         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7862         end of enum.
7863
7864 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7865
7866         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7867         happy.
7868
7869 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7870
7871         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7872         symbol.  Call _dl_init rather than the old way.
7873
7874 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7875
7876         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7877         test for pointer in range of DSO address space.
7878
7879 2000-05-04  Andreas Jaeger  <aj@suse.de>
7880
7881         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7882
7883 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7884
7885         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7886         calls of _nl_make_l10nflist.
7887
7888         * libio/stdio.h: Make fseeko and ftello prototypes available is
7889         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7890
7891         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7892         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7893
7894 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7895
7896         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7897         before calling tfind.
7898
7899 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7900
7901         * resolv/resolv.h (res_querydomain): Remove redefinition to
7902         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7903
7904 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7905
7906         * po/gl.po: Update from translation team.
7907
7908         * manual/intro.texi (Program Basics): Change section title.
7909         * manual/process.texi: Fix reference.
7910         (Executing a File): Add reference exec in other section.
7911         * manual/signal.texi: Fix reference.
7912         * manual/startup.texi: Document syscall function.
7913         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7914
7915 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7916
7917         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7918         * intl/bindtextdom.c (set_binding_values): New function.
7919         (bindtextdomain): Call it.
7920         (bind_textdomain_codeset): New function.
7921         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7922         (free_mem): Free each binding's codeset.
7923         * intl/gettextP.h (struct binding): Add codeset field.
7924         (_nl_find_domain): Add domainbinding argument.
7925         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7926         Pass it to _nl_make_l10nflist.
7927         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7928         (_nl_make_l10nflist): Add domainbinding argument.
7929         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7930         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7931         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7932         locale_charset().
7933         * manual/message.texi: New node "Charset conversion in gettext".
7934
7935 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7936
7937         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7938         appropriate.  Handle possible __read error.
7939
7940 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7941
7942         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7943         compiler builtin.
7944         * intl/loadinfo.h (__builtin_expect): Likewise.
7945         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7946         __builtin_expect where appropriate.
7947         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7948         * intl/localealias.c (extend_alias_table): Return an error indicator.
7949         (read_alias_file): Bail out if extend_alias_table fails.
7950
7951 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7952
7953         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
7954         * intl/localealias.c: Likewise.
7955
7956 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7957
7958         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
7959         Initialize domain->plural and domain->nplurals even if there is no
7960         nullentry.
7961
7962 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7963
7964         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
7965         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
7966         In case of failure, goto converted.
7967
7968 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7969
7970         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
7971         * iconv/gconv_int.h (norm_add_slashes): Move to here.
7972         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
7973         __gconv_open.
7974
7975 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7976
7977         * intl/dcigettext.c (transcmp): Compare the domains as well.
7978         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
7979         not before.
7980         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
7981         <errno.h>.
7982
7983 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7984
7985         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
7986         Reported by Bruno Haible.
7987
7988 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7989
7990         * manual/arith.texi: Remove @w from @itemize.
7991
7992 2000-05-02  Andreas Jaeger  <aj@suse.de>
7993
7994         * conform/data/tar.h-data: Add some checks for specific values.
7995
7996         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
7997         and RAND_MAX.
7998
7999         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8000         FOPEN_MAX.
8001
8002         * conform/data/netinet/in.h-data: Add exact checks for the values
8003         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8004
8005         * conform/data/float.h-data: Add some minimal values.
8006
8007         * conform/conformtest.pl: Test for macros with string constants,
8008         check for minimum and maximum values.
8009         Add limits.h to headers.
8010
8011         * conform/data/cpio.h-data: Test for value of MAGIC.
8012
8013         * conform/data/limits.h-data: New file.
8014
8015 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8016
8017         * math/Makefile (headers): Add bits/fenvinline.h.
8018
8019 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8020
8021         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8022         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8023
8024         * posix/Versions: Change posix_spawnattr_getdefault and
8025         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8026         and posix_spawnattr_setsigdefault respectively.
8027         * posix/spawn.h: Likewise.
8028         * posix/spawnattr_getdefault.h: Likewise.
8029         * posix/spawnattr_setdefault.h: Likewise.
8030         * conform/data/spawn.h-data: Likewise.
8031
8032 2000-05-01  Andreas Jaeger  <aj@suse.de>
8033
8034         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8035
8036 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8037
8038         * manual/sysinfo.texi: Document getdomainname, setdomainname
8039         and sysctl.
8040         * manual/string.texi: Fix typo.
8041         * manual/terminal.texi: Document gtty and stty.
8042         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8043
8044 2000-04-30  Andreas Jaeger  <aj@suse.de>
8045
8046         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8047         accordance with Austin Draft.
8048
8049 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8050
8051         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8052         to recognize second character in comment line.
8053
8054         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8055         ENOBUFS if we are out of memory.
8056
8057         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8058         available if __USE_XOPEN2K.
8059         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8060         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8061         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8062         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8063         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8065         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8066         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8067
8068 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8069
8070         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8071         Recognize option -s, -c, and -l.
8072
8073 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8074
8075         * nscd/nscd.c: Start new session for nscd, drop privilegs
8076         to configured user if requested and no -S parameter are used.
8077         * nscd/nscd.conf: Add new option "server-user".
8078         * nscd/nscd_conf.c: Add support for new "server-user" option.
8079         * nscd/nscd.h: Add declaration for server_user variable.
8080         Based on patch by Chris Wing <wingc@engin.umich.edu>
8081
8082 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8083
8084         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8085         that changing the __restore and __restore_rt signal return code
8086         will break GDB.
8087
8088 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8089
8090         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8091         <sys/user.h>.
8092
8093 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8094
8095         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8096
8097 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8098
8099         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8100         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8101         arpa/inet.h.
8102         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8103         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8104         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8105         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8106         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8107         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8108         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8109         posix_fallocate, and posix_madvise.
8110         * conform/data/netdb.h-data: New file.
8111         * conform/data/pthread.h-data: Add pthread_barrier_t,
8112         pthread_barrierattr_t, pthread_barrier_destroy,
8113         pthread_barrier_init, pthread_barrier_wait,
8114         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8115         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8116         pthread_condattr_getclock, pthread_condattr_setclock,
8117         pthread_getcpuclockid, pthread_mutex_timedlock,
8118         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8119         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8120         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8121         * conform/data/sched.h-data: Add sched_ss_low_priority,
8122         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8123         SCHED_SPORADIC.
8124         * conform/data/semaphore.h-data: Add sem_timedwait.
8125         * conform/data/signal.h-data: Add SIGIO.
8126         * conform/data/spawn.h-data: New file.
8127         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8128         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8129         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8130         Fix typo in gmtime_r definition.
8131         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8132         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8133         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8134         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8135         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8136         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8137         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8138         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8139         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8140         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8141         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8142         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8143         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8144         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8145         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8146         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8147         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8148         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8149         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8150         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8151         typo in off_t definition.
8152         * conform/data/net/if.h-data: New file.
8153         * conform/data/netinet/in.h-data: New file.
8154         * conform/data/netinet/tcp.h-data: New file.
8155         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8156         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8157         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8158         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8159         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8160         and posix_typed_mem_open.
8161         * conform/data/sys/socket.h-data: New file.
8162         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8163         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8164         pthread_barrierattr_t, and pthread_spinlock_t.
8165         * conform/data/sys/un.h-data: New file.
8166         * conform/data/sys/utsname.h-data: New file.
8167
8168         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8169         parameter.
8170         * inet/gethstbyad.c (gethostbyname): Likewise.
8171         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8172         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8173         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8174         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8175         Likewise.
8176         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8177         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8178         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8179         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8180         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8181         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8182         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8183         and second parameter.
8184
8185         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8186         == NULL.
8187
8188 2000-04-29  Andreas Jaeger  <aj@suse.de>
8189
8190         * conform/data/arpa/inet.h-data: New file.
8191
8192 2000-04-28  Geoff Clare <gwc@unisoft.com>
8193
8194         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8195         path passed to ftw() or nftw() is an empty string.
8196         Closes PR libc/1710.
8197
8198 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8199
8200         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8201         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8202         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8203         * localedata/tst-mbswcs4.c: New file.
8204         * localedata/tst-mbswcs5.c: New file.
8205
8206         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8207         == NULL.  Little optimization.
8208
8209         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8210         DT_PREINIT_ARRAYSZ).
8211         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8212
8213         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8214         overflows in conversion from ASCII.
8215
8216 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8217
8218         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8219         * Makerules (full_config_sysdirs): Likewise.
8220         * MakeTAGS (full_config_sysdirs): Likewise.
8221
8222 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8223
8224         * .cvsignore: Remove linuxthreads.
8225         * po/.cvsignore: Remove *.pot.
8226         * posix/glob/.cvsignore: Removed.
8227         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8228
8229 2000-04-25  Andreas Jaeger  <aj@suse.de>
8230
8231         * conform/Makefile (distribute): Also distribute contents of
8232         subdirectories.
8233
8234         * Makerules (no_deps): Remove abi-versions.h.
8235
8236         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8237
8238 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8239
8240         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8241         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8242         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8243         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8244         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8245         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8246         objects.
8247
8248 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8249
8250         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8251
8252 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8253
8254         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8255         * intl/l10nflist.c: Likewise.
8256
8257 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8258
8259         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8260         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8261         * intl/textdomain.c [!_LIBC]: Likewise.
8262         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8263         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8264         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8265         syntax error.
8266
8267 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8268
8269         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8270         character set conversion also in the case the translation was found
8271         after a hash collision or through binary search.  Store the maximum
8272         index together with the converted message.  Use iconv() when available.
8273         In case of out of memory during conversion, return the unconverted
8274         translated string, not NULL.
8275
8276 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8277
8278         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8279         to avoid name clashes with the ia32 linker.
8280
8281 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8282
8283         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8284         handling.
8285
8286 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8287
8288         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8289         strtoumax, strfry, and memfrob.
8290         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8291         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8292
8293         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8294         if this function is available.
8295
8296         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8297         all values.
8298
8299 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8300
8301         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8302
8303 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8304
8305         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8306         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8307         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8308         * localedata/tst-mbswcs3.c: New file.
8309
8310 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8311
8312         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8313         characters.  Don't handle incomplete characters as errors.
8314         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8315         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8316         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8317         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8318         * localedata/tst-mbswcs2.c: New file.
8319
8320         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8321         stored character in state in UNPACK_BYTES macro.
8322         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8323         test for available characters, handle result of BODY code correctly.
8324         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8325         (distribute): Add tst-mbswcs.sh.
8326         Add rule to run tst-mbswcs.sh.
8327         * localedata/tst-mbswcs.sh: New file.
8328         * localedata/tst-mbswcs1.c: New file.
8329
8330 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8331
8332         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8333         allocation fixups centrally, fix __builtin_expect call, return NULL
8334         on failure, not NIS_NOMEMORY.
8335
8336 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8337
8338         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8339
8340         * intl/loadinfo.h (internal_function): Define if not already defined.
8341
8342 2000-04-27  Andreas Jaeger  <aj@suse.de>
8343
8344         * intl/libintl.h: Fix typo, reported by Bruno Haible
8345         <haible@clisp.cons.org>.
8346
8347 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8348
8349         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8350         setting the state to GMON_PROF_BUSY.
8351
8352 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8353
8354         * elf/dl-profile.c (_dl_start_profile): define all variables which
8355         do not have to be global as local variables.
8356
8357         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8358         patch.  Keep needed tests for failed memory allocation.
8359
8360         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8361         __builtin_expect saying that we don't normally expect to profile.
8362
8363         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8364         __builtin_expect where desirable.
8365
8366 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8367
8368         * manual/Makefile (chapters): Add syslog.
8369         * manual/syslog.texi: New file.
8370         * manual/math.texi: Fix references.
8371         * manual/terminal.texi: Likewise.
8372         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8373
8374 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8375
8376         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8377         stdlib.h was not included or __USE_XOPEN not defined.
8378
8379 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8380
8381         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8382         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8383
8384 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8385
8386         * manual/examples/subopt.c (mount_opts): Add missing terminating
8387         entry.
8388         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8389
8390         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8391         * libio/ftello.c: Likewise.
8392         * libio/ftello64.c: Likewise.
8393         * libio/ioftell.c: Likewise.
8394         * sysdeps/generic/memrchr.c: Likewise.
8395         * sysdeps/posix/libc_fatal.c: Likewise.
8396         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8397         * misc/fstab.c: Include <string.h> for strcmp prototype.
8398         * sysdeps/generic/ldsodefs.h: Likewise.
8399         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8400         Patch by Kurt Roeckx <Q@ping.be>.
8401
8402         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8403         Remove db-open.  Change all uses.
8404         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8405
8406 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8407
8408         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8409         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8410         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8411         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8412         with .set noat/at to shut up warnings.
8413         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8414         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8415         compilation if __NR_pciconfig_iobase is not defined.
8416         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8417         Add alias.
8418
8419 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8420
8421         * manual/sysinfo.texi: Fix typo.
8422         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8423         Replace "high precision time" with "high accuracy clock".
8424         Fix language.
8425         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8426
8427         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8428         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8429         instead of malloc.
8430         * nis/nis_subr.c: Use __builtin_expect.
8431         * nis/ypclnt.c: Likewise.
8432         * nis/nis_getservlist.c: Likewise.
8433         * nis/nis_creategroup.c: Likewise.
8434
8435         * nis/nis_callback.c (__nis_create_callback): Check result of
8436         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8437         (__nis_destroy_callback): Fix memory leaks.
8438
8439 2000-04-21  Andreas Jaeger  <aj@suse.de>
8440
8441         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8442         * sysdeps/mips/mips64/add_n.S: Likewise.
8443         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8444         * sysdeps/mips/mips64/lshift.S: Likewise.
8445         * sysdeps/mips/mips64/mul_1.S: Likewise.
8446         * sysdeps/mips/mips64/rshift.S: Likewise.
8447         * sysdeps/mips/mips64/setjmp.S: Likewise.
8448         * sysdeps/mips/mips64/sub_n.S: Likewise.
8449         * sysdeps/mips/mips64/submul_1.S: Likewise
8450         * sysdeps/unix/mips/sysdep.S: Likewise.
8451
8452         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8453         and update comment.  The strtab from _dl_relocate_object can be
8454         used.
8455
8456 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8457
8458         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8459         * iconv/iconv_close.c (iconv_close): Likewise.
8460         * iconv/iconv_open.c (iconv_open): Likewise.
8461
8462         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8463         __builtin_expect where useful.
8464
8465         * grp/initgroups.c (initgroups): Test for result of memory
8466         allocation and punt if it fails.
8467
8468         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8469         * grp/fgetgrent.c (fgetfrent): Likewise.
8470         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8471
8472 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8473
8474         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8475
8476 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8477
8478         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8479         don't search for NUL byte to decrement counter.
8480         Reported by Ulrich.Brink@sap.com.
8481
8482         * iconv/gconv_simple.c: Define separate functions to convert from
8483         UCS4/UCS4-LE to the internal encoding.
8484         * iconv/gconv_builtin.h: Use separate functions to convert from
8485         UCS4/UCS4-LE to the internal encoding.
8486         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8487         __gconv_transform_ucs4le_internal.
8488
8489         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8490         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8491
8492         * iconv/skeleton.c: Add some more __builtin_expect.
8493         * iconv/loop.c: Likewise.
8494
8495 2000-03-08  H.J. Lu  <hjl@gnu.org>
8496
8497         * posix/regex.c (regex_compile): Correctly handle "\{" when
8498         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8499
8500 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8501
8502         * manual/stdio.texi: Give advise about handling error when using
8503         stream functions.
8504         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8505
8506 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8507
8508         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8509         field to nelems * sizeof (uint32_t).
8510         * locale/programs/ld-address.c (address_output): Align word fields
8511         properly.
8512         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8513         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8514         field.
8515         Avoid giving arbitrary garbage in the crncystr field.
8516         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8517         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8518         fields.
8519         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8520         Don't restart idx pointers to idx end at the decimal_point_wc field.
8521         * locale/programs/ld-time.c (time_output): week_1stday should be
8522         word, not byte.  Align it properly.
8523
8524 2000-04-19  H.J. Lu  <hjl@gnu.org>
8525
8526         * csu/gmon-start.c (_start): Declared as "extern void".
8527         (etext): Likewise.
8528
8529 2000-04-18  Andreas Jaeger  <aj@suse.de>
8530
8531         * manual/install.texi (Running make install): Don't mention utmpd
8532         anymore.
8533
8534 2000-04-18  Andreas Jaeger  <aj@suse.de>
8535
8536         * linuxthreads/Versions: Use ld instead of ld.so.
8537
8538         * elf/Makefile (ld-map): Use ld.map.
8539
8540         * Versions.def: Use ld instead of ld.so.
8541         * elf/Versions: Likewise.
8542         * sysdeps/mach/hurd/Versions: Likewise.
8543
8544 2000-04-20  Andreas Jaeger  <aj@suse.de>
8545
8546         * elf/rtld.c (print_statistics): Move ifndef further up.
8547         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8548         (dl_main): Likewise.
8549
8550 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8551
8552         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8553         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8554
8555         * po/cs.po: Update from translation team.
8556
8557         * sysdeps/generic/updwtmp.c: Remove daemon support.
8558
8559         * login/Makefile (routines): Remove utmp_daemon.
8560
8561         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8562         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8563         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8564         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8565
8566         * elf/rtld.c: Display statitics option also if hp timing is not
8567         available.
8568
8569         * login/programs/connection.c: Removed.
8570         * login/programs/database.c Removed.
8571         * login/programs/error.c: Removed.
8572         * login/programs/request.c: Removed.
8573         * login/programs/xtmp.c: Removed.
8574         * login/programs/xtmp.h: Removed.
8575         * login/Makefile: Remove rules for utmpd.
8576         * login/README.utmpd: Removed.
8577         * login/utmp_daemon.c: Removed.
8578         * login/getutent_r.c: Remove references to daemon functions.
8579         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8580         declaration.
8581
8582 2000-04-18  Andreas Jaeger  <aj@suse.de>
8583
8584         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8585         2.2 for libnsl, libresolv, librt, libnss_*.
8586
8587         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8588
8589         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8590
8591 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8592
8593         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8594         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8595         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8596         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8597         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8598         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8599         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8600         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8601         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8602         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8603         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8604         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8605         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8606         it here.
8607         * sysdeps/unix/sysv/aix/msync.c: New file.
8608         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8609         * sysdeps/unix/sysv/aix/net/if.h: New file.
8610         * sysdeps/unix/sysv/aix/pipe.c: New file.
8611         * sysdeps/unix/sysv/aix/poll.c: New file.
8612         * sysdeps/unix/sysv/aix/rename.c: New file.
8613         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8614         * sysdeps/unix/sysv/aix/select.c: New file.
8615         * sysdeps/unix/sysv/aix/semctl.c: New file.
8616         * sysdeps/unix/sysv/aix/semget.c: New file.
8617         * sysdeps/unix/sysv/aix/semop.c: New file.
8618         * sysdeps/unix/sysv/aix/sendto.c: New file.
8619         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8620         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8621         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8622         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8623         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8624         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8625         * sysdeps/unix/sysv/aix/setsid.c: New file.
8626         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8627         * sysdeps/unix/sysv/aix/shmat.c: New file.
8628         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8629         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8630         * sysdeps/unix/sysv/aix/shmget.c: New file.
8631         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8632         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8633         * sysdeps/unix/sysv/aix/socket.c: New file.
8634         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8635         * sysdeps/unix/sysv/aix/speed.c: New file.
8636         * sysdeps/unix/sysv/aix/symlink.c: New file.
8637         * sysdeps/unix/sysv/aix/sync.c: New file.
8638         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8639         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8640         * sysdeps/unix/sysv/aix/times.c: New file.
8641         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8642         * sysdeps/unix/sysv/aix/umask.c: New file.
8643         * sysdeps/unix/sysv/aix/unlink.c: New file.
8644         * sysdeps/unix/sysv/aix/ustat.c: New file.
8645         * sysdeps/unix/sysv/aix/utimes.c: New file.
8646
8647 2000-04-18  Andreas Jaeger  <aj@suse.de>
8648
8649         * manual/startup.texi (Environment Access): Fix putenv prototype
8650         according to recent changes.
8651         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8652         PR libc/1692.
8653
8654         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8655         needed.
8656
8657 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8658
8659         * posix/Makefile (tests): Add tst-getaddrinfo.
8660         * posix/tst-getaddrinfo.c: New file.
8661
8662 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8663
8664         * manual/sysinfo.texi: Document that umount2 is not widely available.
8665
8666         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8667         signal timing is not really implemented.
8668
8669 2000-04-17  Andreas Jaeger  <aj@suse.de>
8670
8671         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8672
8673 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8674
8675         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8676         and inst_libdir.
8677
8678 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8679
8680         * manual/intro.texi: Change reference from System Information to
8681         System Management.
8682         * manual/users.texi: Likewise.
8683         * manual/conf.texi: Likewise.
8684         * manual/sysinfo.texi: Document mount, umount, and umount2.
8685         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8686
8687 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8688
8689         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8690         Create wnumstr as well as numstr to support wide character output
8691         correctly.
8692
8693 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8694
8695         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8696         modification and move it...
8697         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8698         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8699         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8700         switch to $(LD) on sparc-linux.
8701
8702 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8703
8704         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8705         and setresuid from sysdep_routines.
8706
8707 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8708
8709         * manual/Makefile (chapters): Add resource.
8710
8711         * manual/time.texi: Move section on resources to...
8712         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8713         and vtimes.
8714         * manual/setjmp.texi: Adjust back reference.
8715         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8716
8717         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8718         definition.
8719         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8720         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8721         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8722         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8723         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8724         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8725         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8726         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8727         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8728         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8729         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8730         * sysdeps/unix/sysv/aix/Implies: New file.
8731         * sysdeps/unix/sysv/aix/Versions: New file.
8732         * sysdeps/unix/sysv/aix/bind.c: New file.
8733         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8734         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8735         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8736         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8737         * sysdeps/unix/sysv/aix/chdir.c: New file.
8738         * sysdeps/unix/sysv/aix/chmod.c: New file.
8739         * sysdeps/unix/sysv/aix/chroot.c: New file.
8740         * sysdeps/unix/sysv/aix/creat.c: New file.
8741         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8742         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8743         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8744         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8745         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8746         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8747         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8748         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8749         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8750         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8751         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8752         * sysdeps/unix/sysv/aix/link.c: New file.
8753         * sysdeps/unix/sysv/aix/madvise.c: New file.
8754         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8755         * sysdeps/unix/sysv/aix/mknod.c: New file.
8756         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8757         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8758         * sysdeps/unix/sysv/aix/msgget.c: New file.
8759         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8760
8761 2000-04-17  Andreas Jaeger  <aj@suse.de>
8762
8763         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8764         as suggested by Ulrich Drepper.
8765         (__dl_runtime_resolve): Remove unused variable, initialize sym
8766         directly.
8767         (RTLD_START): Document OFFSET_GP_GOT.
8768         (OFFSET_GP_GOT): New magic value.
8769         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8770         (elf_machine_got_rel): Only declare strtab if needed.
8771         (elf_machine_relplt): Removed, it's not needed.
8772         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8773
8774         * sysdeps/mips/add_n.S: Add newline at EOF.
8775         * sysdeps/mips/rshift.S: Likewise.
8776         * sysdeps/mips/mul_1.S: Likewise.
8777         * sysdeps/mips/lshift.S: Likewise.
8778         * sysdeps/mips/addmul_1.S: Likewise.
8779
8780 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8781
8782         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8783
8784         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8785         * elf/dl-lookup.c: Likewise.
8786         * elf/dl-init.c (_dl_init): Likewise.
8787         * elf/dl-fini.c (_dl_fini): Likewise.
8788         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8789         * elf/dl-close.c (_dl_close): Likewise.
8790         * elf/rtld.c (_dl_start_final): Likewise.
8791
8792         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8793
8794 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8795
8796         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8797         only fall back on using Linux.
8798
8799         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8800         Before testing versions check that we actually loaded the object
8801         and whether we are in trace mode.  If not loaded during tracing don't
8802         test versions in this object.
8803         (_dl_check_all_versions): Take new parameter and pass to
8804         _dl_check_map_versions.
8805         * sysdeps/generic/ldsodefs.h: Update prototypes for
8806         _dl_check_all_versions and _dl_check_map_versions.
8807         * elf/rtld.c (struct version_check_args): Add dotrace.
8808         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8809         (dl_main): Pass info about trace mode to version_check_doit.
8810         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8811         _dl_check_all_versions.
8812
8813         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8814         and getutmpx.
8815         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8816
8817         * manual/argp.texi: Document index parameter of argp_parse.
8818         Fix typo.
8819         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8820
8821 2000-04-14  Andreas Jaeger  <aj@suse.de>
8822
8823         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8824         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8825
8826         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8827
8828 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8829
8830         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8831         compat_symbol call for old adjtime.
8832
8833         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8834         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8835
8836         * posix/Makefile (headers): Add spawn.h.
8837         (distribute): Add spawn_int.h.
8838         (routines): Add spawn_faction_init, spawn_faction_destroy,
8839         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8840         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8841         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8842         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8843         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8844         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8845         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8846         posix_spawnattr_init, posix_spawnattr_destroy,
8847         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8848         posix_spawnattr_getflags, posix_spawnattr_setflags,
8849         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8850         and posix_spawnp.
8851         * posix/spawn.c: New file.
8852         * posix/spawn.h: New file.
8853         * posix/spawn_faction_addclose.c: New file.
8854         * posix/spawn_faction_adddup2.c: New file.
8855         * posix/spawn_faction_addopen.c: New file.
8856         * posix/spawn_faction_destroy.c: New file.
8857         * posix/spawn_faction_init.c: New file.
8858         * posix/spawn_int.h: New file.
8859         * posix/spawnattr_destroy.c: New file.
8860         * posix/spawnattr_getdefault.c: New file.
8861         * posix/spawnattr_getflags.c: New file.
8862         * posix/spawnattr_getpgroup.c: New file.
8863         * posix/spawnattr_getschedparam.c: New file.
8864         * posix/spawnattr_getschedpolicy.c: New file.
8865         * posix/spawnattr_getsigmask.c: New file.
8866         * posix/spawnattr_init.c: New file.
8867         * posix/spawnattr_setdefault.c: New file.
8868         * posix/spawnattr_setflags.c: New file.
8869         * posix/spawnattr_setpgroup.c: New file.
8870         * posix/spawnattr_setschedparam.c: New file.
8871         * posix/spawnattr_setschedpolicy.c: New file.
8872         * posix/spawnattr_setsigmask.c: New file.
8873         * posix/spawni.c: New file.
8874         * posix/spawnp.c: New file.
8875
8876         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8877         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8878
8879 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8880
8881         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8882         * malloc/malloc.c: Implement posix_memalign for glibc.
8883         * include/stdlib.h: Add prototype for __posix_memalign.
8884         * stdlib/stdlib.h: Add prototype for posix_memalign.
8885
8886 2000-04-14  Andreas Jaeger  <aj@suse.de>
8887
8888         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8889         symidx correctly.
8890         (elf_machine_got_rel): Cast sym correctly.
8891
8892         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8893         * sysdeps/mips/addmul_1.S: Likewise.
8894         * sysdeps/mips/lshift.S: Likewise.
8895         * sysdeps/mips/mul_1.S: Likewise.
8896         * sysdeps/mips/rshift.S: Likewise.
8897         * sysdeps/mips/sub_n.S: Likewise.
8898         * sysdeps/mips/submul_1.S: Likewise.
8899
8900         * stdlib/stdlib.h: Fix typo in comment.
8901
8902         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8903         2.2 for libdl, ld and libm.
8904
8905         * sysdeps/generic/madvise.c: Fix typos.
8906
8907         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8908
8909         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8910
8911         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8912         warnings.
8913
8914 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8915
8916         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8917         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8918         Make old name weak alias.
8919         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8920         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8921         Make old name weak alias.
8922         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8923
8924         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8925         posix_fallocate, and posix_fallocate64.
8926         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8927         posix_fallocate, and posix_fallocate64.
8928         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8929         posix_fallocate, and posix_fallocate64.
8930         * sysdeps/generic/fadvise.c: New file.
8931         * sysdeps/generic/fadvise64.c: New file.
8932         * sysdeps/generic/fallocate.c: New file.
8933         * sysdeps/generic/fallocate64.c: New file.
8934         * sysdeps/posix/fallocate.c: New file.
8935         * sysdeps/posix/fallocate64.c: New file.
8936         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8937         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8938         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8939         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8940         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8941         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8942         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8943         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8944         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8945
8946         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8947         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8948
8949 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8950
8951         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
8952         * misc/sys/mman.h (posix_madvise): Add prototype.
8953         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
8954         old name and posix_madvise weak aliases.
8955         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8956         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
8957         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8958         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8959         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8960         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8961         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8962
8963 2000-04-13  Andreas Jaeger  <aj@suse.de>
8964
8965         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
8966         versioning.
8967         (elf_machine_got_rel): Only add runtime display if needed.
8968         (elf_machine_got_rel): Handle symbol versioning.
8969
8970 2000-04-13  Andreas Jaeger  <aj@suse.de>
8971
8972         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
8973
8974         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
8975         default.
8976
8977         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
8978         with some applications.
8979         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
8980
8981         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
8982         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8983         * sysdeps/mips/setjmp.S: Likewise.
8984
8985         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
8986
8987 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8988
8989         * posix/globtest.sh: Work around inconsistency with expanding ~/
8990         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
8991
8992 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8993
8994         * posix/getconf.c: Add support for many more POSIX options.
8995         * sysdeps/posix/sysconf.c: Likewise.
8996         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
8997         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
8998         _POSIX_SHELL.
8999         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9000         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9001         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9002         CLOCK_THREAD_CPUTIME_ID.
9003         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9004         CLOCK_PROCESS_CPUTIME_ID.
9005         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9006         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9007         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9008         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9009
9010         * malloc/Makefile (tests): Add tst-calloc.
9011         * malloc/tst-calloc.c: New file.
9012
9013         * sysdeps/arm/libm-test-ulps: New file.
9014
9015         * malloc/malloc.c: Undo all of today's changes.
9016
9017         * locale/programs/locale.c (show_info): Don't try to look into
9018         data for LC_ALL (there is none).
9019
9020         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9021         avoid writing over boundary.
9022         Patch by Greg McGary <gkm@eng.ascend.com>.
9023
9024         * sysdeps/arm/memprof.h: New file.
9025
9026 2000-04-12  Andreas Jaeger  <aj@suse.de>
9027
9028         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9029
9030         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9031         for memmem declaration.
9032
9033 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9034
9035         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9036         to -1.
9037         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9038
9039         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9040         mode is invalid.
9041         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9042         Patch by Bart Veer <bartv@redhat.com>.
9043
9044         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9045         function interface.
9046
9047 2000-04-11  Andreas Jaeger  <aj@suse.de>
9048
9049         * sysdeps/mips/dl-machine.h: Update some comments.
9050         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9051
9052 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9053
9054         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9055         _POSIX_SHARED_MEMORY_OBJECTS.
9056
9057         * rt/Makefile (tests): Add tst-shm.
9058         Add rules to generate tst-shm.
9059         * rt/tst-shm.c: New file.
9060
9061         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9062         for descriptor.
9063
9064         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9065         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9066         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9067         * sysdeps/generic/shm_open.c: New file.
9068         * sysdeps/generic/shm_unlink.c: New file.
9069         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9070         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9071         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9072          __endmntent, __getmntent_r, __setmntent, and __statfs.
9073
9074         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9075         fragmentation by allocating new memory at the end instead of
9076         reallocating.
9077
9078         * posix/globtest.sh: Fix last change.
9079
9080 2000-04-10  Philip Blundell  <philb@gnu.org>
9081
9082         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9083         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9084         IPV6_DROP_MEMBERSHIP.
9085         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9086         Likewise.
9087
9088 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9089
9090         * elf/readlib (process_file): Close streams in case of an error.
9091
9092 2000-04-09  Andreas Jaeger  <aj@suse.de>
9093
9094         * elf/readlib.c (process_file): Check if file is big enough to
9095         contain aout and ELF headers.
9096         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9097
9098 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9099
9100         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9101
9102 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9103
9104         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9105         stream unbuffered.
9106         * rt/Makefile (tests): Add tst-clock.
9107         Add rules to build tst-clock.
9108         * rt/tst-clock.c: New file.
9109         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9110         about initialization of nsec.
9111         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9112         about initialization of freq.  Set retval to zero if successful.
9113         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9114
9115 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9116
9117         * Versions.def (librt): Add GLIBC_2.2.
9118         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9119         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9120         timer_getoverr, timer_gettime, and timer_settime.
9121         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9122         clock_settime, timer_create, timer_delete, timer_getoverrun,
9123         timer_gettime, and timer_settime.
9124         * sysdeps/generic/clock_getcpuclockid.c: New file.
9125         * sysdeps/generic/get_clockfreq.c: New file.
9126         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9127         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9128         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9129         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9130         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9131         * sysdeps/unix/i386/i686/Implies: New file.
9132         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9133         * time/Makefile (routines): Move clock_getres, clock_gettime,
9134         clock_settime, timer_create, timer_delete, timer_getoverr,
9135         timer_gettime, and timer_settime to rt/Makefile.
9136         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9137         clock_settime, timer_create, timer_delete, timer_getoverrun,
9138         timer_gettime, and timer_settime.
9139         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9140
9141         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9142         and not const as attribute name.
9143
9144 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9145
9146         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9147
9148 2000-04-10  Andreas Schwab  <schwab@suse.de>
9149
9150         * posix/globtest.sh: Skip tests that depend on unreadable
9151         directories if run as root.
9152
9153 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9154
9155         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9156         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9157
9158 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9159
9160         * sysdeps/unix/clock_gettime.c: New file.
9161         * sysdeps/unix/clock_settime.c: New file.
9162         * sysdeps/posix/clock_getres.c: New file.
9163
9164         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9165
9166         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9167         lseek call be passing in a buffer which never allow a successful
9168         first getdents syscall if not at leas the initial entry can be
9169         stored in the user buffer.
9170
9171         * localedata/Makefile: Add rules to clean up directories created by
9172         new strfmon tests.
9173
9174 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9175
9176         * localedata/tst-fmon.data: Added new tests for strfmon()
9177         using test locales with all combinations of cs_precedes,
9178         sign_posn and sep_by_space.
9179         * localedata/tst-fmon.sh: Updated to support the new tests.
9180         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9181         the localedef source for the new strfmon() test locale.
9182         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9183         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9184         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9185         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9186         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9187         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9188         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9189         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9190         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9191         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9192         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9193         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9194         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9195         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9196
9197         * stdlib/strfmon.c: Correct problems with missing or extra
9198         spaces for unusual combinations of sign_posn and sep_by_space.
9199         Improved left-precision alignment code.
9200
9201 2000-04-07  Andreas Jaeger  <aj@suse.de>
9202
9203         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9204
9205 2000-04-10  Andreas Jaeger  <aj@suse.de>
9206
9207         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9208
9209 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9210
9211         Implement handling of restartable conversion functions according to
9212         ISO C.
9213         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9214         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9215         * iconv/gconv.c: Pass additional parameter to conversion function.
9216         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9217         (internal_ucs4le_loop_single): New function.
9218         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9219         (__gconv_transform_internal_ascii): Likewise.
9220         (__gconv_transform_internal_utf8): Likewise.
9221         (__gconv_transform_utf8_internal): Likewise.
9222         (__gconv_transform_ucs2_internal): Likewise.
9223         (__gconv_transform_internal_ucs2): Likewise.
9224         (__gconv_transform_ucs2reverse_internal): Likewise.
9225         (__gconv_transform_internal_ucs2reverse): Likewise.
9226         (internal_ucs4le_loop_unaligned): Before return
9227         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9228         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9229         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9230         * iconv/loop.c: Fit in definition of function to convert one character
9231         for processing of left-over bytes from the state object.
9232         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9233         inend to match names in loop functions.
9234         (RESET_INPUT_BUFFER): Change apprpriately.
9235         (gconv): If needed, call function to process bytes from the state
9236         object.  Similar at the end: store left over bytes if input is
9237         incomplete.
9238         Take extra argument and add new argument to all calls of the
9239         conversion function.
9240         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9241         information in the state object to not conflict with length count.
9242         * iconvdata/iso-2022-jp.c: Likewise.
9243         * iconvdata/iso-2022-kr.c: Likewise.
9244         * iconvdata/unicode.c: Adjust for change change in parameters of
9245         skeleton function.
9246         * iconvdata/utf-16.c: Likewise.
9247         * libio/iofwide.c: Add new parameter to all calls of conversion
9248         function.
9249         * wcsmbs/btowc.c: Likewise.
9250         * wcsmbs/mbrtowc.c: Likewise.
9251         * wcsmbs/mbsnrtowcs.c: Likewise.
9252         * wcsmbs/mbsrtowcs.c: Likewise.
9253         * wcsmbs/wcrtomb.c: Likewise.
9254         * wcsmbs/wcsnrtombs.c: Likewise.
9255         * wcsmbs/wcsrtombs.c: Likewise.
9256         * wcsmbs/wctob.c: Likewise.
9257
9258         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9259         MAX_NEEDED_INPUT.
9260
9261 2000-04-07  Andreas Jaeger  <aj@suse.de>
9262
9263         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9264         newer kernels.
9265
9266 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9267
9268         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9269         element a union to allow byte access.
9270         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9271         mbstate_t.
9272         * iconvdata/iso-2022-jp.c: Likewise.
9273         * iconvdata/iso-2022-kr.c: Likewise.
9274         * wcsmbs/mbsinit.c: Likewise.
9275         * stdlib/mblen.c: Likewise.
9276         * stdio-common/printf-parse.h: Likewise.
9277
9278 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9279
9280         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9281         kernel does not allow relative seeks on descriptors associated
9282         with directories.  Go back to get the position in the directory
9283         every time we enter the function.  Return -1 and set errno if one
9284         entry could be read from the kernel but does not fit into the
9285         buffer passed in by the user.
9286
9287         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9288         Support ..(2).. ellipsis.
9289         (parse_charmap): Recognize ..(2).. etc and pass step down.
9290         Correctly generate names for UCS4 characters.
9291
9292         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9293         (ctype_finish): We know the wide character value for <SP>,
9294         don't search.
9295         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9296         (charclass_ucs4_ellipsis): Likewise.
9297         (read_translit_ignore_entry): Store ellipsis step.
9298         (ctype_read): Recognize ..(2).. etc and pass step down.
9299
9300         * locale/programs/linereader.c (lr_token): When seeing comment
9301         character ignore only rest of line in sources but stop at escaped
9302         newline.
9303         Recognize ..(2).. and ....(2).....
9304
9305         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9306         and tok_ellipsis4_2.
9307
9308 2000-04-06  Andreas Jaeger  <aj@suse.de>
9309
9310         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9311         removed, remove it here also.
9312         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9313         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9314         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9315         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9316
9317 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9318
9319         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9320         include bits/sigcontext.h.
9321         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9322
9323 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9324
9325         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9326         collation symbol definition.  Value in quivalence definition must
9327         be defined, don't check that it is not.
9328
9329         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9330         values as character names.
9331
9332         * locale/programs/ld-ctype.c (get_character): Handle missing
9333         repertoire map correctly.
9334
9335 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9336
9337         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9338         because it is used in generic code.
9339         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9340         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9341         * intl/gettext.c: Include <locale.h>.
9342         * intl/ngettext.c: Likewise.
9343
9344 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9345
9346         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9347         socklen_t type for size.
9348         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9349         init function interface.
9350         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9351         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9352         sys/ucontext.h.
9353         (__jmp_buf): Declare the whole type structure here, don't use
9354         ucontext.
9355
9356 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9357
9358         * iconv/skeleton.c (put16u): Fix typo.
9359         Reported by Bruno Haible <haible@ilog.fr>.
9360
9361         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9362         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9363         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9364         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9365         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9366         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9367
9368         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9369         * Makefile (distribute): Add abi-versions.awk and
9370         firstversions.awk.
9371         Patches by Torsten Duwe <duwe@caldera.de>.
9372
9373 2000-04-05  Andreas Schwab  <schwab@suse.de>
9374
9375         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9376
9377 2000-04-05  Andreas Schwab  <schwab@suse.de>
9378
9379         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9380         entry point, used on Hurd.
9381
9382 2000-04-04  Andreas Jaeger  <aj@suse.de>
9383
9384         * intl/Makefile: Only run the gettext test with shared libraries.
9385
9386 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9387
9388         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9389         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9390
9391 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9392
9393         * Makeconfig: Undo last change.
9394         * configure.in: If --disable-shared was given, don't set VERSIONING,
9395         don't define DO_VERSIONING, and don't give scare warning for no
9396         versioning.
9397         * configure: Regenerated.
9398
9399 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9400
9401         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9402
9403 2000-04-04  Andreas Jaeger  <aj@suse.de>
9404
9405         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9406
9407 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9408
9409         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9410         STV_HIDDEN and STV_INTERNAL during lookup.
9411         (profile_fixup): Likewise.
9412         * elf/dl-reloc.c (RESOLVE): Likewise.
9413
9414         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9415         unaligned so that it compiles for system which need unaligned
9416         access handling.
9417
9418 2000-04-04  Andreas Schwab  <schwab@suse.de>
9419
9420         * elf/cache.c (print_entry): Only look at the type field when
9421         printing the type.
9422
9423 2000-04-04  Andreas Schwab  <schwab@suse.de>
9424
9425         * iconvdata/big5.c (BODY): Fix typo.
9426
9427 2000-04-04  Andreas Schwab  <schwab@suse.de>
9428
9429         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9430         function interface.  Remove unused _dl_start_user entry point.
9431
9432 2000-04-03  Andreas Jaeger  <aj@suse.de>
9433
9434         * include/arpa/inet.h (__inet_aton): Add protoype.
9435
9436 2000-04-01  Andreas Jaeger  <aj@suse.de>
9437
9438         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9439
9440         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9441         * sysdeps/mach/mips/thread_state.h: Likewise.
9442
9443         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9444         * sysdeps/generic/fegetenv.c: Likewise.
9445         * sysdeps/generic/fesetenv.c: Likewise.
9446         * sysdeps/generic/feupdateenv.c: Likewise.
9447         * sysdeps/generic/fraiseexcpt.c: Likewise.
9448         * sysdeps/generic/fsetexcptflg.c: Likewise.
9449         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9450         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9451         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9452         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9453
9454 2000-04-02  H.J. Lu  <hjl@gnu.org>
9455
9456         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9457
9458 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9459
9460         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9461         (add_name_to_object): Add cast in malloc call.
9462         (fillin_rpath): Optimize loop to initialize ->status a bit.
9463
9464         * sysdeps/i386/dl-machine.h: Undo last change.
9465         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9466         Restore %edx register after call here.
9467
9468         * sysdeps/arm/atomicity.h: New file.
9469         Contributed by Jesper Skov <jskov@redhat.com>.
9470
9471 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9472
9473         * Makeconfig (preprocess-versions): Undo last change.
9474         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9475
9476         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9477         here, before we might move the stack.
9478         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9479         (init1): And not here.
9480
9481         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9482         change, to restore argc value in call-clobbered register after
9483         RTLD_START_SPECIAL_INIT, which will contain a call.
9484
9485         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9486         allocating and initializing L->l_initfini.
9487
9488         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9489
9490 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9491
9492         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9493         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9494         (open_path): Change type of fourth parameter.  Make pointer to array
9495         of pointers.  Create variable dirs with original type.
9496         Track whether any directory for the object exists and if not,
9497         change *DIRSP to (void*) -1 to signal there is no such search path.
9498         (_dl_map_object): Change all calls of open_path.
9499         Rewrite decompose_rpath calls.
9500
9501 2000-03-31  Andreas Schwab  <schwab@suse.de>
9502
9503         * string/strfry.c: Declare STATE as array of char instead of int
9504         and do not initialize it (done by initstate_r).  Pass correct
9505         size.
9506
9507 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9508
9509         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9510
9511         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9512         instruction out of the code.
9513
9514 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9515
9516         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9517         element at this position.
9518
9519         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9520         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9521         l_reldeps elements.
9522         * elf/dl-lookup.c (add_dependency): New function.
9523         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9524         dynamically loaded object.
9525         (_dl_lookup_symbol_skip): Likewise.
9526         (_dl_lookup_versioned_symbol): Likewise.
9527         (_dl_lookup_versioned_symbol_skip): Likewise.
9528         * elf/dl-open.c: Don't define _dl_load_lock here...
9529         * elf/rtld.c: ...but here...
9530         * elf/dl-support.c: ...and here.
9531         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9532         through relocation.
9533         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9534         relocations.
9535         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9536         anymore.
9537         * dlfcn/glrefmain.c: Add one more debug message.
9538
9539         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9540         command line.
9541         * Makerules (sysd-versions): Use ( ) instead of { }.
9542
9543         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9544         optimize for the non-debugging case.
9545         * elf/dl-lookup.c: Likewise.
9546         * sysdeps/generic/libc-start.c: Likewise.
9547
9548 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9549
9550         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9551         (init1): Don't initialize __environ here, since init already does it.
9552         (first_init): New function, broken out of _init.
9553         (_hurd_stack_setup): Use it.
9554         [SHARED] (_dl_init_first): New function, renamed from old _init.
9555         (init1) [SHARED]: Don't call posixland_init here.
9556         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9557         [SHARED] (_init): Define as alias for posixland_init.
9558         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9559         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9560         RTLD_START_SPECIAL_INIT before calling initializers.
9561         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9562         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9563         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9564         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9565
9566         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9567         since we define the function with the name `tmpfile'.
9568
9569         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9570         * hurd/Versions: Likewise.
9571
9572 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9573
9574         * elf/dl-runtime.c (fixup): Fix typo in comment.
9575
9576         * resolv/netdb.h (getnameinfo): All length parameters are of type
9577         socklen_t.
9578         * inet/getnameinfo.c: Likewise.
9579
9580 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9581
9582         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9583         (gethostname): Change type of second parameter to socklen_t.
9584         * include/unistd.h (__gethostname): Change type of second
9585         parameter to socklen_t.
9586         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9587         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9588         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9589         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9590         Likewise.
9591         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9592         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9593         Allow definition elsewhere.
9594         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9595         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9596         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9597         * sysdeps/generic/bits/types.h: Define __socklen_t.
9598         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9599         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9600         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9601         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9602         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9603         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9604         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9605
9606         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9607         (inet_lnaof): Likewise.
9608         (inet_netof): Likewise.
9609         (inet_network): Likewise.
9610         (inet_aton): Likewise.
9611         (inet_makeaddr): Change parameter types to in_addr_t.
9612         (inet_neta): Likewise.
9613         (inet_ntop): Change type of last parameter to socklen_t.
9614         (inet_aton): Only make available if __USE_MISC.
9615         (inet_neta): Likewise.
9616         (inet_net_ntop): Likewise.
9617         (inet_net_pton): Likewise.
9618         (inet_nsap_ntoa): Likewise.
9619
9620         * inet/in.h: Define in_port_t type.
9621         Define in_addr_t type.
9622         (struct in_addr): Use in_addr_t in definition.
9623         (IN_CLASSA): Use cast to in_addr_t.
9624         (IN_CLASSB): Likewise.
9625         (IN_CLASSC): Likewise.
9626         (IN_CLASSD): Likewise.
9627         (IN_EXPERIMENTAL): Likewise.
9628         (IN_BADCLASS): Likewise.
9629         (INADDR_ANY): Likewise.
9630         (INADDR_BROADCAST): Likewise.
9631         (INADDR_NONE): Likewise.
9632         (INADDR_LOOPBACK): Likewise.
9633         (INADDR_UNSPEC_GROUP): Likewise.
9634         (INADDR_ALLHOSTS_GROUP): Likewise.
9635         (INADDR_ALLRTRS_GROUP): Likewise.
9636         (INADDR_MAX_LOCAL_GROUP): Likewise.
9637         (struct sockaddr_in): Use in_port_t for sin_port element.
9638         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9639         Use uint8_t instead of u_int8_t.
9640
9641         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9642         Call __inet_aton instead of inet_aton.
9643         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9644
9645         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9646         (innetgr): Likewise.
9647         (struct addrinfo): Use socklen_t for ai_addrlen element.
9648
9649         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9650         IPV6_RECVERR): New defines.
9651
9652         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9653         * inet/getnetbyad.c: Likewise.
9654         * inet/getnetbyad_r.c: Likewise.
9655         * nis/nss_nis/nis-network.c: Likewise.
9656         * nis/nssplus_nis/nisplus-network.c: Likewise.
9657         * nss/nss_files/files-network.c: Likewise.
9658         * resolv/netdb.h: Define uint32_t if not already happened.
9659         Include bits/netdb.h.  Remove definition of struct netent.
9660         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9661         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9662         * sysdeps/generic/bits/netdb.h: New file.
9663         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9664
9665         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9666         (tests): Add glrefmain.
9667         Add rules to build modules and run tests.  Ignore result of glrefmain
9668         for now since it fails.
9669         * dlfcn/glrefmain.c: New file.
9670         * dlfcn/glreflib1.c: New file.
9671         * dlfcn/glreflib2.c: New file.
9672
9673         * test-skeleton.c: Include <string.h> for strsignal prototype.
9674
9675         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9676         to be missing.
9677
9678         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9679         former init-first.h.  Initialize __libc_multiple_libcs.
9680
9681 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9682
9683         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9684         #if expression for use of unaligned function to the one used in
9685         the definition of these functions.
9686         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9687         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9688         (internal_ucs4le_loop_unaligned): New function.
9689
9690         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9691         (tests): Add order.
9692         (module-names): Add dep1, dep2, dep3, and dep4.
9693         Add dependencies for dep* modules and order.
9694         Define rule for order.out which checks the result.
9695         * elf/dep1.c: New file.
9696         * elf/dep2.c: New file.
9697         * elf/dep3.c: New file.
9698         * elf/dep4.c: New file.
9699         * elf/order.c: New file.
9700
9701         * elf/dl-init.c: Fix typo in comment.
9702
9703 2000-03-31  Andreas Jaeger  <aj@suse.de>
9704
9705         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9706         init function interface.
9707         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9708
9709 2000-03-31  Andreas Jaeger  <aj@suse.de>
9710
9711         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9712         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9713         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9714         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9715         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9716
9717         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9718         anymore, update comment.
9719
9720         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9721
9722         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9723         SHLIB_COMPAT - the struct is always needed.
9724
9725 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9726
9727         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9728         * elf/dl-support.c: Define _dl_starting_up.
9729
9730 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9731
9732         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9733         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9734
9735         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9736
9737         * elf/Makefile (dl-routines): Remove preinit.
9738         * elf/Versions: Remove _dl_preinit.
9739         * elf/dl-preinit.c: Removed.  Move content into...
9740         * elf/dl-init.c: ...here.
9741         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9742
9743         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9744         elements.
9745
9746 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9747
9748         * stdlib/strfmon.c: Corrected problems with the code that
9749         sets default values for [np]_sep_by_space and
9750         [np]_sign_posn; also the new positive/negative alignment
9751         code from the previous patch was not quite right for
9752         [np]_sign_posn = 0.
9753
9754         * localedata/tst-fmon.data: Changes corresponding to the
9755         two sets of fixes made to stdlib/strfmon.c.
9756
9757 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9758
9759         * malloc/malloc.c: Declare bit flags UL so that they will not
9760         default to int size when being inverted.
9761
9762 2000-03-29  Andreas Jaeger  <aj@suse.de>
9763
9764         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9765         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9766
9767 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9768             Ralf Baechle <ralf@uni-koblenz.de>
9769
9770         * Makeconfig: Introduce new variable SHARED to mark code used in
9771         the shared library.
9772         * elf/dl-close.c: Use it instead of PIC.
9773         * elf/dl-load.c: Likewise.
9774         * elf/dl-open.c: Likewise.
9775         * hurd/geteuids.c: Likewise.
9776         * include/libc-symbols.h: Likewise.
9777         * include/shlib-compat.h: Likewise.
9778         * libio/freopen.c: Likewise.
9779         * linuxthreads/cancel.c: Likewise.
9780         * linuxthreads/pthread.c: Likewise.
9781         * linuxthreads/wrapsyscall.c: Likewise.
9782         * nss/nsswitch.c: Likewise.
9783         * stdio-common/vfprintf.c: Likewise.
9784         * sysdeps/arm/init-first.c: Likewise.
9785         * sysdeps/i386/init-first.c: Likewise
9786         * sysdeps/generic/init-first.c: Likewise.
9787         * sysdeps/generic/libc-start.c: Likewise.
9788         * sysdeps/mips/init-first.c: Likewise.
9789         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9790         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9791         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9792         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9793         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9794
9795         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9796
9797 2000-03-29  Andreas Jaeger  <aj@suse.de>
9798
9799         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9800         Use D_PTR to access relocated entries in l_info.
9801         (elf_machine_rela): Likewise.
9802
9803         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9804         Likewise.
9805         (elf_machine_rela): Likewise.
9806
9807         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9808         Likewise.
9809         (__elf_machine_fixup_plt): Likewise.
9810         (__process_machine_rela): Likewise.
9811
9812         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9813         (elf_machine_rela): Likewise.
9814
9815         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9816         (elf_machine_rel): Likewise.
9817
9818         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9819         (elf_machine_fixup_plt): Likewise.
9820         (elf_machine_rela): Likewise.
9821
9822 2000-03-29  Andreas Jaeger  <aj@suse.de>
9823
9824         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9825         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9826         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9827         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9828         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9829         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9830         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9831         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9832         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9833         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9834         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9835         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9836         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9837         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9838         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9839
9840         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9841         macros, remove K&R prototypes.
9842
9843 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9844
9845         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9846         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9847         (PR libc/1677).
9848
9849 2000-03-30  Andreas Jaeger  <aj@suse.de>
9850
9851         * misc/sys/cdefs.h: Remove K&R support.
9852
9853 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9854
9855         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9856         more cases.
9857         * iconv/loop.c: Likewise.
9858
9859 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9860
9861         * iconv/loop.c (put16): Remove __const. Fix access index.
9862         (put32): Remove __const. Use uint32_t instead of uint16_t.
9863         * iconv/skeleton.c: Likewise.
9864
9865 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9866
9867         * mach/Versions (libc: GLIBC_2.0)
9868         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9869         __vm_allocate on this.
9870         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9871         mutex- and spinlock-related symbols on this.
9872         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9873         New version set.  Lock-related symbols go here instead in this case.
9874         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9875         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9876         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9877         * hurd/Versions
9878         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9879         Put them here instead.
9880         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9881         New version set.  Those cthreads symbols go here instead in this case.
9882         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9883
9884 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9885
9886         * elf/dl-init.c (_dl_init): We don't need to call constructors
9887         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9888
9889         Implement dynamic determination of constructor/destructor order in
9890         the dynamic linker.
9891         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9892         (GLIBC_2.2): Add _dl_init.
9893         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9894         r_duplist is not anymore allocated separately.  l_initfini is and
9895         therefore free it if necessary.
9896         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9897         malloc block.  Otherwise allocate l_initfini list only.
9898         Put dependencies for the object in l_initfini list.
9899         Sort dependencies for the object to be loaded topologically.
9900         * elf/dl-fini.c: Before running the destructors sort the topologically.
9901         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9902         call constructors instead of iterating over the pointers.  Get list of
9903         objects for which to run constructors from l_initfini element. Accept
9904         argc, argv, and env as parameters and pass them to the constructors.
9905         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9906         with size of dynamic section.
9907         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9908         _dl_init_next and calling constructors ourself.
9909         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9910         Take argc, argv, and env as parameters and pass them to the
9911         constructors.  Rewrite to call all constructors and not iterate over
9912         the pointers.
9913         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9914         precompute l_initcount and l_preinitcount.
9915         * elf/link.h (struct link_map): Add l_ldnum member.
9916         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9917         l_initcount, and l_preinitcount.  Add l_initfini.
9918         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9919         one for _dl_init.
9920         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9921         function interface.
9922         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9923         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9924         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9925         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9926         conventions now match.
9927
9928         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9929         effect for shared objects.  Don't emit message and call only for
9930         static library.
9931
9932 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9933
9934         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9935         CSA_Z243.4-1985-1..UCS2.
9936         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9937         ISO-8859-10..UCS2.
9938
9939 2000-03-29  Andreas Jaeger  <aj@suse.de>
9940
9941         * include/unistd.h: Remove duplicate entry for __rmdir.
9942         Remove declaration of __mkdir since __mkdir is declared in
9943         sys/stat.h.
9944
9945         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9946         by Michael Deutschmann <michael@talamasca.ocis.net>.
9947
9948         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
9949         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9950         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9951         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9952         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
9953
9954 2000-03-28  Andreas Jaeger  <aj@suse.de>
9955
9956         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
9957         declaration, the prototype is defined via bits/mathcalls.h.
9958         (__sincosf): Likewise.
9959         (__sincosl): Likewise.
9960         (ldexp): Likewise.
9961         (ldexpf): Likewise.
9962         (ldexpl): Likewise.
9963         (__finite): Likewise.
9964         (__inline_mathcodeNP): New macro without prototype
9965         declarations.
9966         (__inline_mathcodeNP2): Likewise.
9967         (__inline_mathcodeNP3): Likewise.
9968         (__inline_mathcodeNP_): Likewise.
9969         (__inline_mathcodeNP2_): Likewise.
9970         (__inline_mathcodeNP3_): Likewise.
9971         (__inline_mathopNP): Likewise.
9972         (__inline_mathop_declNP): Likewise.
9973         (__inline_mathop_declNP_): Likewise.
9974         (__inline_mathcode_): Use __inline_mathcodeNP_.
9975         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
9976         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
9977         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
9978         (__expm1l): Don't define prototype, the prototype is defined via
9979         bits/mathcalls.h.
9980         (exp): Likewise.
9981         (__expl): Likewise.
9982         (tan): Likewise.
9983         (atan2): Likewise.
9984         (__atan2l): Likewise.
9985         (fmod): Likewise.
9986         (pow): Likewise.
9987         (fabsf): Likewise.
9988         (fabsl): Likewise.
9989         (__fabsl): Likewise.
9990         (asin): Likewise.
9991         (acos): Likewise.
9992         (sinh): Likewise.
9993         (cosh): Likewise.
9994         (tanh): Likewise.
9995         (floor): Likewise.
9996         (ceil): Likewise.
9997         (expm1): Likewise.
9998         (log1p): Likewise.
9999         (asinh): Likewise.
10000         (acosh): Likewise.
10001         (atanh): Likewise.
10002         (hypot): Likewise.
10003         (logb): Likewise.
10004         (fma): Likewise.
10005         (drem): Likewise.
10006         (sqrt): Likewise.
10007         (__sqrtl): Likewise.
10008         (sin): Likewise.
10009         (cos): Likewise.
10010         (atan): Likewise.
10011         (log): Likewise.
10012         (log10): Likewise.
10013         (asinh): Likewise.
10014         (log2): Likewise.
10015         (rint): Likewise.
10016
10017 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10018
10019         * Makerules: If make variable md5 is defined to yes after
10020         generating dependencies generate MD5 sum for the object.
10021
10022         * iconv/gconv_builtin.h: Fix length in transformation definition
10023         for UNICODEBIG.
10024
10025         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10026
10027         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10028         allow as well reading from/writing to unaligned addresses on machines
10029         which don't support this in hardware.  Use FCTNAME macro to define
10030         function name.  Include the file a second time for platforms which
10031         need special unaligned handling.
10032         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10033         to access potentially unaligned addresses.  These macros are intended
10034         to be used only outside the loops.
10035         (unaligned): New definition.  In case the machine can handle unaligned
10036         access define as zero.  Otherwise as a variable which is initialized
10037         as nonzero in case the buffer passed in at runtime is unaligned with
10038         respect to the character set encoding involved.
10039         Call aligned or unaligned looop functions according to unaligned
10040         variable.
10041         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10042         of direct casting pointer to potentially handle unaligned memory
10043         accesses.
10044         * iconvdata/8bit-generic.c: Likewise.
10045         * iconvdata/ansi_x3.110.c: Likewise.
10046         * iconvdata/big5.c: Likewise.
10047         * iconvdata/euc-cn.c: Likewise.
10048         * iconvdata/euc-jp.c: Likewise.
10049         * iconvdata/euc-kr.c: Likewise.
10050         * iconvdata/euc-tw.c: Likewise.
10051         * iconvdata/gbk.c: Likewise.
10052         * iconvdata/iso-2022-cn.c: Likewise.
10053         * iconvdata/iso-2022-jp.c: Likewise.
10054         * iconvdata/iso-2022-kr.c: Likewise.
10055         * iconvdata/iso646.c: Likewise.
10056         * iconvdata/iso_6937-2.c: Likewise.
10057         * iconvdata/iso_6937.c: Likewise.
10058         * iconvdata/johab.c: Likewise.
10059         * iconvdata/sjis.c: Likewise.
10060         * iconvdata/t.61.c: Likewise.
10061         * iconvdata/uhc.c: Likewise.
10062         * iconvdata/unicode.c: Likewise.
10063         * iconvdata/utf-16.c: Likewise.
10064
10065         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10066         prototypes.
10067
10068         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10069         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10070         public.
10071         * malloc/mcheck.h (mcheck_check_all): Declare.
10072
10073         * stdio-common/Makefile (tests): Add tst-obprintf.
10074
10075 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10076
10077         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10078         Declare pthread_sigmask.
10079
10080         * csu/version.c: Add 2000 to copyright years.
10081         Remove Emacs local variables section.
10082
10083 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10084
10085         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10086         __gconv_transform_internal_ucs2little): Remove declarations.
10087         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10088         __gconv_transform_internal_ucs2): Never need to bswap_16.
10089         (__gconv_transform_ucs2reverse_internal,
10090         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10091
10092 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10093
10094         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10095         obsoleting version not being defined at all, in which case the
10096         result is always true.
10097
10098         * Makeconfig (preprocess-versions): New canned sequence for running
10099         cpp on shlib-versions and the like.
10100         (soversions.i): Use it.
10101         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10102         Versions.def and Versions files.
10103
10104 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10105
10106         * stdio-common/tst-obprintf.c (main): Add another check to see
10107         obstack_printf handling all possible beginnings of the block
10108         inside an obstack chunk.
10109
10110         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10111         install mcheck handler.
10112
10113         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10114         handling problem.
10115
10116 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10117
10118         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10119
10120         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10121         on [HAVE_ELF && DO_VERSIONING].
10122
10123 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10124
10125         * stdio-common/tst-obprintf.c: New file.
10126
10127 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10128
10129         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10130         _IO_OVERFLOW directly instead through __overflow.
10131
10132         * locale/programs/localedef.c (construct_output_path): If path
10133         contains a / compute the end of the directory name correctly.
10134
10135         * include/features.h: Undef and document __USE_XOPEN2K.
10136
10137         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10138         whenever a function is called.  Initiated by calling mcheck_pedantic
10139         instead of mcheck.
10140         * malloc/mcheck.h: Declare mcheck_pedantic.
10141         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10142         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10143         for now.
10144
10145 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10146
10147         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10148         * dlfcn/dlopenold.c: Likewise.
10149         * nss/getXXbyYY_r.c: Likewise.
10150         * nss/getXXent_r.c: Likewise.
10151         * hurd/hurdinit.c: Likewise.
10152         * hurd/compat-20.c: Likewise.
10153         * libio/oldiofopen.c: Likewise.
10154         * libio/oldiofclose.c: Likewise.
10155         * libio/oldiofdopen.c: Likewise.
10156         * libio/oldfileops.c: Likewise.
10157         * libio/oldstdfiles.c: Likewise.
10158         * libio/oldiofsetpos.c: Likewise.
10159         * libio/oldiofgetpos.c: Likewise.
10160         * libio/oldiofgetpos64.c: Likewise.
10161         * libio/oldiofsetpos64.c: Likewise.
10162         * libio/oldiopopen.c: Likewise.
10163         * libio/oldpclose.c: Likewise.
10164         * libio/oldtmpfile.c: Likewise.
10165         * libio/freopen.c (freopen): Likewise.
10166         * libio/iofclose.c (_IO_new_fclose): Likewise.
10167
10168         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10169         (reboot): Declare it.
10170
10171         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10172
10173         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10174
10175         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10176
10177         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10178         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10179         We need this for the sbrk decl, which can be included without Unix98.
10180
10181 2000-03-20  Richard Henderson  <rth@cygnus.com>
10182
10183         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10184         argument to yperr2nss is an int, not size_t.
10185         * posix/regex.c (print_partial_compiled_pattern): Cast all
10186         ptrdiff_t to long for printing.
10187         (print_compiled_pattern): Use Z for printing size_t.
10188         * posix/testfnm.c (tests): Avoid trigraphs.
10189         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10190         Use a C comment, not an assembly comment.
10191
10192         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10193         of __ASSUME_32BITUIDS.
10194
10195 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10196
10197         * libio/iofopncook.c: Remove K&R prototypes.
10198
10199 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10200
10201         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10202         an initial value of 1024 instead of RLIM_INFINITY.
10203
10204         * Versions.def (libmachuser, libhurduser): Remove these sections,
10205         since these libraries do not presently use symbol versions.
10206
10207         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10208         is RLIM_INFINITY, return -1 instead.
10209
10210 2000-03-24  Andreas Jaeger  <aj@suse.de>
10211
10212         * Makefile (postclean): Added soversions.i.
10213
10214 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10215
10216         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10217         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10218         and _FPU_IEEE.  Change _FPU_RESERVED.
10219
10220 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10221
10222         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10223
10224 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10225
10226         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10227         (gaih_inet): Remove unused duplicate variable.
10228
10229         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10230         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10231         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10232         only flavors supported by this function anyway.
10233
10234 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10235
10236         * stdlib/strfmon.c: Corrected problems with missing signs and
10237         missing or extra spaces; allow for sign strings longer than
10238         one character; add padding to ensure positive and negative
10239         formats are aligned when a left precision is used.
10240
10241 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10242
10243         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10244         Patch by John Mizel <John.Mizel@msdw.com>.
10245
10246 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10247
10248         * manual/install.texi: Remove references to crypt add-on.
10249
10250 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10251
10252         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10253         section while taking the _hurd_rlimit_lock.
10254         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10255
10256 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10257
10258         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10259         using $(LN_S).
10260
10261         * sysdeps/mach/hurd/if_index.c: New file.
10262
10263         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10264         * sysdeps/gnu/net/if.h: here.
10265         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10266         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10267         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10268         functions and `struct if_nameindex' type.
10269         * socket/Makefile (headers): Add net/if.h here.
10270         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10271         * sysdeps/mach/hurd/Dist: Remove it here.
10272         * sysdeps/unix/sysv/linux/Dist: And here.
10273         * sysdeps/generic/if_index.c: Include <net/if.h>.
10274
10275 2000-03-24  Andreas Jaeger  <aj@suse.de>
10276
10277         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10278         access relocated entries in l_info.
10279         (elf_machine_got_rel): Likewise.
10280         (elf_machine_runtime_setup): Likewise.
10281         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10282         (elf_machine_runtime_setup): Likewise.
10283         (__dl_runtime_resolve): Likewise.
10284
10285 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10286
10287         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10288         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10289         according to RFC 2553.
10290         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10291         * inet/getnameinfo.c: Likewise.
10292         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10293
10294 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10295
10296         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10297         Remove no-op pointer increment.
10298
10299 2000-03-23  Andreas Jaeger  <aj@suse.de>
10300
10301         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10302         follow change for libio.h from 2000-03-10.
10303
10304 2000-03-23  Andreas Jaeger  <aj@suse.de>
10305
10306         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10307         change.
10308         * elf/dl-debug.c: Likewise.
10309         * elf/dl-deps.c: Likewise.
10310         * elf/dl-error.c: Likewise.
10311         * elf/dl-fini.c: Likewise.
10312         * elf/dl-init.c: Likewise.
10313         * elf/dl-load.c: Likewise.
10314         * elf/dl-lookup.c: Likewise.
10315         * elf/dl-minimal.c: Likewise.
10316         * elf/dl-object.c: Likewise.
10317         * elf/dl-open.c: Likewise.
10318         * elf/dl-preinit.c: Likewise.
10319         * elf/dl-profile.c: Likewise.
10320         * elf/dl-profstub.c: Likewise.
10321         * elf/dl-reloc.c: Likewise.
10322         * elf/dl-runtime.c: Likewise.
10323         * elf/dl-support.c: Likewise.
10324         * elf/dl-symbol.c: Likewise.
10325         * elf/dl-version.c: Likewise.
10326         * elf/rtld.c: Likewise.
10327         * elf/sprof.c: Likewise.
10328         * sysdeps/generic/dl-cache.c: Likewise.
10329         * sysdeps/generic/dl-origin.c: Likewise.
10330         * sysdeps/generic/dl-sysdep.c: Likewise.
10331         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10332         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10333         * sysdeps/generic/libc-start.c: Likewise.
10334         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10335         * sysdeps/powerpc/dl-machine.c: Likewise.
10336         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10337         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10338         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10339         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10340
10341         * elf/ldsodefs.h: Move file to ...
10342         * sysdeps/generic/ldsodefs.h: ... here.
10343
10344         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10345
10346         * sysdeps/mips/elf/ldsodefs.h: New file.
10347
10348         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10349         entries in l_info.
10350         (_dl_check_map_versions): Likewise.
10351         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10352         * elf/dl-load.c (_dl_init_paths): Likewise.
10353         (_dl_map_object): Likewise.
10354         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10355         (elf_get_dynamic_info): Likewise.
10356         * elf/do-lookup.h (FCT): Likewise.
10357         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10358         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10359         * elf/dl-addr.c (_dl_addr): Likewise.
10360         * elf/dl-runtime.c (profile_fixup): Likewise.
10361         (fixup): Likewise.
10362         * elf/dl-init.c (_dl_init_next): Likewise.
10363         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10364         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10365         (DISTINGUISH_LIB_VERSIONS): Likewise.
10366         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10367         (elf_machine_rel): Likewise.
10368
10369         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10370         for writable dynamic section.
10371
10372 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10373
10374         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10375         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10376
10377 2000-03-22  Andreas Jaeger  <aj@suse.de>
10378
10379         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10380         from latest Linux kernel.
10381
10382 2000-03-21  Andreas Jaeger  <aj@suse.de>
10383
10384         * Versions.def: Add version 2.1.4.
10385
10386 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10387
10388         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10389         * libio/oldiofopen.c: Likewise.
10390         * libio/oldiofclose.c: Likewise.
10391         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10392
10393 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10394
10395         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10396         indicating the first version set to obsolete the conditionalized code.
10397         (compat_symbol): New macro.
10398         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10399         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10400         integer values to the ABI_* macros for supported versions.
10401         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10402         compat_symbol macro.
10403
10404 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10405
10406         * nscd/connections.c (nscd_run): Pretty print.
10407         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10408
10409         * manual/charset.texi: Fix typos.  Rephrase.
10410         * manual/process.texi: Likewise.
10411         * manual/signal.texi: Likewise.
10412         Patches by Mike Coleman <mkc@kc.net>.
10413
10414         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10415         versions.
10416         * libio/iofdopen.c: Likewise.
10417         * libio/iofgetpos.c: Likewise.
10418         * libio/iofgetpos64.c: Likewise.
10419         * libio/iofopen.c: Likewise.
10420         * libio/iofsetpos.c: Likewise.
10421         * libio/iofsetpos64.c: Likewise.
10422         * libio/iopopen.c: Likewise.
10423         * libio/oldiofopen.c: Likewise.
10424         * libio/pclose.c: Likewise.
10425         * sysdeps/gnu/siglist.c: Likewise.
10426         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10427
10428         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10429         chance to expand VERSION_##lib##_##version.
10430
10431         * libio/fileops.c: Use new macros from shlib-compat.h to define
10432         versions.
10433         * libio/iofclose.c: Likewise.
10434         * libio/oldiofclose.c: Likewise.
10435         Patch by Roland McGrath <roland@frob.com>.
10436
10437 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10438
10439         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10440         Lay out struct sigcontext according to what really gets passed on
10441         the stack.
10442         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10443         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10444         (prgregset_t, prfpregset_t): Define to elf_* types.
10445         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10446         Define to correct value.
10447         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10448         sigcontext.
10449         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10450
10451 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10452
10453         * scripts/firstversions.awk: Allow multiple version sets in the
10454         "earliest version" specification, meaning that version sets in the
10455         gaps between listed versions should be folded into the earliest later
10456         version that is explicitly listed.
10457         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10458         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10459
10460 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10461
10462         * iconv/gconv_builtin.c: Include <endian.h>.
10463         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10464         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10465         according to current platform.
10466         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10467         __gconv_transform_internal_ucs2reverse, and
10468         __gconv_transform_internal_ucs4le.
10469         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10470         __gconv_transform_ucs2reverse_internal and
10471         __gconv_transform_internal_ucs2reverse.
10472         * iconvdata/Makefile (modules): Add UNICODE.
10473         (distribute): Add unicode.c.
10474         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10475         * iconvdata/unicode.c: New file.
10476
10477         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10478         determine byte order of input and convert accordingly.
10479
10480         * iconvdata/utf-16.c (gconv_init): Fix typo.
10481
10482 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10483
10484         * iconvdata/gconv-modules: Fix typo.
10485
10486         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10487         more messages.
10488
10489         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10490
10491 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10492
10493         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10494
10495 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10496
10497         * misc/Makefile (routines): Add mincore.
10498
10499 2000-03-20  Andreas Jaeger  <aj@suse.de>
10500
10501         * sysdeps/generic/mincore.c: New stub file.
10502
10503         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10504         from latest Linux kernel.
10505
10506 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10507
10508         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10509         _SC_GETPW_R_SIZE_MAX.
10510
10511 2000-03-20  Richard Henderson  <rth@cygnus.com>
10512
10513         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10514         in GLIBC_2.1.4.
10515
10516 2000-03-20  Richard Henderson  <rth@cygnus.com>
10517
10518         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10519         of arithmetic instructions.
10520
10521         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10522         with the fpcr.  Protect from INV exception.
10523         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10524         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10525         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10526
10527         * sysdeps/alpha/fpu/s_copysign.c: New.
10528         * sysdeps/alpha/fpu/s_copysignf.c: New.
10529         * sysdeps/alpha/fpu/s_fabs.c: New.
10530         * sysdeps/alpha/fpu/s_fabsf.c: New.
10531         * sysdeps/alpha/fpu/s_rint.c: New.
10532         * sysdeps/alpha/fpu/s_rintf.c: New.
10533
10534         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10535
10536         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10537         Kill sethae.
10538         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10539         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10540         Use physical addresses not KSEG addresses.
10541         (io_system): Add PYXIS.
10542         (io): Remove hae.reg, sys, hae_shift.
10543         (stb_mb, stw_mb, stl_mb, __sethae): New.
10544         (inline_outb, inline_outw, inline_outl): Don't set hae.
10545         (inline_inb, inline_inw, inline_inl): Likewise.
10546         (dense_sethae): New null function.
10547         (struct cpuinfo_data): New.
10548         (process_cpuinfo): Use local and stack variables, not static.
10549         Move readlink check here from init_iosys.
10550         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10551         (_iopl): Simplify.
10552         (_hae_shift): Calculate it here.
10553         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10554         add pciconfig_iobase.
10555
10556 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10557
10558         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10559         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10560
10561         * scripts/versions.awk: Fixed version renaming code to distinguish
10562         libraries properly.
10563
10564 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10565
10566         * include/stdlib.h: Add prototype for __cxa_atexit.
10567
10568         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10569         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10570
10571 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10572
10573         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10574         existing rtld-installed-name.
10575         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10576         replace existing rtld-installed-name using $(symbolic-link-prog).
10577
10578 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10579
10580         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10581         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10582         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10583         but not the former.
10584
10585 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10586
10587         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10588         glob64.  Since there is no glob64 in the LFS proposal applications
10589         can assume that glob handles LFS situations.  glob64 is only needed
10590         if alternative filesystem functions are used.
10591
10592 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10593
10594         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10595         when GLOB_DOOFFS is set; correct handling of patterns
10596         containing escaped wildcards (and no unescaped ones);
10597         GLOB_ERR flag was being ignored in some situations.
10598
10599         * posix/globtest.c, posix/globtest.sh: Updated to include
10600         tests for the problems fixed by the above changes to glob.c.
10601
10602         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10603
10604 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10605
10606         * Makeconfig (soversion.i): Use only first match for each lib.
10607
10608         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10609
10610         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10611         rather than $(sysd-dirs-done) to protect these rules.
10612
10613         * Makerules (version-renames.def): Target removed.
10614         (Versions.all): Depend on soversions.i directly and parse it.
10615
10616         * Makeconfig (soversions.i): New target, input-reading parts of
10617         soversions.mk generation moved here; result is a canonicalized
10618         list "LIB VERSION [SET]" for this configuration.
10619         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10620         * Makerules (version-renames.def): New target, generated from
10621         soversions.i with contents that was in $(map-firstversions).
10622         (Versions.all): Don't depend on soversions.mk, depend on
10623         version-renames.def instead; just cat it into the input.
10624
10625         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10626         for $(map-firstversions), which better handles it being empty.
10627
10628         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10629         supported version for libc 0.2.90.libio to GLIBC_2.2.
10630
10631         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10632         and use it to emit new variable `map-firstversions'.
10633         * scripts/firstversions.awk: New file.
10634         * Makerules (Versions.all): Use scripts/firstversions.awk and
10635         the $(map-firstversions) value to generate a modified versions list
10636         that includes renames in "A = B" syntax for each version set earlier
10637         than the "earliest symbol version" named in shlib-versions.
10638         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10639         rename version set A to B in the output to the intermediate file.
10640         * scripts/abi-versions.awk: New file.
10641         * Makerules (abi-versions.h): New target, generated by that script.
10642         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10643         * include/shlib-compat.h: New file, uses that generated header.
10644
10645 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10646
10647         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10648         after stripping # comments, and then run it through cpp.
10649         This allows things like "%ifdef FOO" based on config.h settings.
10650         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10651
10652         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10653         and other errors that indicate a pseudo-receive happened, grok through
10654         the message buffer for port rights that need references fixed up.
10655
10656 2000-03-16  Andreas Jaeger  <aj@suse.de>
10657
10658         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10659
10660         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10661
10662         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10663         from latest Linux kernel.
10664         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10665
10666         * misc/sys/mman.h: Add prototype for mincore.
10667
10668 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10669
10670         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10671         entry for GLIBC_2.0 version of setrlimit.
10672         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10673
10674 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10675
10676         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10677         * nis/nss_compat/compat-initgroups.c: Likewise.
10678         * nis/nss_nis/nis-initgroups.c: Likewise.
10679         * nis/nss_nis/nis-netgrp.c: Likewise.
10680         * nis/nss_nis/nis-proto.c: Likewise.
10681         * nis/nss_nis/nis-rpc.c: Likewise.
10682         * nis/nss_nis/nis-service.c: Likewise.
10683         * nis/ypclnt.c: Likewise.
10684
10685 2000-03-16  Andreas Jaeger  <aj@suse.de>
10686
10687         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10688         doesn't exist, correct checks.  Fixes PR libc/1649.
10689
10690 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10691
10692         * nscd/hstcache.c: Restore correct UID.
10693         * nscd/pwdcache.c: Likewise.
10694         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10695
10696 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10697
10698         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10699         macros for register names, in line with 2000-03-14 linux change.
10700
10701         * sysdeps/mach/sched_yield.c: New file.
10702
10703 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10704
10705         * sysdeps/generic/lockfile.c: Include <stdio.h>
10706         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10707         case <libio.h> defined them.
10708         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10709         from __internal_*.
10710         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10711         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10712
10713         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10714         for more pleasing parse error.
10715
10716 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10717
10718         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10719         memory for eras.
10720         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10721
10722         * elf/Makefile: Add rules to compile and run constload1 test.
10723         * elf/constload1.c: New file.
10724         * elf/constload2.c: New file.
10725         * elf/constload3.c: New file.
10726
10727 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10728
10729         * sysdeps/posix/open64.c: Make __open64 weak alias.
10730         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10731         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10732         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10733         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10734         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10735         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10736         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10737         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10738         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10739         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10740
10741 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10742
10743         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10744         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10745
10746 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10747
10748         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10749         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10750
10751 2000-03-08  Andreas Jaeger  <aj@suse.de>
10752
10753         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10754
10755 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10756
10757         * timezone/africa: Update from tzdata2000d.
10758         * timezone/asia: Likewise.
10759         * timezone/australasia: Likewise.
10760         * timezone/europe: Likewise.
10761         * timezone/northamerica: Likewise.
10762         * timezone/southamerica: Likewise.
10763
10764         * po/fr.po: Update from translation team.
10765         * po/de.po: Likewise.
10766
10767         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10768         last parameter.  Move code to add map to global scope from here...
10769         * elf/dl-open.c (dl_open_worker): ...here.
10770         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10771         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10772
10773         * locale/programs/ld-collate.c (collate_read): Fix warning.
10774
10775         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10776         values and macros for register names.
10777
10778         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10779         returned by seek cookie function is -1.
10780
10781 2000-03-14  Andreas Jaeger  <aj@suse.de>
10782
10783         * locale/localeconv.c (localeconv): Fix typo.
10784         Reported by Andre Charbonneau <andrec@corel.com>.
10785
10786 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10787
10788         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10789         since modules depend on it counting the number of times the conversion
10790         function got called.
10791
10792         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10793
10794         * iconv/gconv.h: Pretty print.
10795
10796 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10797
10798         * posix/wordexp-test.c: Correct one of the tests added in the last
10799         change.  Really get the root passwd entry to check again ~root.
10800
10801 2000-03-10  Andreas Jaeger  <aj@suse.de>
10802
10803         * manual/filesys.texi (Working Directory): Fix last patch.
10804         Patch by Martin Buchholz  <martin@xemacs.org>.
10805
10806 2000-03-10  Andreas Jaeger  <aj@suse.de>
10807
10808         * manual/creature.texi (Feature Test Macros): Fix language.
10809
10810 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10811
10812         * mach/devstream.c (devstream_write, devstream_read): New functions.
10813         (input, output): Functions removed.
10814         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10815         using only the vanilla fopencookie interface.
10816
10817         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10818         as macro for __io_functions.
10819         (funcsio): Use cookie_io_functions_t type name.
10820         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10821
10822         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10823         fopencookie.
10824         (fopencookie): Use it.
10825         * libio/libio.h: Declare _IO_cookie_init.
10826         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10827         _IO_cookie_init.
10828
10829         * libio/libio.h (__io_seek_fn): Fix second argument type
10830         to be a pointer, in line with the manual and the old stdio.
10831         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10832
10833         * sysdeps/generic/bits/stdio-lock.h: New file.
10834         This is a stub with #error, but that's better than no file at all.
10835
10836 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10837
10838         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10839         * manual/message.texi (Using gettextized software): Doc Fixes.
10840         * manual/message.texi (Message Translation): Doc Fixes.
10841         * manual/filesys.texi (File Size): Doc Fixes.
10842         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10843         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10844         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10845         * manual/install.texi: Doc Fixes.
10846         * manual/search.texi (Hash Search Function): Doc Fixes.
10847         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10848         * FAQ.in: Doc Fixes.
10849         * config.h.in: Doc Fixes.
10850         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10851         Doc Fixes.  `allows to' is not correct English.
10852
10853         * elf/rtld.c: Doc fixes.
10854         * manual/creature.texi (Feature Test Macros): Doc fixes.
10855         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10856
10857         * manual/filesys.texi (Working Directory): Check for ERANGE to
10858         avoid infloop.
10859
10860 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10861
10862         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10863         conditions so as not to clobber the final '\0' when there is only one
10864         element in the vector.
10865
10866 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10867
10868         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10869         broken by 2000-02-27 change.
10870
10871         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10872
10873 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10874
10875         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10876         argument type, for 2000-02-22 change in signal/signal.h declaration.
10877
10878 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10879
10880         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10881         to getdirentries64 (no __), since the Linux implementation
10882         has no __ name, and there is no declaration for the __ name.
10883
10884         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10885
10886         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10887         sed regexp so as not to break directory names including /../ within.
10888
10889         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10890         The sysdeps/generic file is right for BSD.  This file was in fact the
10891         Hurd file, but the only difference was the WNOREAP flag that was never
10892         actually implemented or used anywhere.
10893
10894         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10895         since AC_PATH_PROG already does it for us.
10896         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10897         correctness and sh portability.  I replaced the broken check
10898         with a more sensible implementation of the apparently intended
10899         semantics, which might still be questionable.  Using expr causes
10900         a non-numeric value for `perl -V:apiversion` to be accepted,
10901         refusing to use only a perl that reports a number less than 5;
10902         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10903         * configure: Regenerated.
10904
10905 2000-03-08  Andreas Jaeger  <aj@suse.de>
10906
10907         * manual/crypt.texi: Fix paths.
10908
10909 2000-03-07  Andreas Jaeger  <aj@suse.de>
10910
10911         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10912         were swapped.
10913         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10914         libc/1636.
10915
10916 2000-03-06  Andreas Jaeger  <aj@suse.de>
10917
10918         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10919         in __sgn1l, otherwise g++ fails to parse this.
10920         Reported by Sean Chen <sean.chen@turbolinux.com>.
10921
10922 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10923
10924         * configure.in: Compute sizeof-long-double.
10925         * configure: Regenerated.
10926         * config.make.in: Make sizeof-long-double available to sub-makes.
10927
10928 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10929
10930         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10931         call.
10932
10933 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10934
10935         * Makeconfig (rpath-dirs): Add crypt.
10936         (all-subdirs): Remove md5crypt.
10937         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10938         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10939         * sysdeps/generic/crypt-entry.c: Delete.
10940         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10941         * sysdeps/generic/crypt.h: Delete.
10942         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10943         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10944         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10945         * sysdeps/generic/des_impl.c: Delete.
10946         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10947         * crypt/sysdeps: Delete.
10948         * crypt/crypt_util.c: Don't use `patchlevel.h'.
10949         * md5-crypt/Versions: Move to crypt/.
10950         * md5-crypt/md5-crypt.c: Move to crypt/.
10951         * md5-crypt/md5.c: Move to crypt/.
10952         * md5-crypt/md5c-test.c: Move to crypt/.
10953         * md5-crypt/md5test.c: Move to crypt/.
10954         * md5-crypt: Delete.
10955         * crypt/Makefile: Adjust for new structure.
10956
10957 2000-03-03  Paul Eggert  <eggert@twinsun.com>
10958
10959         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
10960         define to 1 if not defined.
10961
10962 2000-03-03  Andreas Jaeger  <aj@suse.de>
10963
10964         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
10965
10966 2000-03-03  Andreas Jaeger  <aj@suse.de>
10967
10968         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
10969         cases.
10970         (xdr_int64_t): Correctly handle lower half.
10971         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
10972
10973 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10974
10975         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10976         call.
10977
10978 2000-03-02  Andreas Jaeger  <aj@suse.de>
10979
10980         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
10981         2.3.43.
10982
10983 2000-03-02  Andreas Jaeger  <aj@suse.de>
10984
10985         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
10986
10987 2000-03-01  Andreas Jaeger  <aj@suse.de>
10988
10989         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
10990         (tests): Added tst-getdate.
10991
10992         * time/tst-getdate.c: New file.
10993
10994         * time/datemsk: New file, needed for tst-getdate.
10995
10996 2000-02-29  Cristian Gafton  <gafton@redhat.com>
10997
10998         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
10999
11000 2000-02-17  H.J. Lu  <hjl@gnu.org>
11001
11002         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11003
11004         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11005         available.
11006         (svcudp_recv): Set up message with the new "xp_pad" field for
11007         IP_PKTINFO.
11008         (svcudp_reply): Support IP_PKTINFO if available.
11009
11010 2000-03-01  Andreas Jaeger  <aj@suse.de>
11011
11012         * time/getdate.c (check_mday): Fix check for february.
11013         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11014         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11015
11016 2000-03-02  Andreas Jaeger  <aj@suse.de>
11017
11018         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11019         g++ fails to parse this.
11020         Reported by Sean Chen <sean.chen@turbolinux.com>.
11021
11022 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11023
11024         * io/creat.c: Moved to...
11025         * sysdeps/generic/creat.c: ...here.
11026         * io/creat64.c: Moved to...
11027         * sysdeps/generic/creat64.c: ...here.
11028         * io/lockf.c: Moved to...
11029         * sysdeps/generic/lockf.c: ...here.
11030
11031         * crypt/crypt.texi: Moved to...
11032         * manual/crypt.texi: ...here.
11033         * crypt/examples/genpass.c: Moved to...
11034         * manual/examples/genpass.c: ...here.
11035         * crypt/examples/mygenpass.c: Moved to...
11036         * manual/examples/mygenpass.c: ...here.
11037         * crypt/examples/testpass.c: Moved to...
11038         * manual/examples/testpass.c: ...here.
11039
11040         * manual/Makefile (chapters): Add crypt.
11041         * manual/conf.texi: Add usual header for not-last chapter.
11042         * manual/crypt.texi: Add special header for last chapter.
11043
11044 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11045
11046         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11047         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11048         complain if there is no crypt add-on.
11049         * crypt/configure: Removed.
11050
11051         * crypt/crypt.texi: Update documentation of US export restrictions
11052         to match the 14 Jan 2000 regulations.
11053
11054 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11055
11056         * crypt: New subdirectory, merged in from the crypt add-on.
11057
11058 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11059
11060         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11061
11062
11063 See ChangeLog.10 for earlier changes.