Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
2
3         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
4         __extension__ to _Complex_I definition since gcc warns if -pedantic.
5         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
6
7         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
8         necessary.  Move includes of POSIX and Unix limits files to the
9         end.
10         * stdlib/Makefile (tests): Add tst-limits.
11         * stdlib/tst-limits.h: New file.
12
13 2000-09-15  Andreas Jaeger  <aj@suse.de>
14
15         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
16
17         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
18
19 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
20
21         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
22         clobber.
23         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
24         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
25
26 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
27
28         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
29         (tests): Add next.
30         (modules-names): Add nextmod1 and nextmod2.
31         Add rules to build and run next.
32         * elf/next.c: New file.
33         * elf/nextmod1.c: New file.
34         * elf/nextmod2.c: New file.
35
36 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
37
38         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
39
40 2000-09-15  Andreas Jaeger  <aj@suse.de>
41
42         * sysdeps/mips/fpu/fenv_libc.h: New file.
43         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
44         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
45         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
46
47         * sysdeps/mips/fpu/feenablxcpt.c: New file.
48         * sysdeps/mips/fpu/fegetexcept.c: New file.
49         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
50
51 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
52
53         * intl/Makefile: Avoid unnecessary test reruns.
54
55         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
56
57         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
58         to not use sysctl().  Too many architectures have problems with it.
59
60 2000-09-14  Andreas Jaeger  <aj@suse.de>
61
62         * scripts/config.sub: New version from subversions.gnu.org.
63
64         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
65         long.
66
67 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
68
69         * posix/regex.c (compile_range): Cast collseq index to unsigned char
70         to avoid accessing data before collseq.
71
72         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
73         pasting strings together.
74
75 2000-09-14  Greg McGary  <greg@mcgary.org>
76
77         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
78         copyright notice.
79         * sysdeps/generic/bp-semctl.h: Likewise.
80         * sysdeps/generic/bp-start.h: Likewise.
81         * sysdeps/generic/bp-sym.h: Likewise.
82         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
83         rename prototype.
84
85 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
86
87         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
88         don't fail.
89
90         * elf/elf.h: Add missing official relocations.
91
92         * libio/stdio.h: Define __FILE if __need___FILE is defined.
93         * stdio/stdio.h: Likewise.
94         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
95         * include/stdio.h: Handle __need___FILE like __need_FILE.
96         * include/wchar.h: Use __FILE instead of FILE.
97         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
98         * libio/fwscanf.c: Likewise.
99         * libio/getwc.c: Likewise.
100
101         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
102         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
103         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
104
105         * assert/assert.h: Update comment header about ISO C section.
106         * math/complex.h: Likewise.
107         * ctype/ctype.h: Likewise.
108         * include/errno.h: Likewise.
109         * include/limits.h: Likewise.
110         * locale/locale.h: Likewise.
111         * math/math.h: Likewise.
112         * setjmp/setjmp.h: Likewise.
113         * signal/signal.h: Likewise.
114         * stdio/stdio.h: Likewise.
115         * libio/stdio.h: Likewise.
116         * stdlib/stdlib.h: Likewise.
117         * string/string.h: Likewise.
118         * time/time.h: Likewise.
119         * wcsmbs/wchar.h: Likewise.
120         * wctype/wctype.h: Likewise.
121         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
122
123 2000-09-13  Andreas Jaeger  <aj@suse.de>
124
125         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
126         for no more entries.
127         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
128         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
129         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
130
131 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
132
133         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
134         constant since this is what clock_t is.
135         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
136         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
137         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
138         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
139
140         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
141         definitions are requested.
142
143 2000-09-13  Andreas Jaeger  <aj@suse.de>
144
145         * shlib-versions: libBrokenLocale needs minimal version for ia64,
146         sparc64 and sh to synch with libc.
147
148 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
149
150         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
151         (distribute): Add iso-2022-cn-ext.c.
152         Add definitions to compile the new module.
153         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
154         * iconvdata/iso-2022-cn-ext.c: New file.
155         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
156         ucs4_from_isoir165.  Increment input pointer if successful.
157
158         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
159
160         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
161
162 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
163
164         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
165         __syscall_getdents64 wrapper.
166
167         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
168
169 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
170
171         * iconvdata/gb18030.c: Many many changes.  Make consistent with
172         charmap and with itself.
173         * iconvdata/tst-tables.sh: Test GB18030.
174
175 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
176
177         * iconv/skeleton.c: Fix last patch, add missing parameter to
178         unaligned function call.
179
180 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
181
182         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
183         of decimal ellipsis.
184
185 2000-09-11  Bruno Haible <haible@clisp.cons.org>
186
187         * locale/programs/ld-collate.c (collate_read): Always initialize
188         error_section.next.
189
190 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
191
192         * locale/programs/ld-collate.c (collate_finish): Upper bound for
193         ruleidx is 128, not 256.
194
195 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
196
197         * locale/programs/ld-collate.c (collate_read): Correct check for
198         already inserted entries.
199
200 2000-09-10  Bruno Haible <haible@clisp.cons.org>
201
202         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
203         second try as well.
204
205 2000-09-10  Bruno Haible <haible@clisp.cons.org>
206
207         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
208         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
209
210 2000-09-10  Bruno Haible <haible@clisp.cons.org>
211
212         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
213         SAVE_RESET_STATE.
214
215 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
216
217         * iconvdata/utf-7.c: New file.
218         * iconvdata/gconv-modules (UTF-7): New module entries.
219         * iconvdata/Makefile (modules): Add UTF-7.
220         (distribute): Add utf-7.c.
221         * iconvdata/testdata/UTF-7: New file.
222         * iconvdata/testdata/UTF-7..UTF8: New file.
223         * iconvdata/TESTS (UTF-7): New entry.
224         * iconvdata/run-iconv-test.sh: Fix confusing output.
225
226 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
227
228         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
229
230 2000-09-10  David S. Miller  <davem@redhat.com>
231
232         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
233         frame pointer offset for non-fast path.
234
235 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
236
237         * locale/programs/3level.h (*_init): Initialize level1, level2,
238         and level3 as well.
239         (*_add): Remove a few unnecessary conditionals.
240
241 2000-09-05  Wolfram Gloger  <wg@malloc.de>
242
243         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
244         ensure usability of mutex as an `in use' flag.
245
246 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
247
248         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
249
250         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
251         ugly GMON_WEAK_START hack.
252         Patch by Philip Blundell <philb@gnu.org>.
253
254         * sysdeps/i386/i486/bits/string.h: Pretty printing.
255
256 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
257
258         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
259         and PPC_ICBI asm for broken compilers.
260         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
261
262 2000-09-09  Andreas Jaeger  <aj@suse.de>
263
264         * manual/message.texi (Advanced gettext functions): Fix typo.
265
266         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
267         strncpy prototype.
268
269 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
270
271         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
272         warnings.
273         * sysdeps/ia64/memccpy.S: Likewise.
274         Patches by Jim Wilson <wilson@redhat.com>.
275
276         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
277         before trying to read /proc.
278         Patch by Matt Wilson <msw@redhat.com>.
279         * include/sys/utsname.h: Declare __uname.
280         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
281         * sysdeps/mach/hurd/uname.c: Likewise.
282         * sysdeps/unix/syscalls.list: Likewise.
283
284         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
285         unloading a bit.
286
287 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
288
289         * posix/getopt.c (_getopt_internal): When long_only is set always
290         recognize conflicts just like before.
291
292 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
293
294         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
295
296 2000-09-08  Greg McGary  <greg@mcgary.org>
297
298         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
299         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
300         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
301
302 2000-09-08  Andreas Jaeger  <aj@suse.de>
303
304         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
305
306         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
307
308         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
309         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
310         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
311
312 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
313
314         * iconvdata/tst-tables.sh: Enable EUC-KR test.
315
316         * elf/dl-load.c (lose): Decrement _nl_loaded.
317         (_dl_map_object_from_fd): Don't try to dlopen executables.
318
319         * iconvdata/tst-tables.sh: Actually return with an error if
320         something goes wrong.
321         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
322         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
323
324         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
325
326         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
327         * iconvdata/tst-table-from.c: Include <string.h>.
328         (try): Correct cast in iconv call.
329
330         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
331         too.
332         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
333         (sysdep_routines): Remove dl-start.
334         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
335
336         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
337
338         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
339         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
340
341 2000-09-06  Andreas Schwab  <schwab@suse.de>
342
343         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
344
345 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
346
347         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
348
349         * scripts/config.sub: Strip out -unknown for Linux targets.
350         Patch by Scott Bambrough <scottb@netwinder.org>.
351
352         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
353         add one more test.
354
355 2000-09-07  Andreas Jaeger  <aj@suse.de>
356
357         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
358
359         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
360         syscalls.
361
362         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
363
364         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
365         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
366
367         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
368
369         * stdlib/tst-bsearch.c (main): Add more test cases.
370
371         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
372         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
373         Reported by GOTO Masanori <gotom@debian.or.jp>.
374
375 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
376
377         * posix/Makefile (tests): Add tst-dir.
378         (tst-dir-ARGS): New variable.
379         * posix/tst-dir.c: New file.
380
381 2000-09-07  Andreas Jaeger  <aj@suse.de>
382
383         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
384         (SYS_fcntl64): New.
385
386         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
387
388 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
389
390         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
391         use the hack with tryopen_o_directory to determine at runtime
392         whether it works.
393         * sysdeps/unix/sysv/linux/opendir.c: New file.
394         * sysdeps/unix/sysv/linux/kernel-features.h: Define
395         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
396
397         * catgets/Depend: New file.  Add intl.
398         * catgets/Makefile (tests): Add tst-catgets.
399         (generated): Remove de.msg.
400         (generated-dirs): Add de.
401         Add dependency if tst-catgets output on de/libc.cat.
402         * catgets/tst-catgets.c: New file.
403
404         * po/ja.po: New file.
405         * po/el.po: Update from translation team.
406
407         * wcsmbs/Depend: New file.
408         * wcsmbs/Makefile (tests): Add tst-btowc.
409         (tst-btowc-ENV): Define.
410         * wcsmbs/tst-btowc.c: New file.
411
412         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
413         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
414
415         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
416
417         * stdlib/Makefile (tests): Add tst-bsearch.
418         * stdlib/tst-bsearch.c: New file.
419
420         * posix/getopt.c (_getopt_internal): Don't recognize an option
421         name as ambiguous if it's a prefix for more than one name but the
422         other struct option values are identical.
423
424         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
425         Don't depend on visual inspection of the output file to recognize
426         errors.
427         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
428
429 2000-09-06  Andreas Jaeger  <aj@suse.de>
430
431         * sysdeps/alpha/soft-fp/Dist: New file.
432         * sysdeps/i386/soft-fp/Dist: New file.
433         * sysdeps/mips/mips64/soft-fp/Dist: New file.
434         * sysdeps/mips/soft-fp/Dist: New file.
435         * sysdeps/powerpc/soft-fp/Dist: New file.
436         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
437         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
438
439         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
440         Use sysdep_routines instead of routines to fix make dist failure.
441         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
442         out code).
443         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
444
445         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
446         sysdep_headers instead of headers for make dist.
447
448         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
449         Likewise.
450
451 2000-09-06  Andreas Schwab  <schwab@suse.de>
452
453         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
454
455 2000-09-06  Andreas Jaeger  <aj@suse.de>
456
457         * soft-fp/Makefile (distribute): Remove ChangeLog.
458
459         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
460         sysdep_routines instead of routines for make dist.
461
462 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
463
464         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
465         compatibility check for old stream and call _IO_wide in doubt.
466         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
467         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
468         needed tst for such an old structure and don't do anything.
469         * libio/freopen.c: Remove declaration of _IO_stdin_used.
470
471 2000-09-06  Andreas Jaeger  <aj@suse.de>
472
473         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
474         sysdep-dl-routines and sysdep_routines instead of rtld-routines
475         and dl-routines.
476
477         * soft-fp/ChangeLog: Merged with this file.
478
479 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
480
481         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
482
483         * soft-fp/Makefile (distribute): Add the math functions, too.
484
485         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
486
487 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
488
489         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
490         as a statement.
491
492         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
493         * soft-fp/sysdeps/powerpc/q_*: New files.
494
495 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
496
497         * stdio-common/vfprintf.c (process_string_arg): Handle precision
498         in wide char case correctly.  Don't allocate too long temporary
499         strings with alloca.
500
501         * stdio-common/Makefile (tests): Add tst-swprintf.
502         (tst-swprintf-ENV): New variable.
503         * stdio-common/tst-swprintf.c: New file.
504
505 2000-09-05  Andreas Jaeger  <aj@suse.de>
506
507         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
508         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
509         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
510
511 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
512
513         * configure.in: Strip out "unknown" from configuration names.
514
515 2000-09-05  Andreas Jaeger  <aj@suse.de>
516
517         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
518
519         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
520         * sysdeps/sparc/sparc32/Implies: Likewise.
521         * sysdeps/powerpc/Implies: Likewise.
522
523         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
524         * libio/oldiofgetpos64.c: Likewise.
525
526         * soft-fp/Makefile (distribute): Remove configure.
527
528         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
529
530         * soft-fp/configure: Remove.
531
532         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
533         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
534
535         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
536         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
537
538         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
539         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
540
541         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
542         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
543
544         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
545         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
546
547         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
548         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
549
550         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
551         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
552
553         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
554         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
555
556         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
557         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
558
559         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
560         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
561
562         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
563         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
564
565         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
566         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
567
568         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
569         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
570
571         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
572         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
573
574         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
575         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
576
577         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
578         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
579
580         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
581         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
582
583         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
584         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
585
586         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
587         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
588
589         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
590         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
591
592         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
593         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
594
595         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
596         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
597
598         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
599         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
600
601         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
602         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
603
604         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
605         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
606
607         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
608         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
609
610         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
611         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
612
613         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
614         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
615
616         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
617         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
618
619         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
620         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
621
622         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
623         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
624
625         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
626         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
627
628         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
629         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
630
631         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
632         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
633
634         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
635         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
636
637         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
638         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
639
640         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
641         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
642
643         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
644         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
645
646         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
647         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
648
649         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
650         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
651
652         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
653         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
654
655         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
656         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
657
658         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
659         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
660
661         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
662         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
663
664         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
665         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
666
667         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
668         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
669
670         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
671         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
672
673         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
674         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
675
676         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
677         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
678
679         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
680         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
681
682         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
683         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
684
685         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
686         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
687
688         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
689         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
690
691         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
692         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
693
694         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
695         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
696
697         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
698         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
699
700         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
701         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
702
703         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
704         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
705
706         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
707         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
708
709         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
710         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
711
712         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
713         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
714
715         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
716         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
717
718         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
719         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
720
721         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
722         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
723
724         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
725         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
726
727         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
728         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
729
730         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
731         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
732
733         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
734         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
735
736         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
737         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
738
739         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
740         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
741
742         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
743         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
744
745         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
746         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
747
748         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
749         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
750
751         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
752         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
753
754         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
755         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
756
757         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
758         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
759
760         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
761         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
762
763         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
764         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
765
766         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
767         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
768
769         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
770         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
771
772         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
773         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
774
775         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
776         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
777
778         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
779         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
780
781         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
782         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
783
784         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
785         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
786
787         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
788         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
789
790         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
791         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
792
793         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
794         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
795
796         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
797         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
798
799         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
800         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
801
802         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
803         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
804
805         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
806         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
807
808         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
809         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
810
811         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
812         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
813
814         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
815         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
816
817         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
818         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
819
820         * soft-fp/sysdeps/powerpc/Versions: Move from here...
821         * sysdeps/powerpc/soft-fp/Versions: ... to here.
822
823         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
824         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
825
826         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
827         change symbol version.
828         * libio/oldiofgetpos64.c: Likewise.
829         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
830
831         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
832         typo.
833         Reported by dyky@kondara.org, closes PR libc/1886.
834
835         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
836         libc/1880.
837
838 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
839
840         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
841         script when ^C is hit.
842
843         * locale/programs/localedef.c (construct_output_path): Correct
844         computation of endp after asprintf.
845         * locale/programs/locfile.c (write_locale_data): Don't add extra
846         slash in filename.
847
848 2000-09-05  Andreas Jaeger  <aj@suse.de>
849
850         * scripts/config.guess: New upstream version.
851         * scripts/config.sub: Likewise.
852         * manual/texinfo.tex: Likewise.
853
854 2000-09-04  Andreas Schwab  <schwab@suse.de>
855
856         * elf/Makefile (all-dl-routines): New variable.
857         (elide-routines.os): Use it instead of $(dl-routines).
858         (all-rtld-routines): New variable.
859         (extra-objs): Use it instead of $(rtld-routines).
860         ($(objpfx)dl-allobjs.os): Likewise.
861         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
862         sysdep-dl-routines and sysdep_routines instead of rtld-routines
863         and dl-routines.
864
865 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
866
867         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
868         Set fname to NULL if the module wasn't found.
869
870 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
871
872         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
873         true if trans->name already ends in ".so".
874
875 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
876
877         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
878         void.
879         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
880         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
881         (__gconv_release_shlib): Change return type to void.
882         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
883         step->__counter here.
884         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
885         if the reference is zero.
886         (release_step): New function.
887         (gen_steps): Always initialize the __counter to 1. Use release_step.
888         Don't call the destructor on the step whose initializer failed.
889         (increment_counter): Use release_step. Don't normally run destructors
890         here.
891         (__gconv_close_transform): Use release_step.
892
893 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
894
895         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
896         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
897
898 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
899
900         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
901         If the first byte is 0x8E, don't ask for 4 bytes until it has been
902         verified that the second byte is valid. Leave it to cns11643_to_ucs4
903         to check for incomplete input.
904         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
905         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
906         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
907         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
908         0x9f9d..0x9fa5.
909         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
910         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
911         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
912         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
913         upto index 0x0052.
914
915 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
916
917         * iconv/gconv_db.c (find_derivation): Always use the least-cost
918         solution.
919
920 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
921
922         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
923         are invalid.
924
925 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
926
927         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
928         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
929         U+007E.
930
931 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
932
933         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
934
935 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
936
937         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
938
939 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
940
941         * iconvdata/tst-tables.sh: New file.
942         * iconvdata/tst-table.sh: New file.
943         * iconvdata/tst-table-from.c: New file.
944         * iconvdata/tst-table-to.c: New file.
945         * iconvdata/tst-table-charmap.sh: New file.
946         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
947         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
948         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
949         ISIRI-3342.irreversible, SJIS.irreversible.
950         (tests): Add dependency on tst-tables.out.
951         (tst-tables.out, tst-tables-clean): New rules.
952         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
953         * iconvdata/ISIRI-3342.irreversible: New file.
954         * iconvdata/EUC-JP.irreversible: New file.
955         * iconvdata/SJIS.irreversible: New file.
956
957 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
958
959         * manual/locale.texi (General Numeric): Update description of
960         representation of the grouping information in the locale data.
961         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
962
963 2000-09-04  Andreas Jaeger  <aj@suse.de>
964
965         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
966         * iconv/iconv_prog.c (options): Fix typo.
967         Reported by dyky@kondara.org, closes PR libc/1885.
968
969 2000-09-04  Andreas Jaeger  <aj@suse.de>
970
971         * sysdeps/generic/fegetenv.c: It's __fegetenv.
972         Reported by Rob Levin <lilo@transvirtual.com>.
973
974 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
975
976         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
977         to the typedefs of __timezone_ptr_t.
978         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
979
980 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
981
982         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
983         the loop.
984
985 2000-09-01  H.J. Lu  <hjl@gnu.org>
986
987         * Makeconfig (built-program-cmd): Don't use the dynamic linker
988         to run a binary if it is in $(tests-static).
989
990         * Rules (binaries-static): Add $(tests-static).
991
992 2000-09-02  Andreas Jaeger  <aj@suse.de>
993
994         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
995
996         * libio/fmemopen.c (fmemopen_close): Revert one part of last
997         patch.
998
999 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1000
1001         * iconvdata/big5hkscs.c: Regenerated from charmap.
1002         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1003         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1004
1005         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1006         statement.  General cleanup.
1007
1008 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1009
1010         * wctype/wcfuncs.c (iswblank): New function.
1011         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1012         * wctype/wcextra.c: Remove file.
1013         * wctype/wcextra_l.c: Remove file.
1014         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1015
1016 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1017
1018         * locale/programs/ld-collate.c (collate_output): Remove redundant
1019         assert call.
1020         * string/strcoll.c: Likewise.
1021         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1022         string/strcoll.c.
1023
1024 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1025
1026         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1027         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1028         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1029         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1030         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1031         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1032         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1033         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1034         _NL_CTYPE_GAP5/6 respectively.
1035
1036         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1037         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1038         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1039         Don't initialize __ctype_names and __ctype_width.
1040         * wctype/cname-lookup.h: Remove file.
1041         * wctype/Makefile (distribute): Remove cname-lookup.h.
1042         * wctype/wchar-lookup.h: Include stdint.h.
1043         * wctype/wctype.c (__wctype): Assume new locale format.
1044         * wctype/wctype_l.c (__wctype_l): Likewise.
1045         * wctype/iswctype.c: Don't include cname-lookup.h.
1046         (__iswctype): Assume new locale format.
1047         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1048         (__iswctype_l): Assume new locale format.
1049         * wctype/wctrans.c: Don't include ctype.h.
1050         (wctrans): Assume new locale format.
1051         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1052         * wctype/towctrans.c: Don't include cname-lookup.h.
1053         (__towctrans): Assume new locale format.
1054         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1055         (__towctrans_l): Assume new locale format.
1056         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1057         localeinfo.h instead.
1058         (__NO_WCTYPE): Remove unused macro.
1059         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1060         declarations.
1061         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1062         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1063         (towlower, towupper): Likewise.
1064         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1065         localeinfo.h instead.
1066         (__NO_WCTYPE): Remove unused macro.
1067         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1068         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1069         __iswxdigit_l): Assume new locale format.
1070         (__towlower_l, __towupper_l): Likewise.
1071         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1072         (__ctype32_b): Remove declaration.
1073         (internal_wcwidth): Assume new locale format.
1074         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1075         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1076         to map32_b, rename width_3level to width.
1077         (ctype_output): Always create new locale format. Don't emit
1078         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1079         (allocate_arrays): Always create new locale format.
1080
1081         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1082         * locale/weightwc.h (findidx): Assume new locale format.
1083         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1084         names.
1085         * string/strxfrm.c (wcsxfrm): Likewise.
1086         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1087         local variable collseq to 'const char *'.
1088         (SUFFIX): Don't use, don't undefine.
1089         * posix/fnmatch.c: Remove SUFFIX definition.
1090         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1091         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1092         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1093         (collate_finish): Always create new locale format. Remove local
1094         variables min_total, act_size.
1095         (collate_output): Always create new locale format. Remove local
1096         variables table_size, names, tablewc. Rename tablewc_3level to
1097         tablewc.
1098
1099 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1100
1101         * locale/programs/ld-collate.c (obstack_int32_grow,
1102         obstack_int32_grow_fast): New inline functions.
1103         (output_weightwc, collate_output): Use them where possible.
1104
1105 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1106
1107         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1108         patch (_mode -> _flags).
1109
1110         * libio/Makefile (headers): Add stdio_ext.h.
1111         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1112         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1113         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1114         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1115         __fsetlocking, and _flushlbf.
1116         * libio/__fbufsize.c: New file.
1117         * libio/__flbf.c: New file.
1118         * libio/__fpending.c: New file.
1119         * libio/__fpurge.c: New file.
1120         * libio/__freadable.c: New file.
1121         * libio/__freading.c: New file.
1122         * libio/__fsetlocking.c: New file.
1123         * libio/__fwritable.c: New file.
1124         * libio/__fwriting.c: New file.
1125         * libio/stdio_ext.h: New file.
1126         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1127         * libio/libio.h (_IO_USER_LOCK): Define.
1128         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1129         test _IO_USER_LOCK flag first.
1130
1131         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1132         malloc fails.
1133
1134 2000-09-01  Andreas Jaeger  <aj@suse.de>
1135
1136         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1137
1138         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1139
1140 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1141
1142         * math/Makefile (tests): Add tst-defintions.
1143         * math/tst-definitions.c: New file.
1144
1145         * stdlib/Makefile (headers): Add bits/wchar.h.
1146         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1147         * sysdeps/generic/bits/wchar.h: New file.
1148         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1149         file to define WCHAR_MIN and WCHAR_MAX.
1150         Change UINT*8_MAX and UIN*16_MAX value to type int.
1151         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1152         file to define WCHAR_MIN and WCHAR_MAX.
1153         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1154         int values.
1155         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1156         * sysdeps/generic/bits/mathdef.h: Likewise.
1157         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1158         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1159         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1160         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1161         * locale/locale.h (struct lconv): Add __ prefix to the new members
1162         if not C99.
1163         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1164         imaxdiv optimizations.
1165         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1166         * sysdeps/wordsize-64/ldiv.c: Likewise.
1167         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1168         const fenv_t*.
1169         * sysdeps/generic/bits/fenv.h: Likewise.
1170         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1171         * sysdeps/ia64/bits/fenv.h: Likewise.
1172         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1173         * sysdeps/mips/bits/fenv.h: Likewise.
1174         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1175         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1176         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1177
1178         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1179         * inet/ruserpass.c: Likewise.
1180         * catgets/open_catalog.c: Likewise.
1181         * intl/loadmsgcat.c: Likewise.
1182         * io/getdirname.c: Likewise.
1183         * locale/loadlocale.c: Likewise.
1184         * misc/getusershell.c: Likewise.
1185         * stdlib/canonicalize.c: Likewise.
1186         * sysdeps/posix/euidaccess.c: Likewise.
1187         * sysdeps/posix/isfdtype.c: Likewise.
1188         * sysdeps/posix/posix_fallocate.c: Likewise.
1189         * sysdeps/posix/tempname.c: Likewise.
1190         * sysdeps/unix/grantpt.c: Likewise.
1191         * sysdeps/unix/opendir.c: Likewise.
1192         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1193         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1194         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1195         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1196         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1197         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1198         * sysvipc/ftok.c: Likewise.
1199         * time/getdate.c: Likewise.
1200
1201         * time/getdate.c: Add extra access test.
1202
1203 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1204
1205         * version.h (VERSION): Bump to 2.1.93.
1206
1207         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1208         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1209
1210         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1211         Make this a new rule depending on tst-gettext.out and run mtrace.
1212         * intl/tst-gettext.c: Call mtrace.
1213         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1214
1215         * elf/dl-reloc.c: Add a few more __builtin_expect.
1216
1217         * configure.in: Remove --with-gettext option.
1218
1219         * intl/dcigettext.c (free_mem): Correct freeing of
1220         _nl_domain_bindings list.
1221
1222         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1223         allocated memory.
1224
1225         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1226
1227         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1228
1229         * stdio-common/itoa-digits.c: Move upper digits to...
1230         * stdio-common/itoa-udigits.c: ...here.  New file.
1231         * stdio-common/Makefile (routines): Add itoa-udigits.
1232
1233         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1234         relocate ld.so don't add supprt for relocations which should not
1235         appear in ld.so.
1236
1237         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1238         __secure_getenv.  Instead test __libc_enable_secure once.
1239
1240         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1241
1242 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1243
1244         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1245         whether the new record should be freed if it's a duplicate.
1246         (add_module): Adjust insert_module call.
1247         (__gconv_read_conf): Likewise.
1248         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1249         mtrace-tst-loading.
1250         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1251
1252         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1253         _dl_all_init_dirs.
1254         * include/link.h (struct r_search_path_struct): New.
1255         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1256         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1257         _dl_all_init_dirs.
1258         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1259         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1260         added at startup time.
1261         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1262         contains element to remember fact that we can free memory.
1263         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1264         (_dl_init_all_dirs): New variable.
1265         (fillin_rpath): Save one malloc call.
1266         (decompose_rpath): Change interface.  New first parameter points to
1267         r_search_path_struct.
1268         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1269         deletable.  Set _dl_init_all_paths value.
1270         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1271         parameter replaced with r_search_path_struct *.  Information about
1272         freeing now contained in r_search_path_struct.
1273         (_dl_map_object): Adjust for above changes.
1274
1275         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1276
1277         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1278         when adding new entries.
1279
1280         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1281         since the object being loaded can be unloaded.
1282
1283         * iconvdata/Makefile (tests): Add tst-loading.
1284         * iconvdata/tst-loading.c: New file.
1285
1286 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1287
1288         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1289         When comparing a char with an int, always cast the char to
1290         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1291         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1292
1293 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1294
1295         * time/strftime.c (my_strftime): Add compatibility code for use
1296         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1297
1298         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1299         return 0 for success but always < 0 on failure.
1300
1301         * nss/getXXbyYY_r.c: Define result to *result before including
1302         digits_dots.c.
1303
1304 2000-08-30  Andreas Jaeger  <aj@suse.de>
1305
1306         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1307
1308 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1309
1310         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1311         official file.
1312         * iconvdata/TESTS: Add BIG5HKSCS entry.
1313         * iconvdata/testdata/BIG5HKSCS: New file.
1314         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1315
1316         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1317         always true.
1318
1319         * libio/iogetline.c: Set mode before the loop in case n==0.
1320         * libio/iogetwline.c: Likewise.
1321
1322 2000-08-29  H.J. Lu  <hjl@gnu.org>
1323
1324         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1325         of fp->_mode < 0.
1326         (_IO_new_file_overflow): Likewise.
1327         * libio/genops.c (_IO_flush_all): Likewise.
1328         * libio/ioftell.c (_IO_ftell): Likewise.
1329
1330 2000-08-29  Akira Higuchi  <a@kondara.org>
1331
1332         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1333         and __end_fct fields of struct __gconv_step.
1334         * iconv/Makefile (tests): Add iconv-bug2.
1335         * iconv/iconv-bug2.c: New file.
1336
1337         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1338         instead of 'inptr - inend' to ksc5601_to_ucs4.
1339
1340         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1341
1342         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1343         character or shift sequence is found at the end of the input
1344         string, return__GCONV_INCOMPLETE_INPUT instead of
1345         __GCONV_EMPTY_INPUT.
1346         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1347         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1348
1349         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1350         __GCONV_ILLEGAL_INPUT for 8bit characters.
1351
1352 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1353
1354         * signal/signal.h (sigpause): Move __THROW before __asm__.
1355
1356         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1357         names don't match don't return.
1358         Patch by Olaf Kirch <okir@flash.lst.de>.
1359
1360 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1361
1362         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1363
1364 2000-08-27  H.J. Lu  <hjl@gnu.org>
1365
1366         * posix/Makefile (otherlibs): Add for building with static-nss
1367         for "make check".
1368
1369 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1370
1371         * libio/stdio.h: Add fmemopen prototype.
1372
1373 2000-08-25  Andreas Jaeger  <aj@suse.de>
1374
1375         * libio/Makefile (routines): Add fmemopen.
1376         (tests): Add test-fmemopen.
1377         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1378         * libio/test-fmemopen.c: New file.
1379         * libio/fmemopen.c: New file.
1380         Patches by Hanno Mueller <kontakt@hanno.de>.
1381
1382 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1383
1384         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1385         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1386
1387         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1388         to avoid crashing statically linked applications.
1389
1390 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1391
1392         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1393         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1394
1395         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1396         If the result is fits in the buffer, copy only as many bytes as needed.
1397
1398         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1399         buffer after copying numbuf into it.
1400         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1401
1402 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1403
1404         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1405         the result.  When string_len < len, don't clear the rest of the buffer.
1406
1407 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1408
1409         Support for new LC_COLLATE format.
1410         * locale/coll-lookup.h: New file.
1411         * locale/weightwc.h (findidx): When size == 0, call
1412         collidx_table_lookup.
1413         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1414         * wcsmbs/wcsxfrm.c: Likewise.
1415         * posix/fnmatch.c: Likewise.
1416         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1417         collseq_table_lookup.
1418         * locale/programs/3level.h: New file.
1419         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1420         by including "3level.h".
1421         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1422         collseq_table): New types, defined by including "3level.h".
1423         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1424         (encoding_mask, encoding_byte): Remove.
1425         (utf8_encode): Use simple shifts instead.
1426         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1427         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1428         (collate_output): New local variable tablewc_3level. When
1429         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1430         tablewc_3level instead of tablewc. Change format of TABLEWC and
1431         COLLSEQWC entries written to the file.
1432         * locale/C-collate.c (collseqwc): Change format.
1433         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1434         of COLLSEQWC.
1435         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1436
1437 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1438
1439         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1440         (locale_ctype_t): New charnames_idx field.
1441         (ctype_startup): Initialize charnames_idx field.
1442         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1443
1444 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1445
1446         * locale/C-ctype.c: Switch to new locale format.
1447         (_nl_C_LC_CTYPE_names): Remove array.
1448         (STRUCT_CTYPE_CLASS): New macro.
1449         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1450         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1451         New three-level tables.
1452         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1453         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1454         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1455         12 class tables and 2 map tables at the end.
1456         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1457         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1458         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1459         New declarations.
1460         (b): Remove trailing semicolon.
1461         (__ctype_names, __ctype_width): Don't initialize.
1462         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1463
1464 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1465
1466         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1467         is guaranteed to be allocated with the same malloc() and may be
1468         passed to free().
1469         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1470         been set to empty by an earlier open_path call, don't pass it again.
1471
1472 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1473
1474         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1475         we are not optimizing.
1476
1477         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1478         inclusion.
1479
1480         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1481         really match EOF.
1482         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1483
1484 2000-08-28  Andreas Jaeger  <aj@suse.de>
1485
1486         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1487
1488 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1489
1490         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1491         getpeername.  Use ISO C style function definition.
1492         (getpeername): Provide weak alias.
1493         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1494         setrlimit.  Use ISO C style function definition.
1495         (setrlimit): Provide weak alias.
1496
1497 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1498
1499         * shlib-versions: Add a rule for S/390 to the libm version list.
1500         * sysdeps/s390/Versions: New file.
1501         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1502         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1503         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1504         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1505         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1506         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1507         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1508         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1509         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1510         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1511         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1512         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1513         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1514         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1515         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1516         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1517         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1518         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1519
1520 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1521
1522         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1523         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1524
1525         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1526         * elf/dl-close.c (_dl_close): Print debug message if object is not
1527         unloaded.
1528         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1529         returning to caller.
1530
1531         * po/zh.po: Renamed to...
1532         * po/zh_TW.po: ...this.
1533
1534 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1535
1536         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1537
1538         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1539         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1540         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1541         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1542
1543 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1544
1545         * locale/programs/ld-collate.c (insert_weights): Also update
1546         backpointer of next element.
1547         (collate_read): Allow definition of new collation symbols in stage 2.
1548         Symbol after reorder-after can be UCS4 value.
1549         Allow reordering of collation symbols and elements.
1550         Do not only move reorder entry in new position.  Instead call
1551         insert_weight to do this and read the weights.
1552
1553         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1554
1555         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1556         to determine invalid locale name.
1557         * locale/findlocale.c (_nl_find_locale): Likewise.
1558
1559         * posix/annexc.c: Correct test for unavailable feature.
1560
1561         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1562         __inline.
1563
1564 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1565
1566         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1567         syscall.
1568
1569         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1570         (sysdep_routines): Add oldgetrlimit64.
1571
1572         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1573         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1574         (tests): Add unload, reldep, reldep2, and reldep3.
1575         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1576         and reldepmod4.
1577         Add rules to build and run unload, reldep, reldep2, and reldep3.
1578         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1579         Don't create relocation dependency if it is nonzero.
1580         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1581         can never happen here.
1582         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1583         Don't create relocation dependency if it is nonzero.
1584         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1585         stuff.  This can never happen here.
1586         * sysdeps/generic/ldsodefs.h: Change prototypes.
1587         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1588         _dl_lookup_up and _dl_lookup_versioned_symbol.
1589         (RESOLV): Likewise.
1590         * elf/dl-runtime.c (fixup): Likewise.
1591         (profile_fixup): Likewise.
1592         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1593         _dl_lookup_symbol.
1594         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1595         * elf/rtld.c (dl_main): Likewise.
1596         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1597         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1598         and pass down the caller map.
1599         (_dl_vsym): Likewise.
1600         * elf/reldep.c: New file.
1601         * elf/reldep2.c: New file.
1602         * elf/reldep3.c: New file.
1603         * elf/reldepmod1.c: New file.
1604         * elf/reldepmod2.c: New file.
1605         * elf/reldepmod3.c: New file.
1606         * elf/reldepmod4.c: New file.
1607         * elf/unload.c: New file.
1608         * elf/unloadmod.c: New file.
1609
1610         * elf/do-lookup.h: Remove unused undef_name parameter.
1611         * elf/dl-lookup.c: Adjust callers.
1612
1613 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1614
1615         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1616         irreversible in recursive call of conversion function to signal that
1617         no error handling is wanted.
1618         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1619         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1620         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1621         recursive error handling call, otherwise to &lirreversible.  Use it
1622         for calls to conversion functions.
1623         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1624         transliterating.
1625         (ucs4_internal_loop_unaligned): Likewise.
1626         (ucs4le_internal_loop): Likewise.
1627         (ucs4le_internal_loop_unaligned): Likewise.
1628
1629 2000-08-25  Greg McGary  <greg@mcgary.org>
1630
1631         * sysdeps/i386/memchr.S: Check high bound against chars
1632         actually scanned.
1633         * sysdeps/i386/memcmp.S: Likewise.
1634         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1635         account for pointers that lie one beyond end-of-buffer.
1636
1637 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1638
1639         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1640         * elf/nodelete.c (fini_ran): New global variable.
1641         (do_test): Before every dlclose call clear fini_ran and test
1642         afterwards that it is not set by the destructors.
1643         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1644         * elf/nodelmod2.c: Likewise.
1645         * elf/nodelmod4.c: Likewise.
1646
1647 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1648
1649         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1650         getrlimit to the list.
1651
1652 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1653
1654         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1655         long double format so use ldbl-96 instead of ldbl-128.
1656
1657 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1658
1659         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1660         even if bits 10 a 11 are non-zero.
1661         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1662
1663         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1664         included before building gnu/lib-names.h
1665         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1666
1667         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1668         marked DF_1_NODELETE.
1669
1670         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1671         since we call sigaction in the child.
1672
1673 2000-08-25  Andreas Jaeger  <aj@suse.de>
1674
1675         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1676         gconv-modules.
1677
1678 2000-08-25  Andreas Jaeger  <aj@suse.de>
1679
1680         * manual/arith.texi (Control Functions): Clarify possible
1681         arguments.  Closes PR libc/1856.
1682
1683 2000-08-24  H.J. Lu  <hjl@gnu.org>
1684
1685         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1686         * malloc/Makefile (tests): Likewise.
1687
1688 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1689
1690         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1691
1692 2000-08-24  Andreas Jaeger  <aj@suse.de>
1693
1694         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1695         only if LIBGD is available.
1696
1697 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1698
1699         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1700         problems with now restrict parameter types.
1701         (convaddr4to6): Likewise.
1702
1703 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1704
1705         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1706         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1707         * sysdeps/s390/fpu/fegetexcept.c: New file.
1708         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1709         FPC_VALID_MASK.
1710
1711 2000-08-24  Andreas Jaeger  <aj@suse.de>
1712
1713         * malloc/Makefile (extra-objs): Add memusagestat.o.
1714         (generated): Added memusage and memusagestat for make clean.
1715
1716         * libio/tst_putwc.c (do_test): Delete temporary file.
1717         Move inclusion of test-skeleton to front to have prototype for
1718         add_temp_file.
1719
1720         * posix/Makefile (generated): Add wordexp-tst.out.
1721
1722 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1723
1724         * resolv/res_hconf.c (free_mem): Remove not needed if.
1725
1726         * time/tzset.c (free_mem): New function.
1727         * string/strsignal.c (free_mem): New function.
1728         * inet/inet_ntoa.c (free_mem): New function.
1729         * sunrpc/clnt_perr.c (free_mem): New function.
1730
1731 2000-08-24  Andreas Jaeger  <aj@suse.de>
1732
1733         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1734         * sysdeps/unix/sysv/syscalls.list: Likewise.
1735
1736         * posix/unistd.h: Move internal prototypes from here ...
1737         * include/unistd.h: ... to here.
1738
1739         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1740
1741 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1742
1743         * grp/initgroups.c (initgroups): Deallocate groups array.
1744         Reported by jani.raiha@sonera.com [PR libc/1868].
1745
1746         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1747         * sysdeps/alpha/Dist: Likewise.
1748
1749 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1750
1751         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1752         destructor).  Reported by Solar Designer <solar@false.com>.
1753
1754         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1755         avoid adding double slashes.
1756
1757 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1758
1759         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1760         out of the __REDIRECT macro.
1761
1762 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1763
1764         * stdio-common/vfscanf.c: Add %F format support.
1765
1766         * locale/programs/ld-ctype.c (ctype_output): Make sure
1767         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1768         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1769         (ctype_read): Enable returning of wide character strings for reading
1770         transliteration information.
1771
1772 2000-08-23  Andreas Jaeger  <aj@suse.de>
1773
1774         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1775         Use static __inline instead of _EXTERN_INLINE.
1776
1777         * misc/sys/select.h: Move prototypes of __select from here ...
1778         * include/sys/select.h: ... to here.
1779
1780         * socket/sys/socket.h: Move prototypes of __send and __connect
1781         from here....
1782         * include/sys/socket.h: ... to here.
1783
1784         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1785         lr_error.
1786
1787 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1788
1789         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1790         __setrlimit as strong name. Takes only 2 arguments.
1791
1792         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1793         takes only 2 arguments.
1794
1795 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1796
1797         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1798
1799         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1800
1801 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1802
1803         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1804         default_missing character being specified, pick the first
1805         representable.
1806
1807 2000-08-23  Andreas Jaeger  <aj@suse.de>
1808
1809         * include/wchar.h: Add some pure attributes.
1810
1811         * time/time.h: Add const attribute for dysize.
1812
1813         * include/stdlib.h: Add malloc attribute to __posix memalign.
1814
1815         * stdlib/stdlib.h: Add some pure and malloc attributes.
1816         * wcsmbs/wchar.h: Likewise.
1817
1818         * dirent/dirent.h: Add some pure attributes.
1819         * include/dirent.h: Likewise.
1820
1821 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1822
1823         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1824         on 64bit arches.
1825
1826 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1827
1828         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1829         missing buffer size checks.
1830
1831 2000-08-23  Andreas Jaeger  <aj@suse.de>
1832
1833         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1834         strong name.
1835         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1836
1837         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1838         otherwise __LINUX_KERNEL_VERSION might not be defined.
1839         (MIN): Define if not already defined.
1840
1841 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1842
1843         * stdio-common/vfprintf.c: Handle %F format.
1844         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1845         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1846
1847         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1848
1849         * po/zh.po: New file.
1850
1851         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1852         enough room in target buffer.
1853         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1854         * iconvdata/bug-iconv1.c: New file.
1855         * iconvdata/Makefile (tests): Add bug-iconv1.
1856
1857         * locale/iso-4217.def: Update entry for Nicaragua.
1858
1859 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1860
1861         * hurd/hurdsig.c: Rearrange headers a bit.
1862         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1863         when cthreads is being used.
1864
1865 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1866
1867         * elf/Makefile (distribute): Add dl-osinfo.h.
1868         * sysdeps/generic/dl-osinfo.h: New file.
1869         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1870         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1871         if defined.
1872         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1873         only for !SHARED case.  Get the code from dl-osinfo.h.
1874
1875         * stdlib/random_r.c: Cleanups.
1876         * stdlib/tst-random.c: New file.
1877         * stdlib/Makefile (tests): Add tst-random.
1878         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1879
1880 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1881
1882         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1883         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1884         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1885         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1886
1887 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1888
1889         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1890         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1891         (__syscall__sysctl): Add.
1892
1893 2000-08-21  Andreas Jaeger  <aj@suse.de>
1894
1895         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1896         libc/1864).
1897         * stdlib/tst-strtoll.c: Likewise.
1898
1899 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1900
1901         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1902         correctly.
1903         (__initstate_r): Set errno on error.
1904         (__random_r): Likewise.
1905         (__setstate_r): Correct offset when computing
1906         new rptr and fptr.  Test for arg_state being NULL.
1907         Reported by Michael Fischer <fischer@cs.yale.edu>.
1908
1909         * posix/regex.h: Add macro definitions to allow compiling outside
1910         glibc.
1911
1912         * sysdeps/i370/Implies: Removed.
1913         * sysdeps/mvs/Implies: Removed.
1914
1915         * catgets/catgets.c (catopen): Filter out env_var values with / if
1916         necessary.
1917
1918         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1919         locale name after all getenvs.
1920
1921         * configure.in: Allow sed versions like 3.02.8.
1922         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1923
1924 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1925
1926         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1927
1928 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1929
1930         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1931         of gethostbyname2_r call.
1932
1933         * intl/locale.alias: Add aliases for Korean.
1934
1935 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1936
1937         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1938         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1939         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1940         * sysdeps/s390/fpu/fegetenv.c: New file.
1941         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1942         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1943         * sysdeps/s390/fpu/fenv_libc.h: New file.
1944         * sysdeps/s390/fpu/fesetenv.c: New file.
1945         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1946         * sysdeps/s390/fpu/feupdateenv.c: New file.
1947         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1948         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1949         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1950         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1951         * sysdeps/s390/fpu/ftestexcept.c: New file.
1952         * sysdeps/s390/fpu/libm-test-ulps: New file.
1953         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1954         * sysdeps/s390/initfini.c: New file.
1955         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1956         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1957         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1958         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1959         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1960         sys/procfs.h as proposed by Mark Kettenis.
1961         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1962
1963 2000-08-21  Andreas Jaeger  <aj@suse.de>
1964
1965         * include/poll.h: Include include/sys/poll.h to get __poll
1966         declaration.
1967
1968         * io/sys/poll.h: Move __poll declaration from here...
1969         * include/sys/poll.h: ...to here.
1970
1971         * include/sys/socket.h (__getpeername): Add declaration.
1972
1973         * include/wchar.h (__vswprintf): Add declaration.
1974
1975         * include/stdio.h (__flockfile): Add declaration.
1976         (__funlockfile): Likewise.
1977
1978 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1979
1980         * misc/sys/cdefs.h: Define __restrict_arr.
1981         * include/sys/time.h: Add restrict where required by AGd4.
1982         * inet/arpa/inet.h: Likewise.
1983         * io/sys/stat.h: Likewise.
1984         * io/sys/statvfs.h: Likewise.
1985         * misc/search.h: Likewise.
1986         * misc/sys/select.h: Likewise.
1987         * posix/glob.h: Likewise.
1988         * posix/regex.h: Likewise.
1989         * posix/spawn.h: Likewise.
1990         * posix/unistd.h: Likewise.
1991         * rt/aio.h: Likewise.
1992         * signal/signal.h: Likewise.
1993         * socket/sys/socket.h: Likewise.
1994         * stdlib/ucontext.h: Likewise.
1995         * streams/stropts.h: Likewise.
1996         * string/string.h: Likewise.
1997         * time/time.h: Likewise.
1998         * time/sys/time.h: Likewise.
1999
2000         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2001         and posix_spawnattr_setscheparam.
2002
2003         * libio/stdio.h: Make cuserid prototype again available for all
2004         XPG versions.
2005
2006         * argp/argp-help.c: Unify use of function aliases to make more compact
2007         PLT.
2008         * include/libintl.h: Likewise.
2009         * inet/rcmd.c: Likewise.
2010         * intl/dcigettext.c: Likewise.
2011         * libio/iofputws.c: Likewise.
2012         * libio/iofputws_u.c: Likewise.
2013         * libio/iogetwline.c: Likewise.
2014         * libio/swprintf.c: Likewise.
2015         * malloc/malloc.c: Likewise.
2016         * nss/digits_dots.c: Likewise.
2017         * posix/fnmatch.c: Likewise.
2018         * posix/spawn_faction_addclose.c: Likewise.
2019         * posix/spawn_faction_adddup2.c: Likewise.
2020         * posix/spawn_faction_addopen.c: Likewise.
2021         * posix/spawni.c: Likewise.
2022         * posix/wordexp.c: Likewise.
2023         * posix/spawni.c: Likewise.
2024         * resolv/res_hconf.c: Likewise.
2025         * resolv/res_init.c: Likewise.
2026         * shadow/lckpwdf.c: Likewise.
2027         * signal/sighold.c: Likewise.
2028         * signal/sigrelse.c: Likewise.
2029         * stdio-common/printf-parse.h: Likewise.
2030         * stdio-common/printf-prs.c: Likewise.
2031         * stdio-common/printf_fp.c: Likewise.
2032         * stdio-common/vfprintf.c: Likewise.
2033         * stdio-common/vfscanf.c: Likewise.
2034         * stdlib/rpmatch.c: Likewise.
2035         * sunrpc/create_xid.c: Likewise.
2036         * sunrpc/key_call.c: Likewise.
2037         * sysdeps/generic/setrlimit64.c: Likewise.
2038         * sysdeps/generic/utmp_file.c: Likewise.
2039         * sysdeps/generic/vlimit.c: Likewise.
2040         * sysdeps/posix/posix_fallocate.c: Likewise.
2041         * sysdeps/posix/posix_fallocate64.c: Likewise.
2042         * sysdeps/posix/sigpause.c: Likewise.
2043         * sysdeps/posix/sigset.c: Likewise.
2044         * sysdeps/unix/grantpt.c: Likewise.
2045         * sysdeps/unix/bsd/ualarm.c: Likewise.
2046         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2047         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2048         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2049         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2050         * time/strftime.c: Likewise.
2051         * wcsmbs/wcscoll.c: Likewise.
2052         * wcsmbs/wcsxfrm.c: Likewise.
2053
2054         * time/tst-getdate.c (main): Make error messages more human readable.
2055
2056         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2057         postinc/predec instruction.
2058         (_FPU_SETCW): Likewise.
2059         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2060
2061 2000-08-20  Andreas Jaeger  <aj@suse.de>
2062
2063         * time/tst-getdate.c (main): Increase error in case of wrong
2064         conversion.
2065         Fix typo in test case.
2066
2067 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2068
2069         * ctype/ctype.h (isblank): Make available if ISO C99.
2070         * wctype/wctype.h (iswblank): Make available if ISO C99.
2071         * math/math.h (signgam): Don't make available if ISO C99.
2072         * math/tgmath.h (tgamma): Renamed from gamma.
2073         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2074
2075         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2076         Pretty printing.
2077         * intl/plural.y (new_exp): Take number of optional parameters in
2078         second parameter.  Test for correct number of parameters and free
2079         correctly in case of failure.  Adjust all callers.
2080         (yylex): Allow ';' as terminator character.
2081
2082 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2083
2084         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2085         walt_digits.
2086
2087         * locale/findlocale.c (free_mem): Also free here->filename.
2088
2089         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2090
2091         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2092         first test.
2093         (feexcp_nomask_test): Correct printf args.
2094         (feexcp_mask_test): Likewise.
2095
2096 2000-08-19  Andreas Jaeger  <aj@suse.de>
2097
2098         * inet/tst-gethnm.c: Include string.h to provide prototype for
2099         strcmp.
2100
2101         * malloc/mtrace.pl (usage): Inform about --help.
2102
2103 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2104
2105         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2106         size HEAP_MAX_SIZE.
2107
2108 2000-08-19  Andreas Jaeger  <aj@suse.de>
2109
2110         * shlib-versions: Remove libnss_db, libdb and libdb1.
2111
2112 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2113
2114         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2115         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2116         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2117         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2118         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2119         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2120         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2121         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2122         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2123         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2124         getdents.
2125         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2126         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2127
2128 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2129
2130         * include/glob.h (__glob64): Add prototype.
2131         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2132         define glob and glob_in_dir.
2133         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2134         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2135         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2136         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2137         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2138         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2139         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2140         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2141
2142 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2143
2144         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2145
2146 2000-08-17  Andreas Jaeger  <aj@suse.de>
2147
2148         * math/test-fenv.c (fe_single_test): New function.
2149         (fe_env_tests): Use fe_single_test.
2150         (feenable_test): New tests for feenable/fedisable and
2151         fegetexcpetions.
2152         (feexcp_mask_test): New function.
2153         (feexcp_nomask_test): New function.
2154
2155 2000-08-19  Richard Henderson  <rth@cygnus.com>
2156
2157         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2158         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2159         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2160         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2161         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2162         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2163         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2164         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2165         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2166         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2167         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2168         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2169         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2170         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2171         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2172         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2173         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2174
2175 2000-08-19  Andreas Jaeger  <aj@suse.de>
2176
2177         * elf/constload1.c: Include <stdio.h> for puts prototype.
2178
2179 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2180
2181         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2182         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2183         a dynamically loaded object remove old l_initfini list.
2184         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2185         remove some dynamically allocated memory blocks in the dynamic
2186         loading data structures.
2187         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2188         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2189         Instead call _dl_check_map_versions only for the dependencies.
2190         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2191         information of initial objects as not free-able.
2192         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2193         element.
2194
2195         * elf/filter.c: Call mtrace.
2196         * elf/restest1.c: Likewise.  Close the objects.
2197         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2198         debug information.
2199
2200         * elf/constload1.c: Add comment explaining not freed memory.
2201
2202 2000-08-18  Andreas Jaeger  <aj@suse.de>
2203
2204         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2205         alignment for structs stat and stat64.
2206         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2207
2208 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2209
2210         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2211         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2212
2213         * nss/Versions: Remove libnss_db information.
2214
2215 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2216
2217         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2218         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2219         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2220         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2221
2222         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2223         to match Solaris.
2224
2225 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2226
2227         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2228         (_FPU_SETCW): Likewise.
2229         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2230
2231         * stdio-common/printf_fp.c: Fix chars_needed computation.
2232         Patch by Greg McGary <greg@mcgary.org>.
2233
2234 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2235
2236         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2237         _dl_loaded are NULL.
2238
2239 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2240
2241         * manual/arith.texi (feholdexcept): Returns 0 on success.
2242
2243 2000-08-17  Andreas Jaeger  <aj@suse.de>
2244
2245         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2246         (ifr_newname): New.
2247         Reported by Andi Kleen <ak@suse.de>.
2248
2249 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2250
2251         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2252         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2253         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2254
2255 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2256
2257         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2258         of buf->st_ino and kbuf->st_ino, not __st_ino.
2259         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2260         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2261         directive so that only linux/getdents.c is used, not some
2262         architecture specific one.
2263
2264 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2265
2266         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2267         enabled, not disabled exceptions.
2268         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2269         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2270
2271 2000-08-17  Greg McGary  <greg@mcgary.org>
2272
2273         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2274         from test program name when constructing suffix for $(LDLIBS-*).
2275         (bounded-thread-library): New variable.
2276         * crypt/Makefile
2277         [build-shared, build-static] (libcrypt-dep): Remove variable.
2278         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2279         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2280         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2281         (librt-tests): Add variable.  (tests): Use it.
2282         [build-shared, build-static]
2283         ($(addprefix $(objpfx),$(tests)),
2284         $(addprefix $(objpfx),$(librt-tests))):
2285         Consolidate individual dependencies.
2286         [build-bounded]
2287         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2288         Add dependencies.
2289         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2290         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2291         * misc/Makefile
2292         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2293         * rt/Makefile
2294         [build-shared, build-static]
2295         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2296         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2297
2298 2000-08-17  Greg McGary  <greg@mcgary.org>
2299
2300         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2301         * sysdeps/unix/make-syscalls.sh: Likewise.
2302         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2303         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2304         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2305         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2306         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2307
2308 2000-08-17  Greg McGary  <greg@mcgary.org>
2309
2310         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2311         Wrap extern symbols in BP_SYM ().
2312         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2313         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2314         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2315         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2316         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2317         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2318         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2319         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2320         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2321         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2322
2323 2000-08-16  Andreas Schwab  <schwab@suse.de>
2324
2325         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2326         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2327         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2328
2329 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2330
2331         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2332         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2333         * elf/dl-support.c: Define _nl_nloaded.
2334         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2335         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2336         object to global list.
2337         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2338         from _dl_loaded list.
2339         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2340         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2341         number here.
2342
2343         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2344         unmask, exceptions.
2345         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2346         exceptions.
2347         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2348
2349 2000-08-16  Andreas Jaeger  <aj@suse.de>
2350
2351         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2352
2353 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2354
2355         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2356
2357 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2358
2359         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2360         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2361         (sysdep_routines): Add oldgetrlimit64.
2362         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2363         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2364
2365         * include/link.h: Undo last patches.  Hurd now has stat64.
2366         * elf/Makefile: Likewise.
2367         * elf/dl-load.c: Likewise.
2368         * elf/dl-misc.c: Likewise.
2369         * elf/dl-profile.c: Likewise.
2370         * sysdeps/generic/sysd-link.h: Removed.
2371         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2372
2373         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2374         thread event callback function.
2375         (__aio_notify_only): Use function above.
2376         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2377
2378 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2379
2380         * sysdeps/mach/hurd/lseek64.c: New file.
2381
2382 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2383
2384         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2385         Remove typedefs.
2386         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2387         typedefs.
2388         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2389         typedefs.
2390         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2391
2392 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2393
2394         * sysdeps/mach/hurd/xstatconv.c: New file.
2395         * sysdeps/mach/hurd/fxstat64.c: New file.
2396         * sysdeps/mach/hurd/lxstat64.c: New file.
2397         * sysdeps/mach/hurd/xstat64.c: New file.
2398         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2399
2400 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2401
2402         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2403         Initialize, needed for change in common symbol handling in newer
2404         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2405
2406 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2407
2408         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2409         * elf/constload2.c: Add destructor to unload constload3.
2410
2411         * include/link.h: Include sysd-link.h.
2412         * sysdeps/generic/sysd-link.h: New file.
2413         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2414         * elf/Makefile (distribute): Add sysd-link.h.
2415         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2416         types and functions directly.
2417         * elf/dl-misc.c: Likewise.
2418         * elf/dl-profile.c: Likewise.
2419
2420         * elf/loadfail.c (main): Close all successfully loaded objects.
2421
2422         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2423         free wd.
2424         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2425         there is already one.
2426
2427         * elf/dl-close.c: Pretty print.
2428
2429 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2430
2431         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2432         global (with file scope).  Add __libc_subfreeres function to free the
2433         string.
2434         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2435         in ttyname function.
2436
2437         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2438
2439         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2440
2441         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2442         mapping them to /x5c and /x7e respectively.
2443
2444         * locale/programs/ld-ctype.c: Add support for more definitions after
2445         copy statement.
2446
2447 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2448
2449         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2450         * sysdeps/unix/sysv/linux/kernel-features.h
2451         (__ASSUME_GETDENTS64_SYSCALL): Define.
2452         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2453         syscall if available to get d_type fields.
2454         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2455         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2456         __lxstat64): Export at GLIBC_2.2.
2457         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2458         Likewise.
2459         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2460         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2461         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2462         getdirentries64, versionsort64): Remove.
2463         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2464         getdirentries64, versionsort64): Remove.
2465
2466 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2467
2468         * posix/Makefile: Remove rules to generate glob package.
2469
2470         * posix/Makefile (tests): Add tst-regexloc.
2471         (tst-regexloc-ENV): Add LOCPATH.
2472         * posix/tst-regexloc.c: New file.
2473
2474 2000-08-12  Andreas Jaeger  <aj@suse.de>
2475
2476         * include/features.h (__STDC_ISO_10646__): Define.
2477         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2478
2479 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2480
2481         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2482
2483         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2484         for revision 6 and up).
2485
2486         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2487         including <time.h>.
2488         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2489         to get definitions of just these types.
2490
2491         * signal/signal.h: Define thread signal handling functions also for
2492         POSIX95.
2493
2494         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2495         POSIX95.
2496         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2497         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2498         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2499         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2500
2501         * sysvipc/sys/shm.h: Define pid_t for XPG.
2502
2503         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2504         they are not anymore required here.
2505
2506         * wcsmbs/wchar.h: Make the various wide char string and stream
2507         functions available for the respective XPG versions.
2508
2509         * nss/Makefile: Remove rules to build and distribute nss_db.
2510
2511         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2512         * sysdeps/generic/scandir64.c: Likewise.
2513         * sysdeps/generic/versionsort64.c: Likewise.
2514
2515 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2516             Benjamin Koznik  <bkoz@redhat.com>
2517
2518         * libio/fileops.c: Merge with libstdc++-v3.
2519         * libio/genops.c: Likewise.
2520         * libio/iofclose.c: Likewise.
2521         * libio/iofopen.c: Likewise.
2522         * libio/iofwide.c: Likewise.
2523         * libio/libio.h: Likewise.
2524         * libio/libioP.h: Likewise.
2525         * libio/stdfiles.c: Likewise.
2526         * libio/stdio.c: Likewise.
2527         * libio/wfileops.c: Likewise.
2528         * libio/wgenops.c: Likewise.
2529
2530         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2531
2532 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2533
2534         * locale/programs/localedef.c: Implement --prefix option to allow
2535         writing in standard places of alternative install directories.
2536
2537         * posix/regex.c (compile_range): Implement collation sequence
2538         handling for glibc.  Use simple character ordering otherwise and
2539         not strcoll.
2540
2541 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2542
2543         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2544
2545 2000-08-12  Andreas Jaeger  <aj@suse.de>
2546
2547         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2548         __USE_FILE_OFFSET64 correctly for locking.
2549         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2550
2551 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2552
2553         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2554         Define for 2.4.1 on sparc as well.
2555         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2556         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2557         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2558         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2559
2560 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2561
2562         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2563         defined.
2564
2565 2000-08-12  Andreas Jaeger  <aj@suse.de>
2566
2567         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2568         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2569
2570         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2571         mips2 for assembler.
2572
2573         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2574         if fnctl64 is not available for F_*LK*64.
2575
2576         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2577
2578 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2579
2580         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2581         Define for 2.4.1 on x86.
2582         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2583         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2584         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2585
2586         * dirent/dirent.h: Define DT_WHT.
2587
2588         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2589         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2590         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2591         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2592         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2593         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2594
2595 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2596
2597         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2598         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2599         * inet/Makefile (tests): Add tst-gethnm.
2600         * inet/tst-gethnm.c: New file.
2601
2602         * rt/aio_cancel.c: If canceling a specific request which is running
2603         *really* do nothing.
2604         * rt/aio_misc.h: Add `done' to states of a request.
2605         * rt/aio_misc.c: Add several tests for the correct state.
2606         Simplify request table memory handling.
2607
2608 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2609
2610         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2611         * dirent/scandir64.c: Move...
2612         * sysdeps/generic/scandir64.c: ...here.
2613         * dirent/alphasort64.c: Move...
2614         * sysdeps/generic/alphasort64.c: ...here.
2615         * dirent/versionsort64.c: Move...
2616         * sysdeps/generic/versionsort64.c: ...here.
2617         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2618         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2619         Export symbols at GLIBC_2.2.
2620         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2621         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2622         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2623         __versionsort64): Add prototypes.
2624         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2625         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2626         unused prototype.
2627         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2628         and GLIBC_2.2.
2629         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2630         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2631         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2632         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2633         __u_quad_t.
2634         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2635         Adjust for kernel-2.4.0-test6 layout.
2636         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2637         GLIBC_2.1 and GLIBC_2.2.
2638         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2639         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2640         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2641         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2642         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2643         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2644         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2645         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2646         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2647         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2648         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2649         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2650         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2651         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2652         __u_quad_t.
2653         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2654         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2655         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2656         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2657         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2658         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2659         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2660         __u_quad_t.
2661         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2662         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2663         Define.
2664         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2665         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2666         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2667         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2668         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2669         Define.
2670         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2671         alpha/readdir.c.
2672         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2673         alpha/readdir_r.c
2674         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2675         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2676         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2677         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2678         st_ino from __st_ino.
2679         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2680         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2681         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2682         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2683         set __st_ino in addition to st_ino.
2684         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2685         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2686         __old_getdents64 as well.
2687         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2688         getdirentries64 and old_getdirentries64 as well.
2689         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2690         __GETDENTS): Define.
2691         (GETDENTS64): Remove.
2692         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2693         Define.
2694         (GETDENTS64): Remove.
2695         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2696         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2697         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2698         as well.
2699         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2700         __old_readdir64_r as well.
2701         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2702         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2703
2704 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2705
2706         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2707         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2708         define of the kernel.
2709         Add missing __SEG_PSTKOVF definition.
2710         Adjust the padding of struct siginfo and struct sigevent to
2711         match the fact that sigval_t is 64 bit.
2712
2713 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2714
2715         * timezone/zic.c: Update from tzcode2000f.
2716         * timezone/australasia: Update from tzdata2000f.
2717         * timezone/europe: Likewise.
2718         * timezone/southamerica: Likewise.
2719         * timezone/yearistype: Likewise.
2720
2721 2000-08-10  Andreas Jaeger  <aj@suse.de>
2722
2723         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2724         stat with current MIPS kernel.
2725
2726 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2727
2728         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2729         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2730         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2731         Remove the junk that's only relevant in the Linux kernel itself.
2732         Add a warning saying that this file is now obsolete, and include
2733         <sys/procfs.h>.
2734         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2735         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2736         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2737         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2738         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2739         and add the notice that the file is primarily there for GDB.
2740         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2741
2742 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2743
2744         * time/tzfile.c (__tzfile_compute): __tzstring zones
2745         from zone_names.
2746
2747 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2748
2749         * resolv/resolv.h (__res_state): Surround prototype with
2750         __BEGIN_DECLS/__END_DECLS.
2751         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2752
2753 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2754
2755         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2756         Make independant of asm/resource.h from the Linux kernel.
2757
2758 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2759
2760         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2761
2762 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2763
2764         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2765         * locale/Makefile (locale-CPPFLAGS): Likewise.
2766
2767 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2768
2769         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2770         for AMD processors.
2771
2772 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2773
2774         * misc/Versions (mincore): Export at GLIBC_2.2.
2775
2776 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2777
2778         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2779
2780 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2781
2782         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2783         socketpair.  Made socketpair a weak alias.
2784         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2785         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2786         conforming, but fall back on the old protocol if the socket server
2787         doesn't support it.
2788         * include/sys/socket.h: Add prototype for __socketpair.
2789
2790 2000-08-09  Andreas Schwab  <schwab@suse.de>
2791
2792         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2793         long long modifier is seen.
2794
2795         * elf/nodelete.c (do_test): Remove reference to undefined member
2796         sa_restorer.
2797         * rt/tst-aio4.c (do_test): Likewise.
2798
2799         * configure.in: Add `-lm' when checking for libgd.
2800         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2801         linking.
2802
2803 2000-08-09  Andreas Jaeger  <aj@suse.de>
2804
2805         * configure.in: Change required make versions.
2806
2807         * manual/install.texi (Tools for Compilation): Document required
2808         make version.
2809         (Supported Configurations): Update list of supported
2810         configurations.
2811
2812 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2813
2814         * locale/linereader.c (get_string): Don't print an error is a string
2815         contains an unknown character.
2816
2817 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2818
2819         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2820         (new_symbol): Take new parameters with name of the symbol.
2821         Adjust callers.
2822         (handle_ellipsis): Don't only allow character symbols.
2823         (collate_read): Allow string of collating elements contain invalid
2824         characters; ignore entry in this case.
2825         Handle ellipsis of collating symbols before first order_start.
2826         Allow ellipsis in state 0.
2827
2828 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2829
2830         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2831         error message.
2832         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2833
2834 2000-08-04  Greg McGary  <greg@mcgary.org>
2835
2836         * posix/regex.c (SET_HIGH_BOUND): New macro.
2837         (MOVE_BUFFER_POINTER): Use it.
2838         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2839         (EXTEND_BUFFER): Use it.
2840
2841 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2842
2843         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2844         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2845         _wide_data but from _IO_FILE directly.
2846         * libio/iofclose.c: Likewise.
2847         * libio/wfileops.c: Likewise.
2848
2849         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2850         * libio/libioP.h: Change prototypes.
2851
2852 2000-08-03  Greg McGary  <greg@mcgary.org>
2853
2854         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2855         frame pointer early so that we save caller's frame pointer.
2856         * sysdeps/i386/elf/setjmp.S: Likewise.
2857
2858         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2859         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2860
2861         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2862         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2863         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2864
2865 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2866
2867         * iconvdata/big5.c: Updated.
2868         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2869
2870 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2871
2872         * Makeconfig (all-subdirs): Add conform.
2873         * conform/Makefile: Include ../Rules.
2874
2875         * Makefile (README): Add rules to generate here as well.
2876
2877 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2878
2879         * version.h (VERSION): Bump to 2.1.92.
2880
2881         * sysdeps/ia64/Dist: Add _mcount.S.
2882
2883         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2884
2885         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2886
2887         * elf/Makefile (distribute): Add missing modules.
2888
2889         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2890
2891         * posix/regex.c (compile_range): Translate range start and end
2892         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2893
2894         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2895         asm/resource.h.
2896
2897         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2898
2899 2000-08-02  Andreas Jaeger  <aj@suse.de>
2900
2901         * elf/elf.h (EM_S390): Added.
2902         (R_390_*): New relocs for S390.
2903
2904         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2905         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2906         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2907         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2908         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2909         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2910         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2911         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2912         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2913         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2914         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2915         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2916         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2917         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2918         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2919         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2920         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2921         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2922         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2923         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2924         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2925         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2926         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2927         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2928         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2929         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2930         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2931         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2932         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2933         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2934         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2935         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2936         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2937         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2938         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2939         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2940         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2941         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2942         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2943         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2944         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2945         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2946         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2947         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2948         * sysdeps/s390/sysdep.h: New file.
2949         * sysdeps/s390/sys/ucontext.h: New file.
2950         * sysdeps/s390/sub_n.S: New file.
2951         * sysdeps/s390/strncpy.S: New file.
2952         * sysdeps/s390/strcpy.S: New file.
2953         * sysdeps/s390/stackinfo.h: New file.
2954         * sysdeps/s390/setjmp.S: New file.
2955         * sysdeps/s390/s390-mcount.S: New file.
2956         * sysdeps/s390/mul_1.S: New file.
2957         * sysdeps/s390/memusage.h: New file.
2958         * sysdeps/s390/memset.S: New file.
2959         * sysdeps/s390/memcpy.S: New file.
2960         * sysdeps/s390/memchr.S: New file.
2961         * sysdeps/s390/machine-gmon.h: New file.
2962         * sysdeps/s390/ldbl2mpn.c: New file.
2963         * sysdeps/s390/gmp-mparam.h: New file.
2964         * sysdeps/s390/fpu/fpu_control.h: New file.
2965         * sysdeps/s390/fpu/fesetround.c: New file.
2966         * sysdeps/s390/fpu/fegetround.c: New file.
2967         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2968         * sysdeps/s390/fpu/bits/fenv.h: New file.
2969         * sysdeps/s390/ffs.c: New file.
2970         * sysdeps/s390/elf/start.S: New file.
2971         * sysdeps/s390/elf/setjmp.S: New file.
2972         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2973         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2974         * sysdeps/s390/dl-machine.h: New file.
2975         * sysdeps/s390/bzero.S: New file.
2976         * sysdeps/s390/bsd-setjmp.S: New file.
2977         * sysdeps/s390/bsd-_setjmp.S: New file.
2978         * sysdeps/s390/bits/string.h: New file.
2979         * sysdeps/s390/bits/setjmp.h: New file.
2980         * sysdeps/s390/bits/huge_val.h: New file.
2981         * sysdeps/s390/bits/endian.h: New file.
2982         * sysdeps/s390/bits/byteswap.h: New file.
2983         * sysdeps/s390/bcopy.S: New file.
2984         * sysdeps/s390/backtrace.c: New file.
2985         * sysdeps/s390/atomicity.h: New file.
2986         * sysdeps/s390/asm-syntax.h: New file.
2987         * sysdeps/s390/addmul_1.S: New file.
2988         * sysdeps/s390/add_n.S: New file.
2989         * sysdeps/s390/abort-instr.h: New file.
2990         * sysdeps/s390/__longjmp.c: New file.
2991         * sysdeps/s390/Makefile: New file.
2992         * sysdeps/s390/Implies: New file.
2993         * sysdeps/s390/Dist: New file.
2994         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2995
2996 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2997
2998         Remove incompatible IPv6 extension of RPC.
2999         * sunrpc/Makefile: Undo changes.
3000         * sunrpc/rpc_main.c: Likewise.
3001         * sunrpc/rpc/clnt.h: Likewise.
3002         * sunrpc/rpc/svc.h: Likewise.
3003         * sunrpc/bindrsvprt6.c: Removed.
3004         * sunrpc/clnt_tcp6.c: Removed.
3005         * sunrpc/clnt_udp6.c: Removed.
3006         * sunrpc/svc_tcp6.c: Removed.
3007         * sunrpc/svc_udp6.c: Removed.
3008
3009         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3010         dgettext, and dcgettetxt.
3011
3012         * intl/locale.alias: Update japanese aliases.
3013
3014         * sysdeps/ia64/bits/byteswap.h: New file.
3015         Patch by Dan Pop <Dan.Pop@cern.ch>.
3016
3017         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3018         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3019
3020 2000-07-13  H.J. Lu  <hjl@gnu.org>
3021
3022         * posix/regex.c (re_max_failures): Set to 4000.
3023
3024 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3025
3026         * gnulib/Makefile (tests): Add tst-gcc.
3027         * gnulib/tst-gcc.c: New file.
3028
3029         * assert/Makefile (routines): Add __assert.
3030         * assert/Versions: Export __assert for glibc 2.2.
3031         * assert/__assert.c: New file.
3032         * assert/assert.h: Declare __assert.
3033
3034 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3035
3036         * locale/localeinfo.h (_ISCTYPE): New macro.
3037         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3038         LC_CTYPE locale format.
3039         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3040         (ctype_output): Output class_b[nr] right before class_3level[nr].
3041         (allocate_arrays): Fill class_b, similarly to class_3level.
3042
3043 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3044             Joseph S. Myers  <jsm28@cam.ac.uk>
3045
3046         * math/tgmath.h: Make standard compliant.  Don't ask how.
3047
3048 2000-07-04  H.J. Lu  <hjl@gnu.org>
3049
3050         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3051         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3052         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3053
3054 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3055
3056         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3057         (__USE_LARGEFILE): Add an explanation.
3058         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3059         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3060
3061 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3062
3063         * libio/Makefile: Enable exception handling for genops, wgenops,
3064         fileops, and wfileops.
3065
3066 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3067
3068         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3069         acount that elf/rtld's main program might remove some varibales
3070         from the environment if we're trying to be secure.  Move the Hurd
3071         startup data if necessary, or, if we there is no startup data,
3072         make sure the magical convention that ARGV[0] is stored just after
3073         the environment list.
3074
3075 2000-08-01  Philip Blundell  <philb@gnu.org>
3076
3077         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3078         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3079         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3080         oldsetrlimit for GLIBC_2.0.
3081
3082 2000-08-01  Andreas Jaeger  <aj@suse.de>
3083
3084         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3085         (LINE_PARSER): Allow any number of spaces between ip address and
3086         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3087
3088         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3089
3090         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3091         constants in.
3092
3093         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3094         _nss_nisplus_getipnodebyname_r.
3095
3096         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3097         now, getipnodebyname is deprecated.
3098         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3099         Likewise.
3100
3101         * inet/Makefile (routines): Don't build getipnodebyaddr and
3102         friends.
3103
3104         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3105
3106         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3107
3108         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3109
3110         * wctype/Makefile (distribute): Add wchar-lookup.h.
3111
3112         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3113
3114         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3115
3116 2000-08-01  Andreas Schwab  <schwab@suse.de>
3117
3118         * Make-dist (dist): Resolve `..' in file names.
3119
3120 2000-08-01  Andreas Jaeger  <aj@suse.de>
3121
3122         * stdio-common/Makefile (distribute): Remove removed files, add
3123         new files.
3124
3125         * Makefile (distribute): Remove include/db_185.h and db.h.
3126
3127         * include/db_185.h: Remove, it's not needed anymore.
3128         * include/db.h: Likewise.
3129
3130 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3131
3132         * inet/Makefile (tests): Remove tst-ipnode.
3133         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3134         now.
3135
3136 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3137
3138         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3139         endp statements have already been added.
3140
3141 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3142
3143         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3144         <sysdeps/ia64/sysdep.h>.
3145
3146         * sysdeps/ia64/_mcount.S: New file.
3147
3148         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3149         __gmon_start__.  Fix up extraneous whitespace.
3150
3151 2000-01-12  H.J. Lu  <hjl@gnu.org>
3152
3153         * sysdeps/ia64/elf/initfini.c: New file.
3154
3155 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3156
3157         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3158         dependency between branch and ar.pfs write.
3159
3160 2000-07-31  H.J. Lu  <hjl@gnu.org>
3161
3162         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3163         handle the wchar_t array.
3164
3165 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3166
3167         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3168         10646 which are not yet assigned.
3169         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3170
3171 2000-07-31  Andreas Jaeger  <aj@suse.de>
3172
3173         * inet/Versions: Remove getipnodebyaddr and friends from
3174         GLIBC_2.2.
3175
3176         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3177
3178 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3179
3180         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3181         ch >= 0x81 && ch2 < 0x40 as invalid.
3182
3183 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3184
3185         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3186         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3187
3188 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3189
3190         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3191         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3192
3193 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3194
3195         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3196         0xb8.
3197         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3198
3199 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3200
3201         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3202
3203 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3204
3205         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3206         (from_ucs4): Change values of U+00A4 and U+00ED.
3207         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3208
3209 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3210
3211         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3212         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3213
3214 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3215
3216         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3217         * iconvdata/isiri-3342.h: New file.
3218         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3219         treat 0x80 as a gap.
3220
3221 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3222
3223         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3224         (utf8_encode): Use simple shifts instead.  Fix return value.
3225
3226 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3227
3228         * timezone/private.h: Update from tzcode2000e.
3229         * timezone/asia: Update from tzdata2000e.
3230         * timezone/australasia: Likewise.
3231         * timezone/europe: Likewise.
3232         * timezone/northamerica: Likewise.
3233         * timezone/zone-tab: Likewise.
3234
3235 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3236
3237         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3238         the order of struct sigaltstack members is different.
3239
3240 2000-07-26  Philip Blundell  <philb@gnu.org>
3241
3242         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3243
3244 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3245
3246         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3247         * locale/programs/ld-ctype.c: Adjust for this.
3248
3249         * locale/programs/ld-collate.c: Add more alignment checks.
3250         * locale/string/strcoll.c: Likewise.
3251
3252 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3253
3254         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3255         outside USE_IN_LIBIO block.
3256
3257 2000-07-26  Philip Blundell  <philb@gnu.org>
3258
3259         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3260         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3261
3262 2000-07-28  Philip Blundell  <philb@gnu.org>
3263
3264         * math/test-fpucw.c: Ignore reserved bits in control word.
3265
3266 2000-07-28  Philip Blundell  <philb@gnu.org>
3267
3268         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3269         (ret): Redefine to PSEUDO_RET.
3270         (PSEUDO): Remove jump to syscall_error.
3271
3272 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3273
3274         * resolv/README: Add some information about using the resolver in
3275         multi-threaded code and with C++.  Spelling fixes.
3276
3277 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3278
3279         * resolv/resolv.h (struct __sockaddr_in): Remove.
3280         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3281
3282 2000-07-29  Greg McGary  <greg@mcgary.org>
3283
3284         * Rules (test-bp-inputs, make-test-out): New variables.
3285         ($(objpfx)%-bp.out): New rule.
3286         ($(objpfx)%.out): Rewrite in terms of new variables.
3287
3288         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3289         internal function that uses vtable.
3290         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3291         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3292
3293         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3294         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3295         (chunk_align): Likewise.
3296
3297         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3298         in a way that conforms to decl, and avoids spurious bounds violation.
3299
3300         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3301         * sysdeps/generic/frame.h: Likewise.
3302         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3303         around return value.
3304         (__backtrace): Qualify frame-pointer chain and return address
3305         pointers as __unbounded.  Wrap bounds around variable `current'.
3306         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3307         around return value.
3308         (catch_segfault): Qualify frame-pointer chain and return address
3309         pointers as __unbounded.  Wrap bounds around variable `current'.
3310         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3311         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3312         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3313         __unbounded.
3314         (__backtrace): Qualify frame-pointer chain and return address
3315         pointers as __unbounded.  Wrap bounds around variable `current'.
3316
3317         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3318         * sysdeps/i386/mul_1.S: Likewise.
3319         * sysdeps/i386/submul_1.S: Likewise.
3320         * sysdeps/i386/i586/addmul_1.S: Likewise.
3321         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3322         * sysdeps/i386/i586/submul_1.S: Likewise.
3323
3324 2000-07-27  Andreas Jaeger  <aj@suse.de>
3325
3326         * libio/Depend: New file, libio needs localedata for tests.
3327         * posix/Depend: Likewise.
3328
3329 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3330
3331         * stdio-common/_i18n_itoa.c: Removed.
3332         * stdio-common/_i18n_itoa.h: Removed.
3333         * stdio-common/_i18n_itowa.c: Removed.
3334         * stdio-common/_i18n_itowa.h: Removed.
3335         * stdio-common/_i18n_number.h: New file.
3336         * stdio-common/Depend: New file.
3337         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3338         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3339         printing.  Change printing of numbers with locale specific digits to
3340         use new code in _i18n_number.h.
3341         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3342         _i18n_itowa.
3343
3344         * stdio-common/bug13.c: Improve messages.
3345
3346         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3347         (set_class_defaults): Always search also for Uxxxx names.
3348         Detect insufficient number of outdigits.
3349
3350         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3351
3352 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3353
3354         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3355         _NL_CTYPE_MAP_NAMES.
3356         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3357         * wctype/wcfuncs.c (towlower, towupper): Use them.
3358         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3359         * wctype/wctrans.c (wctrans): Likewise.
3360         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3361
3362 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3363
3364         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3365         Use the optimized version of this function outside glibc as well.
3366
3367 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3368
3369         * locale/indigits.h (indigit_value): Correct.
3370         * locale/indigitswc.h (indigitwc_value): Correct.
3371         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3372         conversion, add GROUP checking for it, fix GROUP number
3373         conversion with strlen(thousands) > 1.
3374         Honour width correctly in the presence of floating
3375         decimal points and thousands separators.
3376         * stdio-common/tst-sscanf.c: New test.
3377         * stdio-common/Makefile: Add it to tests.
3378         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3379         thousands separators and group argument is non-zero.
3380
3381 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3382
3383         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3384         starts at GLIBC_2.2.
3385
3386 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3387
3388         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3389         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3390         _test_and_set.
3391         (headers): Add sys/tas.h.
3392         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3393         GLIBC_2.2 from libc.
3394         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3395         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3396         _test_and_set.
3397
3398 2000-07-28  Andreas Jaeger  <aj@suse.de>
3399
3400         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3401
3402         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3403         ($(objpfx)tst-dladdr.out): new.
3404         (tests): Add tst-dladdr.
3405         ($(objpfx)glrefmain): Use libdl.
3406
3407         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3408         <vs@caldera.de>.
3409
3410 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3411
3412         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3413         ftruncate(64) calls.
3414
3415 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3416
3417         * intl/tst-translit.c: Include string.h to get prototype for
3418         strcmp().
3419
3420 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3421
3422         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3423         name and add weak alias for __fork.
3424
3425         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3426         & pwrite to use __libc_<name> as strong names instead of
3427         __syscall_<name>.
3428
3429         * include/sched.h: Add clone2 prototype.
3430
3431 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3432
3433         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3434         procedure name twice.
3435
3436 2000-07-27  Philip Blundell  <philb@gnu.org>
3437
3438         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3439
3440 2000-07-27  Andreas Jaeger  <aj@suse.de>
3441
3442         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3443         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3444         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3445         Reported by Andi Kleen <ak@suse.de>.
3446
3447         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3448         (do_wait): Test requests with aio_return64.
3449         (do_test): Change callers of do_wait.
3450
3451 2000-07-26  Andreas Jaeger  <aj@suse.de>
3452
3453         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3454         (do_wait): Test requests with aio_return.
3455         (do_test): Change callers of do_wait.
3456
3457 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3458
3459         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3460         from request list.  Don't do the list handling here, call
3461         __aio_remove_request.
3462         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3463         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3464         request might already be processed.  Don't do the list handling
3465         here, call __aio_remove_request.
3466
3467         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3468         LIO_DSYNC.
3469
3470         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3471         are missing.
3472
3473 2000-07-27  Greg McGary  <greg@mcgary.org>
3474
3475         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3476         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3477         in union init.  Pass zero for ignored semnum arg to semctl.
3478         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3479
3480 2000-07-26  Greg McGary  <greg@mcgary.org>
3481
3482         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3483         data structure pointers as __unbounded.
3484         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3485         * sysdeps/generic/bp-semctl.h: New file.
3486         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3487         pointers as __unbounded.  Check bounds of syscall args.
3488         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3489         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3490         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3491         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3492         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3493         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3494         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3495         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3496         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3497         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3498         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3499         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3500         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3501         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3502         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3503         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3504
3505 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3506
3507         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3508         by default.
3509         * locale/C-ctype.c: Likewise.
3510         * wcsmbs/wcsmbsload.c: Likewise.
3511
3512 2000-07-26  Greg McGary  <greg@mcgary.org>
3513
3514         * Makeconfig (+link-bounded, link-libc-bounded,
3515         link-extra-libs-bounded): New variables.
3516         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3517         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3518         * Rules (tests-bp.out): New variable.
3519         (tests): Conditionally add BP tests.
3520         (binaries-bounded): Add variable and associated rule.
3521         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3522         Move conditional stuff after place where condition is defined.
3523
3524         * malloc/malloc.c (bp-checks.h): Add #include.
3525         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3526         (_bin_at): Add unbounded version of bin_at.
3527         (IAV, chunk_alloc): Use unbounded _bin_at.
3528         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3529         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3530         Wrap BOUNDED_N around return value.
3531         (chunk_realloc): Adjust oldsize once.
3532
3533         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3534         (__ubp_memchr): Add correct decl.
3535         (_CHECK_STRING): Use __ubp_memchr.
3536         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3537         New alias for unbounded-pointer __memchr.
3538         * sysdeps/i386/memchr.S: Likewise.
3539         * sysdeps/ia64/memchr.S: Likewise.
3540         * sysdeps/m68k/memchr.S: Likewise.
3541         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3542         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3543         * sysdeps/vax/memchr.s: Likewise.
3544
3545         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3546         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3547         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3548         * sysdeps/i386/i686/strtok.S: Likewise.
3549         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3550         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3551
3552         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3553         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3554
3555         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3556         bounds of copy_result to mount_proc.
3557
3558 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3559
3560         * wctype/wctype.h (__wctrans_l): New declaration.
3561         * wctype/wctrans_l.c: New file.
3562         * wctype/Makefile (routines): Add wctrans_l.
3563
3564 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3565
3566         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3567         Patch by MacGyver <macgyver@tos.net>.
3568
3569 2000-07-26  Andreas Jaeger  <aj@suse.de>
3570
3571         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3572         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3573         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3574
3575         * rt/tst-aio.c (test_file): Fix typo.
3576         * rt/tst-aio64.c (test_file): Likewise.
3577
3578         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3579         * rt/Makefile: Add rules to build and run tst-aio3.
3580
3581         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3582         it's not needed and confuses only.
3583
3584 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3585
3586         * resolv/res_init.c: Add support for nameserver communication with
3587         IPv6.
3588         * resolv/res_send.c: Likewise.
3589         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3590         in nsaddrs field.
3591         Patch by <venaas@nvg.ntnu.no>.
3592
3593 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3594
3595         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3596         (wcwidth_table_get): New function.
3597         (wcwidth_table_add): Call it.
3598         (wctrans_table_get): New function.
3599         (wctrans_table_add): Call it.
3600
3601 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3602
3603         * rt/lio_listio.c (lio_listio): Always disable individual
3604         notification.
3605         * rt/Makefile: Add rules to build and run tst-aio2.
3606         * rt/tst-aio2.c: New file.
3607
3608         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3609         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3610
3611 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3612
3613         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3614         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3615         leading and trailing spaces from host, user and domain name.
3616
3617 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3618
3619         * csu/defs.awk: Add support for need_endp.
3620
3621 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3622
3623         * resolv/resolv.h: Remove __P from res_send_qhook and
3624         res_send_rhook typedefs.
3625
3626 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3627
3628         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3629
3630 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3631
3632         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3633
3634 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3635
3636         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3637         calling thread, set the cancellation flag and return success
3638         instead of EINTR.
3639
3640 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3641
3642         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3643         * libio/tst-widetext.c: New file.
3644         * libio/tst-widetext.input: New file.
3645
3646         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3647
3648         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3649         empty external buffer correctly.
3650
3651 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3652
3653         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3654         __STRING(entry) and not #entry.
3655         (_RTLD_EPILOGUE): Likewise.
3656         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3657
3658 2000-07-25  Andreas Jaeger  <aj@suse.de>
3659
3660         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3661         according to changes in test program, run also with static only
3662         builds.
3663         ($(objpfx)tst-printf.out): Likewise.
3664
3665         * stdio-common/tst-unbputc.sh: Likewise.
3666         * stdio-common/tst-printf.sh: Likewise.
3667
3668 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3669
3670         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3671
3672         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3673         loop.
3674
3675         * libio/fileops.c: Pretty print.
3676
3677 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3678
3679         * wctype/wchar-lookup.h: New file.
3680         * wctype/iswctype.c: Include "wchar-lookup.h".
3681         (__iswctype): Support alternate locale format with 3-level tables.
3682         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3683         * wctype/towctrans.c (__towctrans): Likewise.
3684         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3685         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3686         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3687         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3688         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3689         __iswxdigit, towlower, towupper): Support alternate locale format
3690         with 3-level tables.
3691         * wctype/wcextra.c (iswblank): Likewise.
3692         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3693         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3694         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3695         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3696         format with 3-level tables.
3697         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3698         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3699         format, return a 3-level table pointer.
3700         * wctype/wctype_l.c (__wctype_l): Likewise.
3701         * wctype/wctrans.c (wctrans): Likewise.
3702         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3703         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3704         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3705         (iswctype): Remove macro definition.
3706         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3707         (internal_wcwidth): Support alternate locale format with 3-level
3708         tables.
3709         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3710         New nl_items.
3711         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3712         Define them as being type "word".
3713         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3714         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3715         __ctype32_width): New exported variables.
3716         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3717         alternate locale format. Don't initialize __ctype_names and
3718         __ctype_width in the alternate locale format.
3719         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3720         * locale/programs/localedef.c (oldstyle_tables): New variable.
3721         (OPT_OLDSTYLE): New macro.
3722         (options): Add --old-style option.
3723         (parse_opt): Handle --old-style option.
3724         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3725         map_offset, class_3level, map_3level, width_3level members.
3726         (ctype_output): Support for alternate locale format: Computation of
3727         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3728         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3729         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3730         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3731         now contain both class and map tables.
3732         (struct wctype_table): New type.
3733         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3734         functions.
3735         (struct wcwidth_table): New type.
3736         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3737         functions.
3738         (struct wctrans_table): New type.
3739         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3740         functions.
3741         (allocate_arrays): Support for alternate locale format: Set
3742         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3743         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3744         to the first 256 characters. Compute ctype->map_3level. Set
3745         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3746         instead of ctype->width.
3747
3748 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3749
3750         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3751         string functions.
3752
3753 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3754
3755         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3756         in wide characters, not bytes.
3757         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3758         into file.
3759
3760 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3761
3762         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3763         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3764         LC_MEASUREMENT, LC_IDENTIFICATION.
3765
3766         * locale/xlocale.h (struct __locale_struct): Increase size of
3767         __locales array.
3768         * locale/duplocale.c (__duplocale): Copy newly added categories as
3769         well.
3770         * locale/freelocale.c (__freelocale): Free newly added categories.
3771         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3772         If a base is given, use it, don't simply return it.
3773
3774 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3775
3776         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3777         variables, copied_key and copied_salt, instead of boolean variables.
3778
3779 2000-07-24  Andreas Jaeger  <aj@suse.de>
3780
3781         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3782         check for offset.
3783
3784         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3785         initgroups_function, adopted prototype for change from 2000-07-23.
3786         (initgroups): Follow type change.
3787
3788         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3789         & PAGE_MASK case, reformat.
3790
3791         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3792         from stdin and setup environment.
3793
3794 2000-07-24  Andreas Schwab  <schwab@suse.de>
3795
3796         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3797
3798 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3799
3800         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3801         more.  Patch by scarlet@mit.edu [PR libc/1799].
3802
3803         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3804         [PR libc/1792].
3805
3806         * argp/argp-parse.c (parser_finalize): Reverse order in which
3807         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3808
3809         * grp/initgroups.c (initgroups): Don't limit the possible number
3810         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3811         the setgroups call while the call fails and descrease the number
3812         of groups each round.
3813         The name of the initgroups function in the NSS modules changed.
3814         (compat_call): Adapt for dynamic resizing.
3815         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3816         Implement dynamic resizing.
3817         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3818         Likewise.
3819         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3820         * hesiod/Versions: Change exported interface name.
3821         * nis/Versions: Change exported interface name.
3822
3823 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3824
3825         * locale/iso-639.def: Some errors corrected.
3826         Patch by Keld Simonsen.
3827
3828         * include/limits.h: Update non-gcc portion.
3829         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3830
3831 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3832
3833         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3834         program's data space, reallocate only the space that was just
3835         deallocated to release its backing space.
3836
3837 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3838
3839         * stdio-common/vfprintf.c (process_string_arg): For wide character
3840         version, handle precision also correctly.
3841
3842         * nss/nss_files/files-hosts.c: Correct problem with three or more
3843         entries with the same name.
3844
3845         * nss/nss_files/files-hosts.c: Implement multi handling.
3846         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3847
3848 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3849
3850         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3851         strcasecmp.
3852
3853         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3854         * malloc/Makefile: Likewise.
3855         * malloc/tst-mtrace.sh: Likewise.
3856         * posix/Makefile: Likewise.
3857         * posix/globtest.sh: Likewise.
3858         * posix/wordexp-tst.sh: Likewise.
3859         * string/Makefile: Likewise.
3860
3861 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3862
3863         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3864         size instead of LC_ALL to take into account the new locale
3865         categories.
3866
3867 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3868
3869         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3870         remainders of hash table.
3871         * locale/categories.def: Remove remainders of transliteration
3872         hash table.
3873         * locale/langinfo.h: Likewise.
3874         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3875         transliteration tables.
3876
3877         * locale/gen-translit.pl: New file.
3878         * locale/C-translit.h.in: New file.
3879         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3880         data pointers with data from this file.
3881         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3882         and gen-translit.pl.
3883         Add rule to generate C-translit.h.
3884         * intl/tst-translit.c (main): Update for now performed
3885         transliteration.
3886
3887         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3888         (it's no input error).
3889         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3890         * stdio-common/scanf12.c: Correct expected result for first scanf.
3891
3892         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3893         of multibyte character strings in %s format with precision.
3894
3895 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3896
3897         * locale/programs/ld-collate.c (collate_read): Allow collating
3898         symbols and elements be named in reorder-after instructions.
3899         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3900
3901         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3902         duplication with generated name, not the name of the first
3903         character.
3904         Patch by Yong Li <yong.li@asu.edu>.
3905
3906         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3907         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3908
3909 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3910
3911         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3912         allocations only if a non-main arena cannot be extended.
3913
3914 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3915
3916         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3917         in DF_1_NODEFLIB handling.
3918
3919 2000-07-21  Andreas Jaeger  <aj@suse.de>
3920
3921         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3922         own rule.
3923
3924         * libio/fwide.c: Include <wchar.h> for prototype.
3925
3926 2000-07-21  Greg McGary  <greg@mcgary.org>
3927
3928         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3929         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3930         Define in terms of chunk_at_offset.
3931         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3932         (next_bin, prev_bin): offset by size of real array elements.
3933         (chunk_align): Make `m' a scalar, since that's how it's used.
3934
3935 2000-07-21  Greg McGary  <greg@mcgary.org>
3936
3937         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3938         UNCHECK_BOUNDS.
3939         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3940         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3941         Wrap bounds around argv & envp and each of their string members.
3942         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3943         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3944         symbol in BP_SYM ().  Discard bounds of address arg.
3945         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3946         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3947         Discard bounds on address arg, add bounds to return value.
3948
3949 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3950
3951         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3952         * elf/filter.c: New file.
3953         * elf/filtmod1.c: New file.
3954         * elf/filtmod2.c: New file.
3955
3956         * elf/rtld.c: Define _dl_bind_not variable.
3957         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3958         * elf/dl-support.c: Likewise.
3959         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3960         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3961         _dl_bind_not.
3962         (profile_fixup): Likewise.
3963
3964         * libio/Makefile (routines): Add fwide.
3965         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3966         fwide now.  Internal calls to _IO_fwide must do locking themselves
3967         or don't need locking.
3968         * libio/fwide.c: New file.
3969
3970         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3971
3972         * elf/Makefile: Add no modules for nodelete test.
3973         * elf/nodelmod3.c: New file.
3974         * elf/nodelmod4.c: New file.
3975         * elf/nodelete.c: Also test case where dependency of dlopen() object
3976         is marked nodelete.
3977
3978         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3979         * elf/nodlopen.c: New file.
3980         * elf/nodlopenmod.c: New file.
3981         * include/dlfcn.h: Define __RTLD_DLOPEN.
3982         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3983         and this is a dlopen() call, do not load the binary.
3984         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3985         * dlfcn/dlopenold.c: Likewise.
3986         * configure.in: Add test for -z nodelete option.
3987         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3988
3989 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3990
3991         Make Hesiod NSS module thread-safe.
3992
3993         * hesiod/README.hesiod: Update.
3994
3995         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3996         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3997         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3998         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3999         hesiod-proto.
4000         * hesiod/nss_hesiod/hesiod-init.c: New file.
4001         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4002         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4003         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4004         * hesiod/nss_hesiod/hesiod-service.c
4005         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4006         looking up services by port number.
4007         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4008
4009         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4010         * hesiod/hesiod.h: Likewise.
4011         * hesiod/hesiod_p.h: Likewise.
4012
4013 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4014
4015         Fix problems with `struct __res_state' getting too big.
4016         * resolv/resolv.h (struct __sockaddr_in): New definition.
4017         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4018         the private parts of the structure to save some space.
4019         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4020         (struct sockaddr_in *) in call to sock_eq.
4021         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4022
4023 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4024
4025         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4026         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4027         with nodelete.
4028         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4029         to _dl_map_object.  Return immediately if no object loaded.
4030         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4031         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4032         if it exists into l_flags_1 word.
4033         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4034         it to determine whether loading is wanted or not.
4035         (_dl_map_object): Likewise.
4036         Call _dl_map_object_from_fd with new parameter.
4037         * sysdeps/generic/ldsodefs.h: Update prototype.
4038         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4039         * elf/rtld.c: Likewise.
4040         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4041         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4042         * elf/noload.c: New file.
4043         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4044         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4045         * sysdeps/mips/bits/dlfcn.h: Likewise.
4046         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4047         (tests-nodelete-yes): Define.
4048         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4049         Add rules to build nodelete and modules.
4050         * elf/nodelete.c: New file.
4051         * elf/nodelmod1.c: New file.
4052         * elf/nodelmod2.c: New file.
4053         * configure.in: Add test for -z nodelete option.
4054         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4055
4056         * libio/Makefile (tests): Add tst_wprintf2.
4057         (tst_wprintf2-ARGS): Define.
4058         * libio/tst_wprintf2.c: New file.
4059         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4060
4061         * libio/wfiledoalloc.c: Only allocate external buffer if this
4062         hasn't happened yet.
4063
4064         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4065         something in the buffer.  gconv call can write up to end of the
4066         buffer, not only _IO_write_end.
4067         (_IO_wfile_overflow): Allocate also external buffer.
4068
4069 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4070
4071         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4072         strings with precision in vfwprintf correctly.
4073         * stdio-common/vfprintf.c: Fix completely broken handling of
4074         unbuffered wide character streams.
4075         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4076
4077         * resolv/Makefile (distribute): Add README.
4078
4079         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4080
4081 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4082
4083         Update resolver code to BIND 8.2.3-T5B.
4084
4085         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4086         __res_nclose.
4087         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4088         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4089         __res_search.
4090         * resolv/Banner: BIND-8.2.3-T5B.
4091
4092         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4093         * resolv/herror.c: Likewise.
4094         * resolv/inet_addr.c: Likewise.
4095         * resolv/inet_net_ntop.c: Likewise.
4096         * resolv/inet_net_pton.c: Likewise.
4097         * resolv/inet_neta.c: Likewise.
4098         * resolv/inet_ntop.c: Likewise.
4099         * resolv/nsap_addr.c: Likewise.
4100         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4101         IPv6 addresses (ISC bug #520).
4102
4103         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4104         * resolv/ns_parse.c: Likewise.
4105         * resolv/ns_netint.c: Likewise.
4106         * resolv/ns_samedomain.c: Likewise.
4107         * resolv/ns_ttl.c: Likewise.
4108         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4109         RCS ID in object file.
4110
4111         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4112         * resolv/res_mkquery.c: Likewise.
4113         * resolv/res_query.c: Likewise.
4114         * resolv/res_init.c: Likewise.
4115         (res_setoptions): Mark internal.
4116         * resolv/res_send.c: Likewise.
4117         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4118         by using poll instead.
4119         * resolv/res_comp.c: Likewise.
4120         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4121         weak alias for __dn_expand.
4122         * resolv/res_data.c: Likewise.
4123         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4124         in _res.options.  Avoids a potential security risk by avoiding a
4125         close (0).
4126         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4127         res_mkquery, res_query, res_querydomain adn res_search weak
4128         aliases for __res_mkquery, __res_query, __res_querydomain and
4129         __res_search.
4130         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4131         instead to avoid close(0).
4132         (res_init): Always use the static resolver context.
4133         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4134         alias for __res_init.
4135
4136         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4137         RES_SET_H_ERRNO and accompanying comment to...
4138         * include/resolv.h: ... here.
4139
4140         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4141         * resolv/arpa/nameser_compat.h: Likewise.
4142
4143 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4144
4145         * nss/makedb.c (main): Compare result of load_db with
4146         NSS_STATUS_SUCCESS and not 0.
4147         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4148
4149         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4150
4151 2000-07-18  Greg McGary  <greg@mcgary.org>
4152
4153         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4154         (EXTEND_BUFFER): Use it.
4155
4156 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4157
4158         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4159         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4160         __builtin_return_address.
4161         * dlfcn/dlopenold.c: Likewise.
4162         * dlfcn/dlsym.c: Likewise.
4163         * dlfcn/dlvsym.c: Likewise.
4164         * elf/dl-profstub.c: Likewise.
4165         * malloc/malloc.c: Likewise.
4166         * sysdeps/generic/machine-gmon.h: Likewise.
4167         Based on a patch by schwidefsky@de.ibm.com.
4168
4169 2000-07-18  Andreas Jaeger  <aj@suse.de>
4170
4171         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4172         NULL to elf_machine_fixup_plt t argument to silence GCC.
4173
4174         * include/string.h: Add prototype for __memchr.
4175
4176         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4177
4178         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4179         instead of memrchr.
4180
4181 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4182
4183         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4184
4185         * locale/C-ctype.c: Add initializers for gap elements.
4186         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4187         for gap elements.
4188
4189 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4190
4191         * nscd/nscd.c (print_version): Update copyright year.
4192
4193 2000-07-17  Greg McGary  <greg@mcgary.org>
4194
4195         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4196         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4197         signature argnames with angle-brackets for use as word delimiters,
4198         and to induce syntax errors for any args not handled.  Split
4199         multi-echo echoes and comment each stage.
4200         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4201         * sysdeps/unix/inet/syscalls.list: Likewise.
4202         * sysdeps/unix/mman/syscalls.list: Likewise.
4203         * sysdeps/unix/syscalls.list: Likewise.
4204         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4205         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4206         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4207         * sysdeps/unix/sysv/syscalls.list: Likewise.
4208         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4209
4210         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4211         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4212         qualifiers.  Don't check NULL-terminator of argv & envp.
4213         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4214         unbounded pointer type in word-size assertion.
4215         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4216         cases to stifle warnings.
4217
4218         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4219         _IO_file_attach.
4220         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4221
4222         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4223         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4224         ptr as __unbouned.
4225
4226         * Makerules (o-objects): Supplement with $(o-objects$o).
4227         * string/Makefile (o-objects.ob): Add variable to pull
4228         unbounded versions of memcpy, memset and memchr into libc_b.
4229
4230         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4231         rather than non-existent __ubp_memchr.
4232         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4233         (_CHECK_STRING, _CHECK_N): New macros.
4234         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4235         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4236         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4237         Add weak alias "memchr".
4238         * sysdeps/generic/memchr.c: Likewise.
4239         * sysdeps/i386/memchr.S: Likewise.
4240         * sysdeps/ia64/memchr.S: Likewise.
4241         * sysdeps/m68k/memchr.S: Likewise.
4242         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4243         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4244         * sysdeps/vax/memchr.s: Likewise.
4245
4246         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4247
4248         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4249         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4250         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4251         __BOUNDED_POINTERS__.
4252         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4253         for __BOUNDED_POINTERS__.
4254
4255 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4256
4257         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4258         field of struct __gconv_trans_data differently.  Don't pass NULL to
4259         trans_init_fct.  Simplify list append operation.
4260
4261 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4262
4263         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4264         not only those having tsearch.
4265
4266 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4267
4268         * locale/langinfo.h: Add placeholder values in enum for removed
4269         LC_CTYPE entries.
4270
4271 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4272
4273         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4274         chain if the PHDR check fails.
4275
4276 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4277
4278         * nss/getent.c (print_hosts): Make sure we always print a space
4279         between numeric addresses and hostnames.
4280
4281 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4282
4283         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4284         i.e. if n_mmaps_max>0.
4285
4286 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4287
4288         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4289         values to remove possible clash with other AI_* constants.
4290         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4291         hexadecimal constants to stress the fact they're in fact
4292         bit flags.
4293
4294 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4295
4296         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4297         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4298         instead of res_init.
4299
4300 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4301
4302         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4303         parameters of memset calls to avoid warnings.
4304
4305 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4306
4307         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4308         necessary.
4309
4310         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4311         Patch by Greg McGary <greg@mcgary.org>.
4312
4313         * io/Makefile (tests): Add tst-getcwd.
4314         * io/tst-getcwd.c: New file.
4315
4316         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4317
4318 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4319
4320         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4321         structure.
4322
4323 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4324
4325         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4326         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4327
4328 2000-07-12  H.J. Lu  <hjl@gnu.org>
4329
4330         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4331         GLIBC_2.2.
4332         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4333         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4334         (sysdep-routines): Add clone2.
4335         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4336
4337 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4338
4339         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4340         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4341
4342 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4343
4344         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4345         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4346         Change type of si_band from "int" to "long".
4347         (si_imm) [USE_GNU]: Define
4348         (si_isr) [USE_GNU]: Ditto.
4349         (ILL_BREAK) [USE_GNU]: Ditto.
4350         (FPE_DECOVF) [USE_GNU]: Ditto.
4351         (FPE_DECDIV) [USE_GNU]: Ditto.
4352         (FPE_DECERR) [USE_GNU]: Ditto.
4353         (FPE_INVASC) [USE_GNU]: Ditto.
4354         (FPE_INVDEC) [USE_GNU]: Ditto.
4355         (TRAP_BRANCH) [USE_GNU]: Ditto.
4356         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4357
4358 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4359
4360         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4361         bits/sigcontext as struct mcontext does not depend on it.
4362
4363         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4364
4365 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4366
4367         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4368
4369 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4370
4371         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4372
4373 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4374
4375         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4376
4377 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4378
4379         * intl/Makefile (test-srcs): Add tst-translit.
4380         (tests): Likewise.
4381         Add rules to build and run tst-translit.
4382         * intl/tst-translit.c: New file.
4383         * intl/tst-translit.sh: New file.
4384         * intl/translit.po: New file.
4385
4386 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4387
4388         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4389         transliteration function did its job, continue, don't stop.
4390
4391         * iconvdata/iso646.c: Little optimizations in body for conversion
4392         from UCS4.
4393
4394 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4395
4396         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4397
4398 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4399
4400         * configure.in: Check for pwd binary.
4401         * config.make.in: Add PWD_P to be subsituted.
4402         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4403
4404 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4405
4406         * iconvdata/Makefile (modules): Add GB18030.
4407         (distribute): Add gb18030.c.
4408         * iconvdata/gconv-modules: Add entries for GB18030 module.
4409         * iconvdata/gb18030.c: New file.
4410         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4411         and Wu Jian.
4412
4413 2000-07-13  Andreas Jaeger  <aj@suse.de>
4414
4415         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4416         patch.
4417
4418         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4419         * inet/getnetgrent.c (free_mem): Likewise.
4420         * misc/mntent.c (free_mem): Likewise.
4421         * nss/getXXbyYY.c (free_mem): Likewise.
4422         * nss/getXXent.c (free_mem): Likewise.
4423         * pwd/fgetpwent.c (free_mem): Likewise.
4424         * shadow/fgetspent.c (free_mem): Likewise.
4425
4426 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4427
4428         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4429         64-bit architecture correctly [PR libc/1794].
4430
4431 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4432
4433         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4434         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4435         report that we are out of memory.
4436         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4437         * elf/dl-libc.c (dlerror_run): Likewise.
4438         * elf/dl-open.c (_dl_open): Likewise.
4439         * elf/rtld.c (dl_main): Likewise.
4440         * elf/dl-error.c: Define _dl_out_of_memory.
4441         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4442         the error string.
4443         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4444         [PR libc/1813].
4445
4446         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4447
4448         * iconv/loop.c: Fix comment.
4449
4450         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4451
4452 2000-07-13  Andreas Jaeger  <aj@suse.de>
4453
4454         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4455         getcwd (NULL, size) with size > 0.
4456         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4457
4458 2000-07-13  Andreas Jaeger  <aj@suse.de>
4459
4460         * posix/Makefile: Remove build rules for libposix.
4461
4462 2000-07-13  Andreas Schwab  <schwab@suse.de>
4463
4464         * sysdeps/generic/glob.c (glob): Fix memory leak.
4465         [SHELL]: Remove reference to undefined variable `files'.
4466         Fixes PR libc/1782.
4467
4468 2000-07-13  Andreas Jaeger  <aj@suse.de>
4469
4470         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4471         functions.
4472
4473         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4474         memory if it was allocated.
4475
4476 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4477
4478         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4479         step.
4480
4481         * iconv/gconv_open.c (__gconv_open): Reapply
4482         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4483
4484                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4485
4486         * iconv/gconv_open.c: Undo last two changes for now.  They break
4487         everything.
4488
4489 2000-07-12  Andreas Jaeger  <aj@suse.de>
4490
4491         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4492         compiler.
4493         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4494         (CFLAGS-dl-cache.c): Likewise.
4495         (CFLAGS-ldconfig.c): Added, passes directory locations.
4496
4497         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4498         locate cache.
4499         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4500         (main): Use configured LIBDIR and SLIBDIR.
4501
4502 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4503
4504         * math/bits/cmathcalls.h (cimag): Add __THROW.
4505         (creal, conj): Likewise.
4506         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4507         by negative value.
4508
4509 2000-07-12  H.J. Lu  <hjl@gnu.org>
4510
4511         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4512         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4513
4514 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4515
4516         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4517         it is wrong.
4518
4519 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4520
4521         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4522
4523 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4524
4525         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4526         __modname.
4527
4528 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4529
4530         * iconv/gconv_open.c (__gconv_open): Initialize
4531         result->__steps[cnt].__data.
4532
4533 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4534
4535         * nss/getent.c (services_keys): Pass port number in network byte
4536         order in call to getservbyport.
4537
4538 2000-07-11  Andreas Jaeger  <aj@suse.de>
4539
4540         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4541         source dir.
4542         * intl/Makefile (do-gettext-test): Likewise.
4543         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4544
4545 2000-07-11  Andreas Schwab  <schwab@suse.de>
4546
4547         * Makeconfig (run-program-prefix): New rule.
4548         (built-program-cmd): Use run-program-prefix.
4549
4550 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4551
4552         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4553         and NOEXPR unconditionally available.
4554
4555 2000-07-12  Greg McGary  <greg@mcgary.org>
4556
4557         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4558         * sysdeps/posix/open64.c: Likewise.
4559         * sysdeps/generic/fegetenv.c: Likewise.
4560         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4561         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4562         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4563         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4564         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4565         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4566
4567 2000-07-11  Greg McGary  <greg@mcgary.org>
4568
4569         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4570         Add extra level of macro expansion.
4571         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4572         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4573         is available at the time `select' prototype is declared.
4574         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4575         Collect non-versioned weak aliases.  Consider only non-versioned
4576         aliases for the user-visible systemcall name.  Do checks inline with
4577         call to primitive system call.
4578         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4579         stand-alone bounds checks to suppress unused value warnings.
4580         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4581
4582 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4583
4584         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4585         file descriptor checking in SUID programs for the Hurd.
4586
4587         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4588         res_hostalias instead of __hostalias for thread-safety.
4589
4590 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4591
4592         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4593         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4594
4595 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4596
4597         * include/features.h: Include ISO C99 features if the compiler used
4598         is an ISO C99 compiler.
4599         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4600
4601 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4602
4603         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4604
4605 2000-07-10  Andreas Jaeger  <aj@suse.de>
4606
4607         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4608         it's overridden by libpthreads.
4609         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4610         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4611         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4612         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4613         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4614
4615         * malloc/Makefile: Run tst-mtrace only with shared libs.
4616
4617         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4618         with shared libs.
4619
4620 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4621
4622         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4623         that gpreg really points to the GOT section of the calling object.
4624         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4625         checking a start address of first one.
4626         Fix typos.
4627         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4628         Likewise.
4629
4630         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4631
4632 2000-07-10  Andreas Jaeger  <aj@suse.de>
4633
4634         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4635         (string_alias->strong_alias).
4636
4637 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4638
4639         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4640
4641 2000-07-07  Greg McGary  <greg@mcgary.org>
4642
4643         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4644         have no names without leading underscores.
4645
4646 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4647
4648         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4649         U007E.
4650
4651         * stdio-common/Makefile (tests): Remove tst-printf here...
4652         (tests-srcs): ...and add it here.
4653         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4654         Add rules to run tst-printf.sh.
4655         * stdio-common/tst-printf.c: Move code around so that there is really
4656         no further output where it's stated.
4657         * stdio-common/tst-printf.sh: New file.
4658
4659 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4660
4661         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4662         (do_write): Renamed from pwrite.
4663         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4664         `struct _IO_cookie_file'.
4665
4666 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4667
4668         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4669         detected.
4670         * malloc/tst-mtrace.sh: Run mtrace script.
4671
4672 2000-07-07  Greg McGary  <greg@mcgary.org>
4673
4674         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4675         Move all three components of a bounded pointer.
4676
4677 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4678
4679         * locale/programs/locale.c (write_locales): Don't simply add all
4680         directories found in the subdir, test whether at least the
4681         LC_CTYPE file is in there.
4682
4683 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4684
4685         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4686         * iconvdata/euc-kr.c: Likewise.
4687
4688         * stdio-common/vfprintf.c (process_string_arg): Check result of
4689         wcrtomb call and bail out if it failed.
4690
4691         * malloc/Makefile (test-srcs): Add tst-mtrace.
4692         (distribute): Add tst-mtrace.sh.
4693         Add rule to run tst-mtrace.sh.
4694         * malloc/tst-mtrace.c: New file.
4695         * malloc/tst-mtrace.sh: New file.
4696
4697         * include/signal.h: Declare __libc_sigaction.
4698         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4699         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4700         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4701         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4702         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4703         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4704         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4705
4706         * configure.in: Fix CFLAGS-memprofstat.c definition after
4707         2000-06-19 change.
4708         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4709
4710 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4711
4712         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4713         instead of NULL to elf_machine_fixup_plt t argument.
4714         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4715         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4716         cast.
4717
4718 2000-07-06  Andreas Jaeger  <aj@suse.de>
4719
4720         * crypt/Makefile (LDLIBS-cert): Removed.
4721         (LDLIBS-md5c-test): Removed.
4722         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4723         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4724
4725 2000-07-06  Andreas Jaeger  <aj@suse.de>
4726
4727         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4728         of the proc system is "proc".
4729
4730         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4731         thread library for static programs.
4732
4733 2000-07-06  Greg McGary  <greg@mcgary.org>
4734
4735         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4736         New macros.
4737         * sysdeps/generic/strcpy.c: Add bounds checks.
4738         * sysdeps/unix/fxstat.c: Likewise.
4739         * sysdeps/unix/xstat.c: Likewise.
4740         * sysdeps/unix/common/lxstat.c: Likewise.
4741         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4742         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4743         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4744         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4745         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4746         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4747         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4748         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4749         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4750         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4751         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4752         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4753         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4754         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4755         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4756         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4757         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4758         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4759         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4760         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4761         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4762         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4763         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4764         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4765         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4766         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4767         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4768         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4769         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4770         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4771         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4772         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4773         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4774         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4775         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4776         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4777         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4778         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4779         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4780         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4781         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4782         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4783         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4784         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4785         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4786         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4787         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4788         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4789         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4790         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4791         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4792         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4793         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4794         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4795         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4796         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4797         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4798         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4799         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4800         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4801         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4802         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4803         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4804         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4805
4806         * string/endian.h (__LONG_LONG_PAIR): New macro.
4807         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4808         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4809         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4810         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4811         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4812         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4813         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4814         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4815         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4816         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4817         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4818         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4819
4820         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4821
4822 2000-07-06  Andreas Jaeger  <aj@suse.de>
4823
4824         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4825         Initialize result.
4826
4827         * math/test-fpucw.c: Include <stdio.h> for printf.
4828
4829 2000-07-05  Greg McGary  <greg@mcgary.org>
4830
4831         * sysdeps/generic/bp-checks.h: New file.
4832         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4833         with list of #include files.
4834         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4835         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4836         Don't generate BP thunk if `V' appears in signature.
4837         Generate thunks with complete bounds checks.
4838         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4839         * sysdeps/unix/inet/syscalls.list: Likewise.
4840         * sysdeps/unix/mman/syscalls.list: Likewise.
4841         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4842         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4843         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4844         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4845
4846 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4847
4848         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4849         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4850         If mount not in the file fall back on /proc.
4851
4852         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4853         string got copied in.
4854         Patch by Solar Designer <solar@false.com>.
4855
4856 2000-07-05  Andreas Jaeger  <aj@suse.de>
4857
4858         * manual/install.texi (Installation): Update information about
4859         add-ons.
4860         (Configuring and compiling): Update for glibc 2.2.
4861
4862 2000-07-04  Andreas Jaeger  <aj@suse.de>
4863
4864         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4865         (_FPU_IEEE): Likewise.
4866
4867         * math/Makefile (tests): Add test-fpucw.
4868
4869         * math/test-fpucw.c (main): New file.
4870
4871 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4872
4873         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4874
4875         * locale/programs/ld-collate.c (collate_output): Also write out the
4876         collation sequence values and the wide character string for the
4877         collation symbol table.
4878
4879         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4880         * posix/fnmatch_loop.c: Implement collating symbol handling.
4881         * posix/tst-fnmatch.input: Add more tests, especially for collating
4882         symbol handling.
4883
4884         * posix/regex.c: Fix comment.
4885
4886 2000-07-05  Andreas Jaeger  <aj@suse.de>
4887
4888         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4889         (_FPU_GETCW): Remove extra colon.
4890         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4891
4892         * posix/fnmatch_loop.c (FCT): Only declare len if
4893         !WIDE_CHAR_VERSION to silence GCC.
4894
4895         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4896         prototype.
4897         * sysdeps/generic/strchrnul.c: Likewise.
4898         * sysdeps/generic/strlen.c: Likewise.
4899         * sysdeps/generic/strchr.c: Likewise.
4900         * sysdeps/generic/memchr.c: Likewise.
4901
4902 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4903
4904         * posix/fnmatch_loop.c: Implement equivalence class handling.
4905         * posix/tst-fnmatch.input: Add tests for equivalence class
4906         handling.
4907
4908         * posix/fnmatch_loop.c: Improve performance for single-byte
4909         character sets by not using btowc.
4910
4911         * posix/tst-fnmatch.input: Add tests for locale dependent
4912         behaviour.
4913         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4914
4915         * posix/tst-fnmatch.input: Add more test cases.
4916
4917         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4918         are not aligned to alignof(md5_uint32) do it before calling
4919         __md5_process_bytes.
4920         * crypt/md5.c: Make sure buffers are aligned.
4921         * crypt/md5.h: Likewise.
4922         Reported by Solar Designer <solar@false.com>.
4923
4924         * crypt/Makefile: Add dependencies for test programs.
4925
4926         * Rules: Define LC_ALL=C in environments of all programs we run.
4927
4928         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4929
4930 2000-07-03  H.J. Lu  <hjl@gnu.org>
4931
4932         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4933         is 2 + elem + offset, not 2 + elem + offset + 2.
4934
4935 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4936
4937         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4938         suite.
4939         * posix/Makefile (tests): Add tst-fnmatch.
4940         (tst-fnmatch-ENV): Define.
4941         * posix/tst-fnmatch.c: New file.
4942         * posix/tst-fnmatch.sh: New file.
4943
4944 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4945
4946         * locale/programs/charmap.c (charmap_read): Prepend
4947         the condition filename == NULL.
4948
4949 2000-07-03  Greg McGary  <greg@mcgary.org>
4950
4951         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4952
4953         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4954         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4955
4956         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4957         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4958         (FILEBUF_LITERAL): Add cast for CHAIN init.
4959         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4960         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4961         Revert type of `fp' to _IO_FILE*.
4962         (_IO_iter_file): Remove cast.
4963         (_IO_iter_next): Elide intermediate member reference.
4964
4965         * sysdeps/powerpc/strchr.S:  Check bounds.
4966         Wrap extern symbols in BP_SYM ().
4967
4968 2000-07-03  Andreas Jaeger  <aj@suse.de>
4969
4970         * dlfcn/Makefile (generated): New.
4971
4972 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4973
4974         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4975         (__uflow): Likewise.
4976         (__underflow): Likewise.
4977         * libio/wgenops.c (__wunderflow): Likewise.
4978         * stdio-common/tst-unbputc.c: New file.
4979         * stdio-common/tst-unbputc.sh: New file.
4980         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4981
4982         * po/en_GB.po: New file.
4983         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4984
4985 2000-07-01  Andreas Jaeger  <aj@suse.de>
4986
4987         * intl/Makefile (generated-dirs): New.
4988
4989         * elf/Makefile (generated): trusted-dirs.h is always generated,
4990         move out of build-shared condition.
4991         (generated): Merge the two entries for build-shared.
4992
4993 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4994
4995         * debug/Makefile (distribute): Add xtrace.sh.
4996
4997 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4998
4999         * version.h (VERSION): Bump to 2.1.91.
5000
5001         * configure.in: Update warning comment.  glibc should not be
5002         broken anymore.
5003
5004         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5005         ioperm.c, sys/procfs.h, and sys/io.h.
5006
5007         * sysdeps/powerpc/Dist: Add bp-asm.h.
5008
5009         * assert/Depend: Add localedata.
5010         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5011         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5012
5013         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5014         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5015         relocation address to prevent unaligned trap.
5016         Suggested by Richard Henderson <rth@cygnus.com>.
5017
5018 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5019
5020         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5021         if redirecting and either redirection is done using defines or
5022         not optimizing.
5023
5024 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5025
5026         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5027         generated expressions.
5028         Patch by Darren McClelland <dmcclell@zetec.com>.
5029
5030         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5031         since zic uses setlocale and gettext but we cannot make it use the
5032         new locale data since zic calls a shell which might not use the
5033         new libc.
5034
5035         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5036         handling the internation currency symbol.  POSIX says that the
5037         fourth character is used to separate the currency symbol from the
5038         value.  Therefore it does not have to be printed.  But we cannot
5039         remove the space if the currency symbol is printed before the
5040         number since this is what many locales expect.
5041
5042         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5043         whether this information is available.
5044
5045         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5046         buffers in case the translation is too large.  Remember allocated
5047         memory blocks in a list.
5048         (free_mem): Free memory for translations.
5049
5050         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5051
5052         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5053         information is available set the string length to zero.
5054
5055         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5056
5057 2000-06-30  Greg McGary  <greg@mcgary.org>
5058
5059         * sysdeps/powerpc/bp-asm.h: New file.
5060         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5061         Wrap extern symbols in BP_SYM ().
5062         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5063         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5064         * sysdeps/powerpc/setjmp.S: Likewise.
5065         * sysdeps/powerpc/add_n.S: Likewise.
5066         * sysdeps/powerpc/addmul_1.S: Likewise.
5067         * sysdeps/powerpc/lshift.S: Likewise.
5068         * sysdeps/powerpc/rshift.S: Likewise.
5069         * sysdeps/powerpc/mul_1.S: Likewise.
5070         * sysdeps/powerpc/sub_n.S: Likewise.
5071         * sysdeps/powerpc/submul_1.S: Likewise.
5072         * sysdeps/powerpc/strlen.S: Likewise.
5073         * sysdeps/powerpc/memset.S: Likewise.
5074         * sysdeps/powerpc/stpcpy.S: Likewise.
5075         * sysdeps/powerpc/strcmp.S: Likewise.
5076         * sysdeps/powerpc/strcpy.S: Likewise.
5077         * sysdeps/powerpc/elf/bzero.S: Likewise.
5078
5079         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5080         Line up operands column with tabs.
5081
5082 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5083
5084         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5085
5086         * sysdeps/ia64/htonl.S: New file.
5087         * sysdeps/ia64/htons.S: New file.
5088         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5089         floating point registers.
5090         Patches by Dan Pop <Dan.Pop@cern.ch>.
5091
5092 2000-06-30  Andreas Jaeger  <aj@suse.de>
5093
5094         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5095         shared libraries.
5096
5097         * io/Makefile (CFLAGS-test-lfs.c): New.
5098         (tests): Add test-lfs.
5099
5100         * io/test-lfs.c: New file.
5101
5102 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5103
5104         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5105         instruction.
5106
5107 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5108
5109         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5110
5111 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5112
5113         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5114         alias to the fstatfs call.
5115
5116         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5117         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5118
5119         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5120         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5121
5122         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5123         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5124         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5125         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5126
5127         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5128         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5129
5130         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5131         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5132
5133         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5134         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5135
5136         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5137
5138 2000-06-29  Andreas Jaeger  <aj@suse.de>
5139
5140         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5141         with syslog.
5142         (print_err_message): Likewise.
5143         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5144
5145 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5146
5147         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5148         used as words is properly aligned.
5149
5150         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5151         data files.
5152
5153 2000-06-29  Greg McGary  <greg@mcgary.org>
5154
5155         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5156         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5157         length 7..9, just in case...
5158         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5159
5160         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5161         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5162         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5163         (PUSH_SIGNAL_MASK): New macro.
5164         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5165         LEAVE is unnecessary.  Check bounds of jmp_buf.
5166         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5167         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5168         immediately before tail-call.
5169         * sysdeps/i386/setjmp.S: Likewise.
5170         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5171         * sysdeps/i386/bsd-setjmp.S: Likewise.
5172
5173 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5174
5175         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5176         versioned_symbol.
5177         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5178         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5179         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5180         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5181         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5182         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5183         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5184         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5185
5186 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5187
5188         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5189         we later need to calling free().
5190         Patch by Matt Wilson <msw@redhat.com>.
5191
5192         * stdio-common/tst-printf.c: Add test for above problem.
5193
5194 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5195
5196         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5197         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5198
5199 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5200
5201         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5202         prototype for abs().
5203         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5204
5205 2000-06-23  Andreas Jaeger  <aj@suse.de>
5206
5207         * config.h.in: Don't use regparm with bounded pointers.
5208
5209 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5210
5211         * stdlib/grouping.h: Correctly handle multibyte thousands
5212         separator and decimal point.
5213         * stdlib/stdtod.c: Likewise.
5214         * sysdeps/generic/strtol.c: Likewise.
5215
5216         * locale/categories.def: Add entries for wide character decimal point
5217         and thousands separator in numeric and monetary category.
5218
5219 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5220
5221         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5222         second definition and initialization of decimal.
5223
5224 2000-06-28  Greg McGary  <greg@mcgary.org>
5225
5226         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5227         out.
5228         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5229         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5230         in.
5231         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5232         (struct _IO_FILE_plus *).
5233         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5234         THIS, since _IO_JUMPS no longer does it implicitly.
5235         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5236         arg type as (struct _IO_FILE_plus *).
5237         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5238         arg as (_IO_strfile *).
5239         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5240         Declare 1st arg as (_IO_strfile *).
5241         * libio/fileops.c (_IO_new_file_init): Declare
5242         arg type as (struct _IO_FILE_plus *).
5243         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5244         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5245         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5246         Declare iteration pointer as (struct _IO_FILE_plus *).
5247         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5248                 (struct _IO_FILE_plus *).
5249         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5250         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5251         (_IO_check_libio): Set user-visible handles to
5252         (struct _IO_FILE_plus *).
5253         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5254         to (struct _IO_FILE_plus *).
5255
5256         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5257         whose high bound includes vtable to all functions that will use
5258         vtable.  For streambufs, pass pointer whose bounds include struct
5259         _IO_strfile.
5260         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5261         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5262         * libio/iofopen.c (_IO_new_fopen): Likewise.
5263         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5264         * libio/iofopen64.c (_IO_fopen64): Likewise.
5265         * libio/iopopen.c (_IO_new_popen): Likewise.
5266         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5267         * libio/memstream.c (open_memstream): Likewise.
5268         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5269         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5270         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5271         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5272         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5273         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5274         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5275         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5276         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5277         * stdlib/strfmon.c (__strfmon_l): Likewise.
5278         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5279         (vfprintf): Qualify computed-goto targets as unbounded.
5280
5281 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5282
5283         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5284         thousands separator correctly.
5285
5286         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5287         * stdio-common/vfwscanf.c: Likewise.
5288
5289 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5290
5291         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5292         count into signatures for most calls.
5293
5294 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5295
5296         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5297         the generic parser now.
5298
5299 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5300
5301         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5302         table entries are 32 bit on the ia64 (as specified by the ABI),
5303         not 64 bit as on the Alpha.
5304
5305         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5306         change of objects to use 32 bit hash table indices (see above).
5307
5308 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5309
5310         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5311         prototype for abs().
5312
5313 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5314
5315         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5316         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5317         may have been reached.
5318
5319 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5320
5321         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5322         symbols in multi-character weights correctly.
5323
5324         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5325         depending on whether the input string is empty or not.
5326
5327         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5328         given state and not avoiding this by modifying a local object.
5329         * wcsmbs/wcrtomb.c: Likewise.
5330
5331         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5332         object since some incomplete characters might be in there.
5333
5334         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5335         sequences with first byte 0x8e correctly.
5336
5337         * iconvdata/jis0208.h: Remove redundant test.
5338
5339 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5340
5341         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5342         Add it where it is needed now.
5343
5344         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5345         the input charset into account when generating the hash table.
5346         (allocate_arrays): Correct setting default width.  Not all empty slots
5347         in the table are filled, only those not covert explicitly by the
5348         locale description and in the charset.
5349
5350         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5351         return values from the wctrans function.
5352
5353         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5354         wide character version.
5355         For %C handling, test correct pointer variable for NULL.
5356
5357         * wcsmbs/wctob.c: Handle WEOF special.
5358
5359         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5360
5361         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5362         always-true test to avoid warning.
5363
5364 2000-06-27  Greg McGary  <greg@mcgary.org>
5365
5366         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5367         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5368         (symbol_version, default_symbol_version): Factor redundant
5369         definitions out of conditional.
5370
5371 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5372
5373         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5374         not obstack_blank.
5375
5376 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5377
5378         * include/libc-symbols.h (symbol_version): Add extra level of
5379         macro expansion.
5380         (default_symbol_version): Likewise.
5381
5382 2000-06-26  Greg McGary  <greg@mcgary.org>
5383
5384         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5385         for BP return value & push implicit struct-return pointer to
5386         __errno_location.
5387         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5388         (SYSCALL_ERROR_HANDLER): Likewise.
5389         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5390         (SYSCALL_ERROR_HANDLER): Likewise.
5391
5392         * Makeconfig: Add missing comment.
5393         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5394         BP-flavored startup object.
5395         ($(objpfx)b$(start-installed-name)): New rule.
5396         * include/libc-symbols.h (symbol_set_declare): Change type
5397         of `__start_##set' and `__stop_##set' to pointer-to-function.
5398         (symbol_set_declare): Change type of `set' to array of
5399         pointer-to-function.
5400         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5401         pointer-to-function.
5402
5403         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5404
5405         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5406         Remove clock_* and timer_* entries.
5407         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5408         arg-count with signatures.
5409
5410         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5411         Check bounds of arguments.
5412         * sysdeps/i386/addmul_1.S: Likewise.
5413         * sysdeps/i386/lshift.S: Likewise.
5414         * sysdeps/i386/mul_1.S: Likewise.
5415         * sysdeps/i386/rshift.S: Likewise.
5416         * sysdeps/i386/sub_n.S: Likewise.
5417         * sysdeps/i386/submul_1.S: Likewise.
5418         * sysdeps/i386/i586/add_n.S: Likewise.
5419         * sysdeps/i386/i586/addmul_1.S: Likewise.
5420         * sysdeps/i386/i586/lshift.S: Likewise.
5421         * sysdeps/i386/i586/rshift.S: Likewise.
5422         * sysdeps/i386/i586/sub_n.S: Likewise.
5423         * sysdeps/i386/i686/add_n.S: Likewise.
5424
5425         * sysdeps/i386/memchr.S: Likewise.
5426         * sysdeps/i386/memcmp.S: Likewise.
5427         * sysdeps/i386/rawmemchr.S: Likewise.
5428         * sysdeps/i386/i586/bzero.S: Likewise.
5429         * sysdeps/i386/i586/memcpy.S: Likewise.
5430         * sysdeps/i386/i586/mempcpy.S: Likewise.
5431         * sysdeps/i386/i586/memset.S: Likewise.
5432         * sysdeps/i386/i686/bzero.S: Likewise.
5433         * sysdeps/i386/i686/memcpy.S: Likewise.
5434         * sysdeps/i386/i686/mempcpy.S: Likewise.
5435         * sysdeps/i386/i686/memset.S: Likewise.
5436
5437         * sysdeps/i386/stpcpy.S: Likewise.
5438         * sysdeps/i386/stpncpy.S: Likewise.
5439         * sysdeps/i386/strchr.S: Likewise.
5440         * sysdeps/i386/strchrnul.S: Likewise.
5441         * sysdeps/i386/strcspn.S: Likewise.
5442         * sysdeps/i386/strpbrk.S: Likewise.
5443         * sysdeps/i386/strrchr.S: Likewise.
5444         * sysdeps/i386/strspn.S: Likewise.
5445         * sysdeps/i386/strtok.S: Likewise.
5446         * sysdeps/i386/strtok_r.S: Likewise.
5447         * sysdeps/i386/i486/strcat.S: Likewise.
5448         * sysdeps/i386/i486/strlen.S: Likewise.
5449         * sysdeps/i386/i586/strchr.S: Likewise.
5450         * sysdeps/i386/i586/strcpy.S: Likewise.
5451         * sysdeps/i386/i586/strlen.S: Likewise.
5452         * sysdeps/i386/i686/strcmp.S: Likewise.
5453         * sysdeps/i386/i686/strtok.S: Likewise.
5454         * sysdeps/i386/i686/strtok_r.S: Likewise.
5455
5456         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5457         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5458         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5459         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5460         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5461
5462         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5463         * sysdeps/i386/mul_1.S: Likewise.
5464         * sysdeps/i386/submul_1.S: Likewise.
5465         * sysdeps/i386/i586/add_n.S: Likewise.
5466         * sysdeps/i386/i586/addmul_1.S: Likewise.
5467         * sysdeps/i386/i586/lshift.S: Likewise.
5468         * sysdeps/i386/i586/mul_1.S: Likewise.
5469         * sysdeps/i386/i586/rshift.S: Likewise.
5470         * sysdeps/i386/i586/sub_n.S: Likewise.
5471         * sysdeps/i386/i586/submul_1.S: Likewise.
5472
5473 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5474
5475         * rt/Makefile (librt-routines): Add clock_nanosleep.
5476         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5477         * sysdeps/generic/clock_nanosleep.c: New file.
5478         * sysdeps/unix/clock_nanosleep.c: New file.
5479         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5480         * time/time.h: Declare clock_nanosleep.
5481
5482 2000-06-26  Greg McGary  <greg@mcgary.org>
5483
5484         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5485         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5486         (ALIGN): Cleanup surrounding conditionals.
5487
5488         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5489         Call ENTER/LEAVE macros.
5490         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5491         * sysdeps/i386/submul_1.S: Likewise.
5492
5493         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5494         syntax.  Define & use symbolic argument stack offsets.  Call
5495         ENTER/LEAVE macros.
5496         * sysdeps/i386/i586/mul_1.S: Likewise.
5497         * sysdeps/i386/i586/submul_1.S: Likewise.
5498
5499 2000-06-25  Greg McGary  <greg@mcgary.org>
5500
5501         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5502         not as bcopy.
5503
5504 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5505
5506         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5507         * iconvdata/gen-8bit-gap.sh: Likewise.
5508         * iconvdata/gen-8bit.sh: Likewise.
5509
5510         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5511
5512         * locale/programs/ld-collate.c (collate_read): Don't actually read
5513         the copy locale if we are ignoring the content.
5514
5515         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5516         unknown character.
5517
5518         * locale/programs/ld-collate.c: Correct handling of different
5519         collation sections.
5520         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5521         as extra parameter from which to copy category information.
5522         Change all callers.
5523         (load_locale): Likewise.
5524         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5525         and load_locale.
5526         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5527         * locale/programs/locfile.h: Likewise.
5528         * locale/programs/locfile-kw.gperf: Add entry for script.
5529         * locale/programs/locfile-token.h: Add tok_script.
5530
5531         * locale/programs/locale.c: Update copyright year.
5532         * locale/programs/localedef.c: Likewise.
5533
5534 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5535
5536         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5537         Jens Moeller <jens.moeller@waii.com>.
5538
5539 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5540
5541         * locale/programs/ld-name.c (name_finish): Add missing format
5542         specifier to test for name_fmt.
5543
5544         * locale/programs/ld-address.c (iso639): Correct length of string
5545         elements.
5546         (iso3166): Likewise.
5547
5548         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5549
5550         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5551         Define.
5552
5553         * elf/elf.h (NT_PRFPXREG): Define.
5554
5555 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5556
5557         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5558         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5559
5560 2000-06-23  Andreas Schwab  <schwab@suse.de>
5561
5562         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5563         with signatures.
5564
5565 2000-06-23  Andreas Jaeger  <aj@suse.de>
5566
5567         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5568
5569         * io/test-stat.c: Add copyright header, mention Maciej.
5570
5571         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5572         SYS_mincore, SYS_madvise): Added.
5573
5574         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5575         execve.
5576
5577 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5578
5579         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5580         (CFLAGS-tst_putwc.c): New definition.
5581         * libio/tst_getwc.c: New file.
5582         * libio/tst_getwc.input: New file.
5583         * libio/tst_putwc.c: New file.
5584
5585         * include/string.h: Add prototype for __strdup.
5586
5587 2000-06-22  Greg McGary  <greg@mcgary.org>
5588
5589         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5590         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5591         Fix signatures.
5592
5593 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5594
5595         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5596
5597 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5598
5599         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5600
5601 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5602
5603         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5604         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5605
5606 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5607
5608         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5609         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5610         and __S_TYPEISSHM.
5611         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5612         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5613         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5614         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5615         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5616         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5617         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5618         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5619         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5620         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5621         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5622         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5623         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5624         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5625         S_TYPEISSHM.
5626
5627 2000-06-22  Andreas Jaeger  <aj@suse.de>
5628
5629         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5630         with signatures.
5631
5632         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5633
5634         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5635
5636 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5637
5638         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5639         ahead.
5640
5641 2000-06-21  Greg McGary  <greg@mcgary.org>
5642
5643         * Makerules (elide-routines.*, elide-bp-thunks):
5644         Define unconditionally.
5645
5646 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5647
5648         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5649
5650 2000-06-21  Andreas Jaeger  <aj@suse.de>
5651
5652         * io/Makefile (tests): Add test-stat.
5653         (CFLAGS-test-stat.c): New.
5654
5655         * io/test-stat.c: New file from Maciej W. Rozycki
5656         <macro@ds2.pg.gda.pl>.
5657
5658 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5659
5660         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5661         in __rlimit_resource to make them match the kernel order.
5662         rlim_t is always 64 bit, use __rlim64_t to declare it
5663         unconditionally.
5664
5665 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5666
5667         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5668         RLIM_INFINITY before defining it to avoid clash with kernel header
5669
5670 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5671
5672         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5673
5674 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5675
5676         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5677
5678 2000-06-21  Andreas Jaeger  <aj@suse.de>
5679
5680         * stdio-common/temptest.c: Include <stdlib.h>.
5681         * stdio-common/tst-fileno.c: Likewise.
5682         * stdio-common/scanf4.c: Likewise.
5683         * stdio-common/scanf5.c: Likewise.
5684         * time/clocktest.c: Likewise.
5685         * posix/test-vfork.c: Likewise.
5686         * posix/globtest.c: Likewise.
5687         * io/test-utime.c: Likewise.
5688         * wctype/test_wcfuncs.c: Likewise.
5689         * crypt/cert.c: Likewise.
5690
5691         * stdio-common/tst-printfsz.c: Include <string.h>.
5692         * libio/tst_swscanf.c: Likewise.
5693         * libio/tst_wscanf.c: Likewise.
5694         * posix/runtests.c: Likewise.
5695         * posix/tst-getaddrinfo.c: Likewise.
5696         * posix/wordexp-test.c: Likewise.
5697         * misc/tst-efgcvt.c: Likewise.
5698
5699         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5700         * nss/test-netdb.c: Likewise.
5701
5702         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5703         supported kernel for MIPS.
5704
5705         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5706         * rt/aio_suspend.c: Likewise.
5707
5708 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5709
5710         * math/libm-test.inc: Include <string.h>.
5711
5712 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5713
5714         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5715
5716 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5717
5718         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5719         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5720
5721 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5722
5723         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5724
5725 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5726
5727         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5728
5729 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5730
5731         * locale/programs/ld-collate.c (insert_value): Now take string and
5732         length instead of struct token* parameter.  Adjust use of token.
5733         (handle_ellipsis): Likewise.
5734         (collate_read): Allow <Uxxxx> names and transform them into names
5735         to be passed to insert_value and handle_ellipsis.
5736
5737         * locale/programs/ld-ctype.c (uninames): New array with names of
5738         digits in <Uxxxxxxxx> format.
5739         (ctype_finish): Correct search for space character value.  Likewise
5740         for default outdigits values.
5741
5742 2000-06-20  Greg McGary  <greg@mcgary.org>
5743
5744         * Makerules (objects): Add BP thunks.
5745
5746 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5747
5748         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5749         in width definitions.
5750
5751 2000-06-20  Andreas Jaeger  <aj@suse.de>
5752
5753         * sysdeps/mips/fpu/libm-test-ulps: New file.
5754
5755         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5756         first.
5757
5758         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5759
5760         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5761
5762 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5763
5764         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5765         change in gconv_builtin.h.
5766
5767         * malloc/Makefile: Change all references to memprof into memusage.
5768         * malloc/memprof.c: Rename to...
5769         * malloc/memusage.c: ...this.  New file.
5770         * malloc/memprof.sh: Rename to...
5771         * malloc/memusage.sh: ...this.  New file.
5772         * malloc/memprofstat.c: Rename to...
5773         * malloc/memusagestat.c: ...this.  New file.
5774         * sysdeps/alpha/memprof.h: Rename to..
5775         * sysdeps/alpha/memusage.h: ...this.  New file.
5776         * sysdeps/arm/memprof.h: Rename to..
5777         * sysdeps/arm/memusage.h: ...this.  New file.
5778         * sysdeps/generic/memprof.h: Rename to..
5779         * sysdeps/generic/memusage.h: ...this.  New file.
5780         * sysdeps/i386/memprof.h: Rename to..
5781         * sysdeps/i386/memusage.h: ...this.  New file.
5782         * sysdeps/ia64/memprof.h: Rename to..
5783         * sysdeps/ia64/memusage.h: ...this.  New file.
5784         * sysdeps/m68k/memprof.h: Rename to..
5785         * sysdeps/m68k/memusage.h: ...this.  New file.
5786         * sysdeps/mips/memprof.h: Rename to..
5787         * sysdeps/mips/memusage.h: ...this.  New file.
5788         * sysdeps/powerpc/memprof.h: Rename to..
5789         * sysdeps/powerpc/memusage.h: ...this.  New file.
5790         * sysdeps/sparc/memprof.h: Rename to..
5791         * sysdeps/sparc/memusage.h: ...this.  New file.
5792         * sysdeps/sh/memprof.h: Rename to..
5793         * sysdeps/sh/memusage.h: ...this.  New file.
5794
5795         * elf/sprof.c (print_version): Update year.
5796
5797         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5798         table entry values.  Use D_PTR.
5799         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5800         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5801
5802 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5803
5804         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5805         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5806         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5807         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5808
5809 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5810
5811         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5812
5813 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5814
5815         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5816         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5817         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5818
5819         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5820
5821         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5822         kernel change.
5823
5824         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5825         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5826         structure.
5827         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5828         implementation.
5829
5830 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5831
5832         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5833
5834 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5835
5836         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5837
5838 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5839
5840         * iconv/gconv_int.h (strict gconv_module): Remove all members
5841         associated with regular expressions.  Use a simple string as the
5842         from name.
5843         * iconv/gconv_db.c: Remove code handling regular expressions.
5844         * iconv/gconv_conf.c: Likewise.
5845         * iconv/iconv_prog.c: Likewise.
5846         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5847
5848         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5849         General namespace cleanup.
5850         (struct __gconv_trans_data): Add next field.
5851         (struct __gconv_step_data): Make __trans a pointer.
5852         * iconv/gconv_conf.c: Split out code to find gconv directories from
5853         __gconv_read_conf in new functions.
5854         * iconv/gconv_int.h: Define new data structure and declare new
5855         functions for handling of gconv directory list.
5856         * iconv/gconv_open.c: Allow more than one error handling step being
5857         used.  Call function to load error handling module if it is none
5858         of the builtin transformations.
5859         * iconv/gconv_close.c: Add code to free transliteration data.
5860         * iconv/gconv_trans.c: Add functions to load and unload modules
5861         implementing transliteration etc.
5862         * iconv/skeleton.c: Call all context functions now that more than
5863         one module is allowed.
5864         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5865         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5866         where the full error handling using transliteration is needed.
5867         * iconvdata/8bit-gap.c: Likewise.
5868         * iconvdata/8bit-generic.c: Likewise.
5869         * iconvdata/ansi_x3.110.c: Likewise.
5870         * iconvdata/big5.c: Likewise.
5871         * iconvdata/big5hkscs.c: Likewise.
5872         * iconvdata/euc-cn.c: Likewise.
5873         * iconvdata/euc-jp.c: Likewise.
5874         * iconvdata/euc-kr.c: Likewise.
5875         * iconvdata/euc-tw.c: Likewise.
5876         * iconvdata/gbgbk.c: Likewise.
5877         * iconvdata/gbk.c: Likewise.
5878         * iconvdata/iso-2022-cn.c: Likewise.
5879         * iconvdata/iso-2022-jp.c: Likewise.
5880         * iconvdata/iso-2022-kr.c: Likewise.
5881         * iconvdata/iso646.c: Likewise.
5882         * iconvdata/iso8859-1.c: Likewise.
5883         * iconvdata/iso_6937-2.c: Likewise.
5884         * iconvdata/iso_6937.c: Likewise.
5885         * iconvdata/johab.c: Likewise.
5886         * iconvdata/sjis.c: Likewise.
5887         * iconvdata/t.61.c: Likewise.
5888         * iconvdata/uhc.c: Likewise.
5889         * iconvdata/unicode.c: Likewise.
5890         * iconvdata/utf-16.c: Likewise.
5891         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5892         structure correctly after last change.
5893         * wcsmbs/btowc.c: Likewise.
5894         * wcsmbs/mbrtowc.c: Likewise.
5895         * wcsmbs/mbsnrtowcs.c: Likewise.
5896         * wcsmbs/mbsrtowcs.c: Likewise.
5897         * wcsmbs/wcrtomb.c: Likewise.
5898         * wcsmbs/wcsnrtombs.c: Likewise.
5899         * wcsmbs/wcsrtombs.c: Likewise.
5900         * wcsmbs/wctob.c: Likewise.
5901
5902         * localedata/Makefile: Set -Wno-format for some files since gcc does
5903         not know all the format specifiers.
5904
5905 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5906
5907         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5908         unneeded code.
5909         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5910
5911 2000-06-18  Andreas Jaeger  <aj@suse.de>
5912
5913         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5914         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5915
5916 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5917
5918         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5919         LINUX_LINK_MAX.
5920         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5921
5922         * locale/programs/ld-ctype.c (ctype_output): Really write out
5923         mboutdigits information.
5924         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5925         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5926         * localedata/tests/trans.def: Add outdigit information.
5927
5928         * localedata/tst-mbswcs3.c: Remove comment.
5929
5930         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5931         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5932         * libio/tst_wprintf.c (main): Add test for I flag.
5933
5934         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5935         * locale/langinfo.h: Add entries for translit_ignore information.
5936         * locale/categories.def: Add entries for new LC_CTYPE elements.
5937         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5938         pointer instead of "" where possible.
5939         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5940         * intl/Depend: Add localedata.
5941         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5942         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5943
5944 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5945
5946         * locale/langinfo.h: Add entries for default_missing information.
5947         * locale/C-ctype.c: Add initializers for new fields.
5948         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5949         information.
5950         * locale/categories.h: Add entries for all LC_CTYPE values.
5951         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5952         information.
5953
5954         * localedata/tst-trans.c: Write out an error message if class is
5955         not found.
5956
5957         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5958         * iconv/gconv_open.c: Remove error handling specification from `from'
5959         character set name.
5960         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5961         new parameter to always enable transliteration.
5962         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5963         change.
5964         (struct locale_data): Add new members use_translit and options.
5965         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5966         character set name contained modifier TRANSLIT.
5967         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5968         and options fields.
5969         (_nl_unload_locale): Free options string if necessary.
5970         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5971         the locale names suggested this.
5972         * locale/C-address.c: Add two new initialilzers to adjust data
5973         structure for new format.
5974         * locale/C-collate.c: Likewise.
5975         * locale/C-ctype.c: Likewise.
5976         * locale/C-identification.c: Likewise.
5977         * locale/C-measurement.c: Likewise.
5978         * locale/C-messages.c: Likewise.
5979         * locale/C-monetary.c: Likewise.
5980         * locale/C-name.c: Likewise.
5981         * locale/C-numeric.c: Likewise.
5982         * locale/C-paper.c: Likewise.
5983         * locale/C-telephone.c: Likewise.
5984         * locale/C-time.c: Likewise.
5985
5986         * locale/setlocale.c: Add some more __builtin_expect.
5987
5988 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5989
5990         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5991         unsigned char **.
5992         (__gconv_init_fct): Remove two parameters.
5993         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5994         gconv_transliterate.  Remove two parameters.
5995         Change prototypes of builtin functions according to __gconv_fct change.
5996         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5997         != NULL only during error handling.  Stop in this case after the
5998         conversion.
5999         * iconv/gconv_trans.c: Replace with real implementation for
6000         __gconv_transliterate.
6001         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6002         * iconv/gconv.c: Change calls to downstream functions once again.
6003         Use NULL for the fifth parameter instead of pointer to output buffer.
6004         * libio/iofwide.c: Likewise.
6005         * wcsmbs/btowc.c: Likewise.
6006         * wcsmbs/mbrtowc.c: Likewise.
6007         * wcsmbs/mbsnrtowcs.c: Likewise.
6008         * wcsmbs/mbsrtowcs.c: Likewise.
6009         * wcsmbs/wcrtomb.c: Likewise.
6010         * wcsmbs/wcsnrtombs.c: Likewise.
6011         * wcsmbs/wcsrtombs.c: Likewise.
6012         * wcsmbs/wctob.c: Likewise.
6013         * iconv/gconv_simple.c: Remove two parameters from error handling
6014         function call.
6015         * iconvdata/8bit-gap.c: Likewise.
6016         * iconvdata/8bit-generic.c: Likewise.
6017         * iconvdata/ansi_x3.110.c: Likewise.
6018         * iconvdata/big5.c: Likewise.
6019         * iconvdata/big5hkscs.c: Likewise.
6020         * iconvdata/euc-cn.c: Likewise.
6021         * iconvdata/euc-jp.c: Likewise.
6022         * iconvdata/euc-kr.c: Likewise.
6023         * iconvdata/euc-tw.c: Likewise.
6024         * iconvdata/gbgbk.c: Likewise.
6025         * iconvdata/gbk.c: Likewise.
6026         * iconvdata/iso-2022-cn.c: Likewise.
6027         * iconvdata/iso-2022-jp.c: Likewise.
6028         * iconvdata/iso-2022-kr.c: Likewise.
6029         * iconvdata/iso646.c: Likewise.
6030         * iconvdata/iso8859-1.c: Likewise.
6031         * iconvdata/iso_6937-2.c: Likewise.
6032         * iconvdata/iso_6937.c: Likewise.
6033         * iconvdata/johab.c: Likewise.
6034         * iconvdata/sjis.c: Likewise.
6035         * iconvdata/t.61.c: Likewise.
6036         * iconvdata/uhc.c: Likewise.
6037         * iconvdata/unicode.c: Likewise.
6038         * iconvdata/utf-16.c: Likewise.
6039
6040 2000-06-15  Greg McGary  <greg@mcgary.org>
6041
6042         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6043         of callnum assignment.  Tolerate callnum expressions containing
6044         parens.
6045
6046 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6047
6048         * login/Makefile (utmpd): Remove rule to build utmpd.
6049
6050         * csu/Versions: Move libgcc frame handling functions from here...
6051         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6052         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6053         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6054         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6055         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6056         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6057         New file.
6058         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6059
6060         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6061
6062         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6063
6064 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6065
6066         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6067         compatibility.
6068         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6069         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6070         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6071         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6072
6073 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6074
6075         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6076         defined, terminate quotes and read them after the comment char.
6077         * configure.in (HAVE_SECTION_QUOTES): Test whether
6078         __attribute__((section ("x"))) puts quotes around x or not.
6079         * config.h.in (HAVE_SECTION_QUOTES): Add.
6080         * configure: Rebuilt.
6081
6082 2000-06-14  Andreas Jaeger  <aj@suse.de>
6083
6084         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6085         depending on the configure option --sysconfdir.
6086         Closes PR libc/1762.
6087         Patch by Andreas Schwab <schwab@suse.de>.
6088
6089         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6090         entry point.
6091         Reported by Jim Pick <jim@jimpick.com>.
6092
6093 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6094
6095         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6096         crashing the application.  Emit some simple error message.
6097         Reported by mju@panasas.com [PR libc/1769].
6098
6099 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6100
6101         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6102
6103         * crypt/Makefile (distribute): Add md5.h.
6104
6105         * Makefile (distribute): Add include/shlib-compat.h.
6106
6107         * Make-dist: Search for tests also in sysdeps hierachy.
6108
6109         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6110         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6111
6112         * sysdeps/sparc/Subdirs: New file.
6113
6114         * locale/Makefile (distribute): Add weightwc.h and
6115         programs/localedef.h.
6116
6117         * time/Makefile (distribute): Add datemsk.
6118
6119         * sysdeps/ia64/Dist: Add softpipe.h.
6120
6121         * sysdeps/unix/sysv/aix/Dist: New file.
6122
6123         * posix/setpgrp.c: Moved to...
6124         * sysdeps/generic/setpgrp.c: ...here.  New file.
6125         * io/mknod.c: Moved to...
6126         * sysdeps/generic/mknod.c: ...here.  New file.
6127
6128         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6129
6130         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6131
6132         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6133
6134         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6135         gprsave0.S, gprrest1.S, and gprrest0.S.
6136
6137         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6138
6139         * posix/Makefile (routines): Add spawnattr_getsigmask,
6140         spawnattr_getschedpolicy, spawnattr_getschedparam,
6141         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6142         spawnattr_setschedparam.
6143         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6144         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6145         posix_spawnattr_setschedparam.
6146
6147         * posix/spawnattr_setschedparam.c: Fix typo.
6148
6149         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6150         Correct typo.
6151
6152         * login/programs/utmpd.c: Removed.
6153         * login/programs/utmpd.h: Removed.
6154         * login/programs/utmpd-private.h: Removed.
6155
6156         * Makefile (distribute): Add include/db_185.h and include/db.h.
6157
6158         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6159         iso-ir-165.h.
6160
6161         * elf/Makefile (distribute): Add missing files.
6162
6163         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6164         * elf/eval.c: Moved to...
6165         * dlfcn/eval.c: ...here.  New file.
6166
6167         * Makefile (distribute): Also distribute ChangeLog.1?.
6168
6169         * Make-dist (+tsrcs): Remove .args handling here as well.
6170
6171         * rt/Makefile (tests): Add tst-timer.
6172         * sysdeps/generic/tst-timer.c: New file.
6173
6174         * Makerules (sources): Don't add BP sources here.
6175
6176         * login/Makefile (distribute): Remove xtmp.h.
6177
6178         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6179         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6180
6181 2000-06-13  Andreas Jaeger  <aj@suse.de>
6182
6183         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6184         Patch by Ralf Baechle <ralf@gnu.org>.
6185
6186 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6187
6188         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6189         for mincore syscall.
6190
6191         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6192         __BOUNDED_POINTERS__ is not defined.
6193
6194 2000-06-07  Greg McGary  <greg@mcgary.org>
6195
6196         * sysdeps/generic/bp-sym.h: New file.
6197         * sysdeps/generic/bp-start.h: New file.
6198         * sysdeps/i386/elf/start.S: Designate BP symbols.
6199         * sysdeps/generic/libc-start.c: Wrap bounds around
6200         argv & envp and each of their string members.
6201
6202 2000-06-07  Greg McGary  <greg@mcgary.org>
6203
6204         * sysdeps/unix/make-syscalls.sh: Add comments to
6205         output that aid debugging & comprehension.
6206         Map simple syscall signatures to number of args.
6207         Generate BP syscall thunk definitions.
6208         * sysdeps/generic/bp-thunks.h: New file.
6209         * sysdeps/unix/syscalls.list: Replace arg-count with
6210         simple return+arg signature.
6211         * sysdeps/unix/common/syscalls.list: Likewise.
6212         * sysdeps/unix/inet/syscalls.list: Likewise.
6213         * sysdeps/unix/mman/syscalls.list: Likewise.
6214         * sysdeps/unix/sysv/syscalls.list: Likewise.
6215         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6216         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6217
6218 2000-06-07  Greg McGary  <greg@mcgary.org>
6219
6220         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6221         for all files *.[cS].
6222         (CFLAGS-.ob): Don't optimize sibling calls.
6223         (bppfx): New variable.
6224         * Makerules (elide-bp-thunks): New variable.
6225         (elide-routines.*): Elide BP-* files for all but *.ob.
6226         (sources): Include bp-thunks.
6227
6228 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6229
6230         * iconv/gconv_simple.c: Remove unnecessary prototype.
6231
6232         * iconv/gconv_trans.c: Pretty print.
6233
6234         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6235
6236         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6237         minimal kernel versions.  Add information about IA-64 kernel.
6238
6239         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6240         specific minimal supported kernel versions to be specified.
6241
6242         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6243         step data structure.
6244         * wcsmbs/btowc.c: Likewise.
6245         * wcsmbs/mbrtowc.c: Likewise.
6246         * wcsmbs/mbsnrtowcs.c: Likewise.
6247         * wcsmbs/mbsrtowcs.c: Likewise.
6248         * wcsmbs/wcrtomb.c: Likewise.
6249         * wcsmbs/wcsnrtombs.c: Likewise.
6250         * wcsmbs/wcsrtombs.c: Likewise.
6251         * wcsmbs/wctob.c: Likewise.
6252
6253         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6254         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6255
6256         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6257
6258         * misc/sys/cdefs.h: Remove one more __P.
6259
6260         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6261         Reported by HJ Lu.
6262
6263         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6264         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6265         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6266
6267 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6268             Yutaka Niibe  <gniibe@chroot.org>
6269
6270         * configure.in: Add machine sh3, sh4.
6271         * elf/elf.h: Add SH specific declarations of relocations.
6272         * shlib-versions: Add sh*-*-linux* cases.
6273
6274 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6275
6276         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6277         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6278         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6279         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6280         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6281         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6282
6283         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6284         instead of KERNEL_MATH_EMULATION.
6285         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6286         KERNEL_MATH_EMULATION.
6287
6288         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6289         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6290         * sysdeps/sh/dl-machine.h: ...here.  New file.
6291         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6292         and include generic SH version.
6293         * sysdeps/sh/sh3/bits/endian.h: Move to...
6294         * sysdeps/sh/bits/endian.h: ...here.  New file.
6295         * sysdeps/sh/sh4/bits/endian.h: Removed.
6296         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6297         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6298         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6299
6300         * include/libc-symbols.h (link_warning): Work around a change in
6301         GAS which warns about changing section attributes.
6302         Proposed by Nick Clifton <nickc@redhat.com>.
6303
6304 2000-06-12  H.J. Lu  <hjl@gnu.org>
6305
6306         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6307
6308 2000-06-11  H.J. Lu  <hjl@gnu.org>
6309
6310         * sysdeps/i386/fpu/Versions: New file.
6311
6312 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6313
6314         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6315         parameters.
6316         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6317         exists.
6318
6319 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6320
6321         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6322         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6323         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6324
6325         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6326         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6327         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6328
6329 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6330             Yutaka Niibe  <gniibe@chroot.org>
6331
6332         * sysdeps/sh/Dist: New file.
6333         * sysdeps/sh/Implies: New file.
6334         * sysdeps/sh/elf/initfini.c: New file.
6335         * sysdeps/sh/gmp-mparam.h: New file.
6336         * sysdeps/sh/init-first.c: New file.
6337         * sysdeps/sh/machine-gmon.h: New file.
6338         * sysdeps/sh/memcpy.S: New file.
6339         * sysdeps/sh/memprof.h: New file.
6340         * sysdeps/sh/memset.S: New file.
6341         * sysdeps/sh/sh3/__longjmp.S: New file.
6342         * sysdeps/sh/sh3/bits/endian.h: New file.
6343         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6344         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6345         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6346         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6347         * sysdeps/sh/sh3/dl-machine.h: New file.
6348         * sysdeps/sh/sh3/setjmp.S: New file.
6349         * sysdeps/sh/sh4/__longjmp.S: New file.
6350         * sysdeps/sh/sh4/bits/endian.h: New file.
6351         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6352         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6353         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6354         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6355         * sysdeps/sh/sh4/dl-machine.h: New file.
6356         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6357         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6358         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6359         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6360         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6361         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6362         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6363         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6364         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6365         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6366         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6367         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6368         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6369         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6370         * sysdeps/sh/sh4/setjmp.S: New file.
6371         * sysdeps/sh/elf/start.S: New file.
6372         * sysdeps/sh/sys/ucontext.h: New file.
6373         * sysdeps/sh/strlen.S: New file.
6374         * sysdeps/sh/sysdep.h: New file.
6375         * sysdeps/unix/sh/sysdep.S: New file.
6376         * sysdeps/unix/sh/sysdep.h: New file.
6377         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6378         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6379         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6380         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6381         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6382         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6383         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6384         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6385         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6386         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6387         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6388         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6389         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6390         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6391         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6392         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6393         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6394         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6395         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6396         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6397         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6398         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6399         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6400         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6401         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6402         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6403         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6404         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6405         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6406         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6407         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6408         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6409         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6410         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6411         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6412         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6413         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6414         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6415         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6416         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6417         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6418         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6419         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6420         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6421         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6422         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6423         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6424         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6425         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6426         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6427
6428 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6429
6430         * Rules (%.out): Define GCONV_PATH in the environment.
6431         * assert/Depend: New file.
6432         * iconvdata/Depend: New file.
6433         * intl/Depend: New file.
6434         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6435         * intl/tst-gettext.sh: Likewise.
6436         * iconv/Makefile (routines): Add gconv_trans.
6437         * iconv/gconv_trans.c: New file.
6438         * iconv/gconv.h (struct __gconv_trans_data): New type.
6439         (__gconv_fct): New parameter with starting position in output buffer.
6440         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6441         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6442         (struct __gconv_step): Add new member __trans.
6443         * iconv/gconv_int.h: Pretty print prototypes.
6444         (gconv_transliterate): New prototype.
6445         (__BUILTIN_TRANS): Update for new conversion function interface.
6446         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6447         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6448         in names, find appropriate function, and install in the conversion
6449         steps it can be used.
6450         * iconv/skeleton.c: Add additional parameter for beginning of output
6451         buffer.  Change calls of downstream functions.
6452         * iconv/loop.c: Change loop function interface completely.  Pass in
6453         step and step_data structure.  Remove optimization for BODY with
6454         NEED_LENGTH_TEST == 0.
6455         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6456         appropriate error handling code to use transliteration steps.  Remove
6457         optimization for BODY with NEED_LENGTH_TEST == 0.
6458         * iconvdata/8bit-gap.c: Likewise.
6459         * iconvdata/8bit-generic.c: Likewise.
6460         * iconvdata/ansi_x3.110.c: Likewise.
6461         * iconvdata/big5.c: Likewise.
6462         * iconvdata/big5hkscs.c: Likewise.
6463         * iconvdata/euc-cn.c: Likewise.
6464         * iconvdata/euc-jp.c: Likewise.
6465         * iconvdata/euc-kr.c: Likewise.
6466         * iconvdata/euc-tw.c: Likewise.
6467         * iconvdata/gbgbk.c: Likewise.
6468         * iconvdata/gbk.c: Likewise.
6469         * iconvdata/iso-2022-cn.c: Likewise.
6470         * iconvdata/iso-2022-jp.c: Likewise.
6471         * iconvdata/iso-2022-kr.c: Likewise.
6472         * iconvdata/iso646.c: Likewise.
6473         * iconvdata/iso8859-1.c: Likewise.
6474         * iconvdata/iso_6937-2.c: Likewise.
6475         * iconvdata/iso_6937.c: Likewise.
6476         * iconvdata/johab.c: Likewise.
6477         * iconvdata/sjis.c: Likewise.
6478         * iconvdata/t.61.c: Likewise.
6479         * iconvdata/uhc.c: Likewise.
6480         * iconvdata/unicode.c: Likewise.
6481         * iconvdata/utf-16.c: Likewise.
6482         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6483         DL_CALL_FCT.
6484         * wcsmbs/btowc.c: Likewise.
6485         * wcsmbs/mbrtowc.c: Likewise.
6486         * wcsmbs/mbsnrtowcs.c: Likewise.
6487         * wcsmbs/mbsrtowcs.c: Likewise.
6488         * wcsmbs/wcrtomb.c: Likewise.
6489         * wcsmbs/wcsnrtombs.c: Likewise.
6490         * wcsmbs/wcsrtombs.c: Likewise.
6491         * wcsmbs/wctob.c: Likewise.
6492
6493 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6494
6495         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6496         other header files.  Mention about 128-byte cache line sizes.
6497         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6498         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6499         for current calling sequence.
6500         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6501
6502         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6503         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6504
6505         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6506         and setrlimit syscalls for backwards compatibility.
6507
6508 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6509
6510         * iconv/skeleton.c:  Rename converted written to correcter name
6511         irreversible.
6512         * iconv/gconv.c: Rename converted variable to correcter name
6513         irreversible.
6514         * iconv/gconv_int.h: Likewise.
6515         * iconv/gconv_simple.c: Likewise.
6516         * iconv/iconv.c: Likewise.
6517         * iconv/loop.c: Likewise.
6518         * iconvdata/8bit-gap.c: Likewise.
6519         * iconvdata/8bit-generic.c: Likewise.
6520         * iconvdata/ansi_x3.110.c: Likewise.
6521         * iconvdata/big5.c: Likewise.
6522         * iconvdata/big5hkscs.c: Likewise.
6523         * iconvdata/euc-cn.c: Likewise.
6524         * iconvdata/euc-jp.c: Likewise.
6525         * iconvdata/euc-kr.c: Likewise.
6526         * iconvdata/gbgbk.c: Likewise.
6527         * iconvdata/gbk.c: Likewise.
6528         * iconvdata/iso-2022-cn.c: Likewise.
6529         * iconvdata/iso-2022-jp.c: Likewise.
6530         * iconvdata/iso-2022-kr.c: Likewise.
6531         * iconvdata/iso646.c: Likewise.
6532         * iconvdata/iso8859-1.c: Likewise.
6533         * iconvdata/iso_6937-2.c: Likewise.
6534         * iconvdata/iso_6937.c: Likewise.
6535         * iconvdata/johab.c: Likewise.
6536         * iconvdata/sjis.c: Likewise.
6537         * iconvdata/t.61.c: Likewise.
6538         * iconvdata/uhc.c: Likewise.
6539         * iconvdata/unicode.c: Likewise.
6540         * iconvdata/utf-16.c: Likewise.
6541
6542         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6543         __cmsg_data field with __extension__.
6544
6545 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6546
6547         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6548
6549 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6550
6551         * iconv/gconv_simple.c: Fix various small bugs in several
6552         functions.
6553
6554         * iconv/loop.c: Fix comment.
6555
6556 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6557
6558         * elf/link.h: Remove libc internal declarations.
6559         * include/link.h: Move them here.
6560
6561 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6562
6563         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6564         Patch by Dan Pop <Dan.Pop@cern.ch>.
6565
6566         Rewrite error message handling.
6567         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6568         _dl_catch_error.
6569         * elf/dl-error (struct catch): Add objname member.
6570         (_dl_signal_error): Take new parameter with object name.  When
6571         passing message on simply store object name and duplicate error
6572         message.
6573         (_dl_catch_error): Take new parameter.  Store object name in the
6574         place pointed to.
6575         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6576         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6577         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6578         (dlerror): Add objname to asprintf() parameters.
6579         (_dl_error_run): Pass new parameter to _dl_catch_error.
6580         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6581         * elf/dl-open.c (_dl_open): Likewise.
6582         * elf/rtld.c (dl_main): Likewise.
6583         * elf/dl-close.c: Mark error messages with N_().
6584         * elf/dl-deps.c: Likewise.
6585         * elf/dl-error.c: Likewise.
6586         * elf/dl-load.c: Likewise.
6587         * elf/dl-open.c: Likewise.
6588         * elf/dl-reloc.c: Likewise.
6589         * elf/dl-support.c: Likewise.
6590         * elf/dl-sym.c: Likewise.
6591         * elf/dl-version.c: Likewise.
6592         * elf/dl-lookup.c: Add comments about problems with error message
6593         translations.
6594         * elf/dl-reloc.c: Likewise.
6595         * elf/dl-version.c: Likewise.
6596
6597 2000-06-09  H.J. Lu  <hjl@gnu.org>
6598
6599         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6600         after freeing it.
6601
6602         * dlfcn/Makefile (distribute): Add failtestmod.c.
6603         (tests): Add failtest.
6604         Add rules to build and run failtest.
6605         * dlfcn/failtest.c: New file.
6606         * dlfcn/failtestmod.c: New file.
6607
6608 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6609
6610         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6611         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6612         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6613         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6614         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6615
6616 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6617
6618         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6619         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6620
6621 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6622             Ulrich Drepper  <drepper@redhat.com>
6623
6624         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6625         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6626         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6627         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6628         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6629         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6630
6631 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6632
6633         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6634         to find correct mount point despite wrong information from the
6635         kernel.
6636
6637 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6638
6639         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6640         the address of a symbol so function pointers are handled properly.
6641
6642 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6643
6644         * sysdeps/i386/Dist: Add bp-asm.h.
6645
6646         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6647         defaultdir variable instead of "/var/shm" everywhere.
6648         (defaultdir): Change to /dev/shm/.
6649
6650 2000-06-08  Greg McGary  <greg@mcgary.org>
6651
6652         * sysdeps/i386/bp-asm.h: New file.
6653         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6654         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6655         frame-pointer chain when debugging.
6656         * sysdeps/i386/add_n.S: Likewise.
6657         * sysdeps/i386/addmul_1.S: Likewise.
6658         * sysdeps/i386/lshift.S: Likewise.
6659         * sysdeps/i386/memchr.S: Likewise.
6660         * sysdeps/i386/memcmp.S: Likewise.
6661         * sysdeps/i386/mul_1.S: Likewise.
6662         * sysdeps/i386/rawmemchr.S: Likewise.
6663         * sysdeps/i386/rshift.S: Likewise.
6664         * sysdeps/i386/stpcpy.S: Likewise.
6665         * sysdeps/i386/stpncpy.S: Likewise.
6666         * sysdeps/i386/strchr.S: Likewise.
6667         * sysdeps/i386/strchrnul.S: Likewise.
6668         * sysdeps/i386/strcspn.S: Likewise.
6669         * sysdeps/i386/strpbrk.S: Likewise.
6670         * sysdeps/i386/strrchr.S: Likewise.
6671         * sysdeps/i386/strspn.S: Likewise.
6672         * sysdeps/i386/strtok.S: Likewise.
6673         * sysdeps/i386/sub_n.S: Likewise.
6674         * sysdeps/i386/submul_1.S: Likewise.
6675         * sysdeps/i386/elf/setjmp.S: Likewise.
6676         * sysdeps/i386/i486/strcat.S: Likewise.
6677         * sysdeps/i386/i486/strlen.S: Likewise.
6678         * sysdeps/i386/i586/add_n.S: Likewise.
6679         * sysdeps/i386/i586/lshift.S: Likewise.
6680         * sysdeps/i386/i586/memcpy.S: Likewise.
6681         * sysdeps/i386/i586/memset.S: Likewise.
6682         * sysdeps/i386/i586/rshift.S: Likewise.
6683         * sysdeps/i386/i586/strchr.S: Likewise.
6684         * sysdeps/i386/i586/strcpy.S: Likewise.
6685         * sysdeps/i386/i586/strlen.S: Likewise.
6686         * sysdeps/i386/i586/sub_n.S: Likewise.
6687         * sysdeps/i386/i686/add_n.S: Likewise.
6688         * sysdeps/i386/i686/memcpy.S: Likewise.
6689         * sysdeps/i386/i686/mempcpy.S: Likewise.
6690         * sysdeps/i386/i686/memset.S: Likewise.
6691         * sysdeps/i386/i686/strcmp.S: Likewise.
6692
6693 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6694
6695         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6696
6697         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6698         256 and don't use OPEN_MAX.
6699
6700         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6701         use it instead of LINK_MAX.
6702         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6703
6704 2000-06-08  Andreas Jaeger  <aj@suse.de>
6705
6706         * libio/genops.c (_IO_list_lock): Only compile body if we're
6707         thread safe.
6708         (_IO_list_unlock): Likewise.
6709         (_IO_list_resetlock): Likewise.
6710
6711 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6712
6713         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6714         unless user defined it.
6715
6716         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6717         if not defined by the user.
6718
6719         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6720         * libio/iofwrite.c (_IO_fwrite): Likewise.
6721
6722         * time/time.h: Add missing __THROW for clock_getcpuclockid
6723         prototype.
6724
6725         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6726         * include/elf.h: Include also <dl-dtprocnum.h>.
6727         * elf/dl-deps.c: Likewise.
6728         * elf/dl-lookup.c: Likewise.
6729         * elf/dl-runtime.c: Likewise.
6730         * elf/dl-version.c: Likewise.
6731         * elf/do-rel.h: Likewise.
6732         * elf/dynamic-link.h: Likewise.
6733         * elf/link.h: Likewise.
6734         * elf/rtld.c: Likewise.
6735         * sysdeps/generic/dl-dtprocnum.h: New file.
6736         * sysdeps/ia64/dl-dtprocnum.h: New file.
6737         * sysdeps/mips/dl-dtprocnum.h: New file.
6738         * sysdeps/sparc/dl-dtprocnum.h: New file.
6739
6740         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6741
6742         * elf/do-lookup.h: Add some __builtin_expect.
6743
6744         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6745
6746         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6747         (_dl_dynamic_weak): New variable.
6748         * elf/dl-support.c: Likewise.
6749         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6750         * elf/do-lookup.h: If we find a weak definition treat it like a
6751         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6752         case treat it like before.
6753
6754         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6755         is in main program.
6756         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6757
6758         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6759         using l_map_start and l_map_end.
6760
6761         * elf/dl-version.c: Add __builtin_expect in many places.
6762
6763         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6764         Update.
6765
6766 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6767
6768         Lock for stdio stream list becomes global, for use in LinuxThreads.
6769
6770         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6771         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6772         _IO_list_resetlock): New interface for iterating global list of
6773         streams without accessing the _IO_list_all global variable,
6774         and for manipulating the lock which protects this list.
6775         * libio/libioP.h: Likewise.
6776         * libio/Version: Add entries for the new functions.
6777
6778         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6779         pointer to _IO_FILE.
6780
6781 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6782
6783         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6784         BIT() must actually be BITw().
6785
6786         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6787
6788         * locale/programs/charmap.c: Allow string arguments for
6789         code_set_name and repertoiremap.
6790
6791 2000-06-07  Andreas Jaeger  <aj@suse.de>
6792
6793         * elf/Makefile: Build ldconfig only when building shared libraries.
6794
6795 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6796
6797         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6798         __USE_ISOC99.
6799         (fdimf, __fdim, fdim): Likewise.
6800
6801 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6802
6803         * locale/findlocale.c: Add __builtin_expect in many places.
6804         * locale/loadlocale.c: Likewise.
6805
6806 2000-06-06  Greg McGary  <greg@mcgary.org>
6807
6808         * sysdeps/mips/elf/start.S: Trim redundant code.
6809
6810         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6811         Use C comments throughout.  Line up operands column with tabs.
6812         * sysdeps/powerpc/strchr.S: Likewise.
6813         * sysdeps/powerpc/strcmp.S: Likewise.
6814         * sysdeps/powerpc/strcpy.S: Likewise.
6815         * sysdeps/powerpc/strlen.S: Likewise.
6816
6817         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6818         Get low part of &__curbrk with @l.
6819
6820 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6821
6822         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6823         * iconvdata/unicode.c: Likewise.
6824         * iconvdata/uhc.c: Likewise.
6825         * iconvdata/t.61.c: Likewise.
6826         * iconvdata/sjis.c: Likewise.
6827         * iconvdata/johab.c: Likewise.
6828         * iconvdata/iso_6937.c: Likewise.
6829         * iconvdata/iso_6937-2.c: Likewise.
6830         * iconvdata/iso8859-1.c: Likewise.
6831         * iconvdata/iso646.c: Likewise.
6832         * iconvdata/iso-2022-kr.c: Likewise.
6833         * iconvdata/iso-2022-jp.c: Likewise.
6834         * iconvdata/iso-2022-cn.c: Likewise.
6835         * iconvdata/gbgbk.c: Likewise.
6836         * iconvdata/gbk.c: Likewise.
6837         * iconvdata/euc-kr.c: Likewise.
6838         * iconvdata/euc-jp.c: Likewise.
6839         * iconvdata/euc-cn.c: Likewise.
6840
6841 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6842
6843         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6844         * iconvdata/big5.c: Likewise.
6845         * iconvdata/ansi_x3.110.c: Likewise.
6846         * iconvdata/8bit-generic.c: Likewise.
6847         * iconvdata/8bit-gap.c: Likewise.
6848         * iconv/loop.c: Likewise.
6849         * iconv/gconv_db.c: Likewise.
6850         * iconv/gconv_dl.c: Likewise.
6851         * iconv/gconv_simple.c: Likewise.
6852         * iconv/skeleton.c: Likewise.
6853
6854         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6855         (struct __gconv_step_data): Rename __is_last to __flags.
6856         * iconv/gconv_close.c: Change all uses of __is_last.
6857         * iconv/skeleton.c: Likewise.
6858         * iconvdata/iso-2022-cn.c: Likewise.
6859         * iconvdata/iso-2022-jp.c: Likewise.
6860         * iconvdata/iso-2022-kr.c: Likewise.
6861         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6862         Recognize IGNORE error handling, set flag, and remove from name.
6863         * iconv/loop.c (ignore_errors_p): Define.
6864         Add flags parameter to both functions.
6865         * iconv/skeleton.c: Pass flags to all conversion functions.
6866         * iconv/gconv_simple.c: Add flags parameter to all functions.
6867         Don't return error for invald error if ignore flag is set.
6868         (ucs4_internal_loop_single): Add missing pointer increment.
6869         (internal_ucs4le_loop_single): Likewise.
6870         * iconv/iconv_prog.c: Implement handling of -c parameter.
6871         * iconvdata/8bit-gap.c: Don't return error for invald error if
6872         ignore flag is set.
6873         * iconvdata/8bit-generic.c: Likewise.
6874         * iconvdata/ansi_x3.110.c: Likewise.
6875         * iconvdata/big5.c: Likewise.
6876         * iconvdata/big5hkscs.c: Likewise.
6877         * iconvdata/euc-cn.c: Likewise.
6878         * iconvdata/euc-jp.c: Likewise.
6879         * iconvdata/euc-kr.c: Likewise.
6880         * iconvdata/gbgbk.c: Likewise.
6881         * iconvdata/gbk.c: Likewise.
6882         * iconvdata/iso-2022-cn.c: Likewise.
6883         * iconvdata/iso-2022-jp.c: Likewise.
6884         * iconvdata/iso-2022-kr.c: Likewise.
6885         * iconvdata/iso646.c: Likewise.
6886         * iconvdata/iso8859-1.c: Likewise.
6887         * iconvdata/iso_6937-2.c: Likewise.
6888         * iconvdata/iso_6937.c: Likewise.
6889         * iconvdata/johab.c: Likewise.
6890         * iconvdata/sjis.c: Likewise.
6891         * iconvdata/t.61.c: Likewise.
6892         * iconvdata/uhc.c: Likewise.
6893         * iconvdata/unicode.c: Likewise.
6894         * iconvdata/utf-16.c: Likewise.
6895         * libio/fileops.c: Likewise.
6896         * libio/iofwide.c: Likewise.
6897         * wcsmbs/btowc.c: Likewise.
6898         * wcsmbs/mbrtowc.c: Likewise.
6899         * wcsmbs/mbsnrtowcs.c: Likewise.
6900         * wcsmbs/mbsrtowcs.c: Likewise.
6901         * wcsmbs/wcrtomb.c: Likewise.
6902         * wcsmbs/wcsnrtombs.c: Likewise.
6903         * wcsmbs/wcsrtombs.c: Likewise.
6904         * wcsmbs/wctob.c: Likewise.
6905
6906         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6907         an error.
6908
6909 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6910
6911         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6912         counter for the object we are releasing, just decrement it.
6913         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6914
6915 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6916
6917         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6918         if -ffast-math.
6919
6920 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6921
6922         * iconvdata/big5hkscs.c: New file.
6923         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6924
6925         * iconvdata/gconv-modules: Add entry for new module.
6926         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6927         (distribute): Add big5hkscs.c.
6928
6929 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6930
6931         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6932         inlines to match prototypes in mathcalls.h.
6933         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6934         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6935         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6936         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6937
6938 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6939
6940         * elf/elf.h (SHT_SUNW_move): Define.
6941
6942         * elf/elf.h: Add more Solaris compatiblity definitions.
6943
6944 2000-06-03  Andreas Jaeger  <aj@suse.de>
6945
6946         * sysdeps/powerpc/dl-start.S: Close open comment.
6947
6948 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6949
6950         * inet/Versions: Fix typo in rresvport_af export.
6951
6952 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6953
6954         * math/tgmath.h: Pretty print.
6955
6956 2000-06-02  Andreas Jaeger  <aj@suse.de>
6957
6958         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6959         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6960
6961 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6962
6963         * elf/rtld.c (process_envvars): Test for = after variable name.
6964
6965 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6966
6967         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6968         have extra call to __gmon_start__, use the pointer we already have.
6969
6970         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6971         shifting.
6972
6973         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6974         binutils.  gas now emits a jump through the PLT instead of a
6975         relative jump if the jump target is an exported symbol.
6976
6977 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6978
6979         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6980
6981 2000-05-31  Andreas Jaeger  <aj@suse.de>
6982
6983         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6984         gregset_t.
6985
6986         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6987         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6988
6989         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6990         syscall.
6991         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6992
6993 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6994
6995         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6996
6997         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6998         * locale/localeconv.c: Make function versioned (with same definition).
6999
7000         * elf/Makefile (modules-names): Strip before using it.
7001
7002 2000-05-30  Andreas Jaeger  <aj@suse.de>
7003
7004         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7005         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7006         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7007         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7008         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7009         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7010
7011 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7012
7013         * Makefile: Add GNU make magic.
7014
7015         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7016         Removed.
7017         * inet/rcmd.c: Remove __P.  Remove unused variables.
7018         (iruserfopen): Make first parameter const.
7019         (ruserok_sa): Return result of ruserok2_sa.
7020         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7021         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7022         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7023         (ruserpass): Check results of memory allocation.
7024         * include/netdb.h: Add prototype for ruserpass.
7025
7026 2000-05-29  Andreas Jaeger  <aj@suse.de>
7027
7028         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7029         for all platforms.
7030
7031 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7032
7033         * inet/rcmd.c (rresvport_af): Use correct port number.
7034
7035 2000-05-26  Andreas Schwab  <schwab@suse.de>
7036
7037         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7038         entries in all-sonames.
7039         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7040         preserving the old name if different for compatibility.
7041
7042 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7043
7044         * posix/Makefile (tests): Add tst-spawn.
7045         (tst-spawn-ARGS): New variable.
7046         * posix/tst-spawn.c: New file.
7047
7048         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7049         * posix/spawn_faction_adddup2.c: Likewise.
7050         * posix/spawn_faction_addopen.c: Likewise.
7051         * posix/spawni.c: Correctly test for success of dup2 calls.
7052
7053         * posix/tst-preadwrite.c: Check success of malloc call.
7054
7055 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7056
7057         * posix/Makefile (tests): Add tst-exec.
7058         (tst-exec-ARGS): New variable.
7059         * posix/tst-exec.c: New file.
7060
7061         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7062
7063 2000-05-04  Andreas Jaeger  <aj@suse.de>
7064
7065         * string/string.h: Remove __strdup prototype, it's not needed in
7066         this file anymore.
7067
7068 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7069
7070         * posix/Makefile (tests): Add tst-fork.
7071         * posix/tst-fork.c: New file.
7072
7073         * resolv/inet_pton.c: Loose __P.
7074
7075 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7076
7077         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7078         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7079         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7080         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7081         _IO_CHECK_WIDE fails.
7082
7083 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7084
7085         * po/da.po: New file.
7086
7087         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7088         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7089
7090         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7091         (Other iconv Implementations): Fix typo.
7092         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7093
7094 2000-05-27  Andreas Jaeger  <aj@suse.de>
7095
7096         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7097         normal version now.
7098         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7099         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7100         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7101         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7102         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7103         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7104
7105         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7106         endianness to decide how to pass arguments.
7107         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7108
7109         * elf/vismain.c: Use test-skeleton interface.
7110         (TEST_FUNCTION): New macro.
7111         (do_test): Renamed from main.
7112
7113 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7114
7115         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7116         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7117
7118         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7119         handling of AI_V4MAPPED flag.
7120
7121         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7122         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7123         perform lookup for T_A type and tell getanswer_r to convert the
7124         result with new argument.
7125         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7126         Don't convert addresses from IPv4 to IPv6 here.
7127         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7128         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7129         IPv4 mapping has to be done.  Perform mappings if required by the
7130         caller and not if RES_USE_INET6 bit in _res.options is set.
7131         Add several __builtin_expect.
7132
7133 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7134
7135         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7136
7137         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7138         NULL.
7139
7140         * posix/tst-preadwrite.c: Allow parallel execution of
7141         tst-preadwrite and tst-preadwrite64.
7142
7143         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7144         * posix/tst-truncate.c: New file.
7145         * posix/tst-truncate64.c: New file.
7146
7147         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7148         was switched.
7149
7150         * posix/Makefile (tests): Add tst-preadwrite64.
7151         * posix/tst-preadwrite.c: Alloc file being used also for testing
7152         pread64 and pwrite64.
7153         * posix/tst-preadwrite64.c: New file.
7154
7155 2000-05-26  Andreas Jaeger  <aj@suse.de>
7156
7157         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7158         of arguments dependend on endianness.
7159         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7160
7161         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7162         normal version now.
7163         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7164         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7165         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7166         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7167
7168         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7169         endianness to check how to pass argument.
7170         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7171
7172         * elf/ldconfig.h: Update parameter list for process_elf_file.
7173
7174         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7175         Add parameter file_length and pass it ot process_elf*file.
7176
7177         * sysdeps/generic/readelflib.c (check_ptr): New.
7178         (process_elf_file): Use check_ptr to check all accesses to the
7179         mmapped file. Add parameter file_length.
7180
7181         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7182         library names.
7183
7184         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7185         Closes PR libc/1573, reported by Bradley White
7186         <bww@laurelnetworks.com>.
7187
7188 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7189
7190         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7191         __FAST_MATH__ is defined.
7192
7193 2000-05-22  Andreas Jaeger  <aj@suse.de>
7194
7195         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7196         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7197
7198         * manual/math.texi (FP Function Optimizations): Document gcc
7199         -ffast-math behaviour with mathinlines.
7200
7201         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7202         functions unless -ffast-math is given to gcc.
7203
7204 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7205
7206         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7207         __sincosl): Guard with __USE_GNU.
7208
7209 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7210
7211         * csu/Makefile (routines): Add check_fds.
7212         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7213         binaries.  Add various __builtin_expect.
7214         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7215         * sysdeps/generic/check_fds.c: ...here.  New file.
7216
7217         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7218         binaries if file /etc/suid-debug is available.
7219
7220         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7221         and wcseqorder members.
7222         (struct locale_collate_t): Likewise.
7223         (collate_finish): Assign collation sequence value to each character.
7224         Create tables for output.
7225         (collate_output): Write out tables with collation sequence information.
7226         * locale/C-collate.c: Provide C locale data for collation sequence
7227         table.
7228         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7229         _NL_COLLATE_COLLSEQWC.
7230         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7231         _NL_COLLATE_COLLSEQWC.
7232         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7233         include fnmatch_loop.c.
7234         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7235         character is matched by range expression.  Use collation sequence
7236         table.  Outside glibc fall back on simple character value comparison.
7237
7238 2000-05-24  Andreas Jaeger  <aj@suse.de>
7239
7240         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7241         words.
7242
7243         * intl/Makefile: Run gettext-test only if msgfmt is available.
7244
7245         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7246         Define it for newer kernels.
7247
7248 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7249
7250         * elf/dl-sym.c: Minor cleanups.
7251
7252         * configure.in: Add test for .protected.
7253         * config.make.in: Add have-protected variable.
7254         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7255         (tests-vis-yes): Add vismain.
7256         (modules-names): Add $(modules-vis-$(have-protected)).
7257         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7258         Add rules to generate and run vismain.
7259         * elf/vismain.c: New file.
7260         * elf/vismod1.c: New file.
7261         * elf/vismod2.c: New file.
7262         * elf/vismod3.c: New file.
7263
7264 2000-05-23  Andreas Jaeger  <aj@suse.de>
7265
7266         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7267
7268         * manual/search.texi (Array Sort Function): Document that qsort is
7269         not necessarily in-place.
7270
7271         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7272         Closes PR libc/1731.
7273
7274         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7275         * dirent/scandir64.c: Likewise.
7276         * pwd/getpw.c: Likewise.
7277         * stdlib/bsearch.c (bsearch): Likewise.
7278         * stdlib/tst-strtoll.c: Likewise.
7279         * localedata/collate-test.c: Likewise.
7280         * localedata/xfrm-test.c: Likewise.
7281         * posix/bsd-getpgrp.c: Likewise.
7282         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7283         * sysdeps/generic/bits/siginfo.h: Likewise.
7284         * sysdeps/generic/bits/sockaddr.h: Likewise.
7285         * sysdeps/generic/sys/swap.h: Likewise.
7286         * sysdeps/generic/sys/sysinfo.h: Likewise.
7287         * sysdeps/generic/vfork.c: Likewise.
7288         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7289         * sysdeps/mach/hurd/fdopen.c: Likewise.
7290         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7291         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7292         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7293         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7294         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7295         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7296         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7297
7298         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7299         * shadow/lckpwdf.c: Likewise.
7300         * stdlib/tst-strtol.c: Likewise.
7301         * sysdeps/generic/tcsetattr.c: Likewise.
7302         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7303         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7304
7305 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7306
7307         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7308         free it and set to (void *) -1.
7309
7310 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7311
7312         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7313         not the second character in the range.
7314         * stdio-common/tstscanf.c (main): Add testcase for the above.
7315         Reported by jik@kamens.brookline.ma.us.
7316
7317 2000-05-21  H.J. Lu  <hjl@gnu.org>
7318
7319         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7320         with noexec and noplt parameter.
7321         (do_lookup): Likewise.
7322
7323         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7324         do_lookup.  Support STV_PROTECTED.
7325         (_dl_lookup_symbol_skip): Likewise.
7326         (_dl_lookup_versioned_symbol): Likewise.
7327         (_dl_lookup_versioned_symbol_skip): Likewise.
7328
7329         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7330
7331         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7332
7333 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7334
7335         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7336         * sysdeps/i386/bits/huge_val.h: Likewise.
7337         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7338         * sysdeps/m68k/bits/huge_val.h: Likewise.
7339         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7340         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7341
7342 2000-05-22  Andreas Jaeger  <aj@suse.de>
7343
7344         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7345         change in iconv.h.
7346
7347 2000-05-19  Andreas Jaeger  <aj@suse.de>
7348
7349         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7350         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7351         breaks compilation without linuxthreads.
7352
7353 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7354
7355         * sysdeps/ia64/memccpy.S: New file.
7356         * sysdeps/ia64/memchr.S: New file.
7357         * sysdeps/ia64/memcmp.S: New file.
7358         * sysdeps/ia64/memcpy.S: New file.
7359         * sysdeps/ia64/memmove.S: New file.
7360         * sysdeps/ia64/memset.S: New file.
7361         * sysdeps/ia64/strcat.S: New file.
7362         * sysdeps/ia64/strchr.S: New file.
7363         * sysdeps/ia64/strcmp.S: New file.
7364         * sysdeps/ia64/strcpy.S: New file.
7365         * sysdeps/ia64/strlen.S: New file.
7366         * sysdeps/ia64/strncmp.S: New file.
7367         * sysdeps/ia64/strncpy.S: New file.
7368         * sysdeps/ia64/softpipe.h: New file.
7369         Patches by Dan Pop <Dan.Pop@cern.ch>.
7370
7371         * manual/memory.texi: Document memory handling functions (mlock,
7372         munlock, mlockall, munlockall, brk, and sbrk)
7373         * manual/time.texi: Document timespec and friends.
7374         * manual/conf.texi: Fix references.
7375         * manual/ctype.texi: Likewise.
7376         * manual/errno.texi: Likewise.
7377         * manual/intro.texi: Likewise.
7378         * manual/locale.texi: Likewise.
7379         * manual/sysinfo.texi: Likewise.
7380         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7381
7382 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7383
7384         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7385         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7386
7387 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7388
7389         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7390         dxfer_direction.
7391
7392 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7393
7394         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7395         * locale/localeconv.c: Initialize new elements from ISO C99.
7396         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7397         new standard elements.
7398         * locale/categories.def: Adjust accordingly.
7399
7400         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7401         * iconv/iconv.c: Likewise.
7402         * conform/data/iconv.h-data: Likewise.
7403         * iconv/iconv_prog.c (process_block): Remove const from second
7404         parameter.
7405         (main): Remove const from addr definition.
7406         * manual/charset.texi (Generic Conversion Interface): Remove from
7407         inbuf parameter of iconv.
7408
7409         * intl/dcigettext.c: Fix typo in comment.
7410
7411 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7412
7413         * resolv/res_libc.c (_res): Initialize _sock to -1.
7414
7415 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7416
7417         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7418         (fopencookie@@GLIBC_2.2): New.
7419         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7420         (fopencookie@GLIBC_2.0): New.
7421         * libio/Versions: Add fopencookie to GLIBC_2.2.
7422
7423 2000-05-18  Andreas Jaeger  <aj@suse.de>
7424
7425         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7426         Closes PR libc/1731.
7427
7428         * manual/arith.texi (Parsing of Integers): Fix typo.
7429         Closes PR libc/1744, reported by blp@gnu.org.
7430
7431 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7432
7433         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7434         __extension__ to hexadecimal floating constant notation.
7435         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7436         Likewise.
7437         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7438         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7439         Likewise.
7440         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7441         HUGE_VALL): Likewise.
7442         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7443         HUGE_VALL): Likewise.
7444         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7445
7446 2000-05-17  Andreas Jaeger  <aj@suse.de>
7447
7448         * string/envz.h: Add pure attributes if possible.
7449
7450         * string/argz.h: argz_count is a pure function.
7451
7452         * string/strings.h: Add pure and const attributes if possible.
7453
7454         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7455         possibly searching through the whole memory.
7456         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7457
7458 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7459
7460         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7461         not yet defined.
7462         (_dl_cache_check_flags): Likewise.
7463         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7464         dl-cache.h.
7465
7466 2000-05-17  Andreas Jaeger  <aj@suse.de>
7467
7468         * manual/creature.texi (Feature Test Macros): Remove paragraph
7469         since the description is wrong.
7470         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7471
7472         * scripts/config.sub: New version.
7473         * scripts/config.guess: Likewise.
7474         * manual/texinfo.tex: Likewise.
7475
7476         * time/test_time.args: Removed.
7477         * time/Makefile (test_time-ARGS): Added contents here instead.
7478
7479         * posix/tstgetopt.args: Removed.
7480         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7481
7482         * Rules: Allow arguments for test files to be specified in
7483         Makefile with testname-ARGS; remove rules with .args in it.
7484
7485         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7486         remove old bogus rule for opendir-tst1.args.
7487
7488         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7489
7490         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7491         into objdir.  This allows a readonly sourcetree.
7492         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7493
7494 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7495             David Huggins-Daines <dhd@linuxcare.com>
7496
7497         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7498         cache_data in case of only new cache format correctly.
7499
7500         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7501         cache_file_new.
7502
7503         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7504         struct cache_file_new.
7505
7506         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7507         present.
7508
7509         * elf/cache.c (save_cache): Align struct new_file_cache.
7510         (print_cache): Likewise.
7511
7512 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7513
7514         * elf/soinit.c (__libc_global_ctors): Move
7515         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7516         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7517         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7518         variable, don't define it to __res_state call.
7519
7520 2000-05-13  Andreas Jaeger  <aj@suse.de>
7521
7522         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7523         Linux 2.3.99pre7.
7524         (AF_PPPOX): Likewise.
7525         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7526         (AF_PPPOX): Likewise.
7527
7528 2000-05-12  Andreas Jaeger  <aj@suse.de>
7529
7530         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7531         Reported by tmoestl@gmx.net, closes PR libc/1732.
7532
7533 2000-05-11  Jan Hubicka  <jh@suse.cz>
7534
7535         * misc/sys/cdefs.h: Add support for pure attribute.
7536
7537         * include/string.h: Add __attribute_pure__ to various functions.
7538         * string/string.h: Likewise.
7539
7540 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7541
7542         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7543         argument.
7544         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7545         R_SPARC_UA64.
7546         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7547
7548 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7549
7550         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7551         at proper place.  Compute the high nibble correctly.
7552
7553 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7554
7555         * elf/ldconfig.c: Include elf.h.
7556
7557         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7558         (_dl_vsym): Likewise.
7559         Reported by Owen Taylor <otaylor@redhat.com>.
7560
7561         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7562         always.
7563
7564 2000-05-08  Andreas Jaeger  <aj@suse.de>
7565
7566         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7567
7568         * intl/bindtextdom.c (set_binding_values): Add prototype.
7569
7570 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7571
7572         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7573         call to elf_machine_fixup_plt.
7574         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7575         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7576
7577 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7578
7579         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7580         they are not dlclose'd from underneath us.
7581
7582 2000-05-08  Andreas Schwab  <schwab@suse.de>
7583
7584         * posix/execle.c: Fix size parameter of memcpy.
7585
7586 2000-05-08  Andreas Schwab  <schwab@suse.de>
7587
7588         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7589         getpagesize syscall if available.
7590
7591 2000-05-08  Andreas Jaeger  <aj@suse.de>
7592
7593         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7594         set errno.
7595
7596 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7597
7598         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7599         sizeof(struct link_map *) chunks, not in bytes.
7600
7601 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7602
7603         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7604         only needed for locale.
7605         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7606         It's only needed for catgets.
7607         Patches by Greg McGary <gkm@eng.ascend.com>.
7608
7609 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7610
7611         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7612         Remove duplicate <errno.h> include.  Remove inclusion of
7613         <libintl.h> and "nsswitch.h".
7614         (set_cloexec_flag): New function, broken out of dbopen.
7615         (dbopen): Changed return type to `enum
7616         nss_status'.  Mostly rewritten to make sure that we do not report
7617         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7618         (internal_setent): Change return type to nss_status.
7619         Document, and make sure that the function
7620         behaves accordingly.  Make dynamically loading the database
7621         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7622         failed.
7623         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7624         unecessary casts.
7625         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7626         documentation.
7627         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7628         c_get function member.
7629         * nss/nss_db/nss_db.h: Add and tweak some comments.
7630         (DBT): Move typedef before NSS_DBC typedef.
7631         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7632
7633 2000-05-07  H.J. Lu  <hjl@gnu.org>
7634
7635         * csu/initfini.c: Moved to ....
7636         * sysdeps/generic/initfini.c: ...here.
7637
7638         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7639
7640 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7641
7642         * manual/resource.texi: Document POSIX scheduling functions.
7643         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7644
7645         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7646         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7647
7648         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7649         for x since promotion in comparison might leads to unexpected
7650         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7651
7652         * iconv/Makefile (tests): Add tst-iconv1.
7653         * iconv/tst-iconv1.c: New file.
7654         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7655         empty input buffer over full output buffer.
7656         (ucs4_internal_loop): Likewise.
7657         (ucs4_internal_loop_unaligned): Likewise.
7658         (internal_ucs4le_loop): Likewise.
7659         (internal_ucs4le_loop_unaligned): Likewise.
7660         (ucs4le_internal_loop): Likewise.
7661         (ucs4le_internal_loop_unaligned): Likewise.
7662         Reported by yaoz@nih.gov.
7663
7664 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7665
7666         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7667         returned != __GCONV_OK, there is nothing to clean up.
7668
7669 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7670
7671         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7672         OUTPUT_CHARSET environment variables.
7673
7674 2000-05-06  Andreas Jaeger  <aj@suse.de>
7675
7676         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7677         (struct cache_file_new): New.
7678         (struct file_entry): New (moved from cache.c).
7679         (struct cache_file): New (moved from cache.c).
7680
7681         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7682         from _dl_load_cache_lookup.
7683         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7684         the different cache formats.
7685         New variable cache_new for new format.
7686
7687         * elf/ldconfig.h: Change according to changes in cache.c and
7688         ldconfig.c; remove cache_libcmp; add opt_format.
7689
7690         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7691         stuff that's defined in those headers.
7692         Add hwcap to struct lib_entry.
7693         (opt_format): New variable to select cache format.
7694         (options): Add format parameter.
7695         (is_hwcap): New function.
7696         (path_hwcap): New function.
7697         (parse_opt): Handle new format parameter.
7698         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7699
7700         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7701         ldconfig is part of glibc.
7702         Include dl-cache.h and remove stuff that's defined there.
7703         (struct cache_entry): Add new member hwcap.
7704         (print_entry): Print hwcap, cleanup a bit.
7705         (print_cache): Print new and old formats.
7706         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7707         (save_cache): Save new and old formats.
7708         (add_to_cache): Handle hwcap.
7709
7710         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7711         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7712         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7713         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7714         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7715         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7716
7717 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7718
7719         * intl/dcigettext.c (alignof): New macro.
7720         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7721         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7722         freemem_size to 0.
7723
7724 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7725
7726         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7727         return value.
7728
7729 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7730
7731         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7732         (mempcpy): Correct typo is parameter list.
7733
7734 2000-05-06  Andreas Jaeger  <aj@suse.de>
7735
7736         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7737         functions unless -ffast-math is given to gcc.
7738
7739 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7740
7741         * po/ko.po: Update from translation team.
7742
7743 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7744
7745         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7746         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7747         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7748         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7749         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7750         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7751
7752         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7753         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7754         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7755
7756         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7757         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7758         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7759         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7760
7761         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7762         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7763
7764 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7765
7766         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7767         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7768
7769         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7770         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7771
7772         * sysdeps/ia64/Implies: New file.
7773         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7774         * sysdeps/ia64/Makefile: New file.
7775         * sysdeps/ia64/gmp-mparam.h: New file,
7776
7777         * sysdeps/ia64/elf/start.S: New file.
7778
7779         * sysdeps/ia64/bits/fenv.h: New file.
7780
7781 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7782
7783         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7784
7785 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7786
7787         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7788         ia64 has 64 bit .hash entries just as the Alpha.
7789
7790 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7791
7792         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7793
7794 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7795
7796         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7797         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7798         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7799         * sysdeps/ia64/fpu/fegetenv.c: New file.
7800         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7801         * sysdeps/ia64/fpu/fegetround.c: New file.
7802         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7803         * sysdeps/ia64/fpu/fesetenv.c: New file.
7804         * sysdeps/ia64/fpu/fesetround.c: New file.
7805         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7806         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7807         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7808         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7809         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7810
7811 2000-05-05  Andreas Jaeger  <aj@suse.de>
7812
7813         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7814
7815         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7816         (_dl_string_hwcap): New, does nothing.
7817
7818         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7819         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7820         (_dl_string_hwcap): New function, converts from string to hwcap
7821         encoding.
7822         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7823         (_DL_HWCAP_COUNT): New.
7824         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7825         (_dl_string_hwcap): New function, converts from string to hwcap
7826         encoding.
7827         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7828         (_DL_HWCAP_COUNT): New.
7829         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7830         (_dl_string_hwcap): New function, converts from string to hwcap
7831         encoding.
7832
7833 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7834
7835         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7836         * sysdeps/ia64/Dist: New file.
7837
7838         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7839         parameter to mprotect and for variable assignments.
7840
7841 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7842
7843         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7844         validity of map before dereferencing it.
7845
7846         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7847
7848 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7849
7850         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7851         lookup to the arguments to elf_machine_fixup_plt().
7852
7853         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7854         of the symbol being resolved to input argument list and make the
7855         function return the pointer to the reloc.
7856
7857         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7858         return valuie to lookup_t and return the value.
7859         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7860         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7861         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7862         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7863         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7864         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7865
7866         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7867         Make it an inline function returning value after calling
7868         __elf_machine_fixup_plt().
7869
7870         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7871         symbol address.
7872
7873         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7874         obtain the symbol address.
7875
7876         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7877         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7878
7879         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7880         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7881         inline on non ia64.
7882
7883 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7884
7885         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7886         symbol address of an object.
7887
7888         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7889         the symbol address of an object.
7890
7891         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7892         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7893         (_dl_lookup_symbol_skip): Likewise.
7894         (_dl_lookup_versioned_symbol): Likewise.
7895         (_dl_lookup_versioned_symbol_skip): Likewise.
7896
7897 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7898
7899         * elf/rtld.c (_dl_start): Get the function pointer return address
7900         via _dl_start_address for architectures that need a function
7901         pointer descriptor rather than just a pointer (ia64).
7902
7903         * sysdeps/generic/dl-lookupcfg.h: New file.
7904         * sysdeps/ia64/dl-lookupcfg.h: New file.
7905         * sysdeps/ia64/dl-machine.h: New file.
7906         * sysdeps/ia64/dl-symaddr.c: New file.
7907         * sysdeps/ia64/dl-fptr.c: New file.
7908
7909         * elf/elf.h: Add IA-64 specific definitions.
7910
7911 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7912
7913         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7914         end of enum.
7915
7916 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7917
7918         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7919         happy.
7920
7921 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7922
7923         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7924         symbol.  Call _dl_init rather than the old way.
7925
7926 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7927
7928         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7929         test for pointer in range of DSO address space.
7930
7931 2000-05-04  Andreas Jaeger  <aj@suse.de>
7932
7933         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7934
7935 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7936
7937         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7938         calls of _nl_make_l10nflist.
7939
7940         * libio/stdio.h: Make fseeko and ftello prototypes available is
7941         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7942
7943         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7944         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7945
7946 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7947
7948         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7949         before calling tfind.
7950
7951 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7952
7953         * resolv/resolv.h (res_querydomain): Remove redefinition to
7954         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7955
7956 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7957
7958         * po/gl.po: Update from translation team.
7959
7960         * manual/intro.texi (Program Basics): Change section title.
7961         * manual/process.texi: Fix reference.
7962         (Executing a File): Add reference exec in other section.
7963         * manual/signal.texi: Fix reference.
7964         * manual/startup.texi: Document syscall function.
7965         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7966
7967 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7968
7969         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7970         * intl/bindtextdom.c (set_binding_values): New function.
7971         (bindtextdomain): Call it.
7972         (bind_textdomain_codeset): New function.
7973         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7974         (free_mem): Free each binding's codeset.
7975         * intl/gettextP.h (struct binding): Add codeset field.
7976         (_nl_find_domain): Add domainbinding argument.
7977         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7978         Pass it to _nl_make_l10nflist.
7979         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7980         (_nl_make_l10nflist): Add domainbinding argument.
7981         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7982         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7983         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7984         locale_charset().
7985         * manual/message.texi: New node "Charset conversion in gettext".
7986
7987 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7988
7989         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7990         appropriate.  Handle possible __read error.
7991
7992 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7993
7994         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7995         compiler builtin.
7996         * intl/loadinfo.h (__builtin_expect): Likewise.
7997         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7998         __builtin_expect where appropriate.
7999         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8000         * intl/localealias.c (extend_alias_table): Return an error indicator.
8001         (read_alias_file): Bail out if extend_alias_table fails.
8002
8003 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8004
8005         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8006         * intl/localealias.c: Likewise.
8007
8008 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8009
8010         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8011         Initialize domain->plural and domain->nplurals even if there is no
8012         nullentry.
8013
8014 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8015
8016         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8017         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8018         In case of failure, goto converted.
8019
8020 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8021
8022         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8023         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8024         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8025         __gconv_open.
8026
8027 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8028
8029         * intl/dcigettext.c (transcmp): Compare the domains as well.
8030         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8031         not before.
8032         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8033         <errno.h>.
8034
8035 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8036
8037         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8038         Reported by Bruno Haible.
8039
8040 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8041
8042         * manual/arith.texi: Remove @w from @itemize.
8043
8044 2000-05-02  Andreas Jaeger  <aj@suse.de>
8045
8046         * conform/data/tar.h-data: Add some checks for specific values.
8047
8048         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8049         and RAND_MAX.
8050
8051         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8052         FOPEN_MAX.
8053
8054         * conform/data/netinet/in.h-data: Add exact checks for the values
8055         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8056
8057         * conform/data/float.h-data: Add some minimal values.
8058
8059         * conform/conformtest.pl: Test for macros with string constants,
8060         check for minimum and maximum values.
8061         Add limits.h to headers.
8062
8063         * conform/data/cpio.h-data: Test for value of MAGIC.
8064
8065         * conform/data/limits.h-data: New file.
8066
8067 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8068
8069         * math/Makefile (headers): Add bits/fenvinline.h.
8070
8071 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8072
8073         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8074         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8075
8076         * posix/Versions: Change posix_spawnattr_getdefault and
8077         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8078         and posix_spawnattr_setsigdefault respectively.
8079         * posix/spawn.h: Likewise.
8080         * posix/spawnattr_getdefault.h: Likewise.
8081         * posix/spawnattr_setdefault.h: Likewise.
8082         * conform/data/spawn.h-data: Likewise.
8083
8084 2000-05-01  Andreas Jaeger  <aj@suse.de>
8085
8086         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8087
8088 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8089
8090         * manual/sysinfo.texi: Document getdomainname, setdomainname
8091         and sysctl.
8092         * manual/string.texi: Fix typo.
8093         * manual/terminal.texi: Document gtty and stty.
8094         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8095
8096 2000-04-30  Andreas Jaeger  <aj@suse.de>
8097
8098         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8099         accordance with Austin Draft.
8100
8101 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8102
8103         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8104         to recognize second character in comment line.
8105
8106         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8107         ENOBUFS if we are out of memory.
8108
8109         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8110         available if __USE_XOPEN2K.
8111         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8112         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8113         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8114         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8115         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8116         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8117         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8118         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8119
8120 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8121
8122         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8123         Recognize option -s, -c, and -l.
8124
8125 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8126
8127         * nscd/nscd.c: Start new session for nscd, drop privilegs
8128         to configured user if requested and no -S parameter are used.
8129         * nscd/nscd.conf: Add new option "server-user".
8130         * nscd/nscd_conf.c: Add support for new "server-user" option.
8131         * nscd/nscd.h: Add declaration for server_user variable.
8132         Based on patch by Chris Wing <wingc@engin.umich.edu>
8133
8134 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8135
8136         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8137         that changing the __restore and __restore_rt signal return code
8138         will break GDB.
8139
8140 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8141
8142         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8143         <sys/user.h>.
8144
8145 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8146
8147         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8148
8149 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8150
8151         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8152         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8153         arpa/inet.h.
8154         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8155         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8156         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8157         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8158         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8159         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8160         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8161         posix_fallocate, and posix_madvise.
8162         * conform/data/netdb.h-data: New file.
8163         * conform/data/pthread.h-data: Add pthread_barrier_t,
8164         pthread_barrierattr_t, pthread_barrier_destroy,
8165         pthread_barrier_init, pthread_barrier_wait,
8166         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8167         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8168         pthread_condattr_getclock, pthread_condattr_setclock,
8169         pthread_getcpuclockid, pthread_mutex_timedlock,
8170         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8171         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8172         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8173         * conform/data/sched.h-data: Add sched_ss_low_priority,
8174         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8175         SCHED_SPORADIC.
8176         * conform/data/semaphore.h-data: Add sem_timedwait.
8177         * conform/data/signal.h-data: Add SIGIO.
8178         * conform/data/spawn.h-data: New file.
8179         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8180         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8181         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8182         Fix typo in gmtime_r definition.
8183         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8184         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8185         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8186         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8187         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8188         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8189         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8190         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8191         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8192         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8193         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8194         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8195         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8196         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8197         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8198         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8199         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8200         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8201         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8202         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8203         typo in off_t definition.
8204         * conform/data/net/if.h-data: New file.
8205         * conform/data/netinet/in.h-data: New file.
8206         * conform/data/netinet/tcp.h-data: New file.
8207         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8208         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8209         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8210         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8211         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8212         and posix_typed_mem_open.
8213         * conform/data/sys/socket.h-data: New file.
8214         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8215         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8216         pthread_barrierattr_t, and pthread_spinlock_t.
8217         * conform/data/sys/un.h-data: New file.
8218         * conform/data/sys/utsname.h-data: New file.
8219
8220         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8221         parameter.
8222         * inet/gethstbyad.c (gethostbyname): Likewise.
8223         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8224         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8225         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8226         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8227         Likewise.
8228         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8229         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8230         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8231         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8232         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8233         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8234         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8235         and second parameter.
8236
8237         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8238         == NULL.
8239
8240 2000-04-29  Andreas Jaeger  <aj@suse.de>
8241
8242         * conform/data/arpa/inet.h-data: New file.
8243
8244 2000-04-28  Geoff Clare <gwc@unisoft.com>
8245
8246         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8247         path passed to ftw() or nftw() is an empty string.
8248         Closes PR libc/1710.
8249
8250 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8251
8252         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8253         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8254         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8255         * localedata/tst-mbswcs4.c: New file.
8256         * localedata/tst-mbswcs5.c: New file.
8257
8258         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8259         == NULL.  Little optimization.
8260
8261         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8262         DT_PREINIT_ARRAYSZ).
8263         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8264
8265         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8266         overflows in conversion from ASCII.
8267
8268 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8269
8270         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8271         * Makerules (full_config_sysdirs): Likewise.
8272         * MakeTAGS (full_config_sysdirs): Likewise.
8273
8274 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8275
8276         * .cvsignore: Remove linuxthreads.
8277         * po/.cvsignore: Remove *.pot.
8278         * posix/glob/.cvsignore: Removed.
8279         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8280
8281 2000-04-25  Andreas Jaeger  <aj@suse.de>
8282
8283         * conform/Makefile (distribute): Also distribute contents of
8284         subdirectories.
8285
8286         * Makerules (no_deps): Remove abi-versions.h.
8287
8288         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8289
8290 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8291
8292         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8293         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8294         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8295         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8296         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8297         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8298         objects.
8299
8300 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8301
8302         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8303
8304 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8305
8306         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8307         * intl/l10nflist.c: Likewise.
8308
8309 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8310
8311         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8312         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8313         * intl/textdomain.c [!_LIBC]: Likewise.
8314         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8315         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8316         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8317         syntax error.
8318
8319 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8320
8321         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8322         character set conversion also in the case the translation was found
8323         after a hash collision or through binary search.  Store the maximum
8324         index together with the converted message.  Use iconv() when available.
8325         In case of out of memory during conversion, return the unconverted
8326         translated string, not NULL.
8327
8328 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8329
8330         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8331         to avoid name clashes with the ia32 linker.
8332
8333 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8334
8335         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8336         handling.
8337
8338 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8339
8340         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8341         strtoumax, strfry, and memfrob.
8342         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8343         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8344
8345         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8346         if this function is available.
8347
8348         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8349         all values.
8350
8351 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8352
8353         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8354
8355 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8356
8357         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8358         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8359         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8360         * localedata/tst-mbswcs3.c: New file.
8361
8362 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8363
8364         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8365         characters.  Don't handle incomplete characters as errors.
8366         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8367         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8368         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8369         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8370         * localedata/tst-mbswcs2.c: New file.
8371
8372         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8373         stored character in state in UNPACK_BYTES macro.
8374         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8375         test for available characters, handle result of BODY code correctly.
8376         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8377         (distribute): Add tst-mbswcs.sh.
8378         Add rule to run tst-mbswcs.sh.
8379         * localedata/tst-mbswcs.sh: New file.
8380         * localedata/tst-mbswcs1.c: New file.
8381
8382 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8383
8384         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8385         allocation fixups centrally, fix __builtin_expect call, return NULL
8386         on failure, not NIS_NOMEMORY.
8387
8388 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8389
8390         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8391
8392         * intl/loadinfo.h (internal_function): Define if not already defined.
8393
8394 2000-04-27  Andreas Jaeger  <aj@suse.de>
8395
8396         * intl/libintl.h: Fix typo, reported by Bruno Haible
8397         <haible@clisp.cons.org>.
8398
8399 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8400
8401         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8402         setting the state to GMON_PROF_BUSY.
8403
8404 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8405
8406         * elf/dl-profile.c (_dl_start_profile): define all variables which
8407         do not have to be global as local variables.
8408
8409         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8410         patch.  Keep needed tests for failed memory allocation.
8411
8412         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8413         __builtin_expect saying that we don't normally expect to profile.
8414
8415         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8416         __builtin_expect where desirable.
8417
8418 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8419
8420         * manual/Makefile (chapters): Add syslog.
8421         * manual/syslog.texi: New file.
8422         * manual/math.texi: Fix references.
8423         * manual/terminal.texi: Likewise.
8424         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8425
8426 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8427
8428         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8429         stdlib.h was not included or __USE_XOPEN not defined.
8430
8431 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8432
8433         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8434         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8435
8436 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8437
8438         * manual/examples/subopt.c (mount_opts): Add missing terminating
8439         entry.
8440         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8441
8442         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8443         * libio/ftello.c: Likewise.
8444         * libio/ftello64.c: Likewise.
8445         * libio/ioftell.c: Likewise.
8446         * sysdeps/generic/memrchr.c: Likewise.
8447         * sysdeps/posix/libc_fatal.c: Likewise.
8448         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8449         * misc/fstab.c: Include <string.h> for strcmp prototype.
8450         * sysdeps/generic/ldsodefs.h: Likewise.
8451         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8452         Patch by Kurt Roeckx <Q@ping.be>.
8453
8454         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8455         Remove db-open.  Change all uses.
8456         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8457
8458 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8459
8460         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8461         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8462         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8463         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8464         with .set noat/at to shut up warnings.
8465         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8466         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8467         compilation if __NR_pciconfig_iobase is not defined.
8468         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8469         Add alias.
8470
8471 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8472
8473         * manual/sysinfo.texi: Fix typo.
8474         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8475         Replace "high precision time" with "high accuracy clock".
8476         Fix language.
8477         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8478
8479         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8480         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8481         instead of malloc.
8482         * nis/nis_subr.c: Use __builtin_expect.
8483         * nis/ypclnt.c: Likewise.
8484         * nis/nis_getservlist.c: Likewise.
8485         * nis/nis_creategroup.c: Likewise.
8486
8487         * nis/nis_callback.c (__nis_create_callback): Check result of
8488         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8489         (__nis_destroy_callback): Fix memory leaks.
8490
8491 2000-04-21  Andreas Jaeger  <aj@suse.de>
8492
8493         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8494         * sysdeps/mips/mips64/add_n.S: Likewise.
8495         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8496         * sysdeps/mips/mips64/lshift.S: Likewise.
8497         * sysdeps/mips/mips64/mul_1.S: Likewise.
8498         * sysdeps/mips/mips64/rshift.S: Likewise.
8499         * sysdeps/mips/mips64/setjmp.S: Likewise.
8500         * sysdeps/mips/mips64/sub_n.S: Likewise.
8501         * sysdeps/mips/mips64/submul_1.S: Likewise
8502         * sysdeps/unix/mips/sysdep.S: Likewise.
8503
8504         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8505         and update comment.  The strtab from _dl_relocate_object can be
8506         used.
8507
8508 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8509
8510         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8511         * iconv/iconv_close.c (iconv_close): Likewise.
8512         * iconv/iconv_open.c (iconv_open): Likewise.
8513
8514         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8515         __builtin_expect where useful.
8516
8517         * grp/initgroups.c (initgroups): Test for result of memory
8518         allocation and punt if it fails.
8519
8520         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8521         * grp/fgetgrent.c (fgetfrent): Likewise.
8522         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8523
8524 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8525
8526         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8527
8528 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8529
8530         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8531         don't search for NUL byte to decrement counter.
8532         Reported by Ulrich.Brink@sap.com.
8533
8534         * iconv/gconv_simple.c: Define separate functions to convert from
8535         UCS4/UCS4-LE to the internal encoding.
8536         * iconv/gconv_builtin.h: Use separate functions to convert from
8537         UCS4/UCS4-LE to the internal encoding.
8538         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8539         __gconv_transform_ucs4le_internal.
8540
8541         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8542         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8543
8544         * iconv/skeleton.c: Add some more __builtin_expect.
8545         * iconv/loop.c: Likewise.
8546
8547 2000-03-08  H.J. Lu  <hjl@gnu.org>
8548
8549         * posix/regex.c (regex_compile): Correctly handle "\{" when
8550         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8551
8552 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8553
8554         * manual/stdio.texi: Give advise about handling error when using
8555         stream functions.
8556         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8557
8558 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8559
8560         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8561         field to nelems * sizeof (uint32_t).
8562         * locale/programs/ld-address.c (address_output): Align word fields
8563         properly.
8564         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8565         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8566         field.
8567         Avoid giving arbitrary garbage in the crncystr field.
8568         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8569         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8570         fields.
8571         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8572         Don't restart idx pointers to idx end at the decimal_point_wc field.
8573         * locale/programs/ld-time.c (time_output): week_1stday should be
8574         word, not byte.  Align it properly.
8575
8576 2000-04-19  H.J. Lu  <hjl@gnu.org>
8577
8578         * csu/gmon-start.c (_start): Declared as "extern void".
8579         (etext): Likewise.
8580
8581 2000-04-18  Andreas Jaeger  <aj@suse.de>
8582
8583         * manual/install.texi (Running make install): Don't mention utmpd
8584         anymore.
8585
8586 2000-04-18  Andreas Jaeger  <aj@suse.de>
8587
8588         * linuxthreads/Versions: Use ld instead of ld.so.
8589
8590         * elf/Makefile (ld-map): Use ld.map.
8591
8592         * Versions.def: Use ld instead of ld.so.
8593         * elf/Versions: Likewise.
8594         * sysdeps/mach/hurd/Versions: Likewise.
8595
8596 2000-04-20  Andreas Jaeger  <aj@suse.de>
8597
8598         * elf/rtld.c (print_statistics): Move ifndef further up.
8599         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8600         (dl_main): Likewise.
8601
8602 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8603
8604         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8605         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8606
8607         * po/cs.po: Update from translation team.
8608
8609         * sysdeps/generic/updwtmp.c: Remove daemon support.
8610
8611         * login/Makefile (routines): Remove utmp_daemon.
8612
8613         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8614         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8615         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8616         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8617
8618         * elf/rtld.c: Display statitics option also if hp timing is not
8619         available.
8620
8621         * login/programs/connection.c: Removed.
8622         * login/programs/database.c Removed.
8623         * login/programs/error.c: Removed.
8624         * login/programs/request.c: Removed.
8625         * login/programs/xtmp.c: Removed.
8626         * login/programs/xtmp.h: Removed.
8627         * login/Makefile: Remove rules for utmpd.
8628         * login/README.utmpd: Removed.
8629         * login/utmp_daemon.c: Removed.
8630         * login/getutent_r.c: Remove references to daemon functions.
8631         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8632         declaration.
8633
8634 2000-04-18  Andreas Jaeger  <aj@suse.de>
8635
8636         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8637         2.2 for libnsl, libresolv, librt, libnss_*.
8638
8639         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8640
8641         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8642
8643 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8644
8645         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8646         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8647         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8648         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8649         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8650         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8651         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8652         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8653         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8654         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8655         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8656         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8657         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8658         it here.
8659         * sysdeps/unix/sysv/aix/msync.c: New file.
8660         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8661         * sysdeps/unix/sysv/aix/net/if.h: New file.
8662         * sysdeps/unix/sysv/aix/pipe.c: New file.
8663         * sysdeps/unix/sysv/aix/poll.c: New file.
8664         * sysdeps/unix/sysv/aix/rename.c: New file.
8665         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8666         * sysdeps/unix/sysv/aix/select.c: New file.
8667         * sysdeps/unix/sysv/aix/semctl.c: New file.
8668         * sysdeps/unix/sysv/aix/semget.c: New file.
8669         * sysdeps/unix/sysv/aix/semop.c: New file.
8670         * sysdeps/unix/sysv/aix/sendto.c: New file.
8671         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8672         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8673         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8674         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8675         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8676         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8677         * sysdeps/unix/sysv/aix/setsid.c: New file.
8678         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8679         * sysdeps/unix/sysv/aix/shmat.c: New file.
8680         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8681         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8682         * sysdeps/unix/sysv/aix/shmget.c: New file.
8683         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8684         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8685         * sysdeps/unix/sysv/aix/socket.c: New file.
8686         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8687         * sysdeps/unix/sysv/aix/speed.c: New file.
8688         * sysdeps/unix/sysv/aix/symlink.c: New file.
8689         * sysdeps/unix/sysv/aix/sync.c: New file.
8690         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8691         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8692         * sysdeps/unix/sysv/aix/times.c: New file.
8693         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8694         * sysdeps/unix/sysv/aix/umask.c: New file.
8695         * sysdeps/unix/sysv/aix/unlink.c: New file.
8696         * sysdeps/unix/sysv/aix/ustat.c: New file.
8697         * sysdeps/unix/sysv/aix/utimes.c: New file.
8698
8699 2000-04-18  Andreas Jaeger  <aj@suse.de>
8700
8701         * manual/startup.texi (Environment Access): Fix putenv prototype
8702         according to recent changes.
8703         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8704         PR libc/1692.
8705
8706         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8707         needed.
8708
8709 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8710
8711         * posix/Makefile (tests): Add tst-getaddrinfo.
8712         * posix/tst-getaddrinfo.c: New file.
8713
8714 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8715
8716         * manual/sysinfo.texi: Document that umount2 is not widely available.
8717
8718         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8719         signal timing is not really implemented.
8720
8721 2000-04-17  Andreas Jaeger  <aj@suse.de>
8722
8723         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8724
8725 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8726
8727         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8728         and inst_libdir.
8729
8730 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8731
8732         * manual/intro.texi: Change reference from System Information to
8733         System Management.
8734         * manual/users.texi: Likewise.
8735         * manual/conf.texi: Likewise.
8736         * manual/sysinfo.texi: Document mount, umount, and umount2.
8737         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8738
8739 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8740
8741         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8742         Create wnumstr as well as numstr to support wide character output
8743         correctly.
8744
8745 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8746
8747         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8748         modification and move it...
8749         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8750         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8751         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8752         switch to $(LD) on sparc-linux.
8753
8754 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8755
8756         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8757         and setresuid from sysdep_routines.
8758
8759 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8760
8761         * manual/Makefile (chapters): Add resource.
8762
8763         * manual/time.texi: Move section on resources to...
8764         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8765         and vtimes.
8766         * manual/setjmp.texi: Adjust back reference.
8767         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8768
8769         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8770         definition.
8771         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8772         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8773         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8774         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8775         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8776         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8777         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8778         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8779         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8780         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8781         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8782         * sysdeps/unix/sysv/aix/Implies: New file.
8783         * sysdeps/unix/sysv/aix/Versions: New file.
8784         * sysdeps/unix/sysv/aix/bind.c: New file.
8785         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8786         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8787         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8788         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8789         * sysdeps/unix/sysv/aix/chdir.c: New file.
8790         * sysdeps/unix/sysv/aix/chmod.c: New file.
8791         * sysdeps/unix/sysv/aix/chroot.c: New file.
8792         * sysdeps/unix/sysv/aix/creat.c: New file.
8793         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8794         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8795         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8796         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8797         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8798         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8799         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8800         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8801         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8802         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8803         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8804         * sysdeps/unix/sysv/aix/link.c: New file.
8805         * sysdeps/unix/sysv/aix/madvise.c: New file.
8806         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8807         * sysdeps/unix/sysv/aix/mknod.c: New file.
8808         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8809         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8810         * sysdeps/unix/sysv/aix/msgget.c: New file.
8811         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8812
8813 2000-04-17  Andreas Jaeger  <aj@suse.de>
8814
8815         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8816         as suggested by Ulrich Drepper.
8817         (__dl_runtime_resolve): Remove unused variable, initialize sym
8818         directly.
8819         (RTLD_START): Document OFFSET_GP_GOT.
8820         (OFFSET_GP_GOT): New magic value.
8821         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8822         (elf_machine_got_rel): Only declare strtab if needed.
8823         (elf_machine_relplt): Removed, it's not needed.
8824         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8825
8826         * sysdeps/mips/add_n.S: Add newline at EOF.
8827         * sysdeps/mips/rshift.S: Likewise.
8828         * sysdeps/mips/mul_1.S: Likewise.
8829         * sysdeps/mips/lshift.S: Likewise.
8830         * sysdeps/mips/addmul_1.S: Likewise.
8831
8832 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8833
8834         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8835
8836         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8837         * elf/dl-lookup.c: Likewise.
8838         * elf/dl-init.c (_dl_init): Likewise.
8839         * elf/dl-fini.c (_dl_fini): Likewise.
8840         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8841         * elf/dl-close.c (_dl_close): Likewise.
8842         * elf/rtld.c (_dl_start_final): Likewise.
8843
8844         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8845
8846 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8847
8848         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8849         only fall back on using Linux.
8850
8851         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8852         Before testing versions check that we actually loaded the object
8853         and whether we are in trace mode.  If not loaded during tracing don't
8854         test versions in this object.
8855         (_dl_check_all_versions): Take new parameter and pass to
8856         _dl_check_map_versions.
8857         * sysdeps/generic/ldsodefs.h: Update prototypes for
8858         _dl_check_all_versions and _dl_check_map_versions.
8859         * elf/rtld.c (struct version_check_args): Add dotrace.
8860         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8861         (dl_main): Pass info about trace mode to version_check_doit.
8862         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8863         _dl_check_all_versions.
8864
8865         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8866         and getutmpx.
8867         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8868
8869         * manual/argp.texi: Document index parameter of argp_parse.
8870         Fix typo.
8871         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8872
8873 2000-04-14  Andreas Jaeger  <aj@suse.de>
8874
8875         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8876         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8877
8878         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8879
8880 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8881
8882         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8883         compat_symbol call for old adjtime.
8884
8885         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8886         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8887
8888         * posix/Makefile (headers): Add spawn.h.
8889         (distribute): Add spawn_int.h.
8890         (routines): Add spawn_faction_init, spawn_faction_destroy,
8891         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8892         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8893         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8894         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8895         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8896         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8897         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8898         posix_spawnattr_init, posix_spawnattr_destroy,
8899         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8900         posix_spawnattr_getflags, posix_spawnattr_setflags,
8901         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8902         and posix_spawnp.
8903         * posix/spawn.c: New file.
8904         * posix/spawn.h: New file.
8905         * posix/spawn_faction_addclose.c: New file.
8906         * posix/spawn_faction_adddup2.c: New file.
8907         * posix/spawn_faction_addopen.c: New file.
8908         * posix/spawn_faction_destroy.c: New file.
8909         * posix/spawn_faction_init.c: New file.
8910         * posix/spawn_int.h: New file.
8911         * posix/spawnattr_destroy.c: New file.
8912         * posix/spawnattr_getdefault.c: New file.
8913         * posix/spawnattr_getflags.c: New file.
8914         * posix/spawnattr_getpgroup.c: New file.
8915         * posix/spawnattr_getschedparam.c: New file.
8916         * posix/spawnattr_getschedpolicy.c: New file.
8917         * posix/spawnattr_getsigmask.c: New file.
8918         * posix/spawnattr_init.c: New file.
8919         * posix/spawnattr_setdefault.c: New file.
8920         * posix/spawnattr_setflags.c: New file.
8921         * posix/spawnattr_setpgroup.c: New file.
8922         * posix/spawnattr_setschedparam.c: New file.
8923         * posix/spawnattr_setschedpolicy.c: New file.
8924         * posix/spawnattr_setsigmask.c: New file.
8925         * posix/spawni.c: New file.
8926         * posix/spawnp.c: New file.
8927
8928         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8929         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8930
8931 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8932
8933         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8934         * malloc/malloc.c: Implement posix_memalign for glibc.
8935         * include/stdlib.h: Add prototype for __posix_memalign.
8936         * stdlib/stdlib.h: Add prototype for posix_memalign.
8937
8938 2000-04-14  Andreas Jaeger  <aj@suse.de>
8939
8940         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8941         symidx correctly.
8942         (elf_machine_got_rel): Cast sym correctly.
8943
8944         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8945         * sysdeps/mips/addmul_1.S: Likewise.
8946         * sysdeps/mips/lshift.S: Likewise.
8947         * sysdeps/mips/mul_1.S: Likewise.
8948         * sysdeps/mips/rshift.S: Likewise.
8949         * sysdeps/mips/sub_n.S: Likewise.
8950         * sysdeps/mips/submul_1.S: Likewise.
8951
8952         * stdlib/stdlib.h: Fix typo in comment.
8953
8954         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8955         2.2 for libdl, ld and libm.
8956
8957         * sysdeps/generic/madvise.c: Fix typos.
8958
8959         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8960
8961         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8962
8963         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8964         warnings.
8965
8966 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8967
8968         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8969         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8970         Make old name weak alias.
8971         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8972         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8973         Make old name weak alias.
8974         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8975
8976         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8977         posix_fallocate, and posix_fallocate64.
8978         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8979         posix_fallocate, and posix_fallocate64.
8980         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8981         posix_fallocate, and posix_fallocate64.
8982         * sysdeps/generic/fadvise.c: New file.
8983         * sysdeps/generic/fadvise64.c: New file.
8984         * sysdeps/generic/fallocate.c: New file.
8985         * sysdeps/generic/fallocate64.c: New file.
8986         * sysdeps/posix/fallocate.c: New file.
8987         * sysdeps/posix/fallocate64.c: New file.
8988         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8989         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8990         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8991         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8992         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8993         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8994         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8995         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8996         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8997
8998         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8999         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9000
9001 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9002
9003         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9004         * misc/sys/mman.h (posix_madvise): Add prototype.
9005         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9006         old name and posix_madvise weak aliases.
9007         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9008         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9009         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9010         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9011         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9012         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9013         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9014
9015 2000-04-13  Andreas Jaeger  <aj@suse.de>
9016
9017         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9018         versioning.
9019         (elf_machine_got_rel): Only add runtime display if needed.
9020         (elf_machine_got_rel): Handle symbol versioning.
9021
9022 2000-04-13  Andreas Jaeger  <aj@suse.de>
9023
9024         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9025
9026         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9027         default.
9028
9029         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9030         with some applications.
9031         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9032
9033         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9034         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9035         * sysdeps/mips/setjmp.S: Likewise.
9036
9037         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9038
9039 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9040
9041         * posix/globtest.sh: Work around inconsistency with expanding ~/
9042         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9043
9044 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9045
9046         * posix/getconf.c: Add support for many more POSIX options.
9047         * sysdeps/posix/sysconf.c: Likewise.
9048         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9049         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9050         _POSIX_SHELL.
9051         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9052         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9053         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9054         CLOCK_THREAD_CPUTIME_ID.
9055         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9056         CLOCK_PROCESS_CPUTIME_ID.
9057         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9058         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9059         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9060         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9061
9062         * malloc/Makefile (tests): Add tst-calloc.
9063         * malloc/tst-calloc.c: New file.
9064
9065         * sysdeps/arm/libm-test-ulps: New file.
9066
9067         * malloc/malloc.c: Undo all of today's changes.
9068
9069         * locale/programs/locale.c (show_info): Don't try to look into
9070         data for LC_ALL (there is none).
9071
9072         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9073         avoid writing over boundary.
9074         Patch by Greg McGary <gkm@eng.ascend.com>.
9075
9076         * sysdeps/arm/memprof.h: New file.
9077
9078 2000-04-12  Andreas Jaeger  <aj@suse.de>
9079
9080         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9081
9082         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9083         for memmem declaration.
9084
9085 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9086
9087         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9088         to -1.
9089         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9090
9091         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9092         mode is invalid.
9093         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9094         Patch by Bart Veer <bartv@redhat.com>.
9095
9096         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9097         function interface.
9098
9099 2000-04-11  Andreas Jaeger  <aj@suse.de>
9100
9101         * sysdeps/mips/dl-machine.h: Update some comments.
9102         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9103
9104 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9105
9106         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9107         _POSIX_SHARED_MEMORY_OBJECTS.
9108
9109         * rt/Makefile (tests): Add tst-shm.
9110         Add rules to generate tst-shm.
9111         * rt/tst-shm.c: New file.
9112
9113         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9114         for descriptor.
9115
9116         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9117         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9118         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9119         * sysdeps/generic/shm_open.c: New file.
9120         * sysdeps/generic/shm_unlink.c: New file.
9121         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9122         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9123         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9124          __endmntent, __getmntent_r, __setmntent, and __statfs.
9125
9126         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9127         fragmentation by allocating new memory at the end instead of
9128         reallocating.
9129
9130         * posix/globtest.sh: Fix last change.
9131
9132 2000-04-10  Philip Blundell  <philb@gnu.org>
9133
9134         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9135         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9136         IPV6_DROP_MEMBERSHIP.
9137         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9138         Likewise.
9139
9140 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9141
9142         * elf/readlib (process_file): Close streams in case of an error.
9143
9144 2000-04-09  Andreas Jaeger  <aj@suse.de>
9145
9146         * elf/readlib.c (process_file): Check if file is big enough to
9147         contain aout and ELF headers.
9148         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9149
9150 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9151
9152         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9153
9154 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9155
9156         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9157         stream unbuffered.
9158         * rt/Makefile (tests): Add tst-clock.
9159         Add rules to build tst-clock.
9160         * rt/tst-clock.c: New file.
9161         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9162         about initialization of nsec.
9163         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9164         about initialization of freq.  Set retval to zero if successful.
9165         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9166
9167 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9168
9169         * Versions.def (librt): Add GLIBC_2.2.
9170         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9171         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9172         timer_getoverr, timer_gettime, and timer_settime.
9173         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9174         clock_settime, timer_create, timer_delete, timer_getoverrun,
9175         timer_gettime, and timer_settime.
9176         * sysdeps/generic/clock_getcpuclockid.c: New file.
9177         * sysdeps/generic/get_clockfreq.c: New file.
9178         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9179         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9180         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9181         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9182         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9183         * sysdeps/unix/i386/i686/Implies: New file.
9184         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9185         * time/Makefile (routines): Move clock_getres, clock_gettime,
9186         clock_settime, timer_create, timer_delete, timer_getoverr,
9187         timer_gettime, and timer_settime to rt/Makefile.
9188         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9189         clock_settime, timer_create, timer_delete, timer_getoverrun,
9190         timer_gettime, and timer_settime.
9191         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9192
9193         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9194         and not const as attribute name.
9195
9196 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9197
9198         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9199
9200 2000-04-10  Andreas Schwab  <schwab@suse.de>
9201
9202         * posix/globtest.sh: Skip tests that depend on unreadable
9203         directories if run as root.
9204
9205 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9206
9207         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9208         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9209
9210 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9211
9212         * sysdeps/unix/clock_gettime.c: New file.
9213         * sysdeps/unix/clock_settime.c: New file.
9214         * sysdeps/posix/clock_getres.c: New file.
9215
9216         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9217
9218         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9219         lseek call be passing in a buffer which never allow a successful
9220         first getdents syscall if not at leas the initial entry can be
9221         stored in the user buffer.
9222
9223         * localedata/Makefile: Add rules to clean up directories created by
9224         new strfmon tests.
9225
9226 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9227
9228         * localedata/tst-fmon.data: Added new tests for strfmon()
9229         using test locales with all combinations of cs_precedes,
9230         sign_posn and sep_by_space.
9231         * localedata/tst-fmon.sh: Updated to support the new tests.
9232         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9233         the localedef source for the new strfmon() test locale.
9234         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9235         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9236         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9237         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9238         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9239         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9240         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9241         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9242         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9243         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9244         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9245         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9246         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9247         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9248
9249         * stdlib/strfmon.c: Correct problems with missing or extra
9250         spaces for unusual combinations of sign_posn and sep_by_space.
9251         Improved left-precision alignment code.
9252
9253 2000-04-07  Andreas Jaeger  <aj@suse.de>
9254
9255         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9256
9257 2000-04-10  Andreas Jaeger  <aj@suse.de>
9258
9259         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9260
9261 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9262
9263         Implement handling of restartable conversion functions according to
9264         ISO C.
9265         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9266         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9267         * iconv/gconv.c: Pass additional parameter to conversion function.
9268         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9269         (internal_ucs4le_loop_single): New function.
9270         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9271         (__gconv_transform_internal_ascii): Likewise.
9272         (__gconv_transform_internal_utf8): Likewise.
9273         (__gconv_transform_utf8_internal): Likewise.
9274         (__gconv_transform_ucs2_internal): Likewise.
9275         (__gconv_transform_internal_ucs2): Likewise.
9276         (__gconv_transform_ucs2reverse_internal): Likewise.
9277         (__gconv_transform_internal_ucs2reverse): Likewise.
9278         (internal_ucs4le_loop_unaligned): Before return
9279         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9280         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9281         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9282         * iconv/loop.c: Fit in definition of function to convert one character
9283         for processing of left-over bytes from the state object.
9284         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9285         inend to match names in loop functions.
9286         (RESET_INPUT_BUFFER): Change apprpriately.
9287         (gconv): If needed, call function to process bytes from the state
9288         object.  Similar at the end: store left over bytes if input is
9289         incomplete.
9290         Take extra argument and add new argument to all calls of the
9291         conversion function.
9292         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9293         information in the state object to not conflict with length count.
9294         * iconvdata/iso-2022-jp.c: Likewise.
9295         * iconvdata/iso-2022-kr.c: Likewise.
9296         * iconvdata/unicode.c: Adjust for change change in parameters of
9297         skeleton function.
9298         * iconvdata/utf-16.c: Likewise.
9299         * libio/iofwide.c: Add new parameter to all calls of conversion
9300         function.
9301         * wcsmbs/btowc.c: Likewise.
9302         * wcsmbs/mbrtowc.c: Likewise.
9303         * wcsmbs/mbsnrtowcs.c: Likewise.
9304         * wcsmbs/mbsrtowcs.c: Likewise.
9305         * wcsmbs/wcrtomb.c: Likewise.
9306         * wcsmbs/wcsnrtombs.c: Likewise.
9307         * wcsmbs/wcsrtombs.c: Likewise.
9308         * wcsmbs/wctob.c: Likewise.
9309
9310         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9311         MAX_NEEDED_INPUT.
9312
9313 2000-04-07  Andreas Jaeger  <aj@suse.de>
9314
9315         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9316         newer kernels.
9317
9318 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9319
9320         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9321         element a union to allow byte access.
9322         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9323         mbstate_t.
9324         * iconvdata/iso-2022-jp.c: Likewise.
9325         * iconvdata/iso-2022-kr.c: Likewise.
9326         * wcsmbs/mbsinit.c: Likewise.
9327         * stdlib/mblen.c: Likewise.
9328         * stdio-common/printf-parse.h: Likewise.
9329
9330 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9331
9332         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9333         kernel does not allow relative seeks on descriptors associated
9334         with directories.  Go back to get the position in the directory
9335         every time we enter the function.  Return -1 and set errno if one
9336         entry could be read from the kernel but does not fit into the
9337         buffer passed in by the user.
9338
9339         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9340         Support ..(2).. ellipsis.
9341         (parse_charmap): Recognize ..(2).. etc and pass step down.
9342         Correctly generate names for UCS4 characters.
9343
9344         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9345         (ctype_finish): We know the wide character value for <SP>,
9346         don't search.
9347         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9348         (charclass_ucs4_ellipsis): Likewise.
9349         (read_translit_ignore_entry): Store ellipsis step.
9350         (ctype_read): Recognize ..(2).. etc and pass step down.
9351
9352         * locale/programs/linereader.c (lr_token): When seeing comment
9353         character ignore only rest of line in sources but stop at escaped
9354         newline.
9355         Recognize ..(2).. and ....(2).....
9356
9357         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9358         and tok_ellipsis4_2.
9359
9360 2000-04-06  Andreas Jaeger  <aj@suse.de>
9361
9362         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9363         removed, remove it here also.
9364         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9365         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9366         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9367         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9368
9369 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9370
9371         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9372         include bits/sigcontext.h.
9373         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9374
9375 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9376
9377         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9378         collation symbol definition.  Value in quivalence definition must
9379         be defined, don't check that it is not.
9380
9381         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9382         values as character names.
9383
9384         * locale/programs/ld-ctype.c (get_character): Handle missing
9385         repertoire map correctly.
9386
9387 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9388
9389         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9390         because it is used in generic code.
9391         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9392         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9393         * intl/gettext.c: Include <locale.h>.
9394         * intl/ngettext.c: Likewise.
9395
9396 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9397
9398         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9399         socklen_t type for size.
9400         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9401         init function interface.
9402         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9403         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9404         sys/ucontext.h.
9405         (__jmp_buf): Declare the whole type structure here, don't use
9406         ucontext.
9407
9408 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9409
9410         * iconv/skeleton.c (put16u): Fix typo.
9411         Reported by Bruno Haible <haible@ilog.fr>.
9412
9413         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9414         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9415         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9416         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9417         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9418         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9419
9420         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9421         * Makefile (distribute): Add abi-versions.awk and
9422         firstversions.awk.
9423         Patches by Torsten Duwe <duwe@caldera.de>.
9424
9425 2000-04-05  Andreas Schwab  <schwab@suse.de>
9426
9427         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9428
9429 2000-04-05  Andreas Schwab  <schwab@suse.de>
9430
9431         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9432         entry point, used on Hurd.
9433
9434 2000-04-04  Andreas Jaeger  <aj@suse.de>
9435
9436         * intl/Makefile: Only run the gettext test with shared libraries.
9437
9438 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9439
9440         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9441         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9442
9443 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9444
9445         * Makeconfig: Undo last change.
9446         * configure.in: If --disable-shared was given, don't set VERSIONING,
9447         don't define DO_VERSIONING, and don't give scare warning for no
9448         versioning.
9449         * configure: Regenerated.
9450
9451 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9452
9453         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9454
9455 2000-04-04  Andreas Jaeger  <aj@suse.de>
9456
9457         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9458
9459 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9460
9461         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9462         STV_HIDDEN and STV_INTERNAL during lookup.
9463         (profile_fixup): Likewise.
9464         * elf/dl-reloc.c (RESOLVE): Likewise.
9465
9466         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9467         unaligned so that it compiles for system which need unaligned
9468         access handling.
9469
9470 2000-04-04  Andreas Schwab  <schwab@suse.de>
9471
9472         * elf/cache.c (print_entry): Only look at the type field when
9473         printing the type.
9474
9475 2000-04-04  Andreas Schwab  <schwab@suse.de>
9476
9477         * iconvdata/big5.c (BODY): Fix typo.
9478
9479 2000-04-04  Andreas Schwab  <schwab@suse.de>
9480
9481         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9482         function interface.  Remove unused _dl_start_user entry point.
9483
9484 2000-04-03  Andreas Jaeger  <aj@suse.de>
9485
9486         * include/arpa/inet.h (__inet_aton): Add protoype.
9487
9488 2000-04-01  Andreas Jaeger  <aj@suse.de>
9489
9490         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9491
9492         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9493         * sysdeps/mach/mips/thread_state.h: Likewise.
9494
9495         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9496         * sysdeps/generic/fegetenv.c: Likewise.
9497         * sysdeps/generic/fesetenv.c: Likewise.
9498         * sysdeps/generic/feupdateenv.c: Likewise.
9499         * sysdeps/generic/fraiseexcpt.c: Likewise.
9500         * sysdeps/generic/fsetexcptflg.c: Likewise.
9501         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9502         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9503         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9504         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9505
9506 2000-04-02  H.J. Lu  <hjl@gnu.org>
9507
9508         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9509
9510 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9511
9512         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9513         (add_name_to_object): Add cast in malloc call.
9514         (fillin_rpath): Optimize loop to initialize ->status a bit.
9515
9516         * sysdeps/i386/dl-machine.h: Undo last change.
9517         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9518         Restore %edx register after call here.
9519
9520         * sysdeps/arm/atomicity.h: New file.
9521         Contributed by Jesper Skov <jskov@redhat.com>.
9522
9523 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9524
9525         * Makeconfig (preprocess-versions): Undo last change.
9526         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9527
9528         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9529         here, before we might move the stack.
9530         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9531         (init1): And not here.
9532
9533         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9534         change, to restore argc value in call-clobbered register after
9535         RTLD_START_SPECIAL_INIT, which will contain a call.
9536
9537         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9538         allocating and initializing L->l_initfini.
9539
9540         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9541
9542 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9543
9544         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9545         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9546         (open_path): Change type of fourth parameter.  Make pointer to array
9547         of pointers.  Create variable dirs with original type.
9548         Track whether any directory for the object exists and if not,
9549         change *DIRSP to (void*) -1 to signal there is no such search path.
9550         (_dl_map_object): Change all calls of open_path.
9551         Rewrite decompose_rpath calls.
9552
9553 2000-03-31  Andreas Schwab  <schwab@suse.de>
9554
9555         * string/strfry.c: Declare STATE as array of char instead of int
9556         and do not initialize it (done by initstate_r).  Pass correct
9557         size.
9558
9559 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9560
9561         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9562
9563         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9564         instruction out of the code.
9565
9566 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9567
9568         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9569         element at this position.
9570
9571         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9572         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9573         l_reldeps elements.
9574         * elf/dl-lookup.c (add_dependency): New function.
9575         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9576         dynamically loaded object.
9577         (_dl_lookup_symbol_skip): Likewise.
9578         (_dl_lookup_versioned_symbol): Likewise.
9579         (_dl_lookup_versioned_symbol_skip): Likewise.
9580         * elf/dl-open.c: Don't define _dl_load_lock here...
9581         * elf/rtld.c: ...but here...
9582         * elf/dl-support.c: ...and here.
9583         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9584         through relocation.
9585         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9586         relocations.
9587         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9588         anymore.
9589         * dlfcn/glrefmain.c: Add one more debug message.
9590
9591         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9592         command line.
9593         * Makerules (sysd-versions): Use ( ) instead of { }.
9594
9595         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9596         optimize for the non-debugging case.
9597         * elf/dl-lookup.c: Likewise.
9598         * sysdeps/generic/libc-start.c: Likewise.
9599
9600 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9601
9602         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9603         (init1): Don't initialize __environ here, since init already does it.
9604         (first_init): New function, broken out of _init.
9605         (_hurd_stack_setup): Use it.
9606         [SHARED] (_dl_init_first): New function, renamed from old _init.
9607         (init1) [SHARED]: Don't call posixland_init here.
9608         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9609         [SHARED] (_init): Define as alias for posixland_init.
9610         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9611         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9612         RTLD_START_SPECIAL_INIT before calling initializers.
9613         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9614         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9615         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9616         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9617
9618         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9619         since we define the function with the name `tmpfile'.
9620
9621         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9622         * hurd/Versions: Likewise.
9623
9624 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9625
9626         * elf/dl-runtime.c (fixup): Fix typo in comment.
9627
9628         * resolv/netdb.h (getnameinfo): All length parameters are of type
9629         socklen_t.
9630         * inet/getnameinfo.c: Likewise.
9631
9632 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9633
9634         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9635         (gethostname): Change type of second parameter to socklen_t.
9636         * include/unistd.h (__gethostname): Change type of second
9637         parameter to socklen_t.
9638         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9639         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9640         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9641         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9642         Likewise.
9643         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9644         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9645         Allow definition elsewhere.
9646         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9647         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9648         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9649         * sysdeps/generic/bits/types.h: Define __socklen_t.
9650         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9651         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9652         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9653         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9654         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9655         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9656         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9657
9658         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9659         (inet_lnaof): Likewise.
9660         (inet_netof): Likewise.
9661         (inet_network): Likewise.
9662         (inet_aton): Likewise.
9663         (inet_makeaddr): Change parameter types to in_addr_t.
9664         (inet_neta): Likewise.
9665         (inet_ntop): Change type of last parameter to socklen_t.
9666         (inet_aton): Only make available if __USE_MISC.
9667         (inet_neta): Likewise.
9668         (inet_net_ntop): Likewise.
9669         (inet_net_pton): Likewise.
9670         (inet_nsap_ntoa): Likewise.
9671
9672         * inet/in.h: Define in_port_t type.
9673         Define in_addr_t type.
9674         (struct in_addr): Use in_addr_t in definition.
9675         (IN_CLASSA): Use cast to in_addr_t.
9676         (IN_CLASSB): Likewise.
9677         (IN_CLASSC): Likewise.
9678         (IN_CLASSD): Likewise.
9679         (IN_EXPERIMENTAL): Likewise.
9680         (IN_BADCLASS): Likewise.
9681         (INADDR_ANY): Likewise.
9682         (INADDR_BROADCAST): Likewise.
9683         (INADDR_NONE): Likewise.
9684         (INADDR_LOOPBACK): Likewise.
9685         (INADDR_UNSPEC_GROUP): Likewise.
9686         (INADDR_ALLHOSTS_GROUP): Likewise.
9687         (INADDR_ALLRTRS_GROUP): Likewise.
9688         (INADDR_MAX_LOCAL_GROUP): Likewise.
9689         (struct sockaddr_in): Use in_port_t for sin_port element.
9690         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9691         Use uint8_t instead of u_int8_t.
9692
9693         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9694         Call __inet_aton instead of inet_aton.
9695         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9696
9697         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9698         (innetgr): Likewise.
9699         (struct addrinfo): Use socklen_t for ai_addrlen element.
9700
9701         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9702         IPV6_RECVERR): New defines.
9703
9704         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9705         * inet/getnetbyad.c: Likewise.
9706         * inet/getnetbyad_r.c: Likewise.
9707         * nis/nss_nis/nis-network.c: Likewise.
9708         * nis/nssplus_nis/nisplus-network.c: Likewise.
9709         * nss/nss_files/files-network.c: Likewise.
9710         * resolv/netdb.h: Define uint32_t if not already happened.
9711         Include bits/netdb.h.  Remove definition of struct netent.
9712         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9713         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9714         * sysdeps/generic/bits/netdb.h: New file.
9715         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9716
9717         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9718         (tests): Add glrefmain.
9719         Add rules to build modules and run tests.  Ignore result of glrefmain
9720         for now since it fails.
9721         * dlfcn/glrefmain.c: New file.
9722         * dlfcn/glreflib1.c: New file.
9723         * dlfcn/glreflib2.c: New file.
9724
9725         * test-skeleton.c: Include <string.h> for strsignal prototype.
9726
9727         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9728         to be missing.
9729
9730         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9731         former init-first.h.  Initialize __libc_multiple_libcs.
9732
9733 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9734
9735         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9736         #if expression for use of unaligned function to the one used in
9737         the definition of these functions.
9738         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9739         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9740         (internal_ucs4le_loop_unaligned): New function.
9741
9742         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9743         (tests): Add order.
9744         (module-names): Add dep1, dep2, dep3, and dep4.
9745         Add dependencies for dep* modules and order.
9746         Define rule for order.out which checks the result.
9747         * elf/dep1.c: New file.
9748         * elf/dep2.c: New file.
9749         * elf/dep3.c: New file.
9750         * elf/dep4.c: New file.
9751         * elf/order.c: New file.
9752
9753         * elf/dl-init.c: Fix typo in comment.
9754
9755 2000-03-31  Andreas Jaeger  <aj@suse.de>
9756
9757         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9758         init function interface.
9759         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9760
9761 2000-03-31  Andreas Jaeger  <aj@suse.de>
9762
9763         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9764         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9765         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9766         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9767         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9768
9769         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9770         anymore, update comment.
9771
9772         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9773
9774         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9775         SHLIB_COMPAT - the struct is always needed.
9776
9777 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9778
9779         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9780         * elf/dl-support.c: Define _dl_starting_up.
9781
9782 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9783
9784         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9785         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9786
9787         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9788
9789         * elf/Makefile (dl-routines): Remove preinit.
9790         * elf/Versions: Remove _dl_preinit.
9791         * elf/dl-preinit.c: Removed.  Move content into...
9792         * elf/dl-init.c: ...here.
9793         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9794
9795         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9796         elements.
9797
9798 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9799
9800         * stdlib/strfmon.c: Corrected problems with the code that
9801         sets default values for [np]_sep_by_space and
9802         [np]_sign_posn; also the new positive/negative alignment
9803         code from the previous patch was not quite right for
9804         [np]_sign_posn = 0.
9805
9806         * localedata/tst-fmon.data: Changes corresponding to the
9807         two sets of fixes made to stdlib/strfmon.c.
9808
9809 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9810
9811         * malloc/malloc.c: Declare bit flags UL so that they will not
9812         default to int size when being inverted.
9813
9814 2000-03-29  Andreas Jaeger  <aj@suse.de>
9815
9816         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9817         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9818
9819 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9820             Ralf Baechle <ralf@uni-koblenz.de>
9821
9822         * Makeconfig: Introduce new variable SHARED to mark code used in
9823         the shared library.
9824         * elf/dl-close.c: Use it instead of PIC.
9825         * elf/dl-load.c: Likewise.
9826         * elf/dl-open.c: Likewise.
9827         * hurd/geteuids.c: Likewise.
9828         * include/libc-symbols.h: Likewise.
9829         * include/shlib-compat.h: Likewise.
9830         * libio/freopen.c: Likewise.
9831         * linuxthreads/cancel.c: Likewise.
9832         * linuxthreads/pthread.c: Likewise.
9833         * linuxthreads/wrapsyscall.c: Likewise.
9834         * nss/nsswitch.c: Likewise.
9835         * stdio-common/vfprintf.c: Likewise.
9836         * sysdeps/arm/init-first.c: Likewise.
9837         * sysdeps/i386/init-first.c: Likewise
9838         * sysdeps/generic/init-first.c: Likewise.
9839         * sysdeps/generic/libc-start.c: Likewise.
9840         * sysdeps/mips/init-first.c: Likewise.
9841         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9842         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9843         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9844         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9845         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9846
9847         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9848
9849 2000-03-29  Andreas Jaeger  <aj@suse.de>
9850
9851         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9852         Use D_PTR to access relocated entries in l_info.
9853         (elf_machine_rela): Likewise.
9854
9855         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9856         Likewise.
9857         (elf_machine_rela): Likewise.
9858
9859         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9860         Likewise.
9861         (__elf_machine_fixup_plt): Likewise.
9862         (__process_machine_rela): Likewise.
9863
9864         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9865         (elf_machine_rela): Likewise.
9866
9867         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9868         (elf_machine_rel): Likewise.
9869
9870         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9871         (elf_machine_fixup_plt): Likewise.
9872         (elf_machine_rela): Likewise.
9873
9874 2000-03-29  Andreas Jaeger  <aj@suse.de>
9875
9876         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9877         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9878         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9879         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9880         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9881         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9882         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9883         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9884         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9885         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9886         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9887         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9888         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9889         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9890         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9891
9892         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9893         macros, remove K&R prototypes.
9894
9895 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9896
9897         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9898         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9899         (PR libc/1677).
9900
9901 2000-03-30  Andreas Jaeger  <aj@suse.de>
9902
9903         * misc/sys/cdefs.h: Remove K&R support.
9904
9905 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9906
9907         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9908         more cases.
9909         * iconv/loop.c: Likewise.
9910
9911 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9912
9913         * iconv/loop.c (put16): Remove __const. Fix access index.
9914         (put32): Remove __const. Use uint32_t instead of uint16_t.
9915         * iconv/skeleton.c: Likewise.
9916
9917 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9918
9919         * mach/Versions (libc: GLIBC_2.0)
9920         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9921         __vm_allocate on this.
9922         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9923         mutex- and spinlock-related symbols on this.
9924         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9925         New version set.  Lock-related symbols go here instead in this case.
9926         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9927         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9928         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9929         * hurd/Versions
9930         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9931         Put them here instead.
9932         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9933         New version set.  Those cthreads symbols go here instead in this case.
9934         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9935
9936 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9937
9938         * elf/dl-init.c (_dl_init): We don't need to call constructors
9939         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9940
9941         Implement dynamic determination of constructor/destructor order in
9942         the dynamic linker.
9943         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9944         (GLIBC_2.2): Add _dl_init.
9945         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9946         r_duplist is not anymore allocated separately.  l_initfini is and
9947         therefore free it if necessary.
9948         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9949         malloc block.  Otherwise allocate l_initfini list only.
9950         Put dependencies for the object in l_initfini list.
9951         Sort dependencies for the object to be loaded topologically.
9952         * elf/dl-fini.c: Before running the destructors sort the topologically.
9953         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9954         call constructors instead of iterating over the pointers.  Get list of
9955         objects for which to run constructors from l_initfini element. Accept
9956         argc, argv, and env as parameters and pass them to the constructors.
9957         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9958         with size of dynamic section.
9959         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9960         _dl_init_next and calling constructors ourself.
9961         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9962         Take argc, argv, and env as parameters and pass them to the
9963         constructors.  Rewrite to call all constructors and not iterate over
9964         the pointers.
9965         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9966         precompute l_initcount and l_preinitcount.
9967         * elf/link.h (struct link_map): Add l_ldnum member.
9968         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9969         l_initcount, and l_preinitcount.  Add l_initfini.
9970         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9971         one for _dl_init.
9972         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9973         function interface.
9974         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9975         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9976         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9977         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9978         conventions now match.
9979
9980         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9981         effect for shared objects.  Don't emit message and call only for
9982         static library.
9983
9984 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9985
9986         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9987         CSA_Z243.4-1985-1..UCS2.
9988         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9989         ISO-8859-10..UCS2.
9990
9991 2000-03-29  Andreas Jaeger  <aj@suse.de>
9992
9993         * include/unistd.h: Remove duplicate entry for __rmdir.
9994         Remove declaration of __mkdir since __mkdir is declared in
9995         sys/stat.h.
9996
9997         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9998         by Michael Deutschmann <michael@talamasca.ocis.net>.
9999
10000         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10001         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10002         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10003         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10004         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10005
10006 2000-03-28  Andreas Jaeger  <aj@suse.de>
10007
10008         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10009         declaration, the prototype is defined via bits/mathcalls.h.
10010         (__sincosf): Likewise.
10011         (__sincosl): Likewise.
10012         (ldexp): Likewise.
10013         (ldexpf): Likewise.
10014         (ldexpl): Likewise.
10015         (__finite): Likewise.
10016         (__inline_mathcodeNP): New macro without prototype
10017         declarations.
10018         (__inline_mathcodeNP2): Likewise.
10019         (__inline_mathcodeNP3): Likewise.
10020         (__inline_mathcodeNP_): Likewise.
10021         (__inline_mathcodeNP2_): Likewise.
10022         (__inline_mathcodeNP3_): Likewise.
10023         (__inline_mathopNP): Likewise.
10024         (__inline_mathop_declNP): Likewise.
10025         (__inline_mathop_declNP_): Likewise.
10026         (__inline_mathcode_): Use __inline_mathcodeNP_.
10027         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10028         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10029         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10030         (__expm1l): Don't define prototype, the prototype is defined via
10031         bits/mathcalls.h.
10032         (exp): Likewise.
10033         (__expl): Likewise.
10034         (tan): Likewise.
10035         (atan2): Likewise.
10036         (__atan2l): Likewise.
10037         (fmod): Likewise.
10038         (pow): Likewise.
10039         (fabsf): Likewise.
10040         (fabsl): Likewise.
10041         (__fabsl): Likewise.
10042         (asin): Likewise.
10043         (acos): Likewise.
10044         (sinh): Likewise.
10045         (cosh): Likewise.
10046         (tanh): Likewise.
10047         (floor): Likewise.
10048         (ceil): Likewise.
10049         (expm1): Likewise.
10050         (log1p): Likewise.
10051         (asinh): Likewise.
10052         (acosh): Likewise.
10053         (atanh): Likewise.
10054         (hypot): Likewise.
10055         (logb): Likewise.
10056         (fma): Likewise.
10057         (drem): Likewise.
10058         (sqrt): Likewise.
10059         (__sqrtl): Likewise.
10060         (sin): Likewise.
10061         (cos): Likewise.
10062         (atan): Likewise.
10063         (log): Likewise.
10064         (log10): Likewise.
10065         (asinh): Likewise.
10066         (log2): Likewise.
10067         (rint): Likewise.
10068
10069 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10070
10071         * Makerules: If make variable md5 is defined to yes after
10072         generating dependencies generate MD5 sum for the object.
10073
10074         * iconv/gconv_builtin.h: Fix length in transformation definition
10075         for UNICODEBIG.
10076
10077         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10078
10079         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10080         allow as well reading from/writing to unaligned addresses on machines
10081         which don't support this in hardware.  Use FCTNAME macro to define
10082         function name.  Include the file a second time for platforms which
10083         need special unaligned handling.
10084         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10085         to access potentially unaligned addresses.  These macros are intended
10086         to be used only outside the loops.
10087         (unaligned): New definition.  In case the machine can handle unaligned
10088         access define as zero.  Otherwise as a variable which is initialized
10089         as nonzero in case the buffer passed in at runtime is unaligned with
10090         respect to the character set encoding involved.
10091         Call aligned or unaligned looop functions according to unaligned
10092         variable.
10093         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10094         of direct casting pointer to potentially handle unaligned memory
10095         accesses.
10096         * iconvdata/8bit-generic.c: Likewise.
10097         * iconvdata/ansi_x3.110.c: Likewise.
10098         * iconvdata/big5.c: Likewise.
10099         * iconvdata/euc-cn.c: Likewise.
10100         * iconvdata/euc-jp.c: Likewise.
10101         * iconvdata/euc-kr.c: Likewise.
10102         * iconvdata/euc-tw.c: Likewise.
10103         * iconvdata/gbk.c: Likewise.
10104         * iconvdata/iso-2022-cn.c: Likewise.
10105         * iconvdata/iso-2022-jp.c: Likewise.
10106         * iconvdata/iso-2022-kr.c: Likewise.
10107         * iconvdata/iso646.c: Likewise.
10108         * iconvdata/iso_6937-2.c: Likewise.
10109         * iconvdata/iso_6937.c: Likewise.
10110         * iconvdata/johab.c: Likewise.
10111         * iconvdata/sjis.c: Likewise.
10112         * iconvdata/t.61.c: Likewise.
10113         * iconvdata/uhc.c: Likewise.
10114         * iconvdata/unicode.c: Likewise.
10115         * iconvdata/utf-16.c: Likewise.
10116
10117         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10118         prototypes.
10119
10120         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10121         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10122         public.
10123         * malloc/mcheck.h (mcheck_check_all): Declare.
10124
10125         * stdio-common/Makefile (tests): Add tst-obprintf.
10126
10127 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10128
10129         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10130         Declare pthread_sigmask.
10131
10132         * csu/version.c: Add 2000 to copyright years.
10133         Remove Emacs local variables section.
10134
10135 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10136
10137         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10138         __gconv_transform_internal_ucs2little): Remove declarations.
10139         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10140         __gconv_transform_internal_ucs2): Never need to bswap_16.
10141         (__gconv_transform_ucs2reverse_internal,
10142         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10143
10144 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10145
10146         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10147         obsoleting version not being defined at all, in which case the
10148         result is always true.
10149
10150         * Makeconfig (preprocess-versions): New canned sequence for running
10151         cpp on shlib-versions and the like.
10152         (soversions.i): Use it.
10153         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10154         Versions.def and Versions files.
10155
10156 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10157
10158         * stdio-common/tst-obprintf.c (main): Add another check to see
10159         obstack_printf handling all possible beginnings of the block
10160         inside an obstack chunk.
10161
10162         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10163         install mcheck handler.
10164
10165         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10166         handling problem.
10167
10168 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10169
10170         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10171
10172         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10173         on [HAVE_ELF && DO_VERSIONING].
10174
10175 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10176
10177         * stdio-common/tst-obprintf.c: New file.
10178
10179 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10180
10181         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10182         _IO_OVERFLOW directly instead through __overflow.
10183
10184         * locale/programs/localedef.c (construct_output_path): If path
10185         contains a / compute the end of the directory name correctly.
10186
10187         * include/features.h: Undef and document __USE_XOPEN2K.
10188
10189         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10190         whenever a function is called.  Initiated by calling mcheck_pedantic
10191         instead of mcheck.
10192         * malloc/mcheck.h: Declare mcheck_pedantic.
10193         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10194         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10195         for now.
10196
10197 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10198
10199         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10200         * dlfcn/dlopenold.c: Likewise.
10201         * nss/getXXbyYY_r.c: Likewise.
10202         * nss/getXXent_r.c: Likewise.
10203         * hurd/hurdinit.c: Likewise.
10204         * hurd/compat-20.c: Likewise.
10205         * libio/oldiofopen.c: Likewise.
10206         * libio/oldiofclose.c: Likewise.
10207         * libio/oldiofdopen.c: Likewise.
10208         * libio/oldfileops.c: Likewise.
10209         * libio/oldstdfiles.c: Likewise.
10210         * libio/oldiofsetpos.c: Likewise.
10211         * libio/oldiofgetpos.c: Likewise.
10212         * libio/oldiofgetpos64.c: Likewise.
10213         * libio/oldiofsetpos64.c: Likewise.
10214         * libio/oldiopopen.c: Likewise.
10215         * libio/oldpclose.c: Likewise.
10216         * libio/oldtmpfile.c: Likewise.
10217         * libio/freopen.c (freopen): Likewise.
10218         * libio/iofclose.c (_IO_new_fclose): Likewise.
10219
10220         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10221         (reboot): Declare it.
10222
10223         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10224
10225         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10226
10227         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10228
10229         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10230         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10231         We need this for the sbrk decl, which can be included without Unix98.
10232
10233 2000-03-20  Richard Henderson  <rth@cygnus.com>
10234
10235         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10236         argument to yperr2nss is an int, not size_t.
10237         * posix/regex.c (print_partial_compiled_pattern): Cast all
10238         ptrdiff_t to long for printing.
10239         (print_compiled_pattern): Use Z for printing size_t.
10240         * posix/testfnm.c (tests): Avoid trigraphs.
10241         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10242         Use a C comment, not an assembly comment.
10243
10244         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10245         of __ASSUME_32BITUIDS.
10246
10247 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10248
10249         * libio/iofopncook.c: Remove K&R prototypes.
10250
10251 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10252
10253         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10254         an initial value of 1024 instead of RLIM_INFINITY.
10255
10256         * Versions.def (libmachuser, libhurduser): Remove these sections,
10257         since these libraries do not presently use symbol versions.
10258
10259         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10260         is RLIM_INFINITY, return -1 instead.
10261
10262 2000-03-24  Andreas Jaeger  <aj@suse.de>
10263
10264         * Makefile (postclean): Added soversions.i.
10265
10266 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10267
10268         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10269         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10270         and _FPU_IEEE.  Change _FPU_RESERVED.
10271
10272 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10273
10274         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10275
10276 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10277
10278         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10279         (gaih_inet): Remove unused duplicate variable.
10280
10281         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10282         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10283         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10284         only flavors supported by this function anyway.
10285
10286 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10287
10288         * stdlib/strfmon.c: Corrected problems with missing signs and
10289         missing or extra spaces; allow for sign strings longer than
10290         one character; add padding to ensure positive and negative
10291         formats are aligned when a left precision is used.
10292
10293 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10294
10295         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10296         Patch by John Mizel <John.Mizel@msdw.com>.
10297
10298 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10299
10300         * manual/install.texi: Remove references to crypt add-on.
10301
10302 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10303
10304         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10305         section while taking the _hurd_rlimit_lock.
10306         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10307
10308 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10309
10310         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10311         using $(LN_S).
10312
10313         * sysdeps/mach/hurd/if_index.c: New file.
10314
10315         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10316         * sysdeps/gnu/net/if.h: here.
10317         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10318         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10319         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10320         functions and `struct if_nameindex' type.
10321         * socket/Makefile (headers): Add net/if.h here.
10322         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10323         * sysdeps/mach/hurd/Dist: Remove it here.
10324         * sysdeps/unix/sysv/linux/Dist: And here.
10325         * sysdeps/generic/if_index.c: Include <net/if.h>.
10326
10327 2000-03-24  Andreas Jaeger  <aj@suse.de>
10328
10329         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10330         access relocated entries in l_info.
10331         (elf_machine_got_rel): Likewise.
10332         (elf_machine_runtime_setup): Likewise.
10333         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10334         (elf_machine_runtime_setup): Likewise.
10335         (__dl_runtime_resolve): Likewise.
10336
10337 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10338
10339         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10340         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10341         according to RFC 2553.
10342         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10343         * inet/getnameinfo.c: Likewise.
10344         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10345
10346 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10347
10348         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10349         Remove no-op pointer increment.
10350
10351 2000-03-23  Andreas Jaeger  <aj@suse.de>
10352
10353         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10354         follow change for libio.h from 2000-03-10.
10355
10356 2000-03-23  Andreas Jaeger  <aj@suse.de>
10357
10358         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10359         change.
10360         * elf/dl-debug.c: Likewise.
10361         * elf/dl-deps.c: Likewise.
10362         * elf/dl-error.c: Likewise.
10363         * elf/dl-fini.c: Likewise.
10364         * elf/dl-init.c: Likewise.
10365         * elf/dl-load.c: Likewise.
10366         * elf/dl-lookup.c: Likewise.
10367         * elf/dl-minimal.c: Likewise.
10368         * elf/dl-object.c: Likewise.
10369         * elf/dl-open.c: Likewise.
10370         * elf/dl-preinit.c: Likewise.
10371         * elf/dl-profile.c: Likewise.
10372         * elf/dl-profstub.c: Likewise.
10373         * elf/dl-reloc.c: Likewise.
10374         * elf/dl-runtime.c: Likewise.
10375         * elf/dl-support.c: Likewise.
10376         * elf/dl-symbol.c: Likewise.
10377         * elf/dl-version.c: Likewise.
10378         * elf/rtld.c: Likewise.
10379         * elf/sprof.c: Likewise.
10380         * sysdeps/generic/dl-cache.c: Likewise.
10381         * sysdeps/generic/dl-origin.c: Likewise.
10382         * sysdeps/generic/dl-sysdep.c: Likewise.
10383         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10384         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10385         * sysdeps/generic/libc-start.c: Likewise.
10386         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10387         * sysdeps/powerpc/dl-machine.c: Likewise.
10388         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10389         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10390         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10391         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10392
10393         * elf/ldsodefs.h: Move file to ...
10394         * sysdeps/generic/ldsodefs.h: ... here.
10395
10396         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10397
10398         * sysdeps/mips/elf/ldsodefs.h: New file.
10399
10400         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10401         entries in l_info.
10402         (_dl_check_map_versions): Likewise.
10403         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10404         * elf/dl-load.c (_dl_init_paths): Likewise.
10405         (_dl_map_object): Likewise.
10406         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10407         (elf_get_dynamic_info): Likewise.
10408         * elf/do-lookup.h (FCT): Likewise.
10409         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10410         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10411         * elf/dl-addr.c (_dl_addr): Likewise.
10412         * elf/dl-runtime.c (profile_fixup): Likewise.
10413         (fixup): Likewise.
10414         * elf/dl-init.c (_dl_init_next): Likewise.
10415         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10416         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10417         (DISTINGUISH_LIB_VERSIONS): Likewise.
10418         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10419         (elf_machine_rel): Likewise.
10420
10421         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10422         for writable dynamic section.
10423
10424 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10425
10426         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10427         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10428
10429 2000-03-22  Andreas Jaeger  <aj@suse.de>
10430
10431         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10432         from latest Linux kernel.
10433
10434 2000-03-21  Andreas Jaeger  <aj@suse.de>
10435
10436         * Versions.def: Add version 2.1.4.
10437
10438 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10439
10440         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10441         * libio/oldiofopen.c: Likewise.
10442         * libio/oldiofclose.c: Likewise.
10443         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10444
10445 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10446
10447         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10448         indicating the first version set to obsolete the conditionalized code.
10449         (compat_symbol): New macro.
10450         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10451         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10452         integer values to the ABI_* macros for supported versions.
10453         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10454         compat_symbol macro.
10455
10456 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10457
10458         * nscd/connections.c (nscd_run): Pretty print.
10459         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10460
10461         * manual/charset.texi: Fix typos.  Rephrase.
10462         * manual/process.texi: Likewise.
10463         * manual/signal.texi: Likewise.
10464         Patches by Mike Coleman <mkc@kc.net>.
10465
10466         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10467         versions.
10468         * libio/iofdopen.c: Likewise.
10469         * libio/iofgetpos.c: Likewise.
10470         * libio/iofgetpos64.c: Likewise.
10471         * libio/iofopen.c: Likewise.
10472         * libio/iofsetpos.c: Likewise.
10473         * libio/iofsetpos64.c: Likewise.
10474         * libio/iopopen.c: Likewise.
10475         * libio/oldiofopen.c: Likewise.
10476         * libio/pclose.c: Likewise.
10477         * sysdeps/gnu/siglist.c: Likewise.
10478         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10479
10480         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10481         chance to expand VERSION_##lib##_##version.
10482
10483         * libio/fileops.c: Use new macros from shlib-compat.h to define
10484         versions.
10485         * libio/iofclose.c: Likewise.
10486         * libio/oldiofclose.c: Likewise.
10487         Patch by Roland McGrath <roland@frob.com>.
10488
10489 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10490
10491         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10492         Lay out struct sigcontext according to what really gets passed on
10493         the stack.
10494         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10495         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10496         (prgregset_t, prfpregset_t): Define to elf_* types.
10497         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10498         Define to correct value.
10499         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10500         sigcontext.
10501         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10502
10503 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10504
10505         * scripts/firstversions.awk: Allow multiple version sets in the
10506         "earliest version" specification, meaning that version sets in the
10507         gaps between listed versions should be folded into the earliest later
10508         version that is explicitly listed.
10509         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10510         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10511
10512 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10513
10514         * iconv/gconv_builtin.c: Include <endian.h>.
10515         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10516         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10517         according to current platform.
10518         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10519         __gconv_transform_internal_ucs2reverse, and
10520         __gconv_transform_internal_ucs4le.
10521         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10522         __gconv_transform_ucs2reverse_internal and
10523         __gconv_transform_internal_ucs2reverse.
10524         * iconvdata/Makefile (modules): Add UNICODE.
10525         (distribute): Add unicode.c.
10526         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10527         * iconvdata/unicode.c: New file.
10528
10529         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10530         determine byte order of input and convert accordingly.
10531
10532         * iconvdata/utf-16.c (gconv_init): Fix typo.
10533
10534 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10535
10536         * iconvdata/gconv-modules: Fix typo.
10537
10538         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10539         more messages.
10540
10541         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10542
10543 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10544
10545         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10546
10547 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10548
10549         * misc/Makefile (routines): Add mincore.
10550
10551 2000-03-20  Andreas Jaeger  <aj@suse.de>
10552
10553         * sysdeps/generic/mincore.c: New stub file.
10554
10555         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10556         from latest Linux kernel.
10557
10558 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10559
10560         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10561         _SC_GETPW_R_SIZE_MAX.
10562
10563 2000-03-20  Richard Henderson  <rth@cygnus.com>
10564
10565         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10566         in GLIBC_2.1.4.
10567
10568 2000-03-20  Richard Henderson  <rth@cygnus.com>
10569
10570         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10571         of arithmetic instructions.
10572
10573         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10574         with the fpcr.  Protect from INV exception.
10575         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10576         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10577         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10578
10579         * sysdeps/alpha/fpu/s_copysign.c: New.
10580         * sysdeps/alpha/fpu/s_copysignf.c: New.
10581         * sysdeps/alpha/fpu/s_fabs.c: New.
10582         * sysdeps/alpha/fpu/s_fabsf.c: New.
10583         * sysdeps/alpha/fpu/s_rint.c: New.
10584         * sysdeps/alpha/fpu/s_rintf.c: New.
10585
10586         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10587
10588         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10589         Kill sethae.
10590         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10591         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10592         Use physical addresses not KSEG addresses.
10593         (io_system): Add PYXIS.
10594         (io): Remove hae.reg, sys, hae_shift.
10595         (stb_mb, stw_mb, stl_mb, __sethae): New.
10596         (inline_outb, inline_outw, inline_outl): Don't set hae.
10597         (inline_inb, inline_inw, inline_inl): Likewise.
10598         (dense_sethae): New null function.
10599         (struct cpuinfo_data): New.
10600         (process_cpuinfo): Use local and stack variables, not static.
10601         Move readlink check here from init_iosys.
10602         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10603         (_iopl): Simplify.
10604         (_hae_shift): Calculate it here.
10605         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10606         add pciconfig_iobase.
10607
10608 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10609
10610         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10611         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10612
10613         * scripts/versions.awk: Fixed version renaming code to distinguish
10614         libraries properly.
10615
10616 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10617
10618         * include/stdlib.h: Add prototype for __cxa_atexit.
10619
10620         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10621         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10622
10623 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10624
10625         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10626         existing rtld-installed-name.
10627         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10628         replace existing rtld-installed-name using $(symbolic-link-prog).
10629
10630 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10631
10632         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10633         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10634         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10635         but not the former.
10636
10637 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10638
10639         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10640         glob64.  Since there is no glob64 in the LFS proposal applications
10641         can assume that glob handles LFS situations.  glob64 is only needed
10642         if alternative filesystem functions are used.
10643
10644 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10645
10646         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10647         when GLOB_DOOFFS is set; correct handling of patterns
10648         containing escaped wildcards (and no unescaped ones);
10649         GLOB_ERR flag was being ignored in some situations.
10650
10651         * posix/globtest.c, posix/globtest.sh: Updated to include
10652         tests for the problems fixed by the above changes to glob.c.
10653
10654         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10655
10656 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10657
10658         * Makeconfig (soversion.i): Use only first match for each lib.
10659
10660         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10661
10662         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10663         rather than $(sysd-dirs-done) to protect these rules.
10664
10665         * Makerules (version-renames.def): Target removed.
10666         (Versions.all): Depend on soversions.i directly and parse it.
10667
10668         * Makeconfig (soversions.i): New target, input-reading parts of
10669         soversions.mk generation moved here; result is a canonicalized
10670         list "LIB VERSION [SET]" for this configuration.
10671         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10672         * Makerules (version-renames.def): New target, generated from
10673         soversions.i with contents that was in $(map-firstversions).
10674         (Versions.all): Don't depend on soversions.mk, depend on
10675         version-renames.def instead; just cat it into the input.
10676
10677         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10678         for $(map-firstversions), which better handles it being empty.
10679
10680         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10681         supported version for libc 0.2.90.libio to GLIBC_2.2.
10682
10683         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10684         and use it to emit new variable `map-firstversions'.
10685         * scripts/firstversions.awk: New file.
10686         * Makerules (Versions.all): Use scripts/firstversions.awk and
10687         the $(map-firstversions) value to generate a modified versions list
10688         that includes renames in "A = B" syntax for each version set earlier
10689         than the "earliest symbol version" named in shlib-versions.
10690         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10691         rename version set A to B in the output to the intermediate file.
10692         * scripts/abi-versions.awk: New file.
10693         * Makerules (abi-versions.h): New target, generated by that script.
10694         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10695         * include/shlib-compat.h: New file, uses that generated header.
10696
10697 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10698
10699         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10700         after stripping # comments, and then run it through cpp.
10701         This allows things like "%ifdef FOO" based on config.h settings.
10702         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10703
10704         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10705         and other errors that indicate a pseudo-receive happened, grok through
10706         the message buffer for port rights that need references fixed up.
10707
10708 2000-03-16  Andreas Jaeger  <aj@suse.de>
10709
10710         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10711
10712         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10713
10714         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10715         from latest Linux kernel.
10716         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10717
10718         * misc/sys/mman.h: Add prototype for mincore.
10719
10720 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10721
10722         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10723         entry for GLIBC_2.0 version of setrlimit.
10724         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10725
10726 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10727
10728         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10729         * nis/nss_compat/compat-initgroups.c: Likewise.
10730         * nis/nss_nis/nis-initgroups.c: Likewise.
10731         * nis/nss_nis/nis-netgrp.c: Likewise.
10732         * nis/nss_nis/nis-proto.c: Likewise.
10733         * nis/nss_nis/nis-rpc.c: Likewise.
10734         * nis/nss_nis/nis-service.c: Likewise.
10735         * nis/ypclnt.c: Likewise.
10736
10737 2000-03-16  Andreas Jaeger  <aj@suse.de>
10738
10739         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10740         doesn't exist, correct checks.  Fixes PR libc/1649.
10741
10742 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10743
10744         * nscd/hstcache.c: Restore correct UID.
10745         * nscd/pwdcache.c: Likewise.
10746         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10747
10748 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10749
10750         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10751         macros for register names, in line with 2000-03-14 linux change.
10752
10753         * sysdeps/mach/sched_yield.c: New file.
10754
10755 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10756
10757         * sysdeps/generic/lockfile.c: Include <stdio.h>
10758         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10759         case <libio.h> defined them.
10760         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10761         from __internal_*.
10762         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10763         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10764
10765         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10766         for more pleasing parse error.
10767
10768 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10769
10770         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10771         memory for eras.
10772         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10773
10774         * elf/Makefile: Add rules to compile and run constload1 test.
10775         * elf/constload1.c: New file.
10776         * elf/constload2.c: New file.
10777         * elf/constload3.c: New file.
10778
10779 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10780
10781         * sysdeps/posix/open64.c: Make __open64 weak alias.
10782         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10783         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10784         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10785         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10786         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10787         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10788         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10789         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10790         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10791         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10792
10793 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10794
10795         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10796         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10797
10798 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10799
10800         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10801         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10802
10803 2000-03-08  Andreas Jaeger  <aj@suse.de>
10804
10805         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10806
10807 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10808
10809         * timezone/africa: Update from tzdata2000d.
10810         * timezone/asia: Likewise.
10811         * timezone/australasia: Likewise.
10812         * timezone/europe: Likewise.
10813         * timezone/northamerica: Likewise.
10814         * timezone/southamerica: Likewise.
10815
10816         * po/fr.po: Update from translation team.
10817         * po/de.po: Likewise.
10818
10819         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10820         last parameter.  Move code to add map to global scope from here...
10821         * elf/dl-open.c (dl_open_worker): ...here.
10822         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10823         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10824
10825         * locale/programs/ld-collate.c (collate_read): Fix warning.
10826
10827         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10828         values and macros for register names.
10829
10830         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10831         returned by seek cookie function is -1.
10832
10833 2000-03-14  Andreas Jaeger  <aj@suse.de>
10834
10835         * locale/localeconv.c (localeconv): Fix typo.
10836         Reported by Andre Charbonneau <andrec@corel.com>.
10837
10838 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10839
10840         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10841         since modules depend on it counting the number of times the conversion
10842         function got called.
10843
10844         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10845
10846         * iconv/gconv.h: Pretty print.
10847
10848 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10849
10850         * posix/wordexp-test.c: Correct one of the tests added in the last
10851         change.  Really get the root passwd entry to check again ~root.
10852
10853 2000-03-10  Andreas Jaeger  <aj@suse.de>
10854
10855         * manual/filesys.texi (Working Directory): Fix last patch.
10856         Patch by Martin Buchholz  <martin@xemacs.org>.
10857
10858 2000-03-10  Andreas Jaeger  <aj@suse.de>
10859
10860         * manual/creature.texi (Feature Test Macros): Fix language.
10861
10862 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10863
10864         * mach/devstream.c (devstream_write, devstream_read): New functions.
10865         (input, output): Functions removed.
10866         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10867         using only the vanilla fopencookie interface.
10868
10869         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10870         as macro for __io_functions.
10871         (funcsio): Use cookie_io_functions_t type name.
10872         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10873
10874         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10875         fopencookie.
10876         (fopencookie): Use it.
10877         * libio/libio.h: Declare _IO_cookie_init.
10878         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10879         _IO_cookie_init.
10880
10881         * libio/libio.h (__io_seek_fn): Fix second argument type
10882         to be a pointer, in line with the manual and the old stdio.
10883         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10884
10885         * sysdeps/generic/bits/stdio-lock.h: New file.
10886         This is a stub with #error, but that's better than no file at all.
10887
10888 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10889
10890         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10891         * manual/message.texi (Using gettextized software): Doc Fixes.
10892         * manual/message.texi (Message Translation): Doc Fixes.
10893         * manual/filesys.texi (File Size): Doc Fixes.
10894         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10895         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10896         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10897         * manual/install.texi: Doc Fixes.
10898         * manual/search.texi (Hash Search Function): Doc Fixes.
10899         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10900         * FAQ.in: Doc Fixes.
10901         * config.h.in: Doc Fixes.
10902         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10903         Doc Fixes.  `allows to' is not correct English.
10904
10905         * elf/rtld.c: Doc fixes.
10906         * manual/creature.texi (Feature Test Macros): Doc fixes.
10907         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10908
10909         * manual/filesys.texi (Working Directory): Check for ERANGE to
10910         avoid infloop.
10911
10912 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10913
10914         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10915         conditions so as not to clobber the final '\0' when there is only one
10916         element in the vector.
10917
10918 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10919
10920         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10921         broken by 2000-02-27 change.
10922
10923         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10924
10925 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10926
10927         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10928         argument type, for 2000-02-22 change in signal/signal.h declaration.
10929
10930 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10931
10932         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10933         to getdirentries64 (no __), since the Linux implementation
10934         has no __ name, and there is no declaration for the __ name.
10935
10936         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10937
10938         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10939         sed regexp so as not to break directory names including /../ within.
10940
10941         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10942         The sysdeps/generic file is right for BSD.  This file was in fact the
10943         Hurd file, but the only difference was the WNOREAP flag that was never
10944         actually implemented or used anywhere.
10945
10946         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10947         since AC_PATH_PROG already does it for us.
10948         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10949         correctness and sh portability.  I replaced the broken check
10950         with a more sensible implementation of the apparently intended
10951         semantics, which might still be questionable.  Using expr causes
10952         a non-numeric value for `perl -V:apiversion` to be accepted,
10953         refusing to use only a perl that reports a number less than 5;
10954         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10955         * configure: Regenerated.
10956
10957 2000-03-08  Andreas Jaeger  <aj@suse.de>
10958
10959         * manual/crypt.texi: Fix paths.
10960
10961 2000-03-07  Andreas Jaeger  <aj@suse.de>
10962
10963         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10964         were swapped.
10965         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10966         libc/1636.
10967
10968 2000-03-06  Andreas Jaeger  <aj@suse.de>
10969
10970         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10971         in __sgn1l, otherwise g++ fails to parse this.
10972         Reported by Sean Chen <sean.chen@turbolinux.com>.
10973
10974 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10975
10976         * configure.in: Compute sizeof-long-double.
10977         * configure: Regenerated.
10978         * config.make.in: Make sizeof-long-double available to sub-makes.
10979
10980 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10981
10982         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10983         call.
10984
10985 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10986
10987         * Makeconfig (rpath-dirs): Add crypt.
10988         (all-subdirs): Remove md5crypt.
10989         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10990         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10991         * sysdeps/generic/crypt-entry.c: Delete.
10992         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10993         * sysdeps/generic/crypt.h: Delete.
10994         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10995         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10996         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10997         * sysdeps/generic/des_impl.c: Delete.
10998         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10999         * crypt/sysdeps: Delete.
11000         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11001         * md5-crypt/Versions: Move to crypt/.
11002         * md5-crypt/md5-crypt.c: Move to crypt/.
11003         * md5-crypt/md5.c: Move to crypt/.
11004         * md5-crypt/md5c-test.c: Move to crypt/.
11005         * md5-crypt/md5test.c: Move to crypt/.
11006         * md5-crypt: Delete.
11007         * crypt/Makefile: Adjust for new structure.
11008
11009 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11010
11011         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11012         define to 1 if not defined.
11013
11014 2000-03-03  Andreas Jaeger  <aj@suse.de>
11015
11016         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11017
11018 2000-03-03  Andreas Jaeger  <aj@suse.de>
11019
11020         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11021         cases.
11022         (xdr_int64_t): Correctly handle lower half.
11023         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11024
11025 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11026
11027         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11028         call.
11029
11030 2000-03-02  Andreas Jaeger  <aj@suse.de>
11031
11032         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11033         2.3.43.
11034
11035 2000-03-02  Andreas Jaeger  <aj@suse.de>
11036
11037         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11038
11039 2000-03-01  Andreas Jaeger  <aj@suse.de>
11040
11041         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11042         (tests): Added tst-getdate.
11043
11044         * time/tst-getdate.c: New file.
11045
11046         * time/datemsk: New file, needed for tst-getdate.
11047
11048 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11049
11050         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11051
11052 2000-02-17  H.J. Lu  <hjl@gnu.org>
11053
11054         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11055
11056         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11057         available.
11058         (svcudp_recv): Set up message with the new "xp_pad" field for
11059         IP_PKTINFO.
11060         (svcudp_reply): Support IP_PKTINFO if available.
11061
11062 2000-03-01  Andreas Jaeger  <aj@suse.de>
11063
11064         * time/getdate.c (check_mday): Fix check for february.
11065         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11066         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11067
11068 2000-03-02  Andreas Jaeger  <aj@suse.de>
11069
11070         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11071         g++ fails to parse this.
11072         Reported by Sean Chen <sean.chen@turbolinux.com>.
11073
11074 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11075
11076         * io/creat.c: Moved to...
11077         * sysdeps/generic/creat.c: ...here.
11078         * io/creat64.c: Moved to...
11079         * sysdeps/generic/creat64.c: ...here.
11080         * io/lockf.c: Moved to...
11081         * sysdeps/generic/lockf.c: ...here.
11082
11083         * crypt/crypt.texi: Moved to...
11084         * manual/crypt.texi: ...here.
11085         * crypt/examples/genpass.c: Moved to...
11086         * manual/examples/genpass.c: ...here.
11087         * crypt/examples/mygenpass.c: Moved to...
11088         * manual/examples/mygenpass.c: ...here.
11089         * crypt/examples/testpass.c: Moved to...
11090         * manual/examples/testpass.c: ...here.
11091
11092         * manual/Makefile (chapters): Add crypt.
11093         * manual/conf.texi: Add usual header for not-last chapter.
11094         * manual/crypt.texi: Add special header for last chapter.
11095
11096 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11097
11098         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11099         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11100         complain if there is no crypt add-on.
11101         * crypt/configure: Removed.
11102
11103         * crypt/crypt.texi: Update documentation of US export restrictions
11104         to match the 14 Jan 2000 regulations.
11105
11106 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11107
11108         * crypt: New subdirectory, merged in from the crypt add-on.
11109
11110 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11111
11112         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11113
11114
11115 See ChangeLog.10 for earlier changes.