Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-17  H.J. Lu  <hjl@gnu.org>
2
3         * catgets/Makefile ($(objpfx)de/libc.cat): Use
4         $(make-target-directory) instead of mkdir.
5
6 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7
8         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
9         __ASSUME_32BITUIDS for __powerpc__.
10         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
11         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
12
13 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
14
15         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
16         patch.
17         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
18
19 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
20
21         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
22         first.
23         * sysdeps/m68k/Implies: Likewise.
24         * sysdeps/sparc/sparc64/Implies: Likewise.
25
26 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
27
28         * elf/readlib.c (process_file): Don't error for stale .so links either.
29
30 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
31
32         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
33         __builtin_expect.
34
35         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
36         Patch by Thorsten Kukuk <kukuk@suse.de>.
37
38         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
39         (test): Add default.
40         (modules-names): Add defaultmod1 and defaultmod2.
41         Add rules to build test objects.
42
43 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
44
45         * wctype/wctype.h: Always include <bits/types.h>.
46         Reported by Jim Meyering <meyering@ascend.com>.
47
48         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
49         * elf/dl-support.c: Likewise.
50
51         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
52         st_blocks member in stat and stat64 structs.
53         Patch by Bill Nottingham <notting@redhat.com>.
54
55         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
56         take longer.
57
58         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
59         __extension__ to _Complex_I definition since gcc warns if -pedantic.
60         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
61         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
62
63         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
64         necessary.  Move includes of POSIX and Unix limits files to the end.
65         * stdlib/Makefile (tests): Add tst-limits.
66         * stdlib/tst-limits.h: New file.
67
68 2000-09-15  Andreas Jaeger  <aj@suse.de>
69
70         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
71
72         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
73
74 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
75
76         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
77         clobber.
78         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
79         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
80
81 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
82
83         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
84         (tests): Add next.
85         (modules-names): Add nextmod1 and nextmod2.
86         Add rules to build and run next.
87         * elf/next.c: New file.
88         * elf/nextmod1.c: New file.
89         * elf/nextmod2.c: New file.
90
91 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
92
93         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
94
95 2000-09-15  Andreas Jaeger  <aj@suse.de>
96
97         * sysdeps/mips/fpu/fenv_libc.h: New file.
98         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
99         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
100         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
101
102         * sysdeps/mips/fpu/feenablxcpt.c: New file.
103         * sysdeps/mips/fpu/fegetexcept.c: New file.
104         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
105
106 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
107
108         * intl/Makefile: Avoid unnecessary test reruns.
109
110         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
111
112         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
113         to not use sysctl().  Too many architectures have problems with it.
114
115 2000-09-14  Andreas Jaeger  <aj@suse.de>
116
117         * scripts/config.sub: New version from subversions.gnu.org.
118
119         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
120         long.
121
122 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
123
124         * posix/regex.c (compile_range): Cast collseq index to unsigned char
125         to avoid accessing data before collseq.
126
127         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
128         pasting strings together.
129
130 2000-09-14  Greg McGary  <greg@mcgary.org>
131
132         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
133         copyright notice.
134         * sysdeps/generic/bp-semctl.h: Likewise.
135         * sysdeps/generic/bp-start.h: Likewise.
136         * sysdeps/generic/bp-sym.h: Likewise.
137         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
138         rename prototype.
139
140 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
141
142         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
143         don't fail.
144
145         * elf/elf.h: Add missing official relocations.
146
147         * libio/stdio.h: Define __FILE if __need___FILE is defined.
148         * stdio/stdio.h: Likewise.
149         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
150         * include/stdio.h: Handle __need___FILE like __need_FILE.
151         * include/wchar.h: Use __FILE instead of FILE.
152         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
153         * libio/fwscanf.c: Likewise.
154         * libio/getwc.c: Likewise.
155
156         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
157         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
158         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
159
160         * assert/assert.h: Update comment header about ISO C section.
161         * math/complex.h: Likewise.
162         * ctype/ctype.h: Likewise.
163         * include/errno.h: Likewise.
164         * include/limits.h: Likewise.
165         * locale/locale.h: Likewise.
166         * math/math.h: Likewise.
167         * setjmp/setjmp.h: Likewise.
168         * signal/signal.h: Likewise.
169         * stdio/stdio.h: Likewise.
170         * libio/stdio.h: Likewise.
171         * stdlib/stdlib.h: Likewise.
172         * string/string.h: Likewise.
173         * time/time.h: Likewise.
174         * wcsmbs/wchar.h: Likewise.
175         * wctype/wctype.h: Likewise.
176         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
177
178 2000-09-13  Andreas Jaeger  <aj@suse.de>
179
180         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
181         for no more entries.
182         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
183         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
184         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
185
186 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
187
188         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
189         constant since this is what clock_t is.
190         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
191         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
192         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
193         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
194
195         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
196         definitions are requested.
197
198 2000-09-13  Andreas Jaeger  <aj@suse.de>
199
200         * shlib-versions: libBrokenLocale needs minimal version for ia64,
201         sparc64 and sh to synch with libc.
202
203 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
204
205         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
206         (distribute): Add iso-2022-cn-ext.c.
207         Add definitions to compile the new module.
208         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
209         * iconvdata/iso-2022-cn-ext.c: New file.
210         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
211         ucs4_from_isoir165.  Increment input pointer if successful.
212
213         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
214
215         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
216
217 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
218
219         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
220         __syscall_getdents64 wrapper.
221
222         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
223
224 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
225
226         * iconvdata/gb18030.c: Many many changes.  Make consistent with
227         charmap and with itself.
228         * iconvdata/tst-tables.sh: Test GB18030.
229
230 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
231
232         * iconv/skeleton.c: Fix last patch, add missing parameter to
233         unaligned function call.
234
235 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
236
237         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
238         of decimal ellipsis.
239
240 2000-09-11  Bruno Haible <haible@clisp.cons.org>
241
242         * locale/programs/ld-collate.c (collate_read): Always initialize
243         error_section.next.
244
245 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
246
247         * locale/programs/ld-collate.c (collate_finish): Upper bound for
248         ruleidx is 128, not 256.
249
250 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
251
252         * locale/programs/ld-collate.c (collate_read): Correct check for
253         already inserted entries.
254
255 2000-09-10  Bruno Haible <haible@clisp.cons.org>
256
257         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
258         second try as well.
259
260 2000-09-10  Bruno Haible <haible@clisp.cons.org>
261
262         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
263         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
264
265 2000-09-10  Bruno Haible <haible@clisp.cons.org>
266
267         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
268         SAVE_RESET_STATE.
269
270 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
271
272         * iconvdata/utf-7.c: New file.
273         * iconvdata/gconv-modules (UTF-7): New module entries.
274         * iconvdata/Makefile (modules): Add UTF-7.
275         (distribute): Add utf-7.c.
276         * iconvdata/testdata/UTF-7: New file.
277         * iconvdata/testdata/UTF-7..UTF8: New file.
278         * iconvdata/TESTS (UTF-7): New entry.
279         * iconvdata/run-iconv-test.sh: Fix confusing output.
280
281 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
282
283         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
284
285 2000-09-10  David S. Miller  <davem@redhat.com>
286
287         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
288         frame pointer offset for non-fast path.
289
290 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
291
292         * locale/programs/3level.h (*_init): Initialize level1, level2,
293         and level3 as well.
294         (*_add): Remove a few unnecessary conditionals.
295
296 2000-09-05  Wolfram Gloger  <wg@malloc.de>
297
298         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
299         ensure usability of mutex as an `in use' flag.
300
301 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
302
303         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
304
305         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
306         ugly GMON_WEAK_START hack.
307         Patch by Philip Blundell <philb@gnu.org>.
308
309         * sysdeps/i386/i486/bits/string.h: Pretty printing.
310
311 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
312
313         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
314         and PPC_ICBI asm for broken compilers.
315         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
316
317 2000-09-09  Andreas Jaeger  <aj@suse.de>
318
319         * manual/message.texi (Advanced gettext functions): Fix typo.
320
321         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
322         strncpy prototype.
323
324 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
325
326         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
327         warnings.
328         * sysdeps/ia64/memccpy.S: Likewise.
329         Patches by Jim Wilson <wilson@redhat.com>.
330
331         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
332         before trying to read /proc.
333         Patch by Matt Wilson <msw@redhat.com>.
334         * include/sys/utsname.h: Declare __uname.
335         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
336         * sysdeps/mach/hurd/uname.c: Likewise.
337         * sysdeps/unix/syscalls.list: Likewise.
338
339         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
340         unloading a bit.
341
342 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
343
344         * posix/getopt.c (_getopt_internal): When long_only is set always
345         recognize conflicts just like before.
346
347 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
348
349         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
350
351 2000-09-08  Greg McGary  <greg@mcgary.org>
352
353         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
354         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
355         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
356
357 2000-09-08  Andreas Jaeger  <aj@suse.de>
358
359         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
360
361         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
362
363         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
364         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
365         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
366
367 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
368
369         * iconvdata/tst-tables.sh: Enable EUC-KR test.
370
371         * elf/dl-load.c (lose): Decrement _nl_loaded.
372         (_dl_map_object_from_fd): Don't try to dlopen executables.
373
374         * iconvdata/tst-tables.sh: Actually return with an error if
375         something goes wrong.
376         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
377         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
378
379         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
380
381         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
382         * iconvdata/tst-table-from.c: Include <string.h>.
383         (try): Correct cast in iconv call.
384
385         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
386         too.
387         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
388         (sysdep_routines): Remove dl-start.
389         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
390
391         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
392
393         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
394         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
395
396 2000-09-06  Andreas Schwab  <schwab@suse.de>
397
398         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
399
400 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
401
402         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
403
404         * scripts/config.sub: Strip out -unknown for Linux targets.
405         Patch by Scott Bambrough <scottb@netwinder.org>.
406
407         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
408         add one more test.
409
410 2000-09-07  Andreas Jaeger  <aj@suse.de>
411
412         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
413
414         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
415         syscalls.
416
417         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
418
419         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
420         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
421
422         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
423
424         * stdlib/tst-bsearch.c (main): Add more test cases.
425
426         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
427         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
428         Reported by GOTO Masanori <gotom@debian.or.jp>.
429
430 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
431
432         * posix/Makefile (tests): Add tst-dir.
433         (tst-dir-ARGS): New variable.
434         * posix/tst-dir.c: New file.
435
436 2000-09-07  Andreas Jaeger  <aj@suse.de>
437
438         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
439         (SYS_fcntl64): New.
440
441         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
442
443 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
444
445         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
446         use the hack with tryopen_o_directory to determine at runtime
447         whether it works.
448         * sysdeps/unix/sysv/linux/opendir.c: New file.
449         * sysdeps/unix/sysv/linux/kernel-features.h: Define
450         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
451
452         * catgets/Depend: New file.  Add intl.
453         * catgets/Makefile (tests): Add tst-catgets.
454         (generated): Remove de.msg.
455         (generated-dirs): Add de.
456         Add dependency if tst-catgets output on de/libc.cat.
457         * catgets/tst-catgets.c: New file.
458
459         * po/ja.po: New file.
460         * po/el.po: Update from translation team.
461
462         * wcsmbs/Depend: New file.
463         * wcsmbs/Makefile (tests): Add tst-btowc.
464         (tst-btowc-ENV): Define.
465         * wcsmbs/tst-btowc.c: New file.
466
467         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
468         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
469
470         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
471
472         * stdlib/Makefile (tests): Add tst-bsearch.
473         * stdlib/tst-bsearch.c: New file.
474
475         * posix/getopt.c (_getopt_internal): Don't recognize an option
476         name as ambiguous if it's a prefix for more than one name but the
477         other struct option values are identical.
478
479         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
480         Don't depend on visual inspection of the output file to recognize
481         errors.
482         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
483
484 2000-09-06  Andreas Jaeger  <aj@suse.de>
485
486         * sysdeps/alpha/soft-fp/Dist: New file.
487         * sysdeps/i386/soft-fp/Dist: New file.
488         * sysdeps/mips/mips64/soft-fp/Dist: New file.
489         * sysdeps/mips/soft-fp/Dist: New file.
490         * sysdeps/powerpc/soft-fp/Dist: New file.
491         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
492         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
493
494         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
495         Use sysdep_routines instead of routines to fix make dist failure.
496         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
497         out code).
498         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
499
500         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
501         sysdep_headers instead of headers for make dist.
502
503         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
504         Likewise.
505
506 2000-09-06  Andreas Schwab  <schwab@suse.de>
507
508         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
509
510 2000-09-06  Andreas Jaeger  <aj@suse.de>
511
512         * soft-fp/Makefile (distribute): Remove ChangeLog.
513
514         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
515         sysdep_routines instead of routines for make dist.
516
517 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
518
519         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
520         compatibility check for old stream and call _IO_wide in doubt.
521         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
522         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
523         needed tst for such an old structure and don't do anything.
524         * libio/freopen.c: Remove declaration of _IO_stdin_used.
525
526 2000-09-06  Andreas Jaeger  <aj@suse.de>
527
528         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
529         sysdep-dl-routines and sysdep_routines instead of rtld-routines
530         and dl-routines.
531
532         * soft-fp/ChangeLog: Merged with this file.
533
534 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
535
536         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
537
538         * soft-fp/Makefile (distribute): Add the math functions, too.
539
540         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
541
542 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
543
544         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
545         as a statement.
546
547         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
548         * soft-fp/sysdeps/powerpc/q_*: New files.
549
550 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
551
552         * stdio-common/vfprintf.c (process_string_arg): Handle precision
553         in wide char case correctly.  Don't allocate too long temporary
554         strings with alloca.
555
556         * stdio-common/Makefile (tests): Add tst-swprintf.
557         (tst-swprintf-ENV): New variable.
558         * stdio-common/tst-swprintf.c: New file.
559
560 2000-09-05  Andreas Jaeger  <aj@suse.de>
561
562         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
563         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
564         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
565
566 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
567
568         * configure.in: Strip out "unknown" from configuration names.
569
570 2000-09-05  Andreas Jaeger  <aj@suse.de>
571
572         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
573
574         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
575         * sysdeps/sparc/sparc32/Implies: Likewise.
576         * sysdeps/powerpc/Implies: Likewise.
577
578         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
579         * libio/oldiofgetpos64.c: Likewise.
580
581         * soft-fp/Makefile (distribute): Remove configure.
582
583         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
584
585         * soft-fp/configure: Remove.
586
587         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
588         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
589
590         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
591         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
592
593         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
594         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
595
596         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
597         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
598
599         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
600         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
601
602         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
603         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
604
605         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
606         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
607
608         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
609         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
610
611         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
612         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
613
614         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
615         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
616
617         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
618         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
619
620         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
621         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
622
623         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
624         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
625
626         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
627         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
628
629         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
630         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
631
632         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
633         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
634
635         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
636         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
637
638         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
639         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
640
641         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
642         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
643
644         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
645         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
646
647         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
648         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
649
650         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
651         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
652
653         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
654         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
655
656         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
657         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
658
659         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
660         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
661
662         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
663         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
664
665         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
666         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
667
668         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
669         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
670
671         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
672         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
673
674         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
675         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
676
677         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
678         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
679
680         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
681         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
682
683         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
684         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
685
686         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
687         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
688
689         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
690         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
691
692         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
693         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
694
695         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
696         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
697
698         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
699         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
700
701         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
702         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
703
704         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
705         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
706
707         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
708         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
709
710         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
711         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
712
713         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
714         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
715
716         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
717         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
718
719         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
720         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
721
722         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
723         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
724
725         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
726         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
727
728         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
729         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
730
731         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
732         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
733
734         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
735         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
736
737         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
738         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
739
740         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
741         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
742
743         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
744         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
745
746         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
747         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
748
749         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
750         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
751
752         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
753         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
754
755         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
756         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
757
758         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
759         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
760
761         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
762         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
763
764         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
765         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
766
767         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
768         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
769
770         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
771         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
772
773         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
774         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
775
776         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
777         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
778
779         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
780         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
781
782         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
783         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
784
785         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
786         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
787
788         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
789         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
790
791         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
792         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
793
794         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
795         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
796
797         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
798         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
799
800         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
801         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
802
803         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
804         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
805
806         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
807         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
808
809         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
810         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
811
812         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
813         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
814
815         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
816         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
817
818         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
819         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
820
821         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
822         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
823
824         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
825         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
826
827         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
828         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
829
830         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
831         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
832
833         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
834         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
835
836         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
837         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
838
839         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
840         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
841
842         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
843         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
844
845         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
846         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
847
848         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
849         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
850
851         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
852         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
853
854         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
855         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
856
857         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
858         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
859
860         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
861         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
862
863         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
864         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
865
866         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
867         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
868
869         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
870         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
871
872         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
873         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
874
875         * soft-fp/sysdeps/powerpc/Versions: Move from here...
876         * sysdeps/powerpc/soft-fp/Versions: ... to here.
877
878         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
879         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
880
881         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
882         change symbol version.
883         * libio/oldiofgetpos64.c: Likewise.
884         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
885
886         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
887         typo.
888         Reported by dyky@kondara.org, closes PR libc/1886.
889
890         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
891         libc/1880.
892
893 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
894
895         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
896         script when ^C is hit.
897
898         * locale/programs/localedef.c (construct_output_path): Correct
899         computation of endp after asprintf.
900         * locale/programs/locfile.c (write_locale_data): Don't add extra
901         slash in filename.
902
903 2000-09-05  Andreas Jaeger  <aj@suse.de>
904
905         * scripts/config.guess: New upstream version.
906         * scripts/config.sub: Likewise.
907         * manual/texinfo.tex: Likewise.
908
909 2000-09-04  Andreas Schwab  <schwab@suse.de>
910
911         * elf/Makefile (all-dl-routines): New variable.
912         (elide-routines.os): Use it instead of $(dl-routines).
913         (all-rtld-routines): New variable.
914         (extra-objs): Use it instead of $(rtld-routines).
915         ($(objpfx)dl-allobjs.os): Likewise.
916         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
917         sysdep-dl-routines and sysdep_routines instead of rtld-routines
918         and dl-routines.
919
920 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
921
922         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
923         Set fname to NULL if the module wasn't found.
924
925 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
926
927         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
928         true if trans->name already ends in ".so".
929
930 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
931
932         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
933         void.
934         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
935         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
936         (__gconv_release_shlib): Change return type to void.
937         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
938         step->__counter here.
939         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
940         if the reference is zero.
941         (release_step): New function.
942         (gen_steps): Always initialize the __counter to 1. Use release_step.
943         Don't call the destructor on the step whose initializer failed.
944         (increment_counter): Use release_step. Don't normally run destructors
945         here.
946         (__gconv_close_transform): Use release_step.
947
948 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
949
950         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
951         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
952
953 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
954
955         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
956         If the first byte is 0x8E, don't ask for 4 bytes until it has been
957         verified that the second byte is valid. Leave it to cns11643_to_ucs4
958         to check for incomplete input.
959         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
960         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
961         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
962         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
963         0x9f9d..0x9fa5.
964         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
965         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
966         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
967         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
968         upto index 0x0052.
969
970 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
971
972         * iconv/gconv_db.c (find_derivation): Always use the least-cost
973         solution.
974
975 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
976
977         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
978         are invalid.
979
980 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
981
982         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
983         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
984         U+007E.
985
986 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
987
988         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
989
990 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
991
992         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
993
994 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
995
996         * iconvdata/tst-tables.sh: New file.
997         * iconvdata/tst-table.sh: New file.
998         * iconvdata/tst-table-from.c: New file.
999         * iconvdata/tst-table-to.c: New file.
1000         * iconvdata/tst-table-charmap.sh: New file.
1001         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1002         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1003         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1004         ISIRI-3342.irreversible, SJIS.irreversible.
1005         (tests): Add dependency on tst-tables.out.
1006         (tst-tables.out, tst-tables-clean): New rules.
1007         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1008         * iconvdata/ISIRI-3342.irreversible: New file.
1009         * iconvdata/EUC-JP.irreversible: New file.
1010         * iconvdata/SJIS.irreversible: New file.
1011
1012 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1013
1014         * manual/locale.texi (General Numeric): Update description of
1015         representation of the grouping information in the locale data.
1016         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1017
1018 2000-09-04  Andreas Jaeger  <aj@suse.de>
1019
1020         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1021         * iconv/iconv_prog.c (options): Fix typo.
1022         Reported by dyky@kondara.org, closes PR libc/1885.
1023
1024 2000-09-04  Andreas Jaeger  <aj@suse.de>
1025
1026         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1027         Reported by Rob Levin <lilo@transvirtual.com>.
1028
1029 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1030
1031         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1032         to the typedefs of __timezone_ptr_t.
1033         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1034
1035 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1036
1037         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1038         the loop.
1039
1040 2000-09-01  H.J. Lu  <hjl@gnu.org>
1041
1042         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1043         to run a binary if it is in $(tests-static).
1044
1045         * Rules (binaries-static): Add $(tests-static).
1046
1047 2000-09-02  Andreas Jaeger  <aj@suse.de>
1048
1049         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1050
1051         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1052         patch.
1053
1054 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1055
1056         * iconvdata/big5hkscs.c: Regenerated from charmap.
1057         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1058         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1059
1060         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1061         statement.  General cleanup.
1062
1063 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1064
1065         * wctype/wcfuncs.c (iswblank): New function.
1066         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1067         * wctype/wcextra.c: Remove file.
1068         * wctype/wcextra_l.c: Remove file.
1069         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1070
1071 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1072
1073         * locale/programs/ld-collate.c (collate_output): Remove redundant
1074         assert call.
1075         * string/strcoll.c: Likewise.
1076         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1077         string/strcoll.c.
1078
1079 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1080
1081         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1082         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1083         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1084         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1085         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1086         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1087         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1088         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1089         _NL_CTYPE_GAP5/6 respectively.
1090
1091         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1092         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1093         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1094         Don't initialize __ctype_names and __ctype_width.
1095         * wctype/cname-lookup.h: Remove file.
1096         * wctype/Makefile (distribute): Remove cname-lookup.h.
1097         * wctype/wchar-lookup.h: Include stdint.h.
1098         * wctype/wctype.c (__wctype): Assume new locale format.
1099         * wctype/wctype_l.c (__wctype_l): Likewise.
1100         * wctype/iswctype.c: Don't include cname-lookup.h.
1101         (__iswctype): Assume new locale format.
1102         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1103         (__iswctype_l): Assume new locale format.
1104         * wctype/wctrans.c: Don't include ctype.h.
1105         (wctrans): Assume new locale format.
1106         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1107         * wctype/towctrans.c: Don't include cname-lookup.h.
1108         (__towctrans): Assume new locale format.
1109         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1110         (__towctrans_l): Assume new locale format.
1111         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1112         localeinfo.h instead.
1113         (__NO_WCTYPE): Remove unused macro.
1114         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1115         declarations.
1116         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1117         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1118         (towlower, towupper): Likewise.
1119         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1120         localeinfo.h instead.
1121         (__NO_WCTYPE): Remove unused macro.
1122         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1123         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1124         __iswxdigit_l): Assume new locale format.
1125         (__towlower_l, __towupper_l): Likewise.
1126         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1127         (__ctype32_b): Remove declaration.
1128         (internal_wcwidth): Assume new locale format.
1129         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1130         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1131         to map32_b, rename width_3level to width.
1132         (ctype_output): Always create new locale format. Don't emit
1133         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1134         (allocate_arrays): Always create new locale format.
1135
1136         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1137         * locale/weightwc.h (findidx): Assume new locale format.
1138         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1139         names.
1140         * string/strxfrm.c (wcsxfrm): Likewise.
1141         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1142         local variable collseq to 'const char *'.
1143         (SUFFIX): Don't use, don't undefine.
1144         * posix/fnmatch.c: Remove SUFFIX definition.
1145         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1146         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1147         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1148         (collate_finish): Always create new locale format. Remove local
1149         variables min_total, act_size.
1150         (collate_output): Always create new locale format. Remove local
1151         variables table_size, names, tablewc. Rename tablewc_3level to
1152         tablewc.
1153
1154 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1155
1156         * locale/programs/ld-collate.c (obstack_int32_grow,
1157         obstack_int32_grow_fast): New inline functions.
1158         (output_weightwc, collate_output): Use them where possible.
1159
1160 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1161
1162         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1163         patch (_mode -> _flags).
1164
1165         * libio/Makefile (headers): Add stdio_ext.h.
1166         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1167         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1168         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1169         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1170         __fsetlocking, and _flushlbf.
1171         * libio/__fbufsize.c: New file.
1172         * libio/__flbf.c: New file.
1173         * libio/__fpending.c: New file.
1174         * libio/__fpurge.c: New file.
1175         * libio/__freadable.c: New file.
1176         * libio/__freading.c: New file.
1177         * libio/__fsetlocking.c: New file.
1178         * libio/__fwritable.c: New file.
1179         * libio/__fwriting.c: New file.
1180         * libio/stdio_ext.h: New file.
1181         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1182         * libio/libio.h (_IO_USER_LOCK): Define.
1183         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1184         test _IO_USER_LOCK flag first.
1185
1186         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1187         malloc fails.
1188
1189 2000-09-01  Andreas Jaeger  <aj@suse.de>
1190
1191         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1192
1193         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1194
1195 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1196
1197         * math/Makefile (tests): Add tst-defintions.
1198         * math/tst-definitions.c: New file.
1199
1200         * stdlib/Makefile (headers): Add bits/wchar.h.
1201         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1202         * sysdeps/generic/bits/wchar.h: New file.
1203         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1204         file to define WCHAR_MIN and WCHAR_MAX.
1205         Change UINT*8_MAX and UIN*16_MAX value to type int.
1206         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1207         file to define WCHAR_MIN and WCHAR_MAX.
1208         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1209         int values.
1210         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1211         * sysdeps/generic/bits/mathdef.h: Likewise.
1212         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1213         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1214         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1215         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1216         * locale/locale.h (struct lconv): Add __ prefix to the new members
1217         if not C99.
1218         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1219         imaxdiv optimizations.
1220         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1221         * sysdeps/wordsize-64/ldiv.c: Likewise.
1222         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1223         const fenv_t*.
1224         * sysdeps/generic/bits/fenv.h: Likewise.
1225         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1226         * sysdeps/ia64/bits/fenv.h: Likewise.
1227         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1228         * sysdeps/mips/bits/fenv.h: Likewise.
1229         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1230         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1231         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1232
1233         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1234         * inet/ruserpass.c: Likewise.
1235         * catgets/open_catalog.c: Likewise.
1236         * intl/loadmsgcat.c: Likewise.
1237         * io/getdirname.c: Likewise.
1238         * locale/loadlocale.c: Likewise.
1239         * misc/getusershell.c: Likewise.
1240         * stdlib/canonicalize.c: Likewise.
1241         * sysdeps/posix/euidaccess.c: Likewise.
1242         * sysdeps/posix/isfdtype.c: Likewise.
1243         * sysdeps/posix/posix_fallocate.c: Likewise.
1244         * sysdeps/posix/tempname.c: Likewise.
1245         * sysdeps/unix/grantpt.c: Likewise.
1246         * sysdeps/unix/opendir.c: Likewise.
1247         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1248         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1249         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1250         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1251         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1252         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1253         * sysvipc/ftok.c: Likewise.
1254         * time/getdate.c: Likewise.
1255
1256         * time/getdate.c: Add extra access test.
1257
1258 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1259
1260         * version.h (VERSION): Bump to 2.1.93.
1261
1262         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1263         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1264
1265         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1266         Make this a new rule depending on tst-gettext.out and run mtrace.
1267         * intl/tst-gettext.c: Call mtrace.
1268         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1269
1270         * elf/dl-reloc.c: Add a few more __builtin_expect.
1271
1272         * configure.in: Remove --with-gettext option.
1273
1274         * intl/dcigettext.c (free_mem): Correct freeing of
1275         _nl_domain_bindings list.
1276
1277         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1278         allocated memory.
1279
1280         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1281
1282         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1283
1284         * stdio-common/itoa-digits.c: Move upper digits to...
1285         * stdio-common/itoa-udigits.c: ...here.  New file.
1286         * stdio-common/Makefile (routines): Add itoa-udigits.
1287
1288         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1289         relocate ld.so don't add supprt for relocations which should not
1290         appear in ld.so.
1291
1292         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1293         __secure_getenv.  Instead test __libc_enable_secure once.
1294
1295         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1296
1297 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1298
1299         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1300         whether the new record should be freed if it's a duplicate.
1301         (add_module): Adjust insert_module call.
1302         (__gconv_read_conf): Likewise.
1303         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1304         mtrace-tst-loading.
1305         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1306
1307         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1308         _dl_all_init_dirs.
1309         * include/link.h (struct r_search_path_struct): New.
1310         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1311         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1312         _dl_all_init_dirs.
1313         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1314         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1315         added at startup time.
1316         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1317         contains element to remember fact that we can free memory.
1318         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1319         (_dl_init_all_dirs): New variable.
1320         (fillin_rpath): Save one malloc call.
1321         (decompose_rpath): Change interface.  New first parameter points to
1322         r_search_path_struct.
1323         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1324         deletable.  Set _dl_init_all_paths value.
1325         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1326         parameter replaced with r_search_path_struct *.  Information about
1327         freeing now contained in r_search_path_struct.
1328         (_dl_map_object): Adjust for above changes.
1329
1330         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1331
1332         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1333         when adding new entries.
1334
1335         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1336         since the object being loaded can be unloaded.
1337
1338         * iconvdata/Makefile (tests): Add tst-loading.
1339         * iconvdata/tst-loading.c: New file.
1340
1341 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1342
1343         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1344         When comparing a char with an int, always cast the char to
1345         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1346         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1347
1348 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1349
1350         * time/strftime.c (my_strftime): Add compatibility code for use
1351         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1352
1353         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1354         return 0 for success but always < 0 on failure.
1355
1356         * nss/getXXbyYY_r.c: Define result to *result before including
1357         digits_dots.c.
1358
1359 2000-08-30  Andreas Jaeger  <aj@suse.de>
1360
1361         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1362
1363 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1364
1365         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1366         official file.
1367         * iconvdata/TESTS: Add BIG5HKSCS entry.
1368         * iconvdata/testdata/BIG5HKSCS: New file.
1369         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1370
1371         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1372         always true.
1373
1374         * libio/iogetline.c: Set mode before the loop in case n==0.
1375         * libio/iogetwline.c: Likewise.
1376
1377 2000-08-29  H.J. Lu  <hjl@gnu.org>
1378
1379         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1380         of fp->_mode < 0.
1381         (_IO_new_file_overflow): Likewise.
1382         * libio/genops.c (_IO_flush_all): Likewise.
1383         * libio/ioftell.c (_IO_ftell): Likewise.
1384
1385 2000-08-29  Akira Higuchi  <a@kondara.org>
1386
1387         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1388         and __end_fct fields of struct __gconv_step.
1389         * iconv/Makefile (tests): Add iconv-bug2.
1390         * iconv/iconv-bug2.c: New file.
1391
1392         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1393         instead of 'inptr - inend' to ksc5601_to_ucs4.
1394
1395         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1396
1397         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1398         character or shift sequence is found at the end of the input
1399         string, return__GCONV_INCOMPLETE_INPUT instead of
1400         __GCONV_EMPTY_INPUT.
1401         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1402         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1403
1404         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1405         __GCONV_ILLEGAL_INPUT for 8bit characters.
1406
1407 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1408
1409         * signal/signal.h (sigpause): Move __THROW before __asm__.
1410
1411         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1412         names don't match don't return.
1413         Patch by Olaf Kirch <okir@flash.lst.de>.
1414
1415 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1416
1417         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1418
1419 2000-08-27  H.J. Lu  <hjl@gnu.org>
1420
1421         * posix/Makefile (otherlibs): Add for building with static-nss
1422         for "make check".
1423
1424 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1425
1426         * libio/stdio.h: Add fmemopen prototype.
1427
1428 2000-08-25  Andreas Jaeger  <aj@suse.de>
1429
1430         * libio/Makefile (routines): Add fmemopen.
1431         (tests): Add test-fmemopen.
1432         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1433         * libio/test-fmemopen.c: New file.
1434         * libio/fmemopen.c: New file.
1435         Patches by Hanno Mueller <kontakt@hanno.de>.
1436
1437 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1438
1439         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1440         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1441
1442         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1443         to avoid crashing statically linked applications.
1444
1445 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1446
1447         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1448         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1449
1450         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1451         If the result is fits in the buffer, copy only as many bytes as needed.
1452
1453         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1454         buffer after copying numbuf into it.
1455         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1456
1457 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1458
1459         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1460         the result.  When string_len < len, don't clear the rest of the buffer.
1461
1462 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1463
1464         Support for new LC_COLLATE format.
1465         * locale/coll-lookup.h: New file.
1466         * locale/weightwc.h (findidx): When size == 0, call
1467         collidx_table_lookup.
1468         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1469         * wcsmbs/wcsxfrm.c: Likewise.
1470         * posix/fnmatch.c: Likewise.
1471         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1472         collseq_table_lookup.
1473         * locale/programs/3level.h: New file.
1474         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1475         by including "3level.h".
1476         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1477         collseq_table): New types, defined by including "3level.h".
1478         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1479         (encoding_mask, encoding_byte): Remove.
1480         (utf8_encode): Use simple shifts instead.
1481         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1482         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1483         (collate_output): New local variable tablewc_3level. When
1484         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1485         tablewc_3level instead of tablewc. Change format of TABLEWC and
1486         COLLSEQWC entries written to the file.
1487         * locale/C-collate.c (collseqwc): Change format.
1488         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1489         of COLLSEQWC.
1490         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1491
1492 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1493
1494         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1495         (locale_ctype_t): New charnames_idx field.
1496         (ctype_startup): Initialize charnames_idx field.
1497         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1498
1499 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1500
1501         * locale/C-ctype.c: Switch to new locale format.
1502         (_nl_C_LC_CTYPE_names): Remove array.
1503         (STRUCT_CTYPE_CLASS): New macro.
1504         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1505         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1506         New three-level tables.
1507         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1508         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1509         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1510         12 class tables and 2 map tables at the end.
1511         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1512         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1513         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1514         New declarations.
1515         (b): Remove trailing semicolon.
1516         (__ctype_names, __ctype_width): Don't initialize.
1517         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1518
1519 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1520
1521         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1522         is guaranteed to be allocated with the same malloc() and may be
1523         passed to free().
1524         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1525         been set to empty by an earlier open_path call, don't pass it again.
1526
1527 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1528
1529         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1530         we are not optimizing.
1531
1532         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1533         inclusion.
1534
1535         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1536         really match EOF.
1537         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1538
1539 2000-08-28  Andreas Jaeger  <aj@suse.de>
1540
1541         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1542
1543 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1544
1545         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1546         getpeername.  Use ISO C style function definition.
1547         (getpeername): Provide weak alias.
1548         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1549         setrlimit.  Use ISO C style function definition.
1550         (setrlimit): Provide weak alias.
1551
1552 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1553
1554         * shlib-versions: Add a rule for S/390 to the libm version list.
1555         * sysdeps/s390/Versions: New file.
1556         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1557         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1558         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1559         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1560         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1561         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1562         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1563         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1564         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1565         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1566         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1567         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1568         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1569         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1570         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1571         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1572         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1573         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1574
1575 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1576
1577         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1578         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1579
1580         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1581         * elf/dl-close.c (_dl_close): Print debug message if object is not
1582         unloaded.
1583         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1584         returning to caller.
1585
1586         * po/zh.po: Renamed to...
1587         * po/zh_TW.po: ...this.
1588
1589 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1590
1591         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1592
1593         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1594         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1595         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1596         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1597
1598 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1599
1600         * locale/programs/ld-collate.c (insert_weights): Also update
1601         backpointer of next element.
1602         (collate_read): Allow definition of new collation symbols in stage 2.
1603         Symbol after reorder-after can be UCS4 value.
1604         Allow reordering of collation symbols and elements.
1605         Do not only move reorder entry in new position.  Instead call
1606         insert_weight to do this and read the weights.
1607
1608         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1609
1610         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1611         to determine invalid locale name.
1612         * locale/findlocale.c (_nl_find_locale): Likewise.
1613
1614         * posix/annexc.c: Correct test for unavailable feature.
1615
1616         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1617         __inline.
1618
1619 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1620
1621         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1622         syscall.
1623
1624         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1625         (sysdep_routines): Add oldgetrlimit64.
1626
1627         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1628         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1629         (tests): Add unload, reldep, reldep2, and reldep3.
1630         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1631         and reldepmod4.
1632         Add rules to build and run unload, reldep, reldep2, and reldep3.
1633         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1634         Don't create relocation dependency if it is nonzero.
1635         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1636         can never happen here.
1637         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1638         Don't create relocation dependency if it is nonzero.
1639         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1640         stuff.  This can never happen here.
1641         * sysdeps/generic/ldsodefs.h: Change prototypes.
1642         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1643         _dl_lookup_up and _dl_lookup_versioned_symbol.
1644         (RESOLV): Likewise.
1645         * elf/dl-runtime.c (fixup): Likewise.
1646         (profile_fixup): Likewise.
1647         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1648         _dl_lookup_symbol.
1649         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1650         * elf/rtld.c (dl_main): Likewise.
1651         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1652         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1653         and pass down the caller map.
1654         (_dl_vsym): Likewise.
1655         * elf/reldep.c: New file.
1656         * elf/reldep2.c: New file.
1657         * elf/reldep3.c: New file.
1658         * elf/reldepmod1.c: New file.
1659         * elf/reldepmod2.c: New file.
1660         * elf/reldepmod3.c: New file.
1661         * elf/reldepmod4.c: New file.
1662         * elf/unload.c: New file.
1663         * elf/unloadmod.c: New file.
1664
1665         * elf/do-lookup.h: Remove unused undef_name parameter.
1666         * elf/dl-lookup.c: Adjust callers.
1667
1668 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1669
1670         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1671         irreversible in recursive call of conversion function to signal that
1672         no error handling is wanted.
1673         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1674         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1675         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1676         recursive error handling call, otherwise to &lirreversible.  Use it
1677         for calls to conversion functions.
1678         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1679         transliterating.
1680         (ucs4_internal_loop_unaligned): Likewise.
1681         (ucs4le_internal_loop): Likewise.
1682         (ucs4le_internal_loop_unaligned): Likewise.
1683
1684 2000-08-25  Greg McGary  <greg@mcgary.org>
1685
1686         * sysdeps/i386/memchr.S: Check high bound against chars
1687         actually scanned.
1688         * sysdeps/i386/memcmp.S: Likewise.
1689         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1690         account for pointers that lie one beyond end-of-buffer.
1691
1692 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1693
1694         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1695         * elf/nodelete.c (fini_ran): New global variable.
1696         (do_test): Before every dlclose call clear fini_ran and test
1697         afterwards that it is not set by the destructors.
1698         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1699         * elf/nodelmod2.c: Likewise.
1700         * elf/nodelmod4.c: Likewise.
1701
1702 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1703
1704         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1705         getrlimit to the list.
1706
1707 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1708
1709         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1710         long double format so use ldbl-96 instead of ldbl-128.
1711
1712 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1713
1714         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1715         even if bits 10 a 11 are non-zero.
1716         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1717
1718         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1719         included before building gnu/lib-names.h
1720         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1721
1722         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1723         marked DF_1_NODELETE.
1724
1725         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1726         since we call sigaction in the child.
1727
1728 2000-08-25  Andreas Jaeger  <aj@suse.de>
1729
1730         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1731         gconv-modules.
1732
1733 2000-08-25  Andreas Jaeger  <aj@suse.de>
1734
1735         * manual/arith.texi (Control Functions): Clarify possible
1736         arguments.  Closes PR libc/1856.
1737
1738 2000-08-24  H.J. Lu  <hjl@gnu.org>
1739
1740         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1741         * malloc/Makefile (tests): Likewise.
1742
1743 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1744
1745         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1746
1747 2000-08-24  Andreas Jaeger  <aj@suse.de>
1748
1749         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1750         only if LIBGD is available.
1751
1752 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1753
1754         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1755         problems with now restrict parameter types.
1756         (convaddr4to6): Likewise.
1757
1758 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1759
1760         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1761         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1762         * sysdeps/s390/fpu/fegetexcept.c: New file.
1763         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1764         FPC_VALID_MASK.
1765
1766 2000-08-24  Andreas Jaeger  <aj@suse.de>
1767
1768         * malloc/Makefile (extra-objs): Add memusagestat.o.
1769         (generated): Added memusage and memusagestat for make clean.
1770
1771         * libio/tst_putwc.c (do_test): Delete temporary file.
1772         Move inclusion of test-skeleton to front to have prototype for
1773         add_temp_file.
1774
1775         * posix/Makefile (generated): Add wordexp-tst.out.
1776
1777 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1778
1779         * resolv/res_hconf.c (free_mem): Remove not needed if.
1780
1781         * time/tzset.c (free_mem): New function.
1782         * string/strsignal.c (free_mem): New function.
1783         * inet/inet_ntoa.c (free_mem): New function.
1784         * sunrpc/clnt_perr.c (free_mem): New function.
1785
1786 2000-08-24  Andreas Jaeger  <aj@suse.de>
1787
1788         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1789         * sysdeps/unix/sysv/syscalls.list: Likewise.
1790
1791         * posix/unistd.h: Move internal prototypes from here ...
1792         * include/unistd.h: ... to here.
1793
1794         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1795
1796 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1797
1798         * grp/initgroups.c (initgroups): Deallocate groups array.
1799         Reported by jani.raiha@sonera.com [PR libc/1868].
1800
1801         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1802         * sysdeps/alpha/Dist: Likewise.
1803
1804 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1805
1806         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1807         destructor).  Reported by Solar Designer <solar@false.com>.
1808
1809         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1810         avoid adding double slashes.
1811
1812 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1813
1814         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1815         out of the __REDIRECT macro.
1816
1817 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1818
1819         * stdio-common/vfscanf.c: Add %F format support.
1820
1821         * locale/programs/ld-ctype.c (ctype_output): Make sure
1822         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1823         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1824         (ctype_read): Enable returning of wide character strings for reading
1825         transliteration information.
1826
1827 2000-08-23  Andreas Jaeger  <aj@suse.de>
1828
1829         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1830         Use static __inline instead of _EXTERN_INLINE.
1831
1832         * misc/sys/select.h: Move prototypes of __select from here ...
1833         * include/sys/select.h: ... to here.
1834
1835         * socket/sys/socket.h: Move prototypes of __send and __connect
1836         from here....
1837         * include/sys/socket.h: ... to here.
1838
1839         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1840         lr_error.
1841
1842 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1843
1844         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1845         __setrlimit as strong name. Takes only 2 arguments.
1846
1847         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1848         takes only 2 arguments.
1849
1850 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1851
1852         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1853
1854         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1855
1856 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1857
1858         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1859         default_missing character being specified, pick the first
1860         representable.
1861
1862 2000-08-23  Andreas Jaeger  <aj@suse.de>
1863
1864         * include/wchar.h: Add some pure attributes.
1865
1866         * time/time.h: Add const attribute for dysize.
1867
1868         * include/stdlib.h: Add malloc attribute to __posix memalign.
1869
1870         * stdlib/stdlib.h: Add some pure and malloc attributes.
1871         * wcsmbs/wchar.h: Likewise.
1872
1873         * dirent/dirent.h: Add some pure attributes.
1874         * include/dirent.h: Likewise.
1875
1876 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1877
1878         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1879         on 64bit arches.
1880
1881 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1882
1883         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1884         missing buffer size checks.
1885
1886 2000-08-23  Andreas Jaeger  <aj@suse.de>
1887
1888         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1889         strong name.
1890         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1891
1892         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1893         otherwise __LINUX_KERNEL_VERSION might not be defined.
1894         (MIN): Define if not already defined.
1895
1896 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1897
1898         * stdio-common/vfprintf.c: Handle %F format.
1899         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1900         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1901
1902         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1903
1904         * po/zh.po: New file.
1905
1906         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1907         enough room in target buffer.
1908         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1909         * iconvdata/bug-iconv1.c: New file.
1910         * iconvdata/Makefile (tests): Add bug-iconv1.
1911
1912         * locale/iso-4217.def: Update entry for Nicaragua.
1913
1914 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1915
1916         * hurd/hurdsig.c: Rearrange headers a bit.
1917         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1918         when cthreads is being used.
1919
1920 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1921
1922         * elf/Makefile (distribute): Add dl-osinfo.h.
1923         * sysdeps/generic/dl-osinfo.h: New file.
1924         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1925         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1926         if defined.
1927         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1928         only for !SHARED case.  Get the code from dl-osinfo.h.
1929
1930         * stdlib/random_r.c: Cleanups.
1931         * stdlib/tst-random.c: New file.
1932         * stdlib/Makefile (tests): Add tst-random.
1933         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1934
1935 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1936
1937         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1938         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1939         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1940         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1941
1942 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1943
1944         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1945         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1946         (__syscall__sysctl): Add.
1947
1948 2000-08-21  Andreas Jaeger  <aj@suse.de>
1949
1950         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1951         libc/1864).
1952         * stdlib/tst-strtoll.c: Likewise.
1953
1954 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1955
1956         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1957         correctly.
1958         (__initstate_r): Set errno on error.
1959         (__random_r): Likewise.
1960         (__setstate_r): Correct offset when computing
1961         new rptr and fptr.  Test for arg_state being NULL.
1962         Reported by Michael Fischer <fischer@cs.yale.edu>.
1963
1964         * posix/regex.h: Add macro definitions to allow compiling outside
1965         glibc.
1966
1967         * sysdeps/i370/Implies: Removed.
1968         * sysdeps/mvs/Implies: Removed.
1969
1970         * catgets/catgets.c (catopen): Filter out env_var values with / if
1971         necessary.
1972
1973         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1974         locale name after all getenvs.
1975
1976         * configure.in: Allow sed versions like 3.02.8.
1977         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1978
1979 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1980
1981         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1982
1983 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1984
1985         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1986         of gethostbyname2_r call.
1987
1988         * intl/locale.alias: Add aliases for Korean.
1989
1990 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1991
1992         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1993         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1994         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1995         * sysdeps/s390/fpu/fegetenv.c: New file.
1996         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1997         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1998         * sysdeps/s390/fpu/fenv_libc.h: New file.
1999         * sysdeps/s390/fpu/fesetenv.c: New file.
2000         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2001         * sysdeps/s390/fpu/feupdateenv.c: New file.
2002         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2003         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2004         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2005         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2006         * sysdeps/s390/fpu/ftestexcept.c: New file.
2007         * sysdeps/s390/fpu/libm-test-ulps: New file.
2008         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2009         * sysdeps/s390/initfini.c: New file.
2010         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2011         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2012         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2013         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2014         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2015         sys/procfs.h as proposed by Mark Kettenis.
2016         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2017
2018 2000-08-21  Andreas Jaeger  <aj@suse.de>
2019
2020         * include/poll.h: Include include/sys/poll.h to get __poll
2021         declaration.
2022
2023         * io/sys/poll.h: Move __poll declaration from here...
2024         * include/sys/poll.h: ...to here.
2025
2026         * include/sys/socket.h (__getpeername): Add declaration.
2027
2028         * include/wchar.h (__vswprintf): Add declaration.
2029
2030         * include/stdio.h (__flockfile): Add declaration.
2031         (__funlockfile): Likewise.
2032
2033 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2034
2035         * misc/sys/cdefs.h: Define __restrict_arr.
2036         * include/sys/time.h: Add restrict where required by AGd4.
2037         * inet/arpa/inet.h: Likewise.
2038         * io/sys/stat.h: Likewise.
2039         * io/sys/statvfs.h: Likewise.
2040         * misc/search.h: Likewise.
2041         * misc/sys/select.h: Likewise.
2042         * posix/glob.h: Likewise.
2043         * posix/regex.h: Likewise.
2044         * posix/spawn.h: Likewise.
2045         * posix/unistd.h: Likewise.
2046         * rt/aio.h: Likewise.
2047         * signal/signal.h: Likewise.
2048         * socket/sys/socket.h: Likewise.
2049         * stdlib/ucontext.h: Likewise.
2050         * streams/stropts.h: Likewise.
2051         * string/string.h: Likewise.
2052         * time/time.h: Likewise.
2053         * time/sys/time.h: Likewise.
2054
2055         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2056         and posix_spawnattr_setscheparam.
2057
2058         * libio/stdio.h: Make cuserid prototype again available for all
2059         XPG versions.
2060
2061         * argp/argp-help.c: Unify use of function aliases to make more compact
2062         PLT.
2063         * include/libintl.h: Likewise.
2064         * inet/rcmd.c: Likewise.
2065         * intl/dcigettext.c: Likewise.
2066         * libio/iofputws.c: Likewise.
2067         * libio/iofputws_u.c: Likewise.
2068         * libio/iogetwline.c: Likewise.
2069         * libio/swprintf.c: Likewise.
2070         * malloc/malloc.c: Likewise.
2071         * nss/digits_dots.c: Likewise.
2072         * posix/fnmatch.c: Likewise.
2073         * posix/spawn_faction_addclose.c: Likewise.
2074         * posix/spawn_faction_adddup2.c: Likewise.
2075         * posix/spawn_faction_addopen.c: Likewise.
2076         * posix/spawni.c: Likewise.
2077         * posix/wordexp.c: Likewise.
2078         * posix/spawni.c: Likewise.
2079         * resolv/res_hconf.c: Likewise.
2080         * resolv/res_init.c: Likewise.
2081         * shadow/lckpwdf.c: Likewise.
2082         * signal/sighold.c: Likewise.
2083         * signal/sigrelse.c: Likewise.
2084         * stdio-common/printf-parse.h: Likewise.
2085         * stdio-common/printf-prs.c: Likewise.
2086         * stdio-common/printf_fp.c: Likewise.
2087         * stdio-common/vfprintf.c: Likewise.
2088         * stdio-common/vfscanf.c: Likewise.
2089         * stdlib/rpmatch.c: Likewise.
2090         * sunrpc/create_xid.c: Likewise.
2091         * sunrpc/key_call.c: Likewise.
2092         * sysdeps/generic/setrlimit64.c: Likewise.
2093         * sysdeps/generic/utmp_file.c: Likewise.
2094         * sysdeps/generic/vlimit.c: Likewise.
2095         * sysdeps/posix/posix_fallocate.c: Likewise.
2096         * sysdeps/posix/posix_fallocate64.c: Likewise.
2097         * sysdeps/posix/sigpause.c: Likewise.
2098         * sysdeps/posix/sigset.c: Likewise.
2099         * sysdeps/unix/grantpt.c: Likewise.
2100         * sysdeps/unix/bsd/ualarm.c: Likewise.
2101         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2102         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2103         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2104         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2105         * time/strftime.c: Likewise.
2106         * wcsmbs/wcscoll.c: Likewise.
2107         * wcsmbs/wcsxfrm.c: Likewise.
2108
2109         * time/tst-getdate.c (main): Make error messages more human readable.
2110
2111         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2112         postinc/predec instruction.
2113         (_FPU_SETCW): Likewise.
2114         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2115
2116 2000-08-20  Andreas Jaeger  <aj@suse.de>
2117
2118         * time/tst-getdate.c (main): Increase error in case of wrong
2119         conversion.
2120         Fix typo in test case.
2121
2122 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2123
2124         * ctype/ctype.h (isblank): Make available if ISO C99.
2125         * wctype/wctype.h (iswblank): Make available if ISO C99.
2126         * math/math.h (signgam): Don't make available if ISO C99.
2127         * math/tgmath.h (tgamma): Renamed from gamma.
2128         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2129
2130         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2131         Pretty printing.
2132         * intl/plural.y (new_exp): Take number of optional parameters in
2133         second parameter.  Test for correct number of parameters and free
2134         correctly in case of failure.  Adjust all callers.
2135         (yylex): Allow ';' as terminator character.
2136
2137 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2138
2139         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2140         walt_digits.
2141
2142         * locale/findlocale.c (free_mem): Also free here->filename.
2143
2144         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2145
2146         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2147         first test.
2148         (feexcp_nomask_test): Correct printf args.
2149         (feexcp_mask_test): Likewise.
2150
2151 2000-08-19  Andreas Jaeger  <aj@suse.de>
2152
2153         * inet/tst-gethnm.c: Include string.h to provide prototype for
2154         strcmp.
2155
2156         * malloc/mtrace.pl (usage): Inform about --help.
2157
2158 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2159
2160         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2161         size HEAP_MAX_SIZE.
2162
2163 2000-08-19  Andreas Jaeger  <aj@suse.de>
2164
2165         * shlib-versions: Remove libnss_db, libdb and libdb1.
2166
2167 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2168
2169         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2170         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2171         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2172         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2173         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2174         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2175         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2176         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2177         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2178         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2179         getdents.
2180         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2181         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2182
2183 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2184
2185         * include/glob.h (__glob64): Add prototype.
2186         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2187         define glob and glob_in_dir.
2188         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2189         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2190         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2191         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2192         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2193         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2194         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2195         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2196
2197 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2198
2199         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2200
2201 2000-08-17  Andreas Jaeger  <aj@suse.de>
2202
2203         * math/test-fenv.c (fe_single_test): New function.
2204         (fe_env_tests): Use fe_single_test.
2205         (feenable_test): New tests for feenable/fedisable and
2206         fegetexcpetions.
2207         (feexcp_mask_test): New function.
2208         (feexcp_nomask_test): New function.
2209
2210 2000-08-19  Richard Henderson  <rth@cygnus.com>
2211
2212         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2213         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2214         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2215         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2216         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2217         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2218         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2219         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2220         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2221         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2222         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2223         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2224         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2225         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2226         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2227         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2228         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2229
2230 2000-08-19  Andreas Jaeger  <aj@suse.de>
2231
2232         * elf/constload1.c: Include <stdio.h> for puts prototype.
2233
2234 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2235
2236         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2237         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2238         a dynamically loaded object remove old l_initfini list.
2239         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2240         remove some dynamically allocated memory blocks in the dynamic
2241         loading data structures.
2242         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2243         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2244         Instead call _dl_check_map_versions only for the dependencies.
2245         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2246         information of initial objects as not free-able.
2247         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2248         element.
2249
2250         * elf/filter.c: Call mtrace.
2251         * elf/restest1.c: Likewise.  Close the objects.
2252         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2253         debug information.
2254
2255         * elf/constload1.c: Add comment explaining not freed memory.
2256
2257 2000-08-18  Andreas Jaeger  <aj@suse.de>
2258
2259         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2260         alignment for structs stat and stat64.
2261         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2262
2263 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2264
2265         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2266         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2267
2268         * nss/Versions: Remove libnss_db information.
2269
2270 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2271
2272         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2273         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2274         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2275         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2276
2277         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2278         to match Solaris.
2279
2280 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2281
2282         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2283         (_FPU_SETCW): Likewise.
2284         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2285
2286         * stdio-common/printf_fp.c: Fix chars_needed computation.
2287         Patch by Greg McGary <greg@mcgary.org>.
2288
2289 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2290
2291         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2292         _dl_loaded are NULL.
2293
2294 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2295
2296         * manual/arith.texi (feholdexcept): Returns 0 on success.
2297
2298 2000-08-17  Andreas Jaeger  <aj@suse.de>
2299
2300         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2301         (ifr_newname): New.
2302         Reported by Andi Kleen <ak@suse.de>.
2303
2304 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2305
2306         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2307         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2308         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2309
2310 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2311
2312         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2313         of buf->st_ino and kbuf->st_ino, not __st_ino.
2314         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2315         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2316         directive so that only linux/getdents.c is used, not some
2317         architecture specific one.
2318
2319 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2320
2321         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2322         enabled, not disabled exceptions.
2323         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2324         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2325
2326 2000-08-17  Greg McGary  <greg@mcgary.org>
2327
2328         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2329         from test program name when constructing suffix for $(LDLIBS-*).
2330         (bounded-thread-library): New variable.
2331         * crypt/Makefile
2332         [build-shared, build-static] (libcrypt-dep): Remove variable.
2333         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2334         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2335         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2336         (librt-tests): Add variable.  (tests): Use it.
2337         [build-shared, build-static]
2338         ($(addprefix $(objpfx),$(tests)),
2339         $(addprefix $(objpfx),$(librt-tests))):
2340         Consolidate individual dependencies.
2341         [build-bounded]
2342         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2343         Add dependencies.
2344         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2345         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2346         * misc/Makefile
2347         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2348         * rt/Makefile
2349         [build-shared, build-static]
2350         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2351         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2352
2353 2000-08-17  Greg McGary  <greg@mcgary.org>
2354
2355         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2356         * sysdeps/unix/make-syscalls.sh: Likewise.
2357         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2358         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2359         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2360         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2361         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2362
2363 2000-08-17  Greg McGary  <greg@mcgary.org>
2364
2365         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2366         Wrap extern symbols in BP_SYM ().
2367         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2368         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2369         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2370         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2371         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2372         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2373         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2374         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2375         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2376         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2377
2378 2000-08-16  Andreas Schwab  <schwab@suse.de>
2379
2380         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2381         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2382         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2383
2384 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2385
2386         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2387         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2388         * elf/dl-support.c: Define _nl_nloaded.
2389         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2390         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2391         object to global list.
2392         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2393         from _dl_loaded list.
2394         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2395         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2396         number here.
2397
2398         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2399         unmask, exceptions.
2400         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2401         exceptions.
2402         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2403
2404 2000-08-16  Andreas Jaeger  <aj@suse.de>
2405
2406         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2407
2408 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2409
2410         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2411
2412 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2413
2414         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2415         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2416         (sysdep_routines): Add oldgetrlimit64.
2417         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2418         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2419
2420         * include/link.h: Undo last patches.  Hurd now has stat64.
2421         * elf/Makefile: Likewise.
2422         * elf/dl-load.c: Likewise.
2423         * elf/dl-misc.c: Likewise.
2424         * elf/dl-profile.c: Likewise.
2425         * sysdeps/generic/sysd-link.h: Removed.
2426         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2427
2428         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2429         thread event callback function.
2430         (__aio_notify_only): Use function above.
2431         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2432
2433 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2434
2435         * sysdeps/mach/hurd/lseek64.c: New file.
2436
2437 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2438
2439         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2440         Remove typedefs.
2441         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2442         typedefs.
2443         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2444         typedefs.
2445         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2446
2447 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2448
2449         * sysdeps/mach/hurd/xstatconv.c: New file.
2450         * sysdeps/mach/hurd/fxstat64.c: New file.
2451         * sysdeps/mach/hurd/lxstat64.c: New file.
2452         * sysdeps/mach/hurd/xstat64.c: New file.
2453         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2454
2455 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2456
2457         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2458         Initialize, needed for change in common symbol handling in newer
2459         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2460
2461 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2462
2463         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2464         * elf/constload2.c: Add destructor to unload constload3.
2465
2466         * include/link.h: Include sysd-link.h.
2467         * sysdeps/generic/sysd-link.h: New file.
2468         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2469         * elf/Makefile (distribute): Add sysd-link.h.
2470         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2471         types and functions directly.
2472         * elf/dl-misc.c: Likewise.
2473         * elf/dl-profile.c: Likewise.
2474
2475         * elf/loadfail.c (main): Close all successfully loaded objects.
2476
2477         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2478         free wd.
2479         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2480         there is already one.
2481
2482         * elf/dl-close.c: Pretty print.
2483
2484 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2485
2486         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2487         global (with file scope).  Add __libc_subfreeres function to free the
2488         string.
2489         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2490         in ttyname function.
2491
2492         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2493
2494         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2495
2496         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2497         mapping them to /x5c and /x7e respectively.
2498
2499         * locale/programs/ld-ctype.c: Add support for more definitions after
2500         copy statement.
2501
2502 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2503
2504         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2505         * sysdeps/unix/sysv/linux/kernel-features.h
2506         (__ASSUME_GETDENTS64_SYSCALL): Define.
2507         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2508         syscall if available to get d_type fields.
2509         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2510         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2511         __lxstat64): Export at GLIBC_2.2.
2512         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2513         Likewise.
2514         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2515         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2516         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2517         getdirentries64, versionsort64): Remove.
2518         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2519         getdirentries64, versionsort64): Remove.
2520
2521 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2522
2523         * posix/Makefile: Remove rules to generate glob package.
2524
2525         * posix/Makefile (tests): Add tst-regexloc.
2526         (tst-regexloc-ENV): Add LOCPATH.
2527         * posix/tst-regexloc.c: New file.
2528
2529 2000-08-12  Andreas Jaeger  <aj@suse.de>
2530
2531         * include/features.h (__STDC_ISO_10646__): Define.
2532         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2533
2534 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2535
2536         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2537
2538         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2539         for revision 6 and up).
2540
2541         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2542         including <time.h>.
2543         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2544         to get definitions of just these types.
2545
2546         * signal/signal.h: Define thread signal handling functions also for
2547         POSIX95.
2548
2549         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2550         POSIX95.
2551         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2552         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2553         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2554         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2555
2556         * sysvipc/sys/shm.h: Define pid_t for XPG.
2557
2558         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2559         they are not anymore required here.
2560
2561         * wcsmbs/wchar.h: Make the various wide char string and stream
2562         functions available for the respective XPG versions.
2563
2564         * nss/Makefile: Remove rules to build and distribute nss_db.
2565
2566         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2567         * sysdeps/generic/scandir64.c: Likewise.
2568         * sysdeps/generic/versionsort64.c: Likewise.
2569
2570 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2571             Benjamin Koznik  <bkoz@redhat.com>
2572
2573         * libio/fileops.c: Merge with libstdc++-v3.
2574         * libio/genops.c: Likewise.
2575         * libio/iofclose.c: Likewise.
2576         * libio/iofopen.c: Likewise.
2577         * libio/iofwide.c: Likewise.
2578         * libio/libio.h: Likewise.
2579         * libio/libioP.h: Likewise.
2580         * libio/stdfiles.c: Likewise.
2581         * libio/stdio.c: Likewise.
2582         * libio/wfileops.c: Likewise.
2583         * libio/wgenops.c: Likewise.
2584
2585         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2586
2587 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2588
2589         * locale/programs/localedef.c: Implement --prefix option to allow
2590         writing in standard places of alternative install directories.
2591
2592         * posix/regex.c (compile_range): Implement collation sequence
2593         handling for glibc.  Use simple character ordering otherwise and
2594         not strcoll.
2595
2596 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2597
2598         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2599
2600 2000-08-12  Andreas Jaeger  <aj@suse.de>
2601
2602         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2603         __USE_FILE_OFFSET64 correctly for locking.
2604         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2605
2606 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2607
2608         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2609         Define for 2.4.1 on sparc as well.
2610         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2611         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2612         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2613         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2614
2615 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2616
2617         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2618         defined.
2619
2620 2000-08-12  Andreas Jaeger  <aj@suse.de>
2621
2622         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2623         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2624
2625         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2626         mips2 for assembler.
2627
2628         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2629         if fnctl64 is not available for F_*LK*64.
2630
2631         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2632
2633 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2634
2635         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2636         Define for 2.4.1 on x86.
2637         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2638         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2639         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2640
2641         * dirent/dirent.h: Define DT_WHT.
2642
2643         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2644         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2645         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2646         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2647         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2648         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2649
2650 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2651
2652         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2653         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2654         * inet/Makefile (tests): Add tst-gethnm.
2655         * inet/tst-gethnm.c: New file.
2656
2657         * rt/aio_cancel.c: If canceling a specific request which is running
2658         *really* do nothing.
2659         * rt/aio_misc.h: Add `done' to states of a request.
2660         * rt/aio_misc.c: Add several tests for the correct state.
2661         Simplify request table memory handling.
2662
2663 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2664
2665         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2666         * dirent/scandir64.c: Move...
2667         * sysdeps/generic/scandir64.c: ...here.
2668         * dirent/alphasort64.c: Move...
2669         * sysdeps/generic/alphasort64.c: ...here.
2670         * dirent/versionsort64.c: Move...
2671         * sysdeps/generic/versionsort64.c: ...here.
2672         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2673         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2674         Export symbols at GLIBC_2.2.
2675         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2676         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2677         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2678         __versionsort64): Add prototypes.
2679         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2680         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2681         unused prototype.
2682         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2683         and GLIBC_2.2.
2684         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2685         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2686         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2687         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2688         __u_quad_t.
2689         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2690         Adjust for kernel-2.4.0-test6 layout.
2691         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2692         GLIBC_2.1 and GLIBC_2.2.
2693         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2694         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2695         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2696         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2697         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2698         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2699         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2700         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2701         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2702         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2703         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2704         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2705         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2706         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2707         __u_quad_t.
2708         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2709         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2710         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2711         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2712         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2713         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2714         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2715         __u_quad_t.
2716         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2717         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2718         Define.
2719         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2720         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2721         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2722         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2723         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2724         Define.
2725         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2726         alpha/readdir.c.
2727         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2728         alpha/readdir_r.c
2729         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2730         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2731         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2732         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2733         st_ino from __st_ino.
2734         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2735         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2736         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2737         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2738         set __st_ino in addition to st_ino.
2739         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2740         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2741         __old_getdents64 as well.
2742         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2743         getdirentries64 and old_getdirentries64 as well.
2744         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2745         __GETDENTS): Define.
2746         (GETDENTS64): Remove.
2747         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2748         Define.
2749         (GETDENTS64): Remove.
2750         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2751         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2752         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2753         as well.
2754         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2755         __old_readdir64_r as well.
2756         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2757         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2758
2759 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2760
2761         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2762         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2763         define of the kernel.
2764         Add missing __SEG_PSTKOVF definition.
2765         Adjust the padding of struct siginfo and struct sigevent to
2766         match the fact that sigval_t is 64 bit.
2767
2768 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2769
2770         * timezone/zic.c: Update from tzcode2000f.
2771         * timezone/australasia: Update from tzdata2000f.
2772         * timezone/europe: Likewise.
2773         * timezone/southamerica: Likewise.
2774         * timezone/yearistype: Likewise.
2775
2776 2000-08-10  Andreas Jaeger  <aj@suse.de>
2777
2778         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2779         stat with current MIPS kernel.
2780
2781 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2782
2783         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2784         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2785         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2786         Remove the junk that's only relevant in the Linux kernel itself.
2787         Add a warning saying that this file is now obsolete, and include
2788         <sys/procfs.h>.
2789         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2790         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2791         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2792         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2793         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2794         and add the notice that the file is primarily there for GDB.
2795         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2796
2797 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2798
2799         * time/tzfile.c (__tzfile_compute): __tzstring zones
2800         from zone_names.
2801
2802 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2803
2804         * resolv/resolv.h (__res_state): Surround prototype with
2805         __BEGIN_DECLS/__END_DECLS.
2806         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2807
2808 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2809
2810         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2811         Make independant of asm/resource.h from the Linux kernel.
2812
2813 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2814
2815         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2816
2817 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2818
2819         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2820         * locale/Makefile (locale-CPPFLAGS): Likewise.
2821
2822 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2823
2824         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2825         for AMD processors.
2826
2827 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2828
2829         * misc/Versions (mincore): Export at GLIBC_2.2.
2830
2831 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2832
2833         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2834
2835 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2836
2837         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2838         socketpair.  Made socketpair a weak alias.
2839         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2840         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2841         conforming, but fall back on the old protocol if the socket server
2842         doesn't support it.
2843         * include/sys/socket.h: Add prototype for __socketpair.
2844
2845 2000-08-09  Andreas Schwab  <schwab@suse.de>
2846
2847         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2848         long long modifier is seen.
2849
2850         * elf/nodelete.c (do_test): Remove reference to undefined member
2851         sa_restorer.
2852         * rt/tst-aio4.c (do_test): Likewise.
2853
2854         * configure.in: Add `-lm' when checking for libgd.
2855         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2856         linking.
2857
2858 2000-08-09  Andreas Jaeger  <aj@suse.de>
2859
2860         * configure.in: Change required make versions.
2861
2862         * manual/install.texi (Tools for Compilation): Document required
2863         make version.
2864         (Supported Configurations): Update list of supported
2865         configurations.
2866
2867 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2868
2869         * locale/linereader.c (get_string): Don't print an error is a string
2870         contains an unknown character.
2871
2872 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2873
2874         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2875         (new_symbol): Take new parameters with name of the symbol.
2876         Adjust callers.
2877         (handle_ellipsis): Don't only allow character symbols.
2878         (collate_read): Allow string of collating elements contain invalid
2879         characters; ignore entry in this case.
2880         Handle ellipsis of collating symbols before first order_start.
2881         Allow ellipsis in state 0.
2882
2883 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2884
2885         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2886         error message.
2887         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2888
2889 2000-08-04  Greg McGary  <greg@mcgary.org>
2890
2891         * posix/regex.c (SET_HIGH_BOUND): New macro.
2892         (MOVE_BUFFER_POINTER): Use it.
2893         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2894         (EXTEND_BUFFER): Use it.
2895
2896 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2897
2898         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2899         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2900         _wide_data but from _IO_FILE directly.
2901         * libio/iofclose.c: Likewise.
2902         * libio/wfileops.c: Likewise.
2903
2904         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2905         * libio/libioP.h: Change prototypes.
2906
2907 2000-08-03  Greg McGary  <greg@mcgary.org>
2908
2909         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2910         frame pointer early so that we save caller's frame pointer.
2911         * sysdeps/i386/elf/setjmp.S: Likewise.
2912
2913         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2914         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2915
2916         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2917         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2918         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2919
2920 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2921
2922         * iconvdata/big5.c: Updated.
2923         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2924
2925 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2926
2927         * Makeconfig (all-subdirs): Add conform.
2928         * conform/Makefile: Include ../Rules.
2929
2930         * Makefile (README): Add rules to generate here as well.
2931
2932 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2933
2934         * version.h (VERSION): Bump to 2.1.92.
2935
2936         * sysdeps/ia64/Dist: Add _mcount.S.
2937
2938         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2939
2940         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2941
2942         * elf/Makefile (distribute): Add missing modules.
2943
2944         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2945
2946         * posix/regex.c (compile_range): Translate range start and end
2947         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2948
2949         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2950         asm/resource.h.
2951
2952         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2953
2954 2000-08-02  Andreas Jaeger  <aj@suse.de>
2955
2956         * elf/elf.h (EM_S390): Added.
2957         (R_390_*): New relocs for S390.
2958
2959         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2960         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2961         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2962         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2963         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2964         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2965         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2966         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2967         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2968         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2969         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2970         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2971         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2972         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2973         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2974         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2975         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2976         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2977         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2978         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2979         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2980         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2981         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2982         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2983         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2984         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2985         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2986         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2987         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2988         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2989         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2990         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2991         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2992         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2993         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2994         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2995         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2996         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2997         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2998         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2999         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3000         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3001         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3002         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3003         * sysdeps/s390/sysdep.h: New file.
3004         * sysdeps/s390/sys/ucontext.h: New file.
3005         * sysdeps/s390/sub_n.S: New file.
3006         * sysdeps/s390/strncpy.S: New file.
3007         * sysdeps/s390/strcpy.S: New file.
3008         * sysdeps/s390/stackinfo.h: New file.
3009         * sysdeps/s390/setjmp.S: New file.
3010         * sysdeps/s390/s390-mcount.S: New file.
3011         * sysdeps/s390/mul_1.S: New file.
3012         * sysdeps/s390/memusage.h: New file.
3013         * sysdeps/s390/memset.S: New file.
3014         * sysdeps/s390/memcpy.S: New file.
3015         * sysdeps/s390/memchr.S: New file.
3016         * sysdeps/s390/machine-gmon.h: New file.
3017         * sysdeps/s390/ldbl2mpn.c: New file.
3018         * sysdeps/s390/gmp-mparam.h: New file.
3019         * sysdeps/s390/fpu/fpu_control.h: New file.
3020         * sysdeps/s390/fpu/fesetround.c: New file.
3021         * sysdeps/s390/fpu/fegetround.c: New file.
3022         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3023         * sysdeps/s390/fpu/bits/fenv.h: New file.
3024         * sysdeps/s390/ffs.c: New file.
3025         * sysdeps/s390/elf/start.S: New file.
3026         * sysdeps/s390/elf/setjmp.S: New file.
3027         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3028         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3029         * sysdeps/s390/dl-machine.h: New file.
3030         * sysdeps/s390/bzero.S: New file.
3031         * sysdeps/s390/bsd-setjmp.S: New file.
3032         * sysdeps/s390/bsd-_setjmp.S: New file.
3033         * sysdeps/s390/bits/string.h: New file.
3034         * sysdeps/s390/bits/setjmp.h: New file.
3035         * sysdeps/s390/bits/huge_val.h: New file.
3036         * sysdeps/s390/bits/endian.h: New file.
3037         * sysdeps/s390/bits/byteswap.h: New file.
3038         * sysdeps/s390/bcopy.S: New file.
3039         * sysdeps/s390/backtrace.c: New file.
3040         * sysdeps/s390/atomicity.h: New file.
3041         * sysdeps/s390/asm-syntax.h: New file.
3042         * sysdeps/s390/addmul_1.S: New file.
3043         * sysdeps/s390/add_n.S: New file.
3044         * sysdeps/s390/abort-instr.h: New file.
3045         * sysdeps/s390/__longjmp.c: New file.
3046         * sysdeps/s390/Makefile: New file.
3047         * sysdeps/s390/Implies: New file.
3048         * sysdeps/s390/Dist: New file.
3049         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3050
3051 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3052
3053         Remove incompatible IPv6 extension of RPC.
3054         * sunrpc/Makefile: Undo changes.
3055         * sunrpc/rpc_main.c: Likewise.
3056         * sunrpc/rpc/clnt.h: Likewise.
3057         * sunrpc/rpc/svc.h: Likewise.
3058         * sunrpc/bindrsvprt6.c: Removed.
3059         * sunrpc/clnt_tcp6.c: Removed.
3060         * sunrpc/clnt_udp6.c: Removed.
3061         * sunrpc/svc_tcp6.c: Removed.
3062         * sunrpc/svc_udp6.c: Removed.
3063
3064         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3065         dgettext, and dcgettetxt.
3066
3067         * intl/locale.alias: Update japanese aliases.
3068
3069         * sysdeps/ia64/bits/byteswap.h: New file.
3070         Patch by Dan Pop <Dan.Pop@cern.ch>.
3071
3072         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3073         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3074
3075 2000-07-13  H.J. Lu  <hjl@gnu.org>
3076
3077         * posix/regex.c (re_max_failures): Set to 4000.
3078
3079 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3080
3081         * gnulib/Makefile (tests): Add tst-gcc.
3082         * gnulib/tst-gcc.c: New file.
3083
3084         * assert/Makefile (routines): Add __assert.
3085         * assert/Versions: Export __assert for glibc 2.2.
3086         * assert/__assert.c: New file.
3087         * assert/assert.h: Declare __assert.
3088
3089 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3090
3091         * locale/localeinfo.h (_ISCTYPE): New macro.
3092         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3093         LC_CTYPE locale format.
3094         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3095         (ctype_output): Output class_b[nr] right before class_3level[nr].
3096         (allocate_arrays): Fill class_b, similarly to class_3level.
3097
3098 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3099             Joseph S. Myers  <jsm28@cam.ac.uk>
3100
3101         * math/tgmath.h: Make standard compliant.  Don't ask how.
3102
3103 2000-07-04  H.J. Lu  <hjl@gnu.org>
3104
3105         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3106         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3107         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3108
3109 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3110
3111         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3112         (__USE_LARGEFILE): Add an explanation.
3113         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3114         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3115
3116 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3117
3118         * libio/Makefile: Enable exception handling for genops, wgenops,
3119         fileops, and wfileops.
3120
3121 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3122
3123         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3124         acount that elf/rtld's main program might remove some varibales
3125         from the environment if we're trying to be secure.  Move the Hurd
3126         startup data if necessary, or, if we there is no startup data,
3127         make sure the magical convention that ARGV[0] is stored just after
3128         the environment list.
3129
3130 2000-08-01  Philip Blundell  <philb@gnu.org>
3131
3132         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3133         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3134         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3135         oldsetrlimit for GLIBC_2.0.
3136
3137 2000-08-01  Andreas Jaeger  <aj@suse.de>
3138
3139         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3140         (LINE_PARSER): Allow any number of spaces between ip address and
3141         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3142
3143         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3144
3145         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3146         constants in.
3147
3148         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3149         _nss_nisplus_getipnodebyname_r.
3150
3151         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3152         now, getipnodebyname is deprecated.
3153         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3154         Likewise.
3155
3156         * inet/Makefile (routines): Don't build getipnodebyaddr and
3157         friends.
3158
3159         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3160
3161         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3162
3163         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3164
3165         * wctype/Makefile (distribute): Add wchar-lookup.h.
3166
3167         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3168
3169         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3170
3171 2000-08-01  Andreas Schwab  <schwab@suse.de>
3172
3173         * Make-dist (dist): Resolve `..' in file names.
3174
3175 2000-08-01  Andreas Jaeger  <aj@suse.de>
3176
3177         * stdio-common/Makefile (distribute): Remove removed files, add
3178         new files.
3179
3180         * Makefile (distribute): Remove include/db_185.h and db.h.
3181
3182         * include/db_185.h: Remove, it's not needed anymore.
3183         * include/db.h: Likewise.
3184
3185 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3186
3187         * inet/Makefile (tests): Remove tst-ipnode.
3188         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3189         now.
3190
3191 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3192
3193         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3194         endp statements have already been added.
3195
3196 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3197
3198         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3199         <sysdeps/ia64/sysdep.h>.
3200
3201         * sysdeps/ia64/_mcount.S: New file.
3202
3203         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3204         __gmon_start__.  Fix up extraneous whitespace.
3205
3206 2000-01-12  H.J. Lu  <hjl@gnu.org>
3207
3208         * sysdeps/ia64/elf/initfini.c: New file.
3209
3210 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3211
3212         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3213         dependency between branch and ar.pfs write.
3214
3215 2000-07-31  H.J. Lu  <hjl@gnu.org>
3216
3217         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3218         handle the wchar_t array.
3219
3220 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3221
3222         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3223         10646 which are not yet assigned.
3224         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3225
3226 2000-07-31  Andreas Jaeger  <aj@suse.de>
3227
3228         * inet/Versions: Remove getipnodebyaddr and friends from
3229         GLIBC_2.2.
3230
3231         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3232
3233 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3234
3235         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3236         ch >= 0x81 && ch2 < 0x40 as invalid.
3237
3238 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3239
3240         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3241         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3242
3243 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3244
3245         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3246         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3247
3248 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3249
3250         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3251         0xb8.
3252         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3253
3254 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3255
3256         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3257
3258 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3259
3260         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3261         (from_ucs4): Change values of U+00A4 and U+00ED.
3262         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3263
3264 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3265
3266         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3267         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3268
3269 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3270
3271         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3272         * iconvdata/isiri-3342.h: New file.
3273         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3274         treat 0x80 as a gap.
3275
3276 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3277
3278         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3279         (utf8_encode): Use simple shifts instead.  Fix return value.
3280
3281 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3282
3283         * timezone/private.h: Update from tzcode2000e.
3284         * timezone/asia: Update from tzdata2000e.
3285         * timezone/australasia: Likewise.
3286         * timezone/europe: Likewise.
3287         * timezone/northamerica: Likewise.
3288         * timezone/zone-tab: Likewise.
3289
3290 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3291
3292         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3293         the order of struct sigaltstack members is different.
3294
3295 2000-07-26  Philip Blundell  <philb@gnu.org>
3296
3297         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3298
3299 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3300
3301         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3302         * locale/programs/ld-ctype.c: Adjust for this.
3303
3304         * locale/programs/ld-collate.c: Add more alignment checks.
3305         * locale/string/strcoll.c: Likewise.
3306
3307 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3308
3309         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3310         outside USE_IN_LIBIO block.
3311
3312 2000-07-26  Philip Blundell  <philb@gnu.org>
3313
3314         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3315         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3316
3317 2000-07-28  Philip Blundell  <philb@gnu.org>
3318
3319         * math/test-fpucw.c: Ignore reserved bits in control word.
3320
3321 2000-07-28  Philip Blundell  <philb@gnu.org>
3322
3323         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3324         (ret): Redefine to PSEUDO_RET.
3325         (PSEUDO): Remove jump to syscall_error.
3326
3327 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3328
3329         * resolv/README: Add some information about using the resolver in
3330         multi-threaded code and with C++.  Spelling fixes.
3331
3332 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3333
3334         * resolv/resolv.h (struct __sockaddr_in): Remove.
3335         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3336
3337 2000-07-29  Greg McGary  <greg@mcgary.org>
3338
3339         * Rules (test-bp-inputs, make-test-out): New variables.
3340         ($(objpfx)%-bp.out): New rule.
3341         ($(objpfx)%.out): Rewrite in terms of new variables.
3342
3343         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3344         internal function that uses vtable.
3345         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3346         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3347
3348         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3349         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3350         (chunk_align): Likewise.
3351
3352         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3353         in a way that conforms to decl, and avoids spurious bounds violation.
3354
3355         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3356         * sysdeps/generic/frame.h: Likewise.
3357         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3358         around return value.
3359         (__backtrace): Qualify frame-pointer chain and return address
3360         pointers as __unbounded.  Wrap bounds around variable `current'.
3361         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3362         around return value.
3363         (catch_segfault): Qualify frame-pointer chain and return address
3364         pointers as __unbounded.  Wrap bounds around variable `current'.
3365         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3366         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3367         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3368         __unbounded.
3369         (__backtrace): Qualify frame-pointer chain and return address
3370         pointers as __unbounded.  Wrap bounds around variable `current'.
3371
3372         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3373         * sysdeps/i386/mul_1.S: Likewise.
3374         * sysdeps/i386/submul_1.S: Likewise.
3375         * sysdeps/i386/i586/addmul_1.S: Likewise.
3376         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3377         * sysdeps/i386/i586/submul_1.S: Likewise.
3378
3379 2000-07-27  Andreas Jaeger  <aj@suse.de>
3380
3381         * libio/Depend: New file, libio needs localedata for tests.
3382         * posix/Depend: Likewise.
3383
3384 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3385
3386         * stdio-common/_i18n_itoa.c: Removed.
3387         * stdio-common/_i18n_itoa.h: Removed.
3388         * stdio-common/_i18n_itowa.c: Removed.
3389         * stdio-common/_i18n_itowa.h: Removed.
3390         * stdio-common/_i18n_number.h: New file.
3391         * stdio-common/Depend: New file.
3392         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3393         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3394         printing.  Change printing of numbers with locale specific digits to
3395         use new code in _i18n_number.h.
3396         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3397         _i18n_itowa.
3398
3399         * stdio-common/bug13.c: Improve messages.
3400
3401         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3402         (set_class_defaults): Always search also for Uxxxx names.
3403         Detect insufficient number of outdigits.
3404
3405         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3406
3407 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3408
3409         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3410         _NL_CTYPE_MAP_NAMES.
3411         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3412         * wctype/wcfuncs.c (towlower, towupper): Use them.
3413         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3414         * wctype/wctrans.c (wctrans): Likewise.
3415         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3416
3417 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3418
3419         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3420         Use the optimized version of this function outside glibc as well.
3421
3422 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3423
3424         * locale/indigits.h (indigit_value): Correct.
3425         * locale/indigitswc.h (indigitwc_value): Correct.
3426         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3427         conversion, add GROUP checking for it, fix GROUP number
3428         conversion with strlen(thousands) > 1.
3429         Honour width correctly in the presence of floating
3430         decimal points and thousands separators.
3431         * stdio-common/tst-sscanf.c: New test.
3432         * stdio-common/Makefile: Add it to tests.
3433         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3434         thousands separators and group argument is non-zero.
3435
3436 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3437
3438         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3439         starts at GLIBC_2.2.
3440
3441 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3442
3443         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3444         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3445         _test_and_set.
3446         (headers): Add sys/tas.h.
3447         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3448         GLIBC_2.2 from libc.
3449         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3450         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3451         _test_and_set.
3452
3453 2000-07-28  Andreas Jaeger  <aj@suse.de>
3454
3455         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3456
3457         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3458         ($(objpfx)tst-dladdr.out): new.
3459         (tests): Add tst-dladdr.
3460         ($(objpfx)glrefmain): Use libdl.
3461
3462         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3463         <vs@caldera.de>.
3464
3465 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3466
3467         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3468         ftruncate(64) calls.
3469
3470 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3471
3472         * intl/tst-translit.c: Include string.h to get prototype for
3473         strcmp().
3474
3475 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3476
3477         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3478         name and add weak alias for __fork.
3479
3480         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3481         & pwrite to use __libc_<name> as strong names instead of
3482         __syscall_<name>.
3483
3484         * include/sched.h: Add clone2 prototype.
3485
3486 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3487
3488         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3489         procedure name twice.
3490
3491 2000-07-27  Philip Blundell  <philb@gnu.org>
3492
3493         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3494
3495 2000-07-27  Andreas Jaeger  <aj@suse.de>
3496
3497         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3498         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3499         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3500         Reported by Andi Kleen <ak@suse.de>.
3501
3502         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3503         (do_wait): Test requests with aio_return64.
3504         (do_test): Change callers of do_wait.
3505
3506 2000-07-26  Andreas Jaeger  <aj@suse.de>
3507
3508         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3509         (do_wait): Test requests with aio_return.
3510         (do_test): Change callers of do_wait.
3511
3512 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3513
3514         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3515         from request list.  Don't do the list handling here, call
3516         __aio_remove_request.
3517         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3518         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3519         request might already be processed.  Don't do the list handling
3520         here, call __aio_remove_request.
3521
3522         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3523         LIO_DSYNC.
3524
3525         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3526         are missing.
3527
3528 2000-07-27  Greg McGary  <greg@mcgary.org>
3529
3530         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3531         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3532         in union init.  Pass zero for ignored semnum arg to semctl.
3533         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3534
3535 2000-07-26  Greg McGary  <greg@mcgary.org>
3536
3537         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3538         data structure pointers as __unbounded.
3539         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3540         * sysdeps/generic/bp-semctl.h: New file.
3541         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3542         pointers as __unbounded.  Check bounds of syscall args.
3543         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3544         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3545         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3546         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3547         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3548         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3549         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3550         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3551         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3552         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3553         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3554         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3555         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3556         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3557         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3558         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3559
3560 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3561
3562         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3563         by default.
3564         * locale/C-ctype.c: Likewise.
3565         * wcsmbs/wcsmbsload.c: Likewise.
3566
3567 2000-07-26  Greg McGary  <greg@mcgary.org>
3568
3569         * Makeconfig (+link-bounded, link-libc-bounded,
3570         link-extra-libs-bounded): New variables.
3571         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3572         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3573         * Rules (tests-bp.out): New variable.
3574         (tests): Conditionally add BP tests.
3575         (binaries-bounded): Add variable and associated rule.
3576         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3577         Move conditional stuff after place where condition is defined.
3578
3579         * malloc/malloc.c (bp-checks.h): Add #include.
3580         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3581         (_bin_at): Add unbounded version of bin_at.
3582         (IAV, chunk_alloc): Use unbounded _bin_at.
3583         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3584         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3585         Wrap BOUNDED_N around return value.
3586         (chunk_realloc): Adjust oldsize once.
3587
3588         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3589         (__ubp_memchr): Add correct decl.
3590         (_CHECK_STRING): Use __ubp_memchr.
3591         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3592         New alias for unbounded-pointer __memchr.
3593         * sysdeps/i386/memchr.S: Likewise.
3594         * sysdeps/ia64/memchr.S: Likewise.
3595         * sysdeps/m68k/memchr.S: Likewise.
3596         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3597         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3598         * sysdeps/vax/memchr.s: Likewise.
3599
3600         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3601         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3602         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3603         * sysdeps/i386/i686/strtok.S: Likewise.
3604         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3605         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3606
3607         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3608         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3609
3610         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3611         bounds of copy_result to mount_proc.
3612
3613 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3614
3615         * wctype/wctype.h (__wctrans_l): New declaration.
3616         * wctype/wctrans_l.c: New file.
3617         * wctype/Makefile (routines): Add wctrans_l.
3618
3619 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3620
3621         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3622         Patch by MacGyver <macgyver@tos.net>.
3623
3624 2000-07-26  Andreas Jaeger  <aj@suse.de>
3625
3626         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3627         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3628         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3629
3630         * rt/tst-aio.c (test_file): Fix typo.
3631         * rt/tst-aio64.c (test_file): Likewise.
3632
3633         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3634         * rt/Makefile: Add rules to build and run tst-aio3.
3635
3636         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3637         it's not needed and confuses only.
3638
3639 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3640
3641         * resolv/res_init.c: Add support for nameserver communication with
3642         IPv6.
3643         * resolv/res_send.c: Likewise.
3644         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3645         in nsaddrs field.
3646         Patch by <venaas@nvg.ntnu.no>.
3647
3648 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3649
3650         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3651         (wcwidth_table_get): New function.
3652         (wcwidth_table_add): Call it.
3653         (wctrans_table_get): New function.
3654         (wctrans_table_add): Call it.
3655
3656 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3657
3658         * rt/lio_listio.c (lio_listio): Always disable individual
3659         notification.
3660         * rt/Makefile: Add rules to build and run tst-aio2.
3661         * rt/tst-aio2.c: New file.
3662
3663         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3664         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3665
3666 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3667
3668         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3669         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3670         leading and trailing spaces from host, user and domain name.
3671
3672 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3673
3674         * csu/defs.awk: Add support for need_endp.
3675
3676 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3677
3678         * resolv/resolv.h: Remove __P from res_send_qhook and
3679         res_send_rhook typedefs.
3680
3681 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3682
3683         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3684
3685 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3686
3687         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3688
3689 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3690
3691         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3692         calling thread, set the cancellation flag and return success
3693         instead of EINTR.
3694
3695 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3696
3697         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3698         * libio/tst-widetext.c: New file.
3699         * libio/tst-widetext.input: New file.
3700
3701         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3702
3703         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3704         empty external buffer correctly.
3705
3706 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3707
3708         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3709         __STRING(entry) and not #entry.
3710         (_RTLD_EPILOGUE): Likewise.
3711         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3712
3713 2000-07-25  Andreas Jaeger  <aj@suse.de>
3714
3715         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3716         according to changes in test program, run also with static only
3717         builds.
3718         ($(objpfx)tst-printf.out): Likewise.
3719
3720         * stdio-common/tst-unbputc.sh: Likewise.
3721         * stdio-common/tst-printf.sh: Likewise.
3722
3723 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3724
3725         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3726
3727         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3728         loop.
3729
3730         * libio/fileops.c: Pretty print.
3731
3732 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3733
3734         * wctype/wchar-lookup.h: New file.
3735         * wctype/iswctype.c: Include "wchar-lookup.h".
3736         (__iswctype): Support alternate locale format with 3-level tables.
3737         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3738         * wctype/towctrans.c (__towctrans): Likewise.
3739         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3740         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3741         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3742         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3743         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3744         __iswxdigit, towlower, towupper): Support alternate locale format
3745         with 3-level tables.
3746         * wctype/wcextra.c (iswblank): Likewise.
3747         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3748         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3749         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3750         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3751         format with 3-level tables.
3752         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3753         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3754         format, return a 3-level table pointer.
3755         * wctype/wctype_l.c (__wctype_l): Likewise.
3756         * wctype/wctrans.c (wctrans): Likewise.
3757         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3758         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3759         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3760         (iswctype): Remove macro definition.
3761         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3762         (internal_wcwidth): Support alternate locale format with 3-level
3763         tables.
3764         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3765         New nl_items.
3766         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3767         Define them as being type "word".
3768         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3769         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3770         __ctype32_width): New exported variables.
3771         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3772         alternate locale format. Don't initialize __ctype_names and
3773         __ctype_width in the alternate locale format.
3774         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3775         * locale/programs/localedef.c (oldstyle_tables): New variable.
3776         (OPT_OLDSTYLE): New macro.
3777         (options): Add --old-style option.
3778         (parse_opt): Handle --old-style option.
3779         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3780         map_offset, class_3level, map_3level, width_3level members.
3781         (ctype_output): Support for alternate locale format: Computation of
3782         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3783         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3784         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3785         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3786         now contain both class and map tables.
3787         (struct wctype_table): New type.
3788         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3789         functions.
3790         (struct wcwidth_table): New type.
3791         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3792         functions.
3793         (struct wctrans_table): New type.
3794         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3795         functions.
3796         (allocate_arrays): Support for alternate locale format: Set
3797         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3798         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3799         to the first 256 characters. Compute ctype->map_3level. Set
3800         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3801         instead of ctype->width.
3802
3803 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3804
3805         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3806         string functions.
3807
3808 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3809
3810         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3811         in wide characters, not bytes.
3812         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3813         into file.
3814
3815 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3816
3817         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3818         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3819         LC_MEASUREMENT, LC_IDENTIFICATION.
3820
3821         * locale/xlocale.h (struct __locale_struct): Increase size of
3822         __locales array.
3823         * locale/duplocale.c (__duplocale): Copy newly added categories as
3824         well.
3825         * locale/freelocale.c (__freelocale): Free newly added categories.
3826         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3827         If a base is given, use it, don't simply return it.
3828
3829 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3830
3831         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3832         variables, copied_key and copied_salt, instead of boolean variables.
3833
3834 2000-07-24  Andreas Jaeger  <aj@suse.de>
3835
3836         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3837         check for offset.
3838
3839         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3840         initgroups_function, adopted prototype for change from 2000-07-23.
3841         (initgroups): Follow type change.
3842
3843         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3844         & PAGE_MASK case, reformat.
3845
3846         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3847         from stdin and setup environment.
3848
3849 2000-07-24  Andreas Schwab  <schwab@suse.de>
3850
3851         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3852
3853 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3854
3855         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3856         more.  Patch by scarlet@mit.edu [PR libc/1799].
3857
3858         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3859         [PR libc/1792].
3860
3861         * argp/argp-parse.c (parser_finalize): Reverse order in which
3862         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3863
3864         * grp/initgroups.c (initgroups): Don't limit the possible number
3865         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3866         the setgroups call while the call fails and descrease the number
3867         of groups each round.
3868         The name of the initgroups function in the NSS modules changed.
3869         (compat_call): Adapt for dynamic resizing.
3870         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3871         Implement dynamic resizing.
3872         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3873         Likewise.
3874         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3875         * hesiod/Versions: Change exported interface name.
3876         * nis/Versions: Change exported interface name.
3877
3878 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3879
3880         * locale/iso-639.def: Some errors corrected.
3881         Patch by Keld Simonsen.
3882
3883         * include/limits.h: Update non-gcc portion.
3884         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3885
3886 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3887
3888         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3889         program's data space, reallocate only the space that was just
3890         deallocated to release its backing space.
3891
3892 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3893
3894         * stdio-common/vfprintf.c (process_string_arg): For wide character
3895         version, handle precision also correctly.
3896
3897         * nss/nss_files/files-hosts.c: Correct problem with three or more
3898         entries with the same name.
3899
3900         * nss/nss_files/files-hosts.c: Implement multi handling.
3901         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3902
3903 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3904
3905         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3906         strcasecmp.
3907
3908         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3909         * malloc/Makefile: Likewise.
3910         * malloc/tst-mtrace.sh: Likewise.
3911         * posix/Makefile: Likewise.
3912         * posix/globtest.sh: Likewise.
3913         * posix/wordexp-tst.sh: Likewise.
3914         * string/Makefile: Likewise.
3915
3916 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3917
3918         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3919         size instead of LC_ALL to take into account the new locale
3920         categories.
3921
3922 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3923
3924         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3925         remainders of hash table.
3926         * locale/categories.def: Remove remainders of transliteration
3927         hash table.
3928         * locale/langinfo.h: Likewise.
3929         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3930         transliteration tables.
3931
3932         * locale/gen-translit.pl: New file.
3933         * locale/C-translit.h.in: New file.
3934         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3935         data pointers with data from this file.
3936         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3937         and gen-translit.pl.
3938         Add rule to generate C-translit.h.
3939         * intl/tst-translit.c (main): Update for now performed
3940         transliteration.
3941
3942         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3943         (it's no input error).
3944         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3945         * stdio-common/scanf12.c: Correct expected result for first scanf.
3946
3947         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3948         of multibyte character strings in %s format with precision.
3949
3950 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3951
3952         * locale/programs/ld-collate.c (collate_read): Allow collating
3953         symbols and elements be named in reorder-after instructions.
3954         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3955
3956         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3957         duplication with generated name, not the name of the first
3958         character.
3959         Patch by Yong Li <yong.li@asu.edu>.
3960
3961         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3962         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3963
3964 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3965
3966         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3967         allocations only if a non-main arena cannot be extended.
3968
3969 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3970
3971         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3972         in DF_1_NODEFLIB handling.
3973
3974 2000-07-21  Andreas Jaeger  <aj@suse.de>
3975
3976         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3977         own rule.
3978
3979         * libio/fwide.c: Include <wchar.h> for prototype.
3980
3981 2000-07-21  Greg McGary  <greg@mcgary.org>
3982
3983         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3984         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3985         Define in terms of chunk_at_offset.
3986         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3987         (next_bin, prev_bin): offset by size of real array elements.
3988         (chunk_align): Make `m' a scalar, since that's how it's used.
3989
3990 2000-07-21  Greg McGary  <greg@mcgary.org>
3991
3992         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3993         UNCHECK_BOUNDS.
3994         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3995         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3996         Wrap bounds around argv & envp and each of their string members.
3997         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3998         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3999         symbol in BP_SYM ().  Discard bounds of address arg.
4000         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4001         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4002         Discard bounds on address arg, add bounds to return value.
4003
4004 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4005
4006         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4007         * elf/filter.c: New file.
4008         * elf/filtmod1.c: New file.
4009         * elf/filtmod2.c: New file.
4010
4011         * elf/rtld.c: Define _dl_bind_not variable.
4012         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4013         * elf/dl-support.c: Likewise.
4014         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4015         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4016         _dl_bind_not.
4017         (profile_fixup): Likewise.
4018
4019         * libio/Makefile (routines): Add fwide.
4020         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4021         fwide now.  Internal calls to _IO_fwide must do locking themselves
4022         or don't need locking.
4023         * libio/fwide.c: New file.
4024
4025         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4026
4027         * elf/Makefile: Add no modules for nodelete test.
4028         * elf/nodelmod3.c: New file.
4029         * elf/nodelmod4.c: New file.
4030         * elf/nodelete.c: Also test case where dependency of dlopen() object
4031         is marked nodelete.
4032
4033         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4034         * elf/nodlopen.c: New file.
4035         * elf/nodlopenmod.c: New file.
4036         * include/dlfcn.h: Define __RTLD_DLOPEN.
4037         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4038         and this is a dlopen() call, do not load the binary.
4039         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4040         * dlfcn/dlopenold.c: Likewise.
4041         * configure.in: Add test for -z nodelete option.
4042         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4043
4044 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4045
4046         Make Hesiod NSS module thread-safe.
4047
4048         * hesiod/README.hesiod: Update.
4049
4050         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4051         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4052         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4053         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4054         hesiod-proto.
4055         * hesiod/nss_hesiod/hesiod-init.c: New file.
4056         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4057         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4058         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4059         * hesiod/nss_hesiod/hesiod-service.c
4060         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4061         looking up services by port number.
4062         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4063
4064         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4065         * hesiod/hesiod.h: Likewise.
4066         * hesiod/hesiod_p.h: Likewise.
4067
4068 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4069
4070         Fix problems with `struct __res_state' getting too big.
4071         * resolv/resolv.h (struct __sockaddr_in): New definition.
4072         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4073         the private parts of the structure to save some space.
4074         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4075         (struct sockaddr_in *) in call to sock_eq.
4076         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4077
4078 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4079
4080         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4081         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4082         with nodelete.
4083         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4084         to _dl_map_object.  Return immediately if no object loaded.
4085         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4086         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4087         if it exists into l_flags_1 word.
4088         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4089         it to determine whether loading is wanted or not.
4090         (_dl_map_object): Likewise.
4091         Call _dl_map_object_from_fd with new parameter.
4092         * sysdeps/generic/ldsodefs.h: Update prototype.
4093         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4094         * elf/rtld.c: Likewise.
4095         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4096         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4097         * elf/noload.c: New file.
4098         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4099         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4100         * sysdeps/mips/bits/dlfcn.h: Likewise.
4101         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4102         (tests-nodelete-yes): Define.
4103         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4104         Add rules to build nodelete and modules.
4105         * elf/nodelete.c: New file.
4106         * elf/nodelmod1.c: New file.
4107         * elf/nodelmod2.c: New file.
4108         * configure.in: Add test for -z nodelete option.
4109         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4110
4111         * libio/Makefile (tests): Add tst_wprintf2.
4112         (tst_wprintf2-ARGS): Define.
4113         * libio/tst_wprintf2.c: New file.
4114         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4115
4116         * libio/wfiledoalloc.c: Only allocate external buffer if this
4117         hasn't happened yet.
4118
4119         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4120         something in the buffer.  gconv call can write up to end of the
4121         buffer, not only _IO_write_end.
4122         (_IO_wfile_overflow): Allocate also external buffer.
4123
4124 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4125
4126         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4127         strings with precision in vfwprintf correctly.
4128         * stdio-common/vfprintf.c: Fix completely broken handling of
4129         unbuffered wide character streams.
4130         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4131
4132         * resolv/Makefile (distribute): Add README.
4133
4134         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4135
4136 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4137
4138         Update resolver code to BIND 8.2.3-T5B.
4139
4140         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4141         __res_nclose.
4142         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4143         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4144         __res_search.
4145         * resolv/Banner: BIND-8.2.3-T5B.
4146
4147         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4148         * resolv/herror.c: Likewise.
4149         * resolv/inet_addr.c: Likewise.
4150         * resolv/inet_net_ntop.c: Likewise.
4151         * resolv/inet_net_pton.c: Likewise.
4152         * resolv/inet_neta.c: Likewise.
4153         * resolv/inet_ntop.c: Likewise.
4154         * resolv/nsap_addr.c: Likewise.
4155         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4156         IPv6 addresses (ISC bug #520).
4157
4158         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4159         * resolv/ns_parse.c: Likewise.
4160         * resolv/ns_netint.c: Likewise.
4161         * resolv/ns_samedomain.c: Likewise.
4162         * resolv/ns_ttl.c: Likewise.
4163         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4164         RCS ID in object file.
4165
4166         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4167         * resolv/res_mkquery.c: Likewise.
4168         * resolv/res_query.c: Likewise.
4169         * resolv/res_init.c: Likewise.
4170         (res_setoptions): Mark internal.
4171         * resolv/res_send.c: Likewise.
4172         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4173         by using poll instead.
4174         * resolv/res_comp.c: Likewise.
4175         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4176         weak alias for __dn_expand.
4177         * resolv/res_data.c: Likewise.
4178         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4179         in _res.options.  Avoids a potential security risk by avoiding a
4180         close (0).
4181         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4182         res_mkquery, res_query, res_querydomain adn res_search weak
4183         aliases for __res_mkquery, __res_query, __res_querydomain and
4184         __res_search.
4185         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4186         instead to avoid close(0).
4187         (res_init): Always use the static resolver context.
4188         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4189         alias for __res_init.
4190
4191         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4192         RES_SET_H_ERRNO and accompanying comment to...
4193         * include/resolv.h: ... here.
4194
4195         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4196         * resolv/arpa/nameser_compat.h: Likewise.
4197
4198 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4199
4200         * nss/makedb.c (main): Compare result of load_db with
4201         NSS_STATUS_SUCCESS and not 0.
4202         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4203
4204         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4205
4206 2000-07-18  Greg McGary  <greg@mcgary.org>
4207
4208         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4209         (EXTEND_BUFFER): Use it.
4210
4211 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4212
4213         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4214         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4215         __builtin_return_address.
4216         * dlfcn/dlopenold.c: Likewise.
4217         * dlfcn/dlsym.c: Likewise.
4218         * dlfcn/dlvsym.c: Likewise.
4219         * elf/dl-profstub.c: Likewise.
4220         * malloc/malloc.c: Likewise.
4221         * sysdeps/generic/machine-gmon.h: Likewise.
4222         Based on a patch by schwidefsky@de.ibm.com.
4223
4224 2000-07-18  Andreas Jaeger  <aj@suse.de>
4225
4226         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4227         NULL to elf_machine_fixup_plt t argument to silence GCC.
4228
4229         * include/string.h: Add prototype for __memchr.
4230
4231         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4232
4233         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4234         instead of memrchr.
4235
4236 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4237
4238         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4239
4240         * locale/C-ctype.c: Add initializers for gap elements.
4241         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4242         for gap elements.
4243
4244 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4245
4246         * nscd/nscd.c (print_version): Update copyright year.
4247
4248 2000-07-17  Greg McGary  <greg@mcgary.org>
4249
4250         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4251         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4252         signature argnames with angle-brackets for use as word delimiters,
4253         and to induce syntax errors for any args not handled.  Split
4254         multi-echo echoes and comment each stage.
4255         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4256         * sysdeps/unix/inet/syscalls.list: Likewise.
4257         * sysdeps/unix/mman/syscalls.list: Likewise.
4258         * sysdeps/unix/syscalls.list: Likewise.
4259         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4260         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4261         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4262         * sysdeps/unix/sysv/syscalls.list: Likewise.
4263         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4264
4265         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4266         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4267         qualifiers.  Don't check NULL-terminator of argv & envp.
4268         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4269         unbounded pointer type in word-size assertion.
4270         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4271         cases to stifle warnings.
4272
4273         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4274         _IO_file_attach.
4275         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4276
4277         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4278         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4279         ptr as __unbouned.
4280
4281         * Makerules (o-objects): Supplement with $(o-objects$o).
4282         * string/Makefile (o-objects.ob): Add variable to pull
4283         unbounded versions of memcpy, memset and memchr into libc_b.
4284
4285         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4286         rather than non-existent __ubp_memchr.
4287         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4288         (_CHECK_STRING, _CHECK_N): New macros.
4289         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4290         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4291         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4292         Add weak alias "memchr".
4293         * sysdeps/generic/memchr.c: Likewise.
4294         * sysdeps/i386/memchr.S: Likewise.
4295         * sysdeps/ia64/memchr.S: Likewise.
4296         * sysdeps/m68k/memchr.S: Likewise.
4297         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4298         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4299         * sysdeps/vax/memchr.s: Likewise.
4300
4301         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4302
4303         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4304         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4305         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4306         __BOUNDED_POINTERS__.
4307         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4308         for __BOUNDED_POINTERS__.
4309
4310 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4311
4312         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4313         field of struct __gconv_trans_data differently.  Don't pass NULL to
4314         trans_init_fct.  Simplify list append operation.
4315
4316 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4317
4318         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4319         not only those having tsearch.
4320
4321 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4322
4323         * locale/langinfo.h: Add placeholder values in enum for removed
4324         LC_CTYPE entries.
4325
4326 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4327
4328         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4329         chain if the PHDR check fails.
4330
4331 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4332
4333         * nss/getent.c (print_hosts): Make sure we always print a space
4334         between numeric addresses and hostnames.
4335
4336 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4337
4338         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4339         i.e. if n_mmaps_max>0.
4340
4341 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4342
4343         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4344         values to remove possible clash with other AI_* constants.
4345         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4346         hexadecimal constants to stress the fact they're in fact
4347         bit flags.
4348
4349 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4350
4351         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4352         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4353         instead of res_init.
4354
4355 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4356
4357         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4358         parameters of memset calls to avoid warnings.
4359
4360 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4361
4362         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4363         necessary.
4364
4365         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4366         Patch by Greg McGary <greg@mcgary.org>.
4367
4368         * io/Makefile (tests): Add tst-getcwd.
4369         * io/tst-getcwd.c: New file.
4370
4371         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4372
4373 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4374
4375         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4376         structure.
4377
4378 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4379
4380         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4381         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4382
4383 2000-07-12  H.J. Lu  <hjl@gnu.org>
4384
4385         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4386         GLIBC_2.2.
4387         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4388         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4389         (sysdep-routines): Add clone2.
4390         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4391
4392 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4393
4394         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4395         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4396
4397 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4398
4399         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4400         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4401         Change type of si_band from "int" to "long".
4402         (si_imm) [USE_GNU]: Define
4403         (si_isr) [USE_GNU]: Ditto.
4404         (ILL_BREAK) [USE_GNU]: Ditto.
4405         (FPE_DECOVF) [USE_GNU]: Ditto.
4406         (FPE_DECDIV) [USE_GNU]: Ditto.
4407         (FPE_DECERR) [USE_GNU]: Ditto.
4408         (FPE_INVASC) [USE_GNU]: Ditto.
4409         (FPE_INVDEC) [USE_GNU]: Ditto.
4410         (TRAP_BRANCH) [USE_GNU]: Ditto.
4411         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4412
4413 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4414
4415         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4416         bits/sigcontext as struct mcontext does not depend on it.
4417
4418         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4419
4420 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4421
4422         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4423
4424 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4425
4426         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4427
4428 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4429
4430         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4431
4432 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4433
4434         * intl/Makefile (test-srcs): Add tst-translit.
4435         (tests): Likewise.
4436         Add rules to build and run tst-translit.
4437         * intl/tst-translit.c: New file.
4438         * intl/tst-translit.sh: New file.
4439         * intl/translit.po: New file.
4440
4441 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4442
4443         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4444         transliteration function did its job, continue, don't stop.
4445
4446         * iconvdata/iso646.c: Little optimizations in body for conversion
4447         from UCS4.
4448
4449 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4450
4451         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4452
4453 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4454
4455         * configure.in: Check for pwd binary.
4456         * config.make.in: Add PWD_P to be subsituted.
4457         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4458
4459 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4460
4461         * iconvdata/Makefile (modules): Add GB18030.
4462         (distribute): Add gb18030.c.
4463         * iconvdata/gconv-modules: Add entries for GB18030 module.
4464         * iconvdata/gb18030.c: New file.
4465         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4466         and Wu Jian.
4467
4468 2000-07-13  Andreas Jaeger  <aj@suse.de>
4469
4470         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4471         patch.
4472
4473         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4474         * inet/getnetgrent.c (free_mem): Likewise.
4475         * misc/mntent.c (free_mem): Likewise.
4476         * nss/getXXbyYY.c (free_mem): Likewise.
4477         * nss/getXXent.c (free_mem): Likewise.
4478         * pwd/fgetpwent.c (free_mem): Likewise.
4479         * shadow/fgetspent.c (free_mem): Likewise.
4480
4481 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4482
4483         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4484         64-bit architecture correctly [PR libc/1794].
4485
4486 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4487
4488         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4489         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4490         report that we are out of memory.
4491         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4492         * elf/dl-libc.c (dlerror_run): Likewise.
4493         * elf/dl-open.c (_dl_open): Likewise.
4494         * elf/rtld.c (dl_main): Likewise.
4495         * elf/dl-error.c: Define _dl_out_of_memory.
4496         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4497         the error string.
4498         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4499         [PR libc/1813].
4500
4501         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4502
4503         * iconv/loop.c: Fix comment.
4504
4505         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4506
4507 2000-07-13  Andreas Jaeger  <aj@suse.de>
4508
4509         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4510         getcwd (NULL, size) with size > 0.
4511         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4512
4513 2000-07-13  Andreas Jaeger  <aj@suse.de>
4514
4515         * posix/Makefile: Remove build rules for libposix.
4516
4517 2000-07-13  Andreas Schwab  <schwab@suse.de>
4518
4519         * sysdeps/generic/glob.c (glob): Fix memory leak.
4520         [SHELL]: Remove reference to undefined variable `files'.
4521         Fixes PR libc/1782.
4522
4523 2000-07-13  Andreas Jaeger  <aj@suse.de>
4524
4525         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4526         functions.
4527
4528         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4529         memory if it was allocated.
4530
4531 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4532
4533         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4534         step.
4535
4536         * iconv/gconv_open.c (__gconv_open): Reapply
4537         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4538
4539                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4540
4541         * iconv/gconv_open.c: Undo last two changes for now.  They break
4542         everything.
4543
4544 2000-07-12  Andreas Jaeger  <aj@suse.de>
4545
4546         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4547         compiler.
4548         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4549         (CFLAGS-dl-cache.c): Likewise.
4550         (CFLAGS-ldconfig.c): Added, passes directory locations.
4551
4552         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4553         locate cache.
4554         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4555         (main): Use configured LIBDIR and SLIBDIR.
4556
4557 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4558
4559         * math/bits/cmathcalls.h (cimag): Add __THROW.
4560         (creal, conj): Likewise.
4561         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4562         by negative value.
4563
4564 2000-07-12  H.J. Lu  <hjl@gnu.org>
4565
4566         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4567         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4568
4569 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4570
4571         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4572         it is wrong.
4573
4574 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4575
4576         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4577
4578 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4579
4580         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4581         __modname.
4582
4583 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4584
4585         * iconv/gconv_open.c (__gconv_open): Initialize
4586         result->__steps[cnt].__data.
4587
4588 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4589
4590         * nss/getent.c (services_keys): Pass port number in network byte
4591         order in call to getservbyport.
4592
4593 2000-07-11  Andreas Jaeger  <aj@suse.de>
4594
4595         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4596         source dir.
4597         * intl/Makefile (do-gettext-test): Likewise.
4598         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4599
4600 2000-07-11  Andreas Schwab  <schwab@suse.de>
4601
4602         * Makeconfig (run-program-prefix): New rule.
4603         (built-program-cmd): Use run-program-prefix.
4604
4605 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4606
4607         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4608         and NOEXPR unconditionally available.
4609
4610 2000-07-12  Greg McGary  <greg@mcgary.org>
4611
4612         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4613         * sysdeps/posix/open64.c: Likewise.
4614         * sysdeps/generic/fegetenv.c: Likewise.
4615         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4616         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4617         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4618         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4619         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4620         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4621
4622 2000-07-11  Greg McGary  <greg@mcgary.org>
4623
4624         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4625         Add extra level of macro expansion.
4626         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4627         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4628         is available at the time `select' prototype is declared.
4629         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4630         Collect non-versioned weak aliases.  Consider only non-versioned
4631         aliases for the user-visible systemcall name.  Do checks inline with
4632         call to primitive system call.
4633         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4634         stand-alone bounds checks to suppress unused value warnings.
4635         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4636
4637 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4638
4639         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4640         file descriptor checking in SUID programs for the Hurd.
4641
4642         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4643         res_hostalias instead of __hostalias for thread-safety.
4644
4645 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4646
4647         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4648         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4649
4650 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4651
4652         * include/features.h: Include ISO C99 features if the compiler used
4653         is an ISO C99 compiler.
4654         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4655
4656 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4657
4658         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4659
4660 2000-07-10  Andreas Jaeger  <aj@suse.de>
4661
4662         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4663         it's overridden by libpthreads.
4664         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4665         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4666         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4667         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4668         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4669
4670         * malloc/Makefile: Run tst-mtrace only with shared libs.
4671
4672         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4673         with shared libs.
4674
4675 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4676
4677         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4678         that gpreg really points to the GOT section of the calling object.
4679         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4680         checking a start address of first one.
4681         Fix typos.
4682         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4683         Likewise.
4684
4685         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4686
4687 2000-07-10  Andreas Jaeger  <aj@suse.de>
4688
4689         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4690         (string_alias->strong_alias).
4691
4692 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4693
4694         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4695
4696 2000-07-07  Greg McGary  <greg@mcgary.org>
4697
4698         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4699         have no names without leading underscores.
4700
4701 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4702
4703         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4704         U007E.
4705
4706         * stdio-common/Makefile (tests): Remove tst-printf here...
4707         (tests-srcs): ...and add it here.
4708         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4709         Add rules to run tst-printf.sh.
4710         * stdio-common/tst-printf.c: Move code around so that there is really
4711         no further output where it's stated.
4712         * stdio-common/tst-printf.sh: New file.
4713
4714 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4715
4716         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4717         (do_write): Renamed from pwrite.
4718         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4719         `struct _IO_cookie_file'.
4720
4721 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4722
4723         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4724         detected.
4725         * malloc/tst-mtrace.sh: Run mtrace script.
4726
4727 2000-07-07  Greg McGary  <greg@mcgary.org>
4728
4729         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4730         Move all three components of a bounded pointer.
4731
4732 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4733
4734         * locale/programs/locale.c (write_locales): Don't simply add all
4735         directories found in the subdir, test whether at least the
4736         LC_CTYPE file is in there.
4737
4738 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4739
4740         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4741         * iconvdata/euc-kr.c: Likewise.
4742
4743         * stdio-common/vfprintf.c (process_string_arg): Check result of
4744         wcrtomb call and bail out if it failed.
4745
4746         * malloc/Makefile (test-srcs): Add tst-mtrace.
4747         (distribute): Add tst-mtrace.sh.
4748         Add rule to run tst-mtrace.sh.
4749         * malloc/tst-mtrace.c: New file.
4750         * malloc/tst-mtrace.sh: New file.
4751
4752         * include/signal.h: Declare __libc_sigaction.
4753         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4754         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4755         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4756         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4757         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4758         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4759         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4760
4761         * configure.in: Fix CFLAGS-memprofstat.c definition after
4762         2000-06-19 change.
4763         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4764
4765 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4766
4767         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4768         instead of NULL to elf_machine_fixup_plt t argument.
4769         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4770         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4771         cast.
4772
4773 2000-07-06  Andreas Jaeger  <aj@suse.de>
4774
4775         * crypt/Makefile (LDLIBS-cert): Removed.
4776         (LDLIBS-md5c-test): Removed.
4777         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4778         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4779
4780 2000-07-06  Andreas Jaeger  <aj@suse.de>
4781
4782         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4783         of the proc system is "proc".
4784
4785         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4786         thread library for static programs.
4787
4788 2000-07-06  Greg McGary  <greg@mcgary.org>
4789
4790         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4791         New macros.
4792         * sysdeps/generic/strcpy.c: Add bounds checks.
4793         * sysdeps/unix/fxstat.c: Likewise.
4794         * sysdeps/unix/xstat.c: Likewise.
4795         * sysdeps/unix/common/lxstat.c: Likewise.
4796         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4797         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4798         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4799         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4800         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4801         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4802         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4803         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4804         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4805         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4806         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4807         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4808         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4809         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4810         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4811         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4812         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4813         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4814         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4815         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4816         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4817         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4818         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4819         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4820         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4821         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4822         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4823         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4824         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4825         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4826         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4827         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4828         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4829         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4830         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4831         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4832         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4833         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4834         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4835         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4836         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4837         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4838         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4839         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4840         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4841         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4842         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4843         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4844         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4845         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4846         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4847         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4848         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4849         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4850         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4851         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4852         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4853         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4854         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4855         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4856         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4857         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4858         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4859         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4860
4861         * string/endian.h (__LONG_LONG_PAIR): New macro.
4862         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4863         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4864         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4865         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4866         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4867         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4868         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4869         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4870         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4871         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4872         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4873         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4874
4875         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4876
4877 2000-07-06  Andreas Jaeger  <aj@suse.de>
4878
4879         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4880         Initialize result.
4881
4882         * math/test-fpucw.c: Include <stdio.h> for printf.
4883
4884 2000-07-05  Greg McGary  <greg@mcgary.org>
4885
4886         * sysdeps/generic/bp-checks.h: New file.
4887         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4888         with list of #include files.
4889         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4890         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4891         Don't generate BP thunk if `V' appears in signature.
4892         Generate thunks with complete bounds checks.
4893         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4894         * sysdeps/unix/inet/syscalls.list: Likewise.
4895         * sysdeps/unix/mman/syscalls.list: Likewise.
4896         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4897         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4898         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4899         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4900
4901 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4902
4903         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4904         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4905         If mount not in the file fall back on /proc.
4906
4907         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4908         string got copied in.
4909         Patch by Solar Designer <solar@false.com>.
4910
4911 2000-07-05  Andreas Jaeger  <aj@suse.de>
4912
4913         * manual/install.texi (Installation): Update information about
4914         add-ons.
4915         (Configuring and compiling): Update for glibc 2.2.
4916
4917 2000-07-04  Andreas Jaeger  <aj@suse.de>
4918
4919         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4920         (_FPU_IEEE): Likewise.
4921
4922         * math/Makefile (tests): Add test-fpucw.
4923
4924         * math/test-fpucw.c (main): New file.
4925
4926 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4927
4928         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4929
4930         * locale/programs/ld-collate.c (collate_output): Also write out the
4931         collation sequence values and the wide character string for the
4932         collation symbol table.
4933
4934         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4935         * posix/fnmatch_loop.c: Implement collating symbol handling.
4936         * posix/tst-fnmatch.input: Add more tests, especially for collating
4937         symbol handling.
4938
4939         * posix/regex.c: Fix comment.
4940
4941 2000-07-05  Andreas Jaeger  <aj@suse.de>
4942
4943         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4944         (_FPU_GETCW): Remove extra colon.
4945         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4946
4947         * posix/fnmatch_loop.c (FCT): Only declare len if
4948         !WIDE_CHAR_VERSION to silence GCC.
4949
4950         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4951         prototype.
4952         * sysdeps/generic/strchrnul.c: Likewise.
4953         * sysdeps/generic/strlen.c: Likewise.
4954         * sysdeps/generic/strchr.c: Likewise.
4955         * sysdeps/generic/memchr.c: Likewise.
4956
4957 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4958
4959         * posix/fnmatch_loop.c: Implement equivalence class handling.
4960         * posix/tst-fnmatch.input: Add tests for equivalence class
4961         handling.
4962
4963         * posix/fnmatch_loop.c: Improve performance for single-byte
4964         character sets by not using btowc.
4965
4966         * posix/tst-fnmatch.input: Add tests for locale dependent
4967         behaviour.
4968         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4969
4970         * posix/tst-fnmatch.input: Add more test cases.
4971
4972         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4973         are not aligned to alignof(md5_uint32) do it before calling
4974         __md5_process_bytes.
4975         * crypt/md5.c: Make sure buffers are aligned.
4976         * crypt/md5.h: Likewise.
4977         Reported by Solar Designer <solar@false.com>.
4978
4979         * crypt/Makefile: Add dependencies for test programs.
4980
4981         * Rules: Define LC_ALL=C in environments of all programs we run.
4982
4983         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4984
4985 2000-07-03  H.J. Lu  <hjl@gnu.org>
4986
4987         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4988         is 2 + elem + offset, not 2 + elem + offset + 2.
4989
4990 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4991
4992         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4993         suite.
4994         * posix/Makefile (tests): Add tst-fnmatch.
4995         (tst-fnmatch-ENV): Define.
4996         * posix/tst-fnmatch.c: New file.
4997         * posix/tst-fnmatch.sh: New file.
4998
4999 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5000
5001         * locale/programs/charmap.c (charmap_read): Prepend
5002         the condition filename == NULL.
5003
5004 2000-07-03  Greg McGary  <greg@mcgary.org>
5005
5006         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5007
5008         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5009         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5010
5011         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5012         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5013         (FILEBUF_LITERAL): Add cast for CHAIN init.
5014         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5015         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5016         Revert type of `fp' to _IO_FILE*.
5017         (_IO_iter_file): Remove cast.
5018         (_IO_iter_next): Elide intermediate member reference.
5019
5020         * sysdeps/powerpc/strchr.S:  Check bounds.
5021         Wrap extern symbols in BP_SYM ().
5022
5023 2000-07-03  Andreas Jaeger  <aj@suse.de>
5024
5025         * dlfcn/Makefile (generated): New.
5026
5027 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5028
5029         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5030         (__uflow): Likewise.
5031         (__underflow): Likewise.
5032         * libio/wgenops.c (__wunderflow): Likewise.
5033         * stdio-common/tst-unbputc.c: New file.
5034         * stdio-common/tst-unbputc.sh: New file.
5035         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5036
5037         * po/en_GB.po: New file.
5038         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5039
5040 2000-07-01  Andreas Jaeger  <aj@suse.de>
5041
5042         * intl/Makefile (generated-dirs): New.
5043
5044         * elf/Makefile (generated): trusted-dirs.h is always generated,
5045         move out of build-shared condition.
5046         (generated): Merge the two entries for build-shared.
5047
5048 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5049
5050         * debug/Makefile (distribute): Add xtrace.sh.
5051
5052 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5053
5054         * version.h (VERSION): Bump to 2.1.91.
5055
5056         * configure.in: Update warning comment.  glibc should not be
5057         broken anymore.
5058
5059         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5060         ioperm.c, sys/procfs.h, and sys/io.h.
5061
5062         * sysdeps/powerpc/Dist: Add bp-asm.h.
5063
5064         * assert/Depend: Add localedata.
5065         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5066         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5067
5068         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5069         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5070         relocation address to prevent unaligned trap.
5071         Suggested by Richard Henderson <rth@cygnus.com>.
5072
5073 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5074
5075         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5076         if redirecting and either redirection is done using defines or
5077         not optimizing.
5078
5079 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5080
5081         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5082         generated expressions.
5083         Patch by Darren McClelland <dmcclell@zetec.com>.
5084
5085         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5086         since zic uses setlocale and gettext but we cannot make it use the
5087         new locale data since zic calls a shell which might not use the
5088         new libc.
5089
5090         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5091         handling the internation currency symbol.  POSIX says that the
5092         fourth character is used to separate the currency symbol from the
5093         value.  Therefore it does not have to be printed.  But we cannot
5094         remove the space if the currency symbol is printed before the
5095         number since this is what many locales expect.
5096
5097         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5098         whether this information is available.
5099
5100         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5101         buffers in case the translation is too large.  Remember allocated
5102         memory blocks in a list.
5103         (free_mem): Free memory for translations.
5104
5105         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5106
5107         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5108         information is available set the string length to zero.
5109
5110         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5111
5112 2000-06-30  Greg McGary  <greg@mcgary.org>
5113
5114         * sysdeps/powerpc/bp-asm.h: New file.
5115         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5116         Wrap extern symbols in BP_SYM ().
5117         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5118         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5119         * sysdeps/powerpc/setjmp.S: Likewise.
5120         * sysdeps/powerpc/add_n.S: Likewise.
5121         * sysdeps/powerpc/addmul_1.S: Likewise.
5122         * sysdeps/powerpc/lshift.S: Likewise.
5123         * sysdeps/powerpc/rshift.S: Likewise.
5124         * sysdeps/powerpc/mul_1.S: Likewise.
5125         * sysdeps/powerpc/sub_n.S: Likewise.
5126         * sysdeps/powerpc/submul_1.S: Likewise.
5127         * sysdeps/powerpc/strlen.S: Likewise.
5128         * sysdeps/powerpc/memset.S: Likewise.
5129         * sysdeps/powerpc/stpcpy.S: Likewise.
5130         * sysdeps/powerpc/strcmp.S: Likewise.
5131         * sysdeps/powerpc/strcpy.S: Likewise.
5132         * sysdeps/powerpc/elf/bzero.S: Likewise.
5133
5134         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5135         Line up operands column with tabs.
5136
5137 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5138
5139         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5140
5141         * sysdeps/ia64/htonl.S: New file.
5142         * sysdeps/ia64/htons.S: New file.
5143         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5144         floating point registers.
5145         Patches by Dan Pop <Dan.Pop@cern.ch>.
5146
5147 2000-06-30  Andreas Jaeger  <aj@suse.de>
5148
5149         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5150         shared libraries.
5151
5152         * io/Makefile (CFLAGS-test-lfs.c): New.
5153         (tests): Add test-lfs.
5154
5155         * io/test-lfs.c: New file.
5156
5157 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5158
5159         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5160         instruction.
5161
5162 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5163
5164         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5165
5166 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5167
5168         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5169         alias to the fstatfs call.
5170
5171         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5172         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5173
5174         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5175         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5176
5177         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5178         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5179         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5180         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5181
5182         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5183         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5184
5185         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5186         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5187
5188         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5189         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5190
5191         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5192
5193 2000-06-29  Andreas Jaeger  <aj@suse.de>
5194
5195         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5196         with syslog.
5197         (print_err_message): Likewise.
5198         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5199
5200 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5201
5202         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5203         used as words is properly aligned.
5204
5205         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5206         data files.
5207
5208 2000-06-29  Greg McGary  <greg@mcgary.org>
5209
5210         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5211         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5212         length 7..9, just in case...
5213         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5214
5215         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5216         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5217         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5218         (PUSH_SIGNAL_MASK): New macro.
5219         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5220         LEAVE is unnecessary.  Check bounds of jmp_buf.
5221         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5222         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5223         immediately before tail-call.
5224         * sysdeps/i386/setjmp.S: Likewise.
5225         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5226         * sysdeps/i386/bsd-setjmp.S: Likewise.
5227
5228 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5229
5230         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5231         versioned_symbol.
5232         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5233         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5234         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5235         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5236         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5237         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5238         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5239         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5240
5241 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5242
5243         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5244         we later need to calling free().
5245         Patch by Matt Wilson <msw@redhat.com>.
5246
5247         * stdio-common/tst-printf.c: Add test for above problem.
5248
5249 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5250
5251         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5252         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5253
5254 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5255
5256         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5257         prototype for abs().
5258         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5259
5260 2000-06-23  Andreas Jaeger  <aj@suse.de>
5261
5262         * config.h.in: Don't use regparm with bounded pointers.
5263
5264 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5265
5266         * stdlib/grouping.h: Correctly handle multibyte thousands
5267         separator and decimal point.
5268         * stdlib/stdtod.c: Likewise.
5269         * sysdeps/generic/strtol.c: Likewise.
5270
5271         * locale/categories.def: Add entries for wide character decimal point
5272         and thousands separator in numeric and monetary category.
5273
5274 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5275
5276         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5277         second definition and initialization of decimal.
5278
5279 2000-06-28  Greg McGary  <greg@mcgary.org>
5280
5281         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5282         out.
5283         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5284         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5285         in.
5286         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5287         (struct _IO_FILE_plus *).
5288         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5289         THIS, since _IO_JUMPS no longer does it implicitly.
5290         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5291         arg type as (struct _IO_FILE_plus *).
5292         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5293         arg as (_IO_strfile *).
5294         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5295         Declare 1st arg as (_IO_strfile *).
5296         * libio/fileops.c (_IO_new_file_init): Declare
5297         arg type as (struct _IO_FILE_plus *).
5298         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5299         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5300         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5301         Declare iteration pointer as (struct _IO_FILE_plus *).
5302         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5303                 (struct _IO_FILE_plus *).
5304         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5305         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5306         (_IO_check_libio): Set user-visible handles to
5307         (struct _IO_FILE_plus *).
5308         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5309         to (struct _IO_FILE_plus *).
5310
5311         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5312         whose high bound includes vtable to all functions that will use
5313         vtable.  For streambufs, pass pointer whose bounds include struct
5314         _IO_strfile.
5315         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5316         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5317         * libio/iofopen.c (_IO_new_fopen): Likewise.
5318         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5319         * libio/iofopen64.c (_IO_fopen64): Likewise.
5320         * libio/iopopen.c (_IO_new_popen): Likewise.
5321         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5322         * libio/memstream.c (open_memstream): Likewise.
5323         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5324         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5325         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5326         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5327         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5328         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5329         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5330         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5331         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5332         * stdlib/strfmon.c (__strfmon_l): Likewise.
5333         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5334         (vfprintf): Qualify computed-goto targets as unbounded.
5335
5336 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5337
5338         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5339         thousands separator correctly.
5340
5341         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5342         * stdio-common/vfwscanf.c: Likewise.
5343
5344 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5345
5346         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5347         count into signatures for most calls.
5348
5349 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5350
5351         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5352         the generic parser now.
5353
5354 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5355
5356         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5357         table entries are 32 bit on the ia64 (as specified by the ABI),
5358         not 64 bit as on the Alpha.
5359
5360         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5361         change of objects to use 32 bit hash table indices (see above).
5362
5363 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5364
5365         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5366         prototype for abs().
5367
5368 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5369
5370         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5371         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5372         may have been reached.
5373
5374 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5375
5376         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5377         symbols in multi-character weights correctly.
5378
5379         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5380         depending on whether the input string is empty or not.
5381
5382         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5383         given state and not avoiding this by modifying a local object.
5384         * wcsmbs/wcrtomb.c: Likewise.
5385
5386         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5387         object since some incomplete characters might be in there.
5388
5389         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5390         sequences with first byte 0x8e correctly.
5391
5392         * iconvdata/jis0208.h: Remove redundant test.
5393
5394 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5395
5396         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5397         Add it where it is needed now.
5398
5399         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5400         the input charset into account when generating the hash table.
5401         (allocate_arrays): Correct setting default width.  Not all empty slots
5402         in the table are filled, only those not covert explicitly by the
5403         locale description and in the charset.
5404
5405         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5406         return values from the wctrans function.
5407
5408         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5409         wide character version.
5410         For %C handling, test correct pointer variable for NULL.
5411
5412         * wcsmbs/wctob.c: Handle WEOF special.
5413
5414         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5415
5416         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5417         always-true test to avoid warning.
5418
5419 2000-06-27  Greg McGary  <greg@mcgary.org>
5420
5421         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5422         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5423         (symbol_version, default_symbol_version): Factor redundant
5424         definitions out of conditional.
5425
5426 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5427
5428         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5429         not obstack_blank.
5430
5431 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5432
5433         * include/libc-symbols.h (symbol_version): Add extra level of
5434         macro expansion.
5435         (default_symbol_version): Likewise.
5436
5437 2000-06-26  Greg McGary  <greg@mcgary.org>
5438
5439         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5440         for BP return value & push implicit struct-return pointer to
5441         __errno_location.
5442         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5443         (SYSCALL_ERROR_HANDLER): Likewise.
5444         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5445         (SYSCALL_ERROR_HANDLER): Likewise.
5446
5447         * Makeconfig: Add missing comment.
5448         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5449         BP-flavored startup object.
5450         ($(objpfx)b$(start-installed-name)): New rule.
5451         * include/libc-symbols.h (symbol_set_declare): Change type
5452         of `__start_##set' and `__stop_##set' to pointer-to-function.
5453         (symbol_set_declare): Change type of `set' to array of
5454         pointer-to-function.
5455         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5456         pointer-to-function.
5457
5458         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5459
5460         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5461         Remove clock_* and timer_* entries.
5462         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5463         arg-count with signatures.
5464
5465         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5466         Check bounds of arguments.
5467         * sysdeps/i386/addmul_1.S: Likewise.
5468         * sysdeps/i386/lshift.S: Likewise.
5469         * sysdeps/i386/mul_1.S: Likewise.
5470         * sysdeps/i386/rshift.S: Likewise.
5471         * sysdeps/i386/sub_n.S: Likewise.
5472         * sysdeps/i386/submul_1.S: Likewise.
5473         * sysdeps/i386/i586/add_n.S: Likewise.
5474         * sysdeps/i386/i586/addmul_1.S: Likewise.
5475         * sysdeps/i386/i586/lshift.S: Likewise.
5476         * sysdeps/i386/i586/rshift.S: Likewise.
5477         * sysdeps/i386/i586/sub_n.S: Likewise.
5478         * sysdeps/i386/i686/add_n.S: Likewise.
5479
5480         * sysdeps/i386/memchr.S: Likewise.
5481         * sysdeps/i386/memcmp.S: Likewise.
5482         * sysdeps/i386/rawmemchr.S: Likewise.
5483         * sysdeps/i386/i586/bzero.S: Likewise.
5484         * sysdeps/i386/i586/memcpy.S: Likewise.
5485         * sysdeps/i386/i586/mempcpy.S: Likewise.
5486         * sysdeps/i386/i586/memset.S: Likewise.
5487         * sysdeps/i386/i686/bzero.S: Likewise.
5488         * sysdeps/i386/i686/memcpy.S: Likewise.
5489         * sysdeps/i386/i686/mempcpy.S: Likewise.
5490         * sysdeps/i386/i686/memset.S: Likewise.
5491
5492         * sysdeps/i386/stpcpy.S: Likewise.
5493         * sysdeps/i386/stpncpy.S: Likewise.
5494         * sysdeps/i386/strchr.S: Likewise.
5495         * sysdeps/i386/strchrnul.S: Likewise.
5496         * sysdeps/i386/strcspn.S: Likewise.
5497         * sysdeps/i386/strpbrk.S: Likewise.
5498         * sysdeps/i386/strrchr.S: Likewise.
5499         * sysdeps/i386/strspn.S: Likewise.
5500         * sysdeps/i386/strtok.S: Likewise.
5501         * sysdeps/i386/strtok_r.S: Likewise.
5502         * sysdeps/i386/i486/strcat.S: Likewise.
5503         * sysdeps/i386/i486/strlen.S: Likewise.
5504         * sysdeps/i386/i586/strchr.S: Likewise.
5505         * sysdeps/i386/i586/strcpy.S: Likewise.
5506         * sysdeps/i386/i586/strlen.S: Likewise.
5507         * sysdeps/i386/i686/strcmp.S: Likewise.
5508         * sysdeps/i386/i686/strtok.S: Likewise.
5509         * sysdeps/i386/i686/strtok_r.S: Likewise.
5510
5511         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5512         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5513         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5514         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5515         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5516
5517         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5518         * sysdeps/i386/mul_1.S: Likewise.
5519         * sysdeps/i386/submul_1.S: Likewise.
5520         * sysdeps/i386/i586/add_n.S: Likewise.
5521         * sysdeps/i386/i586/addmul_1.S: Likewise.
5522         * sysdeps/i386/i586/lshift.S: Likewise.
5523         * sysdeps/i386/i586/mul_1.S: Likewise.
5524         * sysdeps/i386/i586/rshift.S: Likewise.
5525         * sysdeps/i386/i586/sub_n.S: Likewise.
5526         * sysdeps/i386/i586/submul_1.S: Likewise.
5527
5528 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5529
5530         * rt/Makefile (librt-routines): Add clock_nanosleep.
5531         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5532         * sysdeps/generic/clock_nanosleep.c: New file.
5533         * sysdeps/unix/clock_nanosleep.c: New file.
5534         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5535         * time/time.h: Declare clock_nanosleep.
5536
5537 2000-06-26  Greg McGary  <greg@mcgary.org>
5538
5539         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5540         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5541         (ALIGN): Cleanup surrounding conditionals.
5542
5543         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5544         Call ENTER/LEAVE macros.
5545         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5546         * sysdeps/i386/submul_1.S: Likewise.
5547
5548         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5549         syntax.  Define & use symbolic argument stack offsets.  Call
5550         ENTER/LEAVE macros.
5551         * sysdeps/i386/i586/mul_1.S: Likewise.
5552         * sysdeps/i386/i586/submul_1.S: Likewise.
5553
5554 2000-06-25  Greg McGary  <greg@mcgary.org>
5555
5556         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5557         not as bcopy.
5558
5559 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5560
5561         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5562         * iconvdata/gen-8bit-gap.sh: Likewise.
5563         * iconvdata/gen-8bit.sh: Likewise.
5564
5565         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5566
5567         * locale/programs/ld-collate.c (collate_read): Don't actually read
5568         the copy locale if we are ignoring the content.
5569
5570         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5571         unknown character.
5572
5573         * locale/programs/ld-collate.c: Correct handling of different
5574         collation sections.
5575         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5576         as extra parameter from which to copy category information.
5577         Change all callers.
5578         (load_locale): Likewise.
5579         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5580         and load_locale.
5581         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5582         * locale/programs/locfile.h: Likewise.
5583         * locale/programs/locfile-kw.gperf: Add entry for script.
5584         * locale/programs/locfile-token.h: Add tok_script.
5585
5586         * locale/programs/locale.c: Update copyright year.
5587         * locale/programs/localedef.c: Likewise.
5588
5589 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5590
5591         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5592         Jens Moeller <jens.moeller@waii.com>.
5593
5594 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5595
5596         * locale/programs/ld-name.c (name_finish): Add missing format
5597         specifier to test for name_fmt.
5598
5599         * locale/programs/ld-address.c (iso639): Correct length of string
5600         elements.
5601         (iso3166): Likewise.
5602
5603         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5604
5605         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5606         Define.
5607
5608         * elf/elf.h (NT_PRFPXREG): Define.
5609
5610 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5611
5612         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5613         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5614
5615 2000-06-23  Andreas Schwab  <schwab@suse.de>
5616
5617         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5618         with signatures.
5619
5620 2000-06-23  Andreas Jaeger  <aj@suse.de>
5621
5622         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5623
5624         * io/test-stat.c: Add copyright header, mention Maciej.
5625
5626         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5627         SYS_mincore, SYS_madvise): Added.
5628
5629         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5630         execve.
5631
5632 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5633
5634         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5635         (CFLAGS-tst_putwc.c): New definition.
5636         * libio/tst_getwc.c: New file.
5637         * libio/tst_getwc.input: New file.
5638         * libio/tst_putwc.c: New file.
5639
5640         * include/string.h: Add prototype for __strdup.
5641
5642 2000-06-22  Greg McGary  <greg@mcgary.org>
5643
5644         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5645         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5646         Fix signatures.
5647
5648 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5649
5650         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5651
5652 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5653
5654         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5655
5656 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5657
5658         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5659         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5660
5661 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5662
5663         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5664         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5665         and __S_TYPEISSHM.
5666         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5667         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5668         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5669         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5670         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5671         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5672         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5673         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5674         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5675         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5676         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5677         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5678         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5679         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5680         S_TYPEISSHM.
5681
5682 2000-06-22  Andreas Jaeger  <aj@suse.de>
5683
5684         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5685         with signatures.
5686
5687         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5688
5689         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5690
5691 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5692
5693         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5694         ahead.
5695
5696 2000-06-21  Greg McGary  <greg@mcgary.org>
5697
5698         * Makerules (elide-routines.*, elide-bp-thunks):
5699         Define unconditionally.
5700
5701 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5702
5703         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5704
5705 2000-06-21  Andreas Jaeger  <aj@suse.de>
5706
5707         * io/Makefile (tests): Add test-stat.
5708         (CFLAGS-test-stat.c): New.
5709
5710         * io/test-stat.c: New file from Maciej W. Rozycki
5711         <macro@ds2.pg.gda.pl>.
5712
5713 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5714
5715         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5716         in __rlimit_resource to make them match the kernel order.
5717         rlim_t is always 64 bit, use __rlim64_t to declare it
5718         unconditionally.
5719
5720 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5721
5722         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5723         RLIM_INFINITY before defining it to avoid clash with kernel header
5724
5725 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5726
5727         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5728
5729 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5730
5731         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5732
5733 2000-06-21  Andreas Jaeger  <aj@suse.de>
5734
5735         * stdio-common/temptest.c: Include <stdlib.h>.
5736         * stdio-common/tst-fileno.c: Likewise.
5737         * stdio-common/scanf4.c: Likewise.
5738         * stdio-common/scanf5.c: Likewise.
5739         * time/clocktest.c: Likewise.
5740         * posix/test-vfork.c: Likewise.
5741         * posix/globtest.c: Likewise.
5742         * io/test-utime.c: Likewise.
5743         * wctype/test_wcfuncs.c: Likewise.
5744         * crypt/cert.c: Likewise.
5745
5746         * stdio-common/tst-printfsz.c: Include <string.h>.
5747         * libio/tst_swscanf.c: Likewise.
5748         * libio/tst_wscanf.c: Likewise.
5749         * posix/runtests.c: Likewise.
5750         * posix/tst-getaddrinfo.c: Likewise.
5751         * posix/wordexp-test.c: Likewise.
5752         * misc/tst-efgcvt.c: Likewise.
5753
5754         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5755         * nss/test-netdb.c: Likewise.
5756
5757         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5758         supported kernel for MIPS.
5759
5760         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5761         * rt/aio_suspend.c: Likewise.
5762
5763 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5764
5765         * math/libm-test.inc: Include <string.h>.
5766
5767 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5768
5769         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5770
5771 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5772
5773         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5774         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5775
5776 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5777
5778         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5779
5780 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5781
5782         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5783
5784 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5785
5786         * locale/programs/ld-collate.c (insert_value): Now take string and
5787         length instead of struct token* parameter.  Adjust use of token.
5788         (handle_ellipsis): Likewise.
5789         (collate_read): Allow <Uxxxx> names and transform them into names
5790         to be passed to insert_value and handle_ellipsis.
5791
5792         * locale/programs/ld-ctype.c (uninames): New array with names of
5793         digits in <Uxxxxxxxx> format.
5794         (ctype_finish): Correct search for space character value.  Likewise
5795         for default outdigits values.
5796
5797 2000-06-20  Greg McGary  <greg@mcgary.org>
5798
5799         * Makerules (objects): Add BP thunks.
5800
5801 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5802
5803         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5804         in width definitions.
5805
5806 2000-06-20  Andreas Jaeger  <aj@suse.de>
5807
5808         * sysdeps/mips/fpu/libm-test-ulps: New file.
5809
5810         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5811         first.
5812
5813         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5814
5815         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5816
5817 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5818
5819         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5820         change in gconv_builtin.h.
5821
5822         * malloc/Makefile: Change all references to memprof into memusage.
5823         * malloc/memprof.c: Rename to...
5824         * malloc/memusage.c: ...this.  New file.
5825         * malloc/memprof.sh: Rename to...
5826         * malloc/memusage.sh: ...this.  New file.
5827         * malloc/memprofstat.c: Rename to...
5828         * malloc/memusagestat.c: ...this.  New file.
5829         * sysdeps/alpha/memprof.h: Rename to..
5830         * sysdeps/alpha/memusage.h: ...this.  New file.
5831         * sysdeps/arm/memprof.h: Rename to..
5832         * sysdeps/arm/memusage.h: ...this.  New file.
5833         * sysdeps/generic/memprof.h: Rename to..
5834         * sysdeps/generic/memusage.h: ...this.  New file.
5835         * sysdeps/i386/memprof.h: Rename to..
5836         * sysdeps/i386/memusage.h: ...this.  New file.
5837         * sysdeps/ia64/memprof.h: Rename to..
5838         * sysdeps/ia64/memusage.h: ...this.  New file.
5839         * sysdeps/m68k/memprof.h: Rename to..
5840         * sysdeps/m68k/memusage.h: ...this.  New file.
5841         * sysdeps/mips/memprof.h: Rename to..
5842         * sysdeps/mips/memusage.h: ...this.  New file.
5843         * sysdeps/powerpc/memprof.h: Rename to..
5844         * sysdeps/powerpc/memusage.h: ...this.  New file.
5845         * sysdeps/sparc/memprof.h: Rename to..
5846         * sysdeps/sparc/memusage.h: ...this.  New file.
5847         * sysdeps/sh/memprof.h: Rename to..
5848         * sysdeps/sh/memusage.h: ...this.  New file.
5849
5850         * elf/sprof.c (print_version): Update year.
5851
5852         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5853         table entry values.  Use D_PTR.
5854         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5855         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5856
5857 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5858
5859         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5860         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5861         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5862         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5863
5864 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5865
5866         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5867
5868 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5869
5870         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5871         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5872         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5873
5874         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5875
5876         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5877         kernel change.
5878
5879         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5880         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5881         structure.
5882         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5883         implementation.
5884
5885 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5886
5887         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5888
5889 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5890
5891         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5892
5893 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5894
5895         * iconv/gconv_int.h (strict gconv_module): Remove all members
5896         associated with regular expressions.  Use a simple string as the
5897         from name.
5898         * iconv/gconv_db.c: Remove code handling regular expressions.
5899         * iconv/gconv_conf.c: Likewise.
5900         * iconv/iconv_prog.c: Likewise.
5901         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5902
5903         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5904         General namespace cleanup.
5905         (struct __gconv_trans_data): Add next field.
5906         (struct __gconv_step_data): Make __trans a pointer.
5907         * iconv/gconv_conf.c: Split out code to find gconv directories from
5908         __gconv_read_conf in new functions.
5909         * iconv/gconv_int.h: Define new data structure and declare new
5910         functions for handling of gconv directory list.
5911         * iconv/gconv_open.c: Allow more than one error handling step being
5912         used.  Call function to load error handling module if it is none
5913         of the builtin transformations.
5914         * iconv/gconv_close.c: Add code to free transliteration data.
5915         * iconv/gconv_trans.c: Add functions to load and unload modules
5916         implementing transliteration etc.
5917         * iconv/skeleton.c: Call all context functions now that more than
5918         one module is allowed.
5919         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5920         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5921         where the full error handling using transliteration is needed.
5922         * iconvdata/8bit-gap.c: Likewise.
5923         * iconvdata/8bit-generic.c: Likewise.
5924         * iconvdata/ansi_x3.110.c: Likewise.
5925         * iconvdata/big5.c: Likewise.
5926         * iconvdata/big5hkscs.c: Likewise.
5927         * iconvdata/euc-cn.c: Likewise.
5928         * iconvdata/euc-jp.c: Likewise.
5929         * iconvdata/euc-kr.c: Likewise.
5930         * iconvdata/euc-tw.c: Likewise.
5931         * iconvdata/gbgbk.c: Likewise.
5932         * iconvdata/gbk.c: Likewise.
5933         * iconvdata/iso-2022-cn.c: Likewise.
5934         * iconvdata/iso-2022-jp.c: Likewise.
5935         * iconvdata/iso-2022-kr.c: Likewise.
5936         * iconvdata/iso646.c: Likewise.
5937         * iconvdata/iso8859-1.c: Likewise.
5938         * iconvdata/iso_6937-2.c: Likewise.
5939         * iconvdata/iso_6937.c: Likewise.
5940         * iconvdata/johab.c: Likewise.
5941         * iconvdata/sjis.c: Likewise.
5942         * iconvdata/t.61.c: Likewise.
5943         * iconvdata/uhc.c: Likewise.
5944         * iconvdata/unicode.c: Likewise.
5945         * iconvdata/utf-16.c: Likewise.
5946         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5947         structure correctly after last change.
5948         * wcsmbs/btowc.c: Likewise.
5949         * wcsmbs/mbrtowc.c: Likewise.
5950         * wcsmbs/mbsnrtowcs.c: Likewise.
5951         * wcsmbs/mbsrtowcs.c: Likewise.
5952         * wcsmbs/wcrtomb.c: Likewise.
5953         * wcsmbs/wcsnrtombs.c: Likewise.
5954         * wcsmbs/wcsrtombs.c: Likewise.
5955         * wcsmbs/wctob.c: Likewise.
5956
5957         * localedata/Makefile: Set -Wno-format for some files since gcc does
5958         not know all the format specifiers.
5959
5960 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5961
5962         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5963         unneeded code.
5964         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5965
5966 2000-06-18  Andreas Jaeger  <aj@suse.de>
5967
5968         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5969         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5970
5971 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5972
5973         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5974         LINUX_LINK_MAX.
5975         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5976
5977         * locale/programs/ld-ctype.c (ctype_output): Really write out
5978         mboutdigits information.
5979         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5980         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5981         * localedata/tests/trans.def: Add outdigit information.
5982
5983         * localedata/tst-mbswcs3.c: Remove comment.
5984
5985         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5986         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5987         * libio/tst_wprintf.c (main): Add test for I flag.
5988
5989         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5990         * locale/langinfo.h: Add entries for translit_ignore information.
5991         * locale/categories.def: Add entries for new LC_CTYPE elements.
5992         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5993         pointer instead of "" where possible.
5994         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5995         * intl/Depend: Add localedata.
5996         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5997         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5998
5999 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6000
6001         * locale/langinfo.h: Add entries for default_missing information.
6002         * locale/C-ctype.c: Add initializers for new fields.
6003         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6004         information.
6005         * locale/categories.h: Add entries for all LC_CTYPE values.
6006         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6007         information.
6008
6009         * localedata/tst-trans.c: Write out an error message if class is
6010         not found.
6011
6012         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6013         * iconv/gconv_open.c: Remove error handling specification from `from'
6014         character set name.
6015         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6016         new parameter to always enable transliteration.
6017         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6018         change.
6019         (struct locale_data): Add new members use_translit and options.
6020         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6021         character set name contained modifier TRANSLIT.
6022         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6023         and options fields.
6024         (_nl_unload_locale): Free options string if necessary.
6025         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6026         the locale names suggested this.
6027         * locale/C-address.c: Add two new initialilzers to adjust data
6028         structure for new format.
6029         * locale/C-collate.c: Likewise.
6030         * locale/C-ctype.c: Likewise.
6031         * locale/C-identification.c: Likewise.
6032         * locale/C-measurement.c: Likewise.
6033         * locale/C-messages.c: Likewise.
6034         * locale/C-monetary.c: Likewise.
6035         * locale/C-name.c: Likewise.
6036         * locale/C-numeric.c: Likewise.
6037         * locale/C-paper.c: Likewise.
6038         * locale/C-telephone.c: Likewise.
6039         * locale/C-time.c: Likewise.
6040
6041         * locale/setlocale.c: Add some more __builtin_expect.
6042
6043 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6044
6045         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6046         unsigned char **.
6047         (__gconv_init_fct): Remove two parameters.
6048         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6049         gconv_transliterate.  Remove two parameters.
6050         Change prototypes of builtin functions according to __gconv_fct change.
6051         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6052         != NULL only during error handling.  Stop in this case after the
6053         conversion.
6054         * iconv/gconv_trans.c: Replace with real implementation for
6055         __gconv_transliterate.
6056         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6057         * iconv/gconv.c: Change calls to downstream functions once again.
6058         Use NULL for the fifth parameter instead of pointer to output buffer.
6059         * libio/iofwide.c: Likewise.
6060         * wcsmbs/btowc.c: Likewise.
6061         * wcsmbs/mbrtowc.c: Likewise.
6062         * wcsmbs/mbsnrtowcs.c: Likewise.
6063         * wcsmbs/mbsrtowcs.c: Likewise.
6064         * wcsmbs/wcrtomb.c: Likewise.
6065         * wcsmbs/wcsnrtombs.c: Likewise.
6066         * wcsmbs/wcsrtombs.c: Likewise.
6067         * wcsmbs/wctob.c: Likewise.
6068         * iconv/gconv_simple.c: Remove two parameters from error handling
6069         function call.
6070         * iconvdata/8bit-gap.c: Likewise.
6071         * iconvdata/8bit-generic.c: Likewise.
6072         * iconvdata/ansi_x3.110.c: Likewise.
6073         * iconvdata/big5.c: Likewise.
6074         * iconvdata/big5hkscs.c: Likewise.
6075         * iconvdata/euc-cn.c: Likewise.
6076         * iconvdata/euc-jp.c: Likewise.
6077         * iconvdata/euc-kr.c: Likewise.
6078         * iconvdata/euc-tw.c: Likewise.
6079         * iconvdata/gbgbk.c: Likewise.
6080         * iconvdata/gbk.c: Likewise.
6081         * iconvdata/iso-2022-cn.c: Likewise.
6082         * iconvdata/iso-2022-jp.c: Likewise.
6083         * iconvdata/iso-2022-kr.c: Likewise.
6084         * iconvdata/iso646.c: Likewise.
6085         * iconvdata/iso8859-1.c: Likewise.
6086         * iconvdata/iso_6937-2.c: Likewise.
6087         * iconvdata/iso_6937.c: Likewise.
6088         * iconvdata/johab.c: Likewise.
6089         * iconvdata/sjis.c: Likewise.
6090         * iconvdata/t.61.c: Likewise.
6091         * iconvdata/uhc.c: Likewise.
6092         * iconvdata/unicode.c: Likewise.
6093         * iconvdata/utf-16.c: Likewise.
6094
6095 2000-06-15  Greg McGary  <greg@mcgary.org>
6096
6097         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6098         of callnum assignment.  Tolerate callnum expressions containing
6099         parens.
6100
6101 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6102
6103         * login/Makefile (utmpd): Remove rule to build utmpd.
6104
6105         * csu/Versions: Move libgcc frame handling functions from here...
6106         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6107         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6108         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6109         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6110         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6111         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6112         New file.
6113         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6114
6115         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6116
6117         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6118
6119 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6120
6121         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6122         compatibility.
6123         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6124         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6125         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6126         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6127
6128 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6129
6130         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6131         defined, terminate quotes and read them after the comment char.
6132         * configure.in (HAVE_SECTION_QUOTES): Test whether
6133         __attribute__((section ("x"))) puts quotes around x or not.
6134         * config.h.in (HAVE_SECTION_QUOTES): Add.
6135         * configure: Rebuilt.
6136
6137 2000-06-14  Andreas Jaeger  <aj@suse.de>
6138
6139         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6140         depending on the configure option --sysconfdir.
6141         Closes PR libc/1762.
6142         Patch by Andreas Schwab <schwab@suse.de>.
6143
6144         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6145         entry point.
6146         Reported by Jim Pick <jim@jimpick.com>.
6147
6148 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6149
6150         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6151         crashing the application.  Emit some simple error message.
6152         Reported by mju@panasas.com [PR libc/1769].
6153
6154 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6155
6156         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6157
6158         * crypt/Makefile (distribute): Add md5.h.
6159
6160         * Makefile (distribute): Add include/shlib-compat.h.
6161
6162         * Make-dist: Search for tests also in sysdeps hierachy.
6163
6164         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6165         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6166
6167         * sysdeps/sparc/Subdirs: New file.
6168
6169         * locale/Makefile (distribute): Add weightwc.h and
6170         programs/localedef.h.
6171
6172         * time/Makefile (distribute): Add datemsk.
6173
6174         * sysdeps/ia64/Dist: Add softpipe.h.
6175
6176         * sysdeps/unix/sysv/aix/Dist: New file.
6177
6178         * posix/setpgrp.c: Moved to...
6179         * sysdeps/generic/setpgrp.c: ...here.  New file.
6180         * io/mknod.c: Moved to...
6181         * sysdeps/generic/mknod.c: ...here.  New file.
6182
6183         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6184
6185         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6186
6187         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6188
6189         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6190         gprsave0.S, gprrest1.S, and gprrest0.S.
6191
6192         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6193
6194         * posix/Makefile (routines): Add spawnattr_getsigmask,
6195         spawnattr_getschedpolicy, spawnattr_getschedparam,
6196         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6197         spawnattr_setschedparam.
6198         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6199         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6200         posix_spawnattr_setschedparam.
6201
6202         * posix/spawnattr_setschedparam.c: Fix typo.
6203
6204         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6205         Correct typo.
6206
6207         * login/programs/utmpd.c: Removed.
6208         * login/programs/utmpd.h: Removed.
6209         * login/programs/utmpd-private.h: Removed.
6210
6211         * Makefile (distribute): Add include/db_185.h and include/db.h.
6212
6213         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6214         iso-ir-165.h.
6215
6216         * elf/Makefile (distribute): Add missing files.
6217
6218         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6219         * elf/eval.c: Moved to...
6220         * dlfcn/eval.c: ...here.  New file.
6221
6222         * Makefile (distribute): Also distribute ChangeLog.1?.
6223
6224         * Make-dist (+tsrcs): Remove .args handling here as well.
6225
6226         * rt/Makefile (tests): Add tst-timer.
6227         * sysdeps/generic/tst-timer.c: New file.
6228
6229         * Makerules (sources): Don't add BP sources here.
6230
6231         * login/Makefile (distribute): Remove xtmp.h.
6232
6233         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6234         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6235
6236 2000-06-13  Andreas Jaeger  <aj@suse.de>
6237
6238         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6239         Patch by Ralf Baechle <ralf@gnu.org>.
6240
6241 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6242
6243         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6244         for mincore syscall.
6245
6246         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6247         __BOUNDED_POINTERS__ is not defined.
6248
6249 2000-06-07  Greg McGary  <greg@mcgary.org>
6250
6251         * sysdeps/generic/bp-sym.h: New file.
6252         * sysdeps/generic/bp-start.h: New file.
6253         * sysdeps/i386/elf/start.S: Designate BP symbols.
6254         * sysdeps/generic/libc-start.c: Wrap bounds around
6255         argv & envp and each of their string members.
6256
6257 2000-06-07  Greg McGary  <greg@mcgary.org>
6258
6259         * sysdeps/unix/make-syscalls.sh: Add comments to
6260         output that aid debugging & comprehension.
6261         Map simple syscall signatures to number of args.
6262         Generate BP syscall thunk definitions.
6263         * sysdeps/generic/bp-thunks.h: New file.
6264         * sysdeps/unix/syscalls.list: Replace arg-count with
6265         simple return+arg signature.
6266         * sysdeps/unix/common/syscalls.list: Likewise.
6267         * sysdeps/unix/inet/syscalls.list: Likewise.
6268         * sysdeps/unix/mman/syscalls.list: Likewise.
6269         * sysdeps/unix/sysv/syscalls.list: Likewise.
6270         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6271         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6272
6273 2000-06-07  Greg McGary  <greg@mcgary.org>
6274
6275         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6276         for all files *.[cS].
6277         (CFLAGS-.ob): Don't optimize sibling calls.
6278         (bppfx): New variable.
6279         * Makerules (elide-bp-thunks): New variable.
6280         (elide-routines.*): Elide BP-* files for all but *.ob.
6281         (sources): Include bp-thunks.
6282
6283 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6284
6285         * iconv/gconv_simple.c: Remove unnecessary prototype.
6286
6287         * iconv/gconv_trans.c: Pretty print.
6288
6289         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6290
6291         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6292         minimal kernel versions.  Add information about IA-64 kernel.
6293
6294         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6295         specific minimal supported kernel versions to be specified.
6296
6297         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6298         step data structure.
6299         * wcsmbs/btowc.c: Likewise.
6300         * wcsmbs/mbrtowc.c: Likewise.
6301         * wcsmbs/mbsnrtowcs.c: Likewise.
6302         * wcsmbs/mbsrtowcs.c: Likewise.
6303         * wcsmbs/wcrtomb.c: Likewise.
6304         * wcsmbs/wcsnrtombs.c: Likewise.
6305         * wcsmbs/wcsrtombs.c: Likewise.
6306         * wcsmbs/wctob.c: Likewise.
6307
6308         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6309         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6310
6311         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6312
6313         * misc/sys/cdefs.h: Remove one more __P.
6314
6315         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6316         Reported by HJ Lu.
6317
6318         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6319         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6320         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6321
6322 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6323             Yutaka Niibe  <gniibe@chroot.org>
6324
6325         * configure.in: Add machine sh3, sh4.
6326         * elf/elf.h: Add SH specific declarations of relocations.
6327         * shlib-versions: Add sh*-*-linux* cases.
6328
6329 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6330
6331         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6332         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6333         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6334         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6335         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6336         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6337
6338         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6339         instead of KERNEL_MATH_EMULATION.
6340         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6341         KERNEL_MATH_EMULATION.
6342
6343         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6344         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6345         * sysdeps/sh/dl-machine.h: ...here.  New file.
6346         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6347         and include generic SH version.
6348         * sysdeps/sh/sh3/bits/endian.h: Move to...
6349         * sysdeps/sh/bits/endian.h: ...here.  New file.
6350         * sysdeps/sh/sh4/bits/endian.h: Removed.
6351         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6352         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6353         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6354
6355         * include/libc-symbols.h (link_warning): Work around a change in
6356         GAS which warns about changing section attributes.
6357         Proposed by Nick Clifton <nickc@redhat.com>.
6358
6359 2000-06-12  H.J. Lu  <hjl@gnu.org>
6360
6361         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6362
6363 2000-06-11  H.J. Lu  <hjl@gnu.org>
6364
6365         * sysdeps/i386/fpu/Versions: New file.
6366
6367 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6368
6369         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6370         parameters.
6371         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6372         exists.
6373
6374 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6375
6376         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6377         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6378         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6379
6380         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6381         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6382         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6383
6384 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6385             Yutaka Niibe  <gniibe@chroot.org>
6386
6387         * sysdeps/sh/Dist: New file.
6388         * sysdeps/sh/Implies: New file.
6389         * sysdeps/sh/elf/initfini.c: New file.
6390         * sysdeps/sh/gmp-mparam.h: New file.
6391         * sysdeps/sh/init-first.c: New file.
6392         * sysdeps/sh/machine-gmon.h: New file.
6393         * sysdeps/sh/memcpy.S: New file.
6394         * sysdeps/sh/memprof.h: New file.
6395         * sysdeps/sh/memset.S: New file.
6396         * sysdeps/sh/sh3/__longjmp.S: New file.
6397         * sysdeps/sh/sh3/bits/endian.h: New file.
6398         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6399         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6400         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6401         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6402         * sysdeps/sh/sh3/dl-machine.h: New file.
6403         * sysdeps/sh/sh3/setjmp.S: New file.
6404         * sysdeps/sh/sh4/__longjmp.S: New file.
6405         * sysdeps/sh/sh4/bits/endian.h: New file.
6406         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6407         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6408         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6409         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6410         * sysdeps/sh/sh4/dl-machine.h: New file.
6411         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6412         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6413         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6414         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6415         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6416         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6417         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6418         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6419         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6420         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6421         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6422         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6423         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6424         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6425         * sysdeps/sh/sh4/setjmp.S: New file.
6426         * sysdeps/sh/elf/start.S: New file.
6427         * sysdeps/sh/sys/ucontext.h: New file.
6428         * sysdeps/sh/strlen.S: New file.
6429         * sysdeps/sh/sysdep.h: New file.
6430         * sysdeps/unix/sh/sysdep.S: New file.
6431         * sysdeps/unix/sh/sysdep.h: New file.
6432         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6433         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6434         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6435         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6436         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6437         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6438         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6439         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6440         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6441         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6442         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6443         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6444         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6445         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6446         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6447         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6448         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6449         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6450         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6451         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6452         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6453         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6454         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6455         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6456         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6457         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6458         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6459         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6460         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6461         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6462         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6463         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6464         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6465         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6466         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6467         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6468         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6469         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6470         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6471         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6472         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6473         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6474         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6475         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6476         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6477         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6478         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6479         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6480         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6481         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6482
6483 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6484
6485         * Rules (%.out): Define GCONV_PATH in the environment.
6486         * assert/Depend: New file.
6487         * iconvdata/Depend: New file.
6488         * intl/Depend: New file.
6489         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6490         * intl/tst-gettext.sh: Likewise.
6491         * iconv/Makefile (routines): Add gconv_trans.
6492         * iconv/gconv_trans.c: New file.
6493         * iconv/gconv.h (struct __gconv_trans_data): New type.
6494         (__gconv_fct): New parameter with starting position in output buffer.
6495         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6496         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6497         (struct __gconv_step): Add new member __trans.
6498         * iconv/gconv_int.h: Pretty print prototypes.
6499         (gconv_transliterate): New prototype.
6500         (__BUILTIN_TRANS): Update for new conversion function interface.
6501         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6502         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6503         in names, find appropriate function, and install in the conversion
6504         steps it can be used.
6505         * iconv/skeleton.c: Add additional parameter for beginning of output
6506         buffer.  Change calls of downstream functions.
6507         * iconv/loop.c: Change loop function interface completely.  Pass in
6508         step and step_data structure.  Remove optimization for BODY with
6509         NEED_LENGTH_TEST == 0.
6510         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6511         appropriate error handling code to use transliteration steps.  Remove
6512         optimization for BODY with NEED_LENGTH_TEST == 0.
6513         * iconvdata/8bit-gap.c: Likewise.
6514         * iconvdata/8bit-generic.c: Likewise.
6515         * iconvdata/ansi_x3.110.c: Likewise.
6516         * iconvdata/big5.c: Likewise.
6517         * iconvdata/big5hkscs.c: Likewise.
6518         * iconvdata/euc-cn.c: Likewise.
6519         * iconvdata/euc-jp.c: Likewise.
6520         * iconvdata/euc-kr.c: Likewise.
6521         * iconvdata/euc-tw.c: Likewise.
6522         * iconvdata/gbgbk.c: Likewise.
6523         * iconvdata/gbk.c: Likewise.
6524         * iconvdata/iso-2022-cn.c: Likewise.
6525         * iconvdata/iso-2022-jp.c: Likewise.
6526         * iconvdata/iso-2022-kr.c: Likewise.
6527         * iconvdata/iso646.c: Likewise.
6528         * iconvdata/iso8859-1.c: Likewise.
6529         * iconvdata/iso_6937-2.c: Likewise.
6530         * iconvdata/iso_6937.c: Likewise.
6531         * iconvdata/johab.c: Likewise.
6532         * iconvdata/sjis.c: Likewise.
6533         * iconvdata/t.61.c: Likewise.
6534         * iconvdata/uhc.c: Likewise.
6535         * iconvdata/unicode.c: Likewise.
6536         * iconvdata/utf-16.c: Likewise.
6537         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6538         DL_CALL_FCT.
6539         * wcsmbs/btowc.c: Likewise.
6540         * wcsmbs/mbrtowc.c: Likewise.
6541         * wcsmbs/mbsnrtowcs.c: Likewise.
6542         * wcsmbs/mbsrtowcs.c: Likewise.
6543         * wcsmbs/wcrtomb.c: Likewise.
6544         * wcsmbs/wcsnrtombs.c: Likewise.
6545         * wcsmbs/wcsrtombs.c: Likewise.
6546         * wcsmbs/wctob.c: Likewise.
6547
6548 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6549
6550         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6551         other header files.  Mention about 128-byte cache line sizes.
6552         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6553         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6554         for current calling sequence.
6555         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6556
6557         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6558         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6559
6560         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6561         and setrlimit syscalls for backwards compatibility.
6562
6563 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6564
6565         * iconv/skeleton.c:  Rename converted written to correcter name
6566         irreversible.
6567         * iconv/gconv.c: Rename converted variable to correcter name
6568         irreversible.
6569         * iconv/gconv_int.h: Likewise.
6570         * iconv/gconv_simple.c: Likewise.
6571         * iconv/iconv.c: Likewise.
6572         * iconv/loop.c: Likewise.
6573         * iconvdata/8bit-gap.c: Likewise.
6574         * iconvdata/8bit-generic.c: Likewise.
6575         * iconvdata/ansi_x3.110.c: Likewise.
6576         * iconvdata/big5.c: Likewise.
6577         * iconvdata/big5hkscs.c: Likewise.
6578         * iconvdata/euc-cn.c: Likewise.
6579         * iconvdata/euc-jp.c: Likewise.
6580         * iconvdata/euc-kr.c: Likewise.
6581         * iconvdata/gbgbk.c: Likewise.
6582         * iconvdata/gbk.c: Likewise.
6583         * iconvdata/iso-2022-cn.c: Likewise.
6584         * iconvdata/iso-2022-jp.c: Likewise.
6585         * iconvdata/iso-2022-kr.c: Likewise.
6586         * iconvdata/iso646.c: Likewise.
6587         * iconvdata/iso8859-1.c: Likewise.
6588         * iconvdata/iso_6937-2.c: Likewise.
6589         * iconvdata/iso_6937.c: Likewise.
6590         * iconvdata/johab.c: Likewise.
6591         * iconvdata/sjis.c: Likewise.
6592         * iconvdata/t.61.c: Likewise.
6593         * iconvdata/uhc.c: Likewise.
6594         * iconvdata/unicode.c: Likewise.
6595         * iconvdata/utf-16.c: Likewise.
6596
6597         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6598         __cmsg_data field with __extension__.
6599
6600 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6601
6602         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6603
6604 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6605
6606         * iconv/gconv_simple.c: Fix various small bugs in several
6607         functions.
6608
6609         * iconv/loop.c: Fix comment.
6610
6611 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6612
6613         * elf/link.h: Remove libc internal declarations.
6614         * include/link.h: Move them here.
6615
6616 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6617
6618         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6619         Patch by Dan Pop <Dan.Pop@cern.ch>.
6620
6621         Rewrite error message handling.
6622         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6623         _dl_catch_error.
6624         * elf/dl-error (struct catch): Add objname member.
6625         (_dl_signal_error): Take new parameter with object name.  When
6626         passing message on simply store object name and duplicate error
6627         message.
6628         (_dl_catch_error): Take new parameter.  Store object name in the
6629         place pointed to.
6630         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6631         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6632         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6633         (dlerror): Add objname to asprintf() parameters.
6634         (_dl_error_run): Pass new parameter to _dl_catch_error.
6635         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6636         * elf/dl-open.c (_dl_open): Likewise.
6637         * elf/rtld.c (dl_main): Likewise.
6638         * elf/dl-close.c: Mark error messages with N_().
6639         * elf/dl-deps.c: Likewise.
6640         * elf/dl-error.c: Likewise.
6641         * elf/dl-load.c: Likewise.
6642         * elf/dl-open.c: Likewise.
6643         * elf/dl-reloc.c: Likewise.
6644         * elf/dl-support.c: Likewise.
6645         * elf/dl-sym.c: Likewise.
6646         * elf/dl-version.c: Likewise.
6647         * elf/dl-lookup.c: Add comments about problems with error message
6648         translations.
6649         * elf/dl-reloc.c: Likewise.
6650         * elf/dl-version.c: Likewise.
6651
6652 2000-06-09  H.J. Lu  <hjl@gnu.org>
6653
6654         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6655         after freeing it.
6656
6657         * dlfcn/Makefile (distribute): Add failtestmod.c.
6658         (tests): Add failtest.
6659         Add rules to build and run failtest.
6660         * dlfcn/failtest.c: New file.
6661         * dlfcn/failtestmod.c: New file.
6662
6663 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6664
6665         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6666         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6667         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6668         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6669         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6670
6671 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6672
6673         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6674         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6675
6676 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6677             Ulrich Drepper  <drepper@redhat.com>
6678
6679         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6680         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6681         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6682         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6683         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6684         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6685
6686 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6687
6688         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6689         to find correct mount point despite wrong information from the
6690         kernel.
6691
6692 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6693
6694         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6695         the address of a symbol so function pointers are handled properly.
6696
6697 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6698
6699         * sysdeps/i386/Dist: Add bp-asm.h.
6700
6701         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6702         defaultdir variable instead of "/var/shm" everywhere.
6703         (defaultdir): Change to /dev/shm/.
6704
6705 2000-06-08  Greg McGary  <greg@mcgary.org>
6706
6707         * sysdeps/i386/bp-asm.h: New file.
6708         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6709         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6710         frame-pointer chain when debugging.
6711         * sysdeps/i386/add_n.S: Likewise.
6712         * sysdeps/i386/addmul_1.S: Likewise.
6713         * sysdeps/i386/lshift.S: Likewise.
6714         * sysdeps/i386/memchr.S: Likewise.
6715         * sysdeps/i386/memcmp.S: Likewise.
6716         * sysdeps/i386/mul_1.S: Likewise.
6717         * sysdeps/i386/rawmemchr.S: Likewise.
6718         * sysdeps/i386/rshift.S: Likewise.
6719         * sysdeps/i386/stpcpy.S: Likewise.
6720         * sysdeps/i386/stpncpy.S: Likewise.
6721         * sysdeps/i386/strchr.S: Likewise.
6722         * sysdeps/i386/strchrnul.S: Likewise.
6723         * sysdeps/i386/strcspn.S: Likewise.
6724         * sysdeps/i386/strpbrk.S: Likewise.
6725         * sysdeps/i386/strrchr.S: Likewise.
6726         * sysdeps/i386/strspn.S: Likewise.
6727         * sysdeps/i386/strtok.S: Likewise.
6728         * sysdeps/i386/sub_n.S: Likewise.
6729         * sysdeps/i386/submul_1.S: Likewise.
6730         * sysdeps/i386/elf/setjmp.S: Likewise.
6731         * sysdeps/i386/i486/strcat.S: Likewise.
6732         * sysdeps/i386/i486/strlen.S: Likewise.
6733         * sysdeps/i386/i586/add_n.S: Likewise.
6734         * sysdeps/i386/i586/lshift.S: Likewise.
6735         * sysdeps/i386/i586/memcpy.S: Likewise.
6736         * sysdeps/i386/i586/memset.S: Likewise.
6737         * sysdeps/i386/i586/rshift.S: Likewise.
6738         * sysdeps/i386/i586/strchr.S: Likewise.
6739         * sysdeps/i386/i586/strcpy.S: Likewise.
6740         * sysdeps/i386/i586/strlen.S: Likewise.
6741         * sysdeps/i386/i586/sub_n.S: Likewise.
6742         * sysdeps/i386/i686/add_n.S: Likewise.
6743         * sysdeps/i386/i686/memcpy.S: Likewise.
6744         * sysdeps/i386/i686/mempcpy.S: Likewise.
6745         * sysdeps/i386/i686/memset.S: Likewise.
6746         * sysdeps/i386/i686/strcmp.S: Likewise.
6747
6748 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6749
6750         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6751
6752         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6753         256 and don't use OPEN_MAX.
6754
6755         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6756         use it instead of LINK_MAX.
6757         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6758
6759 2000-06-08  Andreas Jaeger  <aj@suse.de>
6760
6761         * libio/genops.c (_IO_list_lock): Only compile body if we're
6762         thread safe.
6763         (_IO_list_unlock): Likewise.
6764         (_IO_list_resetlock): Likewise.
6765
6766 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6767
6768         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6769         unless user defined it.
6770
6771         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6772         if not defined by the user.
6773
6774         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6775         * libio/iofwrite.c (_IO_fwrite): Likewise.
6776
6777         * time/time.h: Add missing __THROW for clock_getcpuclockid
6778         prototype.
6779
6780         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6781         * include/elf.h: Include also <dl-dtprocnum.h>.
6782         * elf/dl-deps.c: Likewise.
6783         * elf/dl-lookup.c: Likewise.
6784         * elf/dl-runtime.c: Likewise.
6785         * elf/dl-version.c: Likewise.
6786         * elf/do-rel.h: Likewise.
6787         * elf/dynamic-link.h: Likewise.
6788         * elf/link.h: Likewise.
6789         * elf/rtld.c: Likewise.
6790         * sysdeps/generic/dl-dtprocnum.h: New file.
6791         * sysdeps/ia64/dl-dtprocnum.h: New file.
6792         * sysdeps/mips/dl-dtprocnum.h: New file.
6793         * sysdeps/sparc/dl-dtprocnum.h: New file.
6794
6795         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6796
6797         * elf/do-lookup.h: Add some __builtin_expect.
6798
6799         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6800
6801         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6802         (_dl_dynamic_weak): New variable.
6803         * elf/dl-support.c: Likewise.
6804         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6805         * elf/do-lookup.h: If we find a weak definition treat it like a
6806         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6807         case treat it like before.
6808
6809         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6810         is in main program.
6811         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6812
6813         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6814         using l_map_start and l_map_end.
6815
6816         * elf/dl-version.c: Add __builtin_expect in many places.
6817
6818         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6819         Update.
6820
6821 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6822
6823         Lock for stdio stream list becomes global, for use in LinuxThreads.
6824
6825         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6826         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6827         _IO_list_resetlock): New interface for iterating global list of
6828         streams without accessing the _IO_list_all global variable,
6829         and for manipulating the lock which protects this list.
6830         * libio/libioP.h: Likewise.
6831         * libio/Version: Add entries for the new functions.
6832
6833         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6834         pointer to _IO_FILE.
6835
6836 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6837
6838         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6839         BIT() must actually be BITw().
6840
6841         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6842
6843         * locale/programs/charmap.c: Allow string arguments for
6844         code_set_name and repertoiremap.
6845
6846 2000-06-07  Andreas Jaeger  <aj@suse.de>
6847
6848         * elf/Makefile: Build ldconfig only when building shared libraries.
6849
6850 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6851
6852         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6853         __USE_ISOC99.
6854         (fdimf, __fdim, fdim): Likewise.
6855
6856 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6857
6858         * locale/findlocale.c: Add __builtin_expect in many places.
6859         * locale/loadlocale.c: Likewise.
6860
6861 2000-06-06  Greg McGary  <greg@mcgary.org>
6862
6863         * sysdeps/mips/elf/start.S: Trim redundant code.
6864
6865         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6866         Use C comments throughout.  Line up operands column with tabs.
6867         * sysdeps/powerpc/strchr.S: Likewise.
6868         * sysdeps/powerpc/strcmp.S: Likewise.
6869         * sysdeps/powerpc/strcpy.S: Likewise.
6870         * sysdeps/powerpc/strlen.S: Likewise.
6871
6872         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6873         Get low part of &__curbrk with @l.
6874
6875 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6876
6877         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6878         * iconvdata/unicode.c: Likewise.
6879         * iconvdata/uhc.c: Likewise.
6880         * iconvdata/t.61.c: Likewise.
6881         * iconvdata/sjis.c: Likewise.
6882         * iconvdata/johab.c: Likewise.
6883         * iconvdata/iso_6937.c: Likewise.
6884         * iconvdata/iso_6937-2.c: Likewise.
6885         * iconvdata/iso8859-1.c: Likewise.
6886         * iconvdata/iso646.c: Likewise.
6887         * iconvdata/iso-2022-kr.c: Likewise.
6888         * iconvdata/iso-2022-jp.c: Likewise.
6889         * iconvdata/iso-2022-cn.c: Likewise.
6890         * iconvdata/gbgbk.c: Likewise.
6891         * iconvdata/gbk.c: Likewise.
6892         * iconvdata/euc-kr.c: Likewise.
6893         * iconvdata/euc-jp.c: Likewise.
6894         * iconvdata/euc-cn.c: Likewise.
6895
6896 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6897
6898         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6899         * iconvdata/big5.c: Likewise.
6900         * iconvdata/ansi_x3.110.c: Likewise.
6901         * iconvdata/8bit-generic.c: Likewise.
6902         * iconvdata/8bit-gap.c: Likewise.
6903         * iconv/loop.c: Likewise.
6904         * iconv/gconv_db.c: Likewise.
6905         * iconv/gconv_dl.c: Likewise.
6906         * iconv/gconv_simple.c: Likewise.
6907         * iconv/skeleton.c: Likewise.
6908
6909         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6910         (struct __gconv_step_data): Rename __is_last to __flags.
6911         * iconv/gconv_close.c: Change all uses of __is_last.
6912         * iconv/skeleton.c: Likewise.
6913         * iconvdata/iso-2022-cn.c: Likewise.
6914         * iconvdata/iso-2022-jp.c: Likewise.
6915         * iconvdata/iso-2022-kr.c: Likewise.
6916         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6917         Recognize IGNORE error handling, set flag, and remove from name.
6918         * iconv/loop.c (ignore_errors_p): Define.
6919         Add flags parameter to both functions.
6920         * iconv/skeleton.c: Pass flags to all conversion functions.
6921         * iconv/gconv_simple.c: Add flags parameter to all functions.
6922         Don't return error for invald error if ignore flag is set.
6923         (ucs4_internal_loop_single): Add missing pointer increment.
6924         (internal_ucs4le_loop_single): Likewise.
6925         * iconv/iconv_prog.c: Implement handling of -c parameter.
6926         * iconvdata/8bit-gap.c: Don't return error for invald error if
6927         ignore flag is set.
6928         * iconvdata/8bit-generic.c: Likewise.
6929         * iconvdata/ansi_x3.110.c: Likewise.
6930         * iconvdata/big5.c: Likewise.
6931         * iconvdata/big5hkscs.c: Likewise.
6932         * iconvdata/euc-cn.c: Likewise.
6933         * iconvdata/euc-jp.c: Likewise.
6934         * iconvdata/euc-kr.c: Likewise.
6935         * iconvdata/gbgbk.c: Likewise.
6936         * iconvdata/gbk.c: Likewise.
6937         * iconvdata/iso-2022-cn.c: Likewise.
6938         * iconvdata/iso-2022-jp.c: Likewise.
6939         * iconvdata/iso-2022-kr.c: Likewise.
6940         * iconvdata/iso646.c: Likewise.
6941         * iconvdata/iso8859-1.c: Likewise.
6942         * iconvdata/iso_6937-2.c: Likewise.
6943         * iconvdata/iso_6937.c: Likewise.
6944         * iconvdata/johab.c: Likewise.
6945         * iconvdata/sjis.c: Likewise.
6946         * iconvdata/t.61.c: Likewise.
6947         * iconvdata/uhc.c: Likewise.
6948         * iconvdata/unicode.c: Likewise.
6949         * iconvdata/utf-16.c: Likewise.
6950         * libio/fileops.c: Likewise.
6951         * libio/iofwide.c: Likewise.
6952         * wcsmbs/btowc.c: Likewise.
6953         * wcsmbs/mbrtowc.c: Likewise.
6954         * wcsmbs/mbsnrtowcs.c: Likewise.
6955         * wcsmbs/mbsrtowcs.c: Likewise.
6956         * wcsmbs/wcrtomb.c: Likewise.
6957         * wcsmbs/wcsnrtombs.c: Likewise.
6958         * wcsmbs/wcsrtombs.c: Likewise.
6959         * wcsmbs/wctob.c: Likewise.
6960
6961         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6962         an error.
6963
6964 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6965
6966         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6967         counter for the object we are releasing, just decrement it.
6968         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6969
6970 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6971
6972         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6973         if -ffast-math.
6974
6975 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6976
6977         * iconvdata/big5hkscs.c: New file.
6978         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6979
6980         * iconvdata/gconv-modules: Add entry for new module.
6981         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6982         (distribute): Add big5hkscs.c.
6983
6984 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6985
6986         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6987         inlines to match prototypes in mathcalls.h.
6988         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6989         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6990         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6991         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6992
6993 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6994
6995         * elf/elf.h (SHT_SUNW_move): Define.
6996
6997         * elf/elf.h: Add more Solaris compatiblity definitions.
6998
6999 2000-06-03  Andreas Jaeger  <aj@suse.de>
7000
7001         * sysdeps/powerpc/dl-start.S: Close open comment.
7002
7003 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7004
7005         * inet/Versions: Fix typo in rresvport_af export.
7006
7007 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7008
7009         * math/tgmath.h: Pretty print.
7010
7011 2000-06-02  Andreas Jaeger  <aj@suse.de>
7012
7013         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7014         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7015
7016 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7017
7018         * elf/rtld.c (process_envvars): Test for = after variable name.
7019
7020 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7021
7022         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7023         have extra call to __gmon_start__, use the pointer we already have.
7024
7025         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7026         shifting.
7027
7028         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7029         binutils.  gas now emits a jump through the PLT instead of a
7030         relative jump if the jump target is an exported symbol.
7031
7032 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7033
7034         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7035
7036 2000-05-31  Andreas Jaeger  <aj@suse.de>
7037
7038         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7039         gregset_t.
7040
7041         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7042         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7043
7044         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7045         syscall.
7046         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7047
7048 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7049
7050         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7051
7052         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7053         * locale/localeconv.c: Make function versioned (with same definition).
7054
7055         * elf/Makefile (modules-names): Strip before using it.
7056
7057 2000-05-30  Andreas Jaeger  <aj@suse.de>
7058
7059         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7060         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7061         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7062         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7063         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7064         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7065
7066 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7067
7068         * Makefile: Add GNU make magic.
7069
7070         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7071         Removed.
7072         * inet/rcmd.c: Remove __P.  Remove unused variables.
7073         (iruserfopen): Make first parameter const.
7074         (ruserok_sa): Return result of ruserok2_sa.
7075         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7076         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7077         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7078         (ruserpass): Check results of memory allocation.
7079         * include/netdb.h: Add prototype for ruserpass.
7080
7081 2000-05-29  Andreas Jaeger  <aj@suse.de>
7082
7083         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7084         for all platforms.
7085
7086 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7087
7088         * inet/rcmd.c (rresvport_af): Use correct port number.
7089
7090 2000-05-26  Andreas Schwab  <schwab@suse.de>
7091
7092         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7093         entries in all-sonames.
7094         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7095         preserving the old name if different for compatibility.
7096
7097 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7098
7099         * posix/Makefile (tests): Add tst-spawn.
7100         (tst-spawn-ARGS): New variable.
7101         * posix/tst-spawn.c: New file.
7102
7103         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7104         * posix/spawn_faction_adddup2.c: Likewise.
7105         * posix/spawn_faction_addopen.c: Likewise.
7106         * posix/spawni.c: Correctly test for success of dup2 calls.
7107
7108         * posix/tst-preadwrite.c: Check success of malloc call.
7109
7110 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7111
7112         * posix/Makefile (tests): Add tst-exec.
7113         (tst-exec-ARGS): New variable.
7114         * posix/tst-exec.c: New file.
7115
7116         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7117
7118 2000-05-04  Andreas Jaeger  <aj@suse.de>
7119
7120         * string/string.h: Remove __strdup prototype, it's not needed in
7121         this file anymore.
7122
7123 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7124
7125         * posix/Makefile (tests): Add tst-fork.
7126         * posix/tst-fork.c: New file.
7127
7128         * resolv/inet_pton.c: Loose __P.
7129
7130 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7131
7132         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7133         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7134         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7135         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7136         _IO_CHECK_WIDE fails.
7137
7138 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7139
7140         * po/da.po: New file.
7141
7142         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7143         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7144
7145         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7146         (Other iconv Implementations): Fix typo.
7147         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7148
7149 2000-05-27  Andreas Jaeger  <aj@suse.de>
7150
7151         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7152         normal version now.
7153         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7154         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7155         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7156         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7157         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7158         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7159
7160         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7161         endianness to decide how to pass arguments.
7162         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7163
7164         * elf/vismain.c: Use test-skeleton interface.
7165         (TEST_FUNCTION): New macro.
7166         (do_test): Renamed from main.
7167
7168 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7169
7170         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7171         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7172
7173         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7174         handling of AI_V4MAPPED flag.
7175
7176         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7177         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7178         perform lookup for T_A type and tell getanswer_r to convert the
7179         result with new argument.
7180         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7181         Don't convert addresses from IPv4 to IPv6 here.
7182         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7183         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7184         IPv4 mapping has to be done.  Perform mappings if required by the
7185         caller and not if RES_USE_INET6 bit in _res.options is set.
7186         Add several __builtin_expect.
7187
7188 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7189
7190         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7191
7192         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7193         NULL.
7194
7195         * posix/tst-preadwrite.c: Allow parallel execution of
7196         tst-preadwrite and tst-preadwrite64.
7197
7198         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7199         * posix/tst-truncate.c: New file.
7200         * posix/tst-truncate64.c: New file.
7201
7202         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7203         was switched.
7204
7205         * posix/Makefile (tests): Add tst-preadwrite64.
7206         * posix/tst-preadwrite.c: Alloc file being used also for testing
7207         pread64 and pwrite64.
7208         * posix/tst-preadwrite64.c: New file.
7209
7210 2000-05-26  Andreas Jaeger  <aj@suse.de>
7211
7212         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7213         of arguments dependend on endianness.
7214         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7215
7216         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7217         normal version now.
7218         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7219         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7220         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7221         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7222
7223         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7224         endianness to check how to pass argument.
7225         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7226
7227         * elf/ldconfig.h: Update parameter list for process_elf_file.
7228
7229         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7230         Add parameter file_length and pass it ot process_elf*file.
7231
7232         * sysdeps/generic/readelflib.c (check_ptr): New.
7233         (process_elf_file): Use check_ptr to check all accesses to the
7234         mmapped file. Add parameter file_length.
7235
7236         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7237         library names.
7238
7239         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7240         Closes PR libc/1573, reported by Bradley White
7241         <bww@laurelnetworks.com>.
7242
7243 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7244
7245         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7246         __FAST_MATH__ is defined.
7247
7248 2000-05-22  Andreas Jaeger  <aj@suse.de>
7249
7250         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7251         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7252
7253         * manual/math.texi (FP Function Optimizations): Document gcc
7254         -ffast-math behaviour with mathinlines.
7255
7256         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7257         functions unless -ffast-math is given to gcc.
7258
7259 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7260
7261         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7262         __sincosl): Guard with __USE_GNU.
7263
7264 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7265
7266         * csu/Makefile (routines): Add check_fds.
7267         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7268         binaries.  Add various __builtin_expect.
7269         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7270         * sysdeps/generic/check_fds.c: ...here.  New file.
7271
7272         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7273         binaries if file /etc/suid-debug is available.
7274
7275         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7276         and wcseqorder members.
7277         (struct locale_collate_t): Likewise.
7278         (collate_finish): Assign collation sequence value to each character.
7279         Create tables for output.
7280         (collate_output): Write out tables with collation sequence information.
7281         * locale/C-collate.c: Provide C locale data for collation sequence
7282         table.
7283         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7284         _NL_COLLATE_COLLSEQWC.
7285         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7286         _NL_COLLATE_COLLSEQWC.
7287         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7288         include fnmatch_loop.c.
7289         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7290         character is matched by range expression.  Use collation sequence
7291         table.  Outside glibc fall back on simple character value comparison.
7292
7293 2000-05-24  Andreas Jaeger  <aj@suse.de>
7294
7295         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7296         words.
7297
7298         * intl/Makefile: Run gettext-test only if msgfmt is available.
7299
7300         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7301         Define it for newer kernels.
7302
7303 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7304
7305         * elf/dl-sym.c: Minor cleanups.
7306
7307         * configure.in: Add test for .protected.
7308         * config.make.in: Add have-protected variable.
7309         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7310         (tests-vis-yes): Add vismain.
7311         (modules-names): Add $(modules-vis-$(have-protected)).
7312         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7313         Add rules to generate and run vismain.
7314         * elf/vismain.c: New file.
7315         * elf/vismod1.c: New file.
7316         * elf/vismod2.c: New file.
7317         * elf/vismod3.c: New file.
7318
7319 2000-05-23  Andreas Jaeger  <aj@suse.de>
7320
7321         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7322
7323         * manual/search.texi (Array Sort Function): Document that qsort is
7324         not necessarily in-place.
7325
7326         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7327         Closes PR libc/1731.
7328
7329         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7330         * dirent/scandir64.c: Likewise.
7331         * pwd/getpw.c: Likewise.
7332         * stdlib/bsearch.c (bsearch): Likewise.
7333         * stdlib/tst-strtoll.c: Likewise.
7334         * localedata/collate-test.c: Likewise.
7335         * localedata/xfrm-test.c: Likewise.
7336         * posix/bsd-getpgrp.c: Likewise.
7337         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7338         * sysdeps/generic/bits/siginfo.h: Likewise.
7339         * sysdeps/generic/bits/sockaddr.h: Likewise.
7340         * sysdeps/generic/sys/swap.h: Likewise.
7341         * sysdeps/generic/sys/sysinfo.h: Likewise.
7342         * sysdeps/generic/vfork.c: Likewise.
7343         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7344         * sysdeps/mach/hurd/fdopen.c: Likewise.
7345         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7346         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7347         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7348         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7349         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7350         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7351         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7352
7353         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7354         * shadow/lckpwdf.c: Likewise.
7355         * stdlib/tst-strtol.c: Likewise.
7356         * sysdeps/generic/tcsetattr.c: Likewise.
7357         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7358         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7359
7360 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7361
7362         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7363         free it and set to (void *) -1.
7364
7365 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7366
7367         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7368         not the second character in the range.
7369         * stdio-common/tstscanf.c (main): Add testcase for the above.
7370         Reported by jik@kamens.brookline.ma.us.
7371
7372 2000-05-21  H.J. Lu  <hjl@gnu.org>
7373
7374         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7375         with noexec and noplt parameter.
7376         (do_lookup): Likewise.
7377
7378         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7379         do_lookup.  Support STV_PROTECTED.
7380         (_dl_lookup_symbol_skip): Likewise.
7381         (_dl_lookup_versioned_symbol): Likewise.
7382         (_dl_lookup_versioned_symbol_skip): Likewise.
7383
7384         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7385
7386         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7387
7388 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7389
7390         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7391         * sysdeps/i386/bits/huge_val.h: Likewise.
7392         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7393         * sysdeps/m68k/bits/huge_val.h: Likewise.
7394         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7395         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7396
7397 2000-05-22  Andreas Jaeger  <aj@suse.de>
7398
7399         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7400         change in iconv.h.
7401
7402 2000-05-19  Andreas Jaeger  <aj@suse.de>
7403
7404         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7405         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7406         breaks compilation without linuxthreads.
7407
7408 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7409
7410         * sysdeps/ia64/memccpy.S: New file.
7411         * sysdeps/ia64/memchr.S: New file.
7412         * sysdeps/ia64/memcmp.S: New file.
7413         * sysdeps/ia64/memcpy.S: New file.
7414         * sysdeps/ia64/memmove.S: New file.
7415         * sysdeps/ia64/memset.S: New file.
7416         * sysdeps/ia64/strcat.S: New file.
7417         * sysdeps/ia64/strchr.S: New file.
7418         * sysdeps/ia64/strcmp.S: New file.
7419         * sysdeps/ia64/strcpy.S: New file.
7420         * sysdeps/ia64/strlen.S: New file.
7421         * sysdeps/ia64/strncmp.S: New file.
7422         * sysdeps/ia64/strncpy.S: New file.
7423         * sysdeps/ia64/softpipe.h: New file.
7424         Patches by Dan Pop <Dan.Pop@cern.ch>.
7425
7426         * manual/memory.texi: Document memory handling functions (mlock,
7427         munlock, mlockall, munlockall, brk, and sbrk)
7428         * manual/time.texi: Document timespec and friends.
7429         * manual/conf.texi: Fix references.
7430         * manual/ctype.texi: Likewise.
7431         * manual/errno.texi: Likewise.
7432         * manual/intro.texi: Likewise.
7433         * manual/locale.texi: Likewise.
7434         * manual/sysinfo.texi: Likewise.
7435         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7436
7437 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7438
7439         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7440         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7441
7442 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7443
7444         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7445         dxfer_direction.
7446
7447 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7448
7449         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7450         * locale/localeconv.c: Initialize new elements from ISO C99.
7451         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7452         new standard elements.
7453         * locale/categories.def: Adjust accordingly.
7454
7455         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7456         * iconv/iconv.c: Likewise.
7457         * conform/data/iconv.h-data: Likewise.
7458         * iconv/iconv_prog.c (process_block): Remove const from second
7459         parameter.
7460         (main): Remove const from addr definition.
7461         * manual/charset.texi (Generic Conversion Interface): Remove from
7462         inbuf parameter of iconv.
7463
7464         * intl/dcigettext.c: Fix typo in comment.
7465
7466 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7467
7468         * resolv/res_libc.c (_res): Initialize _sock to -1.
7469
7470 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7471
7472         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7473         (fopencookie@@GLIBC_2.2): New.
7474         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7475         (fopencookie@GLIBC_2.0): New.
7476         * libio/Versions: Add fopencookie to GLIBC_2.2.
7477
7478 2000-05-18  Andreas Jaeger  <aj@suse.de>
7479
7480         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7481         Closes PR libc/1731.
7482
7483         * manual/arith.texi (Parsing of Integers): Fix typo.
7484         Closes PR libc/1744, reported by blp@gnu.org.
7485
7486 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7487
7488         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7489         __extension__ to hexadecimal floating constant notation.
7490         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7491         Likewise.
7492         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7493         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7494         Likewise.
7495         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7496         HUGE_VALL): Likewise.
7497         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7498         HUGE_VALL): Likewise.
7499         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7500
7501 2000-05-17  Andreas Jaeger  <aj@suse.de>
7502
7503         * string/envz.h: Add pure attributes if possible.
7504
7505         * string/argz.h: argz_count is a pure function.
7506
7507         * string/strings.h: Add pure and const attributes if possible.
7508
7509         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7510         possibly searching through the whole memory.
7511         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7512
7513 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7514
7515         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7516         not yet defined.
7517         (_dl_cache_check_flags): Likewise.
7518         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7519         dl-cache.h.
7520
7521 2000-05-17  Andreas Jaeger  <aj@suse.de>
7522
7523         * manual/creature.texi (Feature Test Macros): Remove paragraph
7524         since the description is wrong.
7525         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7526
7527         * scripts/config.sub: New version.
7528         * scripts/config.guess: Likewise.
7529         * manual/texinfo.tex: Likewise.
7530
7531         * time/test_time.args: Removed.
7532         * time/Makefile (test_time-ARGS): Added contents here instead.
7533
7534         * posix/tstgetopt.args: Removed.
7535         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7536
7537         * Rules: Allow arguments for test files to be specified in
7538         Makefile with testname-ARGS; remove rules with .args in it.
7539
7540         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7541         remove old bogus rule for opendir-tst1.args.
7542
7543         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7544
7545         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7546         into objdir.  This allows a readonly sourcetree.
7547         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7548
7549 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7550             David Huggins-Daines <dhd@linuxcare.com>
7551
7552         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7553         cache_data in case of only new cache format correctly.
7554
7555         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7556         cache_file_new.
7557
7558         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7559         struct cache_file_new.
7560
7561         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7562         present.
7563
7564         * elf/cache.c (save_cache): Align struct new_file_cache.
7565         (print_cache): Likewise.
7566
7567 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7568
7569         * elf/soinit.c (__libc_global_ctors): Move
7570         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7571         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7572         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7573         variable, don't define it to __res_state call.
7574
7575 2000-05-13  Andreas Jaeger  <aj@suse.de>
7576
7577         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7578         Linux 2.3.99pre7.
7579         (AF_PPPOX): Likewise.
7580         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7581         (AF_PPPOX): Likewise.
7582
7583 2000-05-12  Andreas Jaeger  <aj@suse.de>
7584
7585         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7586         Reported by tmoestl@gmx.net, closes PR libc/1732.
7587
7588 2000-05-11  Jan Hubicka  <jh@suse.cz>
7589
7590         * misc/sys/cdefs.h: Add support for pure attribute.
7591
7592         * include/string.h: Add __attribute_pure__ to various functions.
7593         * string/string.h: Likewise.
7594
7595 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7596
7597         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7598         argument.
7599         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7600         R_SPARC_UA64.
7601         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7602
7603 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7604
7605         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7606         at proper place.  Compute the high nibble correctly.
7607
7608 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7609
7610         * elf/ldconfig.c: Include elf.h.
7611
7612         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7613         (_dl_vsym): Likewise.
7614         Reported by Owen Taylor <otaylor@redhat.com>.
7615
7616         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7617         always.
7618
7619 2000-05-08  Andreas Jaeger  <aj@suse.de>
7620
7621         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7622
7623         * intl/bindtextdom.c (set_binding_values): Add prototype.
7624
7625 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7626
7627         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7628         call to elf_machine_fixup_plt.
7629         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7630         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7631
7632 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7633
7634         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7635         they are not dlclose'd from underneath us.
7636
7637 2000-05-08  Andreas Schwab  <schwab@suse.de>
7638
7639         * posix/execle.c: Fix size parameter of memcpy.
7640
7641 2000-05-08  Andreas Schwab  <schwab@suse.de>
7642
7643         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7644         getpagesize syscall if available.
7645
7646 2000-05-08  Andreas Jaeger  <aj@suse.de>
7647
7648         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7649         set errno.
7650
7651 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7652
7653         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7654         sizeof(struct link_map *) chunks, not in bytes.
7655
7656 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7657
7658         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7659         only needed for locale.
7660         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7661         It's only needed for catgets.
7662         Patches by Greg McGary <gkm@eng.ascend.com>.
7663
7664 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7665
7666         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7667         Remove duplicate <errno.h> include.  Remove inclusion of
7668         <libintl.h> and "nsswitch.h".
7669         (set_cloexec_flag): New function, broken out of dbopen.
7670         (dbopen): Changed return type to `enum
7671         nss_status'.  Mostly rewritten to make sure that we do not report
7672         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7673         (internal_setent): Change return type to nss_status.
7674         Document, and make sure that the function
7675         behaves accordingly.  Make dynamically loading the database
7676         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7677         failed.
7678         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7679         unecessary casts.
7680         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7681         documentation.
7682         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7683         c_get function member.
7684         * nss/nss_db/nss_db.h: Add and tweak some comments.
7685         (DBT): Move typedef before NSS_DBC typedef.
7686         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7687
7688 2000-05-07  H.J. Lu  <hjl@gnu.org>
7689
7690         * csu/initfini.c: Moved to ....
7691         * sysdeps/generic/initfini.c: ...here.
7692
7693         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7694
7695 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7696
7697         * manual/resource.texi: Document POSIX scheduling functions.
7698         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7699
7700         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7701         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7702
7703         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7704         for x since promotion in comparison might leads to unexpected
7705         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7706
7707         * iconv/Makefile (tests): Add tst-iconv1.
7708         * iconv/tst-iconv1.c: New file.
7709         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7710         empty input buffer over full output buffer.
7711         (ucs4_internal_loop): Likewise.
7712         (ucs4_internal_loop_unaligned): Likewise.
7713         (internal_ucs4le_loop): Likewise.
7714         (internal_ucs4le_loop_unaligned): Likewise.
7715         (ucs4le_internal_loop): Likewise.
7716         (ucs4le_internal_loop_unaligned): Likewise.
7717         Reported by yaoz@nih.gov.
7718
7719 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7720
7721         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7722         returned != __GCONV_OK, there is nothing to clean up.
7723
7724 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7725
7726         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7727         OUTPUT_CHARSET environment variables.
7728
7729 2000-05-06  Andreas Jaeger  <aj@suse.de>
7730
7731         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7732         (struct cache_file_new): New.
7733         (struct file_entry): New (moved from cache.c).
7734         (struct cache_file): New (moved from cache.c).
7735
7736         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7737         from _dl_load_cache_lookup.
7738         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7739         the different cache formats.
7740         New variable cache_new for new format.
7741
7742         * elf/ldconfig.h: Change according to changes in cache.c and
7743         ldconfig.c; remove cache_libcmp; add opt_format.
7744
7745         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7746         stuff that's defined in those headers.
7747         Add hwcap to struct lib_entry.
7748         (opt_format): New variable to select cache format.
7749         (options): Add format parameter.
7750         (is_hwcap): New function.
7751         (path_hwcap): New function.
7752         (parse_opt): Handle new format parameter.
7753         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7754
7755         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7756         ldconfig is part of glibc.
7757         Include dl-cache.h and remove stuff that's defined there.
7758         (struct cache_entry): Add new member hwcap.
7759         (print_entry): Print hwcap, cleanup a bit.
7760         (print_cache): Print new and old formats.
7761         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7762         (save_cache): Save new and old formats.
7763         (add_to_cache): Handle hwcap.
7764
7765         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7766         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7767         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7768         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7769         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7770         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7771
7772 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7773
7774         * intl/dcigettext.c (alignof): New macro.
7775         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7776         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7777         freemem_size to 0.
7778
7779 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7780
7781         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7782         return value.
7783
7784 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7785
7786         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7787         (mempcpy): Correct typo is parameter list.
7788
7789 2000-05-06  Andreas Jaeger  <aj@suse.de>
7790
7791         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7792         functions unless -ffast-math is given to gcc.
7793
7794 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7795
7796         * po/ko.po: Update from translation team.
7797
7798 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7799
7800         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7801         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7802         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7803         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7804         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7805         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7806
7807         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7808         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7809         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7810
7811         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7812         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7813         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7814         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7815
7816         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7817         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7818
7819 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7820
7821         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7822         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7823
7824         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7825         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7826
7827         * sysdeps/ia64/Implies: New file.
7828         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7829         * sysdeps/ia64/Makefile: New file.
7830         * sysdeps/ia64/gmp-mparam.h: New file,
7831
7832         * sysdeps/ia64/elf/start.S: New file.
7833
7834         * sysdeps/ia64/bits/fenv.h: New file.
7835
7836 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7837
7838         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7839
7840 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7841
7842         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7843         ia64 has 64 bit .hash entries just as the Alpha.
7844
7845 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7846
7847         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7848
7849 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7850
7851         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7852         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7853         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7854         * sysdeps/ia64/fpu/fegetenv.c: New file.
7855         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7856         * sysdeps/ia64/fpu/fegetround.c: New file.
7857         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7858         * sysdeps/ia64/fpu/fesetenv.c: New file.
7859         * sysdeps/ia64/fpu/fesetround.c: New file.
7860         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7861         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7862         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7863         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7864         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7865
7866 2000-05-05  Andreas Jaeger  <aj@suse.de>
7867
7868         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7869
7870         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7871         (_dl_string_hwcap): New, does nothing.
7872
7873         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7874         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7875         (_dl_string_hwcap): New function, converts from string to hwcap
7876         encoding.
7877         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7878         (_DL_HWCAP_COUNT): New.
7879         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7880         (_dl_string_hwcap): New function, converts from string to hwcap
7881         encoding.
7882         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7883         (_DL_HWCAP_COUNT): New.
7884         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7885         (_dl_string_hwcap): New function, converts from string to hwcap
7886         encoding.
7887
7888 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7889
7890         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7891         * sysdeps/ia64/Dist: New file.
7892
7893         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7894         parameter to mprotect and for variable assignments.
7895
7896 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7897
7898         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7899         validity of map before dereferencing it.
7900
7901         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7902
7903 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7904
7905         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7906         lookup to the arguments to elf_machine_fixup_plt().
7907
7908         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7909         of the symbol being resolved to input argument list and make the
7910         function return the pointer to the reloc.
7911
7912         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7913         return valuie to lookup_t and return the value.
7914         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7915         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7916         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7917         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7918         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7919         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7920
7921         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7922         Make it an inline function returning value after calling
7923         __elf_machine_fixup_plt().
7924
7925         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7926         symbol address.
7927
7928         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7929         obtain the symbol address.
7930
7931         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7932         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7933
7934         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7935         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7936         inline on non ia64.
7937
7938 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7939
7940         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7941         symbol address of an object.
7942
7943         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7944         the symbol address of an object.
7945
7946         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7947         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7948         (_dl_lookup_symbol_skip): Likewise.
7949         (_dl_lookup_versioned_symbol): Likewise.
7950         (_dl_lookup_versioned_symbol_skip): Likewise.
7951
7952 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7953
7954         * elf/rtld.c (_dl_start): Get the function pointer return address
7955         via _dl_start_address for architectures that need a function
7956         pointer descriptor rather than just a pointer (ia64).
7957
7958         * sysdeps/generic/dl-lookupcfg.h: New file.
7959         * sysdeps/ia64/dl-lookupcfg.h: New file.
7960         * sysdeps/ia64/dl-machine.h: New file.
7961         * sysdeps/ia64/dl-symaddr.c: New file.
7962         * sysdeps/ia64/dl-fptr.c: New file.
7963
7964         * elf/elf.h: Add IA-64 specific definitions.
7965
7966 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7967
7968         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7969         end of enum.
7970
7971 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7972
7973         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7974         happy.
7975
7976 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7977
7978         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7979         symbol.  Call _dl_init rather than the old way.
7980
7981 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7982
7983         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7984         test for pointer in range of DSO address space.
7985
7986 2000-05-04  Andreas Jaeger  <aj@suse.de>
7987
7988         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7989
7990 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7991
7992         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7993         calls of _nl_make_l10nflist.
7994
7995         * libio/stdio.h: Make fseeko and ftello prototypes available is
7996         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7997
7998         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7999         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8000
8001 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8002
8003         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8004         before calling tfind.
8005
8006 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8007
8008         * resolv/resolv.h (res_querydomain): Remove redefinition to
8009         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8010
8011 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8012
8013         * po/gl.po: Update from translation team.
8014
8015         * manual/intro.texi (Program Basics): Change section title.
8016         * manual/process.texi: Fix reference.
8017         (Executing a File): Add reference exec in other section.
8018         * manual/signal.texi: Fix reference.
8019         * manual/startup.texi: Document syscall function.
8020         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8021
8022 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8023
8024         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8025         * intl/bindtextdom.c (set_binding_values): New function.
8026         (bindtextdomain): Call it.
8027         (bind_textdomain_codeset): New function.
8028         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8029         (free_mem): Free each binding's codeset.
8030         * intl/gettextP.h (struct binding): Add codeset field.
8031         (_nl_find_domain): Add domainbinding argument.
8032         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8033         Pass it to _nl_make_l10nflist.
8034         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8035         (_nl_make_l10nflist): Add domainbinding argument.
8036         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8037         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8038         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8039         locale_charset().
8040         * manual/message.texi: New node "Charset conversion in gettext".
8041
8042 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8043
8044         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8045         appropriate.  Handle possible __read error.
8046
8047 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8048
8049         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8050         compiler builtin.
8051         * intl/loadinfo.h (__builtin_expect): Likewise.
8052         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8053         __builtin_expect where appropriate.
8054         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8055         * intl/localealias.c (extend_alias_table): Return an error indicator.
8056         (read_alias_file): Bail out if extend_alias_table fails.
8057
8058 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8059
8060         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8061         * intl/localealias.c: Likewise.
8062
8063 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8064
8065         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8066         Initialize domain->plural and domain->nplurals even if there is no
8067         nullentry.
8068
8069 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8070
8071         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8072         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8073         In case of failure, goto converted.
8074
8075 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8076
8077         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8078         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8079         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8080         __gconv_open.
8081
8082 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8083
8084         * intl/dcigettext.c (transcmp): Compare the domains as well.
8085         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8086         not before.
8087         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8088         <errno.h>.
8089
8090 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8091
8092         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8093         Reported by Bruno Haible.
8094
8095 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8096
8097         * manual/arith.texi: Remove @w from @itemize.
8098
8099 2000-05-02  Andreas Jaeger  <aj@suse.de>
8100
8101         * conform/data/tar.h-data: Add some checks for specific values.
8102
8103         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8104         and RAND_MAX.
8105
8106         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8107         FOPEN_MAX.
8108
8109         * conform/data/netinet/in.h-data: Add exact checks for the values
8110         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8111
8112         * conform/data/float.h-data: Add some minimal values.
8113
8114         * conform/conformtest.pl: Test for macros with string constants,
8115         check for minimum and maximum values.
8116         Add limits.h to headers.
8117
8118         * conform/data/cpio.h-data: Test for value of MAGIC.
8119
8120         * conform/data/limits.h-data: New file.
8121
8122 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8123
8124         * math/Makefile (headers): Add bits/fenvinline.h.
8125
8126 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8127
8128         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8129         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8130
8131         * posix/Versions: Change posix_spawnattr_getdefault and
8132         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8133         and posix_spawnattr_setsigdefault respectively.
8134         * posix/spawn.h: Likewise.
8135         * posix/spawnattr_getdefault.h: Likewise.
8136         * posix/spawnattr_setdefault.h: Likewise.
8137         * conform/data/spawn.h-data: Likewise.
8138
8139 2000-05-01  Andreas Jaeger  <aj@suse.de>
8140
8141         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8142
8143 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8144
8145         * manual/sysinfo.texi: Document getdomainname, setdomainname
8146         and sysctl.
8147         * manual/string.texi: Fix typo.
8148         * manual/terminal.texi: Document gtty and stty.
8149         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8150
8151 2000-04-30  Andreas Jaeger  <aj@suse.de>
8152
8153         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8154         accordance with Austin Draft.
8155
8156 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8157
8158         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8159         to recognize second character in comment line.
8160
8161         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8162         ENOBUFS if we are out of memory.
8163
8164         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8165         available if __USE_XOPEN2K.
8166         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8167         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8168         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8169         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8170         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8171         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8172         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8173         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8174
8175 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8176
8177         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8178         Recognize option -s, -c, and -l.
8179
8180 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8181
8182         * nscd/nscd.c: Start new session for nscd, drop privilegs
8183         to configured user if requested and no -S parameter are used.
8184         * nscd/nscd.conf: Add new option "server-user".
8185         * nscd/nscd_conf.c: Add support for new "server-user" option.
8186         * nscd/nscd.h: Add declaration for server_user variable.
8187         Based on patch by Chris Wing <wingc@engin.umich.edu>
8188
8189 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8190
8191         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8192         that changing the __restore and __restore_rt signal return code
8193         will break GDB.
8194
8195 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8196
8197         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8198         <sys/user.h>.
8199
8200 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8201
8202         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8203
8204 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8205
8206         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8207         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8208         arpa/inet.h.
8209         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8210         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8211         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8212         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8213         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8214         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8215         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8216         posix_fallocate, and posix_madvise.
8217         * conform/data/netdb.h-data: New file.
8218         * conform/data/pthread.h-data: Add pthread_barrier_t,
8219         pthread_barrierattr_t, pthread_barrier_destroy,
8220         pthread_barrier_init, pthread_barrier_wait,
8221         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8222         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8223         pthread_condattr_getclock, pthread_condattr_setclock,
8224         pthread_getcpuclockid, pthread_mutex_timedlock,
8225         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8226         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8227         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8228         * conform/data/sched.h-data: Add sched_ss_low_priority,
8229         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8230         SCHED_SPORADIC.
8231         * conform/data/semaphore.h-data: Add sem_timedwait.
8232         * conform/data/signal.h-data: Add SIGIO.
8233         * conform/data/spawn.h-data: New file.
8234         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8235         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8236         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8237         Fix typo in gmtime_r definition.
8238         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8239         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8240         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8241         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8242         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8243         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8244         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8245         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8246         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8247         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8248         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8249         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8250         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8251         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8252         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8253         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8254         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8255         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8256         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8257         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8258         typo in off_t definition.
8259         * conform/data/net/if.h-data: New file.
8260         * conform/data/netinet/in.h-data: New file.
8261         * conform/data/netinet/tcp.h-data: New file.
8262         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8263         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8264         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8265         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8266         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8267         and posix_typed_mem_open.
8268         * conform/data/sys/socket.h-data: New file.
8269         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8270         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8271         pthread_barrierattr_t, and pthread_spinlock_t.
8272         * conform/data/sys/un.h-data: New file.
8273         * conform/data/sys/utsname.h-data: New file.
8274
8275         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8276         parameter.
8277         * inet/gethstbyad.c (gethostbyname): Likewise.
8278         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8279         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8280         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8281         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8282         Likewise.
8283         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8284         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8285         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8286         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8287         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8288         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8289         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8290         and second parameter.
8291
8292         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8293         == NULL.
8294
8295 2000-04-29  Andreas Jaeger  <aj@suse.de>
8296
8297         * conform/data/arpa/inet.h-data: New file.
8298
8299 2000-04-28  Geoff Clare <gwc@unisoft.com>
8300
8301         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8302         path passed to ftw() or nftw() is an empty string.
8303         Closes PR libc/1710.
8304
8305 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8306
8307         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8308         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8309         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8310         * localedata/tst-mbswcs4.c: New file.
8311         * localedata/tst-mbswcs5.c: New file.
8312
8313         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8314         == NULL.  Little optimization.
8315
8316         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8317         DT_PREINIT_ARRAYSZ).
8318         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8319
8320         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8321         overflows in conversion from ASCII.
8322
8323 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8324
8325         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8326         * Makerules (full_config_sysdirs): Likewise.
8327         * MakeTAGS (full_config_sysdirs): Likewise.
8328
8329 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8330
8331         * .cvsignore: Remove linuxthreads.
8332         * po/.cvsignore: Remove *.pot.
8333         * posix/glob/.cvsignore: Removed.
8334         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8335
8336 2000-04-25  Andreas Jaeger  <aj@suse.de>
8337
8338         * conform/Makefile (distribute): Also distribute contents of
8339         subdirectories.
8340
8341         * Makerules (no_deps): Remove abi-versions.h.
8342
8343         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8344
8345 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8346
8347         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8348         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8349         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8350         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8351         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8352         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8353         objects.
8354
8355 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8356
8357         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8358
8359 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8360
8361         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8362         * intl/l10nflist.c: Likewise.
8363
8364 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8365
8366         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8367         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8368         * intl/textdomain.c [!_LIBC]: Likewise.
8369         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8370         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8371         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8372         syntax error.
8373
8374 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8375
8376         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8377         character set conversion also in the case the translation was found
8378         after a hash collision or through binary search.  Store the maximum
8379         index together with the converted message.  Use iconv() when available.
8380         In case of out of memory during conversion, return the unconverted
8381         translated string, not NULL.
8382
8383 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8384
8385         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8386         to avoid name clashes with the ia32 linker.
8387
8388 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8389
8390         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8391         handling.
8392
8393 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8394
8395         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8396         strtoumax, strfry, and memfrob.
8397         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8398         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8399
8400         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8401         if this function is available.
8402
8403         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8404         all values.
8405
8406 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8407
8408         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8409
8410 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8411
8412         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8413         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8414         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8415         * localedata/tst-mbswcs3.c: New file.
8416
8417 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8418
8419         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8420         characters.  Don't handle incomplete characters as errors.
8421         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8422         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8423         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8424         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8425         * localedata/tst-mbswcs2.c: New file.
8426
8427         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8428         stored character in state in UNPACK_BYTES macro.
8429         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8430         test for available characters, handle result of BODY code correctly.
8431         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8432         (distribute): Add tst-mbswcs.sh.
8433         Add rule to run tst-mbswcs.sh.
8434         * localedata/tst-mbswcs.sh: New file.
8435         * localedata/tst-mbswcs1.c: New file.
8436
8437 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8438
8439         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8440         allocation fixups centrally, fix __builtin_expect call, return NULL
8441         on failure, not NIS_NOMEMORY.
8442
8443 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8444
8445         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8446
8447         * intl/loadinfo.h (internal_function): Define if not already defined.
8448
8449 2000-04-27  Andreas Jaeger  <aj@suse.de>
8450
8451         * intl/libintl.h: Fix typo, reported by Bruno Haible
8452         <haible@clisp.cons.org>.
8453
8454 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8455
8456         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8457         setting the state to GMON_PROF_BUSY.
8458
8459 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8460
8461         * elf/dl-profile.c (_dl_start_profile): define all variables which
8462         do not have to be global as local variables.
8463
8464         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8465         patch.  Keep needed tests for failed memory allocation.
8466
8467         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8468         __builtin_expect saying that we don't normally expect to profile.
8469
8470         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8471         __builtin_expect where desirable.
8472
8473 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8474
8475         * manual/Makefile (chapters): Add syslog.
8476         * manual/syslog.texi: New file.
8477         * manual/math.texi: Fix references.
8478         * manual/terminal.texi: Likewise.
8479         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8480
8481 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8482
8483         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8484         stdlib.h was not included or __USE_XOPEN not defined.
8485
8486 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8487
8488         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8489         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8490
8491 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8492
8493         * manual/examples/subopt.c (mount_opts): Add missing terminating
8494         entry.
8495         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8496
8497         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8498         * libio/ftello.c: Likewise.
8499         * libio/ftello64.c: Likewise.
8500         * libio/ioftell.c: Likewise.
8501         * sysdeps/generic/memrchr.c: Likewise.
8502         * sysdeps/posix/libc_fatal.c: Likewise.
8503         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8504         * misc/fstab.c: Include <string.h> for strcmp prototype.
8505         * sysdeps/generic/ldsodefs.h: Likewise.
8506         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8507         Patch by Kurt Roeckx <Q@ping.be>.
8508
8509         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8510         Remove db-open.  Change all uses.
8511         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8512
8513 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8514
8515         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8516         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8517         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8518         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8519         with .set noat/at to shut up warnings.
8520         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8521         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8522         compilation if __NR_pciconfig_iobase is not defined.
8523         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8524         Add alias.
8525
8526 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8527
8528         * manual/sysinfo.texi: Fix typo.
8529         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8530         Replace "high precision time" with "high accuracy clock".
8531         Fix language.
8532         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8533
8534         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8535         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8536         instead of malloc.
8537         * nis/nis_subr.c: Use __builtin_expect.
8538         * nis/ypclnt.c: Likewise.
8539         * nis/nis_getservlist.c: Likewise.
8540         * nis/nis_creategroup.c: Likewise.
8541
8542         * nis/nis_callback.c (__nis_create_callback): Check result of
8543         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8544         (__nis_destroy_callback): Fix memory leaks.
8545
8546 2000-04-21  Andreas Jaeger  <aj@suse.de>
8547
8548         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8549         * sysdeps/mips/mips64/add_n.S: Likewise.
8550         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8551         * sysdeps/mips/mips64/lshift.S: Likewise.
8552         * sysdeps/mips/mips64/mul_1.S: Likewise.
8553         * sysdeps/mips/mips64/rshift.S: Likewise.
8554         * sysdeps/mips/mips64/setjmp.S: Likewise.
8555         * sysdeps/mips/mips64/sub_n.S: Likewise.
8556         * sysdeps/mips/mips64/submul_1.S: Likewise
8557         * sysdeps/unix/mips/sysdep.S: Likewise.
8558
8559         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8560         and update comment.  The strtab from _dl_relocate_object can be
8561         used.
8562
8563 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8564
8565         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8566         * iconv/iconv_close.c (iconv_close): Likewise.
8567         * iconv/iconv_open.c (iconv_open): Likewise.
8568
8569         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8570         __builtin_expect where useful.
8571
8572         * grp/initgroups.c (initgroups): Test for result of memory
8573         allocation and punt if it fails.
8574
8575         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8576         * grp/fgetgrent.c (fgetfrent): Likewise.
8577         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8578
8579 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8580
8581         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8582
8583 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8584
8585         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8586         don't search for NUL byte to decrement counter.
8587         Reported by Ulrich.Brink@sap.com.
8588
8589         * iconv/gconv_simple.c: Define separate functions to convert from
8590         UCS4/UCS4-LE to the internal encoding.
8591         * iconv/gconv_builtin.h: Use separate functions to convert from
8592         UCS4/UCS4-LE to the internal encoding.
8593         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8594         __gconv_transform_ucs4le_internal.
8595
8596         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8597         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8598
8599         * iconv/skeleton.c: Add some more __builtin_expect.
8600         * iconv/loop.c: Likewise.
8601
8602 2000-03-08  H.J. Lu  <hjl@gnu.org>
8603
8604         * posix/regex.c (regex_compile): Correctly handle "\{" when
8605         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8606
8607 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8608
8609         * manual/stdio.texi: Give advise about handling error when using
8610         stream functions.
8611         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8612
8613 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8614
8615         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8616         field to nelems * sizeof (uint32_t).
8617         * locale/programs/ld-address.c (address_output): Align word fields
8618         properly.
8619         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8620         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8621         field.
8622         Avoid giving arbitrary garbage in the crncystr field.
8623         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8624         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8625         fields.
8626         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8627         Don't restart idx pointers to idx end at the decimal_point_wc field.
8628         * locale/programs/ld-time.c (time_output): week_1stday should be
8629         word, not byte.  Align it properly.
8630
8631 2000-04-19  H.J. Lu  <hjl@gnu.org>
8632
8633         * csu/gmon-start.c (_start): Declared as "extern void".
8634         (etext): Likewise.
8635
8636 2000-04-18  Andreas Jaeger  <aj@suse.de>
8637
8638         * manual/install.texi (Running make install): Don't mention utmpd
8639         anymore.
8640
8641 2000-04-18  Andreas Jaeger  <aj@suse.de>
8642
8643         * linuxthreads/Versions: Use ld instead of ld.so.
8644
8645         * elf/Makefile (ld-map): Use ld.map.
8646
8647         * Versions.def: Use ld instead of ld.so.
8648         * elf/Versions: Likewise.
8649         * sysdeps/mach/hurd/Versions: Likewise.
8650
8651 2000-04-20  Andreas Jaeger  <aj@suse.de>
8652
8653         * elf/rtld.c (print_statistics): Move ifndef further up.
8654         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8655         (dl_main): Likewise.
8656
8657 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8658
8659         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8660         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8661
8662         * po/cs.po: Update from translation team.
8663
8664         * sysdeps/generic/updwtmp.c: Remove daemon support.
8665
8666         * login/Makefile (routines): Remove utmp_daemon.
8667
8668         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8669         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8670         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8671         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8672
8673         * elf/rtld.c: Display statitics option also if hp timing is not
8674         available.
8675
8676         * login/programs/connection.c: Removed.
8677         * login/programs/database.c Removed.
8678         * login/programs/error.c: Removed.
8679         * login/programs/request.c: Removed.
8680         * login/programs/xtmp.c: Removed.
8681         * login/programs/xtmp.h: Removed.
8682         * login/Makefile: Remove rules for utmpd.
8683         * login/README.utmpd: Removed.
8684         * login/utmp_daemon.c: Removed.
8685         * login/getutent_r.c: Remove references to daemon functions.
8686         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8687         declaration.
8688
8689 2000-04-18  Andreas Jaeger  <aj@suse.de>
8690
8691         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8692         2.2 for libnsl, libresolv, librt, libnss_*.
8693
8694         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8695
8696         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8697
8698 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8699
8700         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8701         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8702         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8703         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8704         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8705         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8706         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8707         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8708         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8709         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8710         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8711         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8712         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8713         it here.
8714         * sysdeps/unix/sysv/aix/msync.c: New file.
8715         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8716         * sysdeps/unix/sysv/aix/net/if.h: New file.
8717         * sysdeps/unix/sysv/aix/pipe.c: New file.
8718         * sysdeps/unix/sysv/aix/poll.c: New file.
8719         * sysdeps/unix/sysv/aix/rename.c: New file.
8720         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8721         * sysdeps/unix/sysv/aix/select.c: New file.
8722         * sysdeps/unix/sysv/aix/semctl.c: New file.
8723         * sysdeps/unix/sysv/aix/semget.c: New file.
8724         * sysdeps/unix/sysv/aix/semop.c: New file.
8725         * sysdeps/unix/sysv/aix/sendto.c: New file.
8726         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8727         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8728         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8729         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8730         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8731         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8732         * sysdeps/unix/sysv/aix/setsid.c: New file.
8733         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8734         * sysdeps/unix/sysv/aix/shmat.c: New file.
8735         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8736         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8737         * sysdeps/unix/sysv/aix/shmget.c: New file.
8738         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8739         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8740         * sysdeps/unix/sysv/aix/socket.c: New file.
8741         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8742         * sysdeps/unix/sysv/aix/speed.c: New file.
8743         * sysdeps/unix/sysv/aix/symlink.c: New file.
8744         * sysdeps/unix/sysv/aix/sync.c: New file.
8745         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8746         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8747         * sysdeps/unix/sysv/aix/times.c: New file.
8748         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8749         * sysdeps/unix/sysv/aix/umask.c: New file.
8750         * sysdeps/unix/sysv/aix/unlink.c: New file.
8751         * sysdeps/unix/sysv/aix/ustat.c: New file.
8752         * sysdeps/unix/sysv/aix/utimes.c: New file.
8753
8754 2000-04-18  Andreas Jaeger  <aj@suse.de>
8755
8756         * manual/startup.texi (Environment Access): Fix putenv prototype
8757         according to recent changes.
8758         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8759         PR libc/1692.
8760
8761         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8762         needed.
8763
8764 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8765
8766         * posix/Makefile (tests): Add tst-getaddrinfo.
8767         * posix/tst-getaddrinfo.c: New file.
8768
8769 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8770
8771         * manual/sysinfo.texi: Document that umount2 is not widely available.
8772
8773         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8774         signal timing is not really implemented.
8775
8776 2000-04-17  Andreas Jaeger  <aj@suse.de>
8777
8778         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8779
8780 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8781
8782         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8783         and inst_libdir.
8784
8785 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8786
8787         * manual/intro.texi: Change reference from System Information to
8788         System Management.
8789         * manual/users.texi: Likewise.
8790         * manual/conf.texi: Likewise.
8791         * manual/sysinfo.texi: Document mount, umount, and umount2.
8792         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8793
8794 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8795
8796         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8797         Create wnumstr as well as numstr to support wide character output
8798         correctly.
8799
8800 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8801
8802         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8803         modification and move it...
8804         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8805         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8806         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8807         switch to $(LD) on sparc-linux.
8808
8809 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8810
8811         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8812         and setresuid from sysdep_routines.
8813
8814 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8815
8816         * manual/Makefile (chapters): Add resource.
8817
8818         * manual/time.texi: Move section on resources to...
8819         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8820         and vtimes.
8821         * manual/setjmp.texi: Adjust back reference.
8822         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8823
8824         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8825         definition.
8826         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8827         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8828         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8829         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8830         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8831         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8832         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8833         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8834         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8835         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8836         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8837         * sysdeps/unix/sysv/aix/Implies: New file.
8838         * sysdeps/unix/sysv/aix/Versions: New file.
8839         * sysdeps/unix/sysv/aix/bind.c: New file.
8840         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8841         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8842         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8843         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8844         * sysdeps/unix/sysv/aix/chdir.c: New file.
8845         * sysdeps/unix/sysv/aix/chmod.c: New file.
8846         * sysdeps/unix/sysv/aix/chroot.c: New file.
8847         * sysdeps/unix/sysv/aix/creat.c: New file.
8848         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8849         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8850         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8851         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8852         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8853         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8854         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8855         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8856         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8857         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8858         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8859         * sysdeps/unix/sysv/aix/link.c: New file.
8860         * sysdeps/unix/sysv/aix/madvise.c: New file.
8861         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8862         * sysdeps/unix/sysv/aix/mknod.c: New file.
8863         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8864         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8865         * sysdeps/unix/sysv/aix/msgget.c: New file.
8866         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8867
8868 2000-04-17  Andreas Jaeger  <aj@suse.de>
8869
8870         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8871         as suggested by Ulrich Drepper.
8872         (__dl_runtime_resolve): Remove unused variable, initialize sym
8873         directly.
8874         (RTLD_START): Document OFFSET_GP_GOT.
8875         (OFFSET_GP_GOT): New magic value.
8876         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8877         (elf_machine_got_rel): Only declare strtab if needed.
8878         (elf_machine_relplt): Removed, it's not needed.
8879         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8880
8881         * sysdeps/mips/add_n.S: Add newline at EOF.
8882         * sysdeps/mips/rshift.S: Likewise.
8883         * sysdeps/mips/mul_1.S: Likewise.
8884         * sysdeps/mips/lshift.S: Likewise.
8885         * sysdeps/mips/addmul_1.S: Likewise.
8886
8887 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8888
8889         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8890
8891         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8892         * elf/dl-lookup.c: Likewise.
8893         * elf/dl-init.c (_dl_init): Likewise.
8894         * elf/dl-fini.c (_dl_fini): Likewise.
8895         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8896         * elf/dl-close.c (_dl_close): Likewise.
8897         * elf/rtld.c (_dl_start_final): Likewise.
8898
8899         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8900
8901 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8902
8903         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8904         only fall back on using Linux.
8905
8906         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8907         Before testing versions check that we actually loaded the object
8908         and whether we are in trace mode.  If not loaded during tracing don't
8909         test versions in this object.
8910         (_dl_check_all_versions): Take new parameter and pass to
8911         _dl_check_map_versions.
8912         * sysdeps/generic/ldsodefs.h: Update prototypes for
8913         _dl_check_all_versions and _dl_check_map_versions.
8914         * elf/rtld.c (struct version_check_args): Add dotrace.
8915         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8916         (dl_main): Pass info about trace mode to version_check_doit.
8917         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8918         _dl_check_all_versions.
8919
8920         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8921         and getutmpx.
8922         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8923
8924         * manual/argp.texi: Document index parameter of argp_parse.
8925         Fix typo.
8926         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8927
8928 2000-04-14  Andreas Jaeger  <aj@suse.de>
8929
8930         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8931         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8932
8933         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8934
8935 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8936
8937         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8938         compat_symbol call for old adjtime.
8939
8940         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8941         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8942
8943         * posix/Makefile (headers): Add spawn.h.
8944         (distribute): Add spawn_int.h.
8945         (routines): Add spawn_faction_init, spawn_faction_destroy,
8946         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8947         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8948         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8949         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8950         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8951         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8952         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8953         posix_spawnattr_init, posix_spawnattr_destroy,
8954         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8955         posix_spawnattr_getflags, posix_spawnattr_setflags,
8956         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8957         and posix_spawnp.
8958         * posix/spawn.c: New file.
8959         * posix/spawn.h: New file.
8960         * posix/spawn_faction_addclose.c: New file.
8961         * posix/spawn_faction_adddup2.c: New file.
8962         * posix/spawn_faction_addopen.c: New file.
8963         * posix/spawn_faction_destroy.c: New file.
8964         * posix/spawn_faction_init.c: New file.
8965         * posix/spawn_int.h: New file.
8966         * posix/spawnattr_destroy.c: New file.
8967         * posix/spawnattr_getdefault.c: New file.
8968         * posix/spawnattr_getflags.c: New file.
8969         * posix/spawnattr_getpgroup.c: New file.
8970         * posix/spawnattr_getschedparam.c: New file.
8971         * posix/spawnattr_getschedpolicy.c: New file.
8972         * posix/spawnattr_getsigmask.c: New file.
8973         * posix/spawnattr_init.c: New file.
8974         * posix/spawnattr_setdefault.c: New file.
8975         * posix/spawnattr_setflags.c: New file.
8976         * posix/spawnattr_setpgroup.c: New file.
8977         * posix/spawnattr_setschedparam.c: New file.
8978         * posix/spawnattr_setschedpolicy.c: New file.
8979         * posix/spawnattr_setsigmask.c: New file.
8980         * posix/spawni.c: New file.
8981         * posix/spawnp.c: New file.
8982
8983         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8984         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8985
8986 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8987
8988         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8989         * malloc/malloc.c: Implement posix_memalign for glibc.
8990         * include/stdlib.h: Add prototype for __posix_memalign.
8991         * stdlib/stdlib.h: Add prototype for posix_memalign.
8992
8993 2000-04-14  Andreas Jaeger  <aj@suse.de>
8994
8995         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8996         symidx correctly.
8997         (elf_machine_got_rel): Cast sym correctly.
8998
8999         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9000         * sysdeps/mips/addmul_1.S: Likewise.
9001         * sysdeps/mips/lshift.S: Likewise.
9002         * sysdeps/mips/mul_1.S: Likewise.
9003         * sysdeps/mips/rshift.S: Likewise.
9004         * sysdeps/mips/sub_n.S: Likewise.
9005         * sysdeps/mips/submul_1.S: Likewise.
9006
9007         * stdlib/stdlib.h: Fix typo in comment.
9008
9009         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9010         2.2 for libdl, ld and libm.
9011
9012         * sysdeps/generic/madvise.c: Fix typos.
9013
9014         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9015
9016         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9017
9018         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9019         warnings.
9020
9021 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9022
9023         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9024         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9025         Make old name weak alias.
9026         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9027         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9028         Make old name weak alias.
9029         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9030
9031         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9032         posix_fallocate, and posix_fallocate64.
9033         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9034         posix_fallocate, and posix_fallocate64.
9035         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9036         posix_fallocate, and posix_fallocate64.
9037         * sysdeps/generic/fadvise.c: New file.
9038         * sysdeps/generic/fadvise64.c: New file.
9039         * sysdeps/generic/fallocate.c: New file.
9040         * sysdeps/generic/fallocate64.c: New file.
9041         * sysdeps/posix/fallocate.c: New file.
9042         * sysdeps/posix/fallocate64.c: New file.
9043         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9044         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9045         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9046         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9047         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9048         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9049         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9050         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9051         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9052
9053         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9054         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9055
9056 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9057
9058         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9059         * misc/sys/mman.h (posix_madvise): Add prototype.
9060         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9061         old name and posix_madvise weak aliases.
9062         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9063         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9064         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9065         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9066         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9067         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9068         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9069
9070 2000-04-13  Andreas Jaeger  <aj@suse.de>
9071
9072         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9073         versioning.
9074         (elf_machine_got_rel): Only add runtime display if needed.
9075         (elf_machine_got_rel): Handle symbol versioning.
9076
9077 2000-04-13  Andreas Jaeger  <aj@suse.de>
9078
9079         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9080
9081         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9082         default.
9083
9084         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9085         with some applications.
9086         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9087
9088         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9089         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9090         * sysdeps/mips/setjmp.S: Likewise.
9091
9092         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9093
9094 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9095
9096         * posix/globtest.sh: Work around inconsistency with expanding ~/
9097         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9098
9099 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9100
9101         * posix/getconf.c: Add support for many more POSIX options.
9102         * sysdeps/posix/sysconf.c: Likewise.
9103         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9104         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9105         _POSIX_SHELL.
9106         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9107         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9108         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9109         CLOCK_THREAD_CPUTIME_ID.
9110         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9111         CLOCK_PROCESS_CPUTIME_ID.
9112         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9113         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9114         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9115         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9116
9117         * malloc/Makefile (tests): Add tst-calloc.
9118         * malloc/tst-calloc.c: New file.
9119
9120         * sysdeps/arm/libm-test-ulps: New file.
9121
9122         * malloc/malloc.c: Undo all of today's changes.
9123
9124         * locale/programs/locale.c (show_info): Don't try to look into
9125         data for LC_ALL (there is none).
9126
9127         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9128         avoid writing over boundary.
9129         Patch by Greg McGary <gkm@eng.ascend.com>.
9130
9131         * sysdeps/arm/memprof.h: New file.
9132
9133 2000-04-12  Andreas Jaeger  <aj@suse.de>
9134
9135         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9136
9137         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9138         for memmem declaration.
9139
9140 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9141
9142         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9143         to -1.
9144         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9145
9146         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9147         mode is invalid.
9148         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9149         Patch by Bart Veer <bartv@redhat.com>.
9150
9151         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9152         function interface.
9153
9154 2000-04-11  Andreas Jaeger  <aj@suse.de>
9155
9156         * sysdeps/mips/dl-machine.h: Update some comments.
9157         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9158
9159 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9160
9161         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9162         _POSIX_SHARED_MEMORY_OBJECTS.
9163
9164         * rt/Makefile (tests): Add tst-shm.
9165         Add rules to generate tst-shm.
9166         * rt/tst-shm.c: New file.
9167
9168         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9169         for descriptor.
9170
9171         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9172         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9173         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9174         * sysdeps/generic/shm_open.c: New file.
9175         * sysdeps/generic/shm_unlink.c: New file.
9176         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9177         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9178         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9179          __endmntent, __getmntent_r, __setmntent, and __statfs.
9180
9181         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9182         fragmentation by allocating new memory at the end instead of
9183         reallocating.
9184
9185         * posix/globtest.sh: Fix last change.
9186
9187 2000-04-10  Philip Blundell  <philb@gnu.org>
9188
9189         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9190         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9191         IPV6_DROP_MEMBERSHIP.
9192         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9193         Likewise.
9194
9195 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9196
9197         * elf/readlib (process_file): Close streams in case of an error.
9198
9199 2000-04-09  Andreas Jaeger  <aj@suse.de>
9200
9201         * elf/readlib.c (process_file): Check if file is big enough to
9202         contain aout and ELF headers.
9203         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9204
9205 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9206
9207         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9208
9209 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9210
9211         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9212         stream unbuffered.
9213         * rt/Makefile (tests): Add tst-clock.
9214         Add rules to build tst-clock.
9215         * rt/tst-clock.c: New file.
9216         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9217         about initialization of nsec.
9218         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9219         about initialization of freq.  Set retval to zero if successful.
9220         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9221
9222 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9223
9224         * Versions.def (librt): Add GLIBC_2.2.
9225         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9226         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9227         timer_getoverr, timer_gettime, and timer_settime.
9228         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9229         clock_settime, timer_create, timer_delete, timer_getoverrun,
9230         timer_gettime, and timer_settime.
9231         * sysdeps/generic/clock_getcpuclockid.c: New file.
9232         * sysdeps/generic/get_clockfreq.c: New file.
9233         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9234         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9235         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9236         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9237         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9238         * sysdeps/unix/i386/i686/Implies: New file.
9239         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9240         * time/Makefile (routines): Move clock_getres, clock_gettime,
9241         clock_settime, timer_create, timer_delete, timer_getoverr,
9242         timer_gettime, and timer_settime to rt/Makefile.
9243         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9244         clock_settime, timer_create, timer_delete, timer_getoverrun,
9245         timer_gettime, and timer_settime.
9246         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9247
9248         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9249         and not const as attribute name.
9250
9251 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9252
9253         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9254
9255 2000-04-10  Andreas Schwab  <schwab@suse.de>
9256
9257         * posix/globtest.sh: Skip tests that depend on unreadable
9258         directories if run as root.
9259
9260 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9261
9262         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9263         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9264
9265 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9266
9267         * sysdeps/unix/clock_gettime.c: New file.
9268         * sysdeps/unix/clock_settime.c: New file.
9269         * sysdeps/posix/clock_getres.c: New file.
9270
9271         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9272
9273         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9274         lseek call be passing in a buffer which never allow a successful
9275         first getdents syscall if not at leas the initial entry can be
9276         stored in the user buffer.
9277
9278         * localedata/Makefile: Add rules to clean up directories created by
9279         new strfmon tests.
9280
9281 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9282
9283         * localedata/tst-fmon.data: Added new tests for strfmon()
9284         using test locales with all combinations of cs_precedes,
9285         sign_posn and sep_by_space.
9286         * localedata/tst-fmon.sh: Updated to support the new tests.
9287         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9288         the localedef source for the new strfmon() test locale.
9289         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9290         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9291         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9292         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9293         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9294         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9295         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9296         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9297         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9298         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9299         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9300         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9301         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9302         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9303
9304         * stdlib/strfmon.c: Correct problems with missing or extra
9305         spaces for unusual combinations of sign_posn and sep_by_space.
9306         Improved left-precision alignment code.
9307
9308 2000-04-07  Andreas Jaeger  <aj@suse.de>
9309
9310         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9311
9312 2000-04-10  Andreas Jaeger  <aj@suse.de>
9313
9314         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9315
9316 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9317
9318         Implement handling of restartable conversion functions according to
9319         ISO C.
9320         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9321         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9322         * iconv/gconv.c: Pass additional parameter to conversion function.
9323         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9324         (internal_ucs4le_loop_single): New function.
9325         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9326         (__gconv_transform_internal_ascii): Likewise.
9327         (__gconv_transform_internal_utf8): Likewise.
9328         (__gconv_transform_utf8_internal): Likewise.
9329         (__gconv_transform_ucs2_internal): Likewise.
9330         (__gconv_transform_internal_ucs2): Likewise.
9331         (__gconv_transform_ucs2reverse_internal): Likewise.
9332         (__gconv_transform_internal_ucs2reverse): Likewise.
9333         (internal_ucs4le_loop_unaligned): Before return
9334         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9335         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9336         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9337         * iconv/loop.c: Fit in definition of function to convert one character
9338         for processing of left-over bytes from the state object.
9339         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9340         inend to match names in loop functions.
9341         (RESET_INPUT_BUFFER): Change apprpriately.
9342         (gconv): If needed, call function to process bytes from the state
9343         object.  Similar at the end: store left over bytes if input is
9344         incomplete.
9345         Take extra argument and add new argument to all calls of the
9346         conversion function.
9347         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9348         information in the state object to not conflict with length count.
9349         * iconvdata/iso-2022-jp.c: Likewise.
9350         * iconvdata/iso-2022-kr.c: Likewise.
9351         * iconvdata/unicode.c: Adjust for change change in parameters of
9352         skeleton function.
9353         * iconvdata/utf-16.c: Likewise.
9354         * libio/iofwide.c: Add new parameter to all calls of conversion
9355         function.
9356         * wcsmbs/btowc.c: Likewise.
9357         * wcsmbs/mbrtowc.c: Likewise.
9358         * wcsmbs/mbsnrtowcs.c: Likewise.
9359         * wcsmbs/mbsrtowcs.c: Likewise.
9360         * wcsmbs/wcrtomb.c: Likewise.
9361         * wcsmbs/wcsnrtombs.c: Likewise.
9362         * wcsmbs/wcsrtombs.c: Likewise.
9363         * wcsmbs/wctob.c: Likewise.
9364
9365         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9366         MAX_NEEDED_INPUT.
9367
9368 2000-04-07  Andreas Jaeger  <aj@suse.de>
9369
9370         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9371         newer kernels.
9372
9373 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9374
9375         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9376         element a union to allow byte access.
9377         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9378         mbstate_t.
9379         * iconvdata/iso-2022-jp.c: Likewise.
9380         * iconvdata/iso-2022-kr.c: Likewise.
9381         * wcsmbs/mbsinit.c: Likewise.
9382         * stdlib/mblen.c: Likewise.
9383         * stdio-common/printf-parse.h: Likewise.
9384
9385 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9386
9387         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9388         kernel does not allow relative seeks on descriptors associated
9389         with directories.  Go back to get the position in the directory
9390         every time we enter the function.  Return -1 and set errno if one
9391         entry could be read from the kernel but does not fit into the
9392         buffer passed in by the user.
9393
9394         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9395         Support ..(2).. ellipsis.
9396         (parse_charmap): Recognize ..(2).. etc and pass step down.
9397         Correctly generate names for UCS4 characters.
9398
9399         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9400         (ctype_finish): We know the wide character value for <SP>,
9401         don't search.
9402         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9403         (charclass_ucs4_ellipsis): Likewise.
9404         (read_translit_ignore_entry): Store ellipsis step.
9405         (ctype_read): Recognize ..(2).. etc and pass step down.
9406
9407         * locale/programs/linereader.c (lr_token): When seeing comment
9408         character ignore only rest of line in sources but stop at escaped
9409         newline.
9410         Recognize ..(2).. and ....(2).....
9411
9412         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9413         and tok_ellipsis4_2.
9414
9415 2000-04-06  Andreas Jaeger  <aj@suse.de>
9416
9417         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9418         removed, remove it here also.
9419         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9420         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9421         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9422         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9423
9424 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9425
9426         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9427         include bits/sigcontext.h.
9428         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9429
9430 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9431
9432         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9433         collation symbol definition.  Value in quivalence definition must
9434         be defined, don't check that it is not.
9435
9436         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9437         values as character names.
9438
9439         * locale/programs/ld-ctype.c (get_character): Handle missing
9440         repertoire map correctly.
9441
9442 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9443
9444         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9445         because it is used in generic code.
9446         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9447         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9448         * intl/gettext.c: Include <locale.h>.
9449         * intl/ngettext.c: Likewise.
9450
9451 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9452
9453         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9454         socklen_t type for size.
9455         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9456         init function interface.
9457         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9458         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9459         sys/ucontext.h.
9460         (__jmp_buf): Declare the whole type structure here, don't use
9461         ucontext.
9462
9463 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9464
9465         * iconv/skeleton.c (put16u): Fix typo.
9466         Reported by Bruno Haible <haible@ilog.fr>.
9467
9468         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9469         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9470         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9471         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9472         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9473         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9474
9475         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9476         * Makefile (distribute): Add abi-versions.awk and
9477         firstversions.awk.
9478         Patches by Torsten Duwe <duwe@caldera.de>.
9479
9480 2000-04-05  Andreas Schwab  <schwab@suse.de>
9481
9482         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9483
9484 2000-04-05  Andreas Schwab  <schwab@suse.de>
9485
9486         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9487         entry point, used on Hurd.
9488
9489 2000-04-04  Andreas Jaeger  <aj@suse.de>
9490
9491         * intl/Makefile: Only run the gettext test with shared libraries.
9492
9493 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9494
9495         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9496         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9497
9498 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9499
9500         * Makeconfig: Undo last change.
9501         * configure.in: If --disable-shared was given, don't set VERSIONING,
9502         don't define DO_VERSIONING, and don't give scare warning for no
9503         versioning.
9504         * configure: Regenerated.
9505
9506 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9507
9508         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9509
9510 2000-04-04  Andreas Jaeger  <aj@suse.de>
9511
9512         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9513
9514 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9515
9516         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9517         STV_HIDDEN and STV_INTERNAL during lookup.
9518         (profile_fixup): Likewise.
9519         * elf/dl-reloc.c (RESOLVE): Likewise.
9520
9521         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9522         unaligned so that it compiles for system which need unaligned
9523         access handling.
9524
9525 2000-04-04  Andreas Schwab  <schwab@suse.de>
9526
9527         * elf/cache.c (print_entry): Only look at the type field when
9528         printing the type.
9529
9530 2000-04-04  Andreas Schwab  <schwab@suse.de>
9531
9532         * iconvdata/big5.c (BODY): Fix typo.
9533
9534 2000-04-04  Andreas Schwab  <schwab@suse.de>
9535
9536         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9537         function interface.  Remove unused _dl_start_user entry point.
9538
9539 2000-04-03  Andreas Jaeger  <aj@suse.de>
9540
9541         * include/arpa/inet.h (__inet_aton): Add protoype.
9542
9543 2000-04-01  Andreas Jaeger  <aj@suse.de>
9544
9545         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9546
9547         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9548         * sysdeps/mach/mips/thread_state.h: Likewise.
9549
9550         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9551         * sysdeps/generic/fegetenv.c: Likewise.
9552         * sysdeps/generic/fesetenv.c: Likewise.
9553         * sysdeps/generic/feupdateenv.c: Likewise.
9554         * sysdeps/generic/fraiseexcpt.c: Likewise.
9555         * sysdeps/generic/fsetexcptflg.c: Likewise.
9556         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9557         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9558         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9559         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9560
9561 2000-04-02  H.J. Lu  <hjl@gnu.org>
9562
9563         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9564
9565 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9566
9567         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9568         (add_name_to_object): Add cast in malloc call.
9569         (fillin_rpath): Optimize loop to initialize ->status a bit.
9570
9571         * sysdeps/i386/dl-machine.h: Undo last change.
9572         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9573         Restore %edx register after call here.
9574
9575         * sysdeps/arm/atomicity.h: New file.
9576         Contributed by Jesper Skov <jskov@redhat.com>.
9577
9578 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9579
9580         * Makeconfig (preprocess-versions): Undo last change.
9581         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9582
9583         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9584         here, before we might move the stack.
9585         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9586         (init1): And not here.
9587
9588         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9589         change, to restore argc value in call-clobbered register after
9590         RTLD_START_SPECIAL_INIT, which will contain a call.
9591
9592         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9593         allocating and initializing L->l_initfini.
9594
9595         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9596
9597 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9598
9599         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9600         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9601         (open_path): Change type of fourth parameter.  Make pointer to array
9602         of pointers.  Create variable dirs with original type.
9603         Track whether any directory for the object exists and if not,
9604         change *DIRSP to (void*) -1 to signal there is no such search path.
9605         (_dl_map_object): Change all calls of open_path.
9606         Rewrite decompose_rpath calls.
9607
9608 2000-03-31  Andreas Schwab  <schwab@suse.de>
9609
9610         * string/strfry.c: Declare STATE as array of char instead of int
9611         and do not initialize it (done by initstate_r).  Pass correct
9612         size.
9613
9614 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9615
9616         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9617
9618         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9619         instruction out of the code.
9620
9621 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9622
9623         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9624         element at this position.
9625
9626         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9627         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9628         l_reldeps elements.
9629         * elf/dl-lookup.c (add_dependency): New function.
9630         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9631         dynamically loaded object.
9632         (_dl_lookup_symbol_skip): Likewise.
9633         (_dl_lookup_versioned_symbol): Likewise.
9634         (_dl_lookup_versioned_symbol_skip): Likewise.
9635         * elf/dl-open.c: Don't define _dl_load_lock here...
9636         * elf/rtld.c: ...but here...
9637         * elf/dl-support.c: ...and here.
9638         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9639         through relocation.
9640         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9641         relocations.
9642         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9643         anymore.
9644         * dlfcn/glrefmain.c: Add one more debug message.
9645
9646         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9647         command line.
9648         * Makerules (sysd-versions): Use ( ) instead of { }.
9649
9650         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9651         optimize for the non-debugging case.
9652         * elf/dl-lookup.c: Likewise.
9653         * sysdeps/generic/libc-start.c: Likewise.
9654
9655 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9656
9657         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9658         (init1): Don't initialize __environ here, since init already does it.
9659         (first_init): New function, broken out of _init.
9660         (_hurd_stack_setup): Use it.
9661         [SHARED] (_dl_init_first): New function, renamed from old _init.
9662         (init1) [SHARED]: Don't call posixland_init here.
9663         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9664         [SHARED] (_init): Define as alias for posixland_init.
9665         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9666         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9667         RTLD_START_SPECIAL_INIT before calling initializers.
9668         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9669         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9670         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9671         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9672
9673         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9674         since we define the function with the name `tmpfile'.
9675
9676         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9677         * hurd/Versions: Likewise.
9678
9679 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9680
9681         * elf/dl-runtime.c (fixup): Fix typo in comment.
9682
9683         * resolv/netdb.h (getnameinfo): All length parameters are of type
9684         socklen_t.
9685         * inet/getnameinfo.c: Likewise.
9686
9687 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9688
9689         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9690         (gethostname): Change type of second parameter to socklen_t.
9691         * include/unistd.h (__gethostname): Change type of second
9692         parameter to socklen_t.
9693         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9694         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9695         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9696         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9697         Likewise.
9698         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9699         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9700         Allow definition elsewhere.
9701         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9702         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9703         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9704         * sysdeps/generic/bits/types.h: Define __socklen_t.
9705         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9706         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9707         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9708         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9709         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9710         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9711         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9712
9713         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9714         (inet_lnaof): Likewise.
9715         (inet_netof): Likewise.
9716         (inet_network): Likewise.
9717         (inet_aton): Likewise.
9718         (inet_makeaddr): Change parameter types to in_addr_t.
9719         (inet_neta): Likewise.
9720         (inet_ntop): Change type of last parameter to socklen_t.
9721         (inet_aton): Only make available if __USE_MISC.
9722         (inet_neta): Likewise.
9723         (inet_net_ntop): Likewise.
9724         (inet_net_pton): Likewise.
9725         (inet_nsap_ntoa): Likewise.
9726
9727         * inet/in.h: Define in_port_t type.
9728         Define in_addr_t type.
9729         (struct in_addr): Use in_addr_t in definition.
9730         (IN_CLASSA): Use cast to in_addr_t.
9731         (IN_CLASSB): Likewise.
9732         (IN_CLASSC): Likewise.
9733         (IN_CLASSD): Likewise.
9734         (IN_EXPERIMENTAL): Likewise.
9735         (IN_BADCLASS): Likewise.
9736         (INADDR_ANY): Likewise.
9737         (INADDR_BROADCAST): Likewise.
9738         (INADDR_NONE): Likewise.
9739         (INADDR_LOOPBACK): Likewise.
9740         (INADDR_UNSPEC_GROUP): Likewise.
9741         (INADDR_ALLHOSTS_GROUP): Likewise.
9742         (INADDR_ALLRTRS_GROUP): Likewise.
9743         (INADDR_MAX_LOCAL_GROUP): Likewise.
9744         (struct sockaddr_in): Use in_port_t for sin_port element.
9745         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9746         Use uint8_t instead of u_int8_t.
9747
9748         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9749         Call __inet_aton instead of inet_aton.
9750         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9751
9752         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9753         (innetgr): Likewise.
9754         (struct addrinfo): Use socklen_t for ai_addrlen element.
9755
9756         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9757         IPV6_RECVERR): New defines.
9758
9759         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9760         * inet/getnetbyad.c: Likewise.
9761         * inet/getnetbyad_r.c: Likewise.
9762         * nis/nss_nis/nis-network.c: Likewise.
9763         * nis/nssplus_nis/nisplus-network.c: Likewise.
9764         * nss/nss_files/files-network.c: Likewise.
9765         * resolv/netdb.h: Define uint32_t if not already happened.
9766         Include bits/netdb.h.  Remove definition of struct netent.
9767         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9768         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9769         * sysdeps/generic/bits/netdb.h: New file.
9770         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9771
9772         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9773         (tests): Add glrefmain.
9774         Add rules to build modules and run tests.  Ignore result of glrefmain
9775         for now since it fails.
9776         * dlfcn/glrefmain.c: New file.
9777         * dlfcn/glreflib1.c: New file.
9778         * dlfcn/glreflib2.c: New file.
9779
9780         * test-skeleton.c: Include <string.h> for strsignal prototype.
9781
9782         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9783         to be missing.
9784
9785         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9786         former init-first.h.  Initialize __libc_multiple_libcs.
9787
9788 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9789
9790         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9791         #if expression for use of unaligned function to the one used in
9792         the definition of these functions.
9793         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9794         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9795         (internal_ucs4le_loop_unaligned): New function.
9796
9797         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9798         (tests): Add order.
9799         (module-names): Add dep1, dep2, dep3, and dep4.
9800         Add dependencies for dep* modules and order.
9801         Define rule for order.out which checks the result.
9802         * elf/dep1.c: New file.
9803         * elf/dep2.c: New file.
9804         * elf/dep3.c: New file.
9805         * elf/dep4.c: New file.
9806         * elf/order.c: New file.
9807
9808         * elf/dl-init.c: Fix typo in comment.
9809
9810 2000-03-31  Andreas Jaeger  <aj@suse.de>
9811
9812         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9813         init function interface.
9814         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9815
9816 2000-03-31  Andreas Jaeger  <aj@suse.de>
9817
9818         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9819         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9820         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9821         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9822         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9823
9824         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9825         anymore, update comment.
9826
9827         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9828
9829         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9830         SHLIB_COMPAT - the struct is always needed.
9831
9832 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9833
9834         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9835         * elf/dl-support.c: Define _dl_starting_up.
9836
9837 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9838
9839         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9840         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9841
9842         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9843
9844         * elf/Makefile (dl-routines): Remove preinit.
9845         * elf/Versions: Remove _dl_preinit.
9846         * elf/dl-preinit.c: Removed.  Move content into...
9847         * elf/dl-init.c: ...here.
9848         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9849
9850         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9851         elements.
9852
9853 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9854
9855         * stdlib/strfmon.c: Corrected problems with the code that
9856         sets default values for [np]_sep_by_space and
9857         [np]_sign_posn; also the new positive/negative alignment
9858         code from the previous patch was not quite right for
9859         [np]_sign_posn = 0.
9860
9861         * localedata/tst-fmon.data: Changes corresponding to the
9862         two sets of fixes made to stdlib/strfmon.c.
9863
9864 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9865
9866         * malloc/malloc.c: Declare bit flags UL so that they will not
9867         default to int size when being inverted.
9868
9869 2000-03-29  Andreas Jaeger  <aj@suse.de>
9870
9871         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9872         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9873
9874 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9875             Ralf Baechle <ralf@uni-koblenz.de>
9876
9877         * Makeconfig: Introduce new variable SHARED to mark code used in
9878         the shared library.
9879         * elf/dl-close.c: Use it instead of PIC.
9880         * elf/dl-load.c: Likewise.
9881         * elf/dl-open.c: Likewise.
9882         * hurd/geteuids.c: Likewise.
9883         * include/libc-symbols.h: Likewise.
9884         * include/shlib-compat.h: Likewise.
9885         * libio/freopen.c: Likewise.
9886         * linuxthreads/cancel.c: Likewise.
9887         * linuxthreads/pthread.c: Likewise.
9888         * linuxthreads/wrapsyscall.c: Likewise.
9889         * nss/nsswitch.c: Likewise.
9890         * stdio-common/vfprintf.c: Likewise.
9891         * sysdeps/arm/init-first.c: Likewise.
9892         * sysdeps/i386/init-first.c: Likewise
9893         * sysdeps/generic/init-first.c: Likewise.
9894         * sysdeps/generic/libc-start.c: Likewise.
9895         * sysdeps/mips/init-first.c: Likewise.
9896         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9897         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9898         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9899         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9900         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9901
9902         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9903
9904 2000-03-29  Andreas Jaeger  <aj@suse.de>
9905
9906         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9907         Use D_PTR to access relocated entries in l_info.
9908         (elf_machine_rela): Likewise.
9909
9910         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9911         Likewise.
9912         (elf_machine_rela): Likewise.
9913
9914         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9915         Likewise.
9916         (__elf_machine_fixup_plt): Likewise.
9917         (__process_machine_rela): Likewise.
9918
9919         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9920         (elf_machine_rela): Likewise.
9921
9922         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9923         (elf_machine_rel): Likewise.
9924
9925         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9926         (elf_machine_fixup_plt): Likewise.
9927         (elf_machine_rela): Likewise.
9928
9929 2000-03-29  Andreas Jaeger  <aj@suse.de>
9930
9931         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9932         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9933         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9934         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9935         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9936         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9937         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9938         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9939         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9940         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9941         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9942         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9943         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9944         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9945         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9946
9947         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9948         macros, remove K&R prototypes.
9949
9950 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9951
9952         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9953         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9954         (PR libc/1677).
9955
9956 2000-03-30  Andreas Jaeger  <aj@suse.de>
9957
9958         * misc/sys/cdefs.h: Remove K&R support.
9959
9960 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9961
9962         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9963         more cases.
9964         * iconv/loop.c: Likewise.
9965
9966 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9967
9968         * iconv/loop.c (put16): Remove __const. Fix access index.
9969         (put32): Remove __const. Use uint32_t instead of uint16_t.
9970         * iconv/skeleton.c: Likewise.
9971
9972 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9973
9974         * mach/Versions (libc: GLIBC_2.0)
9975         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9976         __vm_allocate on this.
9977         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9978         mutex- and spinlock-related symbols on this.
9979         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9980         New version set.  Lock-related symbols go here instead in this case.
9981         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9982         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9983         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9984         * hurd/Versions
9985         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9986         Put them here instead.
9987         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9988         New version set.  Those cthreads symbols go here instead in this case.
9989         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9990
9991 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9992
9993         * elf/dl-init.c (_dl_init): We don't need to call constructors
9994         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9995
9996         Implement dynamic determination of constructor/destructor order in
9997         the dynamic linker.
9998         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9999         (GLIBC_2.2): Add _dl_init.
10000         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10001         r_duplist is not anymore allocated separately.  l_initfini is and
10002         therefore free it if necessary.
10003         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10004         malloc block.  Otherwise allocate l_initfini list only.
10005         Put dependencies for the object in l_initfini list.
10006         Sort dependencies for the object to be loaded topologically.
10007         * elf/dl-fini.c: Before running the destructors sort the topologically.
10008         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10009         call constructors instead of iterating over the pointers.  Get list of
10010         objects for which to run constructors from l_initfini element. Accept
10011         argc, argv, and env as parameters and pass them to the constructors.
10012         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10013         with size of dynamic section.
10014         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10015         _dl_init_next and calling constructors ourself.
10016         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10017         Take argc, argv, and env as parameters and pass them to the
10018         constructors.  Rewrite to call all constructors and not iterate over
10019         the pointers.
10020         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10021         precompute l_initcount and l_preinitcount.
10022         * elf/link.h (struct link_map): Add l_ldnum member.
10023         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10024         l_initcount, and l_preinitcount.  Add l_initfini.
10025         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10026         one for _dl_init.
10027         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10028         function interface.
10029         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10030         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10031         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10032         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10033         conventions now match.
10034
10035         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10036         effect for shared objects.  Don't emit message and call only for
10037         static library.
10038
10039 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10040
10041         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10042         CSA_Z243.4-1985-1..UCS2.
10043         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10044         ISO-8859-10..UCS2.
10045
10046 2000-03-29  Andreas Jaeger  <aj@suse.de>
10047
10048         * include/unistd.h: Remove duplicate entry for __rmdir.
10049         Remove declaration of __mkdir since __mkdir is declared in
10050         sys/stat.h.
10051
10052         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10053         by Michael Deutschmann <michael@talamasca.ocis.net>.
10054
10055         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10056         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10057         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10058         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10059         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10060
10061 2000-03-28  Andreas Jaeger  <aj@suse.de>
10062
10063         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10064         declaration, the prototype is defined via bits/mathcalls.h.
10065         (__sincosf): Likewise.
10066         (__sincosl): Likewise.
10067         (ldexp): Likewise.
10068         (ldexpf): Likewise.
10069         (ldexpl): Likewise.
10070         (__finite): Likewise.
10071         (__inline_mathcodeNP): New macro without prototype
10072         declarations.
10073         (__inline_mathcodeNP2): Likewise.
10074         (__inline_mathcodeNP3): Likewise.
10075         (__inline_mathcodeNP_): Likewise.
10076         (__inline_mathcodeNP2_): Likewise.
10077         (__inline_mathcodeNP3_): Likewise.
10078         (__inline_mathopNP): Likewise.
10079         (__inline_mathop_declNP): Likewise.
10080         (__inline_mathop_declNP_): Likewise.
10081         (__inline_mathcode_): Use __inline_mathcodeNP_.
10082         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10083         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10084         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10085         (__expm1l): Don't define prototype, the prototype is defined via
10086         bits/mathcalls.h.
10087         (exp): Likewise.
10088         (__expl): Likewise.
10089         (tan): Likewise.
10090         (atan2): Likewise.
10091         (__atan2l): Likewise.
10092         (fmod): Likewise.
10093         (pow): Likewise.
10094         (fabsf): Likewise.
10095         (fabsl): Likewise.
10096         (__fabsl): Likewise.
10097         (asin): Likewise.
10098         (acos): Likewise.
10099         (sinh): Likewise.
10100         (cosh): Likewise.
10101         (tanh): Likewise.
10102         (floor): Likewise.
10103         (ceil): Likewise.
10104         (expm1): Likewise.
10105         (log1p): Likewise.
10106         (asinh): Likewise.
10107         (acosh): Likewise.
10108         (atanh): Likewise.
10109         (hypot): Likewise.
10110         (logb): Likewise.
10111         (fma): Likewise.
10112         (drem): Likewise.
10113         (sqrt): Likewise.
10114         (__sqrtl): Likewise.
10115         (sin): Likewise.
10116         (cos): Likewise.
10117         (atan): Likewise.
10118         (log): Likewise.
10119         (log10): Likewise.
10120         (asinh): Likewise.
10121         (log2): Likewise.
10122         (rint): Likewise.
10123
10124 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10125
10126         * Makerules: If make variable md5 is defined to yes after
10127         generating dependencies generate MD5 sum for the object.
10128
10129         * iconv/gconv_builtin.h: Fix length in transformation definition
10130         for UNICODEBIG.
10131
10132         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10133
10134         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10135         allow as well reading from/writing to unaligned addresses on machines
10136         which don't support this in hardware.  Use FCTNAME macro to define
10137         function name.  Include the file a second time for platforms which
10138         need special unaligned handling.
10139         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10140         to access potentially unaligned addresses.  These macros are intended
10141         to be used only outside the loops.
10142         (unaligned): New definition.  In case the machine can handle unaligned
10143         access define as zero.  Otherwise as a variable which is initialized
10144         as nonzero in case the buffer passed in at runtime is unaligned with
10145         respect to the character set encoding involved.
10146         Call aligned or unaligned looop functions according to unaligned
10147         variable.
10148         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10149         of direct casting pointer to potentially handle unaligned memory
10150         accesses.
10151         * iconvdata/8bit-generic.c: Likewise.
10152         * iconvdata/ansi_x3.110.c: Likewise.
10153         * iconvdata/big5.c: Likewise.
10154         * iconvdata/euc-cn.c: Likewise.
10155         * iconvdata/euc-jp.c: Likewise.
10156         * iconvdata/euc-kr.c: Likewise.
10157         * iconvdata/euc-tw.c: Likewise.
10158         * iconvdata/gbk.c: Likewise.
10159         * iconvdata/iso-2022-cn.c: Likewise.
10160         * iconvdata/iso-2022-jp.c: Likewise.
10161         * iconvdata/iso-2022-kr.c: Likewise.
10162         * iconvdata/iso646.c: Likewise.
10163         * iconvdata/iso_6937-2.c: Likewise.
10164         * iconvdata/iso_6937.c: Likewise.
10165         * iconvdata/johab.c: Likewise.
10166         * iconvdata/sjis.c: Likewise.
10167         * iconvdata/t.61.c: Likewise.
10168         * iconvdata/uhc.c: Likewise.
10169         * iconvdata/unicode.c: Likewise.
10170         * iconvdata/utf-16.c: Likewise.
10171
10172         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10173         prototypes.
10174
10175         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10176         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10177         public.
10178         * malloc/mcheck.h (mcheck_check_all): Declare.
10179
10180         * stdio-common/Makefile (tests): Add tst-obprintf.
10181
10182 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10183
10184         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10185         Declare pthread_sigmask.
10186
10187         * csu/version.c: Add 2000 to copyright years.
10188         Remove Emacs local variables section.
10189
10190 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10191
10192         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10193         __gconv_transform_internal_ucs2little): Remove declarations.
10194         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10195         __gconv_transform_internal_ucs2): Never need to bswap_16.
10196         (__gconv_transform_ucs2reverse_internal,
10197         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10198
10199 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10200
10201         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10202         obsoleting version not being defined at all, in which case the
10203         result is always true.
10204
10205         * Makeconfig (preprocess-versions): New canned sequence for running
10206         cpp on shlib-versions and the like.
10207         (soversions.i): Use it.
10208         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10209         Versions.def and Versions files.
10210
10211 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10212
10213         * stdio-common/tst-obprintf.c (main): Add another check to see
10214         obstack_printf handling all possible beginnings of the block
10215         inside an obstack chunk.
10216
10217         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10218         install mcheck handler.
10219
10220         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10221         handling problem.
10222
10223 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10224
10225         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10226
10227         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10228         on [HAVE_ELF && DO_VERSIONING].
10229
10230 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10231
10232         * stdio-common/tst-obprintf.c: New file.
10233
10234 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10235
10236         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10237         _IO_OVERFLOW directly instead through __overflow.
10238
10239         * locale/programs/localedef.c (construct_output_path): If path
10240         contains a / compute the end of the directory name correctly.
10241
10242         * include/features.h: Undef and document __USE_XOPEN2K.
10243
10244         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10245         whenever a function is called.  Initiated by calling mcheck_pedantic
10246         instead of mcheck.
10247         * malloc/mcheck.h: Declare mcheck_pedantic.
10248         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10249         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10250         for now.
10251
10252 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10253
10254         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10255         * dlfcn/dlopenold.c: Likewise.
10256         * nss/getXXbyYY_r.c: Likewise.
10257         * nss/getXXent_r.c: Likewise.
10258         * hurd/hurdinit.c: Likewise.
10259         * hurd/compat-20.c: Likewise.
10260         * libio/oldiofopen.c: Likewise.
10261         * libio/oldiofclose.c: Likewise.
10262         * libio/oldiofdopen.c: Likewise.
10263         * libio/oldfileops.c: Likewise.
10264         * libio/oldstdfiles.c: Likewise.
10265         * libio/oldiofsetpos.c: Likewise.
10266         * libio/oldiofgetpos.c: Likewise.
10267         * libio/oldiofgetpos64.c: Likewise.
10268         * libio/oldiofsetpos64.c: Likewise.
10269         * libio/oldiopopen.c: Likewise.
10270         * libio/oldpclose.c: Likewise.
10271         * libio/oldtmpfile.c: Likewise.
10272         * libio/freopen.c (freopen): Likewise.
10273         * libio/iofclose.c (_IO_new_fclose): Likewise.
10274
10275         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10276         (reboot): Declare it.
10277
10278         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10279
10280         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10281
10282         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10283
10284         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10285         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10286         We need this for the sbrk decl, which can be included without Unix98.
10287
10288 2000-03-20  Richard Henderson  <rth@cygnus.com>
10289
10290         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10291         argument to yperr2nss is an int, not size_t.
10292         * posix/regex.c (print_partial_compiled_pattern): Cast all
10293         ptrdiff_t to long for printing.
10294         (print_compiled_pattern): Use Z for printing size_t.
10295         * posix/testfnm.c (tests): Avoid trigraphs.
10296         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10297         Use a C comment, not an assembly comment.
10298
10299         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10300         of __ASSUME_32BITUIDS.
10301
10302 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10303
10304         * libio/iofopncook.c: Remove K&R prototypes.
10305
10306 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10307
10308         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10309         an initial value of 1024 instead of RLIM_INFINITY.
10310
10311         * Versions.def (libmachuser, libhurduser): Remove these sections,
10312         since these libraries do not presently use symbol versions.
10313
10314         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10315         is RLIM_INFINITY, return -1 instead.
10316
10317 2000-03-24  Andreas Jaeger  <aj@suse.de>
10318
10319         * Makefile (postclean): Added soversions.i.
10320
10321 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10322
10323         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10324         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10325         and _FPU_IEEE.  Change _FPU_RESERVED.
10326
10327 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10328
10329         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10330
10331 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10332
10333         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10334         (gaih_inet): Remove unused duplicate variable.
10335
10336         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10337         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10338         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10339         only flavors supported by this function anyway.
10340
10341 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10342
10343         * stdlib/strfmon.c: Corrected problems with missing signs and
10344         missing or extra spaces; allow for sign strings longer than
10345         one character; add padding to ensure positive and negative
10346         formats are aligned when a left precision is used.
10347
10348 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10349
10350         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10351         Patch by John Mizel <John.Mizel@msdw.com>.
10352
10353 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10354
10355         * manual/install.texi: Remove references to crypt add-on.
10356
10357 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10358
10359         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10360         section while taking the _hurd_rlimit_lock.
10361         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10362
10363 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10364
10365         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10366         using $(LN_S).
10367
10368         * sysdeps/mach/hurd/if_index.c: New file.
10369
10370         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10371         * sysdeps/gnu/net/if.h: here.
10372         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10373         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10374         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10375         functions and `struct if_nameindex' type.
10376         * socket/Makefile (headers): Add net/if.h here.
10377         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10378         * sysdeps/mach/hurd/Dist: Remove it here.
10379         * sysdeps/unix/sysv/linux/Dist: And here.
10380         * sysdeps/generic/if_index.c: Include <net/if.h>.
10381
10382 2000-03-24  Andreas Jaeger  <aj@suse.de>
10383
10384         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10385         access relocated entries in l_info.
10386         (elf_machine_got_rel): Likewise.
10387         (elf_machine_runtime_setup): Likewise.
10388         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10389         (elf_machine_runtime_setup): Likewise.
10390         (__dl_runtime_resolve): Likewise.
10391
10392 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10393
10394         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10395         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10396         according to RFC 2553.
10397         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10398         * inet/getnameinfo.c: Likewise.
10399         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10400
10401 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10402
10403         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10404         Remove no-op pointer increment.
10405
10406 2000-03-23  Andreas Jaeger  <aj@suse.de>
10407
10408         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10409         follow change for libio.h from 2000-03-10.
10410
10411 2000-03-23  Andreas Jaeger  <aj@suse.de>
10412
10413         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10414         change.
10415         * elf/dl-debug.c: Likewise.
10416         * elf/dl-deps.c: Likewise.
10417         * elf/dl-error.c: Likewise.
10418         * elf/dl-fini.c: Likewise.
10419         * elf/dl-init.c: Likewise.
10420         * elf/dl-load.c: Likewise.
10421         * elf/dl-lookup.c: Likewise.
10422         * elf/dl-minimal.c: Likewise.
10423         * elf/dl-object.c: Likewise.
10424         * elf/dl-open.c: Likewise.
10425         * elf/dl-preinit.c: Likewise.
10426         * elf/dl-profile.c: Likewise.
10427         * elf/dl-profstub.c: Likewise.
10428         * elf/dl-reloc.c: Likewise.
10429         * elf/dl-runtime.c: Likewise.
10430         * elf/dl-support.c: Likewise.
10431         * elf/dl-symbol.c: Likewise.
10432         * elf/dl-version.c: Likewise.
10433         * elf/rtld.c: Likewise.
10434         * elf/sprof.c: Likewise.
10435         * sysdeps/generic/dl-cache.c: Likewise.
10436         * sysdeps/generic/dl-origin.c: Likewise.
10437         * sysdeps/generic/dl-sysdep.c: Likewise.
10438         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10439         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10440         * sysdeps/generic/libc-start.c: Likewise.
10441         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10442         * sysdeps/powerpc/dl-machine.c: Likewise.
10443         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10444         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10445         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10446         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10447
10448         * elf/ldsodefs.h: Move file to ...
10449         * sysdeps/generic/ldsodefs.h: ... here.
10450
10451         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10452
10453         * sysdeps/mips/elf/ldsodefs.h: New file.
10454
10455         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10456         entries in l_info.
10457         (_dl_check_map_versions): Likewise.
10458         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10459         * elf/dl-load.c (_dl_init_paths): Likewise.
10460         (_dl_map_object): Likewise.
10461         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10462         (elf_get_dynamic_info): Likewise.
10463         * elf/do-lookup.h (FCT): Likewise.
10464         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10465         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10466         * elf/dl-addr.c (_dl_addr): Likewise.
10467         * elf/dl-runtime.c (profile_fixup): Likewise.
10468         (fixup): Likewise.
10469         * elf/dl-init.c (_dl_init_next): Likewise.
10470         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10471         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10472         (DISTINGUISH_LIB_VERSIONS): Likewise.
10473         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10474         (elf_machine_rel): Likewise.
10475
10476         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10477         for writable dynamic section.
10478
10479 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10480
10481         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10482         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10483
10484 2000-03-22  Andreas Jaeger  <aj@suse.de>
10485
10486         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10487         from latest Linux kernel.
10488
10489 2000-03-21  Andreas Jaeger  <aj@suse.de>
10490
10491         * Versions.def: Add version 2.1.4.
10492
10493 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10494
10495         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10496         * libio/oldiofopen.c: Likewise.
10497         * libio/oldiofclose.c: Likewise.
10498         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10499
10500 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10501
10502         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10503         indicating the first version set to obsolete the conditionalized code.
10504         (compat_symbol): New macro.
10505         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10506         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10507         integer values to the ABI_* macros for supported versions.
10508         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10509         compat_symbol macro.
10510
10511 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10512
10513         * nscd/connections.c (nscd_run): Pretty print.
10514         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10515
10516         * manual/charset.texi: Fix typos.  Rephrase.
10517         * manual/process.texi: Likewise.
10518         * manual/signal.texi: Likewise.
10519         Patches by Mike Coleman <mkc@kc.net>.
10520
10521         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10522         versions.
10523         * libio/iofdopen.c: Likewise.
10524         * libio/iofgetpos.c: Likewise.
10525         * libio/iofgetpos64.c: Likewise.
10526         * libio/iofopen.c: Likewise.
10527         * libio/iofsetpos.c: Likewise.
10528         * libio/iofsetpos64.c: Likewise.
10529         * libio/iopopen.c: Likewise.
10530         * libio/oldiofopen.c: Likewise.
10531         * libio/pclose.c: Likewise.
10532         * sysdeps/gnu/siglist.c: Likewise.
10533         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10534
10535         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10536         chance to expand VERSION_##lib##_##version.
10537
10538         * libio/fileops.c: Use new macros from shlib-compat.h to define
10539         versions.
10540         * libio/iofclose.c: Likewise.
10541         * libio/oldiofclose.c: Likewise.
10542         Patch by Roland McGrath <roland@frob.com>.
10543
10544 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10545
10546         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10547         Lay out struct sigcontext according to what really gets passed on
10548         the stack.
10549         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10550         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10551         (prgregset_t, prfpregset_t): Define to elf_* types.
10552         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10553         Define to correct value.
10554         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10555         sigcontext.
10556         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10557
10558 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10559
10560         * scripts/firstversions.awk: Allow multiple version sets in the
10561         "earliest version" specification, meaning that version sets in the
10562         gaps between listed versions should be folded into the earliest later
10563         version that is explicitly listed.
10564         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10565         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10566
10567 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10568
10569         * iconv/gconv_builtin.c: Include <endian.h>.
10570         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10571         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10572         according to current platform.
10573         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10574         __gconv_transform_internal_ucs2reverse, and
10575         __gconv_transform_internal_ucs4le.
10576         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10577         __gconv_transform_ucs2reverse_internal and
10578         __gconv_transform_internal_ucs2reverse.
10579         * iconvdata/Makefile (modules): Add UNICODE.
10580         (distribute): Add unicode.c.
10581         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10582         * iconvdata/unicode.c: New file.
10583
10584         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10585         determine byte order of input and convert accordingly.
10586
10587         * iconvdata/utf-16.c (gconv_init): Fix typo.
10588
10589 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10590
10591         * iconvdata/gconv-modules: Fix typo.
10592
10593         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10594         more messages.
10595
10596         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10597
10598 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10599
10600         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10601
10602 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10603
10604         * misc/Makefile (routines): Add mincore.
10605
10606 2000-03-20  Andreas Jaeger  <aj@suse.de>
10607
10608         * sysdeps/generic/mincore.c: New stub file.
10609
10610         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10611         from latest Linux kernel.
10612
10613 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10614
10615         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10616         _SC_GETPW_R_SIZE_MAX.
10617
10618 2000-03-20  Richard Henderson  <rth@cygnus.com>
10619
10620         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10621         in GLIBC_2.1.4.
10622
10623 2000-03-20  Richard Henderson  <rth@cygnus.com>
10624
10625         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10626         of arithmetic instructions.
10627
10628         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10629         with the fpcr.  Protect from INV exception.
10630         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10631         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10632         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10633
10634         * sysdeps/alpha/fpu/s_copysign.c: New.
10635         * sysdeps/alpha/fpu/s_copysignf.c: New.
10636         * sysdeps/alpha/fpu/s_fabs.c: New.
10637         * sysdeps/alpha/fpu/s_fabsf.c: New.
10638         * sysdeps/alpha/fpu/s_rint.c: New.
10639         * sysdeps/alpha/fpu/s_rintf.c: New.
10640
10641         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10642
10643         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10644         Kill sethae.
10645         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10646         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10647         Use physical addresses not KSEG addresses.
10648         (io_system): Add PYXIS.
10649         (io): Remove hae.reg, sys, hae_shift.
10650         (stb_mb, stw_mb, stl_mb, __sethae): New.
10651         (inline_outb, inline_outw, inline_outl): Don't set hae.
10652         (inline_inb, inline_inw, inline_inl): Likewise.
10653         (dense_sethae): New null function.
10654         (struct cpuinfo_data): New.
10655         (process_cpuinfo): Use local and stack variables, not static.
10656         Move readlink check here from init_iosys.
10657         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10658         (_iopl): Simplify.
10659         (_hae_shift): Calculate it here.
10660         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10661         add pciconfig_iobase.
10662
10663 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10664
10665         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10666         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10667
10668         * scripts/versions.awk: Fixed version renaming code to distinguish
10669         libraries properly.
10670
10671 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10672
10673         * include/stdlib.h: Add prototype for __cxa_atexit.
10674
10675         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10676         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10677
10678 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10679
10680         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10681         existing rtld-installed-name.
10682         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10683         replace existing rtld-installed-name using $(symbolic-link-prog).
10684
10685 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10686
10687         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10688         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10689         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10690         but not the former.
10691
10692 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10693
10694         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10695         glob64.  Since there is no glob64 in the LFS proposal applications
10696         can assume that glob handles LFS situations.  glob64 is only needed
10697         if alternative filesystem functions are used.
10698
10699 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10700
10701         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10702         when GLOB_DOOFFS is set; correct handling of patterns
10703         containing escaped wildcards (and no unescaped ones);
10704         GLOB_ERR flag was being ignored in some situations.
10705
10706         * posix/globtest.c, posix/globtest.sh: Updated to include
10707         tests for the problems fixed by the above changes to glob.c.
10708
10709         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10710
10711 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10712
10713         * Makeconfig (soversion.i): Use only first match for each lib.
10714
10715         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10716
10717         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10718         rather than $(sysd-dirs-done) to protect these rules.
10719
10720         * Makerules (version-renames.def): Target removed.
10721         (Versions.all): Depend on soversions.i directly and parse it.
10722
10723         * Makeconfig (soversions.i): New target, input-reading parts of
10724         soversions.mk generation moved here; result is a canonicalized
10725         list "LIB VERSION [SET]" for this configuration.
10726         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10727         * Makerules (version-renames.def): New target, generated from
10728         soversions.i with contents that was in $(map-firstversions).
10729         (Versions.all): Don't depend on soversions.mk, depend on
10730         version-renames.def instead; just cat it into the input.
10731
10732         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10733         for $(map-firstversions), which better handles it being empty.
10734
10735         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10736         supported version for libc 0.2.90.libio to GLIBC_2.2.
10737
10738         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10739         and use it to emit new variable `map-firstversions'.
10740         * scripts/firstversions.awk: New file.
10741         * Makerules (Versions.all): Use scripts/firstversions.awk and
10742         the $(map-firstversions) value to generate a modified versions list
10743         that includes renames in "A = B" syntax for each version set earlier
10744         than the "earliest symbol version" named in shlib-versions.
10745         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10746         rename version set A to B in the output to the intermediate file.
10747         * scripts/abi-versions.awk: New file.
10748         * Makerules (abi-versions.h): New target, generated by that script.
10749         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10750         * include/shlib-compat.h: New file, uses that generated header.
10751
10752 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10753
10754         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10755         after stripping # comments, and then run it through cpp.
10756         This allows things like "%ifdef FOO" based on config.h settings.
10757         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10758
10759         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10760         and other errors that indicate a pseudo-receive happened, grok through
10761         the message buffer for port rights that need references fixed up.
10762
10763 2000-03-16  Andreas Jaeger  <aj@suse.de>
10764
10765         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10766
10767         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10768
10769         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10770         from latest Linux kernel.
10771         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10772
10773         * misc/sys/mman.h: Add prototype for mincore.
10774
10775 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10776
10777         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10778         entry for GLIBC_2.0 version of setrlimit.
10779         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10780
10781 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10782
10783         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10784         * nis/nss_compat/compat-initgroups.c: Likewise.
10785         * nis/nss_nis/nis-initgroups.c: Likewise.
10786         * nis/nss_nis/nis-netgrp.c: Likewise.
10787         * nis/nss_nis/nis-proto.c: Likewise.
10788         * nis/nss_nis/nis-rpc.c: Likewise.
10789         * nis/nss_nis/nis-service.c: Likewise.
10790         * nis/ypclnt.c: Likewise.
10791
10792 2000-03-16  Andreas Jaeger  <aj@suse.de>
10793
10794         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10795         doesn't exist, correct checks.  Fixes PR libc/1649.
10796
10797 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10798
10799         * nscd/hstcache.c: Restore correct UID.
10800         * nscd/pwdcache.c: Likewise.
10801         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10802
10803 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10804
10805         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10806         macros for register names, in line with 2000-03-14 linux change.
10807
10808         * sysdeps/mach/sched_yield.c: New file.
10809
10810 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10811
10812         * sysdeps/generic/lockfile.c: Include <stdio.h>
10813         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10814         case <libio.h> defined them.
10815         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10816         from __internal_*.
10817         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10818         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10819
10820         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10821         for more pleasing parse error.
10822
10823 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10824
10825         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10826         memory for eras.
10827         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10828
10829         * elf/Makefile: Add rules to compile and run constload1 test.
10830         * elf/constload1.c: New file.
10831         * elf/constload2.c: New file.
10832         * elf/constload3.c: New file.
10833
10834 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10835
10836         * sysdeps/posix/open64.c: Make __open64 weak alias.
10837         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10838         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10839         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10840         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10841         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10842         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10843         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10844         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10845         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10846         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10847
10848 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10849
10850         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10851         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10852
10853 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10854
10855         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10856         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10857
10858 2000-03-08  Andreas Jaeger  <aj@suse.de>
10859
10860         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10861
10862 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10863
10864         * timezone/africa: Update from tzdata2000d.
10865         * timezone/asia: Likewise.
10866         * timezone/australasia: Likewise.
10867         * timezone/europe: Likewise.
10868         * timezone/northamerica: Likewise.
10869         * timezone/southamerica: Likewise.
10870
10871         * po/fr.po: Update from translation team.
10872         * po/de.po: Likewise.
10873
10874         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10875         last parameter.  Move code to add map to global scope from here...
10876         * elf/dl-open.c (dl_open_worker): ...here.
10877         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10878         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10879
10880         * locale/programs/ld-collate.c (collate_read): Fix warning.
10881
10882         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10883         values and macros for register names.
10884
10885         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10886         returned by seek cookie function is -1.
10887
10888 2000-03-14  Andreas Jaeger  <aj@suse.de>
10889
10890         * locale/localeconv.c (localeconv): Fix typo.
10891         Reported by Andre Charbonneau <andrec@corel.com>.
10892
10893 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10894
10895         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10896         since modules depend on it counting the number of times the conversion
10897         function got called.
10898
10899         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10900
10901         * iconv/gconv.h: Pretty print.
10902
10903 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10904
10905         * posix/wordexp-test.c: Correct one of the tests added in the last
10906         change.  Really get the root passwd entry to check again ~root.
10907
10908 2000-03-10  Andreas Jaeger  <aj@suse.de>
10909
10910         * manual/filesys.texi (Working Directory): Fix last patch.
10911         Patch by Martin Buchholz  <martin@xemacs.org>.
10912
10913 2000-03-10  Andreas Jaeger  <aj@suse.de>
10914
10915         * manual/creature.texi (Feature Test Macros): Fix language.
10916
10917 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10918
10919         * mach/devstream.c (devstream_write, devstream_read): New functions.
10920         (input, output): Functions removed.
10921         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10922         using only the vanilla fopencookie interface.
10923
10924         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10925         as macro for __io_functions.
10926         (funcsio): Use cookie_io_functions_t type name.
10927         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10928
10929         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10930         fopencookie.
10931         (fopencookie): Use it.
10932         * libio/libio.h: Declare _IO_cookie_init.
10933         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10934         _IO_cookie_init.
10935
10936         * libio/libio.h (__io_seek_fn): Fix second argument type
10937         to be a pointer, in line with the manual and the old stdio.
10938         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10939
10940         * sysdeps/generic/bits/stdio-lock.h: New file.
10941         This is a stub with #error, but that's better than no file at all.
10942
10943 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10944
10945         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10946         * manual/message.texi (Using gettextized software): Doc Fixes.
10947         * manual/message.texi (Message Translation): Doc Fixes.
10948         * manual/filesys.texi (File Size): Doc Fixes.
10949         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10950         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10951         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10952         * manual/install.texi: Doc Fixes.
10953         * manual/search.texi (Hash Search Function): Doc Fixes.
10954         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10955         * FAQ.in: Doc Fixes.
10956         * config.h.in: Doc Fixes.
10957         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10958         Doc Fixes.  `allows to' is not correct English.
10959
10960         * elf/rtld.c: Doc fixes.
10961         * manual/creature.texi (Feature Test Macros): Doc fixes.
10962         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10963
10964         * manual/filesys.texi (Working Directory): Check for ERANGE to
10965         avoid infloop.
10966
10967 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10968
10969         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10970         conditions so as not to clobber the final '\0' when there is only one
10971         element in the vector.
10972
10973 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10974
10975         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10976         broken by 2000-02-27 change.
10977
10978         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10979
10980 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10981
10982         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10983         argument type, for 2000-02-22 change in signal/signal.h declaration.
10984
10985 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10986
10987         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10988         to getdirentries64 (no __), since the Linux implementation
10989         has no __ name, and there is no declaration for the __ name.
10990
10991         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10992
10993         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10994         sed regexp so as not to break directory names including /../ within.
10995
10996         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10997         The sysdeps/generic file is right for BSD.  This file was in fact the
10998         Hurd file, but the only difference was the WNOREAP flag that was never
10999         actually implemented or used anywhere.
11000
11001         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11002         since AC_PATH_PROG already does it for us.
11003         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11004         correctness and sh portability.  I replaced the broken check
11005         with a more sensible implementation of the apparently intended
11006         semantics, which might still be questionable.  Using expr causes
11007         a non-numeric value for `perl -V:apiversion` to be accepted,
11008         refusing to use only a perl that reports a number less than 5;
11009         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11010         * configure: Regenerated.
11011
11012 2000-03-08  Andreas Jaeger  <aj@suse.de>
11013
11014         * manual/crypt.texi: Fix paths.
11015
11016 2000-03-07  Andreas Jaeger  <aj@suse.de>
11017
11018         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11019         were swapped.
11020         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11021         libc/1636.
11022
11023 2000-03-06  Andreas Jaeger  <aj@suse.de>
11024
11025         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11026         in __sgn1l, otherwise g++ fails to parse this.
11027         Reported by Sean Chen <sean.chen@turbolinux.com>.
11028
11029 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11030
11031         * configure.in: Compute sizeof-long-double.
11032         * configure: Regenerated.
11033         * config.make.in: Make sizeof-long-double available to sub-makes.
11034
11035 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11036
11037         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11038         call.
11039
11040 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11041
11042         * Makeconfig (rpath-dirs): Add crypt.
11043         (all-subdirs): Remove md5crypt.
11044         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11045         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11046         * sysdeps/generic/crypt-entry.c: Delete.
11047         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11048         * sysdeps/generic/crypt.h: Delete.
11049         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11050         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11051         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11052         * sysdeps/generic/des_impl.c: Delete.
11053         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11054         * crypt/sysdeps: Delete.
11055         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11056         * md5-crypt/Versions: Move to crypt/.
11057         * md5-crypt/md5-crypt.c: Move to crypt/.
11058         * md5-crypt/md5.c: Move to crypt/.
11059         * md5-crypt/md5c-test.c: Move to crypt/.
11060         * md5-crypt/md5test.c: Move to crypt/.
11061         * md5-crypt: Delete.
11062         * crypt/Makefile: Adjust for new structure.
11063
11064 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11065
11066         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11067         define to 1 if not defined.
11068
11069 2000-03-03  Andreas Jaeger  <aj@suse.de>
11070
11071         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11072
11073 2000-03-03  Andreas Jaeger  <aj@suse.de>
11074
11075         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11076         cases.
11077         (xdr_int64_t): Correctly handle lower half.
11078         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11079
11080 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11081
11082         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11083         call.
11084
11085 2000-03-02  Andreas Jaeger  <aj@suse.de>
11086
11087         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11088         2.3.43.
11089
11090 2000-03-02  Andreas Jaeger  <aj@suse.de>
11091
11092         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11093
11094 2000-03-01  Andreas Jaeger  <aj@suse.de>
11095
11096         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11097         (tests): Added tst-getdate.
11098
11099         * time/tst-getdate.c: New file.
11100
11101         * time/datemsk: New file, needed for tst-getdate.
11102
11103 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11104
11105         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11106
11107 2000-02-17  H.J. Lu  <hjl@gnu.org>
11108
11109         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11110
11111         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11112         available.
11113         (svcudp_recv): Set up message with the new "xp_pad" field for
11114         IP_PKTINFO.
11115         (svcudp_reply): Support IP_PKTINFO if available.
11116
11117 2000-03-01  Andreas Jaeger  <aj@suse.de>
11118
11119         * time/getdate.c (check_mday): Fix check for february.
11120         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11121         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11122
11123 2000-03-02  Andreas Jaeger  <aj@suse.de>
11124
11125         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11126         g++ fails to parse this.
11127         Reported by Sean Chen <sean.chen@turbolinux.com>.
11128
11129 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11130
11131         * io/creat.c: Moved to...
11132         * sysdeps/generic/creat.c: ...here.
11133         * io/creat64.c: Moved to...
11134         * sysdeps/generic/creat64.c: ...here.
11135         * io/lockf.c: Moved to...
11136         * sysdeps/generic/lockf.c: ...here.
11137
11138         * crypt/crypt.texi: Moved to...
11139         * manual/crypt.texi: ...here.
11140         * crypt/examples/genpass.c: Moved to...
11141         * manual/examples/genpass.c: ...here.
11142         * crypt/examples/mygenpass.c: Moved to...
11143         * manual/examples/mygenpass.c: ...here.
11144         * crypt/examples/testpass.c: Moved to...
11145         * manual/examples/testpass.c: ...here.
11146
11147         * manual/Makefile (chapters): Add crypt.
11148         * manual/conf.texi: Add usual header for not-last chapter.
11149         * manual/crypt.texi: Add special header for last chapter.
11150
11151 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11152
11153         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11154         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11155         complain if there is no crypt add-on.
11156         * crypt/configure: Removed.
11157
11158         * crypt/crypt.texi: Update documentation of US export restrictions
11159         to match the 14 Jan 2000 regulations.
11160
11161 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11162
11163         * crypt: New subdirectory, merged in from the crypt add-on.
11164
11165 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11166
11167         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11168
11169
11170 See ChangeLog.10 for earlier changes.