Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
2
3         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
4         take longer.
5
6         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
7         __extension__ to _Complex_I definition since gcc warns if -pedantic.
8         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
9         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
10
11         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
12         necessary.  Move includes of POSIX and Unix limits files to the
13         end.
14         * stdlib/Makefile (tests): Add tst-limits.
15         * stdlib/tst-limits.h: New file.
16
17 2000-09-15  Andreas Jaeger  <aj@suse.de>
18
19         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
20
21         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
22
23 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
24
25         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
26         clobber.
27         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
28         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
29
30 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
31
32         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
33         (tests): Add next.
34         (modules-names): Add nextmod1 and nextmod2.
35         Add rules to build and run next.
36         * elf/next.c: New file.
37         * elf/nextmod1.c: New file.
38         * elf/nextmod2.c: New file.
39
40 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
41
42         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
43
44 2000-09-15  Andreas Jaeger  <aj@suse.de>
45
46         * sysdeps/mips/fpu/fenv_libc.h: New file.
47         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
48         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
49         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
50
51         * sysdeps/mips/fpu/feenablxcpt.c: New file.
52         * sysdeps/mips/fpu/fegetexcept.c: New file.
53         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
54
55 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
56
57         * intl/Makefile: Avoid unnecessary test reruns.
58
59         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
60
61         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
62         to not use sysctl().  Too many architectures have problems with it.
63
64 2000-09-14  Andreas Jaeger  <aj@suse.de>
65
66         * scripts/config.sub: New version from subversions.gnu.org.
67
68         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
69         long.
70
71 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
72
73         * posix/regex.c (compile_range): Cast collseq index to unsigned char
74         to avoid accessing data before collseq.
75
76         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
77         pasting strings together.
78
79 2000-09-14  Greg McGary  <greg@mcgary.org>
80
81         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
82         copyright notice.
83         * sysdeps/generic/bp-semctl.h: Likewise.
84         * sysdeps/generic/bp-start.h: Likewise.
85         * sysdeps/generic/bp-sym.h: Likewise.
86         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
87         rename prototype.
88
89 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
90
91         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
92         don't fail.
93
94         * elf/elf.h: Add missing official relocations.
95
96         * libio/stdio.h: Define __FILE if __need___FILE is defined.
97         * stdio/stdio.h: Likewise.
98         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
99         * include/stdio.h: Handle __need___FILE like __need_FILE.
100         * include/wchar.h: Use __FILE instead of FILE.
101         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
102         * libio/fwscanf.c: Likewise.
103         * libio/getwc.c: Likewise.
104
105         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
106         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
107         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
108
109         * assert/assert.h: Update comment header about ISO C section.
110         * math/complex.h: Likewise.
111         * ctype/ctype.h: Likewise.
112         * include/errno.h: Likewise.
113         * include/limits.h: Likewise.
114         * locale/locale.h: Likewise.
115         * math/math.h: Likewise.
116         * setjmp/setjmp.h: Likewise.
117         * signal/signal.h: Likewise.
118         * stdio/stdio.h: Likewise.
119         * libio/stdio.h: Likewise.
120         * stdlib/stdlib.h: Likewise.
121         * string/string.h: Likewise.
122         * time/time.h: Likewise.
123         * wcsmbs/wchar.h: Likewise.
124         * wctype/wctype.h: Likewise.
125         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
126
127 2000-09-13  Andreas Jaeger  <aj@suse.de>
128
129         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
130         for no more entries.
131         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
132         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
133         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
134
135 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
136
137         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
138         constant since this is what clock_t is.
139         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
140         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
141         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
142         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
143
144         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
145         definitions are requested.
146
147 2000-09-13  Andreas Jaeger  <aj@suse.de>
148
149         * shlib-versions: libBrokenLocale needs minimal version for ia64,
150         sparc64 and sh to synch with libc.
151
152 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
153
154         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
155         (distribute): Add iso-2022-cn-ext.c.
156         Add definitions to compile the new module.
157         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
158         * iconvdata/iso-2022-cn-ext.c: New file.
159         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
160         ucs4_from_isoir165.  Increment input pointer if successful.
161
162         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
163
164         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
165
166 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
167
168         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
169         __syscall_getdents64 wrapper.
170
171         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
172
173 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
174
175         * iconvdata/gb18030.c: Many many changes.  Make consistent with
176         charmap and with itself.
177         * iconvdata/tst-tables.sh: Test GB18030.
178
179 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
180
181         * iconv/skeleton.c: Fix last patch, add missing parameter to
182         unaligned function call.
183
184 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
185
186         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
187         of decimal ellipsis.
188
189 2000-09-11  Bruno Haible <haible@clisp.cons.org>
190
191         * locale/programs/ld-collate.c (collate_read): Always initialize
192         error_section.next.
193
194 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
195
196         * locale/programs/ld-collate.c (collate_finish): Upper bound for
197         ruleidx is 128, not 256.
198
199 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
200
201         * locale/programs/ld-collate.c (collate_read): Correct check for
202         already inserted entries.
203
204 2000-09-10  Bruno Haible <haible@clisp.cons.org>
205
206         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
207         second try as well.
208
209 2000-09-10  Bruno Haible <haible@clisp.cons.org>
210
211         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
212         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
213
214 2000-09-10  Bruno Haible <haible@clisp.cons.org>
215
216         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
217         SAVE_RESET_STATE.
218
219 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
220
221         * iconvdata/utf-7.c: New file.
222         * iconvdata/gconv-modules (UTF-7): New module entries.
223         * iconvdata/Makefile (modules): Add UTF-7.
224         (distribute): Add utf-7.c.
225         * iconvdata/testdata/UTF-7: New file.
226         * iconvdata/testdata/UTF-7..UTF8: New file.
227         * iconvdata/TESTS (UTF-7): New entry.
228         * iconvdata/run-iconv-test.sh: Fix confusing output.
229
230 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
231
232         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
233
234 2000-09-10  David S. Miller  <davem@redhat.com>
235
236         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
237         frame pointer offset for non-fast path.
238
239 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
240
241         * locale/programs/3level.h (*_init): Initialize level1, level2,
242         and level3 as well.
243         (*_add): Remove a few unnecessary conditionals.
244
245 2000-09-05  Wolfram Gloger  <wg@malloc.de>
246
247         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
248         ensure usability of mutex as an `in use' flag.
249
250 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
251
252         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
253
254         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
255         ugly GMON_WEAK_START hack.
256         Patch by Philip Blundell <philb@gnu.org>.
257
258         * sysdeps/i386/i486/bits/string.h: Pretty printing.
259
260 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
261
262         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
263         and PPC_ICBI asm for broken compilers.
264         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
265
266 2000-09-09  Andreas Jaeger  <aj@suse.de>
267
268         * manual/message.texi (Advanced gettext functions): Fix typo.
269
270         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
271         strncpy prototype.
272
273 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
274
275         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
276         warnings.
277         * sysdeps/ia64/memccpy.S: Likewise.
278         Patches by Jim Wilson <wilson@redhat.com>.
279
280         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
281         before trying to read /proc.
282         Patch by Matt Wilson <msw@redhat.com>.
283         * include/sys/utsname.h: Declare __uname.
284         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
285         * sysdeps/mach/hurd/uname.c: Likewise.
286         * sysdeps/unix/syscalls.list: Likewise.
287
288         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
289         unloading a bit.
290
291 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
292
293         * posix/getopt.c (_getopt_internal): When long_only is set always
294         recognize conflicts just like before.
295
296 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
297
298         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
299
300 2000-09-08  Greg McGary  <greg@mcgary.org>
301
302         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
303         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
304         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
305
306 2000-09-08  Andreas Jaeger  <aj@suse.de>
307
308         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
309
310         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
311
312         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
313         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
314         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
315
316 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
317
318         * iconvdata/tst-tables.sh: Enable EUC-KR test.
319
320         * elf/dl-load.c (lose): Decrement _nl_loaded.
321         (_dl_map_object_from_fd): Don't try to dlopen executables.
322
323         * iconvdata/tst-tables.sh: Actually return with an error if
324         something goes wrong.
325         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
326         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
327
328         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
329
330         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
331         * iconvdata/tst-table-from.c: Include <string.h>.
332         (try): Correct cast in iconv call.
333
334         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
335         too.
336         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
337         (sysdep_routines): Remove dl-start.
338         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
339
340         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
341
342         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
343         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
344
345 2000-09-06  Andreas Schwab  <schwab@suse.de>
346
347         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
348
349 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
350
351         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
352
353         * scripts/config.sub: Strip out -unknown for Linux targets.
354         Patch by Scott Bambrough <scottb@netwinder.org>.
355
356         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
357         add one more test.
358
359 2000-09-07  Andreas Jaeger  <aj@suse.de>
360
361         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
362
363         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
364         syscalls.
365
366         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
367
368         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
369         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
370
371         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
372
373         * stdlib/tst-bsearch.c (main): Add more test cases.
374
375         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
376         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
377         Reported by GOTO Masanori <gotom@debian.or.jp>.
378
379 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
380
381         * posix/Makefile (tests): Add tst-dir.
382         (tst-dir-ARGS): New variable.
383         * posix/tst-dir.c: New file.
384
385 2000-09-07  Andreas Jaeger  <aj@suse.de>
386
387         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
388         (SYS_fcntl64): New.
389
390         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
391
392 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
393
394         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
395         use the hack with tryopen_o_directory to determine at runtime
396         whether it works.
397         * sysdeps/unix/sysv/linux/opendir.c: New file.
398         * sysdeps/unix/sysv/linux/kernel-features.h: Define
399         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
400
401         * catgets/Depend: New file.  Add intl.
402         * catgets/Makefile (tests): Add tst-catgets.
403         (generated): Remove de.msg.
404         (generated-dirs): Add de.
405         Add dependency if tst-catgets output on de/libc.cat.
406         * catgets/tst-catgets.c: New file.
407
408         * po/ja.po: New file.
409         * po/el.po: Update from translation team.
410
411         * wcsmbs/Depend: New file.
412         * wcsmbs/Makefile (tests): Add tst-btowc.
413         (tst-btowc-ENV): Define.
414         * wcsmbs/tst-btowc.c: New file.
415
416         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
417         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
418
419         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
420
421         * stdlib/Makefile (tests): Add tst-bsearch.
422         * stdlib/tst-bsearch.c: New file.
423
424         * posix/getopt.c (_getopt_internal): Don't recognize an option
425         name as ambiguous if it's a prefix for more than one name but the
426         other struct option values are identical.
427
428         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
429         Don't depend on visual inspection of the output file to recognize
430         errors.
431         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
432
433 2000-09-06  Andreas Jaeger  <aj@suse.de>
434
435         * sysdeps/alpha/soft-fp/Dist: New file.
436         * sysdeps/i386/soft-fp/Dist: New file.
437         * sysdeps/mips/mips64/soft-fp/Dist: New file.
438         * sysdeps/mips/soft-fp/Dist: New file.
439         * sysdeps/powerpc/soft-fp/Dist: New file.
440         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
441         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
442
443         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
444         Use sysdep_routines instead of routines to fix make dist failure.
445         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
446         out code).
447         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
448
449         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
450         sysdep_headers instead of headers for make dist.
451
452         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
453         Likewise.
454
455 2000-09-06  Andreas Schwab  <schwab@suse.de>
456
457         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
458
459 2000-09-06  Andreas Jaeger  <aj@suse.de>
460
461         * soft-fp/Makefile (distribute): Remove ChangeLog.
462
463         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
464         sysdep_routines instead of routines for make dist.
465
466 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
467
468         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
469         compatibility check for old stream and call _IO_wide in doubt.
470         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
471         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
472         needed tst for such an old structure and don't do anything.
473         * libio/freopen.c: Remove declaration of _IO_stdin_used.
474
475 2000-09-06  Andreas Jaeger  <aj@suse.de>
476
477         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
478         sysdep-dl-routines and sysdep_routines instead of rtld-routines
479         and dl-routines.
480
481         * soft-fp/ChangeLog: Merged with this file.
482
483 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
484
485         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
486
487         * soft-fp/Makefile (distribute): Add the math functions, too.
488
489         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
490
491 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
492
493         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
494         as a statement.
495
496         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
497         * soft-fp/sysdeps/powerpc/q_*: New files.
498
499 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
500
501         * stdio-common/vfprintf.c (process_string_arg): Handle precision
502         in wide char case correctly.  Don't allocate too long temporary
503         strings with alloca.
504
505         * stdio-common/Makefile (tests): Add tst-swprintf.
506         (tst-swprintf-ENV): New variable.
507         * stdio-common/tst-swprintf.c: New file.
508
509 2000-09-05  Andreas Jaeger  <aj@suse.de>
510
511         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
512         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
513         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
514
515 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
516
517         * configure.in: Strip out "unknown" from configuration names.
518
519 2000-09-05  Andreas Jaeger  <aj@suse.de>
520
521         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
522
523         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
524         * sysdeps/sparc/sparc32/Implies: Likewise.
525         * sysdeps/powerpc/Implies: Likewise.
526
527         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
528         * libio/oldiofgetpos64.c: Likewise.
529
530         * soft-fp/Makefile (distribute): Remove configure.
531
532         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
533
534         * soft-fp/configure: Remove.
535
536         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
537         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
538
539         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
540         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
541
542         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
543         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
544
545         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
546         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
547
548         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
549         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
550
551         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
552         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
553
554         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
555         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
556
557         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
558         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
559
560         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
561         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
562
563         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
564         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
565
566         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
567         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
568
569         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
570         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
571
572         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
573         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
574
575         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
576         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
577
578         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
579         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
580
581         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
582         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
583
584         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
585         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
586
587         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
588         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
589
590         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
591         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
592
593         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
594         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
595
596         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
597         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
598
599         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
600         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
601
602         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
603         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
604
605         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
606         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
607
608         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
609         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
610
611         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
612         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
613
614         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
615         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
616
617         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
618         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
619
620         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
621         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
622
623         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
624         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
625
626         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
627         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
628
629         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
630         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
631
632         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
633         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
634
635         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
636         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
637
638         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
639         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
640
641         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
642         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
643
644         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
645         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
646
647         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
648         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
649
650         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
651         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
652
653         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
654         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
655
656         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
657         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
658
659         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
660         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
661
662         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
663         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
664
665         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
666         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
667
668         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
669         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
670
671         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
672         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
673
674         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
675         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
676
677         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
678         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
679
680         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
681         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
682
683         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
684         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
685
686         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
687         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
688
689         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
690         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
691
692         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
693         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
694
695         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
696         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
697
698         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
699         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
700
701         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
702         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
703
704         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
705         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
706
707         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
708         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
709
710         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
711         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
712
713         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
714         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
715
716         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
717         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
718
719         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
720         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
721
722         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
723         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
724
725         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
726         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
727
728         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
729         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
730
731         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
732         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
733
734         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
735         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
736
737         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
738         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
739
740         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
741         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
742
743         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
744         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
745
746         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
747         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
748
749         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
750         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
751
752         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
753         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
754
755         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
756         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
757
758         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
759         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
760
761         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
762         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
763
764         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
765         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
766
767         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
768         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
769
770         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
771         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
772
773         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
774         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
775
776         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
777         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
778
779         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
780         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
781
782         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
783         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
784
785         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
786         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
787
788         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
789         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
790
791         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
792         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
793
794         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
795         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
796
797         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
798         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
799
800         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
801         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
802
803         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
804         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
805
806         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
807         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
808
809         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
810         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
811
812         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
813         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
814
815         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
816         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
817
818         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
819         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
820
821         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
822         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
823
824         * soft-fp/sysdeps/powerpc/Versions: Move from here...
825         * sysdeps/powerpc/soft-fp/Versions: ... to here.
826
827         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
828         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
829
830         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
831         change symbol version.
832         * libio/oldiofgetpos64.c: Likewise.
833         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
834
835         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
836         typo.
837         Reported by dyky@kondara.org, closes PR libc/1886.
838
839         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
840         libc/1880.
841
842 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
843
844         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
845         script when ^C is hit.
846
847         * locale/programs/localedef.c (construct_output_path): Correct
848         computation of endp after asprintf.
849         * locale/programs/locfile.c (write_locale_data): Don't add extra
850         slash in filename.
851
852 2000-09-05  Andreas Jaeger  <aj@suse.de>
853
854         * scripts/config.guess: New upstream version.
855         * scripts/config.sub: Likewise.
856         * manual/texinfo.tex: Likewise.
857
858 2000-09-04  Andreas Schwab  <schwab@suse.de>
859
860         * elf/Makefile (all-dl-routines): New variable.
861         (elide-routines.os): Use it instead of $(dl-routines).
862         (all-rtld-routines): New variable.
863         (extra-objs): Use it instead of $(rtld-routines).
864         ($(objpfx)dl-allobjs.os): Likewise.
865         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
866         sysdep-dl-routines and sysdep_routines instead of rtld-routines
867         and dl-routines.
868
869 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
870
871         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
872         Set fname to NULL if the module wasn't found.
873
874 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
875
876         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
877         true if trans->name already ends in ".so".
878
879 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
880
881         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
882         void.
883         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
884         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
885         (__gconv_release_shlib): Change return type to void.
886         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
887         step->__counter here.
888         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
889         if the reference is zero.
890         (release_step): New function.
891         (gen_steps): Always initialize the __counter to 1. Use release_step.
892         Don't call the destructor on the step whose initializer failed.
893         (increment_counter): Use release_step. Don't normally run destructors
894         here.
895         (__gconv_close_transform): Use release_step.
896
897 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
898
899         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
900         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
901
902 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
903
904         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
905         If the first byte is 0x8E, don't ask for 4 bytes until it has been
906         verified that the second byte is valid. Leave it to cns11643_to_ucs4
907         to check for incomplete input.
908         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
909         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
910         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
911         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
912         0x9f9d..0x9fa5.
913         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
914         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
915         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
916         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
917         upto index 0x0052.
918
919 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
920
921         * iconv/gconv_db.c (find_derivation): Always use the least-cost
922         solution.
923
924 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
925
926         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
927         are invalid.
928
929 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
930
931         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
932         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
933         U+007E.
934
935 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
936
937         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
938
939 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
940
941         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
942
943 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
944
945         * iconvdata/tst-tables.sh: New file.
946         * iconvdata/tst-table.sh: New file.
947         * iconvdata/tst-table-from.c: New file.
948         * iconvdata/tst-table-to.c: New file.
949         * iconvdata/tst-table-charmap.sh: New file.
950         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
951         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
952         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
953         ISIRI-3342.irreversible, SJIS.irreversible.
954         (tests): Add dependency on tst-tables.out.
955         (tst-tables.out, tst-tables-clean): New rules.
956         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
957         * iconvdata/ISIRI-3342.irreversible: New file.
958         * iconvdata/EUC-JP.irreversible: New file.
959         * iconvdata/SJIS.irreversible: New file.
960
961 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
962
963         * manual/locale.texi (General Numeric): Update description of
964         representation of the grouping information in the locale data.
965         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
966
967 2000-09-04  Andreas Jaeger  <aj@suse.de>
968
969         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
970         * iconv/iconv_prog.c (options): Fix typo.
971         Reported by dyky@kondara.org, closes PR libc/1885.
972
973 2000-09-04  Andreas Jaeger  <aj@suse.de>
974
975         * sysdeps/generic/fegetenv.c: It's __fegetenv.
976         Reported by Rob Levin <lilo@transvirtual.com>.
977
978 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
979
980         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
981         to the typedefs of __timezone_ptr_t.
982         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
983
984 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
985
986         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
987         the loop.
988
989 2000-09-01  H.J. Lu  <hjl@gnu.org>
990
991         * Makeconfig (built-program-cmd): Don't use the dynamic linker
992         to run a binary if it is in $(tests-static).
993
994         * Rules (binaries-static): Add $(tests-static).
995
996 2000-09-02  Andreas Jaeger  <aj@suse.de>
997
998         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
999
1000         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1001         patch.
1002
1003 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1004
1005         * iconvdata/big5hkscs.c: Regenerated from charmap.
1006         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1007         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1008
1009         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1010         statement.  General cleanup.
1011
1012 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1013
1014         * wctype/wcfuncs.c (iswblank): New function.
1015         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1016         * wctype/wcextra.c: Remove file.
1017         * wctype/wcextra_l.c: Remove file.
1018         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1019
1020 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1021
1022         * locale/programs/ld-collate.c (collate_output): Remove redundant
1023         assert call.
1024         * string/strcoll.c: Likewise.
1025         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1026         string/strcoll.c.
1027
1028 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1029
1030         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1031         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1032         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1033         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1034         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1035         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1036         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1037         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1038         _NL_CTYPE_GAP5/6 respectively.
1039
1040         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1041         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1042         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1043         Don't initialize __ctype_names and __ctype_width.
1044         * wctype/cname-lookup.h: Remove file.
1045         * wctype/Makefile (distribute): Remove cname-lookup.h.
1046         * wctype/wchar-lookup.h: Include stdint.h.
1047         * wctype/wctype.c (__wctype): Assume new locale format.
1048         * wctype/wctype_l.c (__wctype_l): Likewise.
1049         * wctype/iswctype.c: Don't include cname-lookup.h.
1050         (__iswctype): Assume new locale format.
1051         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1052         (__iswctype_l): Assume new locale format.
1053         * wctype/wctrans.c: Don't include ctype.h.
1054         (wctrans): Assume new locale format.
1055         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1056         * wctype/towctrans.c: Don't include cname-lookup.h.
1057         (__towctrans): Assume new locale format.
1058         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1059         (__towctrans_l): Assume new locale format.
1060         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1061         localeinfo.h instead.
1062         (__NO_WCTYPE): Remove unused macro.
1063         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1064         declarations.
1065         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1066         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1067         (towlower, towupper): Likewise.
1068         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1069         localeinfo.h instead.
1070         (__NO_WCTYPE): Remove unused macro.
1071         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1072         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1073         __iswxdigit_l): Assume new locale format.
1074         (__towlower_l, __towupper_l): Likewise.
1075         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1076         (__ctype32_b): Remove declaration.
1077         (internal_wcwidth): Assume new locale format.
1078         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1079         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1080         to map32_b, rename width_3level to width.
1081         (ctype_output): Always create new locale format. Don't emit
1082         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1083         (allocate_arrays): Always create new locale format.
1084
1085         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1086         * locale/weightwc.h (findidx): Assume new locale format.
1087         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1088         names.
1089         * string/strxfrm.c (wcsxfrm): Likewise.
1090         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1091         local variable collseq to 'const char *'.
1092         (SUFFIX): Don't use, don't undefine.
1093         * posix/fnmatch.c: Remove SUFFIX definition.
1094         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1095         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1096         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1097         (collate_finish): Always create new locale format. Remove local
1098         variables min_total, act_size.
1099         (collate_output): Always create new locale format. Remove local
1100         variables table_size, names, tablewc. Rename tablewc_3level to
1101         tablewc.
1102
1103 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1104
1105         * locale/programs/ld-collate.c (obstack_int32_grow,
1106         obstack_int32_grow_fast): New inline functions.
1107         (output_weightwc, collate_output): Use them where possible.
1108
1109 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1110
1111         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1112         patch (_mode -> _flags).
1113
1114         * libio/Makefile (headers): Add stdio_ext.h.
1115         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1116         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1117         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1118         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1119         __fsetlocking, and _flushlbf.
1120         * libio/__fbufsize.c: New file.
1121         * libio/__flbf.c: New file.
1122         * libio/__fpending.c: New file.
1123         * libio/__fpurge.c: New file.
1124         * libio/__freadable.c: New file.
1125         * libio/__freading.c: New file.
1126         * libio/__fsetlocking.c: New file.
1127         * libio/__fwritable.c: New file.
1128         * libio/__fwriting.c: New file.
1129         * libio/stdio_ext.h: New file.
1130         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1131         * libio/libio.h (_IO_USER_LOCK): Define.
1132         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1133         test _IO_USER_LOCK flag first.
1134
1135         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1136         malloc fails.
1137
1138 2000-09-01  Andreas Jaeger  <aj@suse.de>
1139
1140         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1141
1142         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1143
1144 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1145
1146         * math/Makefile (tests): Add tst-defintions.
1147         * math/tst-definitions.c: New file.
1148
1149         * stdlib/Makefile (headers): Add bits/wchar.h.
1150         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1151         * sysdeps/generic/bits/wchar.h: New file.
1152         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1153         file to define WCHAR_MIN and WCHAR_MAX.
1154         Change UINT*8_MAX and UIN*16_MAX value to type int.
1155         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1156         file to define WCHAR_MIN and WCHAR_MAX.
1157         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1158         int values.
1159         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1160         * sysdeps/generic/bits/mathdef.h: Likewise.
1161         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1162         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1163         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1164         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1165         * locale/locale.h (struct lconv): Add __ prefix to the new members
1166         if not C99.
1167         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1168         imaxdiv optimizations.
1169         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1170         * sysdeps/wordsize-64/ldiv.c: Likewise.
1171         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1172         const fenv_t*.
1173         * sysdeps/generic/bits/fenv.h: Likewise.
1174         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1175         * sysdeps/ia64/bits/fenv.h: Likewise.
1176         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1177         * sysdeps/mips/bits/fenv.h: Likewise.
1178         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1179         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1180         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1181
1182         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1183         * inet/ruserpass.c: Likewise.
1184         * catgets/open_catalog.c: Likewise.
1185         * intl/loadmsgcat.c: Likewise.
1186         * io/getdirname.c: Likewise.
1187         * locale/loadlocale.c: Likewise.
1188         * misc/getusershell.c: Likewise.
1189         * stdlib/canonicalize.c: Likewise.
1190         * sysdeps/posix/euidaccess.c: Likewise.
1191         * sysdeps/posix/isfdtype.c: Likewise.
1192         * sysdeps/posix/posix_fallocate.c: Likewise.
1193         * sysdeps/posix/tempname.c: Likewise.
1194         * sysdeps/unix/grantpt.c: Likewise.
1195         * sysdeps/unix/opendir.c: Likewise.
1196         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1197         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1198         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1199         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1200         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1201         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1202         * sysvipc/ftok.c: Likewise.
1203         * time/getdate.c: Likewise.
1204
1205         * time/getdate.c: Add extra access test.
1206
1207 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1208
1209         * version.h (VERSION): Bump to 2.1.93.
1210
1211         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1212         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1213
1214         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1215         Make this a new rule depending on tst-gettext.out and run mtrace.
1216         * intl/tst-gettext.c: Call mtrace.
1217         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1218
1219         * elf/dl-reloc.c: Add a few more __builtin_expect.
1220
1221         * configure.in: Remove --with-gettext option.
1222
1223         * intl/dcigettext.c (free_mem): Correct freeing of
1224         _nl_domain_bindings list.
1225
1226         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1227         allocated memory.
1228
1229         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1230
1231         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1232
1233         * stdio-common/itoa-digits.c: Move upper digits to...
1234         * stdio-common/itoa-udigits.c: ...here.  New file.
1235         * stdio-common/Makefile (routines): Add itoa-udigits.
1236
1237         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1238         relocate ld.so don't add supprt for relocations which should not
1239         appear in ld.so.
1240
1241         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1242         __secure_getenv.  Instead test __libc_enable_secure once.
1243
1244         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1245
1246 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1247
1248         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1249         whether the new record should be freed if it's a duplicate.
1250         (add_module): Adjust insert_module call.
1251         (__gconv_read_conf): Likewise.
1252         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1253         mtrace-tst-loading.
1254         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1255
1256         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1257         _dl_all_init_dirs.
1258         * include/link.h (struct r_search_path_struct): New.
1259         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1260         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1261         _dl_all_init_dirs.
1262         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1263         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1264         added at startup time.
1265         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1266         contains element to remember fact that we can free memory.
1267         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1268         (_dl_init_all_dirs): New variable.
1269         (fillin_rpath): Save one malloc call.
1270         (decompose_rpath): Change interface.  New first parameter points to
1271         r_search_path_struct.
1272         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1273         deletable.  Set _dl_init_all_paths value.
1274         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1275         parameter replaced with r_search_path_struct *.  Information about
1276         freeing now contained in r_search_path_struct.
1277         (_dl_map_object): Adjust for above changes.
1278
1279         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1280
1281         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1282         when adding new entries.
1283
1284         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1285         since the object being loaded can be unloaded.
1286
1287         * iconvdata/Makefile (tests): Add tst-loading.
1288         * iconvdata/tst-loading.c: New file.
1289
1290 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1291
1292         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1293         When comparing a char with an int, always cast the char to
1294         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1295         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1296
1297 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1298
1299         * time/strftime.c (my_strftime): Add compatibility code for use
1300         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1301
1302         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1303         return 0 for success but always < 0 on failure.
1304
1305         * nss/getXXbyYY_r.c: Define result to *result before including
1306         digits_dots.c.
1307
1308 2000-08-30  Andreas Jaeger  <aj@suse.de>
1309
1310         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1311
1312 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1313
1314         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1315         official file.
1316         * iconvdata/TESTS: Add BIG5HKSCS entry.
1317         * iconvdata/testdata/BIG5HKSCS: New file.
1318         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1319
1320         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1321         always true.
1322
1323         * libio/iogetline.c: Set mode before the loop in case n==0.
1324         * libio/iogetwline.c: Likewise.
1325
1326 2000-08-29  H.J. Lu  <hjl@gnu.org>
1327
1328         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1329         of fp->_mode < 0.
1330         (_IO_new_file_overflow): Likewise.
1331         * libio/genops.c (_IO_flush_all): Likewise.
1332         * libio/ioftell.c (_IO_ftell): Likewise.
1333
1334 2000-08-29  Akira Higuchi  <a@kondara.org>
1335
1336         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1337         and __end_fct fields of struct __gconv_step.
1338         * iconv/Makefile (tests): Add iconv-bug2.
1339         * iconv/iconv-bug2.c: New file.
1340
1341         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1342         instead of 'inptr - inend' to ksc5601_to_ucs4.
1343
1344         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1345
1346         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1347         character or shift sequence is found at the end of the input
1348         string, return__GCONV_INCOMPLETE_INPUT instead of
1349         __GCONV_EMPTY_INPUT.
1350         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1351         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1352
1353         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1354         __GCONV_ILLEGAL_INPUT for 8bit characters.
1355
1356 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1357
1358         * signal/signal.h (sigpause): Move __THROW before __asm__.
1359
1360         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1361         names don't match don't return.
1362         Patch by Olaf Kirch <okir@flash.lst.de>.
1363
1364 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1365
1366         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1367
1368 2000-08-27  H.J. Lu  <hjl@gnu.org>
1369
1370         * posix/Makefile (otherlibs): Add for building with static-nss
1371         for "make check".
1372
1373 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1374
1375         * libio/stdio.h: Add fmemopen prototype.
1376
1377 2000-08-25  Andreas Jaeger  <aj@suse.de>
1378
1379         * libio/Makefile (routines): Add fmemopen.
1380         (tests): Add test-fmemopen.
1381         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1382         * libio/test-fmemopen.c: New file.
1383         * libio/fmemopen.c: New file.
1384         Patches by Hanno Mueller <kontakt@hanno.de>.
1385
1386 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1387
1388         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1389         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1390
1391         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1392         to avoid crashing statically linked applications.
1393
1394 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1395
1396         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1397         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1398
1399         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1400         If the result is fits in the buffer, copy only as many bytes as needed.
1401
1402         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1403         buffer after copying numbuf into it.
1404         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1405
1406 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1407
1408         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1409         the result.  When string_len < len, don't clear the rest of the buffer.
1410
1411 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1412
1413         Support for new LC_COLLATE format.
1414         * locale/coll-lookup.h: New file.
1415         * locale/weightwc.h (findidx): When size == 0, call
1416         collidx_table_lookup.
1417         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1418         * wcsmbs/wcsxfrm.c: Likewise.
1419         * posix/fnmatch.c: Likewise.
1420         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1421         collseq_table_lookup.
1422         * locale/programs/3level.h: New file.
1423         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1424         by including "3level.h".
1425         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1426         collseq_table): New types, defined by including "3level.h".
1427         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1428         (encoding_mask, encoding_byte): Remove.
1429         (utf8_encode): Use simple shifts instead.
1430         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1431         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1432         (collate_output): New local variable tablewc_3level. When
1433         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1434         tablewc_3level instead of tablewc. Change format of TABLEWC and
1435         COLLSEQWC entries written to the file.
1436         * locale/C-collate.c (collseqwc): Change format.
1437         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1438         of COLLSEQWC.
1439         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1440
1441 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1442
1443         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1444         (locale_ctype_t): New charnames_idx field.
1445         (ctype_startup): Initialize charnames_idx field.
1446         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1447
1448 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1449
1450         * locale/C-ctype.c: Switch to new locale format.
1451         (_nl_C_LC_CTYPE_names): Remove array.
1452         (STRUCT_CTYPE_CLASS): New macro.
1453         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1454         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1455         New three-level tables.
1456         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1457         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1458         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1459         12 class tables and 2 map tables at the end.
1460         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1461         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1462         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1463         New declarations.
1464         (b): Remove trailing semicolon.
1465         (__ctype_names, __ctype_width): Don't initialize.
1466         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1467
1468 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1469
1470         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1471         is guaranteed to be allocated with the same malloc() and may be
1472         passed to free().
1473         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1474         been set to empty by an earlier open_path call, don't pass it again.
1475
1476 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1477
1478         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1479         we are not optimizing.
1480
1481         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1482         inclusion.
1483
1484         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1485         really match EOF.
1486         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1487
1488 2000-08-28  Andreas Jaeger  <aj@suse.de>
1489
1490         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1491
1492 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1493
1494         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1495         getpeername.  Use ISO C style function definition.
1496         (getpeername): Provide weak alias.
1497         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1498         setrlimit.  Use ISO C style function definition.
1499         (setrlimit): Provide weak alias.
1500
1501 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1502
1503         * shlib-versions: Add a rule for S/390 to the libm version list.
1504         * sysdeps/s390/Versions: New file.
1505         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1506         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1507         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1508         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1509         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1510         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1511         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1512         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1513         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1514         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1515         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1516         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1517         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1518         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1519         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1520         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1521         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1522         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1523
1524 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1525
1526         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1527         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1528
1529         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1530         * elf/dl-close.c (_dl_close): Print debug message if object is not
1531         unloaded.
1532         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1533         returning to caller.
1534
1535         * po/zh.po: Renamed to...
1536         * po/zh_TW.po: ...this.
1537
1538 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1539
1540         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1541
1542         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1543         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1544         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1545         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1546
1547 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1548
1549         * locale/programs/ld-collate.c (insert_weights): Also update
1550         backpointer of next element.
1551         (collate_read): Allow definition of new collation symbols in stage 2.
1552         Symbol after reorder-after can be UCS4 value.
1553         Allow reordering of collation symbols and elements.
1554         Do not only move reorder entry in new position.  Instead call
1555         insert_weight to do this and read the weights.
1556
1557         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1558
1559         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1560         to determine invalid locale name.
1561         * locale/findlocale.c (_nl_find_locale): Likewise.
1562
1563         * posix/annexc.c: Correct test for unavailable feature.
1564
1565         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1566         __inline.
1567
1568 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1569
1570         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1571         syscall.
1572
1573         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1574         (sysdep_routines): Add oldgetrlimit64.
1575
1576         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1577         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1578         (tests): Add unload, reldep, reldep2, and reldep3.
1579         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1580         and reldepmod4.
1581         Add rules to build and run unload, reldep, reldep2, and reldep3.
1582         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1583         Don't create relocation dependency if it is nonzero.
1584         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1585         can never happen here.
1586         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1587         Don't create relocation dependency if it is nonzero.
1588         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1589         stuff.  This can never happen here.
1590         * sysdeps/generic/ldsodefs.h: Change prototypes.
1591         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1592         _dl_lookup_up and _dl_lookup_versioned_symbol.
1593         (RESOLV): Likewise.
1594         * elf/dl-runtime.c (fixup): Likewise.
1595         (profile_fixup): Likewise.
1596         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1597         _dl_lookup_symbol.
1598         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1599         * elf/rtld.c (dl_main): Likewise.
1600         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1601         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1602         and pass down the caller map.
1603         (_dl_vsym): Likewise.
1604         * elf/reldep.c: New file.
1605         * elf/reldep2.c: New file.
1606         * elf/reldep3.c: New file.
1607         * elf/reldepmod1.c: New file.
1608         * elf/reldepmod2.c: New file.
1609         * elf/reldepmod3.c: New file.
1610         * elf/reldepmod4.c: New file.
1611         * elf/unload.c: New file.
1612         * elf/unloadmod.c: New file.
1613
1614         * elf/do-lookup.h: Remove unused undef_name parameter.
1615         * elf/dl-lookup.c: Adjust callers.
1616
1617 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1618
1619         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1620         irreversible in recursive call of conversion function to signal that
1621         no error handling is wanted.
1622         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1623         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1624         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1625         recursive error handling call, otherwise to &lirreversible.  Use it
1626         for calls to conversion functions.
1627         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1628         transliterating.
1629         (ucs4_internal_loop_unaligned): Likewise.
1630         (ucs4le_internal_loop): Likewise.
1631         (ucs4le_internal_loop_unaligned): Likewise.
1632
1633 2000-08-25  Greg McGary  <greg@mcgary.org>
1634
1635         * sysdeps/i386/memchr.S: Check high bound against chars
1636         actually scanned.
1637         * sysdeps/i386/memcmp.S: Likewise.
1638         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1639         account for pointers that lie one beyond end-of-buffer.
1640
1641 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1642
1643         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1644         * elf/nodelete.c (fini_ran): New global variable.
1645         (do_test): Before every dlclose call clear fini_ran and test
1646         afterwards that it is not set by the destructors.
1647         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1648         * elf/nodelmod2.c: Likewise.
1649         * elf/nodelmod4.c: Likewise.
1650
1651 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1652
1653         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1654         getrlimit to the list.
1655
1656 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1657
1658         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1659         long double format so use ldbl-96 instead of ldbl-128.
1660
1661 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1662
1663         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1664         even if bits 10 a 11 are non-zero.
1665         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1666
1667         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1668         included before building gnu/lib-names.h
1669         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1670
1671         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1672         marked DF_1_NODELETE.
1673
1674         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1675         since we call sigaction in the child.
1676
1677 2000-08-25  Andreas Jaeger  <aj@suse.de>
1678
1679         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1680         gconv-modules.
1681
1682 2000-08-25  Andreas Jaeger  <aj@suse.de>
1683
1684         * manual/arith.texi (Control Functions): Clarify possible
1685         arguments.  Closes PR libc/1856.
1686
1687 2000-08-24  H.J. Lu  <hjl@gnu.org>
1688
1689         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1690         * malloc/Makefile (tests): Likewise.
1691
1692 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1693
1694         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1695
1696 2000-08-24  Andreas Jaeger  <aj@suse.de>
1697
1698         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1699         only if LIBGD is available.
1700
1701 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1702
1703         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1704         problems with now restrict parameter types.
1705         (convaddr4to6): Likewise.
1706
1707 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1708
1709         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1710         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1711         * sysdeps/s390/fpu/fegetexcept.c: New file.
1712         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1713         FPC_VALID_MASK.
1714
1715 2000-08-24  Andreas Jaeger  <aj@suse.de>
1716
1717         * malloc/Makefile (extra-objs): Add memusagestat.o.
1718         (generated): Added memusage and memusagestat for make clean.
1719
1720         * libio/tst_putwc.c (do_test): Delete temporary file.
1721         Move inclusion of test-skeleton to front to have prototype for
1722         add_temp_file.
1723
1724         * posix/Makefile (generated): Add wordexp-tst.out.
1725
1726 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1727
1728         * resolv/res_hconf.c (free_mem): Remove not needed if.
1729
1730         * time/tzset.c (free_mem): New function.
1731         * string/strsignal.c (free_mem): New function.
1732         * inet/inet_ntoa.c (free_mem): New function.
1733         * sunrpc/clnt_perr.c (free_mem): New function.
1734
1735 2000-08-24  Andreas Jaeger  <aj@suse.de>
1736
1737         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1738         * sysdeps/unix/sysv/syscalls.list: Likewise.
1739
1740         * posix/unistd.h: Move internal prototypes from here ...
1741         * include/unistd.h: ... to here.
1742
1743         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1744
1745 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1746
1747         * grp/initgroups.c (initgroups): Deallocate groups array.
1748         Reported by jani.raiha@sonera.com [PR libc/1868].
1749
1750         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1751         * sysdeps/alpha/Dist: Likewise.
1752
1753 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1754
1755         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1756         destructor).  Reported by Solar Designer <solar@false.com>.
1757
1758         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1759         avoid adding double slashes.
1760
1761 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1762
1763         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1764         out of the __REDIRECT macro.
1765
1766 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1767
1768         * stdio-common/vfscanf.c: Add %F format support.
1769
1770         * locale/programs/ld-ctype.c (ctype_output): Make sure
1771         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1772         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1773         (ctype_read): Enable returning of wide character strings for reading
1774         transliteration information.
1775
1776 2000-08-23  Andreas Jaeger  <aj@suse.de>
1777
1778         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1779         Use static __inline instead of _EXTERN_INLINE.
1780
1781         * misc/sys/select.h: Move prototypes of __select from here ...
1782         * include/sys/select.h: ... to here.
1783
1784         * socket/sys/socket.h: Move prototypes of __send and __connect
1785         from here....
1786         * include/sys/socket.h: ... to here.
1787
1788         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1789         lr_error.
1790
1791 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1792
1793         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1794         __setrlimit as strong name. Takes only 2 arguments.
1795
1796         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1797         takes only 2 arguments.
1798
1799 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1800
1801         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1802
1803         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1804
1805 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1806
1807         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1808         default_missing character being specified, pick the first
1809         representable.
1810
1811 2000-08-23  Andreas Jaeger  <aj@suse.de>
1812
1813         * include/wchar.h: Add some pure attributes.
1814
1815         * time/time.h: Add const attribute for dysize.
1816
1817         * include/stdlib.h: Add malloc attribute to __posix memalign.
1818
1819         * stdlib/stdlib.h: Add some pure and malloc attributes.
1820         * wcsmbs/wchar.h: Likewise.
1821
1822         * dirent/dirent.h: Add some pure attributes.
1823         * include/dirent.h: Likewise.
1824
1825 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1826
1827         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1828         on 64bit arches.
1829
1830 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1831
1832         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1833         missing buffer size checks.
1834
1835 2000-08-23  Andreas Jaeger  <aj@suse.de>
1836
1837         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1838         strong name.
1839         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1840
1841         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1842         otherwise __LINUX_KERNEL_VERSION might not be defined.
1843         (MIN): Define if not already defined.
1844
1845 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1846
1847         * stdio-common/vfprintf.c: Handle %F format.
1848         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1849         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1850
1851         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1852
1853         * po/zh.po: New file.
1854
1855         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1856         enough room in target buffer.
1857         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1858         * iconvdata/bug-iconv1.c: New file.
1859         * iconvdata/Makefile (tests): Add bug-iconv1.
1860
1861         * locale/iso-4217.def: Update entry for Nicaragua.
1862
1863 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1864
1865         * hurd/hurdsig.c: Rearrange headers a bit.
1866         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1867         when cthreads is being used.
1868
1869 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1870
1871         * elf/Makefile (distribute): Add dl-osinfo.h.
1872         * sysdeps/generic/dl-osinfo.h: New file.
1873         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1874         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1875         if defined.
1876         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1877         only for !SHARED case.  Get the code from dl-osinfo.h.
1878
1879         * stdlib/random_r.c: Cleanups.
1880         * stdlib/tst-random.c: New file.
1881         * stdlib/Makefile (tests): Add tst-random.
1882         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1883
1884 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1885
1886         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1887         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1888         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1889         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1890
1891 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1892
1893         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1894         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1895         (__syscall__sysctl): Add.
1896
1897 2000-08-21  Andreas Jaeger  <aj@suse.de>
1898
1899         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1900         libc/1864).
1901         * stdlib/tst-strtoll.c: Likewise.
1902
1903 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1904
1905         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1906         correctly.
1907         (__initstate_r): Set errno on error.
1908         (__random_r): Likewise.
1909         (__setstate_r): Correct offset when computing
1910         new rptr and fptr.  Test for arg_state being NULL.
1911         Reported by Michael Fischer <fischer@cs.yale.edu>.
1912
1913         * posix/regex.h: Add macro definitions to allow compiling outside
1914         glibc.
1915
1916         * sysdeps/i370/Implies: Removed.
1917         * sysdeps/mvs/Implies: Removed.
1918
1919         * catgets/catgets.c (catopen): Filter out env_var values with / if
1920         necessary.
1921
1922         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1923         locale name after all getenvs.
1924
1925         * configure.in: Allow sed versions like 3.02.8.
1926         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1927
1928 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1929
1930         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1931
1932 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1933
1934         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1935         of gethostbyname2_r call.
1936
1937         * intl/locale.alias: Add aliases for Korean.
1938
1939 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1940
1941         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1942         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1943         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1944         * sysdeps/s390/fpu/fegetenv.c: New file.
1945         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1946         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1947         * sysdeps/s390/fpu/fenv_libc.h: New file.
1948         * sysdeps/s390/fpu/fesetenv.c: New file.
1949         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1950         * sysdeps/s390/fpu/feupdateenv.c: New file.
1951         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1952         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1953         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1954         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1955         * sysdeps/s390/fpu/ftestexcept.c: New file.
1956         * sysdeps/s390/fpu/libm-test-ulps: New file.
1957         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1958         * sysdeps/s390/initfini.c: New file.
1959         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1960         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1961         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1962         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1963         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1964         sys/procfs.h as proposed by Mark Kettenis.
1965         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1966
1967 2000-08-21  Andreas Jaeger  <aj@suse.de>
1968
1969         * include/poll.h: Include include/sys/poll.h to get __poll
1970         declaration.
1971
1972         * io/sys/poll.h: Move __poll declaration from here...
1973         * include/sys/poll.h: ...to here.
1974
1975         * include/sys/socket.h (__getpeername): Add declaration.
1976
1977         * include/wchar.h (__vswprintf): Add declaration.
1978
1979         * include/stdio.h (__flockfile): Add declaration.
1980         (__funlockfile): Likewise.
1981
1982 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1983
1984         * misc/sys/cdefs.h: Define __restrict_arr.
1985         * include/sys/time.h: Add restrict where required by AGd4.
1986         * inet/arpa/inet.h: Likewise.
1987         * io/sys/stat.h: Likewise.
1988         * io/sys/statvfs.h: Likewise.
1989         * misc/search.h: Likewise.
1990         * misc/sys/select.h: Likewise.
1991         * posix/glob.h: Likewise.
1992         * posix/regex.h: Likewise.
1993         * posix/spawn.h: Likewise.
1994         * posix/unistd.h: Likewise.
1995         * rt/aio.h: Likewise.
1996         * signal/signal.h: Likewise.
1997         * socket/sys/socket.h: Likewise.
1998         * stdlib/ucontext.h: Likewise.
1999         * streams/stropts.h: Likewise.
2000         * string/string.h: Likewise.
2001         * time/time.h: Likewise.
2002         * time/sys/time.h: Likewise.
2003
2004         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2005         and posix_spawnattr_setscheparam.
2006
2007         * libio/stdio.h: Make cuserid prototype again available for all
2008         XPG versions.
2009
2010         * argp/argp-help.c: Unify use of function aliases to make more compact
2011         PLT.
2012         * include/libintl.h: Likewise.
2013         * inet/rcmd.c: Likewise.
2014         * intl/dcigettext.c: Likewise.
2015         * libio/iofputws.c: Likewise.
2016         * libio/iofputws_u.c: Likewise.
2017         * libio/iogetwline.c: Likewise.
2018         * libio/swprintf.c: Likewise.
2019         * malloc/malloc.c: Likewise.
2020         * nss/digits_dots.c: Likewise.
2021         * posix/fnmatch.c: Likewise.
2022         * posix/spawn_faction_addclose.c: Likewise.
2023         * posix/spawn_faction_adddup2.c: Likewise.
2024         * posix/spawn_faction_addopen.c: Likewise.
2025         * posix/spawni.c: Likewise.
2026         * posix/wordexp.c: Likewise.
2027         * posix/spawni.c: Likewise.
2028         * resolv/res_hconf.c: Likewise.
2029         * resolv/res_init.c: Likewise.
2030         * shadow/lckpwdf.c: Likewise.
2031         * signal/sighold.c: Likewise.
2032         * signal/sigrelse.c: Likewise.
2033         * stdio-common/printf-parse.h: Likewise.
2034         * stdio-common/printf-prs.c: Likewise.
2035         * stdio-common/printf_fp.c: Likewise.
2036         * stdio-common/vfprintf.c: Likewise.
2037         * stdio-common/vfscanf.c: Likewise.
2038         * stdlib/rpmatch.c: Likewise.
2039         * sunrpc/create_xid.c: Likewise.
2040         * sunrpc/key_call.c: Likewise.
2041         * sysdeps/generic/setrlimit64.c: Likewise.
2042         * sysdeps/generic/utmp_file.c: Likewise.
2043         * sysdeps/generic/vlimit.c: Likewise.
2044         * sysdeps/posix/posix_fallocate.c: Likewise.
2045         * sysdeps/posix/posix_fallocate64.c: Likewise.
2046         * sysdeps/posix/sigpause.c: Likewise.
2047         * sysdeps/posix/sigset.c: Likewise.
2048         * sysdeps/unix/grantpt.c: Likewise.
2049         * sysdeps/unix/bsd/ualarm.c: Likewise.
2050         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2051         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2052         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2053         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2054         * time/strftime.c: Likewise.
2055         * wcsmbs/wcscoll.c: Likewise.
2056         * wcsmbs/wcsxfrm.c: Likewise.
2057
2058         * time/tst-getdate.c (main): Make error messages more human readable.
2059
2060         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2061         postinc/predec instruction.
2062         (_FPU_SETCW): Likewise.
2063         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2064
2065 2000-08-20  Andreas Jaeger  <aj@suse.de>
2066
2067         * time/tst-getdate.c (main): Increase error in case of wrong
2068         conversion.
2069         Fix typo in test case.
2070
2071 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2072
2073         * ctype/ctype.h (isblank): Make available if ISO C99.
2074         * wctype/wctype.h (iswblank): Make available if ISO C99.
2075         * math/math.h (signgam): Don't make available if ISO C99.
2076         * math/tgmath.h (tgamma): Renamed from gamma.
2077         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2078
2079         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2080         Pretty printing.
2081         * intl/plural.y (new_exp): Take number of optional parameters in
2082         second parameter.  Test for correct number of parameters and free
2083         correctly in case of failure.  Adjust all callers.
2084         (yylex): Allow ';' as terminator character.
2085
2086 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2087
2088         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2089         walt_digits.
2090
2091         * locale/findlocale.c (free_mem): Also free here->filename.
2092
2093         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2094
2095         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2096         first test.
2097         (feexcp_nomask_test): Correct printf args.
2098         (feexcp_mask_test): Likewise.
2099
2100 2000-08-19  Andreas Jaeger  <aj@suse.de>
2101
2102         * inet/tst-gethnm.c: Include string.h to provide prototype for
2103         strcmp.
2104
2105         * malloc/mtrace.pl (usage): Inform about --help.
2106
2107 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2108
2109         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2110         size HEAP_MAX_SIZE.
2111
2112 2000-08-19  Andreas Jaeger  <aj@suse.de>
2113
2114         * shlib-versions: Remove libnss_db, libdb and libdb1.
2115
2116 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2117
2118         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2119         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2120         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2121         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2122         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2123         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2124         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2125         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2126         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2127         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2128         getdents.
2129         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2130         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2131
2132 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2133
2134         * include/glob.h (__glob64): Add prototype.
2135         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2136         define glob and glob_in_dir.
2137         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2138         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2139         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2140         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2141         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2142         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2143         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2144         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2145
2146 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2147
2148         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2149
2150 2000-08-17  Andreas Jaeger  <aj@suse.de>
2151
2152         * math/test-fenv.c (fe_single_test): New function.
2153         (fe_env_tests): Use fe_single_test.
2154         (feenable_test): New tests for feenable/fedisable and
2155         fegetexcpetions.
2156         (feexcp_mask_test): New function.
2157         (feexcp_nomask_test): New function.
2158
2159 2000-08-19  Richard Henderson  <rth@cygnus.com>
2160
2161         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2162         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2163         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2164         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2165         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2166         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2167         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2168         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2169         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2170         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2171         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2172         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2173         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2174         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2175         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2176         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2177         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2178
2179 2000-08-19  Andreas Jaeger  <aj@suse.de>
2180
2181         * elf/constload1.c: Include <stdio.h> for puts prototype.
2182
2183 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2184
2185         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2186         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2187         a dynamically loaded object remove old l_initfini list.
2188         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2189         remove some dynamically allocated memory blocks in the dynamic
2190         loading data structures.
2191         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2192         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2193         Instead call _dl_check_map_versions only for the dependencies.
2194         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2195         information of initial objects as not free-able.
2196         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2197         element.
2198
2199         * elf/filter.c: Call mtrace.
2200         * elf/restest1.c: Likewise.  Close the objects.
2201         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2202         debug information.
2203
2204         * elf/constload1.c: Add comment explaining not freed memory.
2205
2206 2000-08-18  Andreas Jaeger  <aj@suse.de>
2207
2208         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2209         alignment for structs stat and stat64.
2210         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2211
2212 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2213
2214         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2215         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2216
2217         * nss/Versions: Remove libnss_db information.
2218
2219 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2220
2221         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2222         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2223         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2224         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2225
2226         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2227         to match Solaris.
2228
2229 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2230
2231         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2232         (_FPU_SETCW): Likewise.
2233         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2234
2235         * stdio-common/printf_fp.c: Fix chars_needed computation.
2236         Patch by Greg McGary <greg@mcgary.org>.
2237
2238 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2239
2240         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2241         _dl_loaded are NULL.
2242
2243 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2244
2245         * manual/arith.texi (feholdexcept): Returns 0 on success.
2246
2247 2000-08-17  Andreas Jaeger  <aj@suse.de>
2248
2249         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2250         (ifr_newname): New.
2251         Reported by Andi Kleen <ak@suse.de>.
2252
2253 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2254
2255         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2256         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2257         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2258
2259 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2260
2261         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2262         of buf->st_ino and kbuf->st_ino, not __st_ino.
2263         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2264         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2265         directive so that only linux/getdents.c is used, not some
2266         architecture specific one.
2267
2268 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2269
2270         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2271         enabled, not disabled exceptions.
2272         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2273         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2274
2275 2000-08-17  Greg McGary  <greg@mcgary.org>
2276
2277         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2278         from test program name when constructing suffix for $(LDLIBS-*).
2279         (bounded-thread-library): New variable.
2280         * crypt/Makefile
2281         [build-shared, build-static] (libcrypt-dep): Remove variable.
2282         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2283         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2284         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2285         (librt-tests): Add variable.  (tests): Use it.
2286         [build-shared, build-static]
2287         ($(addprefix $(objpfx),$(tests)),
2288         $(addprefix $(objpfx),$(librt-tests))):
2289         Consolidate individual dependencies.
2290         [build-bounded]
2291         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2292         Add dependencies.
2293         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2294         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2295         * misc/Makefile
2296         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2297         * rt/Makefile
2298         [build-shared, build-static]
2299         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2300         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2301
2302 2000-08-17  Greg McGary  <greg@mcgary.org>
2303
2304         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2305         * sysdeps/unix/make-syscalls.sh: Likewise.
2306         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2307         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2308         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2309         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2310         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2311
2312 2000-08-17  Greg McGary  <greg@mcgary.org>
2313
2314         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2315         Wrap extern symbols in BP_SYM ().
2316         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2317         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2318         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2319         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2320         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2321         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2322         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2323         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2324         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2325         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2326
2327 2000-08-16  Andreas Schwab  <schwab@suse.de>
2328
2329         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2330         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2331         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2332
2333 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2334
2335         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2336         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2337         * elf/dl-support.c: Define _nl_nloaded.
2338         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2339         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2340         object to global list.
2341         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2342         from _dl_loaded list.
2343         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2344         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2345         number here.
2346
2347         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2348         unmask, exceptions.
2349         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2350         exceptions.
2351         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2352
2353 2000-08-16  Andreas Jaeger  <aj@suse.de>
2354
2355         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2356
2357 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2358
2359         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2360
2361 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2362
2363         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2364         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2365         (sysdep_routines): Add oldgetrlimit64.
2366         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2367         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2368
2369         * include/link.h: Undo last patches.  Hurd now has stat64.
2370         * elf/Makefile: Likewise.
2371         * elf/dl-load.c: Likewise.
2372         * elf/dl-misc.c: Likewise.
2373         * elf/dl-profile.c: Likewise.
2374         * sysdeps/generic/sysd-link.h: Removed.
2375         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2376
2377         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2378         thread event callback function.
2379         (__aio_notify_only): Use function above.
2380         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2381
2382 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2383
2384         * sysdeps/mach/hurd/lseek64.c: New file.
2385
2386 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2387
2388         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2389         Remove typedefs.
2390         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2391         typedefs.
2392         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2393         typedefs.
2394         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2395
2396 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2397
2398         * sysdeps/mach/hurd/xstatconv.c: New file.
2399         * sysdeps/mach/hurd/fxstat64.c: New file.
2400         * sysdeps/mach/hurd/lxstat64.c: New file.
2401         * sysdeps/mach/hurd/xstat64.c: New file.
2402         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2403
2404 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2405
2406         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2407         Initialize, needed for change in common symbol handling in newer
2408         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2409
2410 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2411
2412         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2413         * elf/constload2.c: Add destructor to unload constload3.
2414
2415         * include/link.h: Include sysd-link.h.
2416         * sysdeps/generic/sysd-link.h: New file.
2417         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2418         * elf/Makefile (distribute): Add sysd-link.h.
2419         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2420         types and functions directly.
2421         * elf/dl-misc.c: Likewise.
2422         * elf/dl-profile.c: Likewise.
2423
2424         * elf/loadfail.c (main): Close all successfully loaded objects.
2425
2426         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2427         free wd.
2428         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2429         there is already one.
2430
2431         * elf/dl-close.c: Pretty print.
2432
2433 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2434
2435         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2436         global (with file scope).  Add __libc_subfreeres function to free the
2437         string.
2438         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2439         in ttyname function.
2440
2441         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2442
2443         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2444
2445         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2446         mapping them to /x5c and /x7e respectively.
2447
2448         * locale/programs/ld-ctype.c: Add support for more definitions after
2449         copy statement.
2450
2451 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2452
2453         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2454         * sysdeps/unix/sysv/linux/kernel-features.h
2455         (__ASSUME_GETDENTS64_SYSCALL): Define.
2456         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2457         syscall if available to get d_type fields.
2458         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2459         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2460         __lxstat64): Export at GLIBC_2.2.
2461         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2462         Likewise.
2463         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2464         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2465         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2466         getdirentries64, versionsort64): Remove.
2467         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2468         getdirentries64, versionsort64): Remove.
2469
2470 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2471
2472         * posix/Makefile: Remove rules to generate glob package.
2473
2474         * posix/Makefile (tests): Add tst-regexloc.
2475         (tst-regexloc-ENV): Add LOCPATH.
2476         * posix/tst-regexloc.c: New file.
2477
2478 2000-08-12  Andreas Jaeger  <aj@suse.de>
2479
2480         * include/features.h (__STDC_ISO_10646__): Define.
2481         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2482
2483 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2484
2485         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2486
2487         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2488         for revision 6 and up).
2489
2490         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2491         including <time.h>.
2492         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2493         to get definitions of just these types.
2494
2495         * signal/signal.h: Define thread signal handling functions also for
2496         POSIX95.
2497
2498         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2499         POSIX95.
2500         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2501         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2502         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2503         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2504
2505         * sysvipc/sys/shm.h: Define pid_t for XPG.
2506
2507         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2508         they are not anymore required here.
2509
2510         * wcsmbs/wchar.h: Make the various wide char string and stream
2511         functions available for the respective XPG versions.
2512
2513         * nss/Makefile: Remove rules to build and distribute nss_db.
2514
2515         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2516         * sysdeps/generic/scandir64.c: Likewise.
2517         * sysdeps/generic/versionsort64.c: Likewise.
2518
2519 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2520             Benjamin Koznik  <bkoz@redhat.com>
2521
2522         * libio/fileops.c: Merge with libstdc++-v3.
2523         * libio/genops.c: Likewise.
2524         * libio/iofclose.c: Likewise.
2525         * libio/iofopen.c: Likewise.
2526         * libio/iofwide.c: Likewise.
2527         * libio/libio.h: Likewise.
2528         * libio/libioP.h: Likewise.
2529         * libio/stdfiles.c: Likewise.
2530         * libio/stdio.c: Likewise.
2531         * libio/wfileops.c: Likewise.
2532         * libio/wgenops.c: Likewise.
2533
2534         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2535
2536 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2537
2538         * locale/programs/localedef.c: Implement --prefix option to allow
2539         writing in standard places of alternative install directories.
2540
2541         * posix/regex.c (compile_range): Implement collation sequence
2542         handling for glibc.  Use simple character ordering otherwise and
2543         not strcoll.
2544
2545 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2546
2547         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2548
2549 2000-08-12  Andreas Jaeger  <aj@suse.de>
2550
2551         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2552         __USE_FILE_OFFSET64 correctly for locking.
2553         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2554
2555 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2556
2557         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2558         Define for 2.4.1 on sparc as well.
2559         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2560         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2561         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2562         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2563
2564 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2565
2566         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2567         defined.
2568
2569 2000-08-12  Andreas Jaeger  <aj@suse.de>
2570
2571         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2572         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2573
2574         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2575         mips2 for assembler.
2576
2577         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2578         if fnctl64 is not available for F_*LK*64.
2579
2580         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2581
2582 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2583
2584         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2585         Define for 2.4.1 on x86.
2586         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2587         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2588         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2589
2590         * dirent/dirent.h: Define DT_WHT.
2591
2592         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2593         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2594         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2595         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2596         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2597         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2598
2599 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2600
2601         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2602         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2603         * inet/Makefile (tests): Add tst-gethnm.
2604         * inet/tst-gethnm.c: New file.
2605
2606         * rt/aio_cancel.c: If canceling a specific request which is running
2607         *really* do nothing.
2608         * rt/aio_misc.h: Add `done' to states of a request.
2609         * rt/aio_misc.c: Add several tests for the correct state.
2610         Simplify request table memory handling.
2611
2612 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2613
2614         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2615         * dirent/scandir64.c: Move...
2616         * sysdeps/generic/scandir64.c: ...here.
2617         * dirent/alphasort64.c: Move...
2618         * sysdeps/generic/alphasort64.c: ...here.
2619         * dirent/versionsort64.c: Move...
2620         * sysdeps/generic/versionsort64.c: ...here.
2621         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2622         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2623         Export symbols at GLIBC_2.2.
2624         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2625         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2626         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2627         __versionsort64): Add prototypes.
2628         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2629         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2630         unused prototype.
2631         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2632         and GLIBC_2.2.
2633         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2634         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2635         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2636         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2637         __u_quad_t.
2638         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2639         Adjust for kernel-2.4.0-test6 layout.
2640         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2641         GLIBC_2.1 and GLIBC_2.2.
2642         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2643         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2644         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2645         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2646         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2647         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2648         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2649         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2650         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2651         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2652         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2653         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2654         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2655         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2656         __u_quad_t.
2657         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2658         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2659         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2660         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2661         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2662         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2663         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2664         __u_quad_t.
2665         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2666         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2667         Define.
2668         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2669         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2670         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2671         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2672         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2673         Define.
2674         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2675         alpha/readdir.c.
2676         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2677         alpha/readdir_r.c
2678         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2679         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2680         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2681         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2682         st_ino from __st_ino.
2683         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2684         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2685         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2686         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2687         set __st_ino in addition to st_ino.
2688         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2689         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2690         __old_getdents64 as well.
2691         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2692         getdirentries64 and old_getdirentries64 as well.
2693         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2694         __GETDENTS): Define.
2695         (GETDENTS64): Remove.
2696         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2697         Define.
2698         (GETDENTS64): Remove.
2699         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2700         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2701         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2702         as well.
2703         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2704         __old_readdir64_r as well.
2705         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2706         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2707
2708 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2709
2710         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2711         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2712         define of the kernel.
2713         Add missing __SEG_PSTKOVF definition.
2714         Adjust the padding of struct siginfo and struct sigevent to
2715         match the fact that sigval_t is 64 bit.
2716
2717 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2718
2719         * timezone/zic.c: Update from tzcode2000f.
2720         * timezone/australasia: Update from tzdata2000f.
2721         * timezone/europe: Likewise.
2722         * timezone/southamerica: Likewise.
2723         * timezone/yearistype: Likewise.
2724
2725 2000-08-10  Andreas Jaeger  <aj@suse.de>
2726
2727         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2728         stat with current MIPS kernel.
2729
2730 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2731
2732         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2733         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2734         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2735         Remove the junk that's only relevant in the Linux kernel itself.
2736         Add a warning saying that this file is now obsolete, and include
2737         <sys/procfs.h>.
2738         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2739         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2740         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2741         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2742         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2743         and add the notice that the file is primarily there for GDB.
2744         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2745
2746 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2747
2748         * time/tzfile.c (__tzfile_compute): __tzstring zones
2749         from zone_names.
2750
2751 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2752
2753         * resolv/resolv.h (__res_state): Surround prototype with
2754         __BEGIN_DECLS/__END_DECLS.
2755         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2756
2757 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2758
2759         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2760         Make independant of asm/resource.h from the Linux kernel.
2761
2762 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2763
2764         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2765
2766 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2767
2768         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2769         * locale/Makefile (locale-CPPFLAGS): Likewise.
2770
2771 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2772
2773         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2774         for AMD processors.
2775
2776 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2777
2778         * misc/Versions (mincore): Export at GLIBC_2.2.
2779
2780 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2781
2782         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2783
2784 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2785
2786         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2787         socketpair.  Made socketpair a weak alias.
2788         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2789         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2790         conforming, but fall back on the old protocol if the socket server
2791         doesn't support it.
2792         * include/sys/socket.h: Add prototype for __socketpair.
2793
2794 2000-08-09  Andreas Schwab  <schwab@suse.de>
2795
2796         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2797         long long modifier is seen.
2798
2799         * elf/nodelete.c (do_test): Remove reference to undefined member
2800         sa_restorer.
2801         * rt/tst-aio4.c (do_test): Likewise.
2802
2803         * configure.in: Add `-lm' when checking for libgd.
2804         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2805         linking.
2806
2807 2000-08-09  Andreas Jaeger  <aj@suse.de>
2808
2809         * configure.in: Change required make versions.
2810
2811         * manual/install.texi (Tools for Compilation): Document required
2812         make version.
2813         (Supported Configurations): Update list of supported
2814         configurations.
2815
2816 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2817
2818         * locale/linereader.c (get_string): Don't print an error is a string
2819         contains an unknown character.
2820
2821 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2822
2823         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2824         (new_symbol): Take new parameters with name of the symbol.
2825         Adjust callers.
2826         (handle_ellipsis): Don't only allow character symbols.
2827         (collate_read): Allow string of collating elements contain invalid
2828         characters; ignore entry in this case.
2829         Handle ellipsis of collating symbols before first order_start.
2830         Allow ellipsis in state 0.
2831
2832 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2833
2834         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2835         error message.
2836         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2837
2838 2000-08-04  Greg McGary  <greg@mcgary.org>
2839
2840         * posix/regex.c (SET_HIGH_BOUND): New macro.
2841         (MOVE_BUFFER_POINTER): Use it.
2842         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2843         (EXTEND_BUFFER): Use it.
2844
2845 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2846
2847         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2848         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2849         _wide_data but from _IO_FILE directly.
2850         * libio/iofclose.c: Likewise.
2851         * libio/wfileops.c: Likewise.
2852
2853         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2854         * libio/libioP.h: Change prototypes.
2855
2856 2000-08-03  Greg McGary  <greg@mcgary.org>
2857
2858         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2859         frame pointer early so that we save caller's frame pointer.
2860         * sysdeps/i386/elf/setjmp.S: Likewise.
2861
2862         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2863         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2864
2865         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2866         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2867         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2868
2869 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2870
2871         * iconvdata/big5.c: Updated.
2872         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2873
2874 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2875
2876         * Makeconfig (all-subdirs): Add conform.
2877         * conform/Makefile: Include ../Rules.
2878
2879         * Makefile (README): Add rules to generate here as well.
2880
2881 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2882
2883         * version.h (VERSION): Bump to 2.1.92.
2884
2885         * sysdeps/ia64/Dist: Add _mcount.S.
2886
2887         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2888
2889         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2890
2891         * elf/Makefile (distribute): Add missing modules.
2892
2893         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2894
2895         * posix/regex.c (compile_range): Translate range start and end
2896         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2897
2898         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2899         asm/resource.h.
2900
2901         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2902
2903 2000-08-02  Andreas Jaeger  <aj@suse.de>
2904
2905         * elf/elf.h (EM_S390): Added.
2906         (R_390_*): New relocs for S390.
2907
2908         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2909         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2910         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2911         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2912         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2913         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2914         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2915         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2916         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2917         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2918         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2919         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2920         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2921         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2922         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2923         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2924         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2925         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2926         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2927         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2928         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2929         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2930         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2931         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2932         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2933         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2934         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2935         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2936         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2937         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2938         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2939         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2940         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2941         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2942         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2943         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2944         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2945         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2946         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2947         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2948         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2949         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2950         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2951         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2952         * sysdeps/s390/sysdep.h: New file.
2953         * sysdeps/s390/sys/ucontext.h: New file.
2954         * sysdeps/s390/sub_n.S: New file.
2955         * sysdeps/s390/strncpy.S: New file.
2956         * sysdeps/s390/strcpy.S: New file.
2957         * sysdeps/s390/stackinfo.h: New file.
2958         * sysdeps/s390/setjmp.S: New file.
2959         * sysdeps/s390/s390-mcount.S: New file.
2960         * sysdeps/s390/mul_1.S: New file.
2961         * sysdeps/s390/memusage.h: New file.
2962         * sysdeps/s390/memset.S: New file.
2963         * sysdeps/s390/memcpy.S: New file.
2964         * sysdeps/s390/memchr.S: New file.
2965         * sysdeps/s390/machine-gmon.h: New file.
2966         * sysdeps/s390/ldbl2mpn.c: New file.
2967         * sysdeps/s390/gmp-mparam.h: New file.
2968         * sysdeps/s390/fpu/fpu_control.h: New file.
2969         * sysdeps/s390/fpu/fesetround.c: New file.
2970         * sysdeps/s390/fpu/fegetround.c: New file.
2971         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2972         * sysdeps/s390/fpu/bits/fenv.h: New file.
2973         * sysdeps/s390/ffs.c: New file.
2974         * sysdeps/s390/elf/start.S: New file.
2975         * sysdeps/s390/elf/setjmp.S: New file.
2976         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2977         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2978         * sysdeps/s390/dl-machine.h: New file.
2979         * sysdeps/s390/bzero.S: New file.
2980         * sysdeps/s390/bsd-setjmp.S: New file.
2981         * sysdeps/s390/bsd-_setjmp.S: New file.
2982         * sysdeps/s390/bits/string.h: New file.
2983         * sysdeps/s390/bits/setjmp.h: New file.
2984         * sysdeps/s390/bits/huge_val.h: New file.
2985         * sysdeps/s390/bits/endian.h: New file.
2986         * sysdeps/s390/bits/byteswap.h: New file.
2987         * sysdeps/s390/bcopy.S: New file.
2988         * sysdeps/s390/backtrace.c: New file.
2989         * sysdeps/s390/atomicity.h: New file.
2990         * sysdeps/s390/asm-syntax.h: New file.
2991         * sysdeps/s390/addmul_1.S: New file.
2992         * sysdeps/s390/add_n.S: New file.
2993         * sysdeps/s390/abort-instr.h: New file.
2994         * sysdeps/s390/__longjmp.c: New file.
2995         * sysdeps/s390/Makefile: New file.
2996         * sysdeps/s390/Implies: New file.
2997         * sysdeps/s390/Dist: New file.
2998         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2999
3000 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3001
3002         Remove incompatible IPv6 extension of RPC.
3003         * sunrpc/Makefile: Undo changes.
3004         * sunrpc/rpc_main.c: Likewise.
3005         * sunrpc/rpc/clnt.h: Likewise.
3006         * sunrpc/rpc/svc.h: Likewise.
3007         * sunrpc/bindrsvprt6.c: Removed.
3008         * sunrpc/clnt_tcp6.c: Removed.
3009         * sunrpc/clnt_udp6.c: Removed.
3010         * sunrpc/svc_tcp6.c: Removed.
3011         * sunrpc/svc_udp6.c: Removed.
3012
3013         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3014         dgettext, and dcgettetxt.
3015
3016         * intl/locale.alias: Update japanese aliases.
3017
3018         * sysdeps/ia64/bits/byteswap.h: New file.
3019         Patch by Dan Pop <Dan.Pop@cern.ch>.
3020
3021         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3022         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3023
3024 2000-07-13  H.J. Lu  <hjl@gnu.org>
3025
3026         * posix/regex.c (re_max_failures): Set to 4000.
3027
3028 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3029
3030         * gnulib/Makefile (tests): Add tst-gcc.
3031         * gnulib/tst-gcc.c: New file.
3032
3033         * assert/Makefile (routines): Add __assert.
3034         * assert/Versions: Export __assert for glibc 2.2.
3035         * assert/__assert.c: New file.
3036         * assert/assert.h: Declare __assert.
3037
3038 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3039
3040         * locale/localeinfo.h (_ISCTYPE): New macro.
3041         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3042         LC_CTYPE locale format.
3043         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3044         (ctype_output): Output class_b[nr] right before class_3level[nr].
3045         (allocate_arrays): Fill class_b, similarly to class_3level.
3046
3047 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3048             Joseph S. Myers  <jsm28@cam.ac.uk>
3049
3050         * math/tgmath.h: Make standard compliant.  Don't ask how.
3051
3052 2000-07-04  H.J. Lu  <hjl@gnu.org>
3053
3054         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3055         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3056         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3057
3058 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3059
3060         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3061         (__USE_LARGEFILE): Add an explanation.
3062         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3063         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3064
3065 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3066
3067         * libio/Makefile: Enable exception handling for genops, wgenops,
3068         fileops, and wfileops.
3069
3070 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3071
3072         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3073         acount that elf/rtld's main program might remove some varibales
3074         from the environment if we're trying to be secure.  Move the Hurd
3075         startup data if necessary, or, if we there is no startup data,
3076         make sure the magical convention that ARGV[0] is stored just after
3077         the environment list.
3078
3079 2000-08-01  Philip Blundell  <philb@gnu.org>
3080
3081         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3082         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3083         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3084         oldsetrlimit for GLIBC_2.0.
3085
3086 2000-08-01  Andreas Jaeger  <aj@suse.de>
3087
3088         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3089         (LINE_PARSER): Allow any number of spaces between ip address and
3090         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3091
3092         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3093
3094         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3095         constants in.
3096
3097         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3098         _nss_nisplus_getipnodebyname_r.
3099
3100         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3101         now, getipnodebyname is deprecated.
3102         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3103         Likewise.
3104
3105         * inet/Makefile (routines): Don't build getipnodebyaddr and
3106         friends.
3107
3108         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3109
3110         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3111
3112         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3113
3114         * wctype/Makefile (distribute): Add wchar-lookup.h.
3115
3116         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3117
3118         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3119
3120 2000-08-01  Andreas Schwab  <schwab@suse.de>
3121
3122         * Make-dist (dist): Resolve `..' in file names.
3123
3124 2000-08-01  Andreas Jaeger  <aj@suse.de>
3125
3126         * stdio-common/Makefile (distribute): Remove removed files, add
3127         new files.
3128
3129         * Makefile (distribute): Remove include/db_185.h and db.h.
3130
3131         * include/db_185.h: Remove, it's not needed anymore.
3132         * include/db.h: Likewise.
3133
3134 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3135
3136         * inet/Makefile (tests): Remove tst-ipnode.
3137         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3138         now.
3139
3140 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3141
3142         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3143         endp statements have already been added.
3144
3145 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3146
3147         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3148         <sysdeps/ia64/sysdep.h>.
3149
3150         * sysdeps/ia64/_mcount.S: New file.
3151
3152         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3153         __gmon_start__.  Fix up extraneous whitespace.
3154
3155 2000-01-12  H.J. Lu  <hjl@gnu.org>
3156
3157         * sysdeps/ia64/elf/initfini.c: New file.
3158
3159 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3160
3161         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3162         dependency between branch and ar.pfs write.
3163
3164 2000-07-31  H.J. Lu  <hjl@gnu.org>
3165
3166         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3167         handle the wchar_t array.
3168
3169 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3170
3171         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3172         10646 which are not yet assigned.
3173         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3174
3175 2000-07-31  Andreas Jaeger  <aj@suse.de>
3176
3177         * inet/Versions: Remove getipnodebyaddr and friends from
3178         GLIBC_2.2.
3179
3180         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3181
3182 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3183
3184         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3185         ch >= 0x81 && ch2 < 0x40 as invalid.
3186
3187 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3188
3189         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3190         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3191
3192 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3193
3194         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3195         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3196
3197 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3198
3199         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3200         0xb8.
3201         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3202
3203 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3204
3205         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3206
3207 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3208
3209         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3210         (from_ucs4): Change values of U+00A4 and U+00ED.
3211         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3212
3213 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3214
3215         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3216         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3217
3218 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3219
3220         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3221         * iconvdata/isiri-3342.h: New file.
3222         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3223         treat 0x80 as a gap.
3224
3225 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3226
3227         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3228         (utf8_encode): Use simple shifts instead.  Fix return value.
3229
3230 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3231
3232         * timezone/private.h: Update from tzcode2000e.
3233         * timezone/asia: Update from tzdata2000e.
3234         * timezone/australasia: Likewise.
3235         * timezone/europe: Likewise.
3236         * timezone/northamerica: Likewise.
3237         * timezone/zone-tab: Likewise.
3238
3239 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3240
3241         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3242         the order of struct sigaltstack members is different.
3243
3244 2000-07-26  Philip Blundell  <philb@gnu.org>
3245
3246         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3247
3248 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3249
3250         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3251         * locale/programs/ld-ctype.c: Adjust for this.
3252
3253         * locale/programs/ld-collate.c: Add more alignment checks.
3254         * locale/string/strcoll.c: Likewise.
3255
3256 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3257
3258         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3259         outside USE_IN_LIBIO block.
3260
3261 2000-07-26  Philip Blundell  <philb@gnu.org>
3262
3263         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3264         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3265
3266 2000-07-28  Philip Blundell  <philb@gnu.org>
3267
3268         * math/test-fpucw.c: Ignore reserved bits in control word.
3269
3270 2000-07-28  Philip Blundell  <philb@gnu.org>
3271
3272         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3273         (ret): Redefine to PSEUDO_RET.
3274         (PSEUDO): Remove jump to syscall_error.
3275
3276 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3277
3278         * resolv/README: Add some information about using the resolver in
3279         multi-threaded code and with C++.  Spelling fixes.
3280
3281 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3282
3283         * resolv/resolv.h (struct __sockaddr_in): Remove.
3284         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3285
3286 2000-07-29  Greg McGary  <greg@mcgary.org>
3287
3288         * Rules (test-bp-inputs, make-test-out): New variables.
3289         ($(objpfx)%-bp.out): New rule.
3290         ($(objpfx)%.out): Rewrite in terms of new variables.
3291
3292         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3293         internal function that uses vtable.
3294         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3295         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3296
3297         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3298         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3299         (chunk_align): Likewise.
3300
3301         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3302         in a way that conforms to decl, and avoids spurious bounds violation.
3303
3304         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3305         * sysdeps/generic/frame.h: Likewise.
3306         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3307         around return value.
3308         (__backtrace): Qualify frame-pointer chain and return address
3309         pointers as __unbounded.  Wrap bounds around variable `current'.
3310         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3311         around return value.
3312         (catch_segfault): Qualify frame-pointer chain and return address
3313         pointers as __unbounded.  Wrap bounds around variable `current'.
3314         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3315         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3316         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3317         __unbounded.
3318         (__backtrace): Qualify frame-pointer chain and return address
3319         pointers as __unbounded.  Wrap bounds around variable `current'.
3320
3321         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3322         * sysdeps/i386/mul_1.S: Likewise.
3323         * sysdeps/i386/submul_1.S: Likewise.
3324         * sysdeps/i386/i586/addmul_1.S: Likewise.
3325         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3326         * sysdeps/i386/i586/submul_1.S: Likewise.
3327
3328 2000-07-27  Andreas Jaeger  <aj@suse.de>
3329
3330         * libio/Depend: New file, libio needs localedata for tests.
3331         * posix/Depend: Likewise.
3332
3333 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3334
3335         * stdio-common/_i18n_itoa.c: Removed.
3336         * stdio-common/_i18n_itoa.h: Removed.
3337         * stdio-common/_i18n_itowa.c: Removed.
3338         * stdio-common/_i18n_itowa.h: Removed.
3339         * stdio-common/_i18n_number.h: New file.
3340         * stdio-common/Depend: New file.
3341         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3342         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3343         printing.  Change printing of numbers with locale specific digits to
3344         use new code in _i18n_number.h.
3345         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3346         _i18n_itowa.
3347
3348         * stdio-common/bug13.c: Improve messages.
3349
3350         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3351         (set_class_defaults): Always search also for Uxxxx names.
3352         Detect insufficient number of outdigits.
3353
3354         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3355
3356 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3357
3358         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3359         _NL_CTYPE_MAP_NAMES.
3360         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3361         * wctype/wcfuncs.c (towlower, towupper): Use them.
3362         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3363         * wctype/wctrans.c (wctrans): Likewise.
3364         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3365
3366 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3367
3368         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3369         Use the optimized version of this function outside glibc as well.
3370
3371 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3372
3373         * locale/indigits.h (indigit_value): Correct.
3374         * locale/indigitswc.h (indigitwc_value): Correct.
3375         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3376         conversion, add GROUP checking for it, fix GROUP number
3377         conversion with strlen(thousands) > 1.
3378         Honour width correctly in the presence of floating
3379         decimal points and thousands separators.
3380         * stdio-common/tst-sscanf.c: New test.
3381         * stdio-common/Makefile: Add it to tests.
3382         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3383         thousands separators and group argument is non-zero.
3384
3385 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3386
3387         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3388         starts at GLIBC_2.2.
3389
3390 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3391
3392         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3393         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3394         _test_and_set.
3395         (headers): Add sys/tas.h.
3396         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3397         GLIBC_2.2 from libc.
3398         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3399         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3400         _test_and_set.
3401
3402 2000-07-28  Andreas Jaeger  <aj@suse.de>
3403
3404         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3405
3406         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3407         ($(objpfx)tst-dladdr.out): new.
3408         (tests): Add tst-dladdr.
3409         ($(objpfx)glrefmain): Use libdl.
3410
3411         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3412         <vs@caldera.de>.
3413
3414 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3415
3416         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3417         ftruncate(64) calls.
3418
3419 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3420
3421         * intl/tst-translit.c: Include string.h to get prototype for
3422         strcmp().
3423
3424 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3425
3426         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3427         name and add weak alias for __fork.
3428
3429         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3430         & pwrite to use __libc_<name> as strong names instead of
3431         __syscall_<name>.
3432
3433         * include/sched.h: Add clone2 prototype.
3434
3435 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3436
3437         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3438         procedure name twice.
3439
3440 2000-07-27  Philip Blundell  <philb@gnu.org>
3441
3442         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3443
3444 2000-07-27  Andreas Jaeger  <aj@suse.de>
3445
3446         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3447         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3448         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3449         Reported by Andi Kleen <ak@suse.de>.
3450
3451         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3452         (do_wait): Test requests with aio_return64.
3453         (do_test): Change callers of do_wait.
3454
3455 2000-07-26  Andreas Jaeger  <aj@suse.de>
3456
3457         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3458         (do_wait): Test requests with aio_return.
3459         (do_test): Change callers of do_wait.
3460
3461 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3462
3463         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3464         from request list.  Don't do the list handling here, call
3465         __aio_remove_request.
3466         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3467         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3468         request might already be processed.  Don't do the list handling
3469         here, call __aio_remove_request.
3470
3471         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3472         LIO_DSYNC.
3473
3474         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3475         are missing.
3476
3477 2000-07-27  Greg McGary  <greg@mcgary.org>
3478
3479         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3480         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3481         in union init.  Pass zero for ignored semnum arg to semctl.
3482         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3483
3484 2000-07-26  Greg McGary  <greg@mcgary.org>
3485
3486         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3487         data structure pointers as __unbounded.
3488         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3489         * sysdeps/generic/bp-semctl.h: New file.
3490         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3491         pointers as __unbounded.  Check bounds of syscall args.
3492         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3493         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3494         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3495         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3496         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3497         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3498         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3499         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3500         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3501         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3502         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3503         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3504         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3505         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3506         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3507         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3508
3509 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3510
3511         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3512         by default.
3513         * locale/C-ctype.c: Likewise.
3514         * wcsmbs/wcsmbsload.c: Likewise.
3515
3516 2000-07-26  Greg McGary  <greg@mcgary.org>
3517
3518         * Makeconfig (+link-bounded, link-libc-bounded,
3519         link-extra-libs-bounded): New variables.
3520         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3521         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3522         * Rules (tests-bp.out): New variable.
3523         (tests): Conditionally add BP tests.
3524         (binaries-bounded): Add variable and associated rule.
3525         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3526         Move conditional stuff after place where condition is defined.
3527
3528         * malloc/malloc.c (bp-checks.h): Add #include.
3529         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3530         (_bin_at): Add unbounded version of bin_at.
3531         (IAV, chunk_alloc): Use unbounded _bin_at.
3532         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3533         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3534         Wrap BOUNDED_N around return value.
3535         (chunk_realloc): Adjust oldsize once.
3536
3537         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3538         (__ubp_memchr): Add correct decl.
3539         (_CHECK_STRING): Use __ubp_memchr.
3540         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3541         New alias for unbounded-pointer __memchr.
3542         * sysdeps/i386/memchr.S: Likewise.
3543         * sysdeps/ia64/memchr.S: Likewise.
3544         * sysdeps/m68k/memchr.S: Likewise.
3545         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3546         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3547         * sysdeps/vax/memchr.s: Likewise.
3548
3549         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3550         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3551         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3552         * sysdeps/i386/i686/strtok.S: Likewise.
3553         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3554         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3555
3556         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3557         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3558
3559         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3560         bounds of copy_result to mount_proc.
3561
3562 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3563
3564         * wctype/wctype.h (__wctrans_l): New declaration.
3565         * wctype/wctrans_l.c: New file.
3566         * wctype/Makefile (routines): Add wctrans_l.
3567
3568 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3569
3570         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3571         Patch by MacGyver <macgyver@tos.net>.
3572
3573 2000-07-26  Andreas Jaeger  <aj@suse.de>
3574
3575         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3576         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3577         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3578
3579         * rt/tst-aio.c (test_file): Fix typo.
3580         * rt/tst-aio64.c (test_file): Likewise.
3581
3582         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3583         * rt/Makefile: Add rules to build and run tst-aio3.
3584
3585         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3586         it's not needed and confuses only.
3587
3588 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3589
3590         * resolv/res_init.c: Add support for nameserver communication with
3591         IPv6.
3592         * resolv/res_send.c: Likewise.
3593         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3594         in nsaddrs field.
3595         Patch by <venaas@nvg.ntnu.no>.
3596
3597 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3598
3599         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3600         (wcwidth_table_get): New function.
3601         (wcwidth_table_add): Call it.
3602         (wctrans_table_get): New function.
3603         (wctrans_table_add): Call it.
3604
3605 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3606
3607         * rt/lio_listio.c (lio_listio): Always disable individual
3608         notification.
3609         * rt/Makefile: Add rules to build and run tst-aio2.
3610         * rt/tst-aio2.c: New file.
3611
3612         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3613         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3614
3615 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3616
3617         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3618         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3619         leading and trailing spaces from host, user and domain name.
3620
3621 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3622
3623         * csu/defs.awk: Add support for need_endp.
3624
3625 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3626
3627         * resolv/resolv.h: Remove __P from res_send_qhook and
3628         res_send_rhook typedefs.
3629
3630 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3631
3632         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3633
3634 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3635
3636         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3637
3638 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3639
3640         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3641         calling thread, set the cancellation flag and return success
3642         instead of EINTR.
3643
3644 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3645
3646         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3647         * libio/tst-widetext.c: New file.
3648         * libio/tst-widetext.input: New file.
3649
3650         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3651
3652         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3653         empty external buffer correctly.
3654
3655 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3656
3657         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3658         __STRING(entry) and not #entry.
3659         (_RTLD_EPILOGUE): Likewise.
3660         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3661
3662 2000-07-25  Andreas Jaeger  <aj@suse.de>
3663
3664         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3665         according to changes in test program, run also with static only
3666         builds.
3667         ($(objpfx)tst-printf.out): Likewise.
3668
3669         * stdio-common/tst-unbputc.sh: Likewise.
3670         * stdio-common/tst-printf.sh: Likewise.
3671
3672 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3673
3674         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3675
3676         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3677         loop.
3678
3679         * libio/fileops.c: Pretty print.
3680
3681 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3682
3683         * wctype/wchar-lookup.h: New file.
3684         * wctype/iswctype.c: Include "wchar-lookup.h".
3685         (__iswctype): Support alternate locale format with 3-level tables.
3686         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3687         * wctype/towctrans.c (__towctrans): Likewise.
3688         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3689         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3690         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3691         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3692         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3693         __iswxdigit, towlower, towupper): Support alternate locale format
3694         with 3-level tables.
3695         * wctype/wcextra.c (iswblank): Likewise.
3696         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3697         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3698         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3699         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3700         format with 3-level tables.
3701         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3702         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3703         format, return a 3-level table pointer.
3704         * wctype/wctype_l.c (__wctype_l): Likewise.
3705         * wctype/wctrans.c (wctrans): Likewise.
3706         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3707         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3708         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3709         (iswctype): Remove macro definition.
3710         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3711         (internal_wcwidth): Support alternate locale format with 3-level
3712         tables.
3713         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3714         New nl_items.
3715         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3716         Define them as being type "word".
3717         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3718         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3719         __ctype32_width): New exported variables.
3720         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3721         alternate locale format. Don't initialize __ctype_names and
3722         __ctype_width in the alternate locale format.
3723         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3724         * locale/programs/localedef.c (oldstyle_tables): New variable.
3725         (OPT_OLDSTYLE): New macro.
3726         (options): Add --old-style option.
3727         (parse_opt): Handle --old-style option.
3728         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3729         map_offset, class_3level, map_3level, width_3level members.
3730         (ctype_output): Support for alternate locale format: Computation of
3731         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3732         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3733         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3734         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3735         now contain both class and map tables.
3736         (struct wctype_table): New type.
3737         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3738         functions.
3739         (struct wcwidth_table): New type.
3740         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3741         functions.
3742         (struct wctrans_table): New type.
3743         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3744         functions.
3745         (allocate_arrays): Support for alternate locale format: Set
3746         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3747         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3748         to the first 256 characters. Compute ctype->map_3level. Set
3749         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3750         instead of ctype->width.
3751
3752 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3753
3754         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3755         string functions.
3756
3757 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3758
3759         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3760         in wide characters, not bytes.
3761         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3762         into file.
3763
3764 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3765
3766         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3767         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3768         LC_MEASUREMENT, LC_IDENTIFICATION.
3769
3770         * locale/xlocale.h (struct __locale_struct): Increase size of
3771         __locales array.
3772         * locale/duplocale.c (__duplocale): Copy newly added categories as
3773         well.
3774         * locale/freelocale.c (__freelocale): Free newly added categories.
3775         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3776         If a base is given, use it, don't simply return it.
3777
3778 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3779
3780         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3781         variables, copied_key and copied_salt, instead of boolean variables.
3782
3783 2000-07-24  Andreas Jaeger  <aj@suse.de>
3784
3785         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3786         check for offset.
3787
3788         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3789         initgroups_function, adopted prototype for change from 2000-07-23.
3790         (initgroups): Follow type change.
3791
3792         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3793         & PAGE_MASK case, reformat.
3794
3795         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3796         from stdin and setup environment.
3797
3798 2000-07-24  Andreas Schwab  <schwab@suse.de>
3799
3800         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3801
3802 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3803
3804         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3805         more.  Patch by scarlet@mit.edu [PR libc/1799].
3806
3807         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3808         [PR libc/1792].
3809
3810         * argp/argp-parse.c (parser_finalize): Reverse order in which
3811         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3812
3813         * grp/initgroups.c (initgroups): Don't limit the possible number
3814         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3815         the setgroups call while the call fails and descrease the number
3816         of groups each round.
3817         The name of the initgroups function in the NSS modules changed.
3818         (compat_call): Adapt for dynamic resizing.
3819         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3820         Implement dynamic resizing.
3821         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3822         Likewise.
3823         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3824         * hesiod/Versions: Change exported interface name.
3825         * nis/Versions: Change exported interface name.
3826
3827 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3828
3829         * locale/iso-639.def: Some errors corrected.
3830         Patch by Keld Simonsen.
3831
3832         * include/limits.h: Update non-gcc portion.
3833         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3834
3835 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3836
3837         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3838         program's data space, reallocate only the space that was just
3839         deallocated to release its backing space.
3840
3841 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3842
3843         * stdio-common/vfprintf.c (process_string_arg): For wide character
3844         version, handle precision also correctly.
3845
3846         * nss/nss_files/files-hosts.c: Correct problem with three or more
3847         entries with the same name.
3848
3849         * nss/nss_files/files-hosts.c: Implement multi handling.
3850         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3851
3852 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3853
3854         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3855         strcasecmp.
3856
3857         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3858         * malloc/Makefile: Likewise.
3859         * malloc/tst-mtrace.sh: Likewise.
3860         * posix/Makefile: Likewise.
3861         * posix/globtest.sh: Likewise.
3862         * posix/wordexp-tst.sh: Likewise.
3863         * string/Makefile: Likewise.
3864
3865 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3866
3867         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3868         size instead of LC_ALL to take into account the new locale
3869         categories.
3870
3871 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3872
3873         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3874         remainders of hash table.
3875         * locale/categories.def: Remove remainders of transliteration
3876         hash table.
3877         * locale/langinfo.h: Likewise.
3878         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3879         transliteration tables.
3880
3881         * locale/gen-translit.pl: New file.
3882         * locale/C-translit.h.in: New file.
3883         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3884         data pointers with data from this file.
3885         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3886         and gen-translit.pl.
3887         Add rule to generate C-translit.h.
3888         * intl/tst-translit.c (main): Update for now performed
3889         transliteration.
3890
3891         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3892         (it's no input error).
3893         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3894         * stdio-common/scanf12.c: Correct expected result for first scanf.
3895
3896         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3897         of multibyte character strings in %s format with precision.
3898
3899 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3900
3901         * locale/programs/ld-collate.c (collate_read): Allow collating
3902         symbols and elements be named in reorder-after instructions.
3903         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3904
3905         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3906         duplication with generated name, not the name of the first
3907         character.
3908         Patch by Yong Li <yong.li@asu.edu>.
3909
3910         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3911         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3912
3913 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3914
3915         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3916         allocations only if a non-main arena cannot be extended.
3917
3918 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3919
3920         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3921         in DF_1_NODEFLIB handling.
3922
3923 2000-07-21  Andreas Jaeger  <aj@suse.de>
3924
3925         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3926         own rule.
3927
3928         * libio/fwide.c: Include <wchar.h> for prototype.
3929
3930 2000-07-21  Greg McGary  <greg@mcgary.org>
3931
3932         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3933         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3934         Define in terms of chunk_at_offset.
3935         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3936         (next_bin, prev_bin): offset by size of real array elements.
3937         (chunk_align): Make `m' a scalar, since that's how it's used.
3938
3939 2000-07-21  Greg McGary  <greg@mcgary.org>
3940
3941         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3942         UNCHECK_BOUNDS.
3943         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3944         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3945         Wrap bounds around argv & envp and each of their string members.
3946         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3947         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3948         symbol in BP_SYM ().  Discard bounds of address arg.
3949         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3950         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3951         Discard bounds on address arg, add bounds to return value.
3952
3953 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3954
3955         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3956         * elf/filter.c: New file.
3957         * elf/filtmod1.c: New file.
3958         * elf/filtmod2.c: New file.
3959
3960         * elf/rtld.c: Define _dl_bind_not variable.
3961         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3962         * elf/dl-support.c: Likewise.
3963         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3964         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3965         _dl_bind_not.
3966         (profile_fixup): Likewise.
3967
3968         * libio/Makefile (routines): Add fwide.
3969         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3970         fwide now.  Internal calls to _IO_fwide must do locking themselves
3971         or don't need locking.
3972         * libio/fwide.c: New file.
3973
3974         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3975
3976         * elf/Makefile: Add no modules for nodelete test.
3977         * elf/nodelmod3.c: New file.
3978         * elf/nodelmod4.c: New file.
3979         * elf/nodelete.c: Also test case where dependency of dlopen() object
3980         is marked nodelete.
3981
3982         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3983         * elf/nodlopen.c: New file.
3984         * elf/nodlopenmod.c: New file.
3985         * include/dlfcn.h: Define __RTLD_DLOPEN.
3986         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3987         and this is a dlopen() call, do not load the binary.
3988         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3989         * dlfcn/dlopenold.c: Likewise.
3990         * configure.in: Add test for -z nodelete option.
3991         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3992
3993 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3994
3995         Make Hesiod NSS module thread-safe.
3996
3997         * hesiod/README.hesiod: Update.
3998
3999         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4000         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4001         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4002         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4003         hesiod-proto.
4004         * hesiod/nss_hesiod/hesiod-init.c: New file.
4005         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4006         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4007         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4008         * hesiod/nss_hesiod/hesiod-service.c
4009         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4010         looking up services by port number.
4011         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4012
4013         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4014         * hesiod/hesiod.h: Likewise.
4015         * hesiod/hesiod_p.h: Likewise.
4016
4017 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4018
4019         Fix problems with `struct __res_state' getting too big.
4020         * resolv/resolv.h (struct __sockaddr_in): New definition.
4021         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4022         the private parts of the structure to save some space.
4023         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4024         (struct sockaddr_in *) in call to sock_eq.
4025         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4026
4027 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4028
4029         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4030         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4031         with nodelete.
4032         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4033         to _dl_map_object.  Return immediately if no object loaded.
4034         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4035         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4036         if it exists into l_flags_1 word.
4037         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4038         it to determine whether loading is wanted or not.
4039         (_dl_map_object): Likewise.
4040         Call _dl_map_object_from_fd with new parameter.
4041         * sysdeps/generic/ldsodefs.h: Update prototype.
4042         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4043         * elf/rtld.c: Likewise.
4044         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4045         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4046         * elf/noload.c: New file.
4047         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4048         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4049         * sysdeps/mips/bits/dlfcn.h: Likewise.
4050         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4051         (tests-nodelete-yes): Define.
4052         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4053         Add rules to build nodelete and modules.
4054         * elf/nodelete.c: New file.
4055         * elf/nodelmod1.c: New file.
4056         * elf/nodelmod2.c: New file.
4057         * configure.in: Add test for -z nodelete option.
4058         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4059
4060         * libio/Makefile (tests): Add tst_wprintf2.
4061         (tst_wprintf2-ARGS): Define.
4062         * libio/tst_wprintf2.c: New file.
4063         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4064
4065         * libio/wfiledoalloc.c: Only allocate external buffer if this
4066         hasn't happened yet.
4067
4068         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4069         something in the buffer.  gconv call can write up to end of the
4070         buffer, not only _IO_write_end.
4071         (_IO_wfile_overflow): Allocate also external buffer.
4072
4073 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4074
4075         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4076         strings with precision in vfwprintf correctly.
4077         * stdio-common/vfprintf.c: Fix completely broken handling of
4078         unbuffered wide character streams.
4079         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4080
4081         * resolv/Makefile (distribute): Add README.
4082
4083         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4084
4085 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4086
4087         Update resolver code to BIND 8.2.3-T5B.
4088
4089         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4090         __res_nclose.
4091         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4092         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4093         __res_search.
4094         * resolv/Banner: BIND-8.2.3-T5B.
4095
4096         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4097         * resolv/herror.c: Likewise.
4098         * resolv/inet_addr.c: Likewise.
4099         * resolv/inet_net_ntop.c: Likewise.
4100         * resolv/inet_net_pton.c: Likewise.
4101         * resolv/inet_neta.c: Likewise.
4102         * resolv/inet_ntop.c: Likewise.
4103         * resolv/nsap_addr.c: Likewise.
4104         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4105         IPv6 addresses (ISC bug #520).
4106
4107         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4108         * resolv/ns_parse.c: Likewise.
4109         * resolv/ns_netint.c: Likewise.
4110         * resolv/ns_samedomain.c: Likewise.
4111         * resolv/ns_ttl.c: Likewise.
4112         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4113         RCS ID in object file.
4114
4115         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4116         * resolv/res_mkquery.c: Likewise.
4117         * resolv/res_query.c: Likewise.
4118         * resolv/res_init.c: Likewise.
4119         (res_setoptions): Mark internal.
4120         * resolv/res_send.c: Likewise.
4121         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4122         by using poll instead.
4123         * resolv/res_comp.c: Likewise.
4124         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4125         weak alias for __dn_expand.
4126         * resolv/res_data.c: Likewise.
4127         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4128         in _res.options.  Avoids a potential security risk by avoiding a
4129         close (0).
4130         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4131         res_mkquery, res_query, res_querydomain adn res_search weak
4132         aliases for __res_mkquery, __res_query, __res_querydomain and
4133         __res_search.
4134         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4135         instead to avoid close(0).
4136         (res_init): Always use the static resolver context.
4137         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4138         alias for __res_init.
4139
4140         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4141         RES_SET_H_ERRNO and accompanying comment to...
4142         * include/resolv.h: ... here.
4143
4144         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4145         * resolv/arpa/nameser_compat.h: Likewise.
4146
4147 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4148
4149         * nss/makedb.c (main): Compare result of load_db with
4150         NSS_STATUS_SUCCESS and not 0.
4151         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4152
4153         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4154
4155 2000-07-18  Greg McGary  <greg@mcgary.org>
4156
4157         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4158         (EXTEND_BUFFER): Use it.
4159
4160 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4161
4162         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4163         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4164         __builtin_return_address.
4165         * dlfcn/dlopenold.c: Likewise.
4166         * dlfcn/dlsym.c: Likewise.
4167         * dlfcn/dlvsym.c: Likewise.
4168         * elf/dl-profstub.c: Likewise.
4169         * malloc/malloc.c: Likewise.
4170         * sysdeps/generic/machine-gmon.h: Likewise.
4171         Based on a patch by schwidefsky@de.ibm.com.
4172
4173 2000-07-18  Andreas Jaeger  <aj@suse.de>
4174
4175         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4176         NULL to elf_machine_fixup_plt t argument to silence GCC.
4177
4178         * include/string.h: Add prototype for __memchr.
4179
4180         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4181
4182         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4183         instead of memrchr.
4184
4185 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4186
4187         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4188
4189         * locale/C-ctype.c: Add initializers for gap elements.
4190         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4191         for gap elements.
4192
4193 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4194
4195         * nscd/nscd.c (print_version): Update copyright year.
4196
4197 2000-07-17  Greg McGary  <greg@mcgary.org>
4198
4199         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4200         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4201         signature argnames with angle-brackets for use as word delimiters,
4202         and to induce syntax errors for any args not handled.  Split
4203         multi-echo echoes and comment each stage.
4204         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4205         * sysdeps/unix/inet/syscalls.list: Likewise.
4206         * sysdeps/unix/mman/syscalls.list: Likewise.
4207         * sysdeps/unix/syscalls.list: Likewise.
4208         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4209         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4210         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4211         * sysdeps/unix/sysv/syscalls.list: Likewise.
4212         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4213
4214         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4215         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4216         qualifiers.  Don't check NULL-terminator of argv & envp.
4217         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4218         unbounded pointer type in word-size assertion.
4219         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4220         cases to stifle warnings.
4221
4222         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4223         _IO_file_attach.
4224         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4225
4226         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4227         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4228         ptr as __unbouned.
4229
4230         * Makerules (o-objects): Supplement with $(o-objects$o).
4231         * string/Makefile (o-objects.ob): Add variable to pull
4232         unbounded versions of memcpy, memset and memchr into libc_b.
4233
4234         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4235         rather than non-existent __ubp_memchr.
4236         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4237         (_CHECK_STRING, _CHECK_N): New macros.
4238         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4239         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4240         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4241         Add weak alias "memchr".
4242         * sysdeps/generic/memchr.c: Likewise.
4243         * sysdeps/i386/memchr.S: Likewise.
4244         * sysdeps/ia64/memchr.S: Likewise.
4245         * sysdeps/m68k/memchr.S: Likewise.
4246         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4247         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4248         * sysdeps/vax/memchr.s: Likewise.
4249
4250         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4251
4252         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4253         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4254         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4255         __BOUNDED_POINTERS__.
4256         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4257         for __BOUNDED_POINTERS__.
4258
4259 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4260
4261         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4262         field of struct __gconv_trans_data differently.  Don't pass NULL to
4263         trans_init_fct.  Simplify list append operation.
4264
4265 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4266
4267         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4268         not only those having tsearch.
4269
4270 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4271
4272         * locale/langinfo.h: Add placeholder values in enum for removed
4273         LC_CTYPE entries.
4274
4275 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4276
4277         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4278         chain if the PHDR check fails.
4279
4280 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4281
4282         * nss/getent.c (print_hosts): Make sure we always print a space
4283         between numeric addresses and hostnames.
4284
4285 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4286
4287         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4288         i.e. if n_mmaps_max>0.
4289
4290 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4291
4292         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4293         values to remove possible clash with other AI_* constants.
4294         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4295         hexadecimal constants to stress the fact they're in fact
4296         bit flags.
4297
4298 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4299
4300         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4301         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4302         instead of res_init.
4303
4304 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4305
4306         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4307         parameters of memset calls to avoid warnings.
4308
4309 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4310
4311         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4312         necessary.
4313
4314         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4315         Patch by Greg McGary <greg@mcgary.org>.
4316
4317         * io/Makefile (tests): Add tst-getcwd.
4318         * io/tst-getcwd.c: New file.
4319
4320         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4321
4322 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4323
4324         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4325         structure.
4326
4327 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4328
4329         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4330         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4331
4332 2000-07-12  H.J. Lu  <hjl@gnu.org>
4333
4334         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4335         GLIBC_2.2.
4336         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4337         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4338         (sysdep-routines): Add clone2.
4339         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4340
4341 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4342
4343         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4344         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4345
4346 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4347
4348         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4349         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4350         Change type of si_band from "int" to "long".
4351         (si_imm) [USE_GNU]: Define
4352         (si_isr) [USE_GNU]: Ditto.
4353         (ILL_BREAK) [USE_GNU]: Ditto.
4354         (FPE_DECOVF) [USE_GNU]: Ditto.
4355         (FPE_DECDIV) [USE_GNU]: Ditto.
4356         (FPE_DECERR) [USE_GNU]: Ditto.
4357         (FPE_INVASC) [USE_GNU]: Ditto.
4358         (FPE_INVDEC) [USE_GNU]: Ditto.
4359         (TRAP_BRANCH) [USE_GNU]: Ditto.
4360         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4361
4362 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4363
4364         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4365         bits/sigcontext as struct mcontext does not depend on it.
4366
4367         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4368
4369 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4370
4371         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4372
4373 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4374
4375         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4376
4377 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4378
4379         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4380
4381 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4382
4383         * intl/Makefile (test-srcs): Add tst-translit.
4384         (tests): Likewise.
4385         Add rules to build and run tst-translit.
4386         * intl/tst-translit.c: New file.
4387         * intl/tst-translit.sh: New file.
4388         * intl/translit.po: New file.
4389
4390 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4391
4392         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4393         transliteration function did its job, continue, don't stop.
4394
4395         * iconvdata/iso646.c: Little optimizations in body for conversion
4396         from UCS4.
4397
4398 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4399
4400         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4401
4402 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4403
4404         * configure.in: Check for pwd binary.
4405         * config.make.in: Add PWD_P to be subsituted.
4406         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4407
4408 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4409
4410         * iconvdata/Makefile (modules): Add GB18030.
4411         (distribute): Add gb18030.c.
4412         * iconvdata/gconv-modules: Add entries for GB18030 module.
4413         * iconvdata/gb18030.c: New file.
4414         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4415         and Wu Jian.
4416
4417 2000-07-13  Andreas Jaeger  <aj@suse.de>
4418
4419         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4420         patch.
4421
4422         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4423         * inet/getnetgrent.c (free_mem): Likewise.
4424         * misc/mntent.c (free_mem): Likewise.
4425         * nss/getXXbyYY.c (free_mem): Likewise.
4426         * nss/getXXent.c (free_mem): Likewise.
4427         * pwd/fgetpwent.c (free_mem): Likewise.
4428         * shadow/fgetspent.c (free_mem): Likewise.
4429
4430 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4431
4432         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4433         64-bit architecture correctly [PR libc/1794].
4434
4435 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4436
4437         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4438         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4439         report that we are out of memory.
4440         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4441         * elf/dl-libc.c (dlerror_run): Likewise.
4442         * elf/dl-open.c (_dl_open): Likewise.
4443         * elf/rtld.c (dl_main): Likewise.
4444         * elf/dl-error.c: Define _dl_out_of_memory.
4445         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4446         the error string.
4447         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4448         [PR libc/1813].
4449
4450         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4451
4452         * iconv/loop.c: Fix comment.
4453
4454         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4455
4456 2000-07-13  Andreas Jaeger  <aj@suse.de>
4457
4458         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4459         getcwd (NULL, size) with size > 0.
4460         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4461
4462 2000-07-13  Andreas Jaeger  <aj@suse.de>
4463
4464         * posix/Makefile: Remove build rules for libposix.
4465
4466 2000-07-13  Andreas Schwab  <schwab@suse.de>
4467
4468         * sysdeps/generic/glob.c (glob): Fix memory leak.
4469         [SHELL]: Remove reference to undefined variable `files'.
4470         Fixes PR libc/1782.
4471
4472 2000-07-13  Andreas Jaeger  <aj@suse.de>
4473
4474         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4475         functions.
4476
4477         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4478         memory if it was allocated.
4479
4480 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4481
4482         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4483         step.
4484
4485         * iconv/gconv_open.c (__gconv_open): Reapply
4486         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4487
4488                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4489
4490         * iconv/gconv_open.c: Undo last two changes for now.  They break
4491         everything.
4492
4493 2000-07-12  Andreas Jaeger  <aj@suse.de>
4494
4495         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4496         compiler.
4497         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4498         (CFLAGS-dl-cache.c): Likewise.
4499         (CFLAGS-ldconfig.c): Added, passes directory locations.
4500
4501         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4502         locate cache.
4503         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4504         (main): Use configured LIBDIR and SLIBDIR.
4505
4506 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4507
4508         * math/bits/cmathcalls.h (cimag): Add __THROW.
4509         (creal, conj): Likewise.
4510         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4511         by negative value.
4512
4513 2000-07-12  H.J. Lu  <hjl@gnu.org>
4514
4515         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4516         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4517
4518 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4519
4520         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4521         it is wrong.
4522
4523 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4524
4525         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4526
4527 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4528
4529         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4530         __modname.
4531
4532 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4533
4534         * iconv/gconv_open.c (__gconv_open): Initialize
4535         result->__steps[cnt].__data.
4536
4537 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4538
4539         * nss/getent.c (services_keys): Pass port number in network byte
4540         order in call to getservbyport.
4541
4542 2000-07-11  Andreas Jaeger  <aj@suse.de>
4543
4544         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4545         source dir.
4546         * intl/Makefile (do-gettext-test): Likewise.
4547         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4548
4549 2000-07-11  Andreas Schwab  <schwab@suse.de>
4550
4551         * Makeconfig (run-program-prefix): New rule.
4552         (built-program-cmd): Use run-program-prefix.
4553
4554 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4555
4556         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4557         and NOEXPR unconditionally available.
4558
4559 2000-07-12  Greg McGary  <greg@mcgary.org>
4560
4561         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4562         * sysdeps/posix/open64.c: Likewise.
4563         * sysdeps/generic/fegetenv.c: Likewise.
4564         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4565         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4566         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4567         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4568         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4569         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4570
4571 2000-07-11  Greg McGary  <greg@mcgary.org>
4572
4573         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4574         Add extra level of macro expansion.
4575         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4576         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4577         is available at the time `select' prototype is declared.
4578         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4579         Collect non-versioned weak aliases.  Consider only non-versioned
4580         aliases for the user-visible systemcall name.  Do checks inline with
4581         call to primitive system call.
4582         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4583         stand-alone bounds checks to suppress unused value warnings.
4584         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4585
4586 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4587
4588         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4589         file descriptor checking in SUID programs for the Hurd.
4590
4591         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4592         res_hostalias instead of __hostalias for thread-safety.
4593
4594 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4595
4596         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4597         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4598
4599 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4600
4601         * include/features.h: Include ISO C99 features if the compiler used
4602         is an ISO C99 compiler.
4603         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4604
4605 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4606
4607         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4608
4609 2000-07-10  Andreas Jaeger  <aj@suse.de>
4610
4611         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4612         it's overridden by libpthreads.
4613         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4614         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4615         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4616         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4617         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4618
4619         * malloc/Makefile: Run tst-mtrace only with shared libs.
4620
4621         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4622         with shared libs.
4623
4624 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4625
4626         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4627         that gpreg really points to the GOT section of the calling object.
4628         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4629         checking a start address of first one.
4630         Fix typos.
4631         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4632         Likewise.
4633
4634         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4635
4636 2000-07-10  Andreas Jaeger  <aj@suse.de>
4637
4638         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4639         (string_alias->strong_alias).
4640
4641 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4642
4643         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4644
4645 2000-07-07  Greg McGary  <greg@mcgary.org>
4646
4647         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4648         have no names without leading underscores.
4649
4650 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4651
4652         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4653         U007E.
4654
4655         * stdio-common/Makefile (tests): Remove tst-printf here...
4656         (tests-srcs): ...and add it here.
4657         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4658         Add rules to run tst-printf.sh.
4659         * stdio-common/tst-printf.c: Move code around so that there is really
4660         no further output where it's stated.
4661         * stdio-common/tst-printf.sh: New file.
4662
4663 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4664
4665         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4666         (do_write): Renamed from pwrite.
4667         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4668         `struct _IO_cookie_file'.
4669
4670 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4671
4672         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4673         detected.
4674         * malloc/tst-mtrace.sh: Run mtrace script.
4675
4676 2000-07-07  Greg McGary  <greg@mcgary.org>
4677
4678         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4679         Move all three components of a bounded pointer.
4680
4681 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4682
4683         * locale/programs/locale.c (write_locales): Don't simply add all
4684         directories found in the subdir, test whether at least the
4685         LC_CTYPE file is in there.
4686
4687 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4688
4689         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4690         * iconvdata/euc-kr.c: Likewise.
4691
4692         * stdio-common/vfprintf.c (process_string_arg): Check result of
4693         wcrtomb call and bail out if it failed.
4694
4695         * malloc/Makefile (test-srcs): Add tst-mtrace.
4696         (distribute): Add tst-mtrace.sh.
4697         Add rule to run tst-mtrace.sh.
4698         * malloc/tst-mtrace.c: New file.
4699         * malloc/tst-mtrace.sh: New file.
4700
4701         * include/signal.h: Declare __libc_sigaction.
4702         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4703         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4704         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4705         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4706         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4707         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4708         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4709
4710         * configure.in: Fix CFLAGS-memprofstat.c definition after
4711         2000-06-19 change.
4712         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4713
4714 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4715
4716         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4717         instead of NULL to elf_machine_fixup_plt t argument.
4718         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4719         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4720         cast.
4721
4722 2000-07-06  Andreas Jaeger  <aj@suse.de>
4723
4724         * crypt/Makefile (LDLIBS-cert): Removed.
4725         (LDLIBS-md5c-test): Removed.
4726         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4727         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4728
4729 2000-07-06  Andreas Jaeger  <aj@suse.de>
4730
4731         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4732         of the proc system is "proc".
4733
4734         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4735         thread library for static programs.
4736
4737 2000-07-06  Greg McGary  <greg@mcgary.org>
4738
4739         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4740         New macros.
4741         * sysdeps/generic/strcpy.c: Add bounds checks.
4742         * sysdeps/unix/fxstat.c: Likewise.
4743         * sysdeps/unix/xstat.c: Likewise.
4744         * sysdeps/unix/common/lxstat.c: Likewise.
4745         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4746         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4747         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4748         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4749         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4750         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4751         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4752         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4753         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4754         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4755         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4756         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4757         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4758         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4759         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4760         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4761         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4762         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4763         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4764         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4765         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4766         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4767         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4768         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4769         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4770         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4771         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4772         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4773         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4774         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4775         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4776         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4777         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4778         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4779         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4780         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4781         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4782         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4783         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4784         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4785         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4786         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4787         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4788         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4789         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4790         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4791         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4792         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4793         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4794         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4795         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4796         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4797         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4798         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4799         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4800         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4801         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4802         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4803         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4804         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4805         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4806         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4807         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4808         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4809
4810         * string/endian.h (__LONG_LONG_PAIR): New macro.
4811         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4812         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4813         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4814         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4815         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4816         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4817         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4818         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4819         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4820         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4821         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4822         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4823
4824         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4825
4826 2000-07-06  Andreas Jaeger  <aj@suse.de>
4827
4828         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4829         Initialize result.
4830
4831         * math/test-fpucw.c: Include <stdio.h> for printf.
4832
4833 2000-07-05  Greg McGary  <greg@mcgary.org>
4834
4835         * sysdeps/generic/bp-checks.h: New file.
4836         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4837         with list of #include files.
4838         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4839         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4840         Don't generate BP thunk if `V' appears in signature.
4841         Generate thunks with complete bounds checks.
4842         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4843         * sysdeps/unix/inet/syscalls.list: Likewise.
4844         * sysdeps/unix/mman/syscalls.list: Likewise.
4845         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4846         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4847         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4848         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4849
4850 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4851
4852         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4853         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4854         If mount not in the file fall back on /proc.
4855
4856         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4857         string got copied in.
4858         Patch by Solar Designer <solar@false.com>.
4859
4860 2000-07-05  Andreas Jaeger  <aj@suse.de>
4861
4862         * manual/install.texi (Installation): Update information about
4863         add-ons.
4864         (Configuring and compiling): Update for glibc 2.2.
4865
4866 2000-07-04  Andreas Jaeger  <aj@suse.de>
4867
4868         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4869         (_FPU_IEEE): Likewise.
4870
4871         * math/Makefile (tests): Add test-fpucw.
4872
4873         * math/test-fpucw.c (main): New file.
4874
4875 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4876
4877         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4878
4879         * locale/programs/ld-collate.c (collate_output): Also write out the
4880         collation sequence values and the wide character string for the
4881         collation symbol table.
4882
4883         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4884         * posix/fnmatch_loop.c: Implement collating symbol handling.
4885         * posix/tst-fnmatch.input: Add more tests, especially for collating
4886         symbol handling.
4887
4888         * posix/regex.c: Fix comment.
4889
4890 2000-07-05  Andreas Jaeger  <aj@suse.de>
4891
4892         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4893         (_FPU_GETCW): Remove extra colon.
4894         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4895
4896         * posix/fnmatch_loop.c (FCT): Only declare len if
4897         !WIDE_CHAR_VERSION to silence GCC.
4898
4899         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4900         prototype.
4901         * sysdeps/generic/strchrnul.c: Likewise.
4902         * sysdeps/generic/strlen.c: Likewise.
4903         * sysdeps/generic/strchr.c: Likewise.
4904         * sysdeps/generic/memchr.c: Likewise.
4905
4906 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4907
4908         * posix/fnmatch_loop.c: Implement equivalence class handling.
4909         * posix/tst-fnmatch.input: Add tests for equivalence class
4910         handling.
4911
4912         * posix/fnmatch_loop.c: Improve performance for single-byte
4913         character sets by not using btowc.
4914
4915         * posix/tst-fnmatch.input: Add tests for locale dependent
4916         behaviour.
4917         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4918
4919         * posix/tst-fnmatch.input: Add more test cases.
4920
4921         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4922         are not aligned to alignof(md5_uint32) do it before calling
4923         __md5_process_bytes.
4924         * crypt/md5.c: Make sure buffers are aligned.
4925         * crypt/md5.h: Likewise.
4926         Reported by Solar Designer <solar@false.com>.
4927
4928         * crypt/Makefile: Add dependencies for test programs.
4929
4930         * Rules: Define LC_ALL=C in environments of all programs we run.
4931
4932         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4933
4934 2000-07-03  H.J. Lu  <hjl@gnu.org>
4935
4936         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4937         is 2 + elem + offset, not 2 + elem + offset + 2.
4938
4939 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4940
4941         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4942         suite.
4943         * posix/Makefile (tests): Add tst-fnmatch.
4944         (tst-fnmatch-ENV): Define.
4945         * posix/tst-fnmatch.c: New file.
4946         * posix/tst-fnmatch.sh: New file.
4947
4948 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4949
4950         * locale/programs/charmap.c (charmap_read): Prepend
4951         the condition filename == NULL.
4952
4953 2000-07-03  Greg McGary  <greg@mcgary.org>
4954
4955         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4956
4957         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4958         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4959
4960         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4961         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4962         (FILEBUF_LITERAL): Add cast for CHAIN init.
4963         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4964         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4965         Revert type of `fp' to _IO_FILE*.
4966         (_IO_iter_file): Remove cast.
4967         (_IO_iter_next): Elide intermediate member reference.
4968
4969         * sysdeps/powerpc/strchr.S:  Check bounds.
4970         Wrap extern symbols in BP_SYM ().
4971
4972 2000-07-03  Andreas Jaeger  <aj@suse.de>
4973
4974         * dlfcn/Makefile (generated): New.
4975
4976 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4977
4978         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4979         (__uflow): Likewise.
4980         (__underflow): Likewise.
4981         * libio/wgenops.c (__wunderflow): Likewise.
4982         * stdio-common/tst-unbputc.c: New file.
4983         * stdio-common/tst-unbputc.sh: New file.
4984         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4985
4986         * po/en_GB.po: New file.
4987         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4988
4989 2000-07-01  Andreas Jaeger  <aj@suse.de>
4990
4991         * intl/Makefile (generated-dirs): New.
4992
4993         * elf/Makefile (generated): trusted-dirs.h is always generated,
4994         move out of build-shared condition.
4995         (generated): Merge the two entries for build-shared.
4996
4997 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4998
4999         * debug/Makefile (distribute): Add xtrace.sh.
5000
5001 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5002
5003         * version.h (VERSION): Bump to 2.1.91.
5004
5005         * configure.in: Update warning comment.  glibc should not be
5006         broken anymore.
5007
5008         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5009         ioperm.c, sys/procfs.h, and sys/io.h.
5010
5011         * sysdeps/powerpc/Dist: Add bp-asm.h.
5012
5013         * assert/Depend: Add localedata.
5014         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5015         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5016
5017         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5018         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5019         relocation address to prevent unaligned trap.
5020         Suggested by Richard Henderson <rth@cygnus.com>.
5021
5022 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5023
5024         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5025         if redirecting and either redirection is done using defines or
5026         not optimizing.
5027
5028 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5029
5030         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5031         generated expressions.
5032         Patch by Darren McClelland <dmcclell@zetec.com>.
5033
5034         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5035         since zic uses setlocale and gettext but we cannot make it use the
5036         new locale data since zic calls a shell which might not use the
5037         new libc.
5038
5039         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5040         handling the internation currency symbol.  POSIX says that the
5041         fourth character is used to separate the currency symbol from the
5042         value.  Therefore it does not have to be printed.  But we cannot
5043         remove the space if the currency symbol is printed before the
5044         number since this is what many locales expect.
5045
5046         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5047         whether this information is available.
5048
5049         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5050         buffers in case the translation is too large.  Remember allocated
5051         memory blocks in a list.
5052         (free_mem): Free memory for translations.
5053
5054         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5055
5056         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5057         information is available set the string length to zero.
5058
5059         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5060
5061 2000-06-30  Greg McGary  <greg@mcgary.org>
5062
5063         * sysdeps/powerpc/bp-asm.h: New file.
5064         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5065         Wrap extern symbols in BP_SYM ().
5066         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5067         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5068         * sysdeps/powerpc/setjmp.S: Likewise.
5069         * sysdeps/powerpc/add_n.S: Likewise.
5070         * sysdeps/powerpc/addmul_1.S: Likewise.
5071         * sysdeps/powerpc/lshift.S: Likewise.
5072         * sysdeps/powerpc/rshift.S: Likewise.
5073         * sysdeps/powerpc/mul_1.S: Likewise.
5074         * sysdeps/powerpc/sub_n.S: Likewise.
5075         * sysdeps/powerpc/submul_1.S: Likewise.
5076         * sysdeps/powerpc/strlen.S: Likewise.
5077         * sysdeps/powerpc/memset.S: Likewise.
5078         * sysdeps/powerpc/stpcpy.S: Likewise.
5079         * sysdeps/powerpc/strcmp.S: Likewise.
5080         * sysdeps/powerpc/strcpy.S: Likewise.
5081         * sysdeps/powerpc/elf/bzero.S: Likewise.
5082
5083         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5084         Line up operands column with tabs.
5085
5086 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5087
5088         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5089
5090         * sysdeps/ia64/htonl.S: New file.
5091         * sysdeps/ia64/htons.S: New file.
5092         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5093         floating point registers.
5094         Patches by Dan Pop <Dan.Pop@cern.ch>.
5095
5096 2000-06-30  Andreas Jaeger  <aj@suse.de>
5097
5098         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5099         shared libraries.
5100
5101         * io/Makefile (CFLAGS-test-lfs.c): New.
5102         (tests): Add test-lfs.
5103
5104         * io/test-lfs.c: New file.
5105
5106 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5107
5108         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5109         instruction.
5110
5111 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5112
5113         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5114
5115 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5116
5117         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5118         alias to the fstatfs call.
5119
5120         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5121         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5122
5123         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5124         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5125
5126         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5127         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5128         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5129         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5130
5131         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5132         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5133
5134         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5135         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5136
5137         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5138         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5139
5140         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5141
5142 2000-06-29  Andreas Jaeger  <aj@suse.de>
5143
5144         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5145         with syslog.
5146         (print_err_message): Likewise.
5147         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5148
5149 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5150
5151         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5152         used as words is properly aligned.
5153
5154         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5155         data files.
5156
5157 2000-06-29  Greg McGary  <greg@mcgary.org>
5158
5159         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5160         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5161         length 7..9, just in case...
5162         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5163
5164         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5165         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5166         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5167         (PUSH_SIGNAL_MASK): New macro.
5168         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5169         LEAVE is unnecessary.  Check bounds of jmp_buf.
5170         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5171         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5172         immediately before tail-call.
5173         * sysdeps/i386/setjmp.S: Likewise.
5174         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5175         * sysdeps/i386/bsd-setjmp.S: Likewise.
5176
5177 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5178
5179         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5180         versioned_symbol.
5181         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5182         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5183         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5184         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5185         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5186         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5187         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5188         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5189
5190 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5191
5192         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5193         we later need to calling free().
5194         Patch by Matt Wilson <msw@redhat.com>.
5195
5196         * stdio-common/tst-printf.c: Add test for above problem.
5197
5198 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5199
5200         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5201         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5202
5203 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5204
5205         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5206         prototype for abs().
5207         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5208
5209 2000-06-23  Andreas Jaeger  <aj@suse.de>
5210
5211         * config.h.in: Don't use regparm with bounded pointers.
5212
5213 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5214
5215         * stdlib/grouping.h: Correctly handle multibyte thousands
5216         separator and decimal point.
5217         * stdlib/stdtod.c: Likewise.
5218         * sysdeps/generic/strtol.c: Likewise.
5219
5220         * locale/categories.def: Add entries for wide character decimal point
5221         and thousands separator in numeric and monetary category.
5222
5223 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5224
5225         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5226         second definition and initialization of decimal.
5227
5228 2000-06-28  Greg McGary  <greg@mcgary.org>
5229
5230         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5231         out.
5232         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5233         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5234         in.
5235         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5236         (struct _IO_FILE_plus *).
5237         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5238         THIS, since _IO_JUMPS no longer does it implicitly.
5239         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5240         arg type as (struct _IO_FILE_plus *).
5241         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5242         arg as (_IO_strfile *).
5243         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5244         Declare 1st arg as (_IO_strfile *).
5245         * libio/fileops.c (_IO_new_file_init): Declare
5246         arg type as (struct _IO_FILE_plus *).
5247         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5248         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5249         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5250         Declare iteration pointer as (struct _IO_FILE_plus *).
5251         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5252                 (struct _IO_FILE_plus *).
5253         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5254         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5255         (_IO_check_libio): Set user-visible handles to
5256         (struct _IO_FILE_plus *).
5257         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5258         to (struct _IO_FILE_plus *).
5259
5260         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5261         whose high bound includes vtable to all functions that will use
5262         vtable.  For streambufs, pass pointer whose bounds include struct
5263         _IO_strfile.
5264         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5265         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5266         * libio/iofopen.c (_IO_new_fopen): Likewise.
5267         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5268         * libio/iofopen64.c (_IO_fopen64): Likewise.
5269         * libio/iopopen.c (_IO_new_popen): Likewise.
5270         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5271         * libio/memstream.c (open_memstream): Likewise.
5272         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5273         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5274         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5275         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5276         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5277         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5278         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5279         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5280         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5281         * stdlib/strfmon.c (__strfmon_l): Likewise.
5282         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5283         (vfprintf): Qualify computed-goto targets as unbounded.
5284
5285 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5286
5287         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5288         thousands separator correctly.
5289
5290         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5291         * stdio-common/vfwscanf.c: Likewise.
5292
5293 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5294
5295         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5296         count into signatures for most calls.
5297
5298 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5299
5300         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5301         the generic parser now.
5302
5303 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5304
5305         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5306         table entries are 32 bit on the ia64 (as specified by the ABI),
5307         not 64 bit as on the Alpha.
5308
5309         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5310         change of objects to use 32 bit hash table indices (see above).
5311
5312 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5313
5314         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5315         prototype for abs().
5316
5317 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5318
5319         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5320         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5321         may have been reached.
5322
5323 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5324
5325         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5326         symbols in multi-character weights correctly.
5327
5328         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5329         depending on whether the input string is empty or not.
5330
5331         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5332         given state and not avoiding this by modifying a local object.
5333         * wcsmbs/wcrtomb.c: Likewise.
5334
5335         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5336         object since some incomplete characters might be in there.
5337
5338         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5339         sequences with first byte 0x8e correctly.
5340
5341         * iconvdata/jis0208.h: Remove redundant test.
5342
5343 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5344
5345         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5346         Add it where it is needed now.
5347
5348         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5349         the input charset into account when generating the hash table.
5350         (allocate_arrays): Correct setting default width.  Not all empty slots
5351         in the table are filled, only those not covert explicitly by the
5352         locale description and in the charset.
5353
5354         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5355         return values from the wctrans function.
5356
5357         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5358         wide character version.
5359         For %C handling, test correct pointer variable for NULL.
5360
5361         * wcsmbs/wctob.c: Handle WEOF special.
5362
5363         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5364
5365         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5366         always-true test to avoid warning.
5367
5368 2000-06-27  Greg McGary  <greg@mcgary.org>
5369
5370         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5371         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5372         (symbol_version, default_symbol_version): Factor redundant
5373         definitions out of conditional.
5374
5375 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5376
5377         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5378         not obstack_blank.
5379
5380 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5381
5382         * include/libc-symbols.h (symbol_version): Add extra level of
5383         macro expansion.
5384         (default_symbol_version): Likewise.
5385
5386 2000-06-26  Greg McGary  <greg@mcgary.org>
5387
5388         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5389         for BP return value & push implicit struct-return pointer to
5390         __errno_location.
5391         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5392         (SYSCALL_ERROR_HANDLER): Likewise.
5393         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5394         (SYSCALL_ERROR_HANDLER): Likewise.
5395
5396         * Makeconfig: Add missing comment.
5397         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5398         BP-flavored startup object.
5399         ($(objpfx)b$(start-installed-name)): New rule.
5400         * include/libc-symbols.h (symbol_set_declare): Change type
5401         of `__start_##set' and `__stop_##set' to pointer-to-function.
5402         (symbol_set_declare): Change type of `set' to array of
5403         pointer-to-function.
5404         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5405         pointer-to-function.
5406
5407         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5408
5409         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5410         Remove clock_* and timer_* entries.
5411         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5412         arg-count with signatures.
5413
5414         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5415         Check bounds of arguments.
5416         * sysdeps/i386/addmul_1.S: Likewise.
5417         * sysdeps/i386/lshift.S: Likewise.
5418         * sysdeps/i386/mul_1.S: Likewise.
5419         * sysdeps/i386/rshift.S: Likewise.
5420         * sysdeps/i386/sub_n.S: Likewise.
5421         * sysdeps/i386/submul_1.S: Likewise.
5422         * sysdeps/i386/i586/add_n.S: Likewise.
5423         * sysdeps/i386/i586/addmul_1.S: Likewise.
5424         * sysdeps/i386/i586/lshift.S: Likewise.
5425         * sysdeps/i386/i586/rshift.S: Likewise.
5426         * sysdeps/i386/i586/sub_n.S: Likewise.
5427         * sysdeps/i386/i686/add_n.S: Likewise.
5428
5429         * sysdeps/i386/memchr.S: Likewise.
5430         * sysdeps/i386/memcmp.S: Likewise.
5431         * sysdeps/i386/rawmemchr.S: Likewise.
5432         * sysdeps/i386/i586/bzero.S: Likewise.
5433         * sysdeps/i386/i586/memcpy.S: Likewise.
5434         * sysdeps/i386/i586/mempcpy.S: Likewise.
5435         * sysdeps/i386/i586/memset.S: Likewise.
5436         * sysdeps/i386/i686/bzero.S: Likewise.
5437         * sysdeps/i386/i686/memcpy.S: Likewise.
5438         * sysdeps/i386/i686/mempcpy.S: Likewise.
5439         * sysdeps/i386/i686/memset.S: Likewise.
5440
5441         * sysdeps/i386/stpcpy.S: Likewise.
5442         * sysdeps/i386/stpncpy.S: Likewise.
5443         * sysdeps/i386/strchr.S: Likewise.
5444         * sysdeps/i386/strchrnul.S: Likewise.
5445         * sysdeps/i386/strcspn.S: Likewise.
5446         * sysdeps/i386/strpbrk.S: Likewise.
5447         * sysdeps/i386/strrchr.S: Likewise.
5448         * sysdeps/i386/strspn.S: Likewise.
5449         * sysdeps/i386/strtok.S: Likewise.
5450         * sysdeps/i386/strtok_r.S: Likewise.
5451         * sysdeps/i386/i486/strcat.S: Likewise.
5452         * sysdeps/i386/i486/strlen.S: Likewise.
5453         * sysdeps/i386/i586/strchr.S: Likewise.
5454         * sysdeps/i386/i586/strcpy.S: Likewise.
5455         * sysdeps/i386/i586/strlen.S: Likewise.
5456         * sysdeps/i386/i686/strcmp.S: Likewise.
5457         * sysdeps/i386/i686/strtok.S: Likewise.
5458         * sysdeps/i386/i686/strtok_r.S: Likewise.
5459
5460         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5461         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5462         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5463         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5464         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5465
5466         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5467         * sysdeps/i386/mul_1.S: Likewise.
5468         * sysdeps/i386/submul_1.S: Likewise.
5469         * sysdeps/i386/i586/add_n.S: Likewise.
5470         * sysdeps/i386/i586/addmul_1.S: Likewise.
5471         * sysdeps/i386/i586/lshift.S: Likewise.
5472         * sysdeps/i386/i586/mul_1.S: Likewise.
5473         * sysdeps/i386/i586/rshift.S: Likewise.
5474         * sysdeps/i386/i586/sub_n.S: Likewise.
5475         * sysdeps/i386/i586/submul_1.S: Likewise.
5476
5477 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5478
5479         * rt/Makefile (librt-routines): Add clock_nanosleep.
5480         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5481         * sysdeps/generic/clock_nanosleep.c: New file.
5482         * sysdeps/unix/clock_nanosleep.c: New file.
5483         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5484         * time/time.h: Declare clock_nanosleep.
5485
5486 2000-06-26  Greg McGary  <greg@mcgary.org>
5487
5488         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5489         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5490         (ALIGN): Cleanup surrounding conditionals.
5491
5492         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5493         Call ENTER/LEAVE macros.
5494         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5495         * sysdeps/i386/submul_1.S: Likewise.
5496
5497         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5498         syntax.  Define & use symbolic argument stack offsets.  Call
5499         ENTER/LEAVE macros.
5500         * sysdeps/i386/i586/mul_1.S: Likewise.
5501         * sysdeps/i386/i586/submul_1.S: Likewise.
5502
5503 2000-06-25  Greg McGary  <greg@mcgary.org>
5504
5505         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5506         not as bcopy.
5507
5508 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5509
5510         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5511         * iconvdata/gen-8bit-gap.sh: Likewise.
5512         * iconvdata/gen-8bit.sh: Likewise.
5513
5514         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5515
5516         * locale/programs/ld-collate.c (collate_read): Don't actually read
5517         the copy locale if we are ignoring the content.
5518
5519         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5520         unknown character.
5521
5522         * locale/programs/ld-collate.c: Correct handling of different
5523         collation sections.
5524         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5525         as extra parameter from which to copy category information.
5526         Change all callers.
5527         (load_locale): Likewise.
5528         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5529         and load_locale.
5530         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5531         * locale/programs/locfile.h: Likewise.
5532         * locale/programs/locfile-kw.gperf: Add entry for script.
5533         * locale/programs/locfile-token.h: Add tok_script.
5534
5535         * locale/programs/locale.c: Update copyright year.
5536         * locale/programs/localedef.c: Likewise.
5537
5538 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5539
5540         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5541         Jens Moeller <jens.moeller@waii.com>.
5542
5543 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5544
5545         * locale/programs/ld-name.c (name_finish): Add missing format
5546         specifier to test for name_fmt.
5547
5548         * locale/programs/ld-address.c (iso639): Correct length of string
5549         elements.
5550         (iso3166): Likewise.
5551
5552         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5553
5554         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5555         Define.
5556
5557         * elf/elf.h (NT_PRFPXREG): Define.
5558
5559 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5560
5561         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5562         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5563
5564 2000-06-23  Andreas Schwab  <schwab@suse.de>
5565
5566         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5567         with signatures.
5568
5569 2000-06-23  Andreas Jaeger  <aj@suse.de>
5570
5571         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5572
5573         * io/test-stat.c: Add copyright header, mention Maciej.
5574
5575         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5576         SYS_mincore, SYS_madvise): Added.
5577
5578         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5579         execve.
5580
5581 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5582
5583         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5584         (CFLAGS-tst_putwc.c): New definition.
5585         * libio/tst_getwc.c: New file.
5586         * libio/tst_getwc.input: New file.
5587         * libio/tst_putwc.c: New file.
5588
5589         * include/string.h: Add prototype for __strdup.
5590
5591 2000-06-22  Greg McGary  <greg@mcgary.org>
5592
5593         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5594         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5595         Fix signatures.
5596
5597 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5598
5599         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5600
5601 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5602
5603         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5604
5605 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5606
5607         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5608         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5609
5610 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5611
5612         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5613         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5614         and __S_TYPEISSHM.
5615         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5616         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5617         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5618         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5619         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5620         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5621         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5622         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5623         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5624         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5625         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5626         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5627         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5628         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5629         S_TYPEISSHM.
5630
5631 2000-06-22  Andreas Jaeger  <aj@suse.de>
5632
5633         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5634         with signatures.
5635
5636         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5637
5638         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5639
5640 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5641
5642         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5643         ahead.
5644
5645 2000-06-21  Greg McGary  <greg@mcgary.org>
5646
5647         * Makerules (elide-routines.*, elide-bp-thunks):
5648         Define unconditionally.
5649
5650 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5651
5652         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5653
5654 2000-06-21  Andreas Jaeger  <aj@suse.de>
5655
5656         * io/Makefile (tests): Add test-stat.
5657         (CFLAGS-test-stat.c): New.
5658
5659         * io/test-stat.c: New file from Maciej W. Rozycki
5660         <macro@ds2.pg.gda.pl>.
5661
5662 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5663
5664         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5665         in __rlimit_resource to make them match the kernel order.
5666         rlim_t is always 64 bit, use __rlim64_t to declare it
5667         unconditionally.
5668
5669 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5670
5671         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5672         RLIM_INFINITY before defining it to avoid clash with kernel header
5673
5674 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5675
5676         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5677
5678 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5679
5680         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5681
5682 2000-06-21  Andreas Jaeger  <aj@suse.de>
5683
5684         * stdio-common/temptest.c: Include <stdlib.h>.
5685         * stdio-common/tst-fileno.c: Likewise.
5686         * stdio-common/scanf4.c: Likewise.
5687         * stdio-common/scanf5.c: Likewise.
5688         * time/clocktest.c: Likewise.
5689         * posix/test-vfork.c: Likewise.
5690         * posix/globtest.c: Likewise.
5691         * io/test-utime.c: Likewise.
5692         * wctype/test_wcfuncs.c: Likewise.
5693         * crypt/cert.c: Likewise.
5694
5695         * stdio-common/tst-printfsz.c: Include <string.h>.
5696         * libio/tst_swscanf.c: Likewise.
5697         * libio/tst_wscanf.c: Likewise.
5698         * posix/runtests.c: Likewise.
5699         * posix/tst-getaddrinfo.c: Likewise.
5700         * posix/wordexp-test.c: Likewise.
5701         * misc/tst-efgcvt.c: Likewise.
5702
5703         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5704         * nss/test-netdb.c: Likewise.
5705
5706         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5707         supported kernel for MIPS.
5708
5709         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5710         * rt/aio_suspend.c: Likewise.
5711
5712 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5713
5714         * math/libm-test.inc: Include <string.h>.
5715
5716 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5717
5718         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5719
5720 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5721
5722         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5723         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5724
5725 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5726
5727         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5728
5729 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5730
5731         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5732
5733 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5734
5735         * locale/programs/ld-collate.c (insert_value): Now take string and
5736         length instead of struct token* parameter.  Adjust use of token.
5737         (handle_ellipsis): Likewise.
5738         (collate_read): Allow <Uxxxx> names and transform them into names
5739         to be passed to insert_value and handle_ellipsis.
5740
5741         * locale/programs/ld-ctype.c (uninames): New array with names of
5742         digits in <Uxxxxxxxx> format.
5743         (ctype_finish): Correct search for space character value.  Likewise
5744         for default outdigits values.
5745
5746 2000-06-20  Greg McGary  <greg@mcgary.org>
5747
5748         * Makerules (objects): Add BP thunks.
5749
5750 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5751
5752         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5753         in width definitions.
5754
5755 2000-06-20  Andreas Jaeger  <aj@suse.de>
5756
5757         * sysdeps/mips/fpu/libm-test-ulps: New file.
5758
5759         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5760         first.
5761
5762         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5763
5764         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5765
5766 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5767
5768         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5769         change in gconv_builtin.h.
5770
5771         * malloc/Makefile: Change all references to memprof into memusage.
5772         * malloc/memprof.c: Rename to...
5773         * malloc/memusage.c: ...this.  New file.
5774         * malloc/memprof.sh: Rename to...
5775         * malloc/memusage.sh: ...this.  New file.
5776         * malloc/memprofstat.c: Rename to...
5777         * malloc/memusagestat.c: ...this.  New file.
5778         * sysdeps/alpha/memprof.h: Rename to..
5779         * sysdeps/alpha/memusage.h: ...this.  New file.
5780         * sysdeps/arm/memprof.h: Rename to..
5781         * sysdeps/arm/memusage.h: ...this.  New file.
5782         * sysdeps/generic/memprof.h: Rename to..
5783         * sysdeps/generic/memusage.h: ...this.  New file.
5784         * sysdeps/i386/memprof.h: Rename to..
5785         * sysdeps/i386/memusage.h: ...this.  New file.
5786         * sysdeps/ia64/memprof.h: Rename to..
5787         * sysdeps/ia64/memusage.h: ...this.  New file.
5788         * sysdeps/m68k/memprof.h: Rename to..
5789         * sysdeps/m68k/memusage.h: ...this.  New file.
5790         * sysdeps/mips/memprof.h: Rename to..
5791         * sysdeps/mips/memusage.h: ...this.  New file.
5792         * sysdeps/powerpc/memprof.h: Rename to..
5793         * sysdeps/powerpc/memusage.h: ...this.  New file.
5794         * sysdeps/sparc/memprof.h: Rename to..
5795         * sysdeps/sparc/memusage.h: ...this.  New file.
5796         * sysdeps/sh/memprof.h: Rename to..
5797         * sysdeps/sh/memusage.h: ...this.  New file.
5798
5799         * elf/sprof.c (print_version): Update year.
5800
5801         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5802         table entry values.  Use D_PTR.
5803         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5804         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5805
5806 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5807
5808         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5809         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5810         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5811         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5812
5813 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5814
5815         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5816
5817 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5818
5819         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5820         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5821         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5822
5823         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5824
5825         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5826         kernel change.
5827
5828         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5829         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5830         structure.
5831         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5832         implementation.
5833
5834 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5835
5836         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5837
5838 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5839
5840         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5841
5842 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5843
5844         * iconv/gconv_int.h (strict gconv_module): Remove all members
5845         associated with regular expressions.  Use a simple string as the
5846         from name.
5847         * iconv/gconv_db.c: Remove code handling regular expressions.
5848         * iconv/gconv_conf.c: Likewise.
5849         * iconv/iconv_prog.c: Likewise.
5850         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5851
5852         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5853         General namespace cleanup.
5854         (struct __gconv_trans_data): Add next field.
5855         (struct __gconv_step_data): Make __trans a pointer.
5856         * iconv/gconv_conf.c: Split out code to find gconv directories from
5857         __gconv_read_conf in new functions.
5858         * iconv/gconv_int.h: Define new data structure and declare new
5859         functions for handling of gconv directory list.
5860         * iconv/gconv_open.c: Allow more than one error handling step being
5861         used.  Call function to load error handling module if it is none
5862         of the builtin transformations.
5863         * iconv/gconv_close.c: Add code to free transliteration data.
5864         * iconv/gconv_trans.c: Add functions to load and unload modules
5865         implementing transliteration etc.
5866         * iconv/skeleton.c: Call all context functions now that more than
5867         one module is allowed.
5868         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5869         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5870         where the full error handling using transliteration is needed.
5871         * iconvdata/8bit-gap.c: Likewise.
5872         * iconvdata/8bit-generic.c: Likewise.
5873         * iconvdata/ansi_x3.110.c: Likewise.
5874         * iconvdata/big5.c: Likewise.
5875         * iconvdata/big5hkscs.c: Likewise.
5876         * iconvdata/euc-cn.c: Likewise.
5877         * iconvdata/euc-jp.c: Likewise.
5878         * iconvdata/euc-kr.c: Likewise.
5879         * iconvdata/euc-tw.c: Likewise.
5880         * iconvdata/gbgbk.c: Likewise.
5881         * iconvdata/gbk.c: Likewise.
5882         * iconvdata/iso-2022-cn.c: Likewise.
5883         * iconvdata/iso-2022-jp.c: Likewise.
5884         * iconvdata/iso-2022-kr.c: Likewise.
5885         * iconvdata/iso646.c: Likewise.
5886         * iconvdata/iso8859-1.c: Likewise.
5887         * iconvdata/iso_6937-2.c: Likewise.
5888         * iconvdata/iso_6937.c: Likewise.
5889         * iconvdata/johab.c: Likewise.
5890         * iconvdata/sjis.c: Likewise.
5891         * iconvdata/t.61.c: Likewise.
5892         * iconvdata/uhc.c: Likewise.
5893         * iconvdata/unicode.c: Likewise.
5894         * iconvdata/utf-16.c: Likewise.
5895         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5896         structure correctly after last change.
5897         * wcsmbs/btowc.c: Likewise.
5898         * wcsmbs/mbrtowc.c: Likewise.
5899         * wcsmbs/mbsnrtowcs.c: Likewise.
5900         * wcsmbs/mbsrtowcs.c: Likewise.
5901         * wcsmbs/wcrtomb.c: Likewise.
5902         * wcsmbs/wcsnrtombs.c: Likewise.
5903         * wcsmbs/wcsrtombs.c: Likewise.
5904         * wcsmbs/wctob.c: Likewise.
5905
5906         * localedata/Makefile: Set -Wno-format for some files since gcc does
5907         not know all the format specifiers.
5908
5909 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5910
5911         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5912         unneeded code.
5913         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5914
5915 2000-06-18  Andreas Jaeger  <aj@suse.de>
5916
5917         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5918         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5919
5920 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5921
5922         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5923         LINUX_LINK_MAX.
5924         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5925
5926         * locale/programs/ld-ctype.c (ctype_output): Really write out
5927         mboutdigits information.
5928         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5929         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5930         * localedata/tests/trans.def: Add outdigit information.
5931
5932         * localedata/tst-mbswcs3.c: Remove comment.
5933
5934         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5935         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5936         * libio/tst_wprintf.c (main): Add test for I flag.
5937
5938         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5939         * locale/langinfo.h: Add entries for translit_ignore information.
5940         * locale/categories.def: Add entries for new LC_CTYPE elements.
5941         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5942         pointer instead of "" where possible.
5943         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5944         * intl/Depend: Add localedata.
5945         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5946         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5947
5948 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5949
5950         * locale/langinfo.h: Add entries for default_missing information.
5951         * locale/C-ctype.c: Add initializers for new fields.
5952         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5953         information.
5954         * locale/categories.h: Add entries for all LC_CTYPE values.
5955         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5956         information.
5957
5958         * localedata/tst-trans.c: Write out an error message if class is
5959         not found.
5960
5961         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5962         * iconv/gconv_open.c: Remove error handling specification from `from'
5963         character set name.
5964         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5965         new parameter to always enable transliteration.
5966         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5967         change.
5968         (struct locale_data): Add new members use_translit and options.
5969         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5970         character set name contained modifier TRANSLIT.
5971         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5972         and options fields.
5973         (_nl_unload_locale): Free options string if necessary.
5974         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5975         the locale names suggested this.
5976         * locale/C-address.c: Add two new initialilzers to adjust data
5977         structure for new format.
5978         * locale/C-collate.c: Likewise.
5979         * locale/C-ctype.c: Likewise.
5980         * locale/C-identification.c: Likewise.
5981         * locale/C-measurement.c: Likewise.
5982         * locale/C-messages.c: Likewise.
5983         * locale/C-monetary.c: Likewise.
5984         * locale/C-name.c: Likewise.
5985         * locale/C-numeric.c: Likewise.
5986         * locale/C-paper.c: Likewise.
5987         * locale/C-telephone.c: Likewise.
5988         * locale/C-time.c: Likewise.
5989
5990         * locale/setlocale.c: Add some more __builtin_expect.
5991
5992 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5993
5994         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5995         unsigned char **.
5996         (__gconv_init_fct): Remove two parameters.
5997         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5998         gconv_transliterate.  Remove two parameters.
5999         Change prototypes of builtin functions according to __gconv_fct change.
6000         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6001         != NULL only during error handling.  Stop in this case after the
6002         conversion.
6003         * iconv/gconv_trans.c: Replace with real implementation for
6004         __gconv_transliterate.
6005         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6006         * iconv/gconv.c: Change calls to downstream functions once again.
6007         Use NULL for the fifth parameter instead of pointer to output buffer.
6008         * libio/iofwide.c: Likewise.
6009         * wcsmbs/btowc.c: Likewise.
6010         * wcsmbs/mbrtowc.c: Likewise.
6011         * wcsmbs/mbsnrtowcs.c: Likewise.
6012         * wcsmbs/mbsrtowcs.c: Likewise.
6013         * wcsmbs/wcrtomb.c: Likewise.
6014         * wcsmbs/wcsnrtombs.c: Likewise.
6015         * wcsmbs/wcsrtombs.c: Likewise.
6016         * wcsmbs/wctob.c: Likewise.
6017         * iconv/gconv_simple.c: Remove two parameters from error handling
6018         function call.
6019         * iconvdata/8bit-gap.c: Likewise.
6020         * iconvdata/8bit-generic.c: Likewise.
6021         * iconvdata/ansi_x3.110.c: Likewise.
6022         * iconvdata/big5.c: Likewise.
6023         * iconvdata/big5hkscs.c: Likewise.
6024         * iconvdata/euc-cn.c: Likewise.
6025         * iconvdata/euc-jp.c: Likewise.
6026         * iconvdata/euc-kr.c: Likewise.
6027         * iconvdata/euc-tw.c: Likewise.
6028         * iconvdata/gbgbk.c: Likewise.
6029         * iconvdata/gbk.c: Likewise.
6030         * iconvdata/iso-2022-cn.c: Likewise.
6031         * iconvdata/iso-2022-jp.c: Likewise.
6032         * iconvdata/iso-2022-kr.c: Likewise.
6033         * iconvdata/iso646.c: Likewise.
6034         * iconvdata/iso8859-1.c: Likewise.
6035         * iconvdata/iso_6937-2.c: Likewise.
6036         * iconvdata/iso_6937.c: Likewise.
6037         * iconvdata/johab.c: Likewise.
6038         * iconvdata/sjis.c: Likewise.
6039         * iconvdata/t.61.c: Likewise.
6040         * iconvdata/uhc.c: Likewise.
6041         * iconvdata/unicode.c: Likewise.
6042         * iconvdata/utf-16.c: Likewise.
6043
6044 2000-06-15  Greg McGary  <greg@mcgary.org>
6045
6046         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6047         of callnum assignment.  Tolerate callnum expressions containing
6048         parens.
6049
6050 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6051
6052         * login/Makefile (utmpd): Remove rule to build utmpd.
6053
6054         * csu/Versions: Move libgcc frame handling functions from here...
6055         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6056         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6057         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6058         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6059         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6060         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6061         New file.
6062         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6063
6064         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6065
6066         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6067
6068 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6069
6070         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6071         compatibility.
6072         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6073         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6074         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6075         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6076
6077 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6078
6079         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6080         defined, terminate quotes and read them after the comment char.
6081         * configure.in (HAVE_SECTION_QUOTES): Test whether
6082         __attribute__((section ("x"))) puts quotes around x or not.
6083         * config.h.in (HAVE_SECTION_QUOTES): Add.
6084         * configure: Rebuilt.
6085
6086 2000-06-14  Andreas Jaeger  <aj@suse.de>
6087
6088         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6089         depending on the configure option --sysconfdir.
6090         Closes PR libc/1762.
6091         Patch by Andreas Schwab <schwab@suse.de>.
6092
6093         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6094         entry point.
6095         Reported by Jim Pick <jim@jimpick.com>.
6096
6097 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6098
6099         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6100         crashing the application.  Emit some simple error message.
6101         Reported by mju@panasas.com [PR libc/1769].
6102
6103 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6104
6105         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6106
6107         * crypt/Makefile (distribute): Add md5.h.
6108
6109         * Makefile (distribute): Add include/shlib-compat.h.
6110
6111         * Make-dist: Search for tests also in sysdeps hierachy.
6112
6113         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6114         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6115
6116         * sysdeps/sparc/Subdirs: New file.
6117
6118         * locale/Makefile (distribute): Add weightwc.h and
6119         programs/localedef.h.
6120
6121         * time/Makefile (distribute): Add datemsk.
6122
6123         * sysdeps/ia64/Dist: Add softpipe.h.
6124
6125         * sysdeps/unix/sysv/aix/Dist: New file.
6126
6127         * posix/setpgrp.c: Moved to...
6128         * sysdeps/generic/setpgrp.c: ...here.  New file.
6129         * io/mknod.c: Moved to...
6130         * sysdeps/generic/mknod.c: ...here.  New file.
6131
6132         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6133
6134         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6135
6136         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6137
6138         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6139         gprsave0.S, gprrest1.S, and gprrest0.S.
6140
6141         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6142
6143         * posix/Makefile (routines): Add spawnattr_getsigmask,
6144         spawnattr_getschedpolicy, spawnattr_getschedparam,
6145         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6146         spawnattr_setschedparam.
6147         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6148         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6149         posix_spawnattr_setschedparam.
6150
6151         * posix/spawnattr_setschedparam.c: Fix typo.
6152
6153         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6154         Correct typo.
6155
6156         * login/programs/utmpd.c: Removed.
6157         * login/programs/utmpd.h: Removed.
6158         * login/programs/utmpd-private.h: Removed.
6159
6160         * Makefile (distribute): Add include/db_185.h and include/db.h.
6161
6162         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6163         iso-ir-165.h.
6164
6165         * elf/Makefile (distribute): Add missing files.
6166
6167         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6168         * elf/eval.c: Moved to...
6169         * dlfcn/eval.c: ...here.  New file.
6170
6171         * Makefile (distribute): Also distribute ChangeLog.1?.
6172
6173         * Make-dist (+tsrcs): Remove .args handling here as well.
6174
6175         * rt/Makefile (tests): Add tst-timer.
6176         * sysdeps/generic/tst-timer.c: New file.
6177
6178         * Makerules (sources): Don't add BP sources here.
6179
6180         * login/Makefile (distribute): Remove xtmp.h.
6181
6182         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6183         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6184
6185 2000-06-13  Andreas Jaeger  <aj@suse.de>
6186
6187         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6188         Patch by Ralf Baechle <ralf@gnu.org>.
6189
6190 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6191
6192         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6193         for mincore syscall.
6194
6195         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6196         __BOUNDED_POINTERS__ is not defined.
6197
6198 2000-06-07  Greg McGary  <greg@mcgary.org>
6199
6200         * sysdeps/generic/bp-sym.h: New file.
6201         * sysdeps/generic/bp-start.h: New file.
6202         * sysdeps/i386/elf/start.S: Designate BP symbols.
6203         * sysdeps/generic/libc-start.c: Wrap bounds around
6204         argv & envp and each of their string members.
6205
6206 2000-06-07  Greg McGary  <greg@mcgary.org>
6207
6208         * sysdeps/unix/make-syscalls.sh: Add comments to
6209         output that aid debugging & comprehension.
6210         Map simple syscall signatures to number of args.
6211         Generate BP syscall thunk definitions.
6212         * sysdeps/generic/bp-thunks.h: New file.
6213         * sysdeps/unix/syscalls.list: Replace arg-count with
6214         simple return+arg signature.
6215         * sysdeps/unix/common/syscalls.list: Likewise.
6216         * sysdeps/unix/inet/syscalls.list: Likewise.
6217         * sysdeps/unix/mman/syscalls.list: Likewise.
6218         * sysdeps/unix/sysv/syscalls.list: Likewise.
6219         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6220         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6221
6222 2000-06-07  Greg McGary  <greg@mcgary.org>
6223
6224         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6225         for all files *.[cS].
6226         (CFLAGS-.ob): Don't optimize sibling calls.
6227         (bppfx): New variable.
6228         * Makerules (elide-bp-thunks): New variable.
6229         (elide-routines.*): Elide BP-* files for all but *.ob.
6230         (sources): Include bp-thunks.
6231
6232 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6233
6234         * iconv/gconv_simple.c: Remove unnecessary prototype.
6235
6236         * iconv/gconv_trans.c: Pretty print.
6237
6238         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6239
6240         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6241         minimal kernel versions.  Add information about IA-64 kernel.
6242
6243         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6244         specific minimal supported kernel versions to be specified.
6245
6246         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6247         step data structure.
6248         * wcsmbs/btowc.c: Likewise.
6249         * wcsmbs/mbrtowc.c: Likewise.
6250         * wcsmbs/mbsnrtowcs.c: Likewise.
6251         * wcsmbs/mbsrtowcs.c: Likewise.
6252         * wcsmbs/wcrtomb.c: Likewise.
6253         * wcsmbs/wcsnrtombs.c: Likewise.
6254         * wcsmbs/wcsrtombs.c: Likewise.
6255         * wcsmbs/wctob.c: Likewise.
6256
6257         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6258         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6259
6260         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6261
6262         * misc/sys/cdefs.h: Remove one more __P.
6263
6264         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6265         Reported by HJ Lu.
6266
6267         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6268         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6269         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6270
6271 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6272             Yutaka Niibe  <gniibe@chroot.org>
6273
6274         * configure.in: Add machine sh3, sh4.
6275         * elf/elf.h: Add SH specific declarations of relocations.
6276         * shlib-versions: Add sh*-*-linux* cases.
6277
6278 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6279
6280         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6281         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6282         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6283         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6284         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6285         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6286
6287         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6288         instead of KERNEL_MATH_EMULATION.
6289         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6290         KERNEL_MATH_EMULATION.
6291
6292         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6293         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6294         * sysdeps/sh/dl-machine.h: ...here.  New file.
6295         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6296         and include generic SH version.
6297         * sysdeps/sh/sh3/bits/endian.h: Move to...
6298         * sysdeps/sh/bits/endian.h: ...here.  New file.
6299         * sysdeps/sh/sh4/bits/endian.h: Removed.
6300         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6301         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6302         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6303
6304         * include/libc-symbols.h (link_warning): Work around a change in
6305         GAS which warns about changing section attributes.
6306         Proposed by Nick Clifton <nickc@redhat.com>.
6307
6308 2000-06-12  H.J. Lu  <hjl@gnu.org>
6309
6310         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6311
6312 2000-06-11  H.J. Lu  <hjl@gnu.org>
6313
6314         * sysdeps/i386/fpu/Versions: New file.
6315
6316 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6317
6318         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6319         parameters.
6320         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6321         exists.
6322
6323 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6324
6325         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6326         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6327         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6328
6329         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6330         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6331         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6332
6333 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6334             Yutaka Niibe  <gniibe@chroot.org>
6335
6336         * sysdeps/sh/Dist: New file.
6337         * sysdeps/sh/Implies: New file.
6338         * sysdeps/sh/elf/initfini.c: New file.
6339         * sysdeps/sh/gmp-mparam.h: New file.
6340         * sysdeps/sh/init-first.c: New file.
6341         * sysdeps/sh/machine-gmon.h: New file.
6342         * sysdeps/sh/memcpy.S: New file.
6343         * sysdeps/sh/memprof.h: New file.
6344         * sysdeps/sh/memset.S: New file.
6345         * sysdeps/sh/sh3/__longjmp.S: New file.
6346         * sysdeps/sh/sh3/bits/endian.h: New file.
6347         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6348         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6349         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6350         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6351         * sysdeps/sh/sh3/dl-machine.h: New file.
6352         * sysdeps/sh/sh3/setjmp.S: New file.
6353         * sysdeps/sh/sh4/__longjmp.S: New file.
6354         * sysdeps/sh/sh4/bits/endian.h: New file.
6355         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6356         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6357         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6358         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6359         * sysdeps/sh/sh4/dl-machine.h: New file.
6360         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6361         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6362         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6363         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6364         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6365         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6366         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6367         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6368         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6369         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6370         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6371         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6372         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6373         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6374         * sysdeps/sh/sh4/setjmp.S: New file.
6375         * sysdeps/sh/elf/start.S: New file.
6376         * sysdeps/sh/sys/ucontext.h: New file.
6377         * sysdeps/sh/strlen.S: New file.
6378         * sysdeps/sh/sysdep.h: New file.
6379         * sysdeps/unix/sh/sysdep.S: New file.
6380         * sysdeps/unix/sh/sysdep.h: New file.
6381         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6382         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6383         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6384         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6385         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6386         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6387         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6388         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6389         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6390         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6391         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6392         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6393         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6394         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6395         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6396         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6397         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6398         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6399         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6400         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6401         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6402         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6403         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6404         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6405         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6406         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6407         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6408         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6409         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6410         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6411         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6412         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6413         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6414         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6415         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6416         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6417         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6418         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6419         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6420         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6421         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6422         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6423         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6424         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6425         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6426         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6427         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6428         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6429         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6430         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6431
6432 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6433
6434         * Rules (%.out): Define GCONV_PATH in the environment.
6435         * assert/Depend: New file.
6436         * iconvdata/Depend: New file.
6437         * intl/Depend: New file.
6438         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6439         * intl/tst-gettext.sh: Likewise.
6440         * iconv/Makefile (routines): Add gconv_trans.
6441         * iconv/gconv_trans.c: New file.
6442         * iconv/gconv.h (struct __gconv_trans_data): New type.
6443         (__gconv_fct): New parameter with starting position in output buffer.
6444         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6445         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6446         (struct __gconv_step): Add new member __trans.
6447         * iconv/gconv_int.h: Pretty print prototypes.
6448         (gconv_transliterate): New prototype.
6449         (__BUILTIN_TRANS): Update for new conversion function interface.
6450         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6451         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6452         in names, find appropriate function, and install in the conversion
6453         steps it can be used.
6454         * iconv/skeleton.c: Add additional parameter for beginning of output
6455         buffer.  Change calls of downstream functions.
6456         * iconv/loop.c: Change loop function interface completely.  Pass in
6457         step and step_data structure.  Remove optimization for BODY with
6458         NEED_LENGTH_TEST == 0.
6459         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6460         appropriate error handling code to use transliteration steps.  Remove
6461         optimization for BODY with NEED_LENGTH_TEST == 0.
6462         * iconvdata/8bit-gap.c: Likewise.
6463         * iconvdata/8bit-generic.c: Likewise.
6464         * iconvdata/ansi_x3.110.c: Likewise.
6465         * iconvdata/big5.c: Likewise.
6466         * iconvdata/big5hkscs.c: Likewise.
6467         * iconvdata/euc-cn.c: Likewise.
6468         * iconvdata/euc-jp.c: Likewise.
6469         * iconvdata/euc-kr.c: Likewise.
6470         * iconvdata/euc-tw.c: Likewise.
6471         * iconvdata/gbgbk.c: Likewise.
6472         * iconvdata/gbk.c: Likewise.
6473         * iconvdata/iso-2022-cn.c: Likewise.
6474         * iconvdata/iso-2022-jp.c: Likewise.
6475         * iconvdata/iso-2022-kr.c: Likewise.
6476         * iconvdata/iso646.c: Likewise.
6477         * iconvdata/iso8859-1.c: Likewise.
6478         * iconvdata/iso_6937-2.c: Likewise.
6479         * iconvdata/iso_6937.c: Likewise.
6480         * iconvdata/johab.c: Likewise.
6481         * iconvdata/sjis.c: Likewise.
6482         * iconvdata/t.61.c: Likewise.
6483         * iconvdata/uhc.c: Likewise.
6484         * iconvdata/unicode.c: Likewise.
6485         * iconvdata/utf-16.c: Likewise.
6486         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6487         DL_CALL_FCT.
6488         * wcsmbs/btowc.c: Likewise.
6489         * wcsmbs/mbrtowc.c: Likewise.
6490         * wcsmbs/mbsnrtowcs.c: Likewise.
6491         * wcsmbs/mbsrtowcs.c: Likewise.
6492         * wcsmbs/wcrtomb.c: Likewise.
6493         * wcsmbs/wcsnrtombs.c: Likewise.
6494         * wcsmbs/wcsrtombs.c: Likewise.
6495         * wcsmbs/wctob.c: Likewise.
6496
6497 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6498
6499         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6500         other header files.  Mention about 128-byte cache line sizes.
6501         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6502         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6503         for current calling sequence.
6504         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6505
6506         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6507         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6508
6509         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6510         and setrlimit syscalls for backwards compatibility.
6511
6512 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6513
6514         * iconv/skeleton.c:  Rename converted written to correcter name
6515         irreversible.
6516         * iconv/gconv.c: Rename converted variable to correcter name
6517         irreversible.
6518         * iconv/gconv_int.h: Likewise.
6519         * iconv/gconv_simple.c: Likewise.
6520         * iconv/iconv.c: Likewise.
6521         * iconv/loop.c: Likewise.
6522         * iconvdata/8bit-gap.c: Likewise.
6523         * iconvdata/8bit-generic.c: Likewise.
6524         * iconvdata/ansi_x3.110.c: Likewise.
6525         * iconvdata/big5.c: Likewise.
6526         * iconvdata/big5hkscs.c: Likewise.
6527         * iconvdata/euc-cn.c: Likewise.
6528         * iconvdata/euc-jp.c: Likewise.
6529         * iconvdata/euc-kr.c: Likewise.
6530         * iconvdata/gbgbk.c: Likewise.
6531         * iconvdata/gbk.c: Likewise.
6532         * iconvdata/iso-2022-cn.c: Likewise.
6533         * iconvdata/iso-2022-jp.c: Likewise.
6534         * iconvdata/iso-2022-kr.c: Likewise.
6535         * iconvdata/iso646.c: Likewise.
6536         * iconvdata/iso8859-1.c: Likewise.
6537         * iconvdata/iso_6937-2.c: Likewise.
6538         * iconvdata/iso_6937.c: Likewise.
6539         * iconvdata/johab.c: Likewise.
6540         * iconvdata/sjis.c: Likewise.
6541         * iconvdata/t.61.c: Likewise.
6542         * iconvdata/uhc.c: Likewise.
6543         * iconvdata/unicode.c: Likewise.
6544         * iconvdata/utf-16.c: Likewise.
6545
6546         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6547         __cmsg_data field with __extension__.
6548
6549 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6550
6551         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6552
6553 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6554
6555         * iconv/gconv_simple.c: Fix various small bugs in several
6556         functions.
6557
6558         * iconv/loop.c: Fix comment.
6559
6560 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6561
6562         * elf/link.h: Remove libc internal declarations.
6563         * include/link.h: Move them here.
6564
6565 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6566
6567         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6568         Patch by Dan Pop <Dan.Pop@cern.ch>.
6569
6570         Rewrite error message handling.
6571         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6572         _dl_catch_error.
6573         * elf/dl-error (struct catch): Add objname member.
6574         (_dl_signal_error): Take new parameter with object name.  When
6575         passing message on simply store object name and duplicate error
6576         message.
6577         (_dl_catch_error): Take new parameter.  Store object name in the
6578         place pointed to.
6579         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6580         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6581         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6582         (dlerror): Add objname to asprintf() parameters.
6583         (_dl_error_run): Pass new parameter to _dl_catch_error.
6584         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6585         * elf/dl-open.c (_dl_open): Likewise.
6586         * elf/rtld.c (dl_main): Likewise.
6587         * elf/dl-close.c: Mark error messages with N_().
6588         * elf/dl-deps.c: Likewise.
6589         * elf/dl-error.c: Likewise.
6590         * elf/dl-load.c: Likewise.
6591         * elf/dl-open.c: Likewise.
6592         * elf/dl-reloc.c: Likewise.
6593         * elf/dl-support.c: Likewise.
6594         * elf/dl-sym.c: Likewise.
6595         * elf/dl-version.c: Likewise.
6596         * elf/dl-lookup.c: Add comments about problems with error message
6597         translations.
6598         * elf/dl-reloc.c: Likewise.
6599         * elf/dl-version.c: Likewise.
6600
6601 2000-06-09  H.J. Lu  <hjl@gnu.org>
6602
6603         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6604         after freeing it.
6605
6606         * dlfcn/Makefile (distribute): Add failtestmod.c.
6607         (tests): Add failtest.
6608         Add rules to build and run failtest.
6609         * dlfcn/failtest.c: New file.
6610         * dlfcn/failtestmod.c: New file.
6611
6612 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6613
6614         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6615         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6616         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6617         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6618         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6619
6620 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6621
6622         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6623         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6624
6625 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6626             Ulrich Drepper  <drepper@redhat.com>
6627
6628         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6629         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6630         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6631         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6632         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6633         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6634
6635 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6636
6637         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6638         to find correct mount point despite wrong information from the
6639         kernel.
6640
6641 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6642
6643         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6644         the address of a symbol so function pointers are handled properly.
6645
6646 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6647
6648         * sysdeps/i386/Dist: Add bp-asm.h.
6649
6650         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6651         defaultdir variable instead of "/var/shm" everywhere.
6652         (defaultdir): Change to /dev/shm/.
6653
6654 2000-06-08  Greg McGary  <greg@mcgary.org>
6655
6656         * sysdeps/i386/bp-asm.h: New file.
6657         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6658         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6659         frame-pointer chain when debugging.
6660         * sysdeps/i386/add_n.S: Likewise.
6661         * sysdeps/i386/addmul_1.S: Likewise.
6662         * sysdeps/i386/lshift.S: Likewise.
6663         * sysdeps/i386/memchr.S: Likewise.
6664         * sysdeps/i386/memcmp.S: Likewise.
6665         * sysdeps/i386/mul_1.S: Likewise.
6666         * sysdeps/i386/rawmemchr.S: Likewise.
6667         * sysdeps/i386/rshift.S: Likewise.
6668         * sysdeps/i386/stpcpy.S: Likewise.
6669         * sysdeps/i386/stpncpy.S: Likewise.
6670         * sysdeps/i386/strchr.S: Likewise.
6671         * sysdeps/i386/strchrnul.S: Likewise.
6672         * sysdeps/i386/strcspn.S: Likewise.
6673         * sysdeps/i386/strpbrk.S: Likewise.
6674         * sysdeps/i386/strrchr.S: Likewise.
6675         * sysdeps/i386/strspn.S: Likewise.
6676         * sysdeps/i386/strtok.S: Likewise.
6677         * sysdeps/i386/sub_n.S: Likewise.
6678         * sysdeps/i386/submul_1.S: Likewise.
6679         * sysdeps/i386/elf/setjmp.S: Likewise.
6680         * sysdeps/i386/i486/strcat.S: Likewise.
6681         * sysdeps/i386/i486/strlen.S: Likewise.
6682         * sysdeps/i386/i586/add_n.S: Likewise.
6683         * sysdeps/i386/i586/lshift.S: Likewise.
6684         * sysdeps/i386/i586/memcpy.S: Likewise.
6685         * sysdeps/i386/i586/memset.S: Likewise.
6686         * sysdeps/i386/i586/rshift.S: Likewise.
6687         * sysdeps/i386/i586/strchr.S: Likewise.
6688         * sysdeps/i386/i586/strcpy.S: Likewise.
6689         * sysdeps/i386/i586/strlen.S: Likewise.
6690         * sysdeps/i386/i586/sub_n.S: Likewise.
6691         * sysdeps/i386/i686/add_n.S: Likewise.
6692         * sysdeps/i386/i686/memcpy.S: Likewise.
6693         * sysdeps/i386/i686/mempcpy.S: Likewise.
6694         * sysdeps/i386/i686/memset.S: Likewise.
6695         * sysdeps/i386/i686/strcmp.S: Likewise.
6696
6697 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6698
6699         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6700
6701         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6702         256 and don't use OPEN_MAX.
6703
6704         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6705         use it instead of LINK_MAX.
6706         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6707
6708 2000-06-08  Andreas Jaeger  <aj@suse.de>
6709
6710         * libio/genops.c (_IO_list_lock): Only compile body if we're
6711         thread safe.
6712         (_IO_list_unlock): Likewise.
6713         (_IO_list_resetlock): Likewise.
6714
6715 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6716
6717         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6718         unless user defined it.
6719
6720         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6721         if not defined by the user.
6722
6723         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6724         * libio/iofwrite.c (_IO_fwrite): Likewise.
6725
6726         * time/time.h: Add missing __THROW for clock_getcpuclockid
6727         prototype.
6728
6729         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6730         * include/elf.h: Include also <dl-dtprocnum.h>.
6731         * elf/dl-deps.c: Likewise.
6732         * elf/dl-lookup.c: Likewise.
6733         * elf/dl-runtime.c: Likewise.
6734         * elf/dl-version.c: Likewise.
6735         * elf/do-rel.h: Likewise.
6736         * elf/dynamic-link.h: Likewise.
6737         * elf/link.h: Likewise.
6738         * elf/rtld.c: Likewise.
6739         * sysdeps/generic/dl-dtprocnum.h: New file.
6740         * sysdeps/ia64/dl-dtprocnum.h: New file.
6741         * sysdeps/mips/dl-dtprocnum.h: New file.
6742         * sysdeps/sparc/dl-dtprocnum.h: New file.
6743
6744         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6745
6746         * elf/do-lookup.h: Add some __builtin_expect.
6747
6748         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6749
6750         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6751         (_dl_dynamic_weak): New variable.
6752         * elf/dl-support.c: Likewise.
6753         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6754         * elf/do-lookup.h: If we find a weak definition treat it like a
6755         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6756         case treat it like before.
6757
6758         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6759         is in main program.
6760         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6761
6762         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6763         using l_map_start and l_map_end.
6764
6765         * elf/dl-version.c: Add __builtin_expect in many places.
6766
6767         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6768         Update.
6769
6770 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6771
6772         Lock for stdio stream list becomes global, for use in LinuxThreads.
6773
6774         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6775         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6776         _IO_list_resetlock): New interface for iterating global list of
6777         streams without accessing the _IO_list_all global variable,
6778         and for manipulating the lock which protects this list.
6779         * libio/libioP.h: Likewise.
6780         * libio/Version: Add entries for the new functions.
6781
6782         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6783         pointer to _IO_FILE.
6784
6785 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6786
6787         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6788         BIT() must actually be BITw().
6789
6790         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6791
6792         * locale/programs/charmap.c: Allow string arguments for
6793         code_set_name and repertoiremap.
6794
6795 2000-06-07  Andreas Jaeger  <aj@suse.de>
6796
6797         * elf/Makefile: Build ldconfig only when building shared libraries.
6798
6799 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6800
6801         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6802         __USE_ISOC99.
6803         (fdimf, __fdim, fdim): Likewise.
6804
6805 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6806
6807         * locale/findlocale.c: Add __builtin_expect in many places.
6808         * locale/loadlocale.c: Likewise.
6809
6810 2000-06-06  Greg McGary  <greg@mcgary.org>
6811
6812         * sysdeps/mips/elf/start.S: Trim redundant code.
6813
6814         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6815         Use C comments throughout.  Line up operands column with tabs.
6816         * sysdeps/powerpc/strchr.S: Likewise.
6817         * sysdeps/powerpc/strcmp.S: Likewise.
6818         * sysdeps/powerpc/strcpy.S: Likewise.
6819         * sysdeps/powerpc/strlen.S: Likewise.
6820
6821         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6822         Get low part of &__curbrk with @l.
6823
6824 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6825
6826         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6827         * iconvdata/unicode.c: Likewise.
6828         * iconvdata/uhc.c: Likewise.
6829         * iconvdata/t.61.c: Likewise.
6830         * iconvdata/sjis.c: Likewise.
6831         * iconvdata/johab.c: Likewise.
6832         * iconvdata/iso_6937.c: Likewise.
6833         * iconvdata/iso_6937-2.c: Likewise.
6834         * iconvdata/iso8859-1.c: Likewise.
6835         * iconvdata/iso646.c: Likewise.
6836         * iconvdata/iso-2022-kr.c: Likewise.
6837         * iconvdata/iso-2022-jp.c: Likewise.
6838         * iconvdata/iso-2022-cn.c: Likewise.
6839         * iconvdata/gbgbk.c: Likewise.
6840         * iconvdata/gbk.c: Likewise.
6841         * iconvdata/euc-kr.c: Likewise.
6842         * iconvdata/euc-jp.c: Likewise.
6843         * iconvdata/euc-cn.c: Likewise.
6844
6845 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6846
6847         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6848         * iconvdata/big5.c: Likewise.
6849         * iconvdata/ansi_x3.110.c: Likewise.
6850         * iconvdata/8bit-generic.c: Likewise.
6851         * iconvdata/8bit-gap.c: Likewise.
6852         * iconv/loop.c: Likewise.
6853         * iconv/gconv_db.c: Likewise.
6854         * iconv/gconv_dl.c: Likewise.
6855         * iconv/gconv_simple.c: Likewise.
6856         * iconv/skeleton.c: Likewise.
6857
6858         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6859         (struct __gconv_step_data): Rename __is_last to __flags.
6860         * iconv/gconv_close.c: Change all uses of __is_last.
6861         * iconv/skeleton.c: Likewise.
6862         * iconvdata/iso-2022-cn.c: Likewise.
6863         * iconvdata/iso-2022-jp.c: Likewise.
6864         * iconvdata/iso-2022-kr.c: Likewise.
6865         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6866         Recognize IGNORE error handling, set flag, and remove from name.
6867         * iconv/loop.c (ignore_errors_p): Define.
6868         Add flags parameter to both functions.
6869         * iconv/skeleton.c: Pass flags to all conversion functions.
6870         * iconv/gconv_simple.c: Add flags parameter to all functions.
6871         Don't return error for invald error if ignore flag is set.
6872         (ucs4_internal_loop_single): Add missing pointer increment.
6873         (internal_ucs4le_loop_single): Likewise.
6874         * iconv/iconv_prog.c: Implement handling of -c parameter.
6875         * iconvdata/8bit-gap.c: Don't return error for invald error if
6876         ignore flag is set.
6877         * iconvdata/8bit-generic.c: Likewise.
6878         * iconvdata/ansi_x3.110.c: Likewise.
6879         * iconvdata/big5.c: Likewise.
6880         * iconvdata/big5hkscs.c: Likewise.
6881         * iconvdata/euc-cn.c: Likewise.
6882         * iconvdata/euc-jp.c: Likewise.
6883         * iconvdata/euc-kr.c: Likewise.
6884         * iconvdata/gbgbk.c: Likewise.
6885         * iconvdata/gbk.c: Likewise.
6886         * iconvdata/iso-2022-cn.c: Likewise.
6887         * iconvdata/iso-2022-jp.c: Likewise.
6888         * iconvdata/iso-2022-kr.c: Likewise.
6889         * iconvdata/iso646.c: Likewise.
6890         * iconvdata/iso8859-1.c: Likewise.
6891         * iconvdata/iso_6937-2.c: Likewise.
6892         * iconvdata/iso_6937.c: Likewise.
6893         * iconvdata/johab.c: Likewise.
6894         * iconvdata/sjis.c: Likewise.
6895         * iconvdata/t.61.c: Likewise.
6896         * iconvdata/uhc.c: Likewise.
6897         * iconvdata/unicode.c: Likewise.
6898         * iconvdata/utf-16.c: Likewise.
6899         * libio/fileops.c: Likewise.
6900         * libio/iofwide.c: Likewise.
6901         * wcsmbs/btowc.c: Likewise.
6902         * wcsmbs/mbrtowc.c: Likewise.
6903         * wcsmbs/mbsnrtowcs.c: Likewise.
6904         * wcsmbs/mbsrtowcs.c: Likewise.
6905         * wcsmbs/wcrtomb.c: Likewise.
6906         * wcsmbs/wcsnrtombs.c: Likewise.
6907         * wcsmbs/wcsrtombs.c: Likewise.
6908         * wcsmbs/wctob.c: Likewise.
6909
6910         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6911         an error.
6912
6913 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6914
6915         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6916         counter for the object we are releasing, just decrement it.
6917         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6918
6919 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6920
6921         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6922         if -ffast-math.
6923
6924 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6925
6926         * iconvdata/big5hkscs.c: New file.
6927         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6928
6929         * iconvdata/gconv-modules: Add entry for new module.
6930         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6931         (distribute): Add big5hkscs.c.
6932
6933 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6934
6935         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6936         inlines to match prototypes in mathcalls.h.
6937         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6938         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6939         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6940         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6941
6942 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6943
6944         * elf/elf.h (SHT_SUNW_move): Define.
6945
6946         * elf/elf.h: Add more Solaris compatiblity definitions.
6947
6948 2000-06-03  Andreas Jaeger  <aj@suse.de>
6949
6950         * sysdeps/powerpc/dl-start.S: Close open comment.
6951
6952 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6953
6954         * inet/Versions: Fix typo in rresvport_af export.
6955
6956 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6957
6958         * math/tgmath.h: Pretty print.
6959
6960 2000-06-02  Andreas Jaeger  <aj@suse.de>
6961
6962         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6963         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6964
6965 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6966
6967         * elf/rtld.c (process_envvars): Test for = after variable name.
6968
6969 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6970
6971         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6972         have extra call to __gmon_start__, use the pointer we already have.
6973
6974         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6975         shifting.
6976
6977         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6978         binutils.  gas now emits a jump through the PLT instead of a
6979         relative jump if the jump target is an exported symbol.
6980
6981 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6982
6983         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6984
6985 2000-05-31  Andreas Jaeger  <aj@suse.de>
6986
6987         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6988         gregset_t.
6989
6990         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6991         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6992
6993         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6994         syscall.
6995         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6996
6997 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6998
6999         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7000
7001         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7002         * locale/localeconv.c: Make function versioned (with same definition).
7003
7004         * elf/Makefile (modules-names): Strip before using it.
7005
7006 2000-05-30  Andreas Jaeger  <aj@suse.de>
7007
7008         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7009         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7010         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7011         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7012         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7013         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7014
7015 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7016
7017         * Makefile: Add GNU make magic.
7018
7019         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7020         Removed.
7021         * inet/rcmd.c: Remove __P.  Remove unused variables.
7022         (iruserfopen): Make first parameter const.
7023         (ruserok_sa): Return result of ruserok2_sa.
7024         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7025         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7026         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7027         (ruserpass): Check results of memory allocation.
7028         * include/netdb.h: Add prototype for ruserpass.
7029
7030 2000-05-29  Andreas Jaeger  <aj@suse.de>
7031
7032         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7033         for all platforms.
7034
7035 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7036
7037         * inet/rcmd.c (rresvport_af): Use correct port number.
7038
7039 2000-05-26  Andreas Schwab  <schwab@suse.de>
7040
7041         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7042         entries in all-sonames.
7043         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7044         preserving the old name if different for compatibility.
7045
7046 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7047
7048         * posix/Makefile (tests): Add tst-spawn.
7049         (tst-spawn-ARGS): New variable.
7050         * posix/tst-spawn.c: New file.
7051
7052         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7053         * posix/spawn_faction_adddup2.c: Likewise.
7054         * posix/spawn_faction_addopen.c: Likewise.
7055         * posix/spawni.c: Correctly test for success of dup2 calls.
7056
7057         * posix/tst-preadwrite.c: Check success of malloc call.
7058
7059 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7060
7061         * posix/Makefile (tests): Add tst-exec.
7062         (tst-exec-ARGS): New variable.
7063         * posix/tst-exec.c: New file.
7064
7065         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7066
7067 2000-05-04  Andreas Jaeger  <aj@suse.de>
7068
7069         * string/string.h: Remove __strdup prototype, it's not needed in
7070         this file anymore.
7071
7072 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7073
7074         * posix/Makefile (tests): Add tst-fork.
7075         * posix/tst-fork.c: New file.
7076
7077         * resolv/inet_pton.c: Loose __P.
7078
7079 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7080
7081         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7082         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7083         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7084         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7085         _IO_CHECK_WIDE fails.
7086
7087 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7088
7089         * po/da.po: New file.
7090
7091         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7092         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7093
7094         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7095         (Other iconv Implementations): Fix typo.
7096         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7097
7098 2000-05-27  Andreas Jaeger  <aj@suse.de>
7099
7100         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7101         normal version now.
7102         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7103         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7104         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7105         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7106         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7107         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7108
7109         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7110         endianness to decide how to pass arguments.
7111         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7112
7113         * elf/vismain.c: Use test-skeleton interface.
7114         (TEST_FUNCTION): New macro.
7115         (do_test): Renamed from main.
7116
7117 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7118
7119         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7120         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7121
7122         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7123         handling of AI_V4MAPPED flag.
7124
7125         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7126         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7127         perform lookup for T_A type and tell getanswer_r to convert the
7128         result with new argument.
7129         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7130         Don't convert addresses from IPv4 to IPv6 here.
7131         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7132         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7133         IPv4 mapping has to be done.  Perform mappings if required by the
7134         caller and not if RES_USE_INET6 bit in _res.options is set.
7135         Add several __builtin_expect.
7136
7137 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7138
7139         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7140
7141         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7142         NULL.
7143
7144         * posix/tst-preadwrite.c: Allow parallel execution of
7145         tst-preadwrite and tst-preadwrite64.
7146
7147         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7148         * posix/tst-truncate.c: New file.
7149         * posix/tst-truncate64.c: New file.
7150
7151         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7152         was switched.
7153
7154         * posix/Makefile (tests): Add tst-preadwrite64.
7155         * posix/tst-preadwrite.c: Alloc file being used also for testing
7156         pread64 and pwrite64.
7157         * posix/tst-preadwrite64.c: New file.
7158
7159 2000-05-26  Andreas Jaeger  <aj@suse.de>
7160
7161         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7162         of arguments dependend on endianness.
7163         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7164
7165         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7166         normal version now.
7167         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7168         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7169         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7170         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7171
7172         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7173         endianness to check how to pass argument.
7174         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7175
7176         * elf/ldconfig.h: Update parameter list for process_elf_file.
7177
7178         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7179         Add parameter file_length and pass it ot process_elf*file.
7180
7181         * sysdeps/generic/readelflib.c (check_ptr): New.
7182         (process_elf_file): Use check_ptr to check all accesses to the
7183         mmapped file. Add parameter file_length.
7184
7185         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7186         library names.
7187
7188         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7189         Closes PR libc/1573, reported by Bradley White
7190         <bww@laurelnetworks.com>.
7191
7192 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7193
7194         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7195         __FAST_MATH__ is defined.
7196
7197 2000-05-22  Andreas Jaeger  <aj@suse.de>
7198
7199         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7200         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7201
7202         * manual/math.texi (FP Function Optimizations): Document gcc
7203         -ffast-math behaviour with mathinlines.
7204
7205         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7206         functions unless -ffast-math is given to gcc.
7207
7208 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7209
7210         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7211         __sincosl): Guard with __USE_GNU.
7212
7213 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7214
7215         * csu/Makefile (routines): Add check_fds.
7216         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7217         binaries.  Add various __builtin_expect.
7218         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7219         * sysdeps/generic/check_fds.c: ...here.  New file.
7220
7221         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7222         binaries if file /etc/suid-debug is available.
7223
7224         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7225         and wcseqorder members.
7226         (struct locale_collate_t): Likewise.
7227         (collate_finish): Assign collation sequence value to each character.
7228         Create tables for output.
7229         (collate_output): Write out tables with collation sequence information.
7230         * locale/C-collate.c: Provide C locale data for collation sequence
7231         table.
7232         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7233         _NL_COLLATE_COLLSEQWC.
7234         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7235         _NL_COLLATE_COLLSEQWC.
7236         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7237         include fnmatch_loop.c.
7238         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7239         character is matched by range expression.  Use collation sequence
7240         table.  Outside glibc fall back on simple character value comparison.
7241
7242 2000-05-24  Andreas Jaeger  <aj@suse.de>
7243
7244         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7245         words.
7246
7247         * intl/Makefile: Run gettext-test only if msgfmt is available.
7248
7249         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7250         Define it for newer kernels.
7251
7252 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7253
7254         * elf/dl-sym.c: Minor cleanups.
7255
7256         * configure.in: Add test for .protected.
7257         * config.make.in: Add have-protected variable.
7258         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7259         (tests-vis-yes): Add vismain.
7260         (modules-names): Add $(modules-vis-$(have-protected)).
7261         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7262         Add rules to generate and run vismain.
7263         * elf/vismain.c: New file.
7264         * elf/vismod1.c: New file.
7265         * elf/vismod2.c: New file.
7266         * elf/vismod3.c: New file.
7267
7268 2000-05-23  Andreas Jaeger  <aj@suse.de>
7269
7270         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7271
7272         * manual/search.texi (Array Sort Function): Document that qsort is
7273         not necessarily in-place.
7274
7275         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7276         Closes PR libc/1731.
7277
7278         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7279         * dirent/scandir64.c: Likewise.
7280         * pwd/getpw.c: Likewise.
7281         * stdlib/bsearch.c (bsearch): Likewise.
7282         * stdlib/tst-strtoll.c: Likewise.
7283         * localedata/collate-test.c: Likewise.
7284         * localedata/xfrm-test.c: Likewise.
7285         * posix/bsd-getpgrp.c: Likewise.
7286         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7287         * sysdeps/generic/bits/siginfo.h: Likewise.
7288         * sysdeps/generic/bits/sockaddr.h: Likewise.
7289         * sysdeps/generic/sys/swap.h: Likewise.
7290         * sysdeps/generic/sys/sysinfo.h: Likewise.
7291         * sysdeps/generic/vfork.c: Likewise.
7292         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7293         * sysdeps/mach/hurd/fdopen.c: Likewise.
7294         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7295         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7296         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7297         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7298         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7299         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7300         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7301
7302         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7303         * shadow/lckpwdf.c: Likewise.
7304         * stdlib/tst-strtol.c: Likewise.
7305         * sysdeps/generic/tcsetattr.c: Likewise.
7306         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7307         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7308
7309 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7310
7311         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7312         free it and set to (void *) -1.
7313
7314 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7315
7316         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7317         not the second character in the range.
7318         * stdio-common/tstscanf.c (main): Add testcase for the above.
7319         Reported by jik@kamens.brookline.ma.us.
7320
7321 2000-05-21  H.J. Lu  <hjl@gnu.org>
7322
7323         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7324         with noexec and noplt parameter.
7325         (do_lookup): Likewise.
7326
7327         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7328         do_lookup.  Support STV_PROTECTED.
7329         (_dl_lookup_symbol_skip): Likewise.
7330         (_dl_lookup_versioned_symbol): Likewise.
7331         (_dl_lookup_versioned_symbol_skip): Likewise.
7332
7333         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7334
7335         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7336
7337 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7338
7339         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7340         * sysdeps/i386/bits/huge_val.h: Likewise.
7341         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7342         * sysdeps/m68k/bits/huge_val.h: Likewise.
7343         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7344         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7345
7346 2000-05-22  Andreas Jaeger  <aj@suse.de>
7347
7348         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7349         change in iconv.h.
7350
7351 2000-05-19  Andreas Jaeger  <aj@suse.de>
7352
7353         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7354         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7355         breaks compilation without linuxthreads.
7356
7357 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7358
7359         * sysdeps/ia64/memccpy.S: New file.
7360         * sysdeps/ia64/memchr.S: New file.
7361         * sysdeps/ia64/memcmp.S: New file.
7362         * sysdeps/ia64/memcpy.S: New file.
7363         * sysdeps/ia64/memmove.S: New file.
7364         * sysdeps/ia64/memset.S: New file.
7365         * sysdeps/ia64/strcat.S: New file.
7366         * sysdeps/ia64/strchr.S: New file.
7367         * sysdeps/ia64/strcmp.S: New file.
7368         * sysdeps/ia64/strcpy.S: New file.
7369         * sysdeps/ia64/strlen.S: New file.
7370         * sysdeps/ia64/strncmp.S: New file.
7371         * sysdeps/ia64/strncpy.S: New file.
7372         * sysdeps/ia64/softpipe.h: New file.
7373         Patches by Dan Pop <Dan.Pop@cern.ch>.
7374
7375         * manual/memory.texi: Document memory handling functions (mlock,
7376         munlock, mlockall, munlockall, brk, and sbrk)
7377         * manual/time.texi: Document timespec and friends.
7378         * manual/conf.texi: Fix references.
7379         * manual/ctype.texi: Likewise.
7380         * manual/errno.texi: Likewise.
7381         * manual/intro.texi: Likewise.
7382         * manual/locale.texi: Likewise.
7383         * manual/sysinfo.texi: Likewise.
7384         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7385
7386 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7387
7388         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7389         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7390
7391 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7392
7393         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7394         dxfer_direction.
7395
7396 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7397
7398         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7399         * locale/localeconv.c: Initialize new elements from ISO C99.
7400         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7401         new standard elements.
7402         * locale/categories.def: Adjust accordingly.
7403
7404         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7405         * iconv/iconv.c: Likewise.
7406         * conform/data/iconv.h-data: Likewise.
7407         * iconv/iconv_prog.c (process_block): Remove const from second
7408         parameter.
7409         (main): Remove const from addr definition.
7410         * manual/charset.texi (Generic Conversion Interface): Remove from
7411         inbuf parameter of iconv.
7412
7413         * intl/dcigettext.c: Fix typo in comment.
7414
7415 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7416
7417         * resolv/res_libc.c (_res): Initialize _sock to -1.
7418
7419 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7420
7421         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7422         (fopencookie@@GLIBC_2.2): New.
7423         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7424         (fopencookie@GLIBC_2.0): New.
7425         * libio/Versions: Add fopencookie to GLIBC_2.2.
7426
7427 2000-05-18  Andreas Jaeger  <aj@suse.de>
7428
7429         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7430         Closes PR libc/1731.
7431
7432         * manual/arith.texi (Parsing of Integers): Fix typo.
7433         Closes PR libc/1744, reported by blp@gnu.org.
7434
7435 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7436
7437         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7438         __extension__ to hexadecimal floating constant notation.
7439         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7440         Likewise.
7441         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7442         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7443         Likewise.
7444         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7445         HUGE_VALL): Likewise.
7446         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7447         HUGE_VALL): Likewise.
7448         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7449
7450 2000-05-17  Andreas Jaeger  <aj@suse.de>
7451
7452         * string/envz.h: Add pure attributes if possible.
7453
7454         * string/argz.h: argz_count is a pure function.
7455
7456         * string/strings.h: Add pure and const attributes if possible.
7457
7458         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7459         possibly searching through the whole memory.
7460         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7461
7462 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7463
7464         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7465         not yet defined.
7466         (_dl_cache_check_flags): Likewise.
7467         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7468         dl-cache.h.
7469
7470 2000-05-17  Andreas Jaeger  <aj@suse.de>
7471
7472         * manual/creature.texi (Feature Test Macros): Remove paragraph
7473         since the description is wrong.
7474         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7475
7476         * scripts/config.sub: New version.
7477         * scripts/config.guess: Likewise.
7478         * manual/texinfo.tex: Likewise.
7479
7480         * time/test_time.args: Removed.
7481         * time/Makefile (test_time-ARGS): Added contents here instead.
7482
7483         * posix/tstgetopt.args: Removed.
7484         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7485
7486         * Rules: Allow arguments for test files to be specified in
7487         Makefile with testname-ARGS; remove rules with .args in it.
7488
7489         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7490         remove old bogus rule for opendir-tst1.args.
7491
7492         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7493
7494         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7495         into objdir.  This allows a readonly sourcetree.
7496         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7497
7498 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7499             David Huggins-Daines <dhd@linuxcare.com>
7500
7501         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7502         cache_data in case of only new cache format correctly.
7503
7504         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7505         cache_file_new.
7506
7507         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7508         struct cache_file_new.
7509
7510         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7511         present.
7512
7513         * elf/cache.c (save_cache): Align struct new_file_cache.
7514         (print_cache): Likewise.
7515
7516 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7517
7518         * elf/soinit.c (__libc_global_ctors): Move
7519         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7520         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7521         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7522         variable, don't define it to __res_state call.
7523
7524 2000-05-13  Andreas Jaeger  <aj@suse.de>
7525
7526         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7527         Linux 2.3.99pre7.
7528         (AF_PPPOX): Likewise.
7529         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7530         (AF_PPPOX): Likewise.
7531
7532 2000-05-12  Andreas Jaeger  <aj@suse.de>
7533
7534         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7535         Reported by tmoestl@gmx.net, closes PR libc/1732.
7536
7537 2000-05-11  Jan Hubicka  <jh@suse.cz>
7538
7539         * misc/sys/cdefs.h: Add support for pure attribute.
7540
7541         * include/string.h: Add __attribute_pure__ to various functions.
7542         * string/string.h: Likewise.
7543
7544 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7545
7546         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7547         argument.
7548         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7549         R_SPARC_UA64.
7550         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7551
7552 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7553
7554         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7555         at proper place.  Compute the high nibble correctly.
7556
7557 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7558
7559         * elf/ldconfig.c: Include elf.h.
7560
7561         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7562         (_dl_vsym): Likewise.
7563         Reported by Owen Taylor <otaylor@redhat.com>.
7564
7565         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7566         always.
7567
7568 2000-05-08  Andreas Jaeger  <aj@suse.de>
7569
7570         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7571
7572         * intl/bindtextdom.c (set_binding_values): Add prototype.
7573
7574 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7575
7576         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7577         call to elf_machine_fixup_plt.
7578         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7579         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7580
7581 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7582
7583         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7584         they are not dlclose'd from underneath us.
7585
7586 2000-05-08  Andreas Schwab  <schwab@suse.de>
7587
7588         * posix/execle.c: Fix size parameter of memcpy.
7589
7590 2000-05-08  Andreas Schwab  <schwab@suse.de>
7591
7592         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7593         getpagesize syscall if available.
7594
7595 2000-05-08  Andreas Jaeger  <aj@suse.de>
7596
7597         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7598         set errno.
7599
7600 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7601
7602         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7603         sizeof(struct link_map *) chunks, not in bytes.
7604
7605 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7606
7607         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7608         only needed for locale.
7609         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7610         It's only needed for catgets.
7611         Patches by Greg McGary <gkm@eng.ascend.com>.
7612
7613 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7614
7615         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7616         Remove duplicate <errno.h> include.  Remove inclusion of
7617         <libintl.h> and "nsswitch.h".
7618         (set_cloexec_flag): New function, broken out of dbopen.
7619         (dbopen): Changed return type to `enum
7620         nss_status'.  Mostly rewritten to make sure that we do not report
7621         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7622         (internal_setent): Change return type to nss_status.
7623         Document, and make sure that the function
7624         behaves accordingly.  Make dynamically loading the database
7625         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7626         failed.
7627         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7628         unecessary casts.
7629         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7630         documentation.
7631         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7632         c_get function member.
7633         * nss/nss_db/nss_db.h: Add and tweak some comments.
7634         (DBT): Move typedef before NSS_DBC typedef.
7635         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7636
7637 2000-05-07  H.J. Lu  <hjl@gnu.org>
7638
7639         * csu/initfini.c: Moved to ....
7640         * sysdeps/generic/initfini.c: ...here.
7641
7642         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7643
7644 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7645
7646         * manual/resource.texi: Document POSIX scheduling functions.
7647         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7648
7649         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7650         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7651
7652         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7653         for x since promotion in comparison might leads to unexpected
7654         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7655
7656         * iconv/Makefile (tests): Add tst-iconv1.
7657         * iconv/tst-iconv1.c: New file.
7658         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7659         empty input buffer over full output buffer.
7660         (ucs4_internal_loop): Likewise.
7661         (ucs4_internal_loop_unaligned): Likewise.
7662         (internal_ucs4le_loop): Likewise.
7663         (internal_ucs4le_loop_unaligned): Likewise.
7664         (ucs4le_internal_loop): Likewise.
7665         (ucs4le_internal_loop_unaligned): Likewise.
7666         Reported by yaoz@nih.gov.
7667
7668 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7669
7670         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7671         returned != __GCONV_OK, there is nothing to clean up.
7672
7673 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7674
7675         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7676         OUTPUT_CHARSET environment variables.
7677
7678 2000-05-06  Andreas Jaeger  <aj@suse.de>
7679
7680         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7681         (struct cache_file_new): New.
7682         (struct file_entry): New (moved from cache.c).
7683         (struct cache_file): New (moved from cache.c).
7684
7685         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7686         from _dl_load_cache_lookup.
7687         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7688         the different cache formats.
7689         New variable cache_new for new format.
7690
7691         * elf/ldconfig.h: Change according to changes in cache.c and
7692         ldconfig.c; remove cache_libcmp; add opt_format.
7693
7694         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7695         stuff that's defined in those headers.
7696         Add hwcap to struct lib_entry.
7697         (opt_format): New variable to select cache format.
7698         (options): Add format parameter.
7699         (is_hwcap): New function.
7700         (path_hwcap): New function.
7701         (parse_opt): Handle new format parameter.
7702         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7703
7704         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7705         ldconfig is part of glibc.
7706         Include dl-cache.h and remove stuff that's defined there.
7707         (struct cache_entry): Add new member hwcap.
7708         (print_entry): Print hwcap, cleanup a bit.
7709         (print_cache): Print new and old formats.
7710         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7711         (save_cache): Save new and old formats.
7712         (add_to_cache): Handle hwcap.
7713
7714         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7715         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7716         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7717         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7718         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7719         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7720
7721 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7722
7723         * intl/dcigettext.c (alignof): New macro.
7724         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7725         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7726         freemem_size to 0.
7727
7728 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7729
7730         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7731         return value.
7732
7733 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7734
7735         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7736         (mempcpy): Correct typo is parameter list.
7737
7738 2000-05-06  Andreas Jaeger  <aj@suse.de>
7739
7740         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7741         functions unless -ffast-math is given to gcc.
7742
7743 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7744
7745         * po/ko.po: Update from translation team.
7746
7747 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7748
7749         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7750         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7751         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7752         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7753         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7754         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7755
7756         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7757         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7758         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7759
7760         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7761         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7762         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7763         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7764
7765         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7766         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7767
7768 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7769
7770         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7771         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7772
7773         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7774         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7775
7776         * sysdeps/ia64/Implies: New file.
7777         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7778         * sysdeps/ia64/Makefile: New file.
7779         * sysdeps/ia64/gmp-mparam.h: New file,
7780
7781         * sysdeps/ia64/elf/start.S: New file.
7782
7783         * sysdeps/ia64/bits/fenv.h: New file.
7784
7785 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7786
7787         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7788
7789 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7790
7791         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7792         ia64 has 64 bit .hash entries just as the Alpha.
7793
7794 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7795
7796         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7797
7798 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7799
7800         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7801         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7802         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7803         * sysdeps/ia64/fpu/fegetenv.c: New file.
7804         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7805         * sysdeps/ia64/fpu/fegetround.c: New file.
7806         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7807         * sysdeps/ia64/fpu/fesetenv.c: New file.
7808         * sysdeps/ia64/fpu/fesetround.c: New file.
7809         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7810         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7811         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7812         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7813         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7814
7815 2000-05-05  Andreas Jaeger  <aj@suse.de>
7816
7817         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7818
7819         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7820         (_dl_string_hwcap): New, does nothing.
7821
7822         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7823         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7824         (_dl_string_hwcap): New function, converts from string to hwcap
7825         encoding.
7826         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7827         (_DL_HWCAP_COUNT): New.
7828         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7829         (_dl_string_hwcap): New function, converts from string to hwcap
7830         encoding.
7831         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7832         (_DL_HWCAP_COUNT): New.
7833         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7834         (_dl_string_hwcap): New function, converts from string to hwcap
7835         encoding.
7836
7837 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7838
7839         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7840         * sysdeps/ia64/Dist: New file.
7841
7842         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7843         parameter to mprotect and for variable assignments.
7844
7845 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7846
7847         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7848         validity of map before dereferencing it.
7849
7850         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7851
7852 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7853
7854         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7855         lookup to the arguments to elf_machine_fixup_plt().
7856
7857         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7858         of the symbol being resolved to input argument list and make the
7859         function return the pointer to the reloc.
7860
7861         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7862         return valuie to lookup_t and return the value.
7863         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7864         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7865         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7866         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7867         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7868         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7869
7870         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7871         Make it an inline function returning value after calling
7872         __elf_machine_fixup_plt().
7873
7874         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7875         symbol address.
7876
7877         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7878         obtain the symbol address.
7879
7880         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7881         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7882
7883         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7884         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7885         inline on non ia64.
7886
7887 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7888
7889         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7890         symbol address of an object.
7891
7892         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7893         the symbol address of an object.
7894
7895         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7896         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7897         (_dl_lookup_symbol_skip): Likewise.
7898         (_dl_lookup_versioned_symbol): Likewise.
7899         (_dl_lookup_versioned_symbol_skip): Likewise.
7900
7901 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7902
7903         * elf/rtld.c (_dl_start): Get the function pointer return address
7904         via _dl_start_address for architectures that need a function
7905         pointer descriptor rather than just a pointer (ia64).
7906
7907         * sysdeps/generic/dl-lookupcfg.h: New file.
7908         * sysdeps/ia64/dl-lookupcfg.h: New file.
7909         * sysdeps/ia64/dl-machine.h: New file.
7910         * sysdeps/ia64/dl-symaddr.c: New file.
7911         * sysdeps/ia64/dl-fptr.c: New file.
7912
7913         * elf/elf.h: Add IA-64 specific definitions.
7914
7915 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7916
7917         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7918         end of enum.
7919
7920 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7921
7922         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7923         happy.
7924
7925 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7926
7927         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7928         symbol.  Call _dl_init rather than the old way.
7929
7930 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7931
7932         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7933         test for pointer in range of DSO address space.
7934
7935 2000-05-04  Andreas Jaeger  <aj@suse.de>
7936
7937         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7938
7939 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7940
7941         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7942         calls of _nl_make_l10nflist.
7943
7944         * libio/stdio.h: Make fseeko and ftello prototypes available is
7945         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7946
7947         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7948         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7949
7950 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7951
7952         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7953         before calling tfind.
7954
7955 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7956
7957         * resolv/resolv.h (res_querydomain): Remove redefinition to
7958         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7959
7960 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7961
7962         * po/gl.po: Update from translation team.
7963
7964         * manual/intro.texi (Program Basics): Change section title.
7965         * manual/process.texi: Fix reference.
7966         (Executing a File): Add reference exec in other section.
7967         * manual/signal.texi: Fix reference.
7968         * manual/startup.texi: Document syscall function.
7969         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7970
7971 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7972
7973         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7974         * intl/bindtextdom.c (set_binding_values): New function.
7975         (bindtextdomain): Call it.
7976         (bind_textdomain_codeset): New function.
7977         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7978         (free_mem): Free each binding's codeset.
7979         * intl/gettextP.h (struct binding): Add codeset field.
7980         (_nl_find_domain): Add domainbinding argument.
7981         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7982         Pass it to _nl_make_l10nflist.
7983         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7984         (_nl_make_l10nflist): Add domainbinding argument.
7985         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7986         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7987         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7988         locale_charset().
7989         * manual/message.texi: New node "Charset conversion in gettext".
7990
7991 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7992
7993         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7994         appropriate.  Handle possible __read error.
7995
7996 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7997
7998         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7999         compiler builtin.
8000         * intl/loadinfo.h (__builtin_expect): Likewise.
8001         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8002         __builtin_expect where appropriate.
8003         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8004         * intl/localealias.c (extend_alias_table): Return an error indicator.
8005         (read_alias_file): Bail out if extend_alias_table fails.
8006
8007 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8008
8009         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8010         * intl/localealias.c: Likewise.
8011
8012 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8013
8014         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8015         Initialize domain->plural and domain->nplurals even if there is no
8016         nullentry.
8017
8018 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8019
8020         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8021         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8022         In case of failure, goto converted.
8023
8024 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8025
8026         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8027         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8028         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8029         __gconv_open.
8030
8031 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8032
8033         * intl/dcigettext.c (transcmp): Compare the domains as well.
8034         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8035         not before.
8036         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8037         <errno.h>.
8038
8039 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8040
8041         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8042         Reported by Bruno Haible.
8043
8044 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8045
8046         * manual/arith.texi: Remove @w from @itemize.
8047
8048 2000-05-02  Andreas Jaeger  <aj@suse.de>
8049
8050         * conform/data/tar.h-data: Add some checks for specific values.
8051
8052         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8053         and RAND_MAX.
8054
8055         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8056         FOPEN_MAX.
8057
8058         * conform/data/netinet/in.h-data: Add exact checks for the values
8059         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8060
8061         * conform/data/float.h-data: Add some minimal values.
8062
8063         * conform/conformtest.pl: Test for macros with string constants,
8064         check for minimum and maximum values.
8065         Add limits.h to headers.
8066
8067         * conform/data/cpio.h-data: Test for value of MAGIC.
8068
8069         * conform/data/limits.h-data: New file.
8070
8071 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8072
8073         * math/Makefile (headers): Add bits/fenvinline.h.
8074
8075 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8076
8077         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8078         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8079
8080         * posix/Versions: Change posix_spawnattr_getdefault and
8081         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8082         and posix_spawnattr_setsigdefault respectively.
8083         * posix/spawn.h: Likewise.
8084         * posix/spawnattr_getdefault.h: Likewise.
8085         * posix/spawnattr_setdefault.h: Likewise.
8086         * conform/data/spawn.h-data: Likewise.
8087
8088 2000-05-01  Andreas Jaeger  <aj@suse.de>
8089
8090         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8091
8092 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8093
8094         * manual/sysinfo.texi: Document getdomainname, setdomainname
8095         and sysctl.
8096         * manual/string.texi: Fix typo.
8097         * manual/terminal.texi: Document gtty and stty.
8098         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8099
8100 2000-04-30  Andreas Jaeger  <aj@suse.de>
8101
8102         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8103         accordance with Austin Draft.
8104
8105 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8106
8107         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8108         to recognize second character in comment line.
8109
8110         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8111         ENOBUFS if we are out of memory.
8112
8113         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8114         available if __USE_XOPEN2K.
8115         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8116         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8117         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8118         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8119         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8120         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8121         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8122         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8123
8124 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8125
8126         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8127         Recognize option -s, -c, and -l.
8128
8129 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8130
8131         * nscd/nscd.c: Start new session for nscd, drop privilegs
8132         to configured user if requested and no -S parameter are used.
8133         * nscd/nscd.conf: Add new option "server-user".
8134         * nscd/nscd_conf.c: Add support for new "server-user" option.
8135         * nscd/nscd.h: Add declaration for server_user variable.
8136         Based on patch by Chris Wing <wingc@engin.umich.edu>
8137
8138 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8139
8140         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8141         that changing the __restore and __restore_rt signal return code
8142         will break GDB.
8143
8144 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8145
8146         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8147         <sys/user.h>.
8148
8149 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8150
8151         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8152
8153 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8154
8155         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8156         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8157         arpa/inet.h.
8158         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8159         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8160         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8161         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8162         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8163         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8164         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8165         posix_fallocate, and posix_madvise.
8166         * conform/data/netdb.h-data: New file.
8167         * conform/data/pthread.h-data: Add pthread_barrier_t,
8168         pthread_barrierattr_t, pthread_barrier_destroy,
8169         pthread_barrier_init, pthread_barrier_wait,
8170         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8171         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8172         pthread_condattr_getclock, pthread_condattr_setclock,
8173         pthread_getcpuclockid, pthread_mutex_timedlock,
8174         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8175         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8176         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8177         * conform/data/sched.h-data: Add sched_ss_low_priority,
8178         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8179         SCHED_SPORADIC.
8180         * conform/data/semaphore.h-data: Add sem_timedwait.
8181         * conform/data/signal.h-data: Add SIGIO.
8182         * conform/data/spawn.h-data: New file.
8183         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8184         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8185         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8186         Fix typo in gmtime_r definition.
8187         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8188         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8189         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8190         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8191         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8192         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8193         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8194         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8195         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8196         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8197         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8198         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8199         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8200         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8201         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8202         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8203         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8204         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8205         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8206         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8207         typo in off_t definition.
8208         * conform/data/net/if.h-data: New file.
8209         * conform/data/netinet/in.h-data: New file.
8210         * conform/data/netinet/tcp.h-data: New file.
8211         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8212         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8213         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8214         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8215         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8216         and posix_typed_mem_open.
8217         * conform/data/sys/socket.h-data: New file.
8218         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8219         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8220         pthread_barrierattr_t, and pthread_spinlock_t.
8221         * conform/data/sys/un.h-data: New file.
8222         * conform/data/sys/utsname.h-data: New file.
8223
8224         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8225         parameter.
8226         * inet/gethstbyad.c (gethostbyname): Likewise.
8227         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8228         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8229         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8230         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8231         Likewise.
8232         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8233         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8234         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8235         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8236         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8237         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8238         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8239         and second parameter.
8240
8241         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8242         == NULL.
8243
8244 2000-04-29  Andreas Jaeger  <aj@suse.de>
8245
8246         * conform/data/arpa/inet.h-data: New file.
8247
8248 2000-04-28  Geoff Clare <gwc@unisoft.com>
8249
8250         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8251         path passed to ftw() or nftw() is an empty string.
8252         Closes PR libc/1710.
8253
8254 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8255
8256         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8257         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8258         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8259         * localedata/tst-mbswcs4.c: New file.
8260         * localedata/tst-mbswcs5.c: New file.
8261
8262         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8263         == NULL.  Little optimization.
8264
8265         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8266         DT_PREINIT_ARRAYSZ).
8267         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8268
8269         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8270         overflows in conversion from ASCII.
8271
8272 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8273
8274         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8275         * Makerules (full_config_sysdirs): Likewise.
8276         * MakeTAGS (full_config_sysdirs): Likewise.
8277
8278 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8279
8280         * .cvsignore: Remove linuxthreads.
8281         * po/.cvsignore: Remove *.pot.
8282         * posix/glob/.cvsignore: Removed.
8283         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8284
8285 2000-04-25  Andreas Jaeger  <aj@suse.de>
8286
8287         * conform/Makefile (distribute): Also distribute contents of
8288         subdirectories.
8289
8290         * Makerules (no_deps): Remove abi-versions.h.
8291
8292         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8293
8294 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8295
8296         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8297         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8298         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8299         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8300         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8301         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8302         objects.
8303
8304 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8305
8306         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8307
8308 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8309
8310         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8311         * intl/l10nflist.c: Likewise.
8312
8313 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8314
8315         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8316         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8317         * intl/textdomain.c [!_LIBC]: Likewise.
8318         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8319         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8320         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8321         syntax error.
8322
8323 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8324
8325         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8326         character set conversion also in the case the translation was found
8327         after a hash collision or through binary search.  Store the maximum
8328         index together with the converted message.  Use iconv() when available.
8329         In case of out of memory during conversion, return the unconverted
8330         translated string, not NULL.
8331
8332 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8333
8334         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8335         to avoid name clashes with the ia32 linker.
8336
8337 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8338
8339         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8340         handling.
8341
8342 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8343
8344         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8345         strtoumax, strfry, and memfrob.
8346         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8347         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8348
8349         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8350         if this function is available.
8351
8352         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8353         all values.
8354
8355 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8356
8357         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8358
8359 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8360
8361         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8362         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8363         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8364         * localedata/tst-mbswcs3.c: New file.
8365
8366 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8367
8368         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8369         characters.  Don't handle incomplete characters as errors.
8370         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8371         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8372         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8373         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8374         * localedata/tst-mbswcs2.c: New file.
8375
8376         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8377         stored character in state in UNPACK_BYTES macro.
8378         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8379         test for available characters, handle result of BODY code correctly.
8380         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8381         (distribute): Add tst-mbswcs.sh.
8382         Add rule to run tst-mbswcs.sh.
8383         * localedata/tst-mbswcs.sh: New file.
8384         * localedata/tst-mbswcs1.c: New file.
8385
8386 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8387
8388         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8389         allocation fixups centrally, fix __builtin_expect call, return NULL
8390         on failure, not NIS_NOMEMORY.
8391
8392 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8393
8394         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8395
8396         * intl/loadinfo.h (internal_function): Define if not already defined.
8397
8398 2000-04-27  Andreas Jaeger  <aj@suse.de>
8399
8400         * intl/libintl.h: Fix typo, reported by Bruno Haible
8401         <haible@clisp.cons.org>.
8402
8403 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8404
8405         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8406         setting the state to GMON_PROF_BUSY.
8407
8408 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8409
8410         * elf/dl-profile.c (_dl_start_profile): define all variables which
8411         do not have to be global as local variables.
8412
8413         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8414         patch.  Keep needed tests for failed memory allocation.
8415
8416         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8417         __builtin_expect saying that we don't normally expect to profile.
8418
8419         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8420         __builtin_expect where desirable.
8421
8422 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8423
8424         * manual/Makefile (chapters): Add syslog.
8425         * manual/syslog.texi: New file.
8426         * manual/math.texi: Fix references.
8427         * manual/terminal.texi: Likewise.
8428         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8429
8430 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8431
8432         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8433         stdlib.h was not included or __USE_XOPEN not defined.
8434
8435 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8436
8437         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8438         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8439
8440 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8441
8442         * manual/examples/subopt.c (mount_opts): Add missing terminating
8443         entry.
8444         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8445
8446         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8447         * libio/ftello.c: Likewise.
8448         * libio/ftello64.c: Likewise.
8449         * libio/ioftell.c: Likewise.
8450         * sysdeps/generic/memrchr.c: Likewise.
8451         * sysdeps/posix/libc_fatal.c: Likewise.
8452         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8453         * misc/fstab.c: Include <string.h> for strcmp prototype.
8454         * sysdeps/generic/ldsodefs.h: Likewise.
8455         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8456         Patch by Kurt Roeckx <Q@ping.be>.
8457
8458         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8459         Remove db-open.  Change all uses.
8460         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8461
8462 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8463
8464         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8465         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8466         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8467         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8468         with .set noat/at to shut up warnings.
8469         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8470         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8471         compilation if __NR_pciconfig_iobase is not defined.
8472         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8473         Add alias.
8474
8475 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8476
8477         * manual/sysinfo.texi: Fix typo.
8478         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8479         Replace "high precision time" with "high accuracy clock".
8480         Fix language.
8481         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8482
8483         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8484         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8485         instead of malloc.
8486         * nis/nis_subr.c: Use __builtin_expect.
8487         * nis/ypclnt.c: Likewise.
8488         * nis/nis_getservlist.c: Likewise.
8489         * nis/nis_creategroup.c: Likewise.
8490
8491         * nis/nis_callback.c (__nis_create_callback): Check result of
8492         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8493         (__nis_destroy_callback): Fix memory leaks.
8494
8495 2000-04-21  Andreas Jaeger  <aj@suse.de>
8496
8497         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8498         * sysdeps/mips/mips64/add_n.S: Likewise.
8499         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8500         * sysdeps/mips/mips64/lshift.S: Likewise.
8501         * sysdeps/mips/mips64/mul_1.S: Likewise.
8502         * sysdeps/mips/mips64/rshift.S: Likewise.
8503         * sysdeps/mips/mips64/setjmp.S: Likewise.
8504         * sysdeps/mips/mips64/sub_n.S: Likewise.
8505         * sysdeps/mips/mips64/submul_1.S: Likewise
8506         * sysdeps/unix/mips/sysdep.S: Likewise.
8507
8508         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8509         and update comment.  The strtab from _dl_relocate_object can be
8510         used.
8511
8512 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8513
8514         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8515         * iconv/iconv_close.c (iconv_close): Likewise.
8516         * iconv/iconv_open.c (iconv_open): Likewise.
8517
8518         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8519         __builtin_expect where useful.
8520
8521         * grp/initgroups.c (initgroups): Test for result of memory
8522         allocation and punt if it fails.
8523
8524         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8525         * grp/fgetgrent.c (fgetfrent): Likewise.
8526         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8527
8528 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8529
8530         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8531
8532 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8533
8534         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8535         don't search for NUL byte to decrement counter.
8536         Reported by Ulrich.Brink@sap.com.
8537
8538         * iconv/gconv_simple.c: Define separate functions to convert from
8539         UCS4/UCS4-LE to the internal encoding.
8540         * iconv/gconv_builtin.h: Use separate functions to convert from
8541         UCS4/UCS4-LE to the internal encoding.
8542         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8543         __gconv_transform_ucs4le_internal.
8544
8545         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8546         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8547
8548         * iconv/skeleton.c: Add some more __builtin_expect.
8549         * iconv/loop.c: Likewise.
8550
8551 2000-03-08  H.J. Lu  <hjl@gnu.org>
8552
8553         * posix/regex.c (regex_compile): Correctly handle "\{" when
8554         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8555
8556 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8557
8558         * manual/stdio.texi: Give advise about handling error when using
8559         stream functions.
8560         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8561
8562 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8563
8564         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8565         field to nelems * sizeof (uint32_t).
8566         * locale/programs/ld-address.c (address_output): Align word fields
8567         properly.
8568         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8569         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8570         field.
8571         Avoid giving arbitrary garbage in the crncystr field.
8572         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8573         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8574         fields.
8575         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8576         Don't restart idx pointers to idx end at the decimal_point_wc field.
8577         * locale/programs/ld-time.c (time_output): week_1stday should be
8578         word, not byte.  Align it properly.
8579
8580 2000-04-19  H.J. Lu  <hjl@gnu.org>
8581
8582         * csu/gmon-start.c (_start): Declared as "extern void".
8583         (etext): Likewise.
8584
8585 2000-04-18  Andreas Jaeger  <aj@suse.de>
8586
8587         * manual/install.texi (Running make install): Don't mention utmpd
8588         anymore.
8589
8590 2000-04-18  Andreas Jaeger  <aj@suse.de>
8591
8592         * linuxthreads/Versions: Use ld instead of ld.so.
8593
8594         * elf/Makefile (ld-map): Use ld.map.
8595
8596         * Versions.def: Use ld instead of ld.so.
8597         * elf/Versions: Likewise.
8598         * sysdeps/mach/hurd/Versions: Likewise.
8599
8600 2000-04-20  Andreas Jaeger  <aj@suse.de>
8601
8602         * elf/rtld.c (print_statistics): Move ifndef further up.
8603         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8604         (dl_main): Likewise.
8605
8606 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8607
8608         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8609         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8610
8611         * po/cs.po: Update from translation team.
8612
8613         * sysdeps/generic/updwtmp.c: Remove daemon support.
8614
8615         * login/Makefile (routines): Remove utmp_daemon.
8616
8617         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8618         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8619         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8620         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8621
8622         * elf/rtld.c: Display statitics option also if hp timing is not
8623         available.
8624
8625         * login/programs/connection.c: Removed.
8626         * login/programs/database.c Removed.
8627         * login/programs/error.c: Removed.
8628         * login/programs/request.c: Removed.
8629         * login/programs/xtmp.c: Removed.
8630         * login/programs/xtmp.h: Removed.
8631         * login/Makefile: Remove rules for utmpd.
8632         * login/README.utmpd: Removed.
8633         * login/utmp_daemon.c: Removed.
8634         * login/getutent_r.c: Remove references to daemon functions.
8635         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8636         declaration.
8637
8638 2000-04-18  Andreas Jaeger  <aj@suse.de>
8639
8640         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8641         2.2 for libnsl, libresolv, librt, libnss_*.
8642
8643         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8644
8645         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8646
8647 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8648
8649         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8650         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8651         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8652         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8653         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8654         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8655         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8656         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8657         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8658         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8659         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8660         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8661         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8662         it here.
8663         * sysdeps/unix/sysv/aix/msync.c: New file.
8664         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8665         * sysdeps/unix/sysv/aix/net/if.h: New file.
8666         * sysdeps/unix/sysv/aix/pipe.c: New file.
8667         * sysdeps/unix/sysv/aix/poll.c: New file.
8668         * sysdeps/unix/sysv/aix/rename.c: New file.
8669         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8670         * sysdeps/unix/sysv/aix/select.c: New file.
8671         * sysdeps/unix/sysv/aix/semctl.c: New file.
8672         * sysdeps/unix/sysv/aix/semget.c: New file.
8673         * sysdeps/unix/sysv/aix/semop.c: New file.
8674         * sysdeps/unix/sysv/aix/sendto.c: New file.
8675         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8676         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8677         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8678         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8679         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8680         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8681         * sysdeps/unix/sysv/aix/setsid.c: New file.
8682         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8683         * sysdeps/unix/sysv/aix/shmat.c: New file.
8684         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8685         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8686         * sysdeps/unix/sysv/aix/shmget.c: New file.
8687         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8688         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8689         * sysdeps/unix/sysv/aix/socket.c: New file.
8690         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8691         * sysdeps/unix/sysv/aix/speed.c: New file.
8692         * sysdeps/unix/sysv/aix/symlink.c: New file.
8693         * sysdeps/unix/sysv/aix/sync.c: New file.
8694         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8695         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8696         * sysdeps/unix/sysv/aix/times.c: New file.
8697         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8698         * sysdeps/unix/sysv/aix/umask.c: New file.
8699         * sysdeps/unix/sysv/aix/unlink.c: New file.
8700         * sysdeps/unix/sysv/aix/ustat.c: New file.
8701         * sysdeps/unix/sysv/aix/utimes.c: New file.
8702
8703 2000-04-18  Andreas Jaeger  <aj@suse.de>
8704
8705         * manual/startup.texi (Environment Access): Fix putenv prototype
8706         according to recent changes.
8707         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8708         PR libc/1692.
8709
8710         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8711         needed.
8712
8713 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8714
8715         * posix/Makefile (tests): Add tst-getaddrinfo.
8716         * posix/tst-getaddrinfo.c: New file.
8717
8718 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8719
8720         * manual/sysinfo.texi: Document that umount2 is not widely available.
8721
8722         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8723         signal timing is not really implemented.
8724
8725 2000-04-17  Andreas Jaeger  <aj@suse.de>
8726
8727         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8728
8729 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8730
8731         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8732         and inst_libdir.
8733
8734 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8735
8736         * manual/intro.texi: Change reference from System Information to
8737         System Management.
8738         * manual/users.texi: Likewise.
8739         * manual/conf.texi: Likewise.
8740         * manual/sysinfo.texi: Document mount, umount, and umount2.
8741         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8742
8743 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8744
8745         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8746         Create wnumstr as well as numstr to support wide character output
8747         correctly.
8748
8749 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8750
8751         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8752         modification and move it...
8753         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8754         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8755         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8756         switch to $(LD) on sparc-linux.
8757
8758 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8759
8760         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8761         and setresuid from sysdep_routines.
8762
8763 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8764
8765         * manual/Makefile (chapters): Add resource.
8766
8767         * manual/time.texi: Move section on resources to...
8768         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8769         and vtimes.
8770         * manual/setjmp.texi: Adjust back reference.
8771         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8772
8773         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8774         definition.
8775         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8776         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8777         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8778         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8779         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8780         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8781         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8782         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8783         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8784         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8785         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8786         * sysdeps/unix/sysv/aix/Implies: New file.
8787         * sysdeps/unix/sysv/aix/Versions: New file.
8788         * sysdeps/unix/sysv/aix/bind.c: New file.
8789         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8790         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8791         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8792         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8793         * sysdeps/unix/sysv/aix/chdir.c: New file.
8794         * sysdeps/unix/sysv/aix/chmod.c: New file.
8795         * sysdeps/unix/sysv/aix/chroot.c: New file.
8796         * sysdeps/unix/sysv/aix/creat.c: New file.
8797         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8798         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8799         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8800         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8801         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8802         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8803         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8804         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8805         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8806         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8807         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8808         * sysdeps/unix/sysv/aix/link.c: New file.
8809         * sysdeps/unix/sysv/aix/madvise.c: New file.
8810         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8811         * sysdeps/unix/sysv/aix/mknod.c: New file.
8812         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8813         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8814         * sysdeps/unix/sysv/aix/msgget.c: New file.
8815         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8816
8817 2000-04-17  Andreas Jaeger  <aj@suse.de>
8818
8819         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8820         as suggested by Ulrich Drepper.
8821         (__dl_runtime_resolve): Remove unused variable, initialize sym
8822         directly.
8823         (RTLD_START): Document OFFSET_GP_GOT.
8824         (OFFSET_GP_GOT): New magic value.
8825         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8826         (elf_machine_got_rel): Only declare strtab if needed.
8827         (elf_machine_relplt): Removed, it's not needed.
8828         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8829
8830         * sysdeps/mips/add_n.S: Add newline at EOF.
8831         * sysdeps/mips/rshift.S: Likewise.
8832         * sysdeps/mips/mul_1.S: Likewise.
8833         * sysdeps/mips/lshift.S: Likewise.
8834         * sysdeps/mips/addmul_1.S: Likewise.
8835
8836 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8837
8838         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8839
8840         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8841         * elf/dl-lookup.c: Likewise.
8842         * elf/dl-init.c (_dl_init): Likewise.
8843         * elf/dl-fini.c (_dl_fini): Likewise.
8844         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8845         * elf/dl-close.c (_dl_close): Likewise.
8846         * elf/rtld.c (_dl_start_final): Likewise.
8847
8848         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8849
8850 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8851
8852         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8853         only fall back on using Linux.
8854
8855         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8856         Before testing versions check that we actually loaded the object
8857         and whether we are in trace mode.  If not loaded during tracing don't
8858         test versions in this object.
8859         (_dl_check_all_versions): Take new parameter and pass to
8860         _dl_check_map_versions.
8861         * sysdeps/generic/ldsodefs.h: Update prototypes for
8862         _dl_check_all_versions and _dl_check_map_versions.
8863         * elf/rtld.c (struct version_check_args): Add dotrace.
8864         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8865         (dl_main): Pass info about trace mode to version_check_doit.
8866         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8867         _dl_check_all_versions.
8868
8869         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8870         and getutmpx.
8871         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8872
8873         * manual/argp.texi: Document index parameter of argp_parse.
8874         Fix typo.
8875         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8876
8877 2000-04-14  Andreas Jaeger  <aj@suse.de>
8878
8879         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8880         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8881
8882         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8883
8884 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8885
8886         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8887         compat_symbol call for old adjtime.
8888
8889         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8890         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8891
8892         * posix/Makefile (headers): Add spawn.h.
8893         (distribute): Add spawn_int.h.
8894         (routines): Add spawn_faction_init, spawn_faction_destroy,
8895         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8896         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8897         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8898         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8899         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8900         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8901         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8902         posix_spawnattr_init, posix_spawnattr_destroy,
8903         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8904         posix_spawnattr_getflags, posix_spawnattr_setflags,
8905         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8906         and posix_spawnp.
8907         * posix/spawn.c: New file.
8908         * posix/spawn.h: New file.
8909         * posix/spawn_faction_addclose.c: New file.
8910         * posix/spawn_faction_adddup2.c: New file.
8911         * posix/spawn_faction_addopen.c: New file.
8912         * posix/spawn_faction_destroy.c: New file.
8913         * posix/spawn_faction_init.c: New file.
8914         * posix/spawn_int.h: New file.
8915         * posix/spawnattr_destroy.c: New file.
8916         * posix/spawnattr_getdefault.c: New file.
8917         * posix/spawnattr_getflags.c: New file.
8918         * posix/spawnattr_getpgroup.c: New file.
8919         * posix/spawnattr_getschedparam.c: New file.
8920         * posix/spawnattr_getschedpolicy.c: New file.
8921         * posix/spawnattr_getsigmask.c: New file.
8922         * posix/spawnattr_init.c: New file.
8923         * posix/spawnattr_setdefault.c: New file.
8924         * posix/spawnattr_setflags.c: New file.
8925         * posix/spawnattr_setpgroup.c: New file.
8926         * posix/spawnattr_setschedparam.c: New file.
8927         * posix/spawnattr_setschedpolicy.c: New file.
8928         * posix/spawnattr_setsigmask.c: New file.
8929         * posix/spawni.c: New file.
8930         * posix/spawnp.c: New file.
8931
8932         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8933         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8934
8935 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8936
8937         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8938         * malloc/malloc.c: Implement posix_memalign for glibc.
8939         * include/stdlib.h: Add prototype for __posix_memalign.
8940         * stdlib/stdlib.h: Add prototype for posix_memalign.
8941
8942 2000-04-14  Andreas Jaeger  <aj@suse.de>
8943
8944         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8945         symidx correctly.
8946         (elf_machine_got_rel): Cast sym correctly.
8947
8948         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8949         * sysdeps/mips/addmul_1.S: Likewise.
8950         * sysdeps/mips/lshift.S: Likewise.
8951         * sysdeps/mips/mul_1.S: Likewise.
8952         * sysdeps/mips/rshift.S: Likewise.
8953         * sysdeps/mips/sub_n.S: Likewise.
8954         * sysdeps/mips/submul_1.S: Likewise.
8955
8956         * stdlib/stdlib.h: Fix typo in comment.
8957
8958         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8959         2.2 for libdl, ld and libm.
8960
8961         * sysdeps/generic/madvise.c: Fix typos.
8962
8963         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8964
8965         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8966
8967         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8968         warnings.
8969
8970 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8971
8972         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8973         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8974         Make old name weak alias.
8975         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8976         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8977         Make old name weak alias.
8978         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8979
8980         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8981         posix_fallocate, and posix_fallocate64.
8982         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8983         posix_fallocate, and posix_fallocate64.
8984         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8985         posix_fallocate, and posix_fallocate64.
8986         * sysdeps/generic/fadvise.c: New file.
8987         * sysdeps/generic/fadvise64.c: New file.
8988         * sysdeps/generic/fallocate.c: New file.
8989         * sysdeps/generic/fallocate64.c: New file.
8990         * sysdeps/posix/fallocate.c: New file.
8991         * sysdeps/posix/fallocate64.c: New file.
8992         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8993         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8994         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8995         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8996         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8997         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8998         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8999         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9000         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9001
9002         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9003         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9004
9005 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9006
9007         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9008         * misc/sys/mman.h (posix_madvise): Add prototype.
9009         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9010         old name and posix_madvise weak aliases.
9011         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9012         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9013         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9014         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9015         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9016         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9017         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9018
9019 2000-04-13  Andreas Jaeger  <aj@suse.de>
9020
9021         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9022         versioning.
9023         (elf_machine_got_rel): Only add runtime display if needed.
9024         (elf_machine_got_rel): Handle symbol versioning.
9025
9026 2000-04-13  Andreas Jaeger  <aj@suse.de>
9027
9028         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9029
9030         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9031         default.
9032
9033         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9034         with some applications.
9035         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9036
9037         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9038         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9039         * sysdeps/mips/setjmp.S: Likewise.
9040
9041         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9042
9043 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9044
9045         * posix/globtest.sh: Work around inconsistency with expanding ~/
9046         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9047
9048 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9049
9050         * posix/getconf.c: Add support for many more POSIX options.
9051         * sysdeps/posix/sysconf.c: Likewise.
9052         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9053         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9054         _POSIX_SHELL.
9055         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9056         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9057         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9058         CLOCK_THREAD_CPUTIME_ID.
9059         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9060         CLOCK_PROCESS_CPUTIME_ID.
9061         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9062         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9063         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9064         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9065
9066         * malloc/Makefile (tests): Add tst-calloc.
9067         * malloc/tst-calloc.c: New file.
9068
9069         * sysdeps/arm/libm-test-ulps: New file.
9070
9071         * malloc/malloc.c: Undo all of today's changes.
9072
9073         * locale/programs/locale.c (show_info): Don't try to look into
9074         data for LC_ALL (there is none).
9075
9076         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9077         avoid writing over boundary.
9078         Patch by Greg McGary <gkm@eng.ascend.com>.
9079
9080         * sysdeps/arm/memprof.h: New file.
9081
9082 2000-04-12  Andreas Jaeger  <aj@suse.de>
9083
9084         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9085
9086         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9087         for memmem declaration.
9088
9089 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9090
9091         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9092         to -1.
9093         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9094
9095         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9096         mode is invalid.
9097         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9098         Patch by Bart Veer <bartv@redhat.com>.
9099
9100         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9101         function interface.
9102
9103 2000-04-11  Andreas Jaeger  <aj@suse.de>
9104
9105         * sysdeps/mips/dl-machine.h: Update some comments.
9106         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9107
9108 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9109
9110         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9111         _POSIX_SHARED_MEMORY_OBJECTS.
9112
9113         * rt/Makefile (tests): Add tst-shm.
9114         Add rules to generate tst-shm.
9115         * rt/tst-shm.c: New file.
9116
9117         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9118         for descriptor.
9119
9120         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9121         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9122         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9123         * sysdeps/generic/shm_open.c: New file.
9124         * sysdeps/generic/shm_unlink.c: New file.
9125         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9126         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9127         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9128          __endmntent, __getmntent_r, __setmntent, and __statfs.
9129
9130         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9131         fragmentation by allocating new memory at the end instead of
9132         reallocating.
9133
9134         * posix/globtest.sh: Fix last change.
9135
9136 2000-04-10  Philip Blundell  <philb@gnu.org>
9137
9138         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9139         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9140         IPV6_DROP_MEMBERSHIP.
9141         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9142         Likewise.
9143
9144 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9145
9146         * elf/readlib (process_file): Close streams in case of an error.
9147
9148 2000-04-09  Andreas Jaeger  <aj@suse.de>
9149
9150         * elf/readlib.c (process_file): Check if file is big enough to
9151         contain aout and ELF headers.
9152         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9153
9154 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9155
9156         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9157
9158 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9159
9160         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9161         stream unbuffered.
9162         * rt/Makefile (tests): Add tst-clock.
9163         Add rules to build tst-clock.
9164         * rt/tst-clock.c: New file.
9165         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9166         about initialization of nsec.
9167         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9168         about initialization of freq.  Set retval to zero if successful.
9169         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9170
9171 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9172
9173         * Versions.def (librt): Add GLIBC_2.2.
9174         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9175         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9176         timer_getoverr, timer_gettime, and timer_settime.
9177         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9178         clock_settime, timer_create, timer_delete, timer_getoverrun,
9179         timer_gettime, and timer_settime.
9180         * sysdeps/generic/clock_getcpuclockid.c: New file.
9181         * sysdeps/generic/get_clockfreq.c: New file.
9182         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9183         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9184         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9185         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9186         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9187         * sysdeps/unix/i386/i686/Implies: New file.
9188         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9189         * time/Makefile (routines): Move clock_getres, clock_gettime,
9190         clock_settime, timer_create, timer_delete, timer_getoverr,
9191         timer_gettime, and timer_settime to rt/Makefile.
9192         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9193         clock_settime, timer_create, timer_delete, timer_getoverrun,
9194         timer_gettime, and timer_settime.
9195         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9196
9197         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9198         and not const as attribute name.
9199
9200 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9201
9202         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9203
9204 2000-04-10  Andreas Schwab  <schwab@suse.de>
9205
9206         * posix/globtest.sh: Skip tests that depend on unreadable
9207         directories if run as root.
9208
9209 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9210
9211         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9212         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9213
9214 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9215
9216         * sysdeps/unix/clock_gettime.c: New file.
9217         * sysdeps/unix/clock_settime.c: New file.
9218         * sysdeps/posix/clock_getres.c: New file.
9219
9220         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9221
9222         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9223         lseek call be passing in a buffer which never allow a successful
9224         first getdents syscall if not at leas the initial entry can be
9225         stored in the user buffer.
9226
9227         * localedata/Makefile: Add rules to clean up directories created by
9228         new strfmon tests.
9229
9230 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9231
9232         * localedata/tst-fmon.data: Added new tests for strfmon()
9233         using test locales with all combinations of cs_precedes,
9234         sign_posn and sep_by_space.
9235         * localedata/tst-fmon.sh: Updated to support the new tests.
9236         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9237         the localedef source for the new strfmon() test locale.
9238         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9239         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9240         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9241         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9242         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9243         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9244         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9245         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9246         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9247         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9248         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9249         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9250         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9251         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9252
9253         * stdlib/strfmon.c: Correct problems with missing or extra
9254         spaces for unusual combinations of sign_posn and sep_by_space.
9255         Improved left-precision alignment code.
9256
9257 2000-04-07  Andreas Jaeger  <aj@suse.de>
9258
9259         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9260
9261 2000-04-10  Andreas Jaeger  <aj@suse.de>
9262
9263         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9264
9265 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9266
9267         Implement handling of restartable conversion functions according to
9268         ISO C.
9269         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9270         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9271         * iconv/gconv.c: Pass additional parameter to conversion function.
9272         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9273         (internal_ucs4le_loop_single): New function.
9274         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9275         (__gconv_transform_internal_ascii): Likewise.
9276         (__gconv_transform_internal_utf8): Likewise.
9277         (__gconv_transform_utf8_internal): Likewise.
9278         (__gconv_transform_ucs2_internal): Likewise.
9279         (__gconv_transform_internal_ucs2): Likewise.
9280         (__gconv_transform_ucs2reverse_internal): Likewise.
9281         (__gconv_transform_internal_ucs2reverse): Likewise.
9282         (internal_ucs4le_loop_unaligned): Before return
9283         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9284         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9285         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9286         * iconv/loop.c: Fit in definition of function to convert one character
9287         for processing of left-over bytes from the state object.
9288         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9289         inend to match names in loop functions.
9290         (RESET_INPUT_BUFFER): Change apprpriately.
9291         (gconv): If needed, call function to process bytes from the state
9292         object.  Similar at the end: store left over bytes if input is
9293         incomplete.
9294         Take extra argument and add new argument to all calls of the
9295         conversion function.
9296         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9297         information in the state object to not conflict with length count.
9298         * iconvdata/iso-2022-jp.c: Likewise.
9299         * iconvdata/iso-2022-kr.c: Likewise.
9300         * iconvdata/unicode.c: Adjust for change change in parameters of
9301         skeleton function.
9302         * iconvdata/utf-16.c: Likewise.
9303         * libio/iofwide.c: Add new parameter to all calls of conversion
9304         function.
9305         * wcsmbs/btowc.c: Likewise.
9306         * wcsmbs/mbrtowc.c: Likewise.
9307         * wcsmbs/mbsnrtowcs.c: Likewise.
9308         * wcsmbs/mbsrtowcs.c: Likewise.
9309         * wcsmbs/wcrtomb.c: Likewise.
9310         * wcsmbs/wcsnrtombs.c: Likewise.
9311         * wcsmbs/wcsrtombs.c: Likewise.
9312         * wcsmbs/wctob.c: Likewise.
9313
9314         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9315         MAX_NEEDED_INPUT.
9316
9317 2000-04-07  Andreas Jaeger  <aj@suse.de>
9318
9319         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9320         newer kernels.
9321
9322 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9323
9324         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9325         element a union to allow byte access.
9326         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9327         mbstate_t.
9328         * iconvdata/iso-2022-jp.c: Likewise.
9329         * iconvdata/iso-2022-kr.c: Likewise.
9330         * wcsmbs/mbsinit.c: Likewise.
9331         * stdlib/mblen.c: Likewise.
9332         * stdio-common/printf-parse.h: Likewise.
9333
9334 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9335
9336         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9337         kernel does not allow relative seeks on descriptors associated
9338         with directories.  Go back to get the position in the directory
9339         every time we enter the function.  Return -1 and set errno if one
9340         entry could be read from the kernel but does not fit into the
9341         buffer passed in by the user.
9342
9343         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9344         Support ..(2).. ellipsis.
9345         (parse_charmap): Recognize ..(2).. etc and pass step down.
9346         Correctly generate names for UCS4 characters.
9347
9348         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9349         (ctype_finish): We know the wide character value for <SP>,
9350         don't search.
9351         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9352         (charclass_ucs4_ellipsis): Likewise.
9353         (read_translit_ignore_entry): Store ellipsis step.
9354         (ctype_read): Recognize ..(2).. etc and pass step down.
9355
9356         * locale/programs/linereader.c (lr_token): When seeing comment
9357         character ignore only rest of line in sources but stop at escaped
9358         newline.
9359         Recognize ..(2).. and ....(2).....
9360
9361         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9362         and tok_ellipsis4_2.
9363
9364 2000-04-06  Andreas Jaeger  <aj@suse.de>
9365
9366         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9367         removed, remove it here also.
9368         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9369         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9370         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9371         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9372
9373 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9374
9375         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9376         include bits/sigcontext.h.
9377         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9378
9379 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9380
9381         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9382         collation symbol definition.  Value in quivalence definition must
9383         be defined, don't check that it is not.
9384
9385         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9386         values as character names.
9387
9388         * locale/programs/ld-ctype.c (get_character): Handle missing
9389         repertoire map correctly.
9390
9391 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9392
9393         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9394         because it is used in generic code.
9395         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9396         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9397         * intl/gettext.c: Include <locale.h>.
9398         * intl/ngettext.c: Likewise.
9399
9400 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9401
9402         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9403         socklen_t type for size.
9404         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9405         init function interface.
9406         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9407         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9408         sys/ucontext.h.
9409         (__jmp_buf): Declare the whole type structure here, don't use
9410         ucontext.
9411
9412 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9413
9414         * iconv/skeleton.c (put16u): Fix typo.
9415         Reported by Bruno Haible <haible@ilog.fr>.
9416
9417         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9418         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9419         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9420         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9421         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9422         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9423
9424         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9425         * Makefile (distribute): Add abi-versions.awk and
9426         firstversions.awk.
9427         Patches by Torsten Duwe <duwe@caldera.de>.
9428
9429 2000-04-05  Andreas Schwab  <schwab@suse.de>
9430
9431         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9432
9433 2000-04-05  Andreas Schwab  <schwab@suse.de>
9434
9435         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9436         entry point, used on Hurd.
9437
9438 2000-04-04  Andreas Jaeger  <aj@suse.de>
9439
9440         * intl/Makefile: Only run the gettext test with shared libraries.
9441
9442 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9443
9444         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9445         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9446
9447 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9448
9449         * Makeconfig: Undo last change.
9450         * configure.in: If --disable-shared was given, don't set VERSIONING,
9451         don't define DO_VERSIONING, and don't give scare warning for no
9452         versioning.
9453         * configure: Regenerated.
9454
9455 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9456
9457         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9458
9459 2000-04-04  Andreas Jaeger  <aj@suse.de>
9460
9461         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9462
9463 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9464
9465         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9466         STV_HIDDEN and STV_INTERNAL during lookup.
9467         (profile_fixup): Likewise.
9468         * elf/dl-reloc.c (RESOLVE): Likewise.
9469
9470         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9471         unaligned so that it compiles for system which need unaligned
9472         access handling.
9473
9474 2000-04-04  Andreas Schwab  <schwab@suse.de>
9475
9476         * elf/cache.c (print_entry): Only look at the type field when
9477         printing the type.
9478
9479 2000-04-04  Andreas Schwab  <schwab@suse.de>
9480
9481         * iconvdata/big5.c (BODY): Fix typo.
9482
9483 2000-04-04  Andreas Schwab  <schwab@suse.de>
9484
9485         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9486         function interface.  Remove unused _dl_start_user entry point.
9487
9488 2000-04-03  Andreas Jaeger  <aj@suse.de>
9489
9490         * include/arpa/inet.h (__inet_aton): Add protoype.
9491
9492 2000-04-01  Andreas Jaeger  <aj@suse.de>
9493
9494         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9495
9496         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9497         * sysdeps/mach/mips/thread_state.h: Likewise.
9498
9499         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9500         * sysdeps/generic/fegetenv.c: Likewise.
9501         * sysdeps/generic/fesetenv.c: Likewise.
9502         * sysdeps/generic/feupdateenv.c: Likewise.
9503         * sysdeps/generic/fraiseexcpt.c: Likewise.
9504         * sysdeps/generic/fsetexcptflg.c: Likewise.
9505         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9506         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9507         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9508         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9509
9510 2000-04-02  H.J. Lu  <hjl@gnu.org>
9511
9512         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9513
9514 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9515
9516         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9517         (add_name_to_object): Add cast in malloc call.
9518         (fillin_rpath): Optimize loop to initialize ->status a bit.
9519
9520         * sysdeps/i386/dl-machine.h: Undo last change.
9521         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9522         Restore %edx register after call here.
9523
9524         * sysdeps/arm/atomicity.h: New file.
9525         Contributed by Jesper Skov <jskov@redhat.com>.
9526
9527 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9528
9529         * Makeconfig (preprocess-versions): Undo last change.
9530         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9531
9532         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9533         here, before we might move the stack.
9534         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9535         (init1): And not here.
9536
9537         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9538         change, to restore argc value in call-clobbered register after
9539         RTLD_START_SPECIAL_INIT, which will contain a call.
9540
9541         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9542         allocating and initializing L->l_initfini.
9543
9544         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9545
9546 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9547
9548         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9549         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9550         (open_path): Change type of fourth parameter.  Make pointer to array
9551         of pointers.  Create variable dirs with original type.
9552         Track whether any directory for the object exists and if not,
9553         change *DIRSP to (void*) -1 to signal there is no such search path.
9554         (_dl_map_object): Change all calls of open_path.
9555         Rewrite decompose_rpath calls.
9556
9557 2000-03-31  Andreas Schwab  <schwab@suse.de>
9558
9559         * string/strfry.c: Declare STATE as array of char instead of int
9560         and do not initialize it (done by initstate_r).  Pass correct
9561         size.
9562
9563 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9564
9565         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9566
9567         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9568         instruction out of the code.
9569
9570 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9571
9572         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9573         element at this position.
9574
9575         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9576         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9577         l_reldeps elements.
9578         * elf/dl-lookup.c (add_dependency): New function.
9579         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9580         dynamically loaded object.
9581         (_dl_lookup_symbol_skip): Likewise.
9582         (_dl_lookup_versioned_symbol): Likewise.
9583         (_dl_lookup_versioned_symbol_skip): Likewise.
9584         * elf/dl-open.c: Don't define _dl_load_lock here...
9585         * elf/rtld.c: ...but here...
9586         * elf/dl-support.c: ...and here.
9587         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9588         through relocation.
9589         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9590         relocations.
9591         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9592         anymore.
9593         * dlfcn/glrefmain.c: Add one more debug message.
9594
9595         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9596         command line.
9597         * Makerules (sysd-versions): Use ( ) instead of { }.
9598
9599         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9600         optimize for the non-debugging case.
9601         * elf/dl-lookup.c: Likewise.
9602         * sysdeps/generic/libc-start.c: Likewise.
9603
9604 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9605
9606         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9607         (init1): Don't initialize __environ here, since init already does it.
9608         (first_init): New function, broken out of _init.
9609         (_hurd_stack_setup): Use it.
9610         [SHARED] (_dl_init_first): New function, renamed from old _init.
9611         (init1) [SHARED]: Don't call posixland_init here.
9612         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9613         [SHARED] (_init): Define as alias for posixland_init.
9614         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9615         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9616         RTLD_START_SPECIAL_INIT before calling initializers.
9617         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9618         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9619         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9620         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9621
9622         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9623         since we define the function with the name `tmpfile'.
9624
9625         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9626         * hurd/Versions: Likewise.
9627
9628 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9629
9630         * elf/dl-runtime.c (fixup): Fix typo in comment.
9631
9632         * resolv/netdb.h (getnameinfo): All length parameters are of type
9633         socklen_t.
9634         * inet/getnameinfo.c: Likewise.
9635
9636 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9637
9638         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9639         (gethostname): Change type of second parameter to socklen_t.
9640         * include/unistd.h (__gethostname): Change type of second
9641         parameter to socklen_t.
9642         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9643         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9644         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9645         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9646         Likewise.
9647         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9648         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9649         Allow definition elsewhere.
9650         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9651         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9652         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9653         * sysdeps/generic/bits/types.h: Define __socklen_t.
9654         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9655         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9656         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9657         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9658         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9659         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9660         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9661
9662         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9663         (inet_lnaof): Likewise.
9664         (inet_netof): Likewise.
9665         (inet_network): Likewise.
9666         (inet_aton): Likewise.
9667         (inet_makeaddr): Change parameter types to in_addr_t.
9668         (inet_neta): Likewise.
9669         (inet_ntop): Change type of last parameter to socklen_t.
9670         (inet_aton): Only make available if __USE_MISC.
9671         (inet_neta): Likewise.
9672         (inet_net_ntop): Likewise.
9673         (inet_net_pton): Likewise.
9674         (inet_nsap_ntoa): Likewise.
9675
9676         * inet/in.h: Define in_port_t type.
9677         Define in_addr_t type.
9678         (struct in_addr): Use in_addr_t in definition.
9679         (IN_CLASSA): Use cast to in_addr_t.
9680         (IN_CLASSB): Likewise.
9681         (IN_CLASSC): Likewise.
9682         (IN_CLASSD): Likewise.
9683         (IN_EXPERIMENTAL): Likewise.
9684         (IN_BADCLASS): Likewise.
9685         (INADDR_ANY): Likewise.
9686         (INADDR_BROADCAST): Likewise.
9687         (INADDR_NONE): Likewise.
9688         (INADDR_LOOPBACK): Likewise.
9689         (INADDR_UNSPEC_GROUP): Likewise.
9690         (INADDR_ALLHOSTS_GROUP): Likewise.
9691         (INADDR_ALLRTRS_GROUP): Likewise.
9692         (INADDR_MAX_LOCAL_GROUP): Likewise.
9693         (struct sockaddr_in): Use in_port_t for sin_port element.
9694         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9695         Use uint8_t instead of u_int8_t.
9696
9697         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9698         Call __inet_aton instead of inet_aton.
9699         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9700
9701         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9702         (innetgr): Likewise.
9703         (struct addrinfo): Use socklen_t for ai_addrlen element.
9704
9705         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9706         IPV6_RECVERR): New defines.
9707
9708         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9709         * inet/getnetbyad.c: Likewise.
9710         * inet/getnetbyad_r.c: Likewise.
9711         * nis/nss_nis/nis-network.c: Likewise.
9712         * nis/nssplus_nis/nisplus-network.c: Likewise.
9713         * nss/nss_files/files-network.c: Likewise.
9714         * resolv/netdb.h: Define uint32_t if not already happened.
9715         Include bits/netdb.h.  Remove definition of struct netent.
9716         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9717         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9718         * sysdeps/generic/bits/netdb.h: New file.
9719         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9720
9721         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9722         (tests): Add glrefmain.
9723         Add rules to build modules and run tests.  Ignore result of glrefmain
9724         for now since it fails.
9725         * dlfcn/glrefmain.c: New file.
9726         * dlfcn/glreflib1.c: New file.
9727         * dlfcn/glreflib2.c: New file.
9728
9729         * test-skeleton.c: Include <string.h> for strsignal prototype.
9730
9731         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9732         to be missing.
9733
9734         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9735         former init-first.h.  Initialize __libc_multiple_libcs.
9736
9737 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9738
9739         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9740         #if expression for use of unaligned function to the one used in
9741         the definition of these functions.
9742         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9743         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9744         (internal_ucs4le_loop_unaligned): New function.
9745
9746         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9747         (tests): Add order.
9748         (module-names): Add dep1, dep2, dep3, and dep4.
9749         Add dependencies for dep* modules and order.
9750         Define rule for order.out which checks the result.
9751         * elf/dep1.c: New file.
9752         * elf/dep2.c: New file.
9753         * elf/dep3.c: New file.
9754         * elf/dep4.c: New file.
9755         * elf/order.c: New file.
9756
9757         * elf/dl-init.c: Fix typo in comment.
9758
9759 2000-03-31  Andreas Jaeger  <aj@suse.de>
9760
9761         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9762         init function interface.
9763         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9764
9765 2000-03-31  Andreas Jaeger  <aj@suse.de>
9766
9767         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9768         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9769         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9770         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9771         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9772
9773         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9774         anymore, update comment.
9775
9776         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9777
9778         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9779         SHLIB_COMPAT - the struct is always needed.
9780
9781 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9782
9783         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9784         * elf/dl-support.c: Define _dl_starting_up.
9785
9786 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9787
9788         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9789         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9790
9791         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9792
9793         * elf/Makefile (dl-routines): Remove preinit.
9794         * elf/Versions: Remove _dl_preinit.
9795         * elf/dl-preinit.c: Removed.  Move content into...
9796         * elf/dl-init.c: ...here.
9797         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9798
9799         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9800         elements.
9801
9802 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9803
9804         * stdlib/strfmon.c: Corrected problems with the code that
9805         sets default values for [np]_sep_by_space and
9806         [np]_sign_posn; also the new positive/negative alignment
9807         code from the previous patch was not quite right for
9808         [np]_sign_posn = 0.
9809
9810         * localedata/tst-fmon.data: Changes corresponding to the
9811         two sets of fixes made to stdlib/strfmon.c.
9812
9813 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9814
9815         * malloc/malloc.c: Declare bit flags UL so that they will not
9816         default to int size when being inverted.
9817
9818 2000-03-29  Andreas Jaeger  <aj@suse.de>
9819
9820         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9821         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9822
9823 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9824             Ralf Baechle <ralf@uni-koblenz.de>
9825
9826         * Makeconfig: Introduce new variable SHARED to mark code used in
9827         the shared library.
9828         * elf/dl-close.c: Use it instead of PIC.
9829         * elf/dl-load.c: Likewise.
9830         * elf/dl-open.c: Likewise.
9831         * hurd/geteuids.c: Likewise.
9832         * include/libc-symbols.h: Likewise.
9833         * include/shlib-compat.h: Likewise.
9834         * libio/freopen.c: Likewise.
9835         * linuxthreads/cancel.c: Likewise.
9836         * linuxthreads/pthread.c: Likewise.
9837         * linuxthreads/wrapsyscall.c: Likewise.
9838         * nss/nsswitch.c: Likewise.
9839         * stdio-common/vfprintf.c: Likewise.
9840         * sysdeps/arm/init-first.c: Likewise.
9841         * sysdeps/i386/init-first.c: Likewise
9842         * sysdeps/generic/init-first.c: Likewise.
9843         * sysdeps/generic/libc-start.c: Likewise.
9844         * sysdeps/mips/init-first.c: Likewise.
9845         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9846         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9847         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9848         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9849         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9850
9851         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9852
9853 2000-03-29  Andreas Jaeger  <aj@suse.de>
9854
9855         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9856         Use D_PTR to access relocated entries in l_info.
9857         (elf_machine_rela): Likewise.
9858
9859         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9860         Likewise.
9861         (elf_machine_rela): Likewise.
9862
9863         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9864         Likewise.
9865         (__elf_machine_fixup_plt): Likewise.
9866         (__process_machine_rela): Likewise.
9867
9868         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9869         (elf_machine_rela): Likewise.
9870
9871         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9872         (elf_machine_rel): Likewise.
9873
9874         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9875         (elf_machine_fixup_plt): Likewise.
9876         (elf_machine_rela): Likewise.
9877
9878 2000-03-29  Andreas Jaeger  <aj@suse.de>
9879
9880         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9881         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9882         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9883         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9884         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9885         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9886         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9887         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9888         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9889         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9890         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9891         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9892         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9893         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9894         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9895
9896         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9897         macros, remove K&R prototypes.
9898
9899 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9900
9901         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9902         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9903         (PR libc/1677).
9904
9905 2000-03-30  Andreas Jaeger  <aj@suse.de>
9906
9907         * misc/sys/cdefs.h: Remove K&R support.
9908
9909 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9910
9911         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9912         more cases.
9913         * iconv/loop.c: Likewise.
9914
9915 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9916
9917         * iconv/loop.c (put16): Remove __const. Fix access index.
9918         (put32): Remove __const. Use uint32_t instead of uint16_t.
9919         * iconv/skeleton.c: Likewise.
9920
9921 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9922
9923         * mach/Versions (libc: GLIBC_2.0)
9924         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9925         __vm_allocate on this.
9926         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9927         mutex- and spinlock-related symbols on this.
9928         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9929         New version set.  Lock-related symbols go here instead in this case.
9930         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9931         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9932         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9933         * hurd/Versions
9934         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9935         Put them here instead.
9936         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9937         New version set.  Those cthreads symbols go here instead in this case.
9938         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9939
9940 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9941
9942         * elf/dl-init.c (_dl_init): We don't need to call constructors
9943         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9944
9945         Implement dynamic determination of constructor/destructor order in
9946         the dynamic linker.
9947         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9948         (GLIBC_2.2): Add _dl_init.
9949         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9950         r_duplist is not anymore allocated separately.  l_initfini is and
9951         therefore free it if necessary.
9952         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9953         malloc block.  Otherwise allocate l_initfini list only.
9954         Put dependencies for the object in l_initfini list.
9955         Sort dependencies for the object to be loaded topologically.
9956         * elf/dl-fini.c: Before running the destructors sort the topologically.
9957         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9958         call constructors instead of iterating over the pointers.  Get list of
9959         objects for which to run constructors from l_initfini element. Accept
9960         argc, argv, and env as parameters and pass them to the constructors.
9961         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9962         with size of dynamic section.
9963         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9964         _dl_init_next and calling constructors ourself.
9965         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9966         Take argc, argv, and env as parameters and pass them to the
9967         constructors.  Rewrite to call all constructors and not iterate over
9968         the pointers.
9969         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9970         precompute l_initcount and l_preinitcount.
9971         * elf/link.h (struct link_map): Add l_ldnum member.
9972         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9973         l_initcount, and l_preinitcount.  Add l_initfini.
9974         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9975         one for _dl_init.
9976         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9977         function interface.
9978         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9979         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9980         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9981         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9982         conventions now match.
9983
9984         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9985         effect for shared objects.  Don't emit message and call only for
9986         static library.
9987
9988 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9989
9990         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9991         CSA_Z243.4-1985-1..UCS2.
9992         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9993         ISO-8859-10..UCS2.
9994
9995 2000-03-29  Andreas Jaeger  <aj@suse.de>
9996
9997         * include/unistd.h: Remove duplicate entry for __rmdir.
9998         Remove declaration of __mkdir since __mkdir is declared in
9999         sys/stat.h.
10000
10001         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10002         by Michael Deutschmann <michael@talamasca.ocis.net>.
10003
10004         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10005         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10006         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10007         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10008         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10009
10010 2000-03-28  Andreas Jaeger  <aj@suse.de>
10011
10012         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10013         declaration, the prototype is defined via bits/mathcalls.h.
10014         (__sincosf): Likewise.
10015         (__sincosl): Likewise.
10016         (ldexp): Likewise.
10017         (ldexpf): Likewise.
10018         (ldexpl): Likewise.
10019         (__finite): Likewise.
10020         (__inline_mathcodeNP): New macro without prototype
10021         declarations.
10022         (__inline_mathcodeNP2): Likewise.
10023         (__inline_mathcodeNP3): Likewise.
10024         (__inline_mathcodeNP_): Likewise.
10025         (__inline_mathcodeNP2_): Likewise.
10026         (__inline_mathcodeNP3_): Likewise.
10027         (__inline_mathopNP): Likewise.
10028         (__inline_mathop_declNP): Likewise.
10029         (__inline_mathop_declNP_): Likewise.
10030         (__inline_mathcode_): Use __inline_mathcodeNP_.
10031         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10032         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10033         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10034         (__expm1l): Don't define prototype, the prototype is defined via
10035         bits/mathcalls.h.
10036         (exp): Likewise.
10037         (__expl): Likewise.
10038         (tan): Likewise.
10039         (atan2): Likewise.
10040         (__atan2l): Likewise.
10041         (fmod): Likewise.
10042         (pow): Likewise.
10043         (fabsf): Likewise.
10044         (fabsl): Likewise.
10045         (__fabsl): Likewise.
10046         (asin): Likewise.
10047         (acos): Likewise.
10048         (sinh): Likewise.
10049         (cosh): Likewise.
10050         (tanh): Likewise.
10051         (floor): Likewise.
10052         (ceil): Likewise.
10053         (expm1): Likewise.
10054         (log1p): Likewise.
10055         (asinh): Likewise.
10056         (acosh): Likewise.
10057         (atanh): Likewise.
10058         (hypot): Likewise.
10059         (logb): Likewise.
10060         (fma): Likewise.
10061         (drem): Likewise.
10062         (sqrt): Likewise.
10063         (__sqrtl): Likewise.
10064         (sin): Likewise.
10065         (cos): Likewise.
10066         (atan): Likewise.
10067         (log): Likewise.
10068         (log10): Likewise.
10069         (asinh): Likewise.
10070         (log2): Likewise.
10071         (rint): Likewise.
10072
10073 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10074
10075         * Makerules: If make variable md5 is defined to yes after
10076         generating dependencies generate MD5 sum for the object.
10077
10078         * iconv/gconv_builtin.h: Fix length in transformation definition
10079         for UNICODEBIG.
10080
10081         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10082
10083         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10084         allow as well reading from/writing to unaligned addresses on machines
10085         which don't support this in hardware.  Use FCTNAME macro to define
10086         function name.  Include the file a second time for platforms which
10087         need special unaligned handling.
10088         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10089         to access potentially unaligned addresses.  These macros are intended
10090         to be used only outside the loops.
10091         (unaligned): New definition.  In case the machine can handle unaligned
10092         access define as zero.  Otherwise as a variable which is initialized
10093         as nonzero in case the buffer passed in at runtime is unaligned with
10094         respect to the character set encoding involved.
10095         Call aligned or unaligned looop functions according to unaligned
10096         variable.
10097         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10098         of direct casting pointer to potentially handle unaligned memory
10099         accesses.
10100         * iconvdata/8bit-generic.c: Likewise.
10101         * iconvdata/ansi_x3.110.c: Likewise.
10102         * iconvdata/big5.c: Likewise.
10103         * iconvdata/euc-cn.c: Likewise.
10104         * iconvdata/euc-jp.c: Likewise.
10105         * iconvdata/euc-kr.c: Likewise.
10106         * iconvdata/euc-tw.c: Likewise.
10107         * iconvdata/gbk.c: Likewise.
10108         * iconvdata/iso-2022-cn.c: Likewise.
10109         * iconvdata/iso-2022-jp.c: Likewise.
10110         * iconvdata/iso-2022-kr.c: Likewise.
10111         * iconvdata/iso646.c: Likewise.
10112         * iconvdata/iso_6937-2.c: Likewise.
10113         * iconvdata/iso_6937.c: Likewise.
10114         * iconvdata/johab.c: Likewise.
10115         * iconvdata/sjis.c: Likewise.
10116         * iconvdata/t.61.c: Likewise.
10117         * iconvdata/uhc.c: Likewise.
10118         * iconvdata/unicode.c: Likewise.
10119         * iconvdata/utf-16.c: Likewise.
10120
10121         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10122         prototypes.
10123
10124         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10125         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10126         public.
10127         * malloc/mcheck.h (mcheck_check_all): Declare.
10128
10129         * stdio-common/Makefile (tests): Add tst-obprintf.
10130
10131 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10132
10133         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10134         Declare pthread_sigmask.
10135
10136         * csu/version.c: Add 2000 to copyright years.
10137         Remove Emacs local variables section.
10138
10139 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10140
10141         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10142         __gconv_transform_internal_ucs2little): Remove declarations.
10143         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10144         __gconv_transform_internal_ucs2): Never need to bswap_16.
10145         (__gconv_transform_ucs2reverse_internal,
10146         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10147
10148 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10149
10150         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10151         obsoleting version not being defined at all, in which case the
10152         result is always true.
10153
10154         * Makeconfig (preprocess-versions): New canned sequence for running
10155         cpp on shlib-versions and the like.
10156         (soversions.i): Use it.
10157         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10158         Versions.def and Versions files.
10159
10160 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10161
10162         * stdio-common/tst-obprintf.c (main): Add another check to see
10163         obstack_printf handling all possible beginnings of the block
10164         inside an obstack chunk.
10165
10166         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10167         install mcheck handler.
10168
10169         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10170         handling problem.
10171
10172 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10173
10174         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10175
10176         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10177         on [HAVE_ELF && DO_VERSIONING].
10178
10179 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10180
10181         * stdio-common/tst-obprintf.c: New file.
10182
10183 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10184
10185         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10186         _IO_OVERFLOW directly instead through __overflow.
10187
10188         * locale/programs/localedef.c (construct_output_path): If path
10189         contains a / compute the end of the directory name correctly.
10190
10191         * include/features.h: Undef and document __USE_XOPEN2K.
10192
10193         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10194         whenever a function is called.  Initiated by calling mcheck_pedantic
10195         instead of mcheck.
10196         * malloc/mcheck.h: Declare mcheck_pedantic.
10197         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10198         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10199         for now.
10200
10201 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10202
10203         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10204         * dlfcn/dlopenold.c: Likewise.
10205         * nss/getXXbyYY_r.c: Likewise.
10206         * nss/getXXent_r.c: Likewise.
10207         * hurd/hurdinit.c: Likewise.
10208         * hurd/compat-20.c: Likewise.
10209         * libio/oldiofopen.c: Likewise.
10210         * libio/oldiofclose.c: Likewise.
10211         * libio/oldiofdopen.c: Likewise.
10212         * libio/oldfileops.c: Likewise.
10213         * libio/oldstdfiles.c: Likewise.
10214         * libio/oldiofsetpos.c: Likewise.
10215         * libio/oldiofgetpos.c: Likewise.
10216         * libio/oldiofgetpos64.c: Likewise.
10217         * libio/oldiofsetpos64.c: Likewise.
10218         * libio/oldiopopen.c: Likewise.
10219         * libio/oldpclose.c: Likewise.
10220         * libio/oldtmpfile.c: Likewise.
10221         * libio/freopen.c (freopen): Likewise.
10222         * libio/iofclose.c (_IO_new_fclose): Likewise.
10223
10224         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10225         (reboot): Declare it.
10226
10227         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10228
10229         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10230
10231         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10232
10233         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10234         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10235         We need this for the sbrk decl, which can be included without Unix98.
10236
10237 2000-03-20  Richard Henderson  <rth@cygnus.com>
10238
10239         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10240         argument to yperr2nss is an int, not size_t.
10241         * posix/regex.c (print_partial_compiled_pattern): Cast all
10242         ptrdiff_t to long for printing.
10243         (print_compiled_pattern): Use Z for printing size_t.
10244         * posix/testfnm.c (tests): Avoid trigraphs.
10245         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10246         Use a C comment, not an assembly comment.
10247
10248         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10249         of __ASSUME_32BITUIDS.
10250
10251 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10252
10253         * libio/iofopncook.c: Remove K&R prototypes.
10254
10255 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10256
10257         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10258         an initial value of 1024 instead of RLIM_INFINITY.
10259
10260         * Versions.def (libmachuser, libhurduser): Remove these sections,
10261         since these libraries do not presently use symbol versions.
10262
10263         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10264         is RLIM_INFINITY, return -1 instead.
10265
10266 2000-03-24  Andreas Jaeger  <aj@suse.de>
10267
10268         * Makefile (postclean): Added soversions.i.
10269
10270 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10271
10272         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10273         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10274         and _FPU_IEEE.  Change _FPU_RESERVED.
10275
10276 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10277
10278         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10279
10280 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10281
10282         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10283         (gaih_inet): Remove unused duplicate variable.
10284
10285         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10286         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10287         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10288         only flavors supported by this function anyway.
10289
10290 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10291
10292         * stdlib/strfmon.c: Corrected problems with missing signs and
10293         missing or extra spaces; allow for sign strings longer than
10294         one character; add padding to ensure positive and negative
10295         formats are aligned when a left precision is used.
10296
10297 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10298
10299         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10300         Patch by John Mizel <John.Mizel@msdw.com>.
10301
10302 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10303
10304         * manual/install.texi: Remove references to crypt add-on.
10305
10306 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10307
10308         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10309         section while taking the _hurd_rlimit_lock.
10310         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10311
10312 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10313
10314         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10315         using $(LN_S).
10316
10317         * sysdeps/mach/hurd/if_index.c: New file.
10318
10319         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10320         * sysdeps/gnu/net/if.h: here.
10321         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10322         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10323         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10324         functions and `struct if_nameindex' type.
10325         * socket/Makefile (headers): Add net/if.h here.
10326         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10327         * sysdeps/mach/hurd/Dist: Remove it here.
10328         * sysdeps/unix/sysv/linux/Dist: And here.
10329         * sysdeps/generic/if_index.c: Include <net/if.h>.
10330
10331 2000-03-24  Andreas Jaeger  <aj@suse.de>
10332
10333         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10334         access relocated entries in l_info.
10335         (elf_machine_got_rel): Likewise.
10336         (elf_machine_runtime_setup): Likewise.
10337         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10338         (elf_machine_runtime_setup): Likewise.
10339         (__dl_runtime_resolve): Likewise.
10340
10341 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10342
10343         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10344         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10345         according to RFC 2553.
10346         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10347         * inet/getnameinfo.c: Likewise.
10348         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10349
10350 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10351
10352         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10353         Remove no-op pointer increment.
10354
10355 2000-03-23  Andreas Jaeger  <aj@suse.de>
10356
10357         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10358         follow change for libio.h from 2000-03-10.
10359
10360 2000-03-23  Andreas Jaeger  <aj@suse.de>
10361
10362         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10363         change.
10364         * elf/dl-debug.c: Likewise.
10365         * elf/dl-deps.c: Likewise.
10366         * elf/dl-error.c: Likewise.
10367         * elf/dl-fini.c: Likewise.
10368         * elf/dl-init.c: Likewise.
10369         * elf/dl-load.c: Likewise.
10370         * elf/dl-lookup.c: Likewise.
10371         * elf/dl-minimal.c: Likewise.
10372         * elf/dl-object.c: Likewise.
10373         * elf/dl-open.c: Likewise.
10374         * elf/dl-preinit.c: Likewise.
10375         * elf/dl-profile.c: Likewise.
10376         * elf/dl-profstub.c: Likewise.
10377         * elf/dl-reloc.c: Likewise.
10378         * elf/dl-runtime.c: Likewise.
10379         * elf/dl-support.c: Likewise.
10380         * elf/dl-symbol.c: Likewise.
10381         * elf/dl-version.c: Likewise.
10382         * elf/rtld.c: Likewise.
10383         * elf/sprof.c: Likewise.
10384         * sysdeps/generic/dl-cache.c: Likewise.
10385         * sysdeps/generic/dl-origin.c: Likewise.
10386         * sysdeps/generic/dl-sysdep.c: Likewise.
10387         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10388         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10389         * sysdeps/generic/libc-start.c: Likewise.
10390         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10391         * sysdeps/powerpc/dl-machine.c: Likewise.
10392         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10393         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10394         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10395         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10396
10397         * elf/ldsodefs.h: Move file to ...
10398         * sysdeps/generic/ldsodefs.h: ... here.
10399
10400         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10401
10402         * sysdeps/mips/elf/ldsodefs.h: New file.
10403
10404         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10405         entries in l_info.
10406         (_dl_check_map_versions): Likewise.
10407         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10408         * elf/dl-load.c (_dl_init_paths): Likewise.
10409         (_dl_map_object): Likewise.
10410         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10411         (elf_get_dynamic_info): Likewise.
10412         * elf/do-lookup.h (FCT): Likewise.
10413         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10414         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10415         * elf/dl-addr.c (_dl_addr): Likewise.
10416         * elf/dl-runtime.c (profile_fixup): Likewise.
10417         (fixup): Likewise.
10418         * elf/dl-init.c (_dl_init_next): Likewise.
10419         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10420         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10421         (DISTINGUISH_LIB_VERSIONS): Likewise.
10422         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10423         (elf_machine_rel): Likewise.
10424
10425         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10426         for writable dynamic section.
10427
10428 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10429
10430         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10431         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10432
10433 2000-03-22  Andreas Jaeger  <aj@suse.de>
10434
10435         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10436         from latest Linux kernel.
10437
10438 2000-03-21  Andreas Jaeger  <aj@suse.de>
10439
10440         * Versions.def: Add version 2.1.4.
10441
10442 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10443
10444         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10445         * libio/oldiofopen.c: Likewise.
10446         * libio/oldiofclose.c: Likewise.
10447         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10448
10449 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10450
10451         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10452         indicating the first version set to obsolete the conditionalized code.
10453         (compat_symbol): New macro.
10454         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10455         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10456         integer values to the ABI_* macros for supported versions.
10457         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10458         compat_symbol macro.
10459
10460 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10461
10462         * nscd/connections.c (nscd_run): Pretty print.
10463         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10464
10465         * manual/charset.texi: Fix typos.  Rephrase.
10466         * manual/process.texi: Likewise.
10467         * manual/signal.texi: Likewise.
10468         Patches by Mike Coleman <mkc@kc.net>.
10469
10470         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10471         versions.
10472         * libio/iofdopen.c: Likewise.
10473         * libio/iofgetpos.c: Likewise.
10474         * libio/iofgetpos64.c: Likewise.
10475         * libio/iofopen.c: Likewise.
10476         * libio/iofsetpos.c: Likewise.
10477         * libio/iofsetpos64.c: Likewise.
10478         * libio/iopopen.c: Likewise.
10479         * libio/oldiofopen.c: Likewise.
10480         * libio/pclose.c: Likewise.
10481         * sysdeps/gnu/siglist.c: Likewise.
10482         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10483
10484         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10485         chance to expand VERSION_##lib##_##version.
10486
10487         * libio/fileops.c: Use new macros from shlib-compat.h to define
10488         versions.
10489         * libio/iofclose.c: Likewise.
10490         * libio/oldiofclose.c: Likewise.
10491         Patch by Roland McGrath <roland@frob.com>.
10492
10493 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10494
10495         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10496         Lay out struct sigcontext according to what really gets passed on
10497         the stack.
10498         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10499         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10500         (prgregset_t, prfpregset_t): Define to elf_* types.
10501         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10502         Define to correct value.
10503         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10504         sigcontext.
10505         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10506
10507 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10508
10509         * scripts/firstversions.awk: Allow multiple version sets in the
10510         "earliest version" specification, meaning that version sets in the
10511         gaps between listed versions should be folded into the earliest later
10512         version that is explicitly listed.
10513         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10514         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10515
10516 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10517
10518         * iconv/gconv_builtin.c: Include <endian.h>.
10519         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10520         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10521         according to current platform.
10522         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10523         __gconv_transform_internal_ucs2reverse, and
10524         __gconv_transform_internal_ucs4le.
10525         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10526         __gconv_transform_ucs2reverse_internal and
10527         __gconv_transform_internal_ucs2reverse.
10528         * iconvdata/Makefile (modules): Add UNICODE.
10529         (distribute): Add unicode.c.
10530         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10531         * iconvdata/unicode.c: New file.
10532
10533         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10534         determine byte order of input and convert accordingly.
10535
10536         * iconvdata/utf-16.c (gconv_init): Fix typo.
10537
10538 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10539
10540         * iconvdata/gconv-modules: Fix typo.
10541
10542         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10543         more messages.
10544
10545         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10546
10547 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10548
10549         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10550
10551 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10552
10553         * misc/Makefile (routines): Add mincore.
10554
10555 2000-03-20  Andreas Jaeger  <aj@suse.de>
10556
10557         * sysdeps/generic/mincore.c: New stub file.
10558
10559         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10560         from latest Linux kernel.
10561
10562 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10563
10564         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10565         _SC_GETPW_R_SIZE_MAX.
10566
10567 2000-03-20  Richard Henderson  <rth@cygnus.com>
10568
10569         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10570         in GLIBC_2.1.4.
10571
10572 2000-03-20  Richard Henderson  <rth@cygnus.com>
10573
10574         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10575         of arithmetic instructions.
10576
10577         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10578         with the fpcr.  Protect from INV exception.
10579         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10580         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10581         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10582
10583         * sysdeps/alpha/fpu/s_copysign.c: New.
10584         * sysdeps/alpha/fpu/s_copysignf.c: New.
10585         * sysdeps/alpha/fpu/s_fabs.c: New.
10586         * sysdeps/alpha/fpu/s_fabsf.c: New.
10587         * sysdeps/alpha/fpu/s_rint.c: New.
10588         * sysdeps/alpha/fpu/s_rintf.c: New.
10589
10590         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10591
10592         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10593         Kill sethae.
10594         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10595         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10596         Use physical addresses not KSEG addresses.
10597         (io_system): Add PYXIS.
10598         (io): Remove hae.reg, sys, hae_shift.
10599         (stb_mb, stw_mb, stl_mb, __sethae): New.
10600         (inline_outb, inline_outw, inline_outl): Don't set hae.
10601         (inline_inb, inline_inw, inline_inl): Likewise.
10602         (dense_sethae): New null function.
10603         (struct cpuinfo_data): New.
10604         (process_cpuinfo): Use local and stack variables, not static.
10605         Move readlink check here from init_iosys.
10606         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10607         (_iopl): Simplify.
10608         (_hae_shift): Calculate it here.
10609         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10610         add pciconfig_iobase.
10611
10612 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10613
10614         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10615         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10616
10617         * scripts/versions.awk: Fixed version renaming code to distinguish
10618         libraries properly.
10619
10620 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10621
10622         * include/stdlib.h: Add prototype for __cxa_atexit.
10623
10624         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10625         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10626
10627 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10628
10629         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10630         existing rtld-installed-name.
10631         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10632         replace existing rtld-installed-name using $(symbolic-link-prog).
10633
10634 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10635
10636         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10637         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10638         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10639         but not the former.
10640
10641 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10642
10643         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10644         glob64.  Since there is no glob64 in the LFS proposal applications
10645         can assume that glob handles LFS situations.  glob64 is only needed
10646         if alternative filesystem functions are used.
10647
10648 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10649
10650         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10651         when GLOB_DOOFFS is set; correct handling of patterns
10652         containing escaped wildcards (and no unescaped ones);
10653         GLOB_ERR flag was being ignored in some situations.
10654
10655         * posix/globtest.c, posix/globtest.sh: Updated to include
10656         tests for the problems fixed by the above changes to glob.c.
10657
10658         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10659
10660 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10661
10662         * Makeconfig (soversion.i): Use only first match for each lib.
10663
10664         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10665
10666         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10667         rather than $(sysd-dirs-done) to protect these rules.
10668
10669         * Makerules (version-renames.def): Target removed.
10670         (Versions.all): Depend on soversions.i directly and parse it.
10671
10672         * Makeconfig (soversions.i): New target, input-reading parts of
10673         soversions.mk generation moved here; result is a canonicalized
10674         list "LIB VERSION [SET]" for this configuration.
10675         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10676         * Makerules (version-renames.def): New target, generated from
10677         soversions.i with contents that was in $(map-firstversions).
10678         (Versions.all): Don't depend on soversions.mk, depend on
10679         version-renames.def instead; just cat it into the input.
10680
10681         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10682         for $(map-firstversions), which better handles it being empty.
10683
10684         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10685         supported version for libc 0.2.90.libio to GLIBC_2.2.
10686
10687         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10688         and use it to emit new variable `map-firstversions'.
10689         * scripts/firstversions.awk: New file.
10690         * Makerules (Versions.all): Use scripts/firstversions.awk and
10691         the $(map-firstversions) value to generate a modified versions list
10692         that includes renames in "A = B" syntax for each version set earlier
10693         than the "earliest symbol version" named in shlib-versions.
10694         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10695         rename version set A to B in the output to the intermediate file.
10696         * scripts/abi-versions.awk: New file.
10697         * Makerules (abi-versions.h): New target, generated by that script.
10698         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10699         * include/shlib-compat.h: New file, uses that generated header.
10700
10701 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10702
10703         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10704         after stripping # comments, and then run it through cpp.
10705         This allows things like "%ifdef FOO" based on config.h settings.
10706         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10707
10708         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10709         and other errors that indicate a pseudo-receive happened, grok through
10710         the message buffer for port rights that need references fixed up.
10711
10712 2000-03-16  Andreas Jaeger  <aj@suse.de>
10713
10714         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10715
10716         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10717
10718         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10719         from latest Linux kernel.
10720         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10721
10722         * misc/sys/mman.h: Add prototype for mincore.
10723
10724 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10725
10726         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10727         entry for GLIBC_2.0 version of setrlimit.
10728         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10729
10730 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10731
10732         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10733         * nis/nss_compat/compat-initgroups.c: Likewise.
10734         * nis/nss_nis/nis-initgroups.c: Likewise.
10735         * nis/nss_nis/nis-netgrp.c: Likewise.
10736         * nis/nss_nis/nis-proto.c: Likewise.
10737         * nis/nss_nis/nis-rpc.c: Likewise.
10738         * nis/nss_nis/nis-service.c: Likewise.
10739         * nis/ypclnt.c: Likewise.
10740
10741 2000-03-16  Andreas Jaeger  <aj@suse.de>
10742
10743         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10744         doesn't exist, correct checks.  Fixes PR libc/1649.
10745
10746 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10747
10748         * nscd/hstcache.c: Restore correct UID.
10749         * nscd/pwdcache.c: Likewise.
10750         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10751
10752 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10753
10754         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10755         macros for register names, in line with 2000-03-14 linux change.
10756
10757         * sysdeps/mach/sched_yield.c: New file.
10758
10759 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10760
10761         * sysdeps/generic/lockfile.c: Include <stdio.h>
10762         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10763         case <libio.h> defined them.
10764         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10765         from __internal_*.
10766         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10767         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10768
10769         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10770         for more pleasing parse error.
10771
10772 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10773
10774         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10775         memory for eras.
10776         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10777
10778         * elf/Makefile: Add rules to compile and run constload1 test.
10779         * elf/constload1.c: New file.
10780         * elf/constload2.c: New file.
10781         * elf/constload3.c: New file.
10782
10783 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10784
10785         * sysdeps/posix/open64.c: Make __open64 weak alias.
10786         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10787         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10788         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10789         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10790         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10791         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10792         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10793         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10794         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10795         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10796
10797 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10798
10799         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10800         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10801
10802 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10803
10804         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10805         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10806
10807 2000-03-08  Andreas Jaeger  <aj@suse.de>
10808
10809         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10810
10811 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10812
10813         * timezone/africa: Update from tzdata2000d.
10814         * timezone/asia: Likewise.
10815         * timezone/australasia: Likewise.
10816         * timezone/europe: Likewise.
10817         * timezone/northamerica: Likewise.
10818         * timezone/southamerica: Likewise.
10819
10820         * po/fr.po: Update from translation team.
10821         * po/de.po: Likewise.
10822
10823         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10824         last parameter.  Move code to add map to global scope from here...
10825         * elf/dl-open.c (dl_open_worker): ...here.
10826         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10827         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10828
10829         * locale/programs/ld-collate.c (collate_read): Fix warning.
10830
10831         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10832         values and macros for register names.
10833
10834         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10835         returned by seek cookie function is -1.
10836
10837 2000-03-14  Andreas Jaeger  <aj@suse.de>
10838
10839         * locale/localeconv.c (localeconv): Fix typo.
10840         Reported by Andre Charbonneau <andrec@corel.com>.
10841
10842 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10843
10844         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10845         since modules depend on it counting the number of times the conversion
10846         function got called.
10847
10848         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10849
10850         * iconv/gconv.h: Pretty print.
10851
10852 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10853
10854         * posix/wordexp-test.c: Correct one of the tests added in the last
10855         change.  Really get the root passwd entry to check again ~root.
10856
10857 2000-03-10  Andreas Jaeger  <aj@suse.de>
10858
10859         * manual/filesys.texi (Working Directory): Fix last patch.
10860         Patch by Martin Buchholz  <martin@xemacs.org>.
10861
10862 2000-03-10  Andreas Jaeger  <aj@suse.de>
10863
10864         * manual/creature.texi (Feature Test Macros): Fix language.
10865
10866 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10867
10868         * mach/devstream.c (devstream_write, devstream_read): New functions.
10869         (input, output): Functions removed.
10870         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10871         using only the vanilla fopencookie interface.
10872
10873         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10874         as macro for __io_functions.
10875         (funcsio): Use cookie_io_functions_t type name.
10876         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10877
10878         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10879         fopencookie.
10880         (fopencookie): Use it.
10881         * libio/libio.h: Declare _IO_cookie_init.
10882         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10883         _IO_cookie_init.
10884
10885         * libio/libio.h (__io_seek_fn): Fix second argument type
10886         to be a pointer, in line with the manual and the old stdio.
10887         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10888
10889         * sysdeps/generic/bits/stdio-lock.h: New file.
10890         This is a stub with #error, but that's better than no file at all.
10891
10892 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10893
10894         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10895         * manual/message.texi (Using gettextized software): Doc Fixes.
10896         * manual/message.texi (Message Translation): Doc Fixes.
10897         * manual/filesys.texi (File Size): Doc Fixes.
10898         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10899         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10900         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10901         * manual/install.texi: Doc Fixes.
10902         * manual/search.texi (Hash Search Function): Doc Fixes.
10903         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10904         * FAQ.in: Doc Fixes.
10905         * config.h.in: Doc Fixes.
10906         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10907         Doc Fixes.  `allows to' is not correct English.
10908
10909         * elf/rtld.c: Doc fixes.
10910         * manual/creature.texi (Feature Test Macros): Doc fixes.
10911         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10912
10913         * manual/filesys.texi (Working Directory): Check for ERANGE to
10914         avoid infloop.
10915
10916 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10917
10918         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10919         conditions so as not to clobber the final '\0' when there is only one
10920         element in the vector.
10921
10922 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10923
10924         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10925         broken by 2000-02-27 change.
10926
10927         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10928
10929 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10930
10931         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10932         argument type, for 2000-02-22 change in signal/signal.h declaration.
10933
10934 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10935
10936         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10937         to getdirentries64 (no __), since the Linux implementation
10938         has no __ name, and there is no declaration for the __ name.
10939
10940         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10941
10942         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10943         sed regexp so as not to break directory names including /../ within.
10944
10945         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10946         The sysdeps/generic file is right for BSD.  This file was in fact the
10947         Hurd file, but the only difference was the WNOREAP flag that was never
10948         actually implemented or used anywhere.
10949
10950         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10951         since AC_PATH_PROG already does it for us.
10952         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10953         correctness and sh portability.  I replaced the broken check
10954         with a more sensible implementation of the apparently intended
10955         semantics, which might still be questionable.  Using expr causes
10956         a non-numeric value for `perl -V:apiversion` to be accepted,
10957         refusing to use only a perl that reports a number less than 5;
10958         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10959         * configure: Regenerated.
10960
10961 2000-03-08  Andreas Jaeger  <aj@suse.de>
10962
10963         * manual/crypt.texi: Fix paths.
10964
10965 2000-03-07  Andreas Jaeger  <aj@suse.de>
10966
10967         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10968         were swapped.
10969         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10970         libc/1636.
10971
10972 2000-03-06  Andreas Jaeger  <aj@suse.de>
10973
10974         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10975         in __sgn1l, otherwise g++ fails to parse this.
10976         Reported by Sean Chen <sean.chen@turbolinux.com>.
10977
10978 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10979
10980         * configure.in: Compute sizeof-long-double.
10981         * configure: Regenerated.
10982         * config.make.in: Make sizeof-long-double available to sub-makes.
10983
10984 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10985
10986         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10987         call.
10988
10989 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10990
10991         * Makeconfig (rpath-dirs): Add crypt.
10992         (all-subdirs): Remove md5crypt.
10993         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10994         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10995         * sysdeps/generic/crypt-entry.c: Delete.
10996         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10997         * sysdeps/generic/crypt.h: Delete.
10998         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10999         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11000         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11001         * sysdeps/generic/des_impl.c: Delete.
11002         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11003         * crypt/sysdeps: Delete.
11004         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11005         * md5-crypt/Versions: Move to crypt/.
11006         * md5-crypt/md5-crypt.c: Move to crypt/.
11007         * md5-crypt/md5.c: Move to crypt/.
11008         * md5-crypt/md5c-test.c: Move to crypt/.
11009         * md5-crypt/md5test.c: Move to crypt/.
11010         * md5-crypt: Delete.
11011         * crypt/Makefile: Adjust for new structure.
11012
11013 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11014
11015         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11016         define to 1 if not defined.
11017
11018 2000-03-03  Andreas Jaeger  <aj@suse.de>
11019
11020         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11021
11022 2000-03-03  Andreas Jaeger  <aj@suse.de>
11023
11024         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11025         cases.
11026         (xdr_int64_t): Correctly handle lower half.
11027         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11028
11029 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11030
11031         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11032         call.
11033
11034 2000-03-02  Andreas Jaeger  <aj@suse.de>
11035
11036         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11037         2.3.43.
11038
11039 2000-03-02  Andreas Jaeger  <aj@suse.de>
11040
11041         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11042
11043 2000-03-01  Andreas Jaeger  <aj@suse.de>
11044
11045         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11046         (tests): Added tst-getdate.
11047
11048         * time/tst-getdate.c: New file.
11049
11050         * time/datemsk: New file, needed for tst-getdate.
11051
11052 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11053
11054         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11055
11056 2000-02-17  H.J. Lu  <hjl@gnu.org>
11057
11058         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11059
11060         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11061         available.
11062         (svcudp_recv): Set up message with the new "xp_pad" field for
11063         IP_PKTINFO.
11064         (svcudp_reply): Support IP_PKTINFO if available.
11065
11066 2000-03-01  Andreas Jaeger  <aj@suse.de>
11067
11068         * time/getdate.c (check_mday): Fix check for february.
11069         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11070         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11071
11072 2000-03-02  Andreas Jaeger  <aj@suse.de>
11073
11074         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11075         g++ fails to parse this.
11076         Reported by Sean Chen <sean.chen@turbolinux.com>.
11077
11078 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11079
11080         * io/creat.c: Moved to...
11081         * sysdeps/generic/creat.c: ...here.
11082         * io/creat64.c: Moved to...
11083         * sysdeps/generic/creat64.c: ...here.
11084         * io/lockf.c: Moved to...
11085         * sysdeps/generic/lockf.c: ...here.
11086
11087         * crypt/crypt.texi: Moved to...
11088         * manual/crypt.texi: ...here.
11089         * crypt/examples/genpass.c: Moved to...
11090         * manual/examples/genpass.c: ...here.
11091         * crypt/examples/mygenpass.c: Moved to...
11092         * manual/examples/mygenpass.c: ...here.
11093         * crypt/examples/testpass.c: Moved to...
11094         * manual/examples/testpass.c: ...here.
11095
11096         * manual/Makefile (chapters): Add crypt.
11097         * manual/conf.texi: Add usual header for not-last chapter.
11098         * manual/crypt.texi: Add special header for last chapter.
11099
11100 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11101
11102         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11103         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11104         complain if there is no crypt add-on.
11105         * crypt/configure: Removed.
11106
11107         * crypt/crypt.texi: Update documentation of US export restrictions
11108         to match the 14 Jan 2000 regulations.
11109
11110 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11111
11112         * crypt: New subdirectory, merged in from the crypt add-on.
11113
11114 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11115
11116         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11117
11118
11119 See ChangeLog.10 for earlier changes.