Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-21  Andreas Jaeger  <aj@suse.de>
2
3         * libio/oldiofsetpos64.c: Fix alias names.
4
5 2000-09-21  Martin Buchholz  <martin@xemacs.org>
6
7         * manual/terminal.texi (Allocation): Sample code correction.
8
9 2000-09-20  Andreas Jaeger  <aj@suse.de>
10
11         * iconvdata/Makefile (generated): Add tst-tables.out.
12
13         * intl/Makefile (generated): Add test output.
14
15 2000-09-19  Andreas Jaeger  <aj@suse.de>
16
17         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
18         Reported by Jens-Uwe Mager <jum@helios.de>.
19
20 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
21
22         * version.h (VERSION): Bump to 2.1.94.
23
24         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
25         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
26         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
27         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
28
29         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
30
31 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
32
33         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
34         range 0xD800..0xDFFF.
35         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
36         (BODY for FROM_LOOP): Likewise.
37         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
38         (internal_ucs2_loop): Likewise.
39         (ucs2reverse_internal_loop): Likewise.
40         (internal_ucs2reverse_loop): Likewise.
41
42 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
43
44         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
45         names.
46
47 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
48
49         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
50         * iconvdata/tst-table-to.c (main): Likewise.
51
52 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
53
54         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
55         __isoir165_tab.
56         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
57         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
58         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
59         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
60         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
61         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
62         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
63         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
64         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
65         encodings when needed.  When outputting an announcement, don't clear
66         most other announcements.
67
68 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
69
70         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
71         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
72
73 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
74
75         * intl/Versions: Add bind_textdomain_codeset.
76
77 2000-09-16  Ralf Baechle  <ralf@gnu.org>
78
79         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
80         as function.
81         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
82         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
83         it will even work when not loaded to the standard address.
84         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
85         before the dynamic linker itself is relocated.
86
87 2000-09-18  Andreas Jaeger  <aj@suse.de>
88
89         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
90         __ASSUME_32BITUIDS for MIPS.
91         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
92         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
93
94 2000-09-17  H.J. Lu  <hjl@gnu.org>
95
96         * catgets/Makefile ($(objpfx)de/libc.cat): Use
97         $(make-target-directory) instead of mkdir.
98
99 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
100
101         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
102         __ASSUME_32BITUIDS for __powerpc__.
103         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
104         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
105
106 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
107
108         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
109         patch.
110         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
111
112 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
113
114         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
115         first.
116         * sysdeps/m68k/Implies: Likewise.
117         * sysdeps/sparc/sparc64/Implies: Likewise.
118
119 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
120
121         * elf/readlib.c (process_file): Don't error for stale .so links either.
122
123 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
124
125         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
126         __builtin_expect.
127
128         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
129         Patch by Thorsten Kukuk <kukuk@suse.de>.
130
131         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
132         (test): Add default.
133         (modules-names): Add defaultmod1 and defaultmod2.
134         Add rules to build test objects.
135
136 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
137
138         * wctype/wctype.h: Always include <bits/types.h>.
139         Reported by Jim Meyering <meyering@ascend.com>.
140
141         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
142         * elf/dl-support.c: Likewise.
143
144         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
145         st_blocks member in stat and stat64 structs.
146         Patch by Bill Nottingham <notting@redhat.com>.
147
148         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
149         take longer.
150
151         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
152         __extension__ to _Complex_I definition since gcc warns if -pedantic.
153         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
154         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
155
156         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
157         necessary.  Move includes of POSIX and Unix limits files to the end.
158         * stdlib/Makefile (tests): Add tst-limits.
159         * stdlib/tst-limits.h: New file.
160
161 2000-09-15  Andreas Jaeger  <aj@suse.de>
162
163         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
164
165         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
166
167 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
168
169         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
170         clobber.
171         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
172         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
173
174 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
175
176         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
177         (tests): Add next.
178         (modules-names): Add nextmod1 and nextmod2.
179         Add rules to build and run next.
180         * elf/next.c: New file.
181         * elf/nextmod1.c: New file.
182         * elf/nextmod2.c: New file.
183
184 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
185
186         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
187
188 2000-09-15  Andreas Jaeger  <aj@suse.de>
189
190         * sysdeps/mips/fpu/fenv_libc.h: New file.
191         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
192         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
193         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
194
195         * sysdeps/mips/fpu/feenablxcpt.c: New file.
196         * sysdeps/mips/fpu/fegetexcept.c: New file.
197         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
198
199 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
200
201         * intl/Makefile: Avoid unnecessary test reruns.
202
203         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
204
205         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
206         to not use sysctl().  Too many architectures have problems with it.
207
208 2000-09-14  Andreas Jaeger  <aj@suse.de>
209
210         * scripts/config.sub: New version from subversions.gnu.org.
211
212         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
213         long.
214
215 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
216
217         * posix/regex.c (compile_range): Cast collseq index to unsigned char
218         to avoid accessing data before collseq.
219
220         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
221         pasting strings together.
222
223 2000-09-14  Greg McGary  <greg@mcgary.org>
224
225         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
226         copyright notice.
227         * sysdeps/generic/bp-semctl.h: Likewise.
228         * sysdeps/generic/bp-start.h: Likewise.
229         * sysdeps/generic/bp-sym.h: Likewise.
230         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
231         rename prototype.
232
233 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
234
235         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
236         don't fail.
237
238         * elf/elf.h: Add missing official relocations.
239
240         * libio/stdio.h: Define __FILE if __need___FILE is defined.
241         * stdio/stdio.h: Likewise.
242         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
243         * include/stdio.h: Handle __need___FILE like __need_FILE.
244         * include/wchar.h: Use __FILE instead of FILE.
245         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
246         * libio/fwscanf.c: Likewise.
247         * libio/getwc.c: Likewise.
248
249         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
250         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
251         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
252
253         * assert/assert.h: Update comment header about ISO C section.
254         * math/complex.h: Likewise.
255         * ctype/ctype.h: Likewise.
256         * include/errno.h: Likewise.
257         * include/limits.h: Likewise.
258         * locale/locale.h: Likewise.
259         * math/math.h: Likewise.
260         * setjmp/setjmp.h: Likewise.
261         * signal/signal.h: Likewise.
262         * stdio/stdio.h: Likewise.
263         * libio/stdio.h: Likewise.
264         * stdlib/stdlib.h: Likewise.
265         * string/string.h: Likewise.
266         * time/time.h: Likewise.
267         * wcsmbs/wchar.h: Likewise.
268         * wctype/wctype.h: Likewise.
269         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
270
271 2000-09-13  Andreas Jaeger  <aj@suse.de>
272
273         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
274         for no more entries.
275         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
276         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
277         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
278
279 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
280
281         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
282         constant since this is what clock_t is.
283         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
284         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
285         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
286         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
287
288         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
289         definitions are requested.
290
291 2000-09-13  Andreas Jaeger  <aj@suse.de>
292
293         * shlib-versions: libBrokenLocale needs minimal version for ia64,
294         sparc64 and sh to synch with libc.
295
296 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
297
298         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
299         (distribute): Add iso-2022-cn-ext.c.
300         Add definitions to compile the new module.
301         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
302         * iconvdata/iso-2022-cn-ext.c: New file.
303         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
304         ucs4_from_isoir165.  Increment input pointer if successful.
305
306         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
307
308         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
309
310 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
311
312         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
313         __syscall_getdents64 wrapper.
314
315         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
316
317 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
318
319         * iconvdata/gb18030.c: Many many changes.  Make consistent with
320         charmap and with itself.
321         * iconvdata/tst-tables.sh: Test GB18030.
322
323 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
324
325         * iconv/skeleton.c: Fix last patch, add missing parameter to
326         unaligned function call.
327
328 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
329
330         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
331         of decimal ellipsis.
332
333 2000-09-11  Bruno Haible <haible@clisp.cons.org>
334
335         * locale/programs/ld-collate.c (collate_read): Always initialize
336         error_section.next.
337
338 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
339
340         * locale/programs/ld-collate.c (collate_finish): Upper bound for
341         ruleidx is 128, not 256.
342
343 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
344
345         * locale/programs/ld-collate.c (collate_read): Correct check for
346         already inserted entries.
347
348 2000-09-10  Bruno Haible <haible@clisp.cons.org>
349
350         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
351         second try as well.
352
353 2000-09-10  Bruno Haible <haible@clisp.cons.org>
354
355         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
356         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
357
358 2000-09-10  Bruno Haible <haible@clisp.cons.org>
359
360         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
361         SAVE_RESET_STATE.
362
363 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
364
365         * iconvdata/utf-7.c: New file.
366         * iconvdata/gconv-modules (UTF-7): New module entries.
367         * iconvdata/Makefile (modules): Add UTF-7.
368         (distribute): Add utf-7.c.
369         * iconvdata/testdata/UTF-7: New file.
370         * iconvdata/testdata/UTF-7..UTF8: New file.
371         * iconvdata/TESTS (UTF-7): New entry.
372         * iconvdata/run-iconv-test.sh: Fix confusing output.
373
374 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
375
376         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
377
378 2000-09-10  David S. Miller  <davem@redhat.com>
379
380         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
381         frame pointer offset for non-fast path.
382
383 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
384
385         * locale/programs/3level.h (*_init): Initialize level1, level2,
386         and level3 as well.
387         (*_add): Remove a few unnecessary conditionals.
388
389 2000-09-05  Wolfram Gloger  <wg@malloc.de>
390
391         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
392         ensure usability of mutex as an `in use' flag.
393
394 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
395
396         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
397
398         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
399         ugly GMON_WEAK_START hack.
400         Patch by Philip Blundell <philb@gnu.org>.
401
402         * sysdeps/i386/i486/bits/string.h: Pretty printing.
403
404 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
405
406         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
407         and PPC_ICBI asm for broken compilers.
408         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
409
410 2000-09-09  Andreas Jaeger  <aj@suse.de>
411
412         * manual/message.texi (Advanced gettext functions): Fix typo.
413
414         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
415         strncpy prototype.
416
417 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
418
419         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
420         warnings.
421         * sysdeps/ia64/memccpy.S: Likewise.
422         Patches by Jim Wilson <wilson@redhat.com>.
423
424         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
425         before trying to read /proc.
426         Patch by Matt Wilson <msw@redhat.com>.
427         * include/sys/utsname.h: Declare __uname.
428         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
429         * sysdeps/mach/hurd/uname.c: Likewise.
430         * sysdeps/unix/syscalls.list: Likewise.
431
432         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
433         unloading a bit.
434
435 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
436
437         * posix/getopt.c (_getopt_internal): When long_only is set always
438         recognize conflicts just like before.
439
440 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
441
442         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
443
444 2000-09-08  Greg McGary  <greg@mcgary.org>
445
446         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
447         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
448         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
449
450 2000-09-08  Andreas Jaeger  <aj@suse.de>
451
452         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
453
454         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
455
456         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
457         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
458         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
459
460 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
461
462         * iconvdata/tst-tables.sh: Enable EUC-KR test.
463
464         * elf/dl-load.c (lose): Decrement _nl_loaded.
465         (_dl_map_object_from_fd): Don't try to dlopen executables.
466
467         * iconvdata/tst-tables.sh: Actually return with an error if
468         something goes wrong.
469         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
470         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
471
472         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
473
474         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
475         * iconvdata/tst-table-from.c: Include <string.h>.
476         (try): Correct cast in iconv call.
477
478         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
479         too.
480         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
481         (sysdep_routines): Remove dl-start.
482         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
483
484         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
485
486         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
487         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
488
489 2000-09-06  Andreas Schwab  <schwab@suse.de>
490
491         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
492
493 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
494
495         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
496
497         * scripts/config.sub: Strip out -unknown for Linux targets.
498         Patch by Scott Bambrough <scottb@netwinder.org>.
499
500         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
501         add one more test.
502
503 2000-09-07  Andreas Jaeger  <aj@suse.de>
504
505         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
506
507         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
508         syscalls.
509
510         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
511
512         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
513         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
514
515         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
516
517         * stdlib/tst-bsearch.c (main): Add more test cases.
518
519         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
520         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
521         Reported by GOTO Masanori <gotom@debian.or.jp>.
522
523 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
524
525         * posix/Makefile (tests): Add tst-dir.
526         (tst-dir-ARGS): New variable.
527         * posix/tst-dir.c: New file.
528
529 2000-09-07  Andreas Jaeger  <aj@suse.de>
530
531         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
532         (SYS_fcntl64): New.
533
534         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
535
536 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
537
538         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
539         use the hack with tryopen_o_directory to determine at runtime
540         whether it works.
541         * sysdeps/unix/sysv/linux/opendir.c: New file.
542         * sysdeps/unix/sysv/linux/kernel-features.h: Define
543         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
544
545         * catgets/Depend: New file.  Add intl.
546         * catgets/Makefile (tests): Add tst-catgets.
547         (generated): Remove de.msg.
548         (generated-dirs): Add de.
549         Add dependency if tst-catgets output on de/libc.cat.
550         * catgets/tst-catgets.c: New file.
551
552         * po/ja.po: New file.
553         * po/el.po: Update from translation team.
554
555         * wcsmbs/Depend: New file.
556         * wcsmbs/Makefile (tests): Add tst-btowc.
557         (tst-btowc-ENV): Define.
558         * wcsmbs/tst-btowc.c: New file.
559
560         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
561         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
562
563         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
564
565         * stdlib/Makefile (tests): Add tst-bsearch.
566         * stdlib/tst-bsearch.c: New file.
567
568         * posix/getopt.c (_getopt_internal): Don't recognize an option
569         name as ambiguous if it's a prefix for more than one name but the
570         other struct option values are identical.
571
572         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
573         Don't depend on visual inspection of the output file to recognize
574         errors.
575         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
576
577 2000-09-06  Andreas Jaeger  <aj@suse.de>
578
579         * sysdeps/alpha/soft-fp/Dist: New file.
580         * sysdeps/i386/soft-fp/Dist: New file.
581         * sysdeps/mips/mips64/soft-fp/Dist: New file.
582         * sysdeps/mips/soft-fp/Dist: New file.
583         * sysdeps/powerpc/soft-fp/Dist: New file.
584         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
585         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
586
587         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
588         Use sysdep_routines instead of routines to fix make dist failure.
589         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
590         out code).
591         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
592
593         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
594         sysdep_headers instead of headers for make dist.
595
596         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
597         Likewise.
598
599 2000-09-06  Andreas Schwab  <schwab@suse.de>
600
601         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
602
603 2000-09-06  Andreas Jaeger  <aj@suse.de>
604
605         * soft-fp/Makefile (distribute): Remove ChangeLog.
606
607         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
608         sysdep_routines instead of routines for make dist.
609
610 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
611
612         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
613         compatibility check for old stream and call _IO_wide in doubt.
614         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
615         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
616         needed tst for such an old structure and don't do anything.
617         * libio/freopen.c: Remove declaration of _IO_stdin_used.
618
619 2000-09-06  Andreas Jaeger  <aj@suse.de>
620
621         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
622         sysdep-dl-routines and sysdep_routines instead of rtld-routines
623         and dl-routines.
624
625         * soft-fp/ChangeLog: Merged with this file.
626
627 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
628
629         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
630
631         * soft-fp/Makefile (distribute): Add the math functions, too.
632
633         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
634
635 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
636
637         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
638         as a statement.
639
640         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
641         * soft-fp/sysdeps/powerpc/q_*: New files.
642
643 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
644
645         * stdio-common/vfprintf.c (process_string_arg): Handle precision
646         in wide char case correctly.  Don't allocate too long temporary
647         strings with alloca.
648
649         * stdio-common/Makefile (tests): Add tst-swprintf.
650         (tst-swprintf-ENV): New variable.
651         * stdio-common/tst-swprintf.c: New file.
652
653 2000-09-05  Andreas Jaeger  <aj@suse.de>
654
655         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
656         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
657         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
658
659 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
660
661         * configure.in: Strip out "unknown" from configuration names.
662
663 2000-09-05  Andreas Jaeger  <aj@suse.de>
664
665         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
666
667         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
668         * sysdeps/sparc/sparc32/Implies: Likewise.
669         * sysdeps/powerpc/Implies: Likewise.
670
671         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
672         * libio/oldiofgetpos64.c: Likewise.
673
674         * soft-fp/Makefile (distribute): Remove configure.
675
676         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
677
678         * soft-fp/configure: Remove.
679
680         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
681         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
682
683         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
684         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
685
686         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
687         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
688
689         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
690         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
691
692         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
693         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
694
695         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
696         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
697
698         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
699         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
700
701         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
702         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
703
704         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
705         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
706
707         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
708         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
709
710         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
711         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
712
713         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
714         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
715
716         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
717         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
718
719         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
720         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
721
722         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
723         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
724
725         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
726         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
727
728         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
729         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
730
731         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
732         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
733
734         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
735         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
736
737         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
738         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
739
740         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
741         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
742
743         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
744         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
745
746         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
747         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
748
749         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
750         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
751
752         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
753         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
754
755         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
756         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
757
758         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
759         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
760
761         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
762         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
763
764         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
765         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
766
767         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
768         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
769
770         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
771         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
772
773         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
774         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
775
776         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
777         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
778
779         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
780         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
781
782         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
783         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
784
785         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
786         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
787
788         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
789         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
790
791         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
792         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
793
794         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
795         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
796
797         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
798         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
799
800         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
801         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
802
803         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
804         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
805
806         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
807         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
808
809         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
810         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
811
812         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
813         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
814
815         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
816         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
817
818         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
819         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
820
821         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
822         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
823
824         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
825         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
826
827         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
828         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
829
830         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
831         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
832
833         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
834         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
835
836         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
837         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
838
839         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
840         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
841
842         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
843         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
844
845         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
846         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
847
848         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
849         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
850
851         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
852         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
853
854         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
855         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
856
857         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
858         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
859
860         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
861         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
862
863         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
864         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
865
866         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
867         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
868
869         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
870         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
871
872         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
873         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
874
875         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
876         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
877
878         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
879         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
880
881         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
882         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
883
884         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
885         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
886
887         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
888         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
889
890         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
891         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
892
893         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
894         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
895
896         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
897         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
898
899         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
900         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
901
902         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
903         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
904
905         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
906         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
907
908         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
909         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
910
911         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
912         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
913
914         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
915         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
916
917         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
918         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
919
920         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
921         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
922
923         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
924         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
925
926         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
927         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
928
929         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
930         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
931
932         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
933         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
934
935         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
936         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
937
938         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
939         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
940
941         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
942         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
943
944         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
945         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
946
947         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
948         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
949
950         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
951         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
952
953         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
954         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
955
956         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
957         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
958
959         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
960         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
961
962         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
963         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
964
965         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
966         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
967
968         * soft-fp/sysdeps/powerpc/Versions: Move from here...
969         * sysdeps/powerpc/soft-fp/Versions: ... to here.
970
971         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
972         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
973
974         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
975         change symbol version.
976         * libio/oldiofgetpos64.c: Likewise.
977         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
978
979         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
980         typo.
981         Reported by dyky@kondara.org, closes PR libc/1886.
982
983         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
984         libc/1880.
985
986 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
987
988         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
989         script when ^C is hit.
990
991         * locale/programs/localedef.c (construct_output_path): Correct
992         computation of endp after asprintf.
993         * locale/programs/locfile.c (write_locale_data): Don't add extra
994         slash in filename.
995
996 2000-09-05  Andreas Jaeger  <aj@suse.de>
997
998         * scripts/config.guess: New upstream version.
999         * scripts/config.sub: Likewise.
1000         * manual/texinfo.tex: Likewise.
1001
1002 2000-09-04  Andreas Schwab  <schwab@suse.de>
1003
1004         * elf/Makefile (all-dl-routines): New variable.
1005         (elide-routines.os): Use it instead of $(dl-routines).
1006         (all-rtld-routines): New variable.
1007         (extra-objs): Use it instead of $(rtld-routines).
1008         ($(objpfx)dl-allobjs.os): Likewise.
1009         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1010         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1011         and dl-routines.
1012
1013 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1014
1015         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1016         Set fname to NULL if the module wasn't found.
1017
1018 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1019
1020         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1021         true if trans->name already ends in ".so".
1022
1023 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1024
1025         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1026         void.
1027         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1028         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1029         (__gconv_release_shlib): Change return type to void.
1030         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1031         step->__counter here.
1032         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1033         if the reference is zero.
1034         (release_step): New function.
1035         (gen_steps): Always initialize the __counter to 1. Use release_step.
1036         Don't call the destructor on the step whose initializer failed.
1037         (increment_counter): Use release_step. Don't normally run destructors
1038         here.
1039         (__gconv_close_transform): Use release_step.
1040
1041 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1042
1043         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1044         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1045
1046 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1047
1048         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1049         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1050         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1051         to check for incomplete input.
1052         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1053         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1054         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1055         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1056         0x9f9d..0x9fa5.
1057         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1058         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1059         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1060         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1061         upto index 0x0052.
1062
1063 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1064
1065         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1066         solution.
1067
1068 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1069
1070         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1071         are invalid.
1072
1073 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1074
1075         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1076         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1077         U+007E.
1078
1079 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1080
1081         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1082
1083 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1084
1085         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1086
1087 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1088
1089         * iconvdata/tst-tables.sh: New file.
1090         * iconvdata/tst-table.sh: New file.
1091         * iconvdata/tst-table-from.c: New file.
1092         * iconvdata/tst-table-to.c: New file.
1093         * iconvdata/tst-table-charmap.sh: New file.
1094         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1095         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1096         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1097         ISIRI-3342.irreversible, SJIS.irreversible.
1098         (tests): Add dependency on tst-tables.out.
1099         (tst-tables.out, tst-tables-clean): New rules.
1100         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1101         * iconvdata/ISIRI-3342.irreversible: New file.
1102         * iconvdata/EUC-JP.irreversible: New file.
1103         * iconvdata/SJIS.irreversible: New file.
1104
1105 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1106
1107         * manual/locale.texi (General Numeric): Update description of
1108         representation of the grouping information in the locale data.
1109         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1110
1111 2000-09-04  Andreas Jaeger  <aj@suse.de>
1112
1113         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1114         * iconv/iconv_prog.c (options): Fix typo.
1115         Reported by dyky@kondara.org, closes PR libc/1885.
1116
1117 2000-09-04  Andreas Jaeger  <aj@suse.de>
1118
1119         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1120         Reported by Rob Levin <lilo@transvirtual.com>.
1121
1122 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1123
1124         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1125         to the typedefs of __timezone_ptr_t.
1126         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1127
1128 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1129
1130         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1131         the loop.
1132
1133 2000-09-01  H.J. Lu  <hjl@gnu.org>
1134
1135         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1136         to run a binary if it is in $(tests-static).
1137
1138         * Rules (binaries-static): Add $(tests-static).
1139
1140 2000-09-02  Andreas Jaeger  <aj@suse.de>
1141
1142         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1143
1144         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1145         patch.
1146
1147 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1148
1149         * iconvdata/big5hkscs.c: Regenerated from charmap.
1150         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1151         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1152
1153         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1154         statement.  General cleanup.
1155
1156 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1157
1158         * wctype/wcfuncs.c (iswblank): New function.
1159         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1160         * wctype/wcextra.c: Remove file.
1161         * wctype/wcextra_l.c: Remove file.
1162         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1163
1164 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1165
1166         * locale/programs/ld-collate.c (collate_output): Remove redundant
1167         assert call.
1168         * string/strcoll.c: Likewise.
1169         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1170         string/strcoll.c.
1171
1172 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1173
1174         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1175         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1176         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1177         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1178         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1179         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1180         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1181         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1182         _NL_CTYPE_GAP5/6 respectively.
1183
1184         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1185         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1186         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1187         Don't initialize __ctype_names and __ctype_width.
1188         * wctype/cname-lookup.h: Remove file.
1189         * wctype/Makefile (distribute): Remove cname-lookup.h.
1190         * wctype/wchar-lookup.h: Include stdint.h.
1191         * wctype/wctype.c (__wctype): Assume new locale format.
1192         * wctype/wctype_l.c (__wctype_l): Likewise.
1193         * wctype/iswctype.c: Don't include cname-lookup.h.
1194         (__iswctype): Assume new locale format.
1195         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1196         (__iswctype_l): Assume new locale format.
1197         * wctype/wctrans.c: Don't include ctype.h.
1198         (wctrans): Assume new locale format.
1199         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1200         * wctype/towctrans.c: Don't include cname-lookup.h.
1201         (__towctrans): Assume new locale format.
1202         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1203         (__towctrans_l): Assume new locale format.
1204         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1205         localeinfo.h instead.
1206         (__NO_WCTYPE): Remove unused macro.
1207         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1208         declarations.
1209         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1210         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1211         (towlower, towupper): Likewise.
1212         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1213         localeinfo.h instead.
1214         (__NO_WCTYPE): Remove unused macro.
1215         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1216         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1217         __iswxdigit_l): Assume new locale format.
1218         (__towlower_l, __towupper_l): Likewise.
1219         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1220         (__ctype32_b): Remove declaration.
1221         (internal_wcwidth): Assume new locale format.
1222         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1223         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1224         to map32_b, rename width_3level to width.
1225         (ctype_output): Always create new locale format. Don't emit
1226         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1227         (allocate_arrays): Always create new locale format.
1228
1229         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1230         * locale/weightwc.h (findidx): Assume new locale format.
1231         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1232         names.
1233         * string/strxfrm.c (wcsxfrm): Likewise.
1234         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1235         local variable collseq to 'const char *'.
1236         (SUFFIX): Don't use, don't undefine.
1237         * posix/fnmatch.c: Remove SUFFIX definition.
1238         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1239         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1240         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1241         (collate_finish): Always create new locale format. Remove local
1242         variables min_total, act_size.
1243         (collate_output): Always create new locale format. Remove local
1244         variables table_size, names, tablewc. Rename tablewc_3level to
1245         tablewc.
1246
1247 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1248
1249         * locale/programs/ld-collate.c (obstack_int32_grow,
1250         obstack_int32_grow_fast): New inline functions.
1251         (output_weightwc, collate_output): Use them where possible.
1252
1253 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1254
1255         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1256         patch (_mode -> _flags).
1257
1258         * libio/Makefile (headers): Add stdio_ext.h.
1259         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1260         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1261         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1262         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1263         __fsetlocking, and _flushlbf.
1264         * libio/__fbufsize.c: New file.
1265         * libio/__flbf.c: New file.
1266         * libio/__fpending.c: New file.
1267         * libio/__fpurge.c: New file.
1268         * libio/__freadable.c: New file.
1269         * libio/__freading.c: New file.
1270         * libio/__fsetlocking.c: New file.
1271         * libio/__fwritable.c: New file.
1272         * libio/__fwriting.c: New file.
1273         * libio/stdio_ext.h: New file.
1274         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1275         * libio/libio.h (_IO_USER_LOCK): Define.
1276         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1277         test _IO_USER_LOCK flag first.
1278
1279         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1280         malloc fails.
1281
1282 2000-09-01  Andreas Jaeger  <aj@suse.de>
1283
1284         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1285
1286         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1287
1288 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1289
1290         * math/Makefile (tests): Add tst-defintions.
1291         * math/tst-definitions.c: New file.
1292
1293         * stdlib/Makefile (headers): Add bits/wchar.h.
1294         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1295         * sysdeps/generic/bits/wchar.h: New file.
1296         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1297         file to define WCHAR_MIN and WCHAR_MAX.
1298         Change UINT*8_MAX and UIN*16_MAX value to type int.
1299         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1300         file to define WCHAR_MIN and WCHAR_MAX.
1301         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1302         int values.
1303         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1304         * sysdeps/generic/bits/mathdef.h: Likewise.
1305         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1306         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1307         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1308         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1309         * locale/locale.h (struct lconv): Add __ prefix to the new members
1310         if not C99.
1311         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1312         imaxdiv optimizations.
1313         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1314         * sysdeps/wordsize-64/ldiv.c: Likewise.
1315         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1316         const fenv_t*.
1317         * sysdeps/generic/bits/fenv.h: Likewise.
1318         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1319         * sysdeps/ia64/bits/fenv.h: Likewise.
1320         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1321         * sysdeps/mips/bits/fenv.h: Likewise.
1322         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1323         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1324         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1325
1326         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1327         * inet/ruserpass.c: Likewise.
1328         * catgets/open_catalog.c: Likewise.
1329         * intl/loadmsgcat.c: Likewise.
1330         * io/getdirname.c: Likewise.
1331         * locale/loadlocale.c: Likewise.
1332         * misc/getusershell.c: Likewise.
1333         * stdlib/canonicalize.c: Likewise.
1334         * sysdeps/posix/euidaccess.c: Likewise.
1335         * sysdeps/posix/isfdtype.c: Likewise.
1336         * sysdeps/posix/posix_fallocate.c: Likewise.
1337         * sysdeps/posix/tempname.c: Likewise.
1338         * sysdeps/unix/grantpt.c: Likewise.
1339         * sysdeps/unix/opendir.c: Likewise.
1340         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1341         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1342         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1343         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1344         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1345         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1346         * sysvipc/ftok.c: Likewise.
1347         * time/getdate.c: Likewise.
1348
1349         * time/getdate.c: Add extra access test.
1350
1351 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1352
1353         * version.h (VERSION): Bump to 2.1.93.
1354
1355         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1356         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1357
1358         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1359         Make this a new rule depending on tst-gettext.out and run mtrace.
1360         * intl/tst-gettext.c: Call mtrace.
1361         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1362
1363         * elf/dl-reloc.c: Add a few more __builtin_expect.
1364
1365         * configure.in: Remove --with-gettext option.
1366
1367         * intl/dcigettext.c (free_mem): Correct freeing of
1368         _nl_domain_bindings list.
1369
1370         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1371         allocated memory.
1372
1373         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1374
1375         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1376
1377         * stdio-common/itoa-digits.c: Move upper digits to...
1378         * stdio-common/itoa-udigits.c: ...here.  New file.
1379         * stdio-common/Makefile (routines): Add itoa-udigits.
1380
1381         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1382         relocate ld.so don't add supprt for relocations which should not
1383         appear in ld.so.
1384
1385         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1386         __secure_getenv.  Instead test __libc_enable_secure once.
1387
1388         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1389
1390 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1391
1392         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1393         whether the new record should be freed if it's a duplicate.
1394         (add_module): Adjust insert_module call.
1395         (__gconv_read_conf): Likewise.
1396         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1397         mtrace-tst-loading.
1398         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1399
1400         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1401         _dl_all_init_dirs.
1402         * include/link.h (struct r_search_path_struct): New.
1403         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1404         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1405         _dl_all_init_dirs.
1406         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1407         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1408         added at startup time.
1409         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1410         contains element to remember fact that we can free memory.
1411         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1412         (_dl_init_all_dirs): New variable.
1413         (fillin_rpath): Save one malloc call.
1414         (decompose_rpath): Change interface.  New first parameter points to
1415         r_search_path_struct.
1416         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1417         deletable.  Set _dl_init_all_paths value.
1418         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1419         parameter replaced with r_search_path_struct *.  Information about
1420         freeing now contained in r_search_path_struct.
1421         (_dl_map_object): Adjust for above changes.
1422
1423         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1424
1425         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1426         when adding new entries.
1427
1428         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1429         since the object being loaded can be unloaded.
1430
1431         * iconvdata/Makefile (tests): Add tst-loading.
1432         * iconvdata/tst-loading.c: New file.
1433
1434 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1435
1436         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1437         When comparing a char with an int, always cast the char to
1438         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1439         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1440
1441 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1442
1443         * time/strftime.c (my_strftime): Add compatibility code for use
1444         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1445
1446         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1447         return 0 for success but always < 0 on failure.
1448
1449         * nss/getXXbyYY_r.c: Define result to *result before including
1450         digits_dots.c.
1451
1452 2000-08-30  Andreas Jaeger  <aj@suse.de>
1453
1454         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1455
1456 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1457
1458         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1459         official file.
1460         * iconvdata/TESTS: Add BIG5HKSCS entry.
1461         * iconvdata/testdata/BIG5HKSCS: New file.
1462         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1463
1464         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1465         always true.
1466
1467         * libio/iogetline.c: Set mode before the loop in case n==0.
1468         * libio/iogetwline.c: Likewise.
1469
1470 2000-08-29  H.J. Lu  <hjl@gnu.org>
1471
1472         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1473         of fp->_mode < 0.
1474         (_IO_new_file_overflow): Likewise.
1475         * libio/genops.c (_IO_flush_all): Likewise.
1476         * libio/ioftell.c (_IO_ftell): Likewise.
1477
1478 2000-08-29  Akira Higuchi  <a@kondara.org>
1479
1480         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1481         and __end_fct fields of struct __gconv_step.
1482         * iconv/Makefile (tests): Add iconv-bug2.
1483         * iconv/iconv-bug2.c: New file.
1484
1485         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1486         instead of 'inptr - inend' to ksc5601_to_ucs4.
1487
1488         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1489
1490         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1491         character or shift sequence is found at the end of the input
1492         string, return__GCONV_INCOMPLETE_INPUT instead of
1493         __GCONV_EMPTY_INPUT.
1494         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1495         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1496
1497         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1498         __GCONV_ILLEGAL_INPUT for 8bit characters.
1499
1500 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1501
1502         * signal/signal.h (sigpause): Move __THROW before __asm__.
1503
1504         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1505         names don't match don't return.
1506         Patch by Olaf Kirch <okir@flash.lst.de>.
1507
1508 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1509
1510         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1511
1512 2000-08-27  H.J. Lu  <hjl@gnu.org>
1513
1514         * posix/Makefile (otherlibs): Add for building with static-nss
1515         for "make check".
1516
1517 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1518
1519         * libio/stdio.h: Add fmemopen prototype.
1520
1521 2000-08-25  Andreas Jaeger  <aj@suse.de>
1522
1523         * libio/Makefile (routines): Add fmemopen.
1524         (tests): Add test-fmemopen.
1525         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1526         * libio/test-fmemopen.c: New file.
1527         * libio/fmemopen.c: New file.
1528         Patches by Hanno Mueller <kontakt@hanno.de>.
1529
1530 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1531
1532         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1533         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1534
1535         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1536         to avoid crashing statically linked applications.
1537
1538 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1539
1540         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1541         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1542
1543         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1544         If the result is fits in the buffer, copy only as many bytes as needed.
1545
1546         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1547         buffer after copying numbuf into it.
1548         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1549
1550 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1551
1552         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1553         the result.  When string_len < len, don't clear the rest of the buffer.
1554
1555 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1556
1557         Support for new LC_COLLATE format.
1558         * locale/coll-lookup.h: New file.
1559         * locale/weightwc.h (findidx): When size == 0, call
1560         collidx_table_lookup.
1561         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1562         * wcsmbs/wcsxfrm.c: Likewise.
1563         * posix/fnmatch.c: Likewise.
1564         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1565         collseq_table_lookup.
1566         * locale/programs/3level.h: New file.
1567         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1568         by including "3level.h".
1569         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1570         collseq_table): New types, defined by including "3level.h".
1571         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1572         (encoding_mask, encoding_byte): Remove.
1573         (utf8_encode): Use simple shifts instead.
1574         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1575         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1576         (collate_output): New local variable tablewc_3level. When
1577         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1578         tablewc_3level instead of tablewc. Change format of TABLEWC and
1579         COLLSEQWC entries written to the file.
1580         * locale/C-collate.c (collseqwc): Change format.
1581         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1582         of COLLSEQWC.
1583         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1584
1585 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1586
1587         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1588         (locale_ctype_t): New charnames_idx field.
1589         (ctype_startup): Initialize charnames_idx field.
1590         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1591
1592 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1593
1594         * locale/C-ctype.c: Switch to new locale format.
1595         (_nl_C_LC_CTYPE_names): Remove array.
1596         (STRUCT_CTYPE_CLASS): New macro.
1597         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1598         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1599         New three-level tables.
1600         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1601         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1602         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1603         12 class tables and 2 map tables at the end.
1604         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1605         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1606         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1607         New declarations.
1608         (b): Remove trailing semicolon.
1609         (__ctype_names, __ctype_width): Don't initialize.
1610         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1611
1612 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1613
1614         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1615         is guaranteed to be allocated with the same malloc() and may be
1616         passed to free().
1617         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1618         been set to empty by an earlier open_path call, don't pass it again.
1619
1620 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1621
1622         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1623         we are not optimizing.
1624
1625         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1626         inclusion.
1627
1628         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1629         really match EOF.
1630         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1631
1632 2000-08-28  Andreas Jaeger  <aj@suse.de>
1633
1634         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1635
1636 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1637
1638         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1639         getpeername.  Use ISO C style function definition.
1640         (getpeername): Provide weak alias.
1641         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1642         setrlimit.  Use ISO C style function definition.
1643         (setrlimit): Provide weak alias.
1644
1645 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1646
1647         * shlib-versions: Add a rule for S/390 to the libm version list.
1648         * sysdeps/s390/Versions: New file.
1649         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1650         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1651         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1652         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1653         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1654         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1655         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1656         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1657         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1658         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1659         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1660         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1661         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1662         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1663         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1664         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1665         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1666         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1667
1668 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1669
1670         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1671         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1672
1673         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1674         * elf/dl-close.c (_dl_close): Print debug message if object is not
1675         unloaded.
1676         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1677         returning to caller.
1678
1679         * po/zh.po: Renamed to...
1680         * po/zh_TW.po: ...this.
1681
1682 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1683
1684         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1685
1686         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1687         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1688         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1689         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1690
1691 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1692
1693         * locale/programs/ld-collate.c (insert_weights): Also update
1694         backpointer of next element.
1695         (collate_read): Allow definition of new collation symbols in stage 2.
1696         Symbol after reorder-after can be UCS4 value.
1697         Allow reordering of collation symbols and elements.
1698         Do not only move reorder entry in new position.  Instead call
1699         insert_weight to do this and read the weights.
1700
1701         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1702
1703         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1704         to determine invalid locale name.
1705         * locale/findlocale.c (_nl_find_locale): Likewise.
1706
1707         * posix/annexc.c: Correct test for unavailable feature.
1708
1709         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1710         __inline.
1711
1712 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1713
1714         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1715         syscall.
1716
1717         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1718         (sysdep_routines): Add oldgetrlimit64.
1719
1720         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1721         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1722         (tests): Add unload, reldep, reldep2, and reldep3.
1723         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1724         and reldepmod4.
1725         Add rules to build and run unload, reldep, reldep2, and reldep3.
1726         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1727         Don't create relocation dependency if it is nonzero.
1728         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1729         can never happen here.
1730         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1731         Don't create relocation dependency if it is nonzero.
1732         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1733         stuff.  This can never happen here.
1734         * sysdeps/generic/ldsodefs.h: Change prototypes.
1735         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1736         _dl_lookup_up and _dl_lookup_versioned_symbol.
1737         (RESOLV): Likewise.
1738         * elf/dl-runtime.c (fixup): Likewise.
1739         (profile_fixup): Likewise.
1740         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1741         _dl_lookup_symbol.
1742         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1743         * elf/rtld.c (dl_main): Likewise.
1744         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1745         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1746         and pass down the caller map.
1747         (_dl_vsym): Likewise.
1748         * elf/reldep.c: New file.
1749         * elf/reldep2.c: New file.
1750         * elf/reldep3.c: New file.
1751         * elf/reldepmod1.c: New file.
1752         * elf/reldepmod2.c: New file.
1753         * elf/reldepmod3.c: New file.
1754         * elf/reldepmod4.c: New file.
1755         * elf/unload.c: New file.
1756         * elf/unloadmod.c: New file.
1757
1758         * elf/do-lookup.h: Remove unused undef_name parameter.
1759         * elf/dl-lookup.c: Adjust callers.
1760
1761 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1762
1763         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1764         irreversible in recursive call of conversion function to signal that
1765         no error handling is wanted.
1766         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1767         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1768         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1769         recursive error handling call, otherwise to &lirreversible.  Use it
1770         for calls to conversion functions.
1771         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1772         transliterating.
1773         (ucs4_internal_loop_unaligned): Likewise.
1774         (ucs4le_internal_loop): Likewise.
1775         (ucs4le_internal_loop_unaligned): Likewise.
1776
1777 2000-08-25  Greg McGary  <greg@mcgary.org>
1778
1779         * sysdeps/i386/memchr.S: Check high bound against chars
1780         actually scanned.
1781         * sysdeps/i386/memcmp.S: Likewise.
1782         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1783         account for pointers that lie one beyond end-of-buffer.
1784
1785 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1786
1787         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1788         * elf/nodelete.c (fini_ran): New global variable.
1789         (do_test): Before every dlclose call clear fini_ran and test
1790         afterwards that it is not set by the destructors.
1791         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1792         * elf/nodelmod2.c: Likewise.
1793         * elf/nodelmod4.c: Likewise.
1794
1795 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1796
1797         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1798         getrlimit to the list.
1799
1800 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1801
1802         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1803         long double format so use ldbl-96 instead of ldbl-128.
1804
1805 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1806
1807         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1808         even if bits 10 a 11 are non-zero.
1809         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1810
1811         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1812         included before building gnu/lib-names.h
1813         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1814
1815         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1816         marked DF_1_NODELETE.
1817
1818         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1819         since we call sigaction in the child.
1820
1821 2000-08-25  Andreas Jaeger  <aj@suse.de>
1822
1823         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1824         gconv-modules.
1825
1826 2000-08-25  Andreas Jaeger  <aj@suse.de>
1827
1828         * manual/arith.texi (Control Functions): Clarify possible
1829         arguments.  Closes PR libc/1856.
1830
1831 2000-08-24  H.J. Lu  <hjl@gnu.org>
1832
1833         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1834         * malloc/Makefile (tests): Likewise.
1835
1836 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1837
1838         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1839
1840 2000-08-24  Andreas Jaeger  <aj@suse.de>
1841
1842         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1843         only if LIBGD is available.
1844
1845 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1846
1847         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1848         problems with now restrict parameter types.
1849         (convaddr4to6): Likewise.
1850
1851 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1852
1853         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1854         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1855         * sysdeps/s390/fpu/fegetexcept.c: New file.
1856         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1857         FPC_VALID_MASK.
1858
1859 2000-08-24  Andreas Jaeger  <aj@suse.de>
1860
1861         * malloc/Makefile (extra-objs): Add memusagestat.o.
1862         (generated): Added memusage and memusagestat for make clean.
1863
1864         * libio/tst_putwc.c (do_test): Delete temporary file.
1865         Move inclusion of test-skeleton to front to have prototype for
1866         add_temp_file.
1867
1868         * posix/Makefile (generated): Add wordexp-tst.out.
1869
1870 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1871
1872         * resolv/res_hconf.c (free_mem): Remove not needed if.
1873
1874         * time/tzset.c (free_mem): New function.
1875         * string/strsignal.c (free_mem): New function.
1876         * inet/inet_ntoa.c (free_mem): New function.
1877         * sunrpc/clnt_perr.c (free_mem): New function.
1878
1879 2000-08-24  Andreas Jaeger  <aj@suse.de>
1880
1881         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1882         * sysdeps/unix/sysv/syscalls.list: Likewise.
1883
1884         * posix/unistd.h: Move internal prototypes from here ...
1885         * include/unistd.h: ... to here.
1886
1887         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1888
1889 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1890
1891         * grp/initgroups.c (initgroups): Deallocate groups array.
1892         Reported by jani.raiha@sonera.com [PR libc/1868].
1893
1894         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1895         * sysdeps/alpha/Dist: Likewise.
1896
1897 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1898
1899         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1900         destructor).  Reported by Solar Designer <solar@false.com>.
1901
1902         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1903         avoid adding double slashes.
1904
1905 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1906
1907         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1908         out of the __REDIRECT macro.
1909
1910 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1911
1912         * stdio-common/vfscanf.c: Add %F format support.
1913
1914         * locale/programs/ld-ctype.c (ctype_output): Make sure
1915         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1916         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1917         (ctype_read): Enable returning of wide character strings for reading
1918         transliteration information.
1919
1920 2000-08-23  Andreas Jaeger  <aj@suse.de>
1921
1922         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1923         Use static __inline instead of _EXTERN_INLINE.
1924
1925         * misc/sys/select.h: Move prototypes of __select from here ...
1926         * include/sys/select.h: ... to here.
1927
1928         * socket/sys/socket.h: Move prototypes of __send and __connect
1929         from here....
1930         * include/sys/socket.h: ... to here.
1931
1932         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1933         lr_error.
1934
1935 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1936
1937         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1938         __setrlimit as strong name. Takes only 2 arguments.
1939
1940         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1941         takes only 2 arguments.
1942
1943 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1944
1945         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1946
1947         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1948
1949 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1950
1951         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1952         default_missing character being specified, pick the first
1953         representable.
1954
1955 2000-08-23  Andreas Jaeger  <aj@suse.de>
1956
1957         * include/wchar.h: Add some pure attributes.
1958
1959         * time/time.h: Add const attribute for dysize.
1960
1961         * include/stdlib.h: Add malloc attribute to __posix memalign.
1962
1963         * stdlib/stdlib.h: Add some pure and malloc attributes.
1964         * wcsmbs/wchar.h: Likewise.
1965
1966         * dirent/dirent.h: Add some pure attributes.
1967         * include/dirent.h: Likewise.
1968
1969 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1970
1971         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1972         on 64bit arches.
1973
1974 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1975
1976         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1977         missing buffer size checks.
1978
1979 2000-08-23  Andreas Jaeger  <aj@suse.de>
1980
1981         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1982         strong name.
1983         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1984
1985         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1986         otherwise __LINUX_KERNEL_VERSION might not be defined.
1987         (MIN): Define if not already defined.
1988
1989 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1990
1991         * stdio-common/vfprintf.c: Handle %F format.
1992         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1993         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1994
1995         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1996
1997         * po/zh.po: New file.
1998
1999         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2000         enough room in target buffer.
2001         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2002         * iconvdata/bug-iconv1.c: New file.
2003         * iconvdata/Makefile (tests): Add bug-iconv1.
2004
2005         * locale/iso-4217.def: Update entry for Nicaragua.
2006
2007 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2008
2009         * hurd/hurdsig.c: Rearrange headers a bit.
2010         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2011         when cthreads is being used.
2012
2013 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2014
2015         * elf/Makefile (distribute): Add dl-osinfo.h.
2016         * sysdeps/generic/dl-osinfo.h: New file.
2017         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2018         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2019         if defined.
2020         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2021         only for !SHARED case.  Get the code from dl-osinfo.h.
2022
2023         * stdlib/random_r.c: Cleanups.
2024         * stdlib/tst-random.c: New file.
2025         * stdlib/Makefile (tests): Add tst-random.
2026         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2027
2028 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2029
2030         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2031         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2032         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2033         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2034
2035 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2036
2037         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2038         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2039         (__syscall__sysctl): Add.
2040
2041 2000-08-21  Andreas Jaeger  <aj@suse.de>
2042
2043         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2044         libc/1864).
2045         * stdlib/tst-strtoll.c: Likewise.
2046
2047 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2048
2049         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2050         correctly.
2051         (__initstate_r): Set errno on error.
2052         (__random_r): Likewise.
2053         (__setstate_r): Correct offset when computing
2054         new rptr and fptr.  Test for arg_state being NULL.
2055         Reported by Michael Fischer <fischer@cs.yale.edu>.
2056
2057         * posix/regex.h: Add macro definitions to allow compiling outside
2058         glibc.
2059
2060         * sysdeps/i370/Implies: Removed.
2061         * sysdeps/mvs/Implies: Removed.
2062
2063         * catgets/catgets.c (catopen): Filter out env_var values with / if
2064         necessary.
2065
2066         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2067         locale name after all getenvs.
2068
2069         * configure.in: Allow sed versions like 3.02.8.
2070         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2071
2072 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2073
2074         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2075
2076 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2077
2078         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2079         of gethostbyname2_r call.
2080
2081         * intl/locale.alias: Add aliases for Korean.
2082
2083 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2084
2085         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2086         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2087         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2088         * sysdeps/s390/fpu/fegetenv.c: New file.
2089         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2090         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2091         * sysdeps/s390/fpu/fenv_libc.h: New file.
2092         * sysdeps/s390/fpu/fesetenv.c: New file.
2093         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2094         * sysdeps/s390/fpu/feupdateenv.c: New file.
2095         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2096         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2097         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2098         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2099         * sysdeps/s390/fpu/ftestexcept.c: New file.
2100         * sysdeps/s390/fpu/libm-test-ulps: New file.
2101         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2102         * sysdeps/s390/initfini.c: New file.
2103         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2104         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2105         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2106         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2107         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2108         sys/procfs.h as proposed by Mark Kettenis.
2109         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2110
2111 2000-08-21  Andreas Jaeger  <aj@suse.de>
2112
2113         * include/poll.h: Include include/sys/poll.h to get __poll
2114         declaration.
2115
2116         * io/sys/poll.h: Move __poll declaration from here...
2117         * include/sys/poll.h: ...to here.
2118
2119         * include/sys/socket.h (__getpeername): Add declaration.
2120
2121         * include/wchar.h (__vswprintf): Add declaration.
2122
2123         * include/stdio.h (__flockfile): Add declaration.
2124         (__funlockfile): Likewise.
2125
2126 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2127
2128         * misc/sys/cdefs.h: Define __restrict_arr.
2129         * include/sys/time.h: Add restrict where required by AGd4.
2130         * inet/arpa/inet.h: Likewise.
2131         * io/sys/stat.h: Likewise.
2132         * io/sys/statvfs.h: Likewise.
2133         * misc/search.h: Likewise.
2134         * misc/sys/select.h: Likewise.
2135         * posix/glob.h: Likewise.
2136         * posix/regex.h: Likewise.
2137         * posix/spawn.h: Likewise.
2138         * posix/unistd.h: Likewise.
2139         * rt/aio.h: Likewise.
2140         * signal/signal.h: Likewise.
2141         * socket/sys/socket.h: Likewise.
2142         * stdlib/ucontext.h: Likewise.
2143         * streams/stropts.h: Likewise.
2144         * string/string.h: Likewise.
2145         * time/time.h: Likewise.
2146         * time/sys/time.h: Likewise.
2147
2148         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2149         and posix_spawnattr_setscheparam.
2150
2151         * libio/stdio.h: Make cuserid prototype again available for all
2152         XPG versions.
2153
2154         * argp/argp-help.c: Unify use of function aliases to make more compact
2155         PLT.
2156         * include/libintl.h: Likewise.
2157         * inet/rcmd.c: Likewise.
2158         * intl/dcigettext.c: Likewise.
2159         * libio/iofputws.c: Likewise.
2160         * libio/iofputws_u.c: Likewise.
2161         * libio/iogetwline.c: Likewise.
2162         * libio/swprintf.c: Likewise.
2163         * malloc/malloc.c: Likewise.
2164         * nss/digits_dots.c: Likewise.
2165         * posix/fnmatch.c: Likewise.
2166         * posix/spawn_faction_addclose.c: Likewise.
2167         * posix/spawn_faction_adddup2.c: Likewise.
2168         * posix/spawn_faction_addopen.c: Likewise.
2169         * posix/spawni.c: Likewise.
2170         * posix/wordexp.c: Likewise.
2171         * posix/spawni.c: Likewise.
2172         * resolv/res_hconf.c: Likewise.
2173         * resolv/res_init.c: Likewise.
2174         * shadow/lckpwdf.c: Likewise.
2175         * signal/sighold.c: Likewise.
2176         * signal/sigrelse.c: Likewise.
2177         * stdio-common/printf-parse.h: Likewise.
2178         * stdio-common/printf-prs.c: Likewise.
2179         * stdio-common/printf_fp.c: Likewise.
2180         * stdio-common/vfprintf.c: Likewise.
2181         * stdio-common/vfscanf.c: Likewise.
2182         * stdlib/rpmatch.c: Likewise.
2183         * sunrpc/create_xid.c: Likewise.
2184         * sunrpc/key_call.c: Likewise.
2185         * sysdeps/generic/setrlimit64.c: Likewise.
2186         * sysdeps/generic/utmp_file.c: Likewise.
2187         * sysdeps/generic/vlimit.c: Likewise.
2188         * sysdeps/posix/posix_fallocate.c: Likewise.
2189         * sysdeps/posix/posix_fallocate64.c: Likewise.
2190         * sysdeps/posix/sigpause.c: Likewise.
2191         * sysdeps/posix/sigset.c: Likewise.
2192         * sysdeps/unix/grantpt.c: Likewise.
2193         * sysdeps/unix/bsd/ualarm.c: Likewise.
2194         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2195         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2196         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2197         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2198         * time/strftime.c: Likewise.
2199         * wcsmbs/wcscoll.c: Likewise.
2200         * wcsmbs/wcsxfrm.c: Likewise.
2201
2202         * time/tst-getdate.c (main): Make error messages more human readable.
2203
2204         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2205         postinc/predec instruction.
2206         (_FPU_SETCW): Likewise.
2207         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2208
2209 2000-08-20  Andreas Jaeger  <aj@suse.de>
2210
2211         * time/tst-getdate.c (main): Increase error in case of wrong
2212         conversion.
2213         Fix typo in test case.
2214
2215 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2216
2217         * ctype/ctype.h (isblank): Make available if ISO C99.
2218         * wctype/wctype.h (iswblank): Make available if ISO C99.
2219         * math/math.h (signgam): Don't make available if ISO C99.
2220         * math/tgmath.h (tgamma): Renamed from gamma.
2221         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2222
2223         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2224         Pretty printing.
2225         * intl/plural.y (new_exp): Take number of optional parameters in
2226         second parameter.  Test for correct number of parameters and free
2227         correctly in case of failure.  Adjust all callers.
2228         (yylex): Allow ';' as terminator character.
2229
2230 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2231
2232         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2233         walt_digits.
2234
2235         * locale/findlocale.c (free_mem): Also free here->filename.
2236
2237         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2238
2239         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2240         first test.
2241         (feexcp_nomask_test): Correct printf args.
2242         (feexcp_mask_test): Likewise.
2243
2244 2000-08-19  Andreas Jaeger  <aj@suse.de>
2245
2246         * inet/tst-gethnm.c: Include string.h to provide prototype for
2247         strcmp.
2248
2249         * malloc/mtrace.pl (usage): Inform about --help.
2250
2251 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2252
2253         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2254         size HEAP_MAX_SIZE.
2255
2256 2000-08-19  Andreas Jaeger  <aj@suse.de>
2257
2258         * shlib-versions: Remove libnss_db, libdb and libdb1.
2259
2260 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2261
2262         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2263         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2264         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2265         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2266         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2267         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2268         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2269         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2270         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2271         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2272         getdents.
2273         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2274         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2275
2276 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2277
2278         * include/glob.h (__glob64): Add prototype.
2279         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2280         define glob and glob_in_dir.
2281         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2282         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2283         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2284         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2285         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2286         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2287         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2288         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2289
2290 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2291
2292         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2293
2294 2000-08-17  Andreas Jaeger  <aj@suse.de>
2295
2296         * math/test-fenv.c (fe_single_test): New function.
2297         (fe_env_tests): Use fe_single_test.
2298         (feenable_test): New tests for feenable/fedisable and
2299         fegetexcpetions.
2300         (feexcp_mask_test): New function.
2301         (feexcp_nomask_test): New function.
2302
2303 2000-08-19  Richard Henderson  <rth@cygnus.com>
2304
2305         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2306         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2307         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2308         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2309         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2310         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2311         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2312         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2313         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2314         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2315         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2316         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2317         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2318         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2319         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2320         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2321         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2322
2323 2000-08-19  Andreas Jaeger  <aj@suse.de>
2324
2325         * elf/constload1.c: Include <stdio.h> for puts prototype.
2326
2327 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2328
2329         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2330         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2331         a dynamically loaded object remove old l_initfini list.
2332         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2333         remove some dynamically allocated memory blocks in the dynamic
2334         loading data structures.
2335         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2336         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2337         Instead call _dl_check_map_versions only for the dependencies.
2338         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2339         information of initial objects as not free-able.
2340         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2341         element.
2342
2343         * elf/filter.c: Call mtrace.
2344         * elf/restest1.c: Likewise.  Close the objects.
2345         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2346         debug information.
2347
2348         * elf/constload1.c: Add comment explaining not freed memory.
2349
2350 2000-08-18  Andreas Jaeger  <aj@suse.de>
2351
2352         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2353         alignment for structs stat and stat64.
2354         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2355
2356 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2357
2358         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2359         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2360
2361         * nss/Versions: Remove libnss_db information.
2362
2363 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2364
2365         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2366         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2367         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2368         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2369
2370         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2371         to match Solaris.
2372
2373 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2374
2375         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2376         (_FPU_SETCW): Likewise.
2377         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2378
2379         * stdio-common/printf_fp.c: Fix chars_needed computation.
2380         Patch by Greg McGary <greg@mcgary.org>.
2381
2382 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2383
2384         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2385         _dl_loaded are NULL.
2386
2387 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2388
2389         * manual/arith.texi (feholdexcept): Returns 0 on success.
2390
2391 2000-08-17  Andreas Jaeger  <aj@suse.de>
2392
2393         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2394         (ifr_newname): New.
2395         Reported by Andi Kleen <ak@suse.de>.
2396
2397 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2398
2399         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2400         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2401         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2402
2403 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2404
2405         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2406         of buf->st_ino and kbuf->st_ino, not __st_ino.
2407         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2408         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2409         directive so that only linux/getdents.c is used, not some
2410         architecture specific one.
2411
2412 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2413
2414         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2415         enabled, not disabled exceptions.
2416         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2417         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2418
2419 2000-08-17  Greg McGary  <greg@mcgary.org>
2420
2421         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2422         from test program name when constructing suffix for $(LDLIBS-*).
2423         (bounded-thread-library): New variable.
2424         * crypt/Makefile
2425         [build-shared, build-static] (libcrypt-dep): Remove variable.
2426         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2427         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2428         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2429         (librt-tests): Add variable.  (tests): Use it.
2430         [build-shared, build-static]
2431         ($(addprefix $(objpfx),$(tests)),
2432         $(addprefix $(objpfx),$(librt-tests))):
2433         Consolidate individual dependencies.
2434         [build-bounded]
2435         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2436         Add dependencies.
2437         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2438         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2439         * misc/Makefile
2440         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2441         * rt/Makefile
2442         [build-shared, build-static]
2443         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2444         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2445
2446 2000-08-17  Greg McGary  <greg@mcgary.org>
2447
2448         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2449         * sysdeps/unix/make-syscalls.sh: Likewise.
2450         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2451         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2452         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2453         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2454         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2455
2456 2000-08-17  Greg McGary  <greg@mcgary.org>
2457
2458         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2459         Wrap extern symbols in BP_SYM ().
2460         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2461         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2462         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2463         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2464         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2465         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2466         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2467         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2468         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2469         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2470
2471 2000-08-16  Andreas Schwab  <schwab@suse.de>
2472
2473         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2474         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2475         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2476
2477 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2478
2479         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2480         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2481         * elf/dl-support.c: Define _nl_nloaded.
2482         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2483         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2484         object to global list.
2485         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2486         from _dl_loaded list.
2487         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2488         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2489         number here.
2490
2491         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2492         unmask, exceptions.
2493         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2494         exceptions.
2495         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2496
2497 2000-08-16  Andreas Jaeger  <aj@suse.de>
2498
2499         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2500
2501 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2502
2503         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2504
2505 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2506
2507         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2508         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2509         (sysdep_routines): Add oldgetrlimit64.
2510         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2511         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2512
2513         * include/link.h: Undo last patches.  Hurd now has stat64.
2514         * elf/Makefile: Likewise.
2515         * elf/dl-load.c: Likewise.
2516         * elf/dl-misc.c: Likewise.
2517         * elf/dl-profile.c: Likewise.
2518         * sysdeps/generic/sysd-link.h: Removed.
2519         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2520
2521         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2522         thread event callback function.
2523         (__aio_notify_only): Use function above.
2524         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2525
2526 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2527
2528         * sysdeps/mach/hurd/lseek64.c: New file.
2529
2530 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2531
2532         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2533         Remove typedefs.
2534         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2535         typedefs.
2536         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2537         typedefs.
2538         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2539
2540 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2541
2542         * sysdeps/mach/hurd/xstatconv.c: New file.
2543         * sysdeps/mach/hurd/fxstat64.c: New file.
2544         * sysdeps/mach/hurd/lxstat64.c: New file.
2545         * sysdeps/mach/hurd/xstat64.c: New file.
2546         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2547
2548 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2549
2550         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2551         Initialize, needed for change in common symbol handling in newer
2552         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2553
2554 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2555
2556         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2557         * elf/constload2.c: Add destructor to unload constload3.
2558
2559         * include/link.h: Include sysd-link.h.
2560         * sysdeps/generic/sysd-link.h: New file.
2561         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2562         * elf/Makefile (distribute): Add sysd-link.h.
2563         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2564         types and functions directly.
2565         * elf/dl-misc.c: Likewise.
2566         * elf/dl-profile.c: Likewise.
2567
2568         * elf/loadfail.c (main): Close all successfully loaded objects.
2569
2570         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2571         free wd.
2572         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2573         there is already one.
2574
2575         * elf/dl-close.c: Pretty print.
2576
2577 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2578
2579         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2580         global (with file scope).  Add __libc_subfreeres function to free the
2581         string.
2582         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2583         in ttyname function.
2584
2585         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2586
2587         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2588
2589         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2590         mapping them to /x5c and /x7e respectively.
2591
2592         * locale/programs/ld-ctype.c: Add support for more definitions after
2593         copy statement.
2594
2595 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2596
2597         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2598         * sysdeps/unix/sysv/linux/kernel-features.h
2599         (__ASSUME_GETDENTS64_SYSCALL): Define.
2600         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2601         syscall if available to get d_type fields.
2602         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2603         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2604         __lxstat64): Export at GLIBC_2.2.
2605         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2606         Likewise.
2607         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2608         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2609         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2610         getdirentries64, versionsort64): Remove.
2611         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2612         getdirentries64, versionsort64): Remove.
2613
2614 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2615
2616         * posix/Makefile: Remove rules to generate glob package.
2617
2618         * posix/Makefile (tests): Add tst-regexloc.
2619         (tst-regexloc-ENV): Add LOCPATH.
2620         * posix/tst-regexloc.c: New file.
2621
2622 2000-08-12  Andreas Jaeger  <aj@suse.de>
2623
2624         * include/features.h (__STDC_ISO_10646__): Define.
2625         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2626
2627 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2628
2629         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2630
2631         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2632         for revision 6 and up).
2633
2634         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2635         including <time.h>.
2636         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2637         to get definitions of just these types.
2638
2639         * signal/signal.h: Define thread signal handling functions also for
2640         POSIX95.
2641
2642         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2643         POSIX95.
2644         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2645         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2646         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2647         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2648
2649         * sysvipc/sys/shm.h: Define pid_t for XPG.
2650
2651         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2652         they are not anymore required here.
2653
2654         * wcsmbs/wchar.h: Make the various wide char string and stream
2655         functions available for the respective XPG versions.
2656
2657         * nss/Makefile: Remove rules to build and distribute nss_db.
2658
2659         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2660         * sysdeps/generic/scandir64.c: Likewise.
2661         * sysdeps/generic/versionsort64.c: Likewise.
2662
2663 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2664             Benjamin Koznik  <bkoz@redhat.com>
2665
2666         * libio/fileops.c: Merge with libstdc++-v3.
2667         * libio/genops.c: Likewise.
2668         * libio/iofclose.c: Likewise.
2669         * libio/iofopen.c: Likewise.
2670         * libio/iofwide.c: Likewise.
2671         * libio/libio.h: Likewise.
2672         * libio/libioP.h: Likewise.
2673         * libio/stdfiles.c: Likewise.
2674         * libio/stdio.c: Likewise.
2675         * libio/wfileops.c: Likewise.
2676         * libio/wgenops.c: Likewise.
2677
2678         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2679
2680 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2681
2682         * locale/programs/localedef.c: Implement --prefix option to allow
2683         writing in standard places of alternative install directories.
2684
2685         * posix/regex.c (compile_range): Implement collation sequence
2686         handling for glibc.  Use simple character ordering otherwise and
2687         not strcoll.
2688
2689 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2690
2691         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2692
2693 2000-08-12  Andreas Jaeger  <aj@suse.de>
2694
2695         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2696         __USE_FILE_OFFSET64 correctly for locking.
2697         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2698
2699 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2700
2701         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2702         Define for 2.4.1 on sparc as well.
2703         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2704         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2705         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2706         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2707
2708 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2709
2710         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2711         defined.
2712
2713 2000-08-12  Andreas Jaeger  <aj@suse.de>
2714
2715         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2716         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2717
2718         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2719         mips2 for assembler.
2720
2721         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2722         if fnctl64 is not available for F_*LK*64.
2723
2724         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2725
2726 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2727
2728         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2729         Define for 2.4.1 on x86.
2730         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2731         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2732         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2733
2734         * dirent/dirent.h: Define DT_WHT.
2735
2736         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2737         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2738         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2739         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2740         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2741         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2742
2743 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2744
2745         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2746         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2747         * inet/Makefile (tests): Add tst-gethnm.
2748         * inet/tst-gethnm.c: New file.
2749
2750         * rt/aio_cancel.c: If canceling a specific request which is running
2751         *really* do nothing.
2752         * rt/aio_misc.h: Add `done' to states of a request.
2753         * rt/aio_misc.c: Add several tests for the correct state.
2754         Simplify request table memory handling.
2755
2756 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2757
2758         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2759         * dirent/scandir64.c: Move...
2760         * sysdeps/generic/scandir64.c: ...here.
2761         * dirent/alphasort64.c: Move...
2762         * sysdeps/generic/alphasort64.c: ...here.
2763         * dirent/versionsort64.c: Move...
2764         * sysdeps/generic/versionsort64.c: ...here.
2765         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2766         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2767         Export symbols at GLIBC_2.2.
2768         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2769         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2770         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2771         __versionsort64): Add prototypes.
2772         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2773         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2774         unused prototype.
2775         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2776         and GLIBC_2.2.
2777         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2778         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2779         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2780         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2781         __u_quad_t.
2782         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2783         Adjust for kernel-2.4.0-test6 layout.
2784         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2785         GLIBC_2.1 and GLIBC_2.2.
2786         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2787         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2788         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2789         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2790         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2791         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2792         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2793         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2794         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2795         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2796         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2797         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2798         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2799         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2800         __u_quad_t.
2801         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2802         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2803         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2804         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2805         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2806         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2807         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2808         __u_quad_t.
2809         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2810         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2811         Define.
2812         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2813         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2814         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2815         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2816         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2817         Define.
2818         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2819         alpha/readdir.c.
2820         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2821         alpha/readdir_r.c
2822         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2823         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2824         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2825         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2826         st_ino from __st_ino.
2827         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2828         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2829         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2830         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2831         set __st_ino in addition to st_ino.
2832         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2833         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2834         __old_getdents64 as well.
2835         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2836         getdirentries64 and old_getdirentries64 as well.
2837         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2838         __GETDENTS): Define.
2839         (GETDENTS64): Remove.
2840         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2841         Define.
2842         (GETDENTS64): Remove.
2843         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2844         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2845         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2846         as well.
2847         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2848         __old_readdir64_r as well.
2849         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2850         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2851
2852 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2853
2854         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2855         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2856         define of the kernel.
2857         Add missing __SEG_PSTKOVF definition.
2858         Adjust the padding of struct siginfo and struct sigevent to
2859         match the fact that sigval_t is 64 bit.
2860
2861 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2862
2863         * timezone/zic.c: Update from tzcode2000f.
2864         * timezone/australasia: Update from tzdata2000f.
2865         * timezone/europe: Likewise.
2866         * timezone/southamerica: Likewise.
2867         * timezone/yearistype: Likewise.
2868
2869 2000-08-10  Andreas Jaeger  <aj@suse.de>
2870
2871         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2872         stat with current MIPS kernel.
2873
2874 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2875
2876         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2877         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2878         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2879         Remove the junk that's only relevant in the Linux kernel itself.
2880         Add a warning saying that this file is now obsolete, and include
2881         <sys/procfs.h>.
2882         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2883         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2884         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2885         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2886         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2887         and add the notice that the file is primarily there for GDB.
2888         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2889
2890 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2891
2892         * time/tzfile.c (__tzfile_compute): __tzstring zones
2893         from zone_names.
2894
2895 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2896
2897         * resolv/resolv.h (__res_state): Surround prototype with
2898         __BEGIN_DECLS/__END_DECLS.
2899         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2900
2901 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2902
2903         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2904         Make independant of asm/resource.h from the Linux kernel.
2905
2906 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2907
2908         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2909
2910 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2911
2912         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2913         * locale/Makefile (locale-CPPFLAGS): Likewise.
2914
2915 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2916
2917         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2918         for AMD processors.
2919
2920 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2921
2922         * misc/Versions (mincore): Export at GLIBC_2.2.
2923
2924 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2925
2926         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2927
2928 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2929
2930         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2931         socketpair.  Made socketpair a weak alias.
2932         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2933         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2934         conforming, but fall back on the old protocol if the socket server
2935         doesn't support it.
2936         * include/sys/socket.h: Add prototype for __socketpair.
2937
2938 2000-08-09  Andreas Schwab  <schwab@suse.de>
2939
2940         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2941         long long modifier is seen.
2942
2943         * elf/nodelete.c (do_test): Remove reference to undefined member
2944         sa_restorer.
2945         * rt/tst-aio4.c (do_test): Likewise.
2946
2947         * configure.in: Add `-lm' when checking for libgd.
2948         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2949         linking.
2950
2951 2000-08-09  Andreas Jaeger  <aj@suse.de>
2952
2953         * configure.in: Change required make versions.
2954
2955         * manual/install.texi (Tools for Compilation): Document required
2956         make version.
2957         (Supported Configurations): Update list of supported
2958         configurations.
2959
2960 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2961
2962         * locale/linereader.c (get_string): Don't print an error is a string
2963         contains an unknown character.
2964
2965 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2966
2967         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2968         (new_symbol): Take new parameters with name of the symbol.
2969         Adjust callers.
2970         (handle_ellipsis): Don't only allow character symbols.
2971         (collate_read): Allow string of collating elements contain invalid
2972         characters; ignore entry in this case.
2973         Handle ellipsis of collating symbols before first order_start.
2974         Allow ellipsis in state 0.
2975
2976 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2977
2978         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2979         error message.
2980         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2981
2982 2000-08-04  Greg McGary  <greg@mcgary.org>
2983
2984         * posix/regex.c (SET_HIGH_BOUND): New macro.
2985         (MOVE_BUFFER_POINTER): Use it.
2986         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2987         (EXTEND_BUFFER): Use it.
2988
2989 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2990
2991         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2992         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2993         _wide_data but from _IO_FILE directly.
2994         * libio/iofclose.c: Likewise.
2995         * libio/wfileops.c: Likewise.
2996
2997         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2998         * libio/libioP.h: Change prototypes.
2999
3000 2000-08-03  Greg McGary  <greg@mcgary.org>
3001
3002         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3003         frame pointer early so that we save caller's frame pointer.
3004         * sysdeps/i386/elf/setjmp.S: Likewise.
3005
3006         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3007         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3008
3009         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3010         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3011         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3012
3013 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3014
3015         * iconvdata/big5.c: Updated.
3016         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3017
3018 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3019
3020         * Makeconfig (all-subdirs): Add conform.
3021         * conform/Makefile: Include ../Rules.
3022
3023         * Makefile (README): Add rules to generate here as well.
3024
3025 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3026
3027         * version.h (VERSION): Bump to 2.1.92.
3028
3029         * sysdeps/ia64/Dist: Add _mcount.S.
3030
3031         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3032
3033         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3034
3035         * elf/Makefile (distribute): Add missing modules.
3036
3037         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3038
3039         * posix/regex.c (compile_range): Translate range start and end
3040         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3041
3042         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3043         asm/resource.h.
3044
3045         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3046
3047 2000-08-02  Andreas Jaeger  <aj@suse.de>
3048
3049         * elf/elf.h (EM_S390): Added.
3050         (R_390_*): New relocs for S390.
3051
3052         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3053         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3054         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3055         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3056         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3057         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3058         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3059         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3060         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3061         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3062         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3063         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3064         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3065         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3066         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3067         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3068         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3069         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3070         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3071         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3072         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3073         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3074         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3075         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3076         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3077         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3078         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3079         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3080         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3081         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3082         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3083         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3084         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3085         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3086         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3087         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3088         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3089         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3090         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3091         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3092         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3093         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3094         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3095         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3096         * sysdeps/s390/sysdep.h: New file.
3097         * sysdeps/s390/sys/ucontext.h: New file.
3098         * sysdeps/s390/sub_n.S: New file.
3099         * sysdeps/s390/strncpy.S: New file.
3100         * sysdeps/s390/strcpy.S: New file.
3101         * sysdeps/s390/stackinfo.h: New file.
3102         * sysdeps/s390/setjmp.S: New file.
3103         * sysdeps/s390/s390-mcount.S: New file.
3104         * sysdeps/s390/mul_1.S: New file.
3105         * sysdeps/s390/memusage.h: New file.
3106         * sysdeps/s390/memset.S: New file.
3107         * sysdeps/s390/memcpy.S: New file.
3108         * sysdeps/s390/memchr.S: New file.
3109         * sysdeps/s390/machine-gmon.h: New file.
3110         * sysdeps/s390/ldbl2mpn.c: New file.
3111         * sysdeps/s390/gmp-mparam.h: New file.
3112         * sysdeps/s390/fpu/fpu_control.h: New file.
3113         * sysdeps/s390/fpu/fesetround.c: New file.
3114         * sysdeps/s390/fpu/fegetround.c: New file.
3115         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3116         * sysdeps/s390/fpu/bits/fenv.h: New file.
3117         * sysdeps/s390/ffs.c: New file.
3118         * sysdeps/s390/elf/start.S: New file.
3119         * sysdeps/s390/elf/setjmp.S: New file.
3120         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3121         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3122         * sysdeps/s390/dl-machine.h: New file.
3123         * sysdeps/s390/bzero.S: New file.
3124         * sysdeps/s390/bsd-setjmp.S: New file.
3125         * sysdeps/s390/bsd-_setjmp.S: New file.
3126         * sysdeps/s390/bits/string.h: New file.
3127         * sysdeps/s390/bits/setjmp.h: New file.
3128         * sysdeps/s390/bits/huge_val.h: New file.
3129         * sysdeps/s390/bits/endian.h: New file.
3130         * sysdeps/s390/bits/byteswap.h: New file.
3131         * sysdeps/s390/bcopy.S: New file.
3132         * sysdeps/s390/backtrace.c: New file.
3133         * sysdeps/s390/atomicity.h: New file.
3134         * sysdeps/s390/asm-syntax.h: New file.
3135         * sysdeps/s390/addmul_1.S: New file.
3136         * sysdeps/s390/add_n.S: New file.
3137         * sysdeps/s390/abort-instr.h: New file.
3138         * sysdeps/s390/__longjmp.c: New file.
3139         * sysdeps/s390/Makefile: New file.
3140         * sysdeps/s390/Implies: New file.
3141         * sysdeps/s390/Dist: New file.
3142         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3143
3144 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3145
3146         Remove incompatible IPv6 extension of RPC.
3147         * sunrpc/Makefile: Undo changes.
3148         * sunrpc/rpc_main.c: Likewise.
3149         * sunrpc/rpc/clnt.h: Likewise.
3150         * sunrpc/rpc/svc.h: Likewise.
3151         * sunrpc/bindrsvprt6.c: Removed.
3152         * sunrpc/clnt_tcp6.c: Removed.
3153         * sunrpc/clnt_udp6.c: Removed.
3154         * sunrpc/svc_tcp6.c: Removed.
3155         * sunrpc/svc_udp6.c: Removed.
3156
3157         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3158         dgettext, and dcgettetxt.
3159
3160         * intl/locale.alias: Update japanese aliases.
3161
3162         * sysdeps/ia64/bits/byteswap.h: New file.
3163         Patch by Dan Pop <Dan.Pop@cern.ch>.
3164
3165         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3166         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3167
3168 2000-07-13  H.J. Lu  <hjl@gnu.org>
3169
3170         * posix/regex.c (re_max_failures): Set to 4000.
3171
3172 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3173
3174         * gnulib/Makefile (tests): Add tst-gcc.
3175         * gnulib/tst-gcc.c: New file.
3176
3177         * assert/Makefile (routines): Add __assert.
3178         * assert/Versions: Export __assert for glibc 2.2.
3179         * assert/__assert.c: New file.
3180         * assert/assert.h: Declare __assert.
3181
3182 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3183
3184         * locale/localeinfo.h (_ISCTYPE): New macro.
3185         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3186         LC_CTYPE locale format.
3187         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3188         (ctype_output): Output class_b[nr] right before class_3level[nr].
3189         (allocate_arrays): Fill class_b, similarly to class_3level.
3190
3191 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3192             Joseph S. Myers  <jsm28@cam.ac.uk>
3193
3194         * math/tgmath.h: Make standard compliant.  Don't ask how.
3195
3196 2000-07-04  H.J. Lu  <hjl@gnu.org>
3197
3198         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3199         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3200         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3201
3202 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3203
3204         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3205         (__USE_LARGEFILE): Add an explanation.
3206         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3207         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3208
3209 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3210
3211         * libio/Makefile: Enable exception handling for genops, wgenops,
3212         fileops, and wfileops.
3213
3214 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3215
3216         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3217         acount that elf/rtld's main program might remove some varibales
3218         from the environment if we're trying to be secure.  Move the Hurd
3219         startup data if necessary, or, if we there is no startup data,
3220         make sure the magical convention that ARGV[0] is stored just after
3221         the environment list.
3222
3223 2000-08-01  Philip Blundell  <philb@gnu.org>
3224
3225         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3226         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3227         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3228         oldsetrlimit for GLIBC_2.0.
3229
3230 2000-08-01  Andreas Jaeger  <aj@suse.de>
3231
3232         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3233         (LINE_PARSER): Allow any number of spaces between ip address and
3234         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3235
3236         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3237
3238         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3239         constants in.
3240
3241         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3242         _nss_nisplus_getipnodebyname_r.
3243
3244         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3245         now, getipnodebyname is deprecated.
3246         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3247         Likewise.
3248
3249         * inet/Makefile (routines): Don't build getipnodebyaddr and
3250         friends.
3251
3252         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3253
3254         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3255
3256         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3257
3258         * wctype/Makefile (distribute): Add wchar-lookup.h.
3259
3260         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3261
3262         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3263
3264 2000-08-01  Andreas Schwab  <schwab@suse.de>
3265
3266         * Make-dist (dist): Resolve `..' in file names.
3267
3268 2000-08-01  Andreas Jaeger  <aj@suse.de>
3269
3270         * stdio-common/Makefile (distribute): Remove removed files, add
3271         new files.
3272
3273         * Makefile (distribute): Remove include/db_185.h and db.h.
3274
3275         * include/db_185.h: Remove, it's not needed anymore.
3276         * include/db.h: Likewise.
3277
3278 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3279
3280         * inet/Makefile (tests): Remove tst-ipnode.
3281         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3282         now.
3283
3284 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3285
3286         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3287         endp statements have already been added.
3288
3289 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3290
3291         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3292         <sysdeps/ia64/sysdep.h>.
3293
3294         * sysdeps/ia64/_mcount.S: New file.
3295
3296         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3297         __gmon_start__.  Fix up extraneous whitespace.
3298
3299 2000-01-12  H.J. Lu  <hjl@gnu.org>
3300
3301         * sysdeps/ia64/elf/initfini.c: New file.
3302
3303 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3304
3305         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3306         dependency between branch and ar.pfs write.
3307
3308 2000-07-31  H.J. Lu  <hjl@gnu.org>
3309
3310         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3311         handle the wchar_t array.
3312
3313 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3314
3315         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3316         10646 which are not yet assigned.
3317         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3318
3319 2000-07-31  Andreas Jaeger  <aj@suse.de>
3320
3321         * inet/Versions: Remove getipnodebyaddr and friends from
3322         GLIBC_2.2.
3323
3324         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3325
3326 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3327
3328         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3329         ch >= 0x81 && ch2 < 0x40 as invalid.
3330
3331 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3332
3333         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3334         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3335
3336 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3337
3338         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3339         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3340
3341 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3342
3343         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3344         0xb8.
3345         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3346
3347 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3348
3349         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3350
3351 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3352
3353         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3354         (from_ucs4): Change values of U+00A4 and U+00ED.
3355         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3356
3357 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3358
3359         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3360         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3361
3362 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3363
3364         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3365         * iconvdata/isiri-3342.h: New file.
3366         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3367         treat 0x80 as a gap.
3368
3369 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3370
3371         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3372         (utf8_encode): Use simple shifts instead.  Fix return value.
3373
3374 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3375
3376         * timezone/private.h: Update from tzcode2000e.
3377         * timezone/asia: Update from tzdata2000e.
3378         * timezone/australasia: Likewise.
3379         * timezone/europe: Likewise.
3380         * timezone/northamerica: Likewise.
3381         * timezone/zone-tab: Likewise.
3382
3383 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3384
3385         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3386         the order of struct sigaltstack members is different.
3387
3388 2000-07-26  Philip Blundell  <philb@gnu.org>
3389
3390         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3391
3392 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3393
3394         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3395         * locale/programs/ld-ctype.c: Adjust for this.
3396
3397         * locale/programs/ld-collate.c: Add more alignment checks.
3398         * locale/string/strcoll.c: Likewise.
3399
3400 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3401
3402         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3403         outside USE_IN_LIBIO block.
3404
3405 2000-07-26  Philip Blundell  <philb@gnu.org>
3406
3407         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3408         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3409
3410 2000-07-28  Philip Blundell  <philb@gnu.org>
3411
3412         * math/test-fpucw.c: Ignore reserved bits in control word.
3413
3414 2000-07-28  Philip Blundell  <philb@gnu.org>
3415
3416         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3417         (ret): Redefine to PSEUDO_RET.
3418         (PSEUDO): Remove jump to syscall_error.
3419
3420 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3421
3422         * resolv/README: Add some information about using the resolver in
3423         multi-threaded code and with C++.  Spelling fixes.
3424
3425 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3426
3427         * resolv/resolv.h (struct __sockaddr_in): Remove.
3428         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3429
3430 2000-07-29  Greg McGary  <greg@mcgary.org>
3431
3432         * Rules (test-bp-inputs, make-test-out): New variables.
3433         ($(objpfx)%-bp.out): New rule.
3434         ($(objpfx)%.out): Rewrite in terms of new variables.
3435
3436         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3437         internal function that uses vtable.
3438         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3439         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3440
3441         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3442         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3443         (chunk_align): Likewise.
3444
3445         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3446         in a way that conforms to decl, and avoids spurious bounds violation.
3447
3448         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3449         * sysdeps/generic/frame.h: Likewise.
3450         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3451         around return value.
3452         (__backtrace): Qualify frame-pointer chain and return address
3453         pointers as __unbounded.  Wrap bounds around variable `current'.
3454         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3455         around return value.
3456         (catch_segfault): Qualify frame-pointer chain and return address
3457         pointers as __unbounded.  Wrap bounds around variable `current'.
3458         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3459         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3460         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3461         __unbounded.
3462         (__backtrace): Qualify frame-pointer chain and return address
3463         pointers as __unbounded.  Wrap bounds around variable `current'.
3464
3465         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3466         * sysdeps/i386/mul_1.S: Likewise.
3467         * sysdeps/i386/submul_1.S: Likewise.
3468         * sysdeps/i386/i586/addmul_1.S: Likewise.
3469         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3470         * sysdeps/i386/i586/submul_1.S: Likewise.
3471
3472 2000-07-27  Andreas Jaeger  <aj@suse.de>
3473
3474         * libio/Depend: New file, libio needs localedata for tests.
3475         * posix/Depend: Likewise.
3476
3477 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3478
3479         * stdio-common/_i18n_itoa.c: Removed.
3480         * stdio-common/_i18n_itoa.h: Removed.
3481         * stdio-common/_i18n_itowa.c: Removed.
3482         * stdio-common/_i18n_itowa.h: Removed.
3483         * stdio-common/_i18n_number.h: New file.
3484         * stdio-common/Depend: New file.
3485         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3486         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3487         printing.  Change printing of numbers with locale specific digits to
3488         use new code in _i18n_number.h.
3489         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3490         _i18n_itowa.
3491
3492         * stdio-common/bug13.c: Improve messages.
3493
3494         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3495         (set_class_defaults): Always search also for Uxxxx names.
3496         Detect insufficient number of outdigits.
3497
3498         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3499
3500 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3501
3502         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3503         _NL_CTYPE_MAP_NAMES.
3504         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3505         * wctype/wcfuncs.c (towlower, towupper): Use them.
3506         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3507         * wctype/wctrans.c (wctrans): Likewise.
3508         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3509
3510 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3511
3512         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3513         Use the optimized version of this function outside glibc as well.
3514
3515 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3516
3517         * locale/indigits.h (indigit_value): Correct.
3518         * locale/indigitswc.h (indigitwc_value): Correct.
3519         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3520         conversion, add GROUP checking for it, fix GROUP number
3521         conversion with strlen(thousands) > 1.
3522         Honour width correctly in the presence of floating
3523         decimal points and thousands separators.
3524         * stdio-common/tst-sscanf.c: New test.
3525         * stdio-common/Makefile: Add it to tests.
3526         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3527         thousands separators and group argument is non-zero.
3528
3529 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3530
3531         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3532         starts at GLIBC_2.2.
3533
3534 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3535
3536         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3537         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3538         _test_and_set.
3539         (headers): Add sys/tas.h.
3540         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3541         GLIBC_2.2 from libc.
3542         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3543         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3544         _test_and_set.
3545
3546 2000-07-28  Andreas Jaeger  <aj@suse.de>
3547
3548         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3549
3550         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3551         ($(objpfx)tst-dladdr.out): new.
3552         (tests): Add tst-dladdr.
3553         ($(objpfx)glrefmain): Use libdl.
3554
3555         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3556         <vs@caldera.de>.
3557
3558 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3559
3560         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3561         ftruncate(64) calls.
3562
3563 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3564
3565         * intl/tst-translit.c: Include string.h to get prototype for
3566         strcmp().
3567
3568 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3569
3570         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3571         name and add weak alias for __fork.
3572
3573         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3574         & pwrite to use __libc_<name> as strong names instead of
3575         __syscall_<name>.
3576
3577         * include/sched.h: Add clone2 prototype.
3578
3579 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3580
3581         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3582         procedure name twice.
3583
3584 2000-07-27  Philip Blundell  <philb@gnu.org>
3585
3586         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3587
3588 2000-07-27  Andreas Jaeger  <aj@suse.de>
3589
3590         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3591         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3592         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3593         Reported by Andi Kleen <ak@suse.de>.
3594
3595         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3596         (do_wait): Test requests with aio_return64.
3597         (do_test): Change callers of do_wait.
3598
3599 2000-07-26  Andreas Jaeger  <aj@suse.de>
3600
3601         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3602         (do_wait): Test requests with aio_return.
3603         (do_test): Change callers of do_wait.
3604
3605 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3606
3607         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3608         from request list.  Don't do the list handling here, call
3609         __aio_remove_request.
3610         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3611         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3612         request might already be processed.  Don't do the list handling
3613         here, call __aio_remove_request.
3614
3615         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3616         LIO_DSYNC.
3617
3618         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3619         are missing.
3620
3621 2000-07-27  Greg McGary  <greg@mcgary.org>
3622
3623         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3624         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3625         in union init.  Pass zero for ignored semnum arg to semctl.
3626         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3627
3628 2000-07-26  Greg McGary  <greg@mcgary.org>
3629
3630         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3631         data structure pointers as __unbounded.
3632         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3633         * sysdeps/generic/bp-semctl.h: New file.
3634         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3635         pointers as __unbounded.  Check bounds of syscall args.
3636         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3637         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3638         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3639         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3640         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3641         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3642         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3643         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3644         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3645         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3646         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3647         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3648         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3649         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3650         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3651         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3652
3653 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3654
3655         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3656         by default.
3657         * locale/C-ctype.c: Likewise.
3658         * wcsmbs/wcsmbsload.c: Likewise.
3659
3660 2000-07-26  Greg McGary  <greg@mcgary.org>
3661
3662         * Makeconfig (+link-bounded, link-libc-bounded,
3663         link-extra-libs-bounded): New variables.
3664         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3665         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3666         * Rules (tests-bp.out): New variable.
3667         (tests): Conditionally add BP tests.
3668         (binaries-bounded): Add variable and associated rule.
3669         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3670         Move conditional stuff after place where condition is defined.
3671
3672         * malloc/malloc.c (bp-checks.h): Add #include.
3673         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3674         (_bin_at): Add unbounded version of bin_at.
3675         (IAV, chunk_alloc): Use unbounded _bin_at.
3676         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3677         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3678         Wrap BOUNDED_N around return value.
3679         (chunk_realloc): Adjust oldsize once.
3680
3681         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3682         (__ubp_memchr): Add correct decl.
3683         (_CHECK_STRING): Use __ubp_memchr.
3684         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3685         New alias for unbounded-pointer __memchr.
3686         * sysdeps/i386/memchr.S: Likewise.
3687         * sysdeps/ia64/memchr.S: Likewise.
3688         * sysdeps/m68k/memchr.S: Likewise.
3689         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3690         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3691         * sysdeps/vax/memchr.s: Likewise.
3692
3693         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3694         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3695         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3696         * sysdeps/i386/i686/strtok.S: Likewise.
3697         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3698         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3699
3700         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3701         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3702
3703         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3704         bounds of copy_result to mount_proc.
3705
3706 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3707
3708         * wctype/wctype.h (__wctrans_l): New declaration.
3709         * wctype/wctrans_l.c: New file.
3710         * wctype/Makefile (routines): Add wctrans_l.
3711
3712 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3713
3714         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3715         Patch by MacGyver <macgyver@tos.net>.
3716
3717 2000-07-26  Andreas Jaeger  <aj@suse.de>
3718
3719         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3720         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3721         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3722
3723         * rt/tst-aio.c (test_file): Fix typo.
3724         * rt/tst-aio64.c (test_file): Likewise.
3725
3726         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3727         * rt/Makefile: Add rules to build and run tst-aio3.
3728
3729         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3730         it's not needed and confuses only.
3731
3732 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3733
3734         * resolv/res_init.c: Add support for nameserver communication with
3735         IPv6.
3736         * resolv/res_send.c: Likewise.
3737         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3738         in nsaddrs field.
3739         Patch by <venaas@nvg.ntnu.no>.
3740
3741 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3742
3743         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3744         (wcwidth_table_get): New function.
3745         (wcwidth_table_add): Call it.
3746         (wctrans_table_get): New function.
3747         (wctrans_table_add): Call it.
3748
3749 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3750
3751         * rt/lio_listio.c (lio_listio): Always disable individual
3752         notification.
3753         * rt/Makefile: Add rules to build and run tst-aio2.
3754         * rt/tst-aio2.c: New file.
3755
3756         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3757         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3758
3759 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3760
3761         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3762         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3763         leading and trailing spaces from host, user and domain name.
3764
3765 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3766
3767         * csu/defs.awk: Add support for need_endp.
3768
3769 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3770
3771         * resolv/resolv.h: Remove __P from res_send_qhook and
3772         res_send_rhook typedefs.
3773
3774 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3775
3776         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3777
3778 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3779
3780         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3781
3782 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3783
3784         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3785         calling thread, set the cancellation flag and return success
3786         instead of EINTR.
3787
3788 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3789
3790         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3791         * libio/tst-widetext.c: New file.
3792         * libio/tst-widetext.input: New file.
3793
3794         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3795
3796         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3797         empty external buffer correctly.
3798
3799 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3800
3801         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3802         __STRING(entry) and not #entry.
3803         (_RTLD_EPILOGUE): Likewise.
3804         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3805
3806 2000-07-25  Andreas Jaeger  <aj@suse.de>
3807
3808         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3809         according to changes in test program, run also with static only
3810         builds.
3811         ($(objpfx)tst-printf.out): Likewise.
3812
3813         * stdio-common/tst-unbputc.sh: Likewise.
3814         * stdio-common/tst-printf.sh: Likewise.
3815
3816 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3817
3818         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3819
3820         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3821         loop.
3822
3823         * libio/fileops.c: Pretty print.
3824
3825 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3826
3827         * wctype/wchar-lookup.h: New file.
3828         * wctype/iswctype.c: Include "wchar-lookup.h".
3829         (__iswctype): Support alternate locale format with 3-level tables.
3830         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3831         * wctype/towctrans.c (__towctrans): Likewise.
3832         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3833         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3834         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3835         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3836         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3837         __iswxdigit, towlower, towupper): Support alternate locale format
3838         with 3-level tables.
3839         * wctype/wcextra.c (iswblank): Likewise.
3840         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3841         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3842         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3843         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3844         format with 3-level tables.
3845         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3846         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3847         format, return a 3-level table pointer.
3848         * wctype/wctype_l.c (__wctype_l): Likewise.
3849         * wctype/wctrans.c (wctrans): Likewise.
3850         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3851         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3852         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3853         (iswctype): Remove macro definition.
3854         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3855         (internal_wcwidth): Support alternate locale format with 3-level
3856         tables.
3857         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3858         New nl_items.
3859         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3860         Define them as being type "word".
3861         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3862         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3863         __ctype32_width): New exported variables.
3864         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3865         alternate locale format. Don't initialize __ctype_names and
3866         __ctype_width in the alternate locale format.
3867         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3868         * locale/programs/localedef.c (oldstyle_tables): New variable.
3869         (OPT_OLDSTYLE): New macro.
3870         (options): Add --old-style option.
3871         (parse_opt): Handle --old-style option.
3872         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3873         map_offset, class_3level, map_3level, width_3level members.
3874         (ctype_output): Support for alternate locale format: Computation of
3875         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3876         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3877         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3878         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3879         now contain both class and map tables.
3880         (struct wctype_table): New type.
3881         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3882         functions.
3883         (struct wcwidth_table): New type.
3884         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3885         functions.
3886         (struct wctrans_table): New type.
3887         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3888         functions.
3889         (allocate_arrays): Support for alternate locale format: Set
3890         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3891         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3892         to the first 256 characters. Compute ctype->map_3level. Set
3893         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3894         instead of ctype->width.
3895
3896 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3897
3898         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3899         string functions.
3900
3901 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3902
3903         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3904         in wide characters, not bytes.
3905         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3906         into file.
3907
3908 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3909
3910         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3911         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3912         LC_MEASUREMENT, LC_IDENTIFICATION.
3913
3914         * locale/xlocale.h (struct __locale_struct): Increase size of
3915         __locales array.
3916         * locale/duplocale.c (__duplocale): Copy newly added categories as
3917         well.
3918         * locale/freelocale.c (__freelocale): Free newly added categories.
3919         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3920         If a base is given, use it, don't simply return it.
3921
3922 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3923
3924         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3925         variables, copied_key and copied_salt, instead of boolean variables.
3926
3927 2000-07-24  Andreas Jaeger  <aj@suse.de>
3928
3929         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3930         check for offset.
3931
3932         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3933         initgroups_function, adopted prototype for change from 2000-07-23.
3934         (initgroups): Follow type change.
3935
3936         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3937         & PAGE_MASK case, reformat.
3938
3939         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3940         from stdin and setup environment.
3941
3942 2000-07-24  Andreas Schwab  <schwab@suse.de>
3943
3944         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3945
3946 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3947
3948         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3949         more.  Patch by scarlet@mit.edu [PR libc/1799].
3950
3951         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3952         [PR libc/1792].
3953
3954         * argp/argp-parse.c (parser_finalize): Reverse order in which
3955         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3956
3957         * grp/initgroups.c (initgroups): Don't limit the possible number
3958         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3959         the setgroups call while the call fails and descrease the number
3960         of groups each round.
3961         The name of the initgroups function in the NSS modules changed.
3962         (compat_call): Adapt for dynamic resizing.
3963         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3964         Implement dynamic resizing.
3965         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3966         Likewise.
3967         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3968         * hesiod/Versions: Change exported interface name.
3969         * nis/Versions: Change exported interface name.
3970
3971 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3972
3973         * locale/iso-639.def: Some errors corrected.
3974         Patch by Keld Simonsen.
3975
3976         * include/limits.h: Update non-gcc portion.
3977         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3978
3979 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3980
3981         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3982         program's data space, reallocate only the space that was just
3983         deallocated to release its backing space.
3984
3985 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3986
3987         * stdio-common/vfprintf.c (process_string_arg): For wide character
3988         version, handle precision also correctly.
3989
3990         * nss/nss_files/files-hosts.c: Correct problem with three or more
3991         entries with the same name.
3992
3993         * nss/nss_files/files-hosts.c: Implement multi handling.
3994         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3995
3996 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3997
3998         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3999         strcasecmp.
4000
4001         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4002         * malloc/Makefile: Likewise.
4003         * malloc/tst-mtrace.sh: Likewise.
4004         * posix/Makefile: Likewise.
4005         * posix/globtest.sh: Likewise.
4006         * posix/wordexp-tst.sh: Likewise.
4007         * string/Makefile: Likewise.
4008
4009 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4010
4011         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4012         size instead of LC_ALL to take into account the new locale
4013         categories.
4014
4015 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4016
4017         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4018         remainders of hash table.
4019         * locale/categories.def: Remove remainders of transliteration
4020         hash table.
4021         * locale/langinfo.h: Likewise.
4022         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4023         transliteration tables.
4024
4025         * locale/gen-translit.pl: New file.
4026         * locale/C-translit.h.in: New file.
4027         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4028         data pointers with data from this file.
4029         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4030         and gen-translit.pl.
4031         Add rule to generate C-translit.h.
4032         * intl/tst-translit.c (main): Update for now performed
4033         transliteration.
4034
4035         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4036         (it's no input error).
4037         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4038         * stdio-common/scanf12.c: Correct expected result for first scanf.
4039
4040         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4041         of multibyte character strings in %s format with precision.
4042
4043 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4044
4045         * locale/programs/ld-collate.c (collate_read): Allow collating
4046         symbols and elements be named in reorder-after instructions.
4047         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4048
4049         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4050         duplication with generated name, not the name of the first
4051         character.
4052         Patch by Yong Li <yong.li@asu.edu>.
4053
4054         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4055         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4056
4057 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4058
4059         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4060         allocations only if a non-main arena cannot be extended.
4061
4062 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4063
4064         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4065         in DF_1_NODEFLIB handling.
4066
4067 2000-07-21  Andreas Jaeger  <aj@suse.de>
4068
4069         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4070         own rule.
4071
4072         * libio/fwide.c: Include <wchar.h> for prototype.
4073
4074 2000-07-21  Greg McGary  <greg@mcgary.org>
4075
4076         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4077         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4078         Define in terms of chunk_at_offset.
4079         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4080         (next_bin, prev_bin): offset by size of real array elements.
4081         (chunk_align): Make `m' a scalar, since that's how it's used.
4082
4083 2000-07-21  Greg McGary  <greg@mcgary.org>
4084
4085         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4086         UNCHECK_BOUNDS.
4087         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4088         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4089         Wrap bounds around argv & envp and each of their string members.
4090         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4091         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4092         symbol in BP_SYM ().  Discard bounds of address arg.
4093         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4094         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4095         Discard bounds on address arg, add bounds to return value.
4096
4097 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4098
4099         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4100         * elf/filter.c: New file.
4101         * elf/filtmod1.c: New file.
4102         * elf/filtmod2.c: New file.
4103
4104         * elf/rtld.c: Define _dl_bind_not variable.
4105         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4106         * elf/dl-support.c: Likewise.
4107         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4108         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4109         _dl_bind_not.
4110         (profile_fixup): Likewise.
4111
4112         * libio/Makefile (routines): Add fwide.
4113         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4114         fwide now.  Internal calls to _IO_fwide must do locking themselves
4115         or don't need locking.
4116         * libio/fwide.c: New file.
4117
4118         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4119
4120         * elf/Makefile: Add no modules for nodelete test.
4121         * elf/nodelmod3.c: New file.
4122         * elf/nodelmod4.c: New file.
4123         * elf/nodelete.c: Also test case where dependency of dlopen() object
4124         is marked nodelete.
4125
4126         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4127         * elf/nodlopen.c: New file.
4128         * elf/nodlopenmod.c: New file.
4129         * include/dlfcn.h: Define __RTLD_DLOPEN.
4130         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4131         and this is a dlopen() call, do not load the binary.
4132         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4133         * dlfcn/dlopenold.c: Likewise.
4134         * configure.in: Add test for -z nodelete option.
4135         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4136
4137 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4138
4139         Make Hesiod NSS module thread-safe.
4140
4141         * hesiod/README.hesiod: Update.
4142
4143         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4144         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4145         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4146         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4147         hesiod-proto.
4148         * hesiod/nss_hesiod/hesiod-init.c: New file.
4149         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4150         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4151         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4152         * hesiod/nss_hesiod/hesiod-service.c
4153         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4154         looking up services by port number.
4155         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4156
4157         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4158         * hesiod/hesiod.h: Likewise.
4159         * hesiod/hesiod_p.h: Likewise.
4160
4161 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4162
4163         Fix problems with `struct __res_state' getting too big.
4164         * resolv/resolv.h (struct __sockaddr_in): New definition.
4165         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4166         the private parts of the structure to save some space.
4167         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4168         (struct sockaddr_in *) in call to sock_eq.
4169         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4170
4171 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4172
4173         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4174         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4175         with nodelete.
4176         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4177         to _dl_map_object.  Return immediately if no object loaded.
4178         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4179         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4180         if it exists into l_flags_1 word.
4181         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4182         it to determine whether loading is wanted or not.
4183         (_dl_map_object): Likewise.
4184         Call _dl_map_object_from_fd with new parameter.
4185         * sysdeps/generic/ldsodefs.h: Update prototype.
4186         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4187         * elf/rtld.c: Likewise.
4188         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4189         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4190         * elf/noload.c: New file.
4191         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4192         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4193         * sysdeps/mips/bits/dlfcn.h: Likewise.
4194         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4195         (tests-nodelete-yes): Define.
4196         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4197         Add rules to build nodelete and modules.
4198         * elf/nodelete.c: New file.
4199         * elf/nodelmod1.c: New file.
4200         * elf/nodelmod2.c: New file.
4201         * configure.in: Add test for -z nodelete option.
4202         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4203
4204         * libio/Makefile (tests): Add tst_wprintf2.
4205         (tst_wprintf2-ARGS): Define.
4206         * libio/tst_wprintf2.c: New file.
4207         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4208
4209         * libio/wfiledoalloc.c: Only allocate external buffer if this
4210         hasn't happened yet.
4211
4212         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4213         something in the buffer.  gconv call can write up to end of the
4214         buffer, not only _IO_write_end.
4215         (_IO_wfile_overflow): Allocate also external buffer.
4216
4217 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4218
4219         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4220         strings with precision in vfwprintf correctly.
4221         * stdio-common/vfprintf.c: Fix completely broken handling of
4222         unbuffered wide character streams.
4223         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4224
4225         * resolv/Makefile (distribute): Add README.
4226
4227         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4228
4229 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4230
4231         Update resolver code to BIND 8.2.3-T5B.
4232
4233         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4234         __res_nclose.
4235         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4236         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4237         __res_search.
4238         * resolv/Banner: BIND-8.2.3-T5B.
4239
4240         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4241         * resolv/herror.c: Likewise.
4242         * resolv/inet_addr.c: Likewise.
4243         * resolv/inet_net_ntop.c: Likewise.
4244         * resolv/inet_net_pton.c: Likewise.
4245         * resolv/inet_neta.c: Likewise.
4246         * resolv/inet_ntop.c: Likewise.
4247         * resolv/nsap_addr.c: Likewise.
4248         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4249         IPv6 addresses (ISC bug #520).
4250
4251         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4252         * resolv/ns_parse.c: Likewise.
4253         * resolv/ns_netint.c: Likewise.
4254         * resolv/ns_samedomain.c: Likewise.
4255         * resolv/ns_ttl.c: Likewise.
4256         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4257         RCS ID in object file.
4258
4259         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4260         * resolv/res_mkquery.c: Likewise.
4261         * resolv/res_query.c: Likewise.
4262         * resolv/res_init.c: Likewise.
4263         (res_setoptions): Mark internal.
4264         * resolv/res_send.c: Likewise.
4265         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4266         by using poll instead.
4267         * resolv/res_comp.c: Likewise.
4268         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4269         weak alias for __dn_expand.
4270         * resolv/res_data.c: Likewise.
4271         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4272         in _res.options.  Avoids a potential security risk by avoiding a
4273         close (0).
4274         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4275         res_mkquery, res_query, res_querydomain adn res_search weak
4276         aliases for __res_mkquery, __res_query, __res_querydomain and
4277         __res_search.
4278         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4279         instead to avoid close(0).
4280         (res_init): Always use the static resolver context.
4281         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4282         alias for __res_init.
4283
4284         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4285         RES_SET_H_ERRNO and accompanying comment to...
4286         * include/resolv.h: ... here.
4287
4288         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4289         * resolv/arpa/nameser_compat.h: Likewise.
4290
4291 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4292
4293         * nss/makedb.c (main): Compare result of load_db with
4294         NSS_STATUS_SUCCESS and not 0.
4295         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4296
4297         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4298
4299 2000-07-18  Greg McGary  <greg@mcgary.org>
4300
4301         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4302         (EXTEND_BUFFER): Use it.
4303
4304 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4305
4306         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4307         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4308         __builtin_return_address.
4309         * dlfcn/dlopenold.c: Likewise.
4310         * dlfcn/dlsym.c: Likewise.
4311         * dlfcn/dlvsym.c: Likewise.
4312         * elf/dl-profstub.c: Likewise.
4313         * malloc/malloc.c: Likewise.
4314         * sysdeps/generic/machine-gmon.h: Likewise.
4315         Based on a patch by schwidefsky@de.ibm.com.
4316
4317 2000-07-18  Andreas Jaeger  <aj@suse.de>
4318
4319         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4320         NULL to elf_machine_fixup_plt t argument to silence GCC.
4321
4322         * include/string.h: Add prototype for __memchr.
4323
4324         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4325
4326         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4327         instead of memrchr.
4328
4329 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4330
4331         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4332
4333         * locale/C-ctype.c: Add initializers for gap elements.
4334         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4335         for gap elements.
4336
4337 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4338
4339         * nscd/nscd.c (print_version): Update copyright year.
4340
4341 2000-07-17  Greg McGary  <greg@mcgary.org>
4342
4343         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4344         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4345         signature argnames with angle-brackets for use as word delimiters,
4346         and to induce syntax errors for any args not handled.  Split
4347         multi-echo echoes and comment each stage.
4348         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4349         * sysdeps/unix/inet/syscalls.list: Likewise.
4350         * sysdeps/unix/mman/syscalls.list: Likewise.
4351         * sysdeps/unix/syscalls.list: Likewise.
4352         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4353         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4354         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4355         * sysdeps/unix/sysv/syscalls.list: Likewise.
4356         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4357
4358         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4359         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4360         qualifiers.  Don't check NULL-terminator of argv & envp.
4361         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4362         unbounded pointer type in word-size assertion.
4363         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4364         cases to stifle warnings.
4365
4366         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4367         _IO_file_attach.
4368         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4369
4370         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4371         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4372         ptr as __unbouned.
4373
4374         * Makerules (o-objects): Supplement with $(o-objects$o).
4375         * string/Makefile (o-objects.ob): Add variable to pull
4376         unbounded versions of memcpy, memset and memchr into libc_b.
4377
4378         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4379         rather than non-existent __ubp_memchr.
4380         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4381         (_CHECK_STRING, _CHECK_N): New macros.
4382         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4383         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4384         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4385         Add weak alias "memchr".
4386         * sysdeps/generic/memchr.c: Likewise.
4387         * sysdeps/i386/memchr.S: Likewise.
4388         * sysdeps/ia64/memchr.S: Likewise.
4389         * sysdeps/m68k/memchr.S: Likewise.
4390         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4391         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4392         * sysdeps/vax/memchr.s: Likewise.
4393
4394         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4395
4396         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4397         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4398         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4399         __BOUNDED_POINTERS__.
4400         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4401         for __BOUNDED_POINTERS__.
4402
4403 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4404
4405         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4406         field of struct __gconv_trans_data differently.  Don't pass NULL to
4407         trans_init_fct.  Simplify list append operation.
4408
4409 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4410
4411         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4412         not only those having tsearch.
4413
4414 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4415
4416         * locale/langinfo.h: Add placeholder values in enum for removed
4417         LC_CTYPE entries.
4418
4419 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4420
4421         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4422         chain if the PHDR check fails.
4423
4424 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4425
4426         * nss/getent.c (print_hosts): Make sure we always print a space
4427         between numeric addresses and hostnames.
4428
4429 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4430
4431         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4432         i.e. if n_mmaps_max>0.
4433
4434 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4435
4436         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4437         values to remove possible clash with other AI_* constants.
4438         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4439         hexadecimal constants to stress the fact they're in fact
4440         bit flags.
4441
4442 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4443
4444         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4445         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4446         instead of res_init.
4447
4448 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4449
4450         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4451         parameters of memset calls to avoid warnings.
4452
4453 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4454
4455         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4456         necessary.
4457
4458         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4459         Patch by Greg McGary <greg@mcgary.org>.
4460
4461         * io/Makefile (tests): Add tst-getcwd.
4462         * io/tst-getcwd.c: New file.
4463
4464         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4465
4466 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4467
4468         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4469         structure.
4470
4471 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4472
4473         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4474         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4475
4476 2000-07-12  H.J. Lu  <hjl@gnu.org>
4477
4478         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4479         GLIBC_2.2.
4480         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4481         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4482         (sysdep-routines): Add clone2.
4483         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4484
4485 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4486
4487         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4488         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4489
4490 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4491
4492         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4493         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4494         Change type of si_band from "int" to "long".
4495         (si_imm) [USE_GNU]: Define
4496         (si_isr) [USE_GNU]: Ditto.
4497         (ILL_BREAK) [USE_GNU]: Ditto.
4498         (FPE_DECOVF) [USE_GNU]: Ditto.
4499         (FPE_DECDIV) [USE_GNU]: Ditto.
4500         (FPE_DECERR) [USE_GNU]: Ditto.
4501         (FPE_INVASC) [USE_GNU]: Ditto.
4502         (FPE_INVDEC) [USE_GNU]: Ditto.
4503         (TRAP_BRANCH) [USE_GNU]: Ditto.
4504         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4505
4506 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4507
4508         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4509         bits/sigcontext as struct mcontext does not depend on it.
4510
4511         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4512
4513 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4514
4515         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4516
4517 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4518
4519         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4520
4521 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4522
4523         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4524
4525 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4526
4527         * intl/Makefile (test-srcs): Add tst-translit.
4528         (tests): Likewise.
4529         Add rules to build and run tst-translit.
4530         * intl/tst-translit.c: New file.
4531         * intl/tst-translit.sh: New file.
4532         * intl/translit.po: New file.
4533
4534 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4535
4536         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4537         transliteration function did its job, continue, don't stop.
4538
4539         * iconvdata/iso646.c: Little optimizations in body for conversion
4540         from UCS4.
4541
4542 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4543
4544         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4545
4546 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4547
4548         * configure.in: Check for pwd binary.
4549         * config.make.in: Add PWD_P to be subsituted.
4550         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4551
4552 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4553
4554         * iconvdata/Makefile (modules): Add GB18030.
4555         (distribute): Add gb18030.c.
4556         * iconvdata/gconv-modules: Add entries for GB18030 module.
4557         * iconvdata/gb18030.c: New file.
4558         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4559         and Wu Jian.
4560
4561 2000-07-13  Andreas Jaeger  <aj@suse.de>
4562
4563         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4564         patch.
4565
4566         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4567         * inet/getnetgrent.c (free_mem): Likewise.
4568         * misc/mntent.c (free_mem): Likewise.
4569         * nss/getXXbyYY.c (free_mem): Likewise.
4570         * nss/getXXent.c (free_mem): Likewise.
4571         * pwd/fgetpwent.c (free_mem): Likewise.
4572         * shadow/fgetspent.c (free_mem): Likewise.
4573
4574 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4575
4576         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4577         64-bit architecture correctly [PR libc/1794].
4578
4579 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4580
4581         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4582         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4583         report that we are out of memory.
4584         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4585         * elf/dl-libc.c (dlerror_run): Likewise.
4586         * elf/dl-open.c (_dl_open): Likewise.
4587         * elf/rtld.c (dl_main): Likewise.
4588         * elf/dl-error.c: Define _dl_out_of_memory.
4589         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4590         the error string.
4591         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4592         [PR libc/1813].
4593
4594         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4595
4596         * iconv/loop.c: Fix comment.
4597
4598         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4599
4600 2000-07-13  Andreas Jaeger  <aj@suse.de>
4601
4602         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4603         getcwd (NULL, size) with size > 0.
4604         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4605
4606 2000-07-13  Andreas Jaeger  <aj@suse.de>
4607
4608         * posix/Makefile: Remove build rules for libposix.
4609
4610 2000-07-13  Andreas Schwab  <schwab@suse.de>
4611
4612         * sysdeps/generic/glob.c (glob): Fix memory leak.
4613         [SHELL]: Remove reference to undefined variable `files'.
4614         Fixes PR libc/1782.
4615
4616 2000-07-13  Andreas Jaeger  <aj@suse.de>
4617
4618         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4619         functions.
4620
4621         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4622         memory if it was allocated.
4623
4624 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4625
4626         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4627         step.
4628
4629         * iconv/gconv_open.c (__gconv_open): Reapply
4630         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4631
4632                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4633
4634         * iconv/gconv_open.c: Undo last two changes for now.  They break
4635         everything.
4636
4637 2000-07-12  Andreas Jaeger  <aj@suse.de>
4638
4639         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4640         compiler.
4641         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4642         (CFLAGS-dl-cache.c): Likewise.
4643         (CFLAGS-ldconfig.c): Added, passes directory locations.
4644
4645         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4646         locate cache.
4647         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4648         (main): Use configured LIBDIR and SLIBDIR.
4649
4650 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4651
4652         * math/bits/cmathcalls.h (cimag): Add __THROW.
4653         (creal, conj): Likewise.
4654         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4655         by negative value.
4656
4657 2000-07-12  H.J. Lu  <hjl@gnu.org>
4658
4659         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4660         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4661
4662 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4663
4664         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4665         it is wrong.
4666
4667 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4668
4669         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4670
4671 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4672
4673         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4674         __modname.
4675
4676 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4677
4678         * iconv/gconv_open.c (__gconv_open): Initialize
4679         result->__steps[cnt].__data.
4680
4681 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4682
4683         * nss/getent.c (services_keys): Pass port number in network byte
4684         order in call to getservbyport.
4685
4686 2000-07-11  Andreas Jaeger  <aj@suse.de>
4687
4688         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4689         source dir.
4690         * intl/Makefile (do-gettext-test): Likewise.
4691         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4692
4693 2000-07-11  Andreas Schwab  <schwab@suse.de>
4694
4695         * Makeconfig (run-program-prefix): New rule.
4696         (built-program-cmd): Use run-program-prefix.
4697
4698 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4699
4700         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4701         and NOEXPR unconditionally available.
4702
4703 2000-07-12  Greg McGary  <greg@mcgary.org>
4704
4705         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4706         * sysdeps/posix/open64.c: Likewise.
4707         * sysdeps/generic/fegetenv.c: Likewise.
4708         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4709         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4710         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4711         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4712         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4713         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4714
4715 2000-07-11  Greg McGary  <greg@mcgary.org>
4716
4717         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4718         Add extra level of macro expansion.
4719         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4720         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4721         is available at the time `select' prototype is declared.
4722         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4723         Collect non-versioned weak aliases.  Consider only non-versioned
4724         aliases for the user-visible systemcall name.  Do checks inline with
4725         call to primitive system call.
4726         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4727         stand-alone bounds checks to suppress unused value warnings.
4728         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4729
4730 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4731
4732         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4733         file descriptor checking in SUID programs for the Hurd.
4734
4735         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4736         res_hostalias instead of __hostalias for thread-safety.
4737
4738 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4739
4740         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4741         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4742
4743 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4744
4745         * include/features.h: Include ISO C99 features if the compiler used
4746         is an ISO C99 compiler.
4747         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4748
4749 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4750
4751         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4752
4753 2000-07-10  Andreas Jaeger  <aj@suse.de>
4754
4755         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4756         it's overridden by libpthreads.
4757         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4758         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4759         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4760         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4761         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4762
4763         * malloc/Makefile: Run tst-mtrace only with shared libs.
4764
4765         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4766         with shared libs.
4767
4768 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4769
4770         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4771         that gpreg really points to the GOT section of the calling object.
4772         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4773         checking a start address of first one.
4774         Fix typos.
4775         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4776         Likewise.
4777
4778         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4779
4780 2000-07-10  Andreas Jaeger  <aj@suse.de>
4781
4782         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4783         (string_alias->strong_alias).
4784
4785 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4786
4787         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4788
4789 2000-07-07  Greg McGary  <greg@mcgary.org>
4790
4791         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4792         have no names without leading underscores.
4793
4794 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4795
4796         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4797         U007E.
4798
4799         * stdio-common/Makefile (tests): Remove tst-printf here...
4800         (tests-srcs): ...and add it here.
4801         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4802         Add rules to run tst-printf.sh.
4803         * stdio-common/tst-printf.c: Move code around so that there is really
4804         no further output where it's stated.
4805         * stdio-common/tst-printf.sh: New file.
4806
4807 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4808
4809         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4810         (do_write): Renamed from pwrite.
4811         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4812         `struct _IO_cookie_file'.
4813
4814 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4815
4816         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4817         detected.
4818         * malloc/tst-mtrace.sh: Run mtrace script.
4819
4820 2000-07-07  Greg McGary  <greg@mcgary.org>
4821
4822         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4823         Move all three components of a bounded pointer.
4824
4825 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4826
4827         * locale/programs/locale.c (write_locales): Don't simply add all
4828         directories found in the subdir, test whether at least the
4829         LC_CTYPE file is in there.
4830
4831 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4832
4833         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4834         * iconvdata/euc-kr.c: Likewise.
4835
4836         * stdio-common/vfprintf.c (process_string_arg): Check result of
4837         wcrtomb call and bail out if it failed.
4838
4839         * malloc/Makefile (test-srcs): Add tst-mtrace.
4840         (distribute): Add tst-mtrace.sh.
4841         Add rule to run tst-mtrace.sh.
4842         * malloc/tst-mtrace.c: New file.
4843         * malloc/tst-mtrace.sh: New file.
4844
4845         * include/signal.h: Declare __libc_sigaction.
4846         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4847         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4848         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4849         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4850         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4851         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4852         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4853
4854         * configure.in: Fix CFLAGS-memprofstat.c definition after
4855         2000-06-19 change.
4856         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4857
4858 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4859
4860         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4861         instead of NULL to elf_machine_fixup_plt t argument.
4862         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4863         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4864         cast.
4865
4866 2000-07-06  Andreas Jaeger  <aj@suse.de>
4867
4868         * crypt/Makefile (LDLIBS-cert): Removed.
4869         (LDLIBS-md5c-test): Removed.
4870         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4871         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4872
4873 2000-07-06  Andreas Jaeger  <aj@suse.de>
4874
4875         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4876         of the proc system is "proc".
4877
4878         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4879         thread library for static programs.
4880
4881 2000-07-06  Greg McGary  <greg@mcgary.org>
4882
4883         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4884         New macros.
4885         * sysdeps/generic/strcpy.c: Add bounds checks.
4886         * sysdeps/unix/fxstat.c: Likewise.
4887         * sysdeps/unix/xstat.c: Likewise.
4888         * sysdeps/unix/common/lxstat.c: Likewise.
4889         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4890         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4891         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4892         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4893         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4894         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4895         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4896         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4897         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4898         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4899         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4900         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4901         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4902         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4903         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4904         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4905         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4906         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4907         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4908         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4909         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4910         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4911         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4912         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4913         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4914         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4915         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4916         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4917         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4918         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4919         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4920         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4921         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4922         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4923         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4924         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4925         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4926         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4927         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4928         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4929         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4930         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4931         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4932         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4933         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4934         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4935         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4936         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4937         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4938         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4939         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4940         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4941         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4942         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4943         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4944         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4945         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4946         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4947         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4948         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4949         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4950         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4951         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4952         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4953
4954         * string/endian.h (__LONG_LONG_PAIR): New macro.
4955         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4956         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4957         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4958         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4959         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4960         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4961         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4962         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4963         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4964         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4965         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4966         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4967
4968         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4969
4970 2000-07-06  Andreas Jaeger  <aj@suse.de>
4971
4972         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4973         Initialize result.
4974
4975         * math/test-fpucw.c: Include <stdio.h> for printf.
4976
4977 2000-07-05  Greg McGary  <greg@mcgary.org>
4978
4979         * sysdeps/generic/bp-checks.h: New file.
4980         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4981         with list of #include files.
4982         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4983         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4984         Don't generate BP thunk if `V' appears in signature.
4985         Generate thunks with complete bounds checks.
4986         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4987         * sysdeps/unix/inet/syscalls.list: Likewise.
4988         * sysdeps/unix/mman/syscalls.list: Likewise.
4989         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4990         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4991         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4992         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4993
4994 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4995
4996         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4997         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4998         If mount not in the file fall back on /proc.
4999
5000         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5001         string got copied in.
5002         Patch by Solar Designer <solar@false.com>.
5003
5004 2000-07-05  Andreas Jaeger  <aj@suse.de>
5005
5006         * manual/install.texi (Installation): Update information about
5007         add-ons.
5008         (Configuring and compiling): Update for glibc 2.2.
5009
5010 2000-07-04  Andreas Jaeger  <aj@suse.de>
5011
5012         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5013         (_FPU_IEEE): Likewise.
5014
5015         * math/Makefile (tests): Add test-fpucw.
5016
5017         * math/test-fpucw.c (main): New file.
5018
5019 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5020
5021         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5022
5023         * locale/programs/ld-collate.c (collate_output): Also write out the
5024         collation sequence values and the wide character string for the
5025         collation symbol table.
5026
5027         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5028         * posix/fnmatch_loop.c: Implement collating symbol handling.
5029         * posix/tst-fnmatch.input: Add more tests, especially for collating
5030         symbol handling.
5031
5032         * posix/regex.c: Fix comment.
5033
5034 2000-07-05  Andreas Jaeger  <aj@suse.de>
5035
5036         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5037         (_FPU_GETCW): Remove extra colon.
5038         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5039
5040         * posix/fnmatch_loop.c (FCT): Only declare len if
5041         !WIDE_CHAR_VERSION to silence GCC.
5042
5043         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5044         prototype.
5045         * sysdeps/generic/strchrnul.c: Likewise.
5046         * sysdeps/generic/strlen.c: Likewise.
5047         * sysdeps/generic/strchr.c: Likewise.
5048         * sysdeps/generic/memchr.c: Likewise.
5049
5050 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5051
5052         * posix/fnmatch_loop.c: Implement equivalence class handling.
5053         * posix/tst-fnmatch.input: Add tests for equivalence class
5054         handling.
5055
5056         * posix/fnmatch_loop.c: Improve performance for single-byte
5057         character sets by not using btowc.
5058
5059         * posix/tst-fnmatch.input: Add tests for locale dependent
5060         behaviour.
5061         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5062
5063         * posix/tst-fnmatch.input: Add more test cases.
5064
5065         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5066         are not aligned to alignof(md5_uint32) do it before calling
5067         __md5_process_bytes.
5068         * crypt/md5.c: Make sure buffers are aligned.
5069         * crypt/md5.h: Likewise.
5070         Reported by Solar Designer <solar@false.com>.
5071
5072         * crypt/Makefile: Add dependencies for test programs.
5073
5074         * Rules: Define LC_ALL=C in environments of all programs we run.
5075
5076         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5077
5078 2000-07-03  H.J. Lu  <hjl@gnu.org>
5079
5080         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5081         is 2 + elem + offset, not 2 + elem + offset + 2.
5082
5083 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5084
5085         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5086         suite.
5087         * posix/Makefile (tests): Add tst-fnmatch.
5088         (tst-fnmatch-ENV): Define.
5089         * posix/tst-fnmatch.c: New file.
5090         * posix/tst-fnmatch.sh: New file.
5091
5092 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5093
5094         * locale/programs/charmap.c (charmap_read): Prepend
5095         the condition filename == NULL.
5096
5097 2000-07-03  Greg McGary  <greg@mcgary.org>
5098
5099         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5100
5101         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5102         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5103
5104         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5105         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5106         (FILEBUF_LITERAL): Add cast for CHAIN init.
5107         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5108         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5109         Revert type of `fp' to _IO_FILE*.
5110         (_IO_iter_file): Remove cast.
5111         (_IO_iter_next): Elide intermediate member reference.
5112
5113         * sysdeps/powerpc/strchr.S:  Check bounds.
5114         Wrap extern symbols in BP_SYM ().
5115
5116 2000-07-03  Andreas Jaeger  <aj@suse.de>
5117
5118         * dlfcn/Makefile (generated): New.
5119
5120 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5121
5122         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5123         (__uflow): Likewise.
5124         (__underflow): Likewise.
5125         * libio/wgenops.c (__wunderflow): Likewise.
5126         * stdio-common/tst-unbputc.c: New file.
5127         * stdio-common/tst-unbputc.sh: New file.
5128         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5129
5130         * po/en_GB.po: New file.
5131         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5132
5133 2000-07-01  Andreas Jaeger  <aj@suse.de>
5134
5135         * intl/Makefile (generated-dirs): New.
5136
5137         * elf/Makefile (generated): trusted-dirs.h is always generated,
5138         move out of build-shared condition.
5139         (generated): Merge the two entries for build-shared.
5140
5141 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5142
5143         * debug/Makefile (distribute): Add xtrace.sh.
5144
5145 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5146
5147         * version.h (VERSION): Bump to 2.1.91.
5148
5149         * configure.in: Update warning comment.  glibc should not be
5150         broken anymore.
5151
5152         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5153         ioperm.c, sys/procfs.h, and sys/io.h.
5154
5155         * sysdeps/powerpc/Dist: Add bp-asm.h.
5156
5157         * assert/Depend: Add localedata.
5158         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5159         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5160
5161         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5162         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5163         relocation address to prevent unaligned trap.
5164         Suggested by Richard Henderson <rth@cygnus.com>.
5165
5166 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5167
5168         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5169         if redirecting and either redirection is done using defines or
5170         not optimizing.
5171
5172 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5173
5174         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5175         generated expressions.
5176         Patch by Darren McClelland <dmcclell@zetec.com>.
5177
5178         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5179         since zic uses setlocale and gettext but we cannot make it use the
5180         new locale data since zic calls a shell which might not use the
5181         new libc.
5182
5183         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5184         handling the internation currency symbol.  POSIX says that the
5185         fourth character is used to separate the currency symbol from the
5186         value.  Therefore it does not have to be printed.  But we cannot
5187         remove the space if the currency symbol is printed before the
5188         number since this is what many locales expect.
5189
5190         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5191         whether this information is available.
5192
5193         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5194         buffers in case the translation is too large.  Remember allocated
5195         memory blocks in a list.
5196         (free_mem): Free memory for translations.
5197
5198         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5199
5200         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5201         information is available set the string length to zero.
5202
5203         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5204
5205 2000-06-30  Greg McGary  <greg@mcgary.org>
5206
5207         * sysdeps/powerpc/bp-asm.h: New file.
5208         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5209         Wrap extern symbols in BP_SYM ().
5210         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5211         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5212         * sysdeps/powerpc/setjmp.S: Likewise.
5213         * sysdeps/powerpc/add_n.S: Likewise.
5214         * sysdeps/powerpc/addmul_1.S: Likewise.
5215         * sysdeps/powerpc/lshift.S: Likewise.
5216         * sysdeps/powerpc/rshift.S: Likewise.
5217         * sysdeps/powerpc/mul_1.S: Likewise.
5218         * sysdeps/powerpc/sub_n.S: Likewise.
5219         * sysdeps/powerpc/submul_1.S: Likewise.
5220         * sysdeps/powerpc/strlen.S: Likewise.
5221         * sysdeps/powerpc/memset.S: Likewise.
5222         * sysdeps/powerpc/stpcpy.S: Likewise.
5223         * sysdeps/powerpc/strcmp.S: Likewise.
5224         * sysdeps/powerpc/strcpy.S: Likewise.
5225         * sysdeps/powerpc/elf/bzero.S: Likewise.
5226
5227         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5228         Line up operands column with tabs.
5229
5230 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5231
5232         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5233
5234         * sysdeps/ia64/htonl.S: New file.
5235         * sysdeps/ia64/htons.S: New file.
5236         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5237         floating point registers.
5238         Patches by Dan Pop <Dan.Pop@cern.ch>.
5239
5240 2000-06-30  Andreas Jaeger  <aj@suse.de>
5241
5242         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5243         shared libraries.
5244
5245         * io/Makefile (CFLAGS-test-lfs.c): New.
5246         (tests): Add test-lfs.
5247
5248         * io/test-lfs.c: New file.
5249
5250 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5251
5252         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5253         instruction.
5254
5255 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5256
5257         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5258
5259 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5260
5261         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5262         alias to the fstatfs call.
5263
5264         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5265         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5266
5267         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5268         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5269
5270         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5271         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5272         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5273         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5274
5275         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5276         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5277
5278         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5279         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5280
5281         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5282         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5283
5284         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5285
5286 2000-06-29  Andreas Jaeger  <aj@suse.de>
5287
5288         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5289         with syslog.
5290         (print_err_message): Likewise.
5291         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5292
5293 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5294
5295         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5296         used as words is properly aligned.
5297
5298         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5299         data files.
5300
5301 2000-06-29  Greg McGary  <greg@mcgary.org>
5302
5303         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5304         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5305         length 7..9, just in case...
5306         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5307
5308         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5309         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5310         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5311         (PUSH_SIGNAL_MASK): New macro.
5312         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5313         LEAVE is unnecessary.  Check bounds of jmp_buf.
5314         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5315         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5316         immediately before tail-call.
5317         * sysdeps/i386/setjmp.S: Likewise.
5318         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5319         * sysdeps/i386/bsd-setjmp.S: Likewise.
5320
5321 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5322
5323         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5324         versioned_symbol.
5325         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5326         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5327         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5328         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5329         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5330         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5331         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5332         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5333
5334 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5335
5336         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5337         we later need to calling free().
5338         Patch by Matt Wilson <msw@redhat.com>.
5339
5340         * stdio-common/tst-printf.c: Add test for above problem.
5341
5342 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5343
5344         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5345         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5346
5347 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5348
5349         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5350         prototype for abs().
5351         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5352
5353 2000-06-23  Andreas Jaeger  <aj@suse.de>
5354
5355         * config.h.in: Don't use regparm with bounded pointers.
5356
5357 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5358
5359         * stdlib/grouping.h: Correctly handle multibyte thousands
5360         separator and decimal point.
5361         * stdlib/stdtod.c: Likewise.
5362         * sysdeps/generic/strtol.c: Likewise.
5363
5364         * locale/categories.def: Add entries for wide character decimal point
5365         and thousands separator in numeric and monetary category.
5366
5367 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5368
5369         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5370         second definition and initialization of decimal.
5371
5372 2000-06-28  Greg McGary  <greg@mcgary.org>
5373
5374         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5375         out.
5376         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5377         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5378         in.
5379         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5380         (struct _IO_FILE_plus *).
5381         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5382         THIS, since _IO_JUMPS no longer does it implicitly.
5383         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5384         arg type as (struct _IO_FILE_plus *).
5385         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5386         arg as (_IO_strfile *).
5387         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5388         Declare 1st arg as (_IO_strfile *).
5389         * libio/fileops.c (_IO_new_file_init): Declare
5390         arg type as (struct _IO_FILE_plus *).
5391         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5392         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5393         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5394         Declare iteration pointer as (struct _IO_FILE_plus *).
5395         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5396                 (struct _IO_FILE_plus *).
5397         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5398         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5399         (_IO_check_libio): Set user-visible handles to
5400         (struct _IO_FILE_plus *).
5401         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5402         to (struct _IO_FILE_plus *).
5403
5404         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5405         whose high bound includes vtable to all functions that will use
5406         vtable.  For streambufs, pass pointer whose bounds include struct
5407         _IO_strfile.
5408         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5409         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5410         * libio/iofopen.c (_IO_new_fopen): Likewise.
5411         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5412         * libio/iofopen64.c (_IO_fopen64): Likewise.
5413         * libio/iopopen.c (_IO_new_popen): Likewise.
5414         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5415         * libio/memstream.c (open_memstream): Likewise.
5416         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5417         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5418         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5419         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5420         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5421         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5422         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5423         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5424         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5425         * stdlib/strfmon.c (__strfmon_l): Likewise.
5426         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5427         (vfprintf): Qualify computed-goto targets as unbounded.
5428
5429 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5430
5431         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5432         thousands separator correctly.
5433
5434         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5435         * stdio-common/vfwscanf.c: Likewise.
5436
5437 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5438
5439         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5440         count into signatures for most calls.
5441
5442 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5443
5444         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5445         the generic parser now.
5446
5447 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5448
5449         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5450         table entries are 32 bit on the ia64 (as specified by the ABI),
5451         not 64 bit as on the Alpha.
5452
5453         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5454         change of objects to use 32 bit hash table indices (see above).
5455
5456 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5457
5458         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5459         prototype for abs().
5460
5461 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5462
5463         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5464         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5465         may have been reached.
5466
5467 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5468
5469         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5470         symbols in multi-character weights correctly.
5471
5472         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5473         depending on whether the input string is empty or not.
5474
5475         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5476         given state and not avoiding this by modifying a local object.
5477         * wcsmbs/wcrtomb.c: Likewise.
5478
5479         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5480         object since some incomplete characters might be in there.
5481
5482         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5483         sequences with first byte 0x8e correctly.
5484
5485         * iconvdata/jis0208.h: Remove redundant test.
5486
5487 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5488
5489         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5490         Add it where it is needed now.
5491
5492         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5493         the input charset into account when generating the hash table.
5494         (allocate_arrays): Correct setting default width.  Not all empty slots
5495         in the table are filled, only those not covert explicitly by the
5496         locale description and in the charset.
5497
5498         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5499         return values from the wctrans function.
5500
5501         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5502         wide character version.
5503         For %C handling, test correct pointer variable for NULL.
5504
5505         * wcsmbs/wctob.c: Handle WEOF special.
5506
5507         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5508
5509         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5510         always-true test to avoid warning.
5511
5512 2000-06-27  Greg McGary  <greg@mcgary.org>
5513
5514         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5515         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5516         (symbol_version, default_symbol_version): Factor redundant
5517         definitions out of conditional.
5518
5519 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5520
5521         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5522         not obstack_blank.
5523
5524 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5525
5526         * include/libc-symbols.h (symbol_version): Add extra level of
5527         macro expansion.
5528         (default_symbol_version): Likewise.
5529
5530 2000-06-26  Greg McGary  <greg@mcgary.org>
5531
5532         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5533         for BP return value & push implicit struct-return pointer to
5534         __errno_location.
5535         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5536         (SYSCALL_ERROR_HANDLER): Likewise.
5537         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5538         (SYSCALL_ERROR_HANDLER): Likewise.
5539
5540         * Makeconfig: Add missing comment.
5541         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5542         BP-flavored startup object.
5543         ($(objpfx)b$(start-installed-name)): New rule.
5544         * include/libc-symbols.h (symbol_set_declare): Change type
5545         of `__start_##set' and `__stop_##set' to pointer-to-function.
5546         (symbol_set_declare): Change type of `set' to array of
5547         pointer-to-function.
5548         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5549         pointer-to-function.
5550
5551         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5552
5553         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5554         Remove clock_* and timer_* entries.
5555         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5556         arg-count with signatures.
5557
5558         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5559         Check bounds of arguments.
5560         * sysdeps/i386/addmul_1.S: Likewise.
5561         * sysdeps/i386/lshift.S: Likewise.
5562         * sysdeps/i386/mul_1.S: Likewise.
5563         * sysdeps/i386/rshift.S: Likewise.
5564         * sysdeps/i386/sub_n.S: Likewise.
5565         * sysdeps/i386/submul_1.S: Likewise.
5566         * sysdeps/i386/i586/add_n.S: Likewise.
5567         * sysdeps/i386/i586/addmul_1.S: Likewise.
5568         * sysdeps/i386/i586/lshift.S: Likewise.
5569         * sysdeps/i386/i586/rshift.S: Likewise.
5570         * sysdeps/i386/i586/sub_n.S: Likewise.
5571         * sysdeps/i386/i686/add_n.S: Likewise.
5572
5573         * sysdeps/i386/memchr.S: Likewise.
5574         * sysdeps/i386/memcmp.S: Likewise.
5575         * sysdeps/i386/rawmemchr.S: Likewise.
5576         * sysdeps/i386/i586/bzero.S: Likewise.
5577         * sysdeps/i386/i586/memcpy.S: Likewise.
5578         * sysdeps/i386/i586/mempcpy.S: Likewise.
5579         * sysdeps/i386/i586/memset.S: Likewise.
5580         * sysdeps/i386/i686/bzero.S: Likewise.
5581         * sysdeps/i386/i686/memcpy.S: Likewise.
5582         * sysdeps/i386/i686/mempcpy.S: Likewise.
5583         * sysdeps/i386/i686/memset.S: Likewise.
5584
5585         * sysdeps/i386/stpcpy.S: Likewise.
5586         * sysdeps/i386/stpncpy.S: Likewise.
5587         * sysdeps/i386/strchr.S: Likewise.
5588         * sysdeps/i386/strchrnul.S: Likewise.
5589         * sysdeps/i386/strcspn.S: Likewise.
5590         * sysdeps/i386/strpbrk.S: Likewise.
5591         * sysdeps/i386/strrchr.S: Likewise.
5592         * sysdeps/i386/strspn.S: Likewise.
5593         * sysdeps/i386/strtok.S: Likewise.
5594         * sysdeps/i386/strtok_r.S: Likewise.
5595         * sysdeps/i386/i486/strcat.S: Likewise.
5596         * sysdeps/i386/i486/strlen.S: Likewise.
5597         * sysdeps/i386/i586/strchr.S: Likewise.
5598         * sysdeps/i386/i586/strcpy.S: Likewise.
5599         * sysdeps/i386/i586/strlen.S: Likewise.
5600         * sysdeps/i386/i686/strcmp.S: Likewise.
5601         * sysdeps/i386/i686/strtok.S: Likewise.
5602         * sysdeps/i386/i686/strtok_r.S: Likewise.
5603
5604         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5605         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5606         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5607         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5608         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5609
5610         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5611         * sysdeps/i386/mul_1.S: Likewise.
5612         * sysdeps/i386/submul_1.S: Likewise.
5613         * sysdeps/i386/i586/add_n.S: Likewise.
5614         * sysdeps/i386/i586/addmul_1.S: Likewise.
5615         * sysdeps/i386/i586/lshift.S: Likewise.
5616         * sysdeps/i386/i586/mul_1.S: Likewise.
5617         * sysdeps/i386/i586/rshift.S: Likewise.
5618         * sysdeps/i386/i586/sub_n.S: Likewise.
5619         * sysdeps/i386/i586/submul_1.S: Likewise.
5620
5621 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5622
5623         * rt/Makefile (librt-routines): Add clock_nanosleep.
5624         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5625         * sysdeps/generic/clock_nanosleep.c: New file.
5626         * sysdeps/unix/clock_nanosleep.c: New file.
5627         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5628         * time/time.h: Declare clock_nanosleep.
5629
5630 2000-06-26  Greg McGary  <greg@mcgary.org>
5631
5632         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5633         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5634         (ALIGN): Cleanup surrounding conditionals.
5635
5636         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5637         Call ENTER/LEAVE macros.
5638         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5639         * sysdeps/i386/submul_1.S: Likewise.
5640
5641         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5642         syntax.  Define & use symbolic argument stack offsets.  Call
5643         ENTER/LEAVE macros.
5644         * sysdeps/i386/i586/mul_1.S: Likewise.
5645         * sysdeps/i386/i586/submul_1.S: Likewise.
5646
5647 2000-06-25  Greg McGary  <greg@mcgary.org>
5648
5649         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5650         not as bcopy.
5651
5652 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5653
5654         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5655         * iconvdata/gen-8bit-gap.sh: Likewise.
5656         * iconvdata/gen-8bit.sh: Likewise.
5657
5658         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5659
5660         * locale/programs/ld-collate.c (collate_read): Don't actually read
5661         the copy locale if we are ignoring the content.
5662
5663         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5664         unknown character.
5665
5666         * locale/programs/ld-collate.c: Correct handling of different
5667         collation sections.
5668         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5669         as extra parameter from which to copy category information.
5670         Change all callers.
5671         (load_locale): Likewise.
5672         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5673         and load_locale.
5674         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5675         * locale/programs/locfile.h: Likewise.
5676         * locale/programs/locfile-kw.gperf: Add entry for script.
5677         * locale/programs/locfile-token.h: Add tok_script.
5678
5679         * locale/programs/locale.c: Update copyright year.
5680         * locale/programs/localedef.c: Likewise.
5681
5682 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5683
5684         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5685         Jens Moeller <jens.moeller@waii.com>.
5686
5687 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5688
5689         * locale/programs/ld-name.c (name_finish): Add missing format
5690         specifier to test for name_fmt.
5691
5692         * locale/programs/ld-address.c (iso639): Correct length of string
5693         elements.
5694         (iso3166): Likewise.
5695
5696         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5697
5698         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5699         Define.
5700
5701         * elf/elf.h (NT_PRFPXREG): Define.
5702
5703 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5704
5705         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5706         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5707
5708 2000-06-23  Andreas Schwab  <schwab@suse.de>
5709
5710         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5711         with signatures.
5712
5713 2000-06-23  Andreas Jaeger  <aj@suse.de>
5714
5715         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5716
5717         * io/test-stat.c: Add copyright header, mention Maciej.
5718
5719         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5720         SYS_mincore, SYS_madvise): Added.
5721
5722         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5723         execve.
5724
5725 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5726
5727         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5728         (CFLAGS-tst_putwc.c): New definition.
5729         * libio/tst_getwc.c: New file.
5730         * libio/tst_getwc.input: New file.
5731         * libio/tst_putwc.c: New file.
5732
5733         * include/string.h: Add prototype for __strdup.
5734
5735 2000-06-22  Greg McGary  <greg@mcgary.org>
5736
5737         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5738         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5739         Fix signatures.
5740
5741 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5742
5743         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5744
5745 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5746
5747         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5748
5749 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5750
5751         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5752         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5753
5754 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5755
5756         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5757         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5758         and __S_TYPEISSHM.
5759         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5760         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5761         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5762         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5763         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5764         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5765         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5766         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5767         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5768         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5769         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5770         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5771         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5772         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5773         S_TYPEISSHM.
5774
5775 2000-06-22  Andreas Jaeger  <aj@suse.de>
5776
5777         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5778         with signatures.
5779
5780         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5781
5782         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5783
5784 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5785
5786         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5787         ahead.
5788
5789 2000-06-21  Greg McGary  <greg@mcgary.org>
5790
5791         * Makerules (elide-routines.*, elide-bp-thunks):
5792         Define unconditionally.
5793
5794 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5795
5796         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5797
5798 2000-06-21  Andreas Jaeger  <aj@suse.de>
5799
5800         * io/Makefile (tests): Add test-stat.
5801         (CFLAGS-test-stat.c): New.
5802
5803         * io/test-stat.c: New file from Maciej W. Rozycki
5804         <macro@ds2.pg.gda.pl>.
5805
5806 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5807
5808         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5809         in __rlimit_resource to make them match the kernel order.
5810         rlim_t is always 64 bit, use __rlim64_t to declare it
5811         unconditionally.
5812
5813 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5814
5815         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5816         RLIM_INFINITY before defining it to avoid clash with kernel header
5817
5818 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5819
5820         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5821
5822 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5823
5824         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5825
5826 2000-06-21  Andreas Jaeger  <aj@suse.de>
5827
5828         * stdio-common/temptest.c: Include <stdlib.h>.
5829         * stdio-common/tst-fileno.c: Likewise.
5830         * stdio-common/scanf4.c: Likewise.
5831         * stdio-common/scanf5.c: Likewise.
5832         * time/clocktest.c: Likewise.
5833         * posix/test-vfork.c: Likewise.
5834         * posix/globtest.c: Likewise.
5835         * io/test-utime.c: Likewise.
5836         * wctype/test_wcfuncs.c: Likewise.
5837         * crypt/cert.c: Likewise.
5838
5839         * stdio-common/tst-printfsz.c: Include <string.h>.
5840         * libio/tst_swscanf.c: Likewise.
5841         * libio/tst_wscanf.c: Likewise.
5842         * posix/runtests.c: Likewise.
5843         * posix/tst-getaddrinfo.c: Likewise.
5844         * posix/wordexp-test.c: Likewise.
5845         * misc/tst-efgcvt.c: Likewise.
5846
5847         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5848         * nss/test-netdb.c: Likewise.
5849
5850         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5851         supported kernel for MIPS.
5852
5853         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5854         * rt/aio_suspend.c: Likewise.
5855
5856 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5857
5858         * math/libm-test.inc: Include <string.h>.
5859
5860 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5861
5862         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5863
5864 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5865
5866         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5867         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5868
5869 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5870
5871         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5872
5873 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5874
5875         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5876
5877 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5878
5879         * locale/programs/ld-collate.c (insert_value): Now take string and
5880         length instead of struct token* parameter.  Adjust use of token.
5881         (handle_ellipsis): Likewise.
5882         (collate_read): Allow <Uxxxx> names and transform them into names
5883         to be passed to insert_value and handle_ellipsis.
5884
5885         * locale/programs/ld-ctype.c (uninames): New array with names of
5886         digits in <Uxxxxxxxx> format.
5887         (ctype_finish): Correct search for space character value.  Likewise
5888         for default outdigits values.
5889
5890 2000-06-20  Greg McGary  <greg@mcgary.org>
5891
5892         * Makerules (objects): Add BP thunks.
5893
5894 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5895
5896         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5897         in width definitions.
5898
5899 2000-06-20  Andreas Jaeger  <aj@suse.de>
5900
5901         * sysdeps/mips/fpu/libm-test-ulps: New file.
5902
5903         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5904         first.
5905
5906         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5907
5908         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5909
5910 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5911
5912         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5913         change in gconv_builtin.h.
5914
5915         * malloc/Makefile: Change all references to memprof into memusage.
5916         * malloc/memprof.c: Rename to...
5917         * malloc/memusage.c: ...this.  New file.
5918         * malloc/memprof.sh: Rename to...
5919         * malloc/memusage.sh: ...this.  New file.
5920         * malloc/memprofstat.c: Rename to...
5921         * malloc/memusagestat.c: ...this.  New file.
5922         * sysdeps/alpha/memprof.h: Rename to..
5923         * sysdeps/alpha/memusage.h: ...this.  New file.
5924         * sysdeps/arm/memprof.h: Rename to..
5925         * sysdeps/arm/memusage.h: ...this.  New file.
5926         * sysdeps/generic/memprof.h: Rename to..
5927         * sysdeps/generic/memusage.h: ...this.  New file.
5928         * sysdeps/i386/memprof.h: Rename to..
5929         * sysdeps/i386/memusage.h: ...this.  New file.
5930         * sysdeps/ia64/memprof.h: Rename to..
5931         * sysdeps/ia64/memusage.h: ...this.  New file.
5932         * sysdeps/m68k/memprof.h: Rename to..
5933         * sysdeps/m68k/memusage.h: ...this.  New file.
5934         * sysdeps/mips/memprof.h: Rename to..
5935         * sysdeps/mips/memusage.h: ...this.  New file.
5936         * sysdeps/powerpc/memprof.h: Rename to..
5937         * sysdeps/powerpc/memusage.h: ...this.  New file.
5938         * sysdeps/sparc/memprof.h: Rename to..
5939         * sysdeps/sparc/memusage.h: ...this.  New file.
5940         * sysdeps/sh/memprof.h: Rename to..
5941         * sysdeps/sh/memusage.h: ...this.  New file.
5942
5943         * elf/sprof.c (print_version): Update year.
5944
5945         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5946         table entry values.  Use D_PTR.
5947         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5948         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5949
5950 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5951
5952         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5953         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5954         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5955         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5956
5957 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5958
5959         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5960
5961 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5962
5963         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5964         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5965         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5966
5967         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5968
5969         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5970         kernel change.
5971
5972         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5973         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5974         structure.
5975         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5976         implementation.
5977
5978 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5979
5980         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5981
5982 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5983
5984         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5985
5986 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5987
5988         * iconv/gconv_int.h (strict gconv_module): Remove all members
5989         associated with regular expressions.  Use a simple string as the
5990         from name.
5991         * iconv/gconv_db.c: Remove code handling regular expressions.
5992         * iconv/gconv_conf.c: Likewise.
5993         * iconv/iconv_prog.c: Likewise.
5994         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5995
5996         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5997         General namespace cleanup.
5998         (struct __gconv_trans_data): Add next field.
5999         (struct __gconv_step_data): Make __trans a pointer.
6000         * iconv/gconv_conf.c: Split out code to find gconv directories from
6001         __gconv_read_conf in new functions.
6002         * iconv/gconv_int.h: Define new data structure and declare new
6003         functions for handling of gconv directory list.
6004         * iconv/gconv_open.c: Allow more than one error handling step being
6005         used.  Call function to load error handling module if it is none
6006         of the builtin transformations.
6007         * iconv/gconv_close.c: Add code to free transliteration data.
6008         * iconv/gconv_trans.c: Add functions to load and unload modules
6009         implementing transliteration etc.
6010         * iconv/skeleton.c: Call all context functions now that more than
6011         one module is allowed.
6012         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6013         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6014         where the full error handling using transliteration is needed.
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         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6040         structure correctly after last change.
6041         * wcsmbs/btowc.c: Likewise.
6042         * wcsmbs/mbrtowc.c: Likewise.
6043         * wcsmbs/mbsnrtowcs.c: Likewise.
6044         * wcsmbs/mbsrtowcs.c: Likewise.
6045         * wcsmbs/wcrtomb.c: Likewise.
6046         * wcsmbs/wcsnrtombs.c: Likewise.
6047         * wcsmbs/wcsrtombs.c: Likewise.
6048         * wcsmbs/wctob.c: Likewise.
6049
6050         * localedata/Makefile: Set -Wno-format for some files since gcc does
6051         not know all the format specifiers.
6052
6053 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6054
6055         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6056         unneeded code.
6057         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6058
6059 2000-06-18  Andreas Jaeger  <aj@suse.de>
6060
6061         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6062         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6063
6064 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6065
6066         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6067         LINUX_LINK_MAX.
6068         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6069
6070         * locale/programs/ld-ctype.c (ctype_output): Really write out
6071         mboutdigits information.
6072         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6073         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6074         * localedata/tests/trans.def: Add outdigit information.
6075
6076         * localedata/tst-mbswcs3.c: Remove comment.
6077
6078         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6079         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6080         * libio/tst_wprintf.c (main): Add test for I flag.
6081
6082         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6083         * locale/langinfo.h: Add entries for translit_ignore information.
6084         * locale/categories.def: Add entries for new LC_CTYPE elements.
6085         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6086         pointer instead of "" where possible.
6087         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6088         * intl/Depend: Add localedata.
6089         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6090         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6091
6092 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6093
6094         * locale/langinfo.h: Add entries for default_missing information.
6095         * locale/C-ctype.c: Add initializers for new fields.
6096         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6097         information.
6098         * locale/categories.h: Add entries for all LC_CTYPE values.
6099         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6100         information.
6101
6102         * localedata/tst-trans.c: Write out an error message if class is
6103         not found.
6104
6105         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6106         * iconv/gconv_open.c: Remove error handling specification from `from'
6107         character set name.
6108         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6109         new parameter to always enable transliteration.
6110         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6111         change.
6112         (struct locale_data): Add new members use_translit and options.
6113         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6114         character set name contained modifier TRANSLIT.
6115         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6116         and options fields.
6117         (_nl_unload_locale): Free options string if necessary.
6118         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6119         the locale names suggested this.
6120         * locale/C-address.c: Add two new initialilzers to adjust data
6121         structure for new format.
6122         * locale/C-collate.c: Likewise.
6123         * locale/C-ctype.c: Likewise.
6124         * locale/C-identification.c: Likewise.
6125         * locale/C-measurement.c: Likewise.
6126         * locale/C-messages.c: Likewise.
6127         * locale/C-monetary.c: Likewise.
6128         * locale/C-name.c: Likewise.
6129         * locale/C-numeric.c: Likewise.
6130         * locale/C-paper.c: Likewise.
6131         * locale/C-telephone.c: Likewise.
6132         * locale/C-time.c: Likewise.
6133
6134         * locale/setlocale.c: Add some more __builtin_expect.
6135
6136 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6137
6138         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6139         unsigned char **.
6140         (__gconv_init_fct): Remove two parameters.
6141         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6142         gconv_transliterate.  Remove two parameters.
6143         Change prototypes of builtin functions according to __gconv_fct change.
6144         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6145         != NULL only during error handling.  Stop in this case after the
6146         conversion.
6147         * iconv/gconv_trans.c: Replace with real implementation for
6148         __gconv_transliterate.
6149         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6150         * iconv/gconv.c: Change calls to downstream functions once again.
6151         Use NULL for the fifth parameter instead of pointer to output buffer.
6152         * libio/iofwide.c: Likewise.
6153         * wcsmbs/btowc.c: Likewise.
6154         * wcsmbs/mbrtowc.c: Likewise.
6155         * wcsmbs/mbsnrtowcs.c: Likewise.
6156         * wcsmbs/mbsrtowcs.c: Likewise.
6157         * wcsmbs/wcrtomb.c: Likewise.
6158         * wcsmbs/wcsnrtombs.c: Likewise.
6159         * wcsmbs/wcsrtombs.c: Likewise.
6160         * wcsmbs/wctob.c: Likewise.
6161         * iconv/gconv_simple.c: Remove two parameters from error handling
6162         function call.
6163         * iconvdata/8bit-gap.c: Likewise.
6164         * iconvdata/8bit-generic.c: Likewise.
6165         * iconvdata/ansi_x3.110.c: Likewise.
6166         * iconvdata/big5.c: Likewise.
6167         * iconvdata/big5hkscs.c: Likewise.
6168         * iconvdata/euc-cn.c: Likewise.
6169         * iconvdata/euc-jp.c: Likewise.
6170         * iconvdata/euc-kr.c: Likewise.
6171         * iconvdata/euc-tw.c: Likewise.
6172         * iconvdata/gbgbk.c: Likewise.
6173         * iconvdata/gbk.c: Likewise.
6174         * iconvdata/iso-2022-cn.c: Likewise.
6175         * iconvdata/iso-2022-jp.c: Likewise.
6176         * iconvdata/iso-2022-kr.c: Likewise.
6177         * iconvdata/iso646.c: Likewise.
6178         * iconvdata/iso8859-1.c: Likewise.
6179         * iconvdata/iso_6937-2.c: Likewise.
6180         * iconvdata/iso_6937.c: Likewise.
6181         * iconvdata/johab.c: Likewise.
6182         * iconvdata/sjis.c: Likewise.
6183         * iconvdata/t.61.c: Likewise.
6184         * iconvdata/uhc.c: Likewise.
6185         * iconvdata/unicode.c: Likewise.
6186         * iconvdata/utf-16.c: Likewise.
6187
6188 2000-06-15  Greg McGary  <greg@mcgary.org>
6189
6190         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6191         of callnum assignment.  Tolerate callnum expressions containing
6192         parens.
6193
6194 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6195
6196         * login/Makefile (utmpd): Remove rule to build utmpd.
6197
6198         * csu/Versions: Move libgcc frame handling functions from here...
6199         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6200         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6201         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6202         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6203         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6204         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6205         New file.
6206         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6207
6208         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6209
6210         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6211
6212 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6213
6214         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6215         compatibility.
6216         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6217         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6218         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6219         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6220
6221 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6222
6223         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6224         defined, terminate quotes and read them after the comment char.
6225         * configure.in (HAVE_SECTION_QUOTES): Test whether
6226         __attribute__((section ("x"))) puts quotes around x or not.
6227         * config.h.in (HAVE_SECTION_QUOTES): Add.
6228         * configure: Rebuilt.
6229
6230 2000-06-14  Andreas Jaeger  <aj@suse.de>
6231
6232         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6233         depending on the configure option --sysconfdir.
6234         Closes PR libc/1762.
6235         Patch by Andreas Schwab <schwab@suse.de>.
6236
6237         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6238         entry point.
6239         Reported by Jim Pick <jim@jimpick.com>.
6240
6241 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6242
6243         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6244         crashing the application.  Emit some simple error message.
6245         Reported by mju@panasas.com [PR libc/1769].
6246
6247 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6248
6249         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6250
6251         * crypt/Makefile (distribute): Add md5.h.
6252
6253         * Makefile (distribute): Add include/shlib-compat.h.
6254
6255         * Make-dist: Search for tests also in sysdeps hierachy.
6256
6257         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6258         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6259
6260         * sysdeps/sparc/Subdirs: New file.
6261
6262         * locale/Makefile (distribute): Add weightwc.h and
6263         programs/localedef.h.
6264
6265         * time/Makefile (distribute): Add datemsk.
6266
6267         * sysdeps/ia64/Dist: Add softpipe.h.
6268
6269         * sysdeps/unix/sysv/aix/Dist: New file.
6270
6271         * posix/setpgrp.c: Moved to...
6272         * sysdeps/generic/setpgrp.c: ...here.  New file.
6273         * io/mknod.c: Moved to...
6274         * sysdeps/generic/mknod.c: ...here.  New file.
6275
6276         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6277
6278         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6279
6280         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6281
6282         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6283         gprsave0.S, gprrest1.S, and gprrest0.S.
6284
6285         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6286
6287         * posix/Makefile (routines): Add spawnattr_getsigmask,
6288         spawnattr_getschedpolicy, spawnattr_getschedparam,
6289         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6290         spawnattr_setschedparam.
6291         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6292         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6293         posix_spawnattr_setschedparam.
6294
6295         * posix/spawnattr_setschedparam.c: Fix typo.
6296
6297         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6298         Correct typo.
6299
6300         * login/programs/utmpd.c: Removed.
6301         * login/programs/utmpd.h: Removed.
6302         * login/programs/utmpd-private.h: Removed.
6303
6304         * Makefile (distribute): Add include/db_185.h and include/db.h.
6305
6306         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6307         iso-ir-165.h.
6308
6309         * elf/Makefile (distribute): Add missing files.
6310
6311         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6312         * elf/eval.c: Moved to...
6313         * dlfcn/eval.c: ...here.  New file.
6314
6315         * Makefile (distribute): Also distribute ChangeLog.1?.
6316
6317         * Make-dist (+tsrcs): Remove .args handling here as well.
6318
6319         * rt/Makefile (tests): Add tst-timer.
6320         * sysdeps/generic/tst-timer.c: New file.
6321
6322         * Makerules (sources): Don't add BP sources here.
6323
6324         * login/Makefile (distribute): Remove xtmp.h.
6325
6326         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6327         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6328
6329 2000-06-13  Andreas Jaeger  <aj@suse.de>
6330
6331         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6332         Patch by Ralf Baechle <ralf@gnu.org>.
6333
6334 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6335
6336         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6337         for mincore syscall.
6338
6339         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6340         __BOUNDED_POINTERS__ is not defined.
6341
6342 2000-06-07  Greg McGary  <greg@mcgary.org>
6343
6344         * sysdeps/generic/bp-sym.h: New file.
6345         * sysdeps/generic/bp-start.h: New file.
6346         * sysdeps/i386/elf/start.S: Designate BP symbols.
6347         * sysdeps/generic/libc-start.c: Wrap bounds around
6348         argv & envp and each of their string members.
6349
6350 2000-06-07  Greg McGary  <greg@mcgary.org>
6351
6352         * sysdeps/unix/make-syscalls.sh: Add comments to
6353         output that aid debugging & comprehension.
6354         Map simple syscall signatures to number of args.
6355         Generate BP syscall thunk definitions.
6356         * sysdeps/generic/bp-thunks.h: New file.
6357         * sysdeps/unix/syscalls.list: Replace arg-count with
6358         simple return+arg signature.
6359         * sysdeps/unix/common/syscalls.list: Likewise.
6360         * sysdeps/unix/inet/syscalls.list: Likewise.
6361         * sysdeps/unix/mman/syscalls.list: Likewise.
6362         * sysdeps/unix/sysv/syscalls.list: Likewise.
6363         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6364         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6365
6366 2000-06-07  Greg McGary  <greg@mcgary.org>
6367
6368         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6369         for all files *.[cS].
6370         (CFLAGS-.ob): Don't optimize sibling calls.
6371         (bppfx): New variable.
6372         * Makerules (elide-bp-thunks): New variable.
6373         (elide-routines.*): Elide BP-* files for all but *.ob.
6374         (sources): Include bp-thunks.
6375
6376 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6377
6378         * iconv/gconv_simple.c: Remove unnecessary prototype.
6379
6380         * iconv/gconv_trans.c: Pretty print.
6381
6382         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6383
6384         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6385         minimal kernel versions.  Add information about IA-64 kernel.
6386
6387         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6388         specific minimal supported kernel versions to be specified.
6389
6390         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6391         step data structure.
6392         * wcsmbs/btowc.c: Likewise.
6393         * wcsmbs/mbrtowc.c: Likewise.
6394         * wcsmbs/mbsnrtowcs.c: Likewise.
6395         * wcsmbs/mbsrtowcs.c: Likewise.
6396         * wcsmbs/wcrtomb.c: Likewise.
6397         * wcsmbs/wcsnrtombs.c: Likewise.
6398         * wcsmbs/wcsrtombs.c: Likewise.
6399         * wcsmbs/wctob.c: Likewise.
6400
6401         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6402         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6403
6404         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6405
6406         * misc/sys/cdefs.h: Remove one more __P.
6407
6408         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6409         Reported by HJ Lu.
6410
6411         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6412         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6413         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6414
6415 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6416             Yutaka Niibe  <gniibe@chroot.org>
6417
6418         * configure.in: Add machine sh3, sh4.
6419         * elf/elf.h: Add SH specific declarations of relocations.
6420         * shlib-versions: Add sh*-*-linux* cases.
6421
6422 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6423
6424         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6425         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6426         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6427         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6428         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6429         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6430
6431         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6432         instead of KERNEL_MATH_EMULATION.
6433         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6434         KERNEL_MATH_EMULATION.
6435
6436         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6437         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6438         * sysdeps/sh/dl-machine.h: ...here.  New file.
6439         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6440         and include generic SH version.
6441         * sysdeps/sh/sh3/bits/endian.h: Move to...
6442         * sysdeps/sh/bits/endian.h: ...here.  New file.
6443         * sysdeps/sh/sh4/bits/endian.h: Removed.
6444         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6445         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6446         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6447
6448         * include/libc-symbols.h (link_warning): Work around a change in
6449         GAS which warns about changing section attributes.
6450         Proposed by Nick Clifton <nickc@redhat.com>.
6451
6452 2000-06-12  H.J. Lu  <hjl@gnu.org>
6453
6454         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6455
6456 2000-06-11  H.J. Lu  <hjl@gnu.org>
6457
6458         * sysdeps/i386/fpu/Versions: New file.
6459
6460 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6461
6462         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6463         parameters.
6464         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6465         exists.
6466
6467 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6468
6469         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6470         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6471         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6472
6473         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6474         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6475         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6476
6477 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6478             Yutaka Niibe  <gniibe@chroot.org>
6479
6480         * sysdeps/sh/Dist: New file.
6481         * sysdeps/sh/Implies: New file.
6482         * sysdeps/sh/elf/initfini.c: New file.
6483         * sysdeps/sh/gmp-mparam.h: New file.
6484         * sysdeps/sh/init-first.c: New file.
6485         * sysdeps/sh/machine-gmon.h: New file.
6486         * sysdeps/sh/memcpy.S: New file.
6487         * sysdeps/sh/memprof.h: New file.
6488         * sysdeps/sh/memset.S: New file.
6489         * sysdeps/sh/sh3/__longjmp.S: New file.
6490         * sysdeps/sh/sh3/bits/endian.h: New file.
6491         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6492         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6493         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6494         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6495         * sysdeps/sh/sh3/dl-machine.h: New file.
6496         * sysdeps/sh/sh3/setjmp.S: New file.
6497         * sysdeps/sh/sh4/__longjmp.S: New file.
6498         * sysdeps/sh/sh4/bits/endian.h: New file.
6499         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6500         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6501         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6502         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6503         * sysdeps/sh/sh4/dl-machine.h: New file.
6504         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6505         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6506         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6507         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6508         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6509         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6510         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6511         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6512         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6513         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6514         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6515         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6516         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6517         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6518         * sysdeps/sh/sh4/setjmp.S: New file.
6519         * sysdeps/sh/elf/start.S: New file.
6520         * sysdeps/sh/sys/ucontext.h: New file.
6521         * sysdeps/sh/strlen.S: New file.
6522         * sysdeps/sh/sysdep.h: New file.
6523         * sysdeps/unix/sh/sysdep.S: New file.
6524         * sysdeps/unix/sh/sysdep.h: New file.
6525         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6526         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6527         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6528         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6529         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6530         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6531         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6532         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6533         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6534         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6535         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6536         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6537         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6538         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6539         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6540         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6541         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6542         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6543         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6544         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6545         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6546         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6547         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6548         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6549         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6550         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6551         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6552         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6553         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6554         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6555         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6556         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6557         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6558         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6559         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6560         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6561         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6562         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6563         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6564         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6565         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6566         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6567         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6568         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6569         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6570         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6571         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6572         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6573         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6574         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6575
6576 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6577
6578         * Rules (%.out): Define GCONV_PATH in the environment.
6579         * assert/Depend: New file.
6580         * iconvdata/Depend: New file.
6581         * intl/Depend: New file.
6582         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6583         * intl/tst-gettext.sh: Likewise.
6584         * iconv/Makefile (routines): Add gconv_trans.
6585         * iconv/gconv_trans.c: New file.
6586         * iconv/gconv.h (struct __gconv_trans_data): New type.
6587         (__gconv_fct): New parameter with starting position in output buffer.
6588         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6589         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6590         (struct __gconv_step): Add new member __trans.
6591         * iconv/gconv_int.h: Pretty print prototypes.
6592         (gconv_transliterate): New prototype.
6593         (__BUILTIN_TRANS): Update for new conversion function interface.
6594         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6595         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6596         in names, find appropriate function, and install in the conversion
6597         steps it can be used.
6598         * iconv/skeleton.c: Add additional parameter for beginning of output
6599         buffer.  Change calls of downstream functions.
6600         * iconv/loop.c: Change loop function interface completely.  Pass in
6601         step and step_data structure.  Remove optimization for BODY with
6602         NEED_LENGTH_TEST == 0.
6603         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6604         appropriate error handling code to use transliteration steps.  Remove
6605         optimization for BODY with NEED_LENGTH_TEST == 0.
6606         * iconvdata/8bit-gap.c: Likewise.
6607         * iconvdata/8bit-generic.c: Likewise.
6608         * iconvdata/ansi_x3.110.c: Likewise.
6609         * iconvdata/big5.c: Likewise.
6610         * iconvdata/big5hkscs.c: Likewise.
6611         * iconvdata/euc-cn.c: Likewise.
6612         * iconvdata/euc-jp.c: Likewise.
6613         * iconvdata/euc-kr.c: Likewise.
6614         * iconvdata/euc-tw.c: Likewise.
6615         * iconvdata/gbgbk.c: Likewise.
6616         * iconvdata/gbk.c: Likewise.
6617         * iconvdata/iso-2022-cn.c: Likewise.
6618         * iconvdata/iso-2022-jp.c: Likewise.
6619         * iconvdata/iso-2022-kr.c: Likewise.
6620         * iconvdata/iso646.c: Likewise.
6621         * iconvdata/iso8859-1.c: Likewise.
6622         * iconvdata/iso_6937-2.c: Likewise.
6623         * iconvdata/iso_6937.c: Likewise.
6624         * iconvdata/johab.c: Likewise.
6625         * iconvdata/sjis.c: Likewise.
6626         * iconvdata/t.61.c: Likewise.
6627         * iconvdata/uhc.c: Likewise.
6628         * iconvdata/unicode.c: Likewise.
6629         * iconvdata/utf-16.c: Likewise.
6630         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6631         DL_CALL_FCT.
6632         * wcsmbs/btowc.c: Likewise.
6633         * wcsmbs/mbrtowc.c: Likewise.
6634         * wcsmbs/mbsnrtowcs.c: Likewise.
6635         * wcsmbs/mbsrtowcs.c: Likewise.
6636         * wcsmbs/wcrtomb.c: Likewise.
6637         * wcsmbs/wcsnrtombs.c: Likewise.
6638         * wcsmbs/wcsrtombs.c: Likewise.
6639         * wcsmbs/wctob.c: Likewise.
6640
6641 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6642
6643         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6644         other header files.  Mention about 128-byte cache line sizes.
6645         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6646         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6647         for current calling sequence.
6648         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6649
6650         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6651         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6652
6653         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6654         and setrlimit syscalls for backwards compatibility.
6655
6656 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6657
6658         * iconv/skeleton.c:  Rename converted written to correcter name
6659         irreversible.
6660         * iconv/gconv.c: Rename converted variable to correcter name
6661         irreversible.
6662         * iconv/gconv_int.h: Likewise.
6663         * iconv/gconv_simple.c: Likewise.
6664         * iconv/iconv.c: Likewise.
6665         * iconv/loop.c: Likewise.
6666         * iconvdata/8bit-gap.c: Likewise.
6667         * iconvdata/8bit-generic.c: Likewise.
6668         * iconvdata/ansi_x3.110.c: Likewise.
6669         * iconvdata/big5.c: Likewise.
6670         * iconvdata/big5hkscs.c: Likewise.
6671         * iconvdata/euc-cn.c: Likewise.
6672         * iconvdata/euc-jp.c: Likewise.
6673         * iconvdata/euc-kr.c: Likewise.
6674         * iconvdata/gbgbk.c: Likewise.
6675         * iconvdata/gbk.c: Likewise.
6676         * iconvdata/iso-2022-cn.c: Likewise.
6677         * iconvdata/iso-2022-jp.c: Likewise.
6678         * iconvdata/iso-2022-kr.c: Likewise.
6679         * iconvdata/iso646.c: Likewise.
6680         * iconvdata/iso8859-1.c: Likewise.
6681         * iconvdata/iso_6937-2.c: Likewise.
6682         * iconvdata/iso_6937.c: Likewise.
6683         * iconvdata/johab.c: Likewise.
6684         * iconvdata/sjis.c: Likewise.
6685         * iconvdata/t.61.c: Likewise.
6686         * iconvdata/uhc.c: Likewise.
6687         * iconvdata/unicode.c: Likewise.
6688         * iconvdata/utf-16.c: Likewise.
6689
6690         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6691         __cmsg_data field with __extension__.
6692
6693 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6694
6695         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6696
6697 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6698
6699         * iconv/gconv_simple.c: Fix various small bugs in several
6700         functions.
6701
6702         * iconv/loop.c: Fix comment.
6703
6704 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6705
6706         * elf/link.h: Remove libc internal declarations.
6707         * include/link.h: Move them here.
6708
6709 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6710
6711         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6712         Patch by Dan Pop <Dan.Pop@cern.ch>.
6713
6714         Rewrite error message handling.
6715         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6716         _dl_catch_error.
6717         * elf/dl-error (struct catch): Add objname member.
6718         (_dl_signal_error): Take new parameter with object name.  When
6719         passing message on simply store object name and duplicate error
6720         message.
6721         (_dl_catch_error): Take new parameter.  Store object name in the
6722         place pointed to.
6723         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6724         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6725         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6726         (dlerror): Add objname to asprintf() parameters.
6727         (_dl_error_run): Pass new parameter to _dl_catch_error.
6728         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6729         * elf/dl-open.c (_dl_open): Likewise.
6730         * elf/rtld.c (dl_main): Likewise.
6731         * elf/dl-close.c: Mark error messages with N_().
6732         * elf/dl-deps.c: Likewise.
6733         * elf/dl-error.c: Likewise.
6734         * elf/dl-load.c: Likewise.
6735         * elf/dl-open.c: Likewise.
6736         * elf/dl-reloc.c: Likewise.
6737         * elf/dl-support.c: Likewise.
6738         * elf/dl-sym.c: Likewise.
6739         * elf/dl-version.c: Likewise.
6740         * elf/dl-lookup.c: Add comments about problems with error message
6741         translations.
6742         * elf/dl-reloc.c: Likewise.
6743         * elf/dl-version.c: Likewise.
6744
6745 2000-06-09  H.J. Lu  <hjl@gnu.org>
6746
6747         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6748         after freeing it.
6749
6750         * dlfcn/Makefile (distribute): Add failtestmod.c.
6751         (tests): Add failtest.
6752         Add rules to build and run failtest.
6753         * dlfcn/failtest.c: New file.
6754         * dlfcn/failtestmod.c: New file.
6755
6756 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6757
6758         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6759         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6760         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6761         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6762         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6763
6764 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6765
6766         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6767         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6768
6769 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6770             Ulrich Drepper  <drepper@redhat.com>
6771
6772         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6773         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6774         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6775         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6776         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6777         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6778
6779 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6780
6781         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6782         to find correct mount point despite wrong information from the
6783         kernel.
6784
6785 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6786
6787         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6788         the address of a symbol so function pointers are handled properly.
6789
6790 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6791
6792         * sysdeps/i386/Dist: Add bp-asm.h.
6793
6794         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6795         defaultdir variable instead of "/var/shm" everywhere.
6796         (defaultdir): Change to /dev/shm/.
6797
6798 2000-06-08  Greg McGary  <greg@mcgary.org>
6799
6800         * sysdeps/i386/bp-asm.h: New file.
6801         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6802         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6803         frame-pointer chain when debugging.
6804         * sysdeps/i386/add_n.S: Likewise.
6805         * sysdeps/i386/addmul_1.S: Likewise.
6806         * sysdeps/i386/lshift.S: Likewise.
6807         * sysdeps/i386/memchr.S: Likewise.
6808         * sysdeps/i386/memcmp.S: Likewise.
6809         * sysdeps/i386/mul_1.S: Likewise.
6810         * sysdeps/i386/rawmemchr.S: Likewise.
6811         * sysdeps/i386/rshift.S: Likewise.
6812         * sysdeps/i386/stpcpy.S: Likewise.
6813         * sysdeps/i386/stpncpy.S: Likewise.
6814         * sysdeps/i386/strchr.S: Likewise.
6815         * sysdeps/i386/strchrnul.S: Likewise.
6816         * sysdeps/i386/strcspn.S: Likewise.
6817         * sysdeps/i386/strpbrk.S: Likewise.
6818         * sysdeps/i386/strrchr.S: Likewise.
6819         * sysdeps/i386/strspn.S: Likewise.
6820         * sysdeps/i386/strtok.S: Likewise.
6821         * sysdeps/i386/sub_n.S: Likewise.
6822         * sysdeps/i386/submul_1.S: Likewise.
6823         * sysdeps/i386/elf/setjmp.S: Likewise.
6824         * sysdeps/i386/i486/strcat.S: Likewise.
6825         * sysdeps/i386/i486/strlen.S: Likewise.
6826         * sysdeps/i386/i586/add_n.S: Likewise.
6827         * sysdeps/i386/i586/lshift.S: Likewise.
6828         * sysdeps/i386/i586/memcpy.S: Likewise.
6829         * sysdeps/i386/i586/memset.S: Likewise.
6830         * sysdeps/i386/i586/rshift.S: Likewise.
6831         * sysdeps/i386/i586/strchr.S: Likewise.
6832         * sysdeps/i386/i586/strcpy.S: Likewise.
6833         * sysdeps/i386/i586/strlen.S: Likewise.
6834         * sysdeps/i386/i586/sub_n.S: Likewise.
6835         * sysdeps/i386/i686/add_n.S: Likewise.
6836         * sysdeps/i386/i686/memcpy.S: Likewise.
6837         * sysdeps/i386/i686/mempcpy.S: Likewise.
6838         * sysdeps/i386/i686/memset.S: Likewise.
6839         * sysdeps/i386/i686/strcmp.S: Likewise.
6840
6841 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6842
6843         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6844
6845         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6846         256 and don't use OPEN_MAX.
6847
6848         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6849         use it instead of LINK_MAX.
6850         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6851
6852 2000-06-08  Andreas Jaeger  <aj@suse.de>
6853
6854         * libio/genops.c (_IO_list_lock): Only compile body if we're
6855         thread safe.
6856         (_IO_list_unlock): Likewise.
6857         (_IO_list_resetlock): Likewise.
6858
6859 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6860
6861         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6862         unless user defined it.
6863
6864         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6865         if not defined by the user.
6866
6867         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6868         * libio/iofwrite.c (_IO_fwrite): Likewise.
6869
6870         * time/time.h: Add missing __THROW for clock_getcpuclockid
6871         prototype.
6872
6873         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6874         * include/elf.h: Include also <dl-dtprocnum.h>.
6875         * elf/dl-deps.c: Likewise.
6876         * elf/dl-lookup.c: Likewise.
6877         * elf/dl-runtime.c: Likewise.
6878         * elf/dl-version.c: Likewise.
6879         * elf/do-rel.h: Likewise.
6880         * elf/dynamic-link.h: Likewise.
6881         * elf/link.h: Likewise.
6882         * elf/rtld.c: Likewise.
6883         * sysdeps/generic/dl-dtprocnum.h: New file.
6884         * sysdeps/ia64/dl-dtprocnum.h: New file.
6885         * sysdeps/mips/dl-dtprocnum.h: New file.
6886         * sysdeps/sparc/dl-dtprocnum.h: New file.
6887
6888         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6889
6890         * elf/do-lookup.h: Add some __builtin_expect.
6891
6892         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6893
6894         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6895         (_dl_dynamic_weak): New variable.
6896         * elf/dl-support.c: Likewise.
6897         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6898         * elf/do-lookup.h: If we find a weak definition treat it like a
6899         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6900         case treat it like before.
6901
6902         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6903         is in main program.
6904         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6905
6906         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6907         using l_map_start and l_map_end.
6908
6909         * elf/dl-version.c: Add __builtin_expect in many places.
6910
6911         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6912         Update.
6913
6914 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6915
6916         Lock for stdio stream list becomes global, for use in LinuxThreads.
6917
6918         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6919         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6920         _IO_list_resetlock): New interface for iterating global list of
6921         streams without accessing the _IO_list_all global variable,
6922         and for manipulating the lock which protects this list.
6923         * libio/libioP.h: Likewise.
6924         * libio/Version: Add entries for the new functions.
6925
6926         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6927         pointer to _IO_FILE.
6928
6929 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6930
6931         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6932         BIT() must actually be BITw().
6933
6934         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6935
6936         * locale/programs/charmap.c: Allow string arguments for
6937         code_set_name and repertoiremap.
6938
6939 2000-06-07  Andreas Jaeger  <aj@suse.de>
6940
6941         * elf/Makefile: Build ldconfig only when building shared libraries.
6942
6943 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6944
6945         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6946         __USE_ISOC99.
6947         (fdimf, __fdim, fdim): Likewise.
6948
6949 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6950
6951         * locale/findlocale.c: Add __builtin_expect in many places.
6952         * locale/loadlocale.c: Likewise.
6953
6954 2000-06-06  Greg McGary  <greg@mcgary.org>
6955
6956         * sysdeps/mips/elf/start.S: Trim redundant code.
6957
6958         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6959         Use C comments throughout.  Line up operands column with tabs.
6960         * sysdeps/powerpc/strchr.S: Likewise.
6961         * sysdeps/powerpc/strcmp.S: Likewise.
6962         * sysdeps/powerpc/strcpy.S: Likewise.
6963         * sysdeps/powerpc/strlen.S: Likewise.
6964
6965         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6966         Get low part of &__curbrk with @l.
6967
6968 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6969
6970         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6971         * iconvdata/unicode.c: Likewise.
6972         * iconvdata/uhc.c: Likewise.
6973         * iconvdata/t.61.c: Likewise.
6974         * iconvdata/sjis.c: Likewise.
6975         * iconvdata/johab.c: Likewise.
6976         * iconvdata/iso_6937.c: Likewise.
6977         * iconvdata/iso_6937-2.c: Likewise.
6978         * iconvdata/iso8859-1.c: Likewise.
6979         * iconvdata/iso646.c: Likewise.
6980         * iconvdata/iso-2022-kr.c: Likewise.
6981         * iconvdata/iso-2022-jp.c: Likewise.
6982         * iconvdata/iso-2022-cn.c: Likewise.
6983         * iconvdata/gbgbk.c: Likewise.
6984         * iconvdata/gbk.c: Likewise.
6985         * iconvdata/euc-kr.c: Likewise.
6986         * iconvdata/euc-jp.c: Likewise.
6987         * iconvdata/euc-cn.c: Likewise.
6988
6989 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6990
6991         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6992         * iconvdata/big5.c: Likewise.
6993         * iconvdata/ansi_x3.110.c: Likewise.
6994         * iconvdata/8bit-generic.c: Likewise.
6995         * iconvdata/8bit-gap.c: Likewise.
6996         * iconv/loop.c: Likewise.
6997         * iconv/gconv_db.c: Likewise.
6998         * iconv/gconv_dl.c: Likewise.
6999         * iconv/gconv_simple.c: Likewise.
7000         * iconv/skeleton.c: Likewise.
7001
7002         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7003         (struct __gconv_step_data): Rename __is_last to __flags.
7004         * iconv/gconv_close.c: Change all uses of __is_last.
7005         * iconv/skeleton.c: Likewise.
7006         * iconvdata/iso-2022-cn.c: Likewise.
7007         * iconvdata/iso-2022-jp.c: Likewise.
7008         * iconvdata/iso-2022-kr.c: Likewise.
7009         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7010         Recognize IGNORE error handling, set flag, and remove from name.
7011         * iconv/loop.c (ignore_errors_p): Define.
7012         Add flags parameter to both functions.
7013         * iconv/skeleton.c: Pass flags to all conversion functions.
7014         * iconv/gconv_simple.c: Add flags parameter to all functions.
7015         Don't return error for invald error if ignore flag is set.
7016         (ucs4_internal_loop_single): Add missing pointer increment.
7017         (internal_ucs4le_loop_single): Likewise.
7018         * iconv/iconv_prog.c: Implement handling of -c parameter.
7019         * iconvdata/8bit-gap.c: Don't return error for invald error if
7020         ignore flag is set.
7021         * iconvdata/8bit-generic.c: Likewise.
7022         * iconvdata/ansi_x3.110.c: Likewise.
7023         * iconvdata/big5.c: Likewise.
7024         * iconvdata/big5hkscs.c: Likewise.
7025         * iconvdata/euc-cn.c: Likewise.
7026         * iconvdata/euc-jp.c: Likewise.
7027         * iconvdata/euc-kr.c: Likewise.
7028         * iconvdata/gbgbk.c: Likewise.
7029         * iconvdata/gbk.c: Likewise.
7030         * iconvdata/iso-2022-cn.c: Likewise.
7031         * iconvdata/iso-2022-jp.c: Likewise.
7032         * iconvdata/iso-2022-kr.c: Likewise.
7033         * iconvdata/iso646.c: Likewise.
7034         * iconvdata/iso8859-1.c: Likewise.
7035         * iconvdata/iso_6937-2.c: Likewise.
7036         * iconvdata/iso_6937.c: Likewise.
7037         * iconvdata/johab.c: Likewise.
7038         * iconvdata/sjis.c: Likewise.
7039         * iconvdata/t.61.c: Likewise.
7040         * iconvdata/uhc.c: Likewise.
7041         * iconvdata/unicode.c: Likewise.
7042         * iconvdata/utf-16.c: Likewise.
7043         * libio/fileops.c: Likewise.
7044         * libio/iofwide.c: Likewise.
7045         * wcsmbs/btowc.c: Likewise.
7046         * wcsmbs/mbrtowc.c: Likewise.
7047         * wcsmbs/mbsnrtowcs.c: Likewise.
7048         * wcsmbs/mbsrtowcs.c: Likewise.
7049         * wcsmbs/wcrtomb.c: Likewise.
7050         * wcsmbs/wcsnrtombs.c: Likewise.
7051         * wcsmbs/wcsrtombs.c: Likewise.
7052         * wcsmbs/wctob.c: Likewise.
7053
7054         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7055         an error.
7056
7057 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7058
7059         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7060         counter for the object we are releasing, just decrement it.
7061         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7062
7063 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7064
7065         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7066         if -ffast-math.
7067
7068 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7069
7070         * iconvdata/big5hkscs.c: New file.
7071         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7072
7073         * iconvdata/gconv-modules: Add entry for new module.
7074         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7075         (distribute): Add big5hkscs.c.
7076
7077 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7078
7079         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7080         inlines to match prototypes in mathcalls.h.
7081         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7082         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7083         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7084         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7085
7086 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7087
7088         * elf/elf.h (SHT_SUNW_move): Define.
7089
7090         * elf/elf.h: Add more Solaris compatiblity definitions.
7091
7092 2000-06-03  Andreas Jaeger  <aj@suse.de>
7093
7094         * sysdeps/powerpc/dl-start.S: Close open comment.
7095
7096 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7097
7098         * inet/Versions: Fix typo in rresvport_af export.
7099
7100 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7101
7102         * math/tgmath.h: Pretty print.
7103
7104 2000-06-02  Andreas Jaeger  <aj@suse.de>
7105
7106         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7107         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7108
7109 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7110
7111         * elf/rtld.c (process_envvars): Test for = after variable name.
7112
7113 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7114
7115         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7116         have extra call to __gmon_start__, use the pointer we already have.
7117
7118         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7119         shifting.
7120
7121         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7122         binutils.  gas now emits a jump through the PLT instead of a
7123         relative jump if the jump target is an exported symbol.
7124
7125 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7126
7127         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7128
7129 2000-05-31  Andreas Jaeger  <aj@suse.de>
7130
7131         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7132         gregset_t.
7133
7134         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7135         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7136
7137         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7138         syscall.
7139         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7140
7141 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7142
7143         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7144
7145         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7146         * locale/localeconv.c: Make function versioned (with same definition).
7147
7148         * elf/Makefile (modules-names): Strip before using it.
7149
7150 2000-05-30  Andreas Jaeger  <aj@suse.de>
7151
7152         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7153         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7154         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7155         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7156         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7157         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7158
7159 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7160
7161         * Makefile: Add GNU make magic.
7162
7163         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7164         Removed.
7165         * inet/rcmd.c: Remove __P.  Remove unused variables.
7166         (iruserfopen): Make first parameter const.
7167         (ruserok_sa): Return result of ruserok2_sa.
7168         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7169         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7170         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7171         (ruserpass): Check results of memory allocation.
7172         * include/netdb.h: Add prototype for ruserpass.
7173
7174 2000-05-29  Andreas Jaeger  <aj@suse.de>
7175
7176         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7177         for all platforms.
7178
7179 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7180
7181         * inet/rcmd.c (rresvport_af): Use correct port number.
7182
7183 2000-05-26  Andreas Schwab  <schwab@suse.de>
7184
7185         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7186         entries in all-sonames.
7187         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7188         preserving the old name if different for compatibility.
7189
7190 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7191
7192         * posix/Makefile (tests): Add tst-spawn.
7193         (tst-spawn-ARGS): New variable.
7194         * posix/tst-spawn.c: New file.
7195
7196         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7197         * posix/spawn_faction_adddup2.c: Likewise.
7198         * posix/spawn_faction_addopen.c: Likewise.
7199         * posix/spawni.c: Correctly test for success of dup2 calls.
7200
7201         * posix/tst-preadwrite.c: Check success of malloc call.
7202
7203 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7204
7205         * posix/Makefile (tests): Add tst-exec.
7206         (tst-exec-ARGS): New variable.
7207         * posix/tst-exec.c: New file.
7208
7209         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7210
7211 2000-05-04  Andreas Jaeger  <aj@suse.de>
7212
7213         * string/string.h: Remove __strdup prototype, it's not needed in
7214         this file anymore.
7215
7216 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7217
7218         * posix/Makefile (tests): Add tst-fork.
7219         * posix/tst-fork.c: New file.
7220
7221         * resolv/inet_pton.c: Loose __P.
7222
7223 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7224
7225         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7226         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7227         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7228         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7229         _IO_CHECK_WIDE fails.
7230
7231 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7232
7233         * po/da.po: New file.
7234
7235         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7236         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7237
7238         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7239         (Other iconv Implementations): Fix typo.
7240         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7241
7242 2000-05-27  Andreas Jaeger  <aj@suse.de>
7243
7244         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7245         normal version now.
7246         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7247         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7248         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7249         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7250         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7251         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7252
7253         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7254         endianness to decide how to pass arguments.
7255         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7256
7257         * elf/vismain.c: Use test-skeleton interface.
7258         (TEST_FUNCTION): New macro.
7259         (do_test): Renamed from main.
7260
7261 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7262
7263         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7264         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7265
7266         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7267         handling of AI_V4MAPPED flag.
7268
7269         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7270         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7271         perform lookup for T_A type and tell getanswer_r to convert the
7272         result with new argument.
7273         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7274         Don't convert addresses from IPv4 to IPv6 here.
7275         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7276         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7277         IPv4 mapping has to be done.  Perform mappings if required by the
7278         caller and not if RES_USE_INET6 bit in _res.options is set.
7279         Add several __builtin_expect.
7280
7281 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7282
7283         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7284
7285         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7286         NULL.
7287
7288         * posix/tst-preadwrite.c: Allow parallel execution of
7289         tst-preadwrite and tst-preadwrite64.
7290
7291         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7292         * posix/tst-truncate.c: New file.
7293         * posix/tst-truncate64.c: New file.
7294
7295         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7296         was switched.
7297
7298         * posix/Makefile (tests): Add tst-preadwrite64.
7299         * posix/tst-preadwrite.c: Alloc file being used also for testing
7300         pread64 and pwrite64.
7301         * posix/tst-preadwrite64.c: New file.
7302
7303 2000-05-26  Andreas Jaeger  <aj@suse.de>
7304
7305         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7306         of arguments dependend on endianness.
7307         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7308
7309         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7310         normal version now.
7311         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7312         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7313         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7314         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7315
7316         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7317         endianness to check how to pass argument.
7318         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7319
7320         * elf/ldconfig.h: Update parameter list for process_elf_file.
7321
7322         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7323         Add parameter file_length and pass it ot process_elf*file.
7324
7325         * sysdeps/generic/readelflib.c (check_ptr): New.
7326         (process_elf_file): Use check_ptr to check all accesses to the
7327         mmapped file. Add parameter file_length.
7328
7329         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7330         library names.
7331
7332         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7333         Closes PR libc/1573, reported by Bradley White
7334         <bww@laurelnetworks.com>.
7335
7336 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7337
7338         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7339         __FAST_MATH__ is defined.
7340
7341 2000-05-22  Andreas Jaeger  <aj@suse.de>
7342
7343         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7344         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7345
7346         * manual/math.texi (FP Function Optimizations): Document gcc
7347         -ffast-math behaviour with mathinlines.
7348
7349         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7350         functions unless -ffast-math is given to gcc.
7351
7352 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7353
7354         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7355         __sincosl): Guard with __USE_GNU.
7356
7357 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7358
7359         * csu/Makefile (routines): Add check_fds.
7360         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7361         binaries.  Add various __builtin_expect.
7362         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7363         * sysdeps/generic/check_fds.c: ...here.  New file.
7364
7365         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7366         binaries if file /etc/suid-debug is available.
7367
7368         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7369         and wcseqorder members.
7370         (struct locale_collate_t): Likewise.
7371         (collate_finish): Assign collation sequence value to each character.
7372         Create tables for output.
7373         (collate_output): Write out tables with collation sequence information.
7374         * locale/C-collate.c: Provide C locale data for collation sequence
7375         table.
7376         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7377         _NL_COLLATE_COLLSEQWC.
7378         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7379         _NL_COLLATE_COLLSEQWC.
7380         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7381         include fnmatch_loop.c.
7382         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7383         character is matched by range expression.  Use collation sequence
7384         table.  Outside glibc fall back on simple character value comparison.
7385
7386 2000-05-24  Andreas Jaeger  <aj@suse.de>
7387
7388         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7389         words.
7390
7391         * intl/Makefile: Run gettext-test only if msgfmt is available.
7392
7393         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7394         Define it for newer kernels.
7395
7396 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7397
7398         * elf/dl-sym.c: Minor cleanups.
7399
7400         * configure.in: Add test for .protected.
7401         * config.make.in: Add have-protected variable.
7402         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7403         (tests-vis-yes): Add vismain.
7404         (modules-names): Add $(modules-vis-$(have-protected)).
7405         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7406         Add rules to generate and run vismain.
7407         * elf/vismain.c: New file.
7408         * elf/vismod1.c: New file.
7409         * elf/vismod2.c: New file.
7410         * elf/vismod3.c: New file.
7411
7412 2000-05-23  Andreas Jaeger  <aj@suse.de>
7413
7414         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7415
7416         * manual/search.texi (Array Sort Function): Document that qsort is
7417         not necessarily in-place.
7418
7419         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7420         Closes PR libc/1731.
7421
7422         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7423         * dirent/scandir64.c: Likewise.
7424         * pwd/getpw.c: Likewise.
7425         * stdlib/bsearch.c (bsearch): Likewise.
7426         * stdlib/tst-strtoll.c: Likewise.
7427         * localedata/collate-test.c: Likewise.
7428         * localedata/xfrm-test.c: Likewise.
7429         * posix/bsd-getpgrp.c: Likewise.
7430         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7431         * sysdeps/generic/bits/siginfo.h: Likewise.
7432         * sysdeps/generic/bits/sockaddr.h: Likewise.
7433         * sysdeps/generic/sys/swap.h: Likewise.
7434         * sysdeps/generic/sys/sysinfo.h: Likewise.
7435         * sysdeps/generic/vfork.c: Likewise.
7436         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7437         * sysdeps/mach/hurd/fdopen.c: Likewise.
7438         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7439         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7440         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7441         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7442         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7443         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7444         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7445
7446         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7447         * shadow/lckpwdf.c: Likewise.
7448         * stdlib/tst-strtol.c: Likewise.
7449         * sysdeps/generic/tcsetattr.c: Likewise.
7450         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7451         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7452
7453 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7454
7455         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7456         free it and set to (void *) -1.
7457
7458 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7459
7460         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7461         not the second character in the range.
7462         * stdio-common/tstscanf.c (main): Add testcase for the above.
7463         Reported by jik@kamens.brookline.ma.us.
7464
7465 2000-05-21  H.J. Lu  <hjl@gnu.org>
7466
7467         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7468         with noexec and noplt parameter.
7469         (do_lookup): Likewise.
7470
7471         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7472         do_lookup.  Support STV_PROTECTED.
7473         (_dl_lookup_symbol_skip): Likewise.
7474         (_dl_lookup_versioned_symbol): Likewise.
7475         (_dl_lookup_versioned_symbol_skip): Likewise.
7476
7477         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7478
7479         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7480
7481 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7482
7483         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7484         * sysdeps/i386/bits/huge_val.h: Likewise.
7485         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7486         * sysdeps/m68k/bits/huge_val.h: Likewise.
7487         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7488         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7489
7490 2000-05-22  Andreas Jaeger  <aj@suse.de>
7491
7492         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7493         change in iconv.h.
7494
7495 2000-05-19  Andreas Jaeger  <aj@suse.de>
7496
7497         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7498         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7499         breaks compilation without linuxthreads.
7500
7501 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7502
7503         * sysdeps/ia64/memccpy.S: New file.
7504         * sysdeps/ia64/memchr.S: New file.
7505         * sysdeps/ia64/memcmp.S: New file.
7506         * sysdeps/ia64/memcpy.S: New file.
7507         * sysdeps/ia64/memmove.S: New file.
7508         * sysdeps/ia64/memset.S: New file.
7509         * sysdeps/ia64/strcat.S: New file.
7510         * sysdeps/ia64/strchr.S: New file.
7511         * sysdeps/ia64/strcmp.S: New file.
7512         * sysdeps/ia64/strcpy.S: New file.
7513         * sysdeps/ia64/strlen.S: New file.
7514         * sysdeps/ia64/strncmp.S: New file.
7515         * sysdeps/ia64/strncpy.S: New file.
7516         * sysdeps/ia64/softpipe.h: New file.
7517         Patches by Dan Pop <Dan.Pop@cern.ch>.
7518
7519         * manual/memory.texi: Document memory handling functions (mlock,
7520         munlock, mlockall, munlockall, brk, and sbrk)
7521         * manual/time.texi: Document timespec and friends.
7522         * manual/conf.texi: Fix references.
7523         * manual/ctype.texi: Likewise.
7524         * manual/errno.texi: Likewise.
7525         * manual/intro.texi: Likewise.
7526         * manual/locale.texi: Likewise.
7527         * manual/sysinfo.texi: Likewise.
7528         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7529
7530 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7531
7532         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7533         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7534
7535 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7536
7537         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7538         dxfer_direction.
7539
7540 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7541
7542         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7543         * locale/localeconv.c: Initialize new elements from ISO C99.
7544         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7545         new standard elements.
7546         * locale/categories.def: Adjust accordingly.
7547
7548         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7549         * iconv/iconv.c: Likewise.
7550         * conform/data/iconv.h-data: Likewise.
7551         * iconv/iconv_prog.c (process_block): Remove const from second
7552         parameter.
7553         (main): Remove const from addr definition.
7554         * manual/charset.texi (Generic Conversion Interface): Remove from
7555         inbuf parameter of iconv.
7556
7557         * intl/dcigettext.c: Fix typo in comment.
7558
7559 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7560
7561         * resolv/res_libc.c (_res): Initialize _sock to -1.
7562
7563 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7564
7565         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7566         (fopencookie@@GLIBC_2.2): New.
7567         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7568         (fopencookie@GLIBC_2.0): New.
7569         * libio/Versions: Add fopencookie to GLIBC_2.2.
7570
7571 2000-05-18  Andreas Jaeger  <aj@suse.de>
7572
7573         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7574         Closes PR libc/1731.
7575
7576         * manual/arith.texi (Parsing of Integers): Fix typo.
7577         Closes PR libc/1744, reported by blp@gnu.org.
7578
7579 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7580
7581         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7582         __extension__ to hexadecimal floating constant notation.
7583         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7584         Likewise.
7585         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7586         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7587         Likewise.
7588         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7589         HUGE_VALL): Likewise.
7590         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7591         HUGE_VALL): Likewise.
7592         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7593
7594 2000-05-17  Andreas Jaeger  <aj@suse.de>
7595
7596         * string/envz.h: Add pure attributes if possible.
7597
7598         * string/argz.h: argz_count is a pure function.
7599
7600         * string/strings.h: Add pure and const attributes if possible.
7601
7602         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7603         possibly searching through the whole memory.
7604         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7605
7606 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7607
7608         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7609         not yet defined.
7610         (_dl_cache_check_flags): Likewise.
7611         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7612         dl-cache.h.
7613
7614 2000-05-17  Andreas Jaeger  <aj@suse.de>
7615
7616         * manual/creature.texi (Feature Test Macros): Remove paragraph
7617         since the description is wrong.
7618         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7619
7620         * scripts/config.sub: New version.
7621         * scripts/config.guess: Likewise.
7622         * manual/texinfo.tex: Likewise.
7623
7624         * time/test_time.args: Removed.
7625         * time/Makefile (test_time-ARGS): Added contents here instead.
7626
7627         * posix/tstgetopt.args: Removed.
7628         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7629
7630         * Rules: Allow arguments for test files to be specified in
7631         Makefile with testname-ARGS; remove rules with .args in it.
7632
7633         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7634         remove old bogus rule for opendir-tst1.args.
7635
7636         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7637
7638         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7639         into objdir.  This allows a readonly sourcetree.
7640         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7641
7642 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7643             David Huggins-Daines <dhd@linuxcare.com>
7644
7645         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7646         cache_data in case of only new cache format correctly.
7647
7648         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7649         cache_file_new.
7650
7651         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7652         struct cache_file_new.
7653
7654         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7655         present.
7656
7657         * elf/cache.c (save_cache): Align struct new_file_cache.
7658         (print_cache): Likewise.
7659
7660 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7661
7662         * elf/soinit.c (__libc_global_ctors): Move
7663         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7664         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7665         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7666         variable, don't define it to __res_state call.
7667
7668 2000-05-13  Andreas Jaeger  <aj@suse.de>
7669
7670         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7671         Linux 2.3.99pre7.
7672         (AF_PPPOX): Likewise.
7673         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7674         (AF_PPPOX): Likewise.
7675
7676 2000-05-12  Andreas Jaeger  <aj@suse.de>
7677
7678         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7679         Reported by tmoestl@gmx.net, closes PR libc/1732.
7680
7681 2000-05-11  Jan Hubicka  <jh@suse.cz>
7682
7683         * misc/sys/cdefs.h: Add support for pure attribute.
7684
7685         * include/string.h: Add __attribute_pure__ to various functions.
7686         * string/string.h: Likewise.
7687
7688 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7689
7690         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7691         argument.
7692         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7693         R_SPARC_UA64.
7694         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7695
7696 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7697
7698         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7699         at proper place.  Compute the high nibble correctly.
7700
7701 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7702
7703         * elf/ldconfig.c: Include elf.h.
7704
7705         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7706         (_dl_vsym): Likewise.
7707         Reported by Owen Taylor <otaylor@redhat.com>.
7708
7709         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7710         always.
7711
7712 2000-05-08  Andreas Jaeger  <aj@suse.de>
7713
7714         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7715
7716         * intl/bindtextdom.c (set_binding_values): Add prototype.
7717
7718 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7719
7720         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7721         call to elf_machine_fixup_plt.
7722         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7723         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7724
7725 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7726
7727         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7728         they are not dlclose'd from underneath us.
7729
7730 2000-05-08  Andreas Schwab  <schwab@suse.de>
7731
7732         * posix/execle.c: Fix size parameter of memcpy.
7733
7734 2000-05-08  Andreas Schwab  <schwab@suse.de>
7735
7736         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7737         getpagesize syscall if available.
7738
7739 2000-05-08  Andreas Jaeger  <aj@suse.de>
7740
7741         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7742         set errno.
7743
7744 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7745
7746         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7747         sizeof(struct link_map *) chunks, not in bytes.
7748
7749 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7750
7751         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7752         only needed for locale.
7753         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7754         It's only needed for catgets.
7755         Patches by Greg McGary <gkm@eng.ascend.com>.
7756
7757 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7758
7759         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7760         Remove duplicate <errno.h> include.  Remove inclusion of
7761         <libintl.h> and "nsswitch.h".
7762         (set_cloexec_flag): New function, broken out of dbopen.
7763         (dbopen): Changed return type to `enum
7764         nss_status'.  Mostly rewritten to make sure that we do not report
7765         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7766         (internal_setent): Change return type to nss_status.
7767         Document, and make sure that the function
7768         behaves accordingly.  Make dynamically loading the database
7769         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7770         failed.
7771         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7772         unecessary casts.
7773         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7774         documentation.
7775         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7776         c_get function member.
7777         * nss/nss_db/nss_db.h: Add and tweak some comments.
7778         (DBT): Move typedef before NSS_DBC typedef.
7779         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7780
7781 2000-05-07  H.J. Lu  <hjl@gnu.org>
7782
7783         * csu/initfini.c: Moved to ....
7784         * sysdeps/generic/initfini.c: ...here.
7785
7786         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7787
7788 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7789
7790         * manual/resource.texi: Document POSIX scheduling functions.
7791         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7792
7793         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7794         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7795
7796         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7797         for x since promotion in comparison might leads to unexpected
7798         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7799
7800         * iconv/Makefile (tests): Add tst-iconv1.
7801         * iconv/tst-iconv1.c: New file.
7802         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7803         empty input buffer over full output buffer.
7804         (ucs4_internal_loop): Likewise.
7805         (ucs4_internal_loop_unaligned): Likewise.
7806         (internal_ucs4le_loop): Likewise.
7807         (internal_ucs4le_loop_unaligned): Likewise.
7808         (ucs4le_internal_loop): Likewise.
7809         (ucs4le_internal_loop_unaligned): Likewise.
7810         Reported by yaoz@nih.gov.
7811
7812 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7813
7814         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7815         returned != __GCONV_OK, there is nothing to clean up.
7816
7817 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7818
7819         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7820         OUTPUT_CHARSET environment variables.
7821
7822 2000-05-06  Andreas Jaeger  <aj@suse.de>
7823
7824         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7825         (struct cache_file_new): New.
7826         (struct file_entry): New (moved from cache.c).
7827         (struct cache_file): New (moved from cache.c).
7828
7829         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7830         from _dl_load_cache_lookup.
7831         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7832         the different cache formats.
7833         New variable cache_new for new format.
7834
7835         * elf/ldconfig.h: Change according to changes in cache.c and
7836         ldconfig.c; remove cache_libcmp; add opt_format.
7837
7838         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7839         stuff that's defined in those headers.
7840         Add hwcap to struct lib_entry.
7841         (opt_format): New variable to select cache format.
7842         (options): Add format parameter.
7843         (is_hwcap): New function.
7844         (path_hwcap): New function.
7845         (parse_opt): Handle new format parameter.
7846         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7847
7848         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7849         ldconfig is part of glibc.
7850         Include dl-cache.h and remove stuff that's defined there.
7851         (struct cache_entry): Add new member hwcap.
7852         (print_entry): Print hwcap, cleanup a bit.
7853         (print_cache): Print new and old formats.
7854         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7855         (save_cache): Save new and old formats.
7856         (add_to_cache): Handle hwcap.
7857
7858         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7859         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7860         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7861         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7862         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7863         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7864
7865 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7866
7867         * intl/dcigettext.c (alignof): New macro.
7868         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7869         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7870         freemem_size to 0.
7871
7872 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7873
7874         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7875         return value.
7876
7877 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7878
7879         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7880         (mempcpy): Correct typo is parameter list.
7881
7882 2000-05-06  Andreas Jaeger  <aj@suse.de>
7883
7884         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7885         functions unless -ffast-math is given to gcc.
7886
7887 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7888
7889         * po/ko.po: Update from translation team.
7890
7891 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7892
7893         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7894         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7895         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7896         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7897         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7898         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7899
7900         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7901         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7902         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7903
7904         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7905         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7906         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7907         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7908
7909         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7910         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7911
7912 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7913
7914         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7915         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7916
7917         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7918         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7919
7920         * sysdeps/ia64/Implies: New file.
7921         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7922         * sysdeps/ia64/Makefile: New file.
7923         * sysdeps/ia64/gmp-mparam.h: New file,
7924
7925         * sysdeps/ia64/elf/start.S: New file.
7926
7927         * sysdeps/ia64/bits/fenv.h: New file.
7928
7929 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7930
7931         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7932
7933 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7934
7935         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7936         ia64 has 64 bit .hash entries just as the Alpha.
7937
7938 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7939
7940         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7941
7942 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7943
7944         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7945         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7946         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7947         * sysdeps/ia64/fpu/fegetenv.c: New file.
7948         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7949         * sysdeps/ia64/fpu/fegetround.c: New file.
7950         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7951         * sysdeps/ia64/fpu/fesetenv.c: New file.
7952         * sysdeps/ia64/fpu/fesetround.c: New file.
7953         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7954         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7955         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7956         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7957         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7958
7959 2000-05-05  Andreas Jaeger  <aj@suse.de>
7960
7961         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7962
7963         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7964         (_dl_string_hwcap): New, does nothing.
7965
7966         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7967         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7968         (_dl_string_hwcap): New function, converts from string to hwcap
7969         encoding.
7970         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7971         (_DL_HWCAP_COUNT): New.
7972         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7973         (_dl_string_hwcap): New function, converts from string to hwcap
7974         encoding.
7975         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7976         (_DL_HWCAP_COUNT): New.
7977         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7978         (_dl_string_hwcap): New function, converts from string to hwcap
7979         encoding.
7980
7981 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7982
7983         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7984         * sysdeps/ia64/Dist: New file.
7985
7986         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7987         parameter to mprotect and for variable assignments.
7988
7989 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7990
7991         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7992         validity of map before dereferencing it.
7993
7994         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7995
7996 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7997
7998         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7999         lookup to the arguments to elf_machine_fixup_plt().
8000
8001         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8002         of the symbol being resolved to input argument list and make the
8003         function return the pointer to the reloc.
8004
8005         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8006         return valuie to lookup_t and return the value.
8007         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8008         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8009         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8010         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8011         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8012         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8013
8014         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8015         Make it an inline function returning value after calling
8016         __elf_machine_fixup_plt().
8017
8018         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8019         symbol address.
8020
8021         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8022         obtain the symbol address.
8023
8024         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8025         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8026
8027         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8028         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8029         inline on non ia64.
8030
8031 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8032
8033         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8034         symbol address of an object.
8035
8036         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8037         the symbol address of an object.
8038
8039         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8040         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8041         (_dl_lookup_symbol_skip): Likewise.
8042         (_dl_lookup_versioned_symbol): Likewise.
8043         (_dl_lookup_versioned_symbol_skip): Likewise.
8044
8045 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8046
8047         * elf/rtld.c (_dl_start): Get the function pointer return address
8048         via _dl_start_address for architectures that need a function
8049         pointer descriptor rather than just a pointer (ia64).
8050
8051         * sysdeps/generic/dl-lookupcfg.h: New file.
8052         * sysdeps/ia64/dl-lookupcfg.h: New file.
8053         * sysdeps/ia64/dl-machine.h: New file.
8054         * sysdeps/ia64/dl-symaddr.c: New file.
8055         * sysdeps/ia64/dl-fptr.c: New file.
8056
8057         * elf/elf.h: Add IA-64 specific definitions.
8058
8059 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8060
8061         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8062         end of enum.
8063
8064 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8065
8066         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8067         happy.
8068
8069 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8070
8071         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8072         symbol.  Call _dl_init rather than the old way.
8073
8074 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8075
8076         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8077         test for pointer in range of DSO address space.
8078
8079 2000-05-04  Andreas Jaeger  <aj@suse.de>
8080
8081         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8082
8083 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8084
8085         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8086         calls of _nl_make_l10nflist.
8087
8088         * libio/stdio.h: Make fseeko and ftello prototypes available is
8089         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8090
8091         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8092         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8093
8094 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8095
8096         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8097         before calling tfind.
8098
8099 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8100
8101         * resolv/resolv.h (res_querydomain): Remove redefinition to
8102         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8103
8104 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8105
8106         * po/gl.po: Update from translation team.
8107
8108         * manual/intro.texi (Program Basics): Change section title.
8109         * manual/process.texi: Fix reference.
8110         (Executing a File): Add reference exec in other section.
8111         * manual/signal.texi: Fix reference.
8112         * manual/startup.texi: Document syscall function.
8113         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8114
8115 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8116
8117         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8118         * intl/bindtextdom.c (set_binding_values): New function.
8119         (bindtextdomain): Call it.
8120         (bind_textdomain_codeset): New function.
8121         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8122         (free_mem): Free each binding's codeset.
8123         * intl/gettextP.h (struct binding): Add codeset field.
8124         (_nl_find_domain): Add domainbinding argument.
8125         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8126         Pass it to _nl_make_l10nflist.
8127         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8128         (_nl_make_l10nflist): Add domainbinding argument.
8129         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8130         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8131         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8132         locale_charset().
8133         * manual/message.texi: New node "Charset conversion in gettext".
8134
8135 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8136
8137         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8138         appropriate.  Handle possible __read error.
8139
8140 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8141
8142         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8143         compiler builtin.
8144         * intl/loadinfo.h (__builtin_expect): Likewise.
8145         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8146         __builtin_expect where appropriate.
8147         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8148         * intl/localealias.c (extend_alias_table): Return an error indicator.
8149         (read_alias_file): Bail out if extend_alias_table fails.
8150
8151 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8152
8153         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8154         * intl/localealias.c: Likewise.
8155
8156 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8157
8158         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8159         Initialize domain->plural and domain->nplurals even if there is no
8160         nullentry.
8161
8162 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8163
8164         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8165         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8166         In case of failure, goto converted.
8167
8168 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8169
8170         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8171         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8172         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8173         __gconv_open.
8174
8175 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8176
8177         * intl/dcigettext.c (transcmp): Compare the domains as well.
8178         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8179         not before.
8180         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8181         <errno.h>.
8182
8183 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8184
8185         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8186         Reported by Bruno Haible.
8187
8188 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8189
8190         * manual/arith.texi: Remove @w from @itemize.
8191
8192 2000-05-02  Andreas Jaeger  <aj@suse.de>
8193
8194         * conform/data/tar.h-data: Add some checks for specific values.
8195
8196         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8197         and RAND_MAX.
8198
8199         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8200         FOPEN_MAX.
8201
8202         * conform/data/netinet/in.h-data: Add exact checks for the values
8203         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8204
8205         * conform/data/float.h-data: Add some minimal values.
8206
8207         * conform/conformtest.pl: Test for macros with string constants,
8208         check for minimum and maximum values.
8209         Add limits.h to headers.
8210
8211         * conform/data/cpio.h-data: Test for value of MAGIC.
8212
8213         * conform/data/limits.h-data: New file.
8214
8215 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8216
8217         * math/Makefile (headers): Add bits/fenvinline.h.
8218
8219 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8220
8221         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8222         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8223
8224         * posix/Versions: Change posix_spawnattr_getdefault and
8225         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8226         and posix_spawnattr_setsigdefault respectively.
8227         * posix/spawn.h: Likewise.
8228         * posix/spawnattr_getdefault.h: Likewise.
8229         * posix/spawnattr_setdefault.h: Likewise.
8230         * conform/data/spawn.h-data: Likewise.
8231
8232 2000-05-01  Andreas Jaeger  <aj@suse.de>
8233
8234         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8235
8236 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8237
8238         * manual/sysinfo.texi: Document getdomainname, setdomainname
8239         and sysctl.
8240         * manual/string.texi: Fix typo.
8241         * manual/terminal.texi: Document gtty and stty.
8242         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8243
8244 2000-04-30  Andreas Jaeger  <aj@suse.de>
8245
8246         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8247         accordance with Austin Draft.
8248
8249 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8250
8251         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8252         to recognize second character in comment line.
8253
8254         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8255         ENOBUFS if we are out of memory.
8256
8257         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8258         available if __USE_XOPEN2K.
8259         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8260         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8261         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8262         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8263         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8264         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8265         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8266         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8267
8268 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8269
8270         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8271         Recognize option -s, -c, and -l.
8272
8273 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8274
8275         * nscd/nscd.c: Start new session for nscd, drop privilegs
8276         to configured user if requested and no -S parameter are used.
8277         * nscd/nscd.conf: Add new option "server-user".
8278         * nscd/nscd_conf.c: Add support for new "server-user" option.
8279         * nscd/nscd.h: Add declaration for server_user variable.
8280         Based on patch by Chris Wing <wingc@engin.umich.edu>
8281
8282 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8283
8284         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8285         that changing the __restore and __restore_rt signal return code
8286         will break GDB.
8287
8288 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8289
8290         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8291         <sys/user.h>.
8292
8293 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8294
8295         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8296
8297 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8298
8299         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8300         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8301         arpa/inet.h.
8302         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8303         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8304         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8305         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8306         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8307         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8308         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8309         posix_fallocate, and posix_madvise.
8310         * conform/data/netdb.h-data: New file.
8311         * conform/data/pthread.h-data: Add pthread_barrier_t,
8312         pthread_barrierattr_t, pthread_barrier_destroy,
8313         pthread_barrier_init, pthread_barrier_wait,
8314         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8315         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8316         pthread_condattr_getclock, pthread_condattr_setclock,
8317         pthread_getcpuclockid, pthread_mutex_timedlock,
8318         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8319         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8320         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8321         * conform/data/sched.h-data: Add sched_ss_low_priority,
8322         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8323         SCHED_SPORADIC.
8324         * conform/data/semaphore.h-data: Add sem_timedwait.
8325         * conform/data/signal.h-data: Add SIGIO.
8326         * conform/data/spawn.h-data: New file.
8327         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8328         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8329         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8330         Fix typo in gmtime_r definition.
8331         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8332         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8333         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8334         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8335         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8336         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8337         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8338         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8339         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8340         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8341         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8342         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8343         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8344         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8345         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8346         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8347         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8348         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8349         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8350         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8351         typo in off_t definition.
8352         * conform/data/net/if.h-data: New file.
8353         * conform/data/netinet/in.h-data: New file.
8354         * conform/data/netinet/tcp.h-data: New file.
8355         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8356         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8357         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8358         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8359         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8360         and posix_typed_mem_open.
8361         * conform/data/sys/socket.h-data: New file.
8362         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8363         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8364         pthread_barrierattr_t, and pthread_spinlock_t.
8365         * conform/data/sys/un.h-data: New file.
8366         * conform/data/sys/utsname.h-data: New file.
8367
8368         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8369         parameter.
8370         * inet/gethstbyad.c (gethostbyname): Likewise.
8371         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8372         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8373         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8374         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8375         Likewise.
8376         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8377         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8378         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8379         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8380         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8381         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8382         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8383         and second parameter.
8384
8385         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8386         == NULL.
8387
8388 2000-04-29  Andreas Jaeger  <aj@suse.de>
8389
8390         * conform/data/arpa/inet.h-data: New file.
8391
8392 2000-04-28  Geoff Clare <gwc@unisoft.com>
8393
8394         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8395         path passed to ftw() or nftw() is an empty string.
8396         Closes PR libc/1710.
8397
8398 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8399
8400         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8401         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8402         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8403         * localedata/tst-mbswcs4.c: New file.
8404         * localedata/tst-mbswcs5.c: New file.
8405
8406         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8407         == NULL.  Little optimization.
8408
8409         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8410         DT_PREINIT_ARRAYSZ).
8411         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8412
8413         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8414         overflows in conversion from ASCII.
8415
8416 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8417
8418         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8419         * Makerules (full_config_sysdirs): Likewise.
8420         * MakeTAGS (full_config_sysdirs): Likewise.
8421
8422 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8423
8424         * .cvsignore: Remove linuxthreads.
8425         * po/.cvsignore: Remove *.pot.
8426         * posix/glob/.cvsignore: Removed.
8427         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8428
8429 2000-04-25  Andreas Jaeger  <aj@suse.de>
8430
8431         * conform/Makefile (distribute): Also distribute contents of
8432         subdirectories.
8433
8434         * Makerules (no_deps): Remove abi-versions.h.
8435
8436         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8437
8438 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8439
8440         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8441         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8442         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8443         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8444         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8445         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8446         objects.
8447
8448 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8449
8450         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8451
8452 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8453
8454         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8455         * intl/l10nflist.c: Likewise.
8456
8457 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8458
8459         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8460         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8461         * intl/textdomain.c [!_LIBC]: Likewise.
8462         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8463         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8464         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8465         syntax error.
8466
8467 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8468
8469         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8470         character set conversion also in the case the translation was found
8471         after a hash collision or through binary search.  Store the maximum
8472         index together with the converted message.  Use iconv() when available.
8473         In case of out of memory during conversion, return the unconverted
8474         translated string, not NULL.
8475
8476 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8477
8478         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8479         to avoid name clashes with the ia32 linker.
8480
8481 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8482
8483         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8484         handling.
8485
8486 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8487
8488         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8489         strtoumax, strfry, and memfrob.
8490         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8491         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8492
8493         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8494         if this function is available.
8495
8496         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8497         all values.
8498
8499 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8500
8501         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8502
8503 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8504
8505         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8506         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8507         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8508         * localedata/tst-mbswcs3.c: New file.
8509
8510 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8511
8512         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8513         characters.  Don't handle incomplete characters as errors.
8514         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8515         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8516         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8517         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8518         * localedata/tst-mbswcs2.c: New file.
8519
8520         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8521         stored character in state in UNPACK_BYTES macro.
8522         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8523         test for available characters, handle result of BODY code correctly.
8524         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8525         (distribute): Add tst-mbswcs.sh.
8526         Add rule to run tst-mbswcs.sh.
8527         * localedata/tst-mbswcs.sh: New file.
8528         * localedata/tst-mbswcs1.c: New file.
8529
8530 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8531
8532         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8533         allocation fixups centrally, fix __builtin_expect call, return NULL
8534         on failure, not NIS_NOMEMORY.
8535
8536 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8537
8538         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8539
8540         * intl/loadinfo.h (internal_function): Define if not already defined.
8541
8542 2000-04-27  Andreas Jaeger  <aj@suse.de>
8543
8544         * intl/libintl.h: Fix typo, reported by Bruno Haible
8545         <haible@clisp.cons.org>.
8546
8547 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8548
8549         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8550         setting the state to GMON_PROF_BUSY.
8551
8552 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8553
8554         * elf/dl-profile.c (_dl_start_profile): define all variables which
8555         do not have to be global as local variables.
8556
8557         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8558         patch.  Keep needed tests for failed memory allocation.
8559
8560         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8561         __builtin_expect saying that we don't normally expect to profile.
8562
8563         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8564         __builtin_expect where desirable.
8565
8566 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8567
8568         * manual/Makefile (chapters): Add syslog.
8569         * manual/syslog.texi: New file.
8570         * manual/math.texi: Fix references.
8571         * manual/terminal.texi: Likewise.
8572         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8573
8574 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8575
8576         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8577         stdlib.h was not included or __USE_XOPEN not defined.
8578
8579 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8580
8581         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8582         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8583
8584 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8585
8586         * manual/examples/subopt.c (mount_opts): Add missing terminating
8587         entry.
8588         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8589
8590         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8591         * libio/ftello.c: Likewise.
8592         * libio/ftello64.c: Likewise.
8593         * libio/ioftell.c: Likewise.
8594         * sysdeps/generic/memrchr.c: Likewise.
8595         * sysdeps/posix/libc_fatal.c: Likewise.
8596         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8597         * misc/fstab.c: Include <string.h> for strcmp prototype.
8598         * sysdeps/generic/ldsodefs.h: Likewise.
8599         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8600         Patch by Kurt Roeckx <Q@ping.be>.
8601
8602         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8603         Remove db-open.  Change all uses.
8604         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8605
8606 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8607
8608         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8609         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8610         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8611         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8612         with .set noat/at to shut up warnings.
8613         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8614         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8615         compilation if __NR_pciconfig_iobase is not defined.
8616         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8617         Add alias.
8618
8619 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8620
8621         * manual/sysinfo.texi: Fix typo.
8622         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8623         Replace "high precision time" with "high accuracy clock".
8624         Fix language.
8625         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8626
8627         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8628         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8629         instead of malloc.
8630         * nis/nis_subr.c: Use __builtin_expect.
8631         * nis/ypclnt.c: Likewise.
8632         * nis/nis_getservlist.c: Likewise.
8633         * nis/nis_creategroup.c: Likewise.
8634
8635         * nis/nis_callback.c (__nis_create_callback): Check result of
8636         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8637         (__nis_destroy_callback): Fix memory leaks.
8638
8639 2000-04-21  Andreas Jaeger  <aj@suse.de>
8640
8641         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8642         * sysdeps/mips/mips64/add_n.S: Likewise.
8643         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8644         * sysdeps/mips/mips64/lshift.S: Likewise.
8645         * sysdeps/mips/mips64/mul_1.S: Likewise.
8646         * sysdeps/mips/mips64/rshift.S: Likewise.
8647         * sysdeps/mips/mips64/setjmp.S: Likewise.
8648         * sysdeps/mips/mips64/sub_n.S: Likewise.
8649         * sysdeps/mips/mips64/submul_1.S: Likewise
8650         * sysdeps/unix/mips/sysdep.S: Likewise.
8651
8652         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8653         and update comment.  The strtab from _dl_relocate_object can be
8654         used.
8655
8656 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8657
8658         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8659         * iconv/iconv_close.c (iconv_close): Likewise.
8660         * iconv/iconv_open.c (iconv_open): Likewise.
8661
8662         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8663         __builtin_expect where useful.
8664
8665         * grp/initgroups.c (initgroups): Test for result of memory
8666         allocation and punt if it fails.
8667
8668         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8669         * grp/fgetgrent.c (fgetfrent): Likewise.
8670         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8671
8672 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8673
8674         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8675
8676 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8677
8678         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8679         don't search for NUL byte to decrement counter.
8680         Reported by Ulrich.Brink@sap.com.
8681
8682         * iconv/gconv_simple.c: Define separate functions to convert from
8683         UCS4/UCS4-LE to the internal encoding.
8684         * iconv/gconv_builtin.h: Use separate functions to convert from
8685         UCS4/UCS4-LE to the internal encoding.
8686         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8687         __gconv_transform_ucs4le_internal.
8688
8689         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8690         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8691
8692         * iconv/skeleton.c: Add some more __builtin_expect.
8693         * iconv/loop.c: Likewise.
8694
8695 2000-03-08  H.J. Lu  <hjl@gnu.org>
8696
8697         * posix/regex.c (regex_compile): Correctly handle "\{" when
8698         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8699
8700 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8701
8702         * manual/stdio.texi: Give advise about handling error when using
8703         stream functions.
8704         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8705
8706 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8707
8708         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8709         field to nelems * sizeof (uint32_t).
8710         * locale/programs/ld-address.c (address_output): Align word fields
8711         properly.
8712         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8713         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8714         field.
8715         Avoid giving arbitrary garbage in the crncystr field.
8716         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8717         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8718         fields.
8719         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8720         Don't restart idx pointers to idx end at the decimal_point_wc field.
8721         * locale/programs/ld-time.c (time_output): week_1stday should be
8722         word, not byte.  Align it properly.
8723
8724 2000-04-19  H.J. Lu  <hjl@gnu.org>
8725
8726         * csu/gmon-start.c (_start): Declared as "extern void".
8727         (etext): Likewise.
8728
8729 2000-04-18  Andreas Jaeger  <aj@suse.de>
8730
8731         * manual/install.texi (Running make install): Don't mention utmpd
8732         anymore.
8733
8734 2000-04-18  Andreas Jaeger  <aj@suse.de>
8735
8736         * linuxthreads/Versions: Use ld instead of ld.so.
8737
8738         * elf/Makefile (ld-map): Use ld.map.
8739
8740         * Versions.def: Use ld instead of ld.so.
8741         * elf/Versions: Likewise.
8742         * sysdeps/mach/hurd/Versions: Likewise.
8743
8744 2000-04-20  Andreas Jaeger  <aj@suse.de>
8745
8746         * elf/rtld.c (print_statistics): Move ifndef further up.
8747         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8748         (dl_main): Likewise.
8749
8750 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8751
8752         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8753         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8754
8755         * po/cs.po: Update from translation team.
8756
8757         * sysdeps/generic/updwtmp.c: Remove daemon support.
8758
8759         * login/Makefile (routines): Remove utmp_daemon.
8760
8761         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8762         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8763         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8764         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8765
8766         * elf/rtld.c: Display statitics option also if hp timing is not
8767         available.
8768
8769         * login/programs/connection.c: Removed.
8770         * login/programs/database.c Removed.
8771         * login/programs/error.c: Removed.
8772         * login/programs/request.c: Removed.
8773         * login/programs/xtmp.c: Removed.
8774         * login/programs/xtmp.h: Removed.
8775         * login/Makefile: Remove rules for utmpd.
8776         * login/README.utmpd: Removed.
8777         * login/utmp_daemon.c: Removed.
8778         * login/getutent_r.c: Remove references to daemon functions.
8779         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8780         declaration.
8781
8782 2000-04-18  Andreas Jaeger  <aj@suse.de>
8783
8784         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8785         2.2 for libnsl, libresolv, librt, libnss_*.
8786
8787         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8788
8789         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8790
8791 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8792
8793         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8794         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8795         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8796         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8797         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8798         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8799         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8800         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8801         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8802         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8803         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8804         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8805         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8806         it here.
8807         * sysdeps/unix/sysv/aix/msync.c: New file.
8808         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8809         * sysdeps/unix/sysv/aix/net/if.h: New file.
8810         * sysdeps/unix/sysv/aix/pipe.c: New file.
8811         * sysdeps/unix/sysv/aix/poll.c: New file.
8812         * sysdeps/unix/sysv/aix/rename.c: New file.
8813         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8814         * sysdeps/unix/sysv/aix/select.c: New file.
8815         * sysdeps/unix/sysv/aix/semctl.c: New file.
8816         * sysdeps/unix/sysv/aix/semget.c: New file.
8817         * sysdeps/unix/sysv/aix/semop.c: New file.
8818         * sysdeps/unix/sysv/aix/sendto.c: New file.
8819         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8820         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8821         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8822         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8823         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8824         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8825         * sysdeps/unix/sysv/aix/setsid.c: New file.
8826         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8827         * sysdeps/unix/sysv/aix/shmat.c: New file.
8828         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8829         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8830         * sysdeps/unix/sysv/aix/shmget.c: New file.
8831         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8832         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8833         * sysdeps/unix/sysv/aix/socket.c: New file.
8834         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8835         * sysdeps/unix/sysv/aix/speed.c: New file.
8836         * sysdeps/unix/sysv/aix/symlink.c: New file.
8837         * sysdeps/unix/sysv/aix/sync.c: New file.
8838         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8839         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8840         * sysdeps/unix/sysv/aix/times.c: New file.
8841         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8842         * sysdeps/unix/sysv/aix/umask.c: New file.
8843         * sysdeps/unix/sysv/aix/unlink.c: New file.
8844         * sysdeps/unix/sysv/aix/ustat.c: New file.
8845         * sysdeps/unix/sysv/aix/utimes.c: New file.
8846
8847 2000-04-18  Andreas Jaeger  <aj@suse.de>
8848
8849         * manual/startup.texi (Environment Access): Fix putenv prototype
8850         according to recent changes.
8851         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8852         PR libc/1692.
8853
8854         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8855         needed.
8856
8857 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8858
8859         * posix/Makefile (tests): Add tst-getaddrinfo.
8860         * posix/tst-getaddrinfo.c: New file.
8861
8862 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8863
8864         * manual/sysinfo.texi: Document that umount2 is not widely available.
8865
8866         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8867         signal timing is not really implemented.
8868
8869 2000-04-17  Andreas Jaeger  <aj@suse.de>
8870
8871         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8872
8873 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8874
8875         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8876         and inst_libdir.
8877
8878 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8879
8880         * manual/intro.texi: Change reference from System Information to
8881         System Management.
8882         * manual/users.texi: Likewise.
8883         * manual/conf.texi: Likewise.
8884         * manual/sysinfo.texi: Document mount, umount, and umount2.
8885         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8886
8887 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8888
8889         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8890         Create wnumstr as well as numstr to support wide character output
8891         correctly.
8892
8893 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8894
8895         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8896         modification and move it...
8897         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8898         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8899         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8900         switch to $(LD) on sparc-linux.
8901
8902 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8903
8904         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8905         and setresuid from sysdep_routines.
8906
8907 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8908
8909         * manual/Makefile (chapters): Add resource.
8910
8911         * manual/time.texi: Move section on resources to...
8912         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8913         and vtimes.
8914         * manual/setjmp.texi: Adjust back reference.
8915         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8916
8917         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8918         definition.
8919         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8920         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8921         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8922         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8923         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8924         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8925         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8926         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8927         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8928         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8929         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8930         * sysdeps/unix/sysv/aix/Implies: New file.
8931         * sysdeps/unix/sysv/aix/Versions: New file.
8932         * sysdeps/unix/sysv/aix/bind.c: New file.
8933         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8934         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8935         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8936         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8937         * sysdeps/unix/sysv/aix/chdir.c: New file.
8938         * sysdeps/unix/sysv/aix/chmod.c: New file.
8939         * sysdeps/unix/sysv/aix/chroot.c: New file.
8940         * sysdeps/unix/sysv/aix/creat.c: New file.
8941         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8942         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8943         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8944         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8945         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8946         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8947         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8948         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8949         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8950         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8951         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8952         * sysdeps/unix/sysv/aix/link.c: New file.
8953         * sysdeps/unix/sysv/aix/madvise.c: New file.
8954         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8955         * sysdeps/unix/sysv/aix/mknod.c: New file.
8956         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8957         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8958         * sysdeps/unix/sysv/aix/msgget.c: New file.
8959         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8960
8961 2000-04-17  Andreas Jaeger  <aj@suse.de>
8962
8963         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8964         as suggested by Ulrich Drepper.
8965         (__dl_runtime_resolve): Remove unused variable, initialize sym
8966         directly.
8967         (RTLD_START): Document OFFSET_GP_GOT.
8968         (OFFSET_GP_GOT): New magic value.
8969         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8970         (elf_machine_got_rel): Only declare strtab if needed.
8971         (elf_machine_relplt): Removed, it's not needed.
8972         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8973
8974         * sysdeps/mips/add_n.S: Add newline at EOF.
8975         * sysdeps/mips/rshift.S: Likewise.
8976         * sysdeps/mips/mul_1.S: Likewise.
8977         * sysdeps/mips/lshift.S: Likewise.
8978         * sysdeps/mips/addmul_1.S: Likewise.
8979
8980 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8981
8982         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8983
8984         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8985         * elf/dl-lookup.c: Likewise.
8986         * elf/dl-init.c (_dl_init): Likewise.
8987         * elf/dl-fini.c (_dl_fini): Likewise.
8988         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8989         * elf/dl-close.c (_dl_close): Likewise.
8990         * elf/rtld.c (_dl_start_final): Likewise.
8991
8992         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8993
8994 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8995
8996         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8997         only fall back on using Linux.
8998
8999         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9000         Before testing versions check that we actually loaded the object
9001         and whether we are in trace mode.  If not loaded during tracing don't
9002         test versions in this object.
9003         (_dl_check_all_versions): Take new parameter and pass to
9004         _dl_check_map_versions.
9005         * sysdeps/generic/ldsodefs.h: Update prototypes for
9006         _dl_check_all_versions and _dl_check_map_versions.
9007         * elf/rtld.c (struct version_check_args): Add dotrace.
9008         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9009         (dl_main): Pass info about trace mode to version_check_doit.
9010         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9011         _dl_check_all_versions.
9012
9013         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9014         and getutmpx.
9015         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9016
9017         * manual/argp.texi: Document index parameter of argp_parse.
9018         Fix typo.
9019         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9020
9021 2000-04-14  Andreas Jaeger  <aj@suse.de>
9022
9023         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9024         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9025
9026         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9027
9028 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9029
9030         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9031         compat_symbol call for old adjtime.
9032
9033         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9034         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9035
9036         * posix/Makefile (headers): Add spawn.h.
9037         (distribute): Add spawn_int.h.
9038         (routines): Add spawn_faction_init, spawn_faction_destroy,
9039         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9040         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9041         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9042         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9043         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9044         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9045         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9046         posix_spawnattr_init, posix_spawnattr_destroy,
9047         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9048         posix_spawnattr_getflags, posix_spawnattr_setflags,
9049         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9050         and posix_spawnp.
9051         * posix/spawn.c: New file.
9052         * posix/spawn.h: New file.
9053         * posix/spawn_faction_addclose.c: New file.
9054         * posix/spawn_faction_adddup2.c: New file.
9055         * posix/spawn_faction_addopen.c: New file.
9056         * posix/spawn_faction_destroy.c: New file.
9057         * posix/spawn_faction_init.c: New file.
9058         * posix/spawn_int.h: New file.
9059         * posix/spawnattr_destroy.c: New file.
9060         * posix/spawnattr_getdefault.c: New file.
9061         * posix/spawnattr_getflags.c: New file.
9062         * posix/spawnattr_getpgroup.c: New file.
9063         * posix/spawnattr_getschedparam.c: New file.
9064         * posix/spawnattr_getschedpolicy.c: New file.
9065         * posix/spawnattr_getsigmask.c: New file.
9066         * posix/spawnattr_init.c: New file.
9067         * posix/spawnattr_setdefault.c: New file.
9068         * posix/spawnattr_setflags.c: New file.
9069         * posix/spawnattr_setpgroup.c: New file.
9070         * posix/spawnattr_setschedparam.c: New file.
9071         * posix/spawnattr_setschedpolicy.c: New file.
9072         * posix/spawnattr_setsigmask.c: New file.
9073         * posix/spawni.c: New file.
9074         * posix/spawnp.c: New file.
9075
9076         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9077         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9078
9079 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9080
9081         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9082         * malloc/malloc.c: Implement posix_memalign for glibc.
9083         * include/stdlib.h: Add prototype for __posix_memalign.
9084         * stdlib/stdlib.h: Add prototype for posix_memalign.
9085
9086 2000-04-14  Andreas Jaeger  <aj@suse.de>
9087
9088         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9089         symidx correctly.
9090         (elf_machine_got_rel): Cast sym correctly.
9091
9092         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9093         * sysdeps/mips/addmul_1.S: Likewise.
9094         * sysdeps/mips/lshift.S: Likewise.
9095         * sysdeps/mips/mul_1.S: Likewise.
9096         * sysdeps/mips/rshift.S: Likewise.
9097         * sysdeps/mips/sub_n.S: Likewise.
9098         * sysdeps/mips/submul_1.S: Likewise.
9099
9100         * stdlib/stdlib.h: Fix typo in comment.
9101
9102         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9103         2.2 for libdl, ld and libm.
9104
9105         * sysdeps/generic/madvise.c: Fix typos.
9106
9107         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9108
9109         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9110
9111         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9112         warnings.
9113
9114 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9115
9116         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9117         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9118         Make old name weak alias.
9119         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9120         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9121         Make old name weak alias.
9122         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9123
9124         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9125         posix_fallocate, and posix_fallocate64.
9126         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9127         posix_fallocate, and posix_fallocate64.
9128         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9129         posix_fallocate, and posix_fallocate64.
9130         * sysdeps/generic/fadvise.c: New file.
9131         * sysdeps/generic/fadvise64.c: New file.
9132         * sysdeps/generic/fallocate.c: New file.
9133         * sysdeps/generic/fallocate64.c: New file.
9134         * sysdeps/posix/fallocate.c: New file.
9135         * sysdeps/posix/fallocate64.c: New file.
9136         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9137         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9138         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9139         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9140         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9141         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9142         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9143         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9144         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9145
9146         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9147         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9148
9149 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9150
9151         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9152         * misc/sys/mman.h (posix_madvise): Add prototype.
9153         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9154         old name and posix_madvise weak aliases.
9155         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9156         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9157         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9158         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9159         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9160         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9161         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9162
9163 2000-04-13  Andreas Jaeger  <aj@suse.de>
9164
9165         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9166         versioning.
9167         (elf_machine_got_rel): Only add runtime display if needed.
9168         (elf_machine_got_rel): Handle symbol versioning.
9169
9170 2000-04-13  Andreas Jaeger  <aj@suse.de>
9171
9172         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9173
9174         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9175         default.
9176
9177         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9178         with some applications.
9179         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9180
9181         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9182         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9183         * sysdeps/mips/setjmp.S: Likewise.
9184
9185         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9186
9187 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9188
9189         * posix/globtest.sh: Work around inconsistency with expanding ~/
9190         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9191
9192 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9193
9194         * posix/getconf.c: Add support for many more POSIX options.
9195         * sysdeps/posix/sysconf.c: Likewise.
9196         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9197         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9198         _POSIX_SHELL.
9199         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9200         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9201         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9202         CLOCK_THREAD_CPUTIME_ID.
9203         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9204         CLOCK_PROCESS_CPUTIME_ID.
9205         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9206         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9207         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9208         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9209
9210         * malloc/Makefile (tests): Add tst-calloc.
9211         * malloc/tst-calloc.c: New file.
9212
9213         * sysdeps/arm/libm-test-ulps: New file.
9214
9215         * malloc/malloc.c: Undo all of today's changes.
9216
9217         * locale/programs/locale.c (show_info): Don't try to look into
9218         data for LC_ALL (there is none).
9219
9220         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9221         avoid writing over boundary.
9222         Patch by Greg McGary <gkm@eng.ascend.com>.
9223
9224         * sysdeps/arm/memprof.h: New file.
9225
9226 2000-04-12  Andreas Jaeger  <aj@suse.de>
9227
9228         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9229
9230         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9231         for memmem declaration.
9232
9233 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9234
9235         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9236         to -1.
9237         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9238
9239         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9240         mode is invalid.
9241         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9242         Patch by Bart Veer <bartv@redhat.com>.
9243
9244         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9245         function interface.
9246
9247 2000-04-11  Andreas Jaeger  <aj@suse.de>
9248
9249         * sysdeps/mips/dl-machine.h: Update some comments.
9250         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9251
9252 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9253
9254         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9255         _POSIX_SHARED_MEMORY_OBJECTS.
9256
9257         * rt/Makefile (tests): Add tst-shm.
9258         Add rules to generate tst-shm.
9259         * rt/tst-shm.c: New file.
9260
9261         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9262         for descriptor.
9263
9264         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9265         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9266         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9267         * sysdeps/generic/shm_open.c: New file.
9268         * sysdeps/generic/shm_unlink.c: New file.
9269         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9270         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9271         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9272          __endmntent, __getmntent_r, __setmntent, and __statfs.
9273
9274         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9275         fragmentation by allocating new memory at the end instead of
9276         reallocating.
9277
9278         * posix/globtest.sh: Fix last change.
9279
9280 2000-04-10  Philip Blundell  <philb@gnu.org>
9281
9282         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9283         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9284         IPV6_DROP_MEMBERSHIP.
9285         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9286         Likewise.
9287
9288 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9289
9290         * elf/readlib (process_file): Close streams in case of an error.
9291
9292 2000-04-09  Andreas Jaeger  <aj@suse.de>
9293
9294         * elf/readlib.c (process_file): Check if file is big enough to
9295         contain aout and ELF headers.
9296         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9297
9298 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9299
9300         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9301
9302 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9303
9304         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9305         stream unbuffered.
9306         * rt/Makefile (tests): Add tst-clock.
9307         Add rules to build tst-clock.
9308         * rt/tst-clock.c: New file.
9309         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9310         about initialization of nsec.
9311         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9312         about initialization of freq.  Set retval to zero if successful.
9313         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9314
9315 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9316
9317         * Versions.def (librt): Add GLIBC_2.2.
9318         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9319         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9320         timer_getoverr, timer_gettime, and timer_settime.
9321         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9322         clock_settime, timer_create, timer_delete, timer_getoverrun,
9323         timer_gettime, and timer_settime.
9324         * sysdeps/generic/clock_getcpuclockid.c: New file.
9325         * sysdeps/generic/get_clockfreq.c: New file.
9326         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9327         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9328         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9329         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9330         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9331         * sysdeps/unix/i386/i686/Implies: New file.
9332         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9333         * time/Makefile (routines): Move clock_getres, clock_gettime,
9334         clock_settime, timer_create, timer_delete, timer_getoverr,
9335         timer_gettime, and timer_settime to rt/Makefile.
9336         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9337         clock_settime, timer_create, timer_delete, timer_getoverrun,
9338         timer_gettime, and timer_settime.
9339         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9340
9341         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9342         and not const as attribute name.
9343
9344 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9345
9346         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9347
9348 2000-04-10  Andreas Schwab  <schwab@suse.de>
9349
9350         * posix/globtest.sh: Skip tests that depend on unreadable
9351         directories if run as root.
9352
9353 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9354
9355         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9356         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9357
9358 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9359
9360         * sysdeps/unix/clock_gettime.c: New file.
9361         * sysdeps/unix/clock_settime.c: New file.
9362         * sysdeps/posix/clock_getres.c: New file.
9363
9364         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9365
9366         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9367         lseek call be passing in a buffer which never allow a successful
9368         first getdents syscall if not at leas the initial entry can be
9369         stored in the user buffer.
9370
9371         * localedata/Makefile: Add rules to clean up directories created by
9372         new strfmon tests.
9373
9374 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9375
9376         * localedata/tst-fmon.data: Added new tests for strfmon()
9377         using test locales with all combinations of cs_precedes,
9378         sign_posn and sep_by_space.
9379         * localedata/tst-fmon.sh: Updated to support the new tests.
9380         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9381         the localedef source for the new strfmon() test locale.
9382         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9383         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9384         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9385         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9386         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9387         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9388         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9389         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9390         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9391         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9392         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9393         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9394         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9395         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9396
9397         * stdlib/strfmon.c: Correct problems with missing or extra
9398         spaces for unusual combinations of sign_posn and sep_by_space.
9399         Improved left-precision alignment code.
9400
9401 2000-04-07  Andreas Jaeger  <aj@suse.de>
9402
9403         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9404
9405 2000-04-10  Andreas Jaeger  <aj@suse.de>
9406
9407         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9408
9409 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9410
9411         Implement handling of restartable conversion functions according to
9412         ISO C.
9413         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9414         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9415         * iconv/gconv.c: Pass additional parameter to conversion function.
9416         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9417         (internal_ucs4le_loop_single): New function.
9418         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9419         (__gconv_transform_internal_ascii): Likewise.
9420         (__gconv_transform_internal_utf8): Likewise.
9421         (__gconv_transform_utf8_internal): Likewise.
9422         (__gconv_transform_ucs2_internal): Likewise.
9423         (__gconv_transform_internal_ucs2): Likewise.
9424         (__gconv_transform_ucs2reverse_internal): Likewise.
9425         (__gconv_transform_internal_ucs2reverse): Likewise.
9426         (internal_ucs4le_loop_unaligned): Before return
9427         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9428         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9429         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9430         * iconv/loop.c: Fit in definition of function to convert one character
9431         for processing of left-over bytes from the state object.
9432         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9433         inend to match names in loop functions.
9434         (RESET_INPUT_BUFFER): Change apprpriately.
9435         (gconv): If needed, call function to process bytes from the state
9436         object.  Similar at the end: store left over bytes if input is
9437         incomplete.
9438         Take extra argument and add new argument to all calls of the
9439         conversion function.
9440         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9441         information in the state object to not conflict with length count.
9442         * iconvdata/iso-2022-jp.c: Likewise.
9443         * iconvdata/iso-2022-kr.c: Likewise.
9444         * iconvdata/unicode.c: Adjust for change change in parameters of
9445         skeleton function.
9446         * iconvdata/utf-16.c: Likewise.
9447         * libio/iofwide.c: Add new parameter to all calls of conversion
9448         function.
9449         * wcsmbs/btowc.c: Likewise.
9450         * wcsmbs/mbrtowc.c: Likewise.
9451         * wcsmbs/mbsnrtowcs.c: Likewise.
9452         * wcsmbs/mbsrtowcs.c: Likewise.
9453         * wcsmbs/wcrtomb.c: Likewise.
9454         * wcsmbs/wcsnrtombs.c: Likewise.
9455         * wcsmbs/wcsrtombs.c: Likewise.
9456         * wcsmbs/wctob.c: Likewise.
9457
9458         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9459         MAX_NEEDED_INPUT.
9460
9461 2000-04-07  Andreas Jaeger  <aj@suse.de>
9462
9463         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9464         newer kernels.
9465
9466 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9467
9468         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9469         element a union to allow byte access.
9470         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9471         mbstate_t.
9472         * iconvdata/iso-2022-jp.c: Likewise.
9473         * iconvdata/iso-2022-kr.c: Likewise.
9474         * wcsmbs/mbsinit.c: Likewise.
9475         * stdlib/mblen.c: Likewise.
9476         * stdio-common/printf-parse.h: Likewise.
9477
9478 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9479
9480         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9481         kernel does not allow relative seeks on descriptors associated
9482         with directories.  Go back to get the position in the directory
9483         every time we enter the function.  Return -1 and set errno if one
9484         entry could be read from the kernel but does not fit into the
9485         buffer passed in by the user.
9486
9487         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9488         Support ..(2).. ellipsis.
9489         (parse_charmap): Recognize ..(2).. etc and pass step down.
9490         Correctly generate names for UCS4 characters.
9491
9492         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9493         (ctype_finish): We know the wide character value for <SP>,
9494         don't search.
9495         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9496         (charclass_ucs4_ellipsis): Likewise.
9497         (read_translit_ignore_entry): Store ellipsis step.
9498         (ctype_read): Recognize ..(2).. etc and pass step down.
9499
9500         * locale/programs/linereader.c (lr_token): When seeing comment
9501         character ignore only rest of line in sources but stop at escaped
9502         newline.
9503         Recognize ..(2).. and ....(2).....
9504
9505         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9506         and tok_ellipsis4_2.
9507
9508 2000-04-06  Andreas Jaeger  <aj@suse.de>
9509
9510         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9511         removed, remove it here also.
9512         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9513         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9514         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9515         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9516
9517 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9518
9519         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9520         include bits/sigcontext.h.
9521         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9522
9523 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9524
9525         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9526         collation symbol definition.  Value in quivalence definition must
9527         be defined, don't check that it is not.
9528
9529         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9530         values as character names.
9531
9532         * locale/programs/ld-ctype.c (get_character): Handle missing
9533         repertoire map correctly.
9534
9535 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9536
9537         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9538         because it is used in generic code.
9539         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9540         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9541         * intl/gettext.c: Include <locale.h>.
9542         * intl/ngettext.c: Likewise.
9543
9544 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9545
9546         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9547         socklen_t type for size.
9548         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9549         init function interface.
9550         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9551         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9552         sys/ucontext.h.
9553         (__jmp_buf): Declare the whole type structure here, don't use
9554         ucontext.
9555
9556 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9557
9558         * iconv/skeleton.c (put16u): Fix typo.
9559         Reported by Bruno Haible <haible@ilog.fr>.
9560
9561         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9562         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9563         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9564         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9565         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9566         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9567
9568         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9569         * Makefile (distribute): Add abi-versions.awk and
9570         firstversions.awk.
9571         Patches by Torsten Duwe <duwe@caldera.de>.
9572
9573 2000-04-05  Andreas Schwab  <schwab@suse.de>
9574
9575         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9576
9577 2000-04-05  Andreas Schwab  <schwab@suse.de>
9578
9579         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9580         entry point, used on Hurd.
9581
9582 2000-04-04  Andreas Jaeger  <aj@suse.de>
9583
9584         * intl/Makefile: Only run the gettext test with shared libraries.
9585
9586 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9587
9588         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9589         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9590
9591 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9592
9593         * Makeconfig: Undo last change.
9594         * configure.in: If --disable-shared was given, don't set VERSIONING,
9595         don't define DO_VERSIONING, and don't give scare warning for no
9596         versioning.
9597         * configure: Regenerated.
9598
9599 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9600
9601         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9602
9603 2000-04-04  Andreas Jaeger  <aj@suse.de>
9604
9605         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9606
9607 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9608
9609         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9610         STV_HIDDEN and STV_INTERNAL during lookup.
9611         (profile_fixup): Likewise.
9612         * elf/dl-reloc.c (RESOLVE): Likewise.
9613
9614         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9615         unaligned so that it compiles for system which need unaligned
9616         access handling.
9617
9618 2000-04-04  Andreas Schwab  <schwab@suse.de>
9619
9620         * elf/cache.c (print_entry): Only look at the type field when
9621         printing the type.
9622
9623 2000-04-04  Andreas Schwab  <schwab@suse.de>
9624
9625         * iconvdata/big5.c (BODY): Fix typo.
9626
9627 2000-04-04  Andreas Schwab  <schwab@suse.de>
9628
9629         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9630         function interface.  Remove unused _dl_start_user entry point.
9631
9632 2000-04-03  Andreas Jaeger  <aj@suse.de>
9633
9634         * include/arpa/inet.h (__inet_aton): Add protoype.
9635
9636 2000-04-01  Andreas Jaeger  <aj@suse.de>
9637
9638         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9639
9640         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9641         * sysdeps/mach/mips/thread_state.h: Likewise.
9642
9643         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9644         * sysdeps/generic/fegetenv.c: Likewise.
9645         * sysdeps/generic/fesetenv.c: Likewise.
9646         * sysdeps/generic/feupdateenv.c: Likewise.
9647         * sysdeps/generic/fraiseexcpt.c: Likewise.
9648         * sysdeps/generic/fsetexcptflg.c: Likewise.
9649         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9650         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9651         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9652         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9653
9654 2000-04-02  H.J. Lu  <hjl@gnu.org>
9655
9656         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9657
9658 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9659
9660         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9661         (add_name_to_object): Add cast in malloc call.
9662         (fillin_rpath): Optimize loop to initialize ->status a bit.
9663
9664         * sysdeps/i386/dl-machine.h: Undo last change.
9665         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9666         Restore %edx register after call here.
9667
9668         * sysdeps/arm/atomicity.h: New file.
9669         Contributed by Jesper Skov <jskov@redhat.com>.
9670
9671 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9672
9673         * Makeconfig (preprocess-versions): Undo last change.
9674         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9675
9676         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9677         here, before we might move the stack.
9678         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9679         (init1): And not here.
9680
9681         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9682         change, to restore argc value in call-clobbered register after
9683         RTLD_START_SPECIAL_INIT, which will contain a call.
9684
9685         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9686         allocating and initializing L->l_initfini.
9687
9688         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9689
9690 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9691
9692         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9693         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9694         (open_path): Change type of fourth parameter.  Make pointer to array
9695         of pointers.  Create variable dirs with original type.
9696         Track whether any directory for the object exists and if not,
9697         change *DIRSP to (void*) -1 to signal there is no such search path.
9698         (_dl_map_object): Change all calls of open_path.
9699         Rewrite decompose_rpath calls.
9700
9701 2000-03-31  Andreas Schwab  <schwab@suse.de>
9702
9703         * string/strfry.c: Declare STATE as array of char instead of int
9704         and do not initialize it (done by initstate_r).  Pass correct
9705         size.
9706
9707 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9708
9709         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9710
9711         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9712         instruction out of the code.
9713
9714 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9715
9716         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9717         element at this position.
9718
9719         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9720         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9721         l_reldeps elements.
9722         * elf/dl-lookup.c (add_dependency): New function.
9723         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9724         dynamically loaded object.
9725         (_dl_lookup_symbol_skip): Likewise.
9726         (_dl_lookup_versioned_symbol): Likewise.
9727         (_dl_lookup_versioned_symbol_skip): Likewise.
9728         * elf/dl-open.c: Don't define _dl_load_lock here...
9729         * elf/rtld.c: ...but here...
9730         * elf/dl-support.c: ...and here.
9731         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9732         through relocation.
9733         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9734         relocations.
9735         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9736         anymore.
9737         * dlfcn/glrefmain.c: Add one more debug message.
9738
9739         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9740         command line.
9741         * Makerules (sysd-versions): Use ( ) instead of { }.
9742
9743         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9744         optimize for the non-debugging case.
9745         * elf/dl-lookup.c: Likewise.
9746         * sysdeps/generic/libc-start.c: Likewise.
9747
9748 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9749
9750         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9751         (init1): Don't initialize __environ here, since init already does it.
9752         (first_init): New function, broken out of _init.
9753         (_hurd_stack_setup): Use it.
9754         [SHARED] (_dl_init_first): New function, renamed from old _init.
9755         (init1) [SHARED]: Don't call posixland_init here.
9756         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9757         [SHARED] (_init): Define as alias for posixland_init.
9758         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9759         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9760         RTLD_START_SPECIAL_INIT before calling initializers.
9761         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9762         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9763         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9764         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9765
9766         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9767         since we define the function with the name `tmpfile'.
9768
9769         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9770         * hurd/Versions: Likewise.
9771
9772 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9773
9774         * elf/dl-runtime.c (fixup): Fix typo in comment.
9775
9776         * resolv/netdb.h (getnameinfo): All length parameters are of type
9777         socklen_t.
9778         * inet/getnameinfo.c: Likewise.
9779
9780 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9781
9782         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9783         (gethostname): Change type of second parameter to socklen_t.
9784         * include/unistd.h (__gethostname): Change type of second
9785         parameter to socklen_t.
9786         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9787         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9788         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9789         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9790         Likewise.
9791         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9792         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9793         Allow definition elsewhere.
9794         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9795         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9796         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9797         * sysdeps/generic/bits/types.h: Define __socklen_t.
9798         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9799         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9800         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9801         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9802         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9803         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9804         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9805
9806         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9807         (inet_lnaof): Likewise.
9808         (inet_netof): Likewise.
9809         (inet_network): Likewise.
9810         (inet_aton): Likewise.
9811         (inet_makeaddr): Change parameter types to in_addr_t.
9812         (inet_neta): Likewise.
9813         (inet_ntop): Change type of last parameter to socklen_t.
9814         (inet_aton): Only make available if __USE_MISC.
9815         (inet_neta): Likewise.
9816         (inet_net_ntop): Likewise.
9817         (inet_net_pton): Likewise.
9818         (inet_nsap_ntoa): Likewise.
9819
9820         * inet/in.h: Define in_port_t type.
9821         Define in_addr_t type.
9822         (struct in_addr): Use in_addr_t in definition.
9823         (IN_CLASSA): Use cast to in_addr_t.
9824         (IN_CLASSB): Likewise.
9825         (IN_CLASSC): Likewise.
9826         (IN_CLASSD): Likewise.
9827         (IN_EXPERIMENTAL): Likewise.
9828         (IN_BADCLASS): Likewise.
9829         (INADDR_ANY): Likewise.
9830         (INADDR_BROADCAST): Likewise.
9831         (INADDR_NONE): Likewise.
9832         (INADDR_LOOPBACK): Likewise.
9833         (INADDR_UNSPEC_GROUP): Likewise.
9834         (INADDR_ALLHOSTS_GROUP): Likewise.
9835         (INADDR_ALLRTRS_GROUP): Likewise.
9836         (INADDR_MAX_LOCAL_GROUP): Likewise.
9837         (struct sockaddr_in): Use in_port_t for sin_port element.
9838         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9839         Use uint8_t instead of u_int8_t.
9840
9841         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9842         Call __inet_aton instead of inet_aton.
9843         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9844
9845         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9846         (innetgr): Likewise.
9847         (struct addrinfo): Use socklen_t for ai_addrlen element.
9848
9849         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9850         IPV6_RECVERR): New defines.
9851
9852         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9853         * inet/getnetbyad.c: Likewise.
9854         * inet/getnetbyad_r.c: Likewise.
9855         * nis/nss_nis/nis-network.c: Likewise.
9856         * nis/nssplus_nis/nisplus-network.c: Likewise.
9857         * nss/nss_files/files-network.c: Likewise.
9858         * resolv/netdb.h: Define uint32_t if not already happened.
9859         Include bits/netdb.h.  Remove definition of struct netent.
9860         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9861         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9862         * sysdeps/generic/bits/netdb.h: New file.
9863         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9864
9865         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9866         (tests): Add glrefmain.
9867         Add rules to build modules and run tests.  Ignore result of glrefmain
9868         for now since it fails.
9869         * dlfcn/glrefmain.c: New file.
9870         * dlfcn/glreflib1.c: New file.
9871         * dlfcn/glreflib2.c: New file.
9872
9873         * test-skeleton.c: Include <string.h> for strsignal prototype.
9874
9875         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9876         to be missing.
9877
9878         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9879         former init-first.h.  Initialize __libc_multiple_libcs.
9880
9881 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9882
9883         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9884         #if expression for use of unaligned function to the one used in
9885         the definition of these functions.
9886         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9887         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9888         (internal_ucs4le_loop_unaligned): New function.
9889
9890         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9891         (tests): Add order.
9892         (module-names): Add dep1, dep2, dep3, and dep4.
9893         Add dependencies for dep* modules and order.
9894         Define rule for order.out which checks the result.
9895         * elf/dep1.c: New file.
9896         * elf/dep2.c: New file.
9897         * elf/dep3.c: New file.
9898         * elf/dep4.c: New file.
9899         * elf/order.c: New file.
9900
9901         * elf/dl-init.c: Fix typo in comment.
9902
9903 2000-03-31  Andreas Jaeger  <aj@suse.de>
9904
9905         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9906         init function interface.
9907         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9908
9909 2000-03-31  Andreas Jaeger  <aj@suse.de>
9910
9911         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9912         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9913         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9914         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9915         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9916
9917         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9918         anymore, update comment.
9919
9920         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9921
9922         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9923         SHLIB_COMPAT - the struct is always needed.
9924
9925 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9926
9927         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9928         * elf/dl-support.c: Define _dl_starting_up.
9929
9930 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9931
9932         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9933         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9934
9935         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9936
9937         * elf/Makefile (dl-routines): Remove preinit.
9938         * elf/Versions: Remove _dl_preinit.
9939         * elf/dl-preinit.c: Removed.  Move content into...
9940         * elf/dl-init.c: ...here.
9941         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9942
9943         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9944         elements.
9945
9946 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9947
9948         * stdlib/strfmon.c: Corrected problems with the code that
9949         sets default values for [np]_sep_by_space and
9950         [np]_sign_posn; also the new positive/negative alignment
9951         code from the previous patch was not quite right for
9952         [np]_sign_posn = 0.
9953
9954         * localedata/tst-fmon.data: Changes corresponding to the
9955         two sets of fixes made to stdlib/strfmon.c.
9956
9957 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9958
9959         * malloc/malloc.c: Declare bit flags UL so that they will not
9960         default to int size when being inverted.
9961
9962 2000-03-29  Andreas Jaeger  <aj@suse.de>
9963
9964         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9965         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9966
9967 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9968             Ralf Baechle <ralf@uni-koblenz.de>
9969
9970         * Makeconfig: Introduce new variable SHARED to mark code used in
9971         the shared library.
9972         * elf/dl-close.c: Use it instead of PIC.
9973         * elf/dl-load.c: Likewise.
9974         * elf/dl-open.c: Likewise.
9975         * hurd/geteuids.c: Likewise.
9976         * include/libc-symbols.h: Likewise.
9977         * include/shlib-compat.h: Likewise.
9978         * libio/freopen.c: Likewise.
9979         * linuxthreads/cancel.c: Likewise.
9980         * linuxthreads/pthread.c: Likewise.
9981         * linuxthreads/wrapsyscall.c: Likewise.
9982         * nss/nsswitch.c: Likewise.
9983         * stdio-common/vfprintf.c: Likewise.
9984         * sysdeps/arm/init-first.c: Likewise.
9985         * sysdeps/i386/init-first.c: Likewise
9986         * sysdeps/generic/init-first.c: Likewise.
9987         * sysdeps/generic/libc-start.c: Likewise.
9988         * sysdeps/mips/init-first.c: Likewise.
9989         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9990         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9991         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9992         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9993         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9994
9995         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9996
9997 2000-03-29  Andreas Jaeger  <aj@suse.de>
9998
9999         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10000         Use D_PTR to access relocated entries in l_info.
10001         (elf_machine_rela): Likewise.
10002
10003         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10004         Likewise.
10005         (elf_machine_rela): Likewise.
10006
10007         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10008         Likewise.
10009         (__elf_machine_fixup_plt): Likewise.
10010         (__process_machine_rela): Likewise.
10011
10012         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10013         (elf_machine_rela): Likewise.
10014
10015         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10016         (elf_machine_rel): Likewise.
10017
10018         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10019         (elf_machine_fixup_plt): Likewise.
10020         (elf_machine_rela): Likewise.
10021
10022 2000-03-29  Andreas Jaeger  <aj@suse.de>
10023
10024         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10025         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10026         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10027         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10028         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10029         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10030         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10031         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10032         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10033         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10034         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10035         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10036         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10037         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10038         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10039
10040         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10041         macros, remove K&R prototypes.
10042
10043 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10044
10045         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10046         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10047         (PR libc/1677).
10048
10049 2000-03-30  Andreas Jaeger  <aj@suse.de>
10050
10051         * misc/sys/cdefs.h: Remove K&R support.
10052
10053 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10054
10055         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10056         more cases.
10057         * iconv/loop.c: Likewise.
10058
10059 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10060
10061         * iconv/loop.c (put16): Remove __const. Fix access index.
10062         (put32): Remove __const. Use uint32_t instead of uint16_t.
10063         * iconv/skeleton.c: Likewise.
10064
10065 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10066
10067         * mach/Versions (libc: GLIBC_2.0)
10068         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10069         __vm_allocate on this.
10070         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10071         mutex- and spinlock-related symbols on this.
10072         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10073         New version set.  Lock-related symbols go here instead in this case.
10074         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10075         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10076         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10077         * hurd/Versions
10078         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10079         Put them here instead.
10080         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10081         New version set.  Those cthreads symbols go here instead in this case.
10082         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10083
10084 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10085
10086         * elf/dl-init.c (_dl_init): We don't need to call constructors
10087         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10088
10089         Implement dynamic determination of constructor/destructor order in
10090         the dynamic linker.
10091         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10092         (GLIBC_2.2): Add _dl_init.
10093         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10094         r_duplist is not anymore allocated separately.  l_initfini is and
10095         therefore free it if necessary.
10096         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10097         malloc block.  Otherwise allocate l_initfini list only.
10098         Put dependencies for the object in l_initfini list.
10099         Sort dependencies for the object to be loaded topologically.
10100         * elf/dl-fini.c: Before running the destructors sort the topologically.
10101         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10102         call constructors instead of iterating over the pointers.  Get list of
10103         objects for which to run constructors from l_initfini element. Accept
10104         argc, argv, and env as parameters and pass them to the constructors.
10105         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10106         with size of dynamic section.
10107         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10108         _dl_init_next and calling constructors ourself.
10109         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10110         Take argc, argv, and env as parameters and pass them to the
10111         constructors.  Rewrite to call all constructors and not iterate over
10112         the pointers.
10113         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10114         precompute l_initcount and l_preinitcount.
10115         * elf/link.h (struct link_map): Add l_ldnum member.
10116         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10117         l_initcount, and l_preinitcount.  Add l_initfini.
10118         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10119         one for _dl_init.
10120         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10121         function interface.
10122         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10123         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10124         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10125         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10126         conventions now match.
10127
10128         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10129         effect for shared objects.  Don't emit message and call only for
10130         static library.
10131
10132 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10133
10134         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10135         CSA_Z243.4-1985-1..UCS2.
10136         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10137         ISO-8859-10..UCS2.
10138
10139 2000-03-29  Andreas Jaeger  <aj@suse.de>
10140
10141         * include/unistd.h: Remove duplicate entry for __rmdir.
10142         Remove declaration of __mkdir since __mkdir is declared in
10143         sys/stat.h.
10144
10145         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10146         by Michael Deutschmann <michael@talamasca.ocis.net>.
10147
10148         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10149         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10150         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10151         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10152         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10153
10154 2000-03-28  Andreas Jaeger  <aj@suse.de>
10155
10156         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10157         declaration, the prototype is defined via bits/mathcalls.h.
10158         (__sincosf): Likewise.
10159         (__sincosl): Likewise.
10160         (ldexp): Likewise.
10161         (ldexpf): Likewise.
10162         (ldexpl): Likewise.
10163         (__finite): Likewise.
10164         (__inline_mathcodeNP): New macro without prototype
10165         declarations.
10166         (__inline_mathcodeNP2): Likewise.
10167         (__inline_mathcodeNP3): Likewise.
10168         (__inline_mathcodeNP_): Likewise.
10169         (__inline_mathcodeNP2_): Likewise.
10170         (__inline_mathcodeNP3_): Likewise.
10171         (__inline_mathopNP): Likewise.
10172         (__inline_mathop_declNP): Likewise.
10173         (__inline_mathop_declNP_): Likewise.
10174         (__inline_mathcode_): Use __inline_mathcodeNP_.
10175         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10176         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10177         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10178         (__expm1l): Don't define prototype, the prototype is defined via
10179         bits/mathcalls.h.
10180         (exp): Likewise.
10181         (__expl): Likewise.
10182         (tan): Likewise.
10183         (atan2): Likewise.
10184         (__atan2l): Likewise.
10185         (fmod): Likewise.
10186         (pow): Likewise.
10187         (fabsf): Likewise.
10188         (fabsl): Likewise.
10189         (__fabsl): Likewise.
10190         (asin): Likewise.
10191         (acos): Likewise.
10192         (sinh): Likewise.
10193         (cosh): Likewise.
10194         (tanh): Likewise.
10195         (floor): Likewise.
10196         (ceil): Likewise.
10197         (expm1): Likewise.
10198         (log1p): Likewise.
10199         (asinh): Likewise.
10200         (acosh): Likewise.
10201         (atanh): Likewise.
10202         (hypot): Likewise.
10203         (logb): Likewise.
10204         (fma): Likewise.
10205         (drem): Likewise.
10206         (sqrt): Likewise.
10207         (__sqrtl): Likewise.
10208         (sin): Likewise.
10209         (cos): Likewise.
10210         (atan): Likewise.
10211         (log): Likewise.
10212         (log10): Likewise.
10213         (asinh): Likewise.
10214         (log2): Likewise.
10215         (rint): Likewise.
10216
10217 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10218
10219         * Makerules: If make variable md5 is defined to yes after
10220         generating dependencies generate MD5 sum for the object.
10221
10222         * iconv/gconv_builtin.h: Fix length in transformation definition
10223         for UNICODEBIG.
10224
10225         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10226
10227         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10228         allow as well reading from/writing to unaligned addresses on machines
10229         which don't support this in hardware.  Use FCTNAME macro to define
10230         function name.  Include the file a second time for platforms which
10231         need special unaligned handling.
10232         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10233         to access potentially unaligned addresses.  These macros are intended
10234         to be used only outside the loops.
10235         (unaligned): New definition.  In case the machine can handle unaligned
10236         access define as zero.  Otherwise as a variable which is initialized
10237         as nonzero in case the buffer passed in at runtime is unaligned with
10238         respect to the character set encoding involved.
10239         Call aligned or unaligned looop functions according to unaligned
10240         variable.
10241         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10242         of direct casting pointer to potentially handle unaligned memory
10243         accesses.
10244         * iconvdata/8bit-generic.c: Likewise.
10245         * iconvdata/ansi_x3.110.c: Likewise.
10246         * iconvdata/big5.c: Likewise.
10247         * iconvdata/euc-cn.c: Likewise.
10248         * iconvdata/euc-jp.c: Likewise.
10249         * iconvdata/euc-kr.c: Likewise.
10250         * iconvdata/euc-tw.c: Likewise.
10251         * iconvdata/gbk.c: Likewise.
10252         * iconvdata/iso-2022-cn.c: Likewise.
10253         * iconvdata/iso-2022-jp.c: Likewise.
10254         * iconvdata/iso-2022-kr.c: Likewise.
10255         * iconvdata/iso646.c: Likewise.
10256         * iconvdata/iso_6937-2.c: Likewise.
10257         * iconvdata/iso_6937.c: Likewise.
10258         * iconvdata/johab.c: Likewise.
10259         * iconvdata/sjis.c: Likewise.
10260         * iconvdata/t.61.c: Likewise.
10261         * iconvdata/uhc.c: Likewise.
10262         * iconvdata/unicode.c: Likewise.
10263         * iconvdata/utf-16.c: Likewise.
10264
10265         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10266         prototypes.
10267
10268         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10269         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10270         public.
10271         * malloc/mcheck.h (mcheck_check_all): Declare.
10272
10273         * stdio-common/Makefile (tests): Add tst-obprintf.
10274
10275 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10276
10277         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10278         Declare pthread_sigmask.
10279
10280         * csu/version.c: Add 2000 to copyright years.
10281         Remove Emacs local variables section.
10282
10283 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10284
10285         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10286         __gconv_transform_internal_ucs2little): Remove declarations.
10287         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10288         __gconv_transform_internal_ucs2): Never need to bswap_16.
10289         (__gconv_transform_ucs2reverse_internal,
10290         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10291
10292 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10293
10294         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10295         obsoleting version not being defined at all, in which case the
10296         result is always true.
10297
10298         * Makeconfig (preprocess-versions): New canned sequence for running
10299         cpp on shlib-versions and the like.
10300         (soversions.i): Use it.
10301         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10302         Versions.def and Versions files.
10303
10304 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10305
10306         * stdio-common/tst-obprintf.c (main): Add another check to see
10307         obstack_printf handling all possible beginnings of the block
10308         inside an obstack chunk.
10309
10310         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10311         install mcheck handler.
10312
10313         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10314         handling problem.
10315
10316 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10317
10318         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10319
10320         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10321         on [HAVE_ELF && DO_VERSIONING].
10322
10323 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10324
10325         * stdio-common/tst-obprintf.c: New file.
10326
10327 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10328
10329         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10330         _IO_OVERFLOW directly instead through __overflow.
10331
10332         * locale/programs/localedef.c (construct_output_path): If path
10333         contains a / compute the end of the directory name correctly.
10334
10335         * include/features.h: Undef and document __USE_XOPEN2K.
10336
10337         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10338         whenever a function is called.  Initiated by calling mcheck_pedantic
10339         instead of mcheck.
10340         * malloc/mcheck.h: Declare mcheck_pedantic.
10341         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10342         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10343         for now.
10344
10345 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10346
10347         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10348         * dlfcn/dlopenold.c: Likewise.
10349         * nss/getXXbyYY_r.c: Likewise.
10350         * nss/getXXent_r.c: Likewise.
10351         * hurd/hurdinit.c: Likewise.
10352         * hurd/compat-20.c: Likewise.
10353         * libio/oldiofopen.c: Likewise.
10354         * libio/oldiofclose.c: Likewise.
10355         * libio/oldiofdopen.c: Likewise.
10356         * libio/oldfileops.c: Likewise.
10357         * libio/oldstdfiles.c: Likewise.
10358         * libio/oldiofsetpos.c: Likewise.
10359         * libio/oldiofgetpos.c: Likewise.
10360         * libio/oldiofgetpos64.c: Likewise.
10361         * libio/oldiofsetpos64.c: Likewise.
10362         * libio/oldiopopen.c: Likewise.
10363         * libio/oldpclose.c: Likewise.
10364         * libio/oldtmpfile.c: Likewise.
10365         * libio/freopen.c (freopen): Likewise.
10366         * libio/iofclose.c (_IO_new_fclose): Likewise.
10367
10368         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10369         (reboot): Declare it.
10370
10371         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10372
10373         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10374
10375         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10376
10377         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10378         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10379         We need this for the sbrk decl, which can be included without Unix98.
10380
10381 2000-03-20  Richard Henderson  <rth@cygnus.com>
10382
10383         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10384         argument to yperr2nss is an int, not size_t.
10385         * posix/regex.c (print_partial_compiled_pattern): Cast all
10386         ptrdiff_t to long for printing.
10387         (print_compiled_pattern): Use Z for printing size_t.
10388         * posix/testfnm.c (tests): Avoid trigraphs.
10389         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10390         Use a C comment, not an assembly comment.
10391
10392         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10393         of __ASSUME_32BITUIDS.
10394
10395 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10396
10397         * libio/iofopncook.c: Remove K&R prototypes.
10398
10399 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10400
10401         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10402         an initial value of 1024 instead of RLIM_INFINITY.
10403
10404         * Versions.def (libmachuser, libhurduser): Remove these sections,
10405         since these libraries do not presently use symbol versions.
10406
10407         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10408         is RLIM_INFINITY, return -1 instead.
10409
10410 2000-03-24  Andreas Jaeger  <aj@suse.de>
10411
10412         * Makefile (postclean): Added soversions.i.
10413
10414 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10415
10416         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10417         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10418         and _FPU_IEEE.  Change _FPU_RESERVED.
10419
10420 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10421
10422         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10423
10424 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10425
10426         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10427         (gaih_inet): Remove unused duplicate variable.
10428
10429         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10430         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10431         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10432         only flavors supported by this function anyway.
10433
10434 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10435
10436         * stdlib/strfmon.c: Corrected problems with missing signs and
10437         missing or extra spaces; allow for sign strings longer than
10438         one character; add padding to ensure positive and negative
10439         formats are aligned when a left precision is used.
10440
10441 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10442
10443         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10444         Patch by John Mizel <John.Mizel@msdw.com>.
10445
10446 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10447
10448         * manual/install.texi: Remove references to crypt add-on.
10449
10450 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10451
10452         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10453         section while taking the _hurd_rlimit_lock.
10454         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10455
10456 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10457
10458         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10459         using $(LN_S).
10460
10461         * sysdeps/mach/hurd/if_index.c: New file.
10462
10463         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10464         * sysdeps/gnu/net/if.h: here.
10465         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10466         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10467         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10468         functions and `struct if_nameindex' type.
10469         * socket/Makefile (headers): Add net/if.h here.
10470         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10471         * sysdeps/mach/hurd/Dist: Remove it here.
10472         * sysdeps/unix/sysv/linux/Dist: And here.
10473         * sysdeps/generic/if_index.c: Include <net/if.h>.
10474
10475 2000-03-24  Andreas Jaeger  <aj@suse.de>
10476
10477         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10478         access relocated entries in l_info.
10479         (elf_machine_got_rel): Likewise.
10480         (elf_machine_runtime_setup): Likewise.
10481         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10482         (elf_machine_runtime_setup): Likewise.
10483         (__dl_runtime_resolve): Likewise.
10484
10485 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10486
10487         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10488         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10489         according to RFC 2553.
10490         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10491         * inet/getnameinfo.c: Likewise.
10492         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10493
10494 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10495
10496         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10497         Remove no-op pointer increment.
10498
10499 2000-03-23  Andreas Jaeger  <aj@suse.de>
10500
10501         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10502         follow change for libio.h from 2000-03-10.
10503
10504 2000-03-23  Andreas Jaeger  <aj@suse.de>
10505
10506         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10507         change.
10508         * elf/dl-debug.c: Likewise.
10509         * elf/dl-deps.c: Likewise.
10510         * elf/dl-error.c: Likewise.
10511         * elf/dl-fini.c: Likewise.
10512         * elf/dl-init.c: Likewise.
10513         * elf/dl-load.c: Likewise.
10514         * elf/dl-lookup.c: Likewise.
10515         * elf/dl-minimal.c: Likewise.
10516         * elf/dl-object.c: Likewise.
10517         * elf/dl-open.c: Likewise.
10518         * elf/dl-preinit.c: Likewise.
10519         * elf/dl-profile.c: Likewise.
10520         * elf/dl-profstub.c: Likewise.
10521         * elf/dl-reloc.c: Likewise.
10522         * elf/dl-runtime.c: Likewise.
10523         * elf/dl-support.c: Likewise.
10524         * elf/dl-symbol.c: Likewise.
10525         * elf/dl-version.c: Likewise.
10526         * elf/rtld.c: Likewise.
10527         * elf/sprof.c: Likewise.
10528         * sysdeps/generic/dl-cache.c: Likewise.
10529         * sysdeps/generic/dl-origin.c: Likewise.
10530         * sysdeps/generic/dl-sysdep.c: Likewise.
10531         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10532         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10533         * sysdeps/generic/libc-start.c: Likewise.
10534         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10535         * sysdeps/powerpc/dl-machine.c: Likewise.
10536         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10537         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10538         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10539         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10540
10541         * elf/ldsodefs.h: Move file to ...
10542         * sysdeps/generic/ldsodefs.h: ... here.
10543
10544         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10545
10546         * sysdeps/mips/elf/ldsodefs.h: New file.
10547
10548         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10549         entries in l_info.
10550         (_dl_check_map_versions): Likewise.
10551         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10552         * elf/dl-load.c (_dl_init_paths): Likewise.
10553         (_dl_map_object): Likewise.
10554         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10555         (elf_get_dynamic_info): Likewise.
10556         * elf/do-lookup.h (FCT): Likewise.
10557         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10558         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10559         * elf/dl-addr.c (_dl_addr): Likewise.
10560         * elf/dl-runtime.c (profile_fixup): Likewise.
10561         (fixup): Likewise.
10562         * elf/dl-init.c (_dl_init_next): Likewise.
10563         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10564         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10565         (DISTINGUISH_LIB_VERSIONS): Likewise.
10566         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10567         (elf_machine_rel): Likewise.
10568
10569         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10570         for writable dynamic section.
10571
10572 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10573
10574         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10575         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10576
10577 2000-03-22  Andreas Jaeger  <aj@suse.de>
10578
10579         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10580         from latest Linux kernel.
10581
10582 2000-03-21  Andreas Jaeger  <aj@suse.de>
10583
10584         * Versions.def: Add version 2.1.4.
10585
10586 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10587
10588         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10589         * libio/oldiofopen.c: Likewise.
10590         * libio/oldiofclose.c: Likewise.
10591         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10592
10593 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10594
10595         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10596         indicating the first version set to obsolete the conditionalized code.
10597         (compat_symbol): New macro.
10598         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10599         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10600         integer values to the ABI_* macros for supported versions.
10601         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10602         compat_symbol macro.
10603
10604 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10605
10606         * nscd/connections.c (nscd_run): Pretty print.
10607         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10608
10609         * manual/charset.texi: Fix typos.  Rephrase.
10610         * manual/process.texi: Likewise.
10611         * manual/signal.texi: Likewise.
10612         Patches by Mike Coleman <mkc@kc.net>.
10613
10614         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10615         versions.
10616         * libio/iofdopen.c: Likewise.
10617         * libio/iofgetpos.c: Likewise.
10618         * libio/iofgetpos64.c: Likewise.
10619         * libio/iofopen.c: Likewise.
10620         * libio/iofsetpos.c: Likewise.
10621         * libio/iofsetpos64.c: Likewise.
10622         * libio/iopopen.c: Likewise.
10623         * libio/oldiofopen.c: Likewise.
10624         * libio/pclose.c: Likewise.
10625         * sysdeps/gnu/siglist.c: Likewise.
10626         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10627
10628         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10629         chance to expand VERSION_##lib##_##version.
10630
10631         * libio/fileops.c: Use new macros from shlib-compat.h to define
10632         versions.
10633         * libio/iofclose.c: Likewise.
10634         * libio/oldiofclose.c: Likewise.
10635         Patch by Roland McGrath <roland@frob.com>.
10636
10637 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10638
10639         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10640         Lay out struct sigcontext according to what really gets passed on
10641         the stack.
10642         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10643         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10644         (prgregset_t, prfpregset_t): Define to elf_* types.
10645         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10646         Define to correct value.
10647         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10648         sigcontext.
10649         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10650
10651 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10652
10653         * scripts/firstversions.awk: Allow multiple version sets in the
10654         "earliest version" specification, meaning that version sets in the
10655         gaps between listed versions should be folded into the earliest later
10656         version that is explicitly listed.
10657         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10658         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10659
10660 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10661
10662         * iconv/gconv_builtin.c: Include <endian.h>.
10663         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10664         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10665         according to current platform.
10666         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10667         __gconv_transform_internal_ucs2reverse, and
10668         __gconv_transform_internal_ucs4le.
10669         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10670         __gconv_transform_ucs2reverse_internal and
10671         __gconv_transform_internal_ucs2reverse.
10672         * iconvdata/Makefile (modules): Add UNICODE.
10673         (distribute): Add unicode.c.
10674         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10675         * iconvdata/unicode.c: New file.
10676
10677         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10678         determine byte order of input and convert accordingly.
10679
10680         * iconvdata/utf-16.c (gconv_init): Fix typo.
10681
10682 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10683
10684         * iconvdata/gconv-modules: Fix typo.
10685
10686         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10687         more messages.
10688
10689         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10690
10691 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10692
10693         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10694
10695 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10696
10697         * misc/Makefile (routines): Add mincore.
10698
10699 2000-03-20  Andreas Jaeger  <aj@suse.de>
10700
10701         * sysdeps/generic/mincore.c: New stub file.
10702
10703         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10704         from latest Linux kernel.
10705
10706 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10707
10708         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10709         _SC_GETPW_R_SIZE_MAX.
10710
10711 2000-03-20  Richard Henderson  <rth@cygnus.com>
10712
10713         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10714         in GLIBC_2.1.4.
10715
10716 2000-03-20  Richard Henderson  <rth@cygnus.com>
10717
10718         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10719         of arithmetic instructions.
10720
10721         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10722         with the fpcr.  Protect from INV exception.
10723         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10724         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10725         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10726
10727         * sysdeps/alpha/fpu/s_copysign.c: New.
10728         * sysdeps/alpha/fpu/s_copysignf.c: New.
10729         * sysdeps/alpha/fpu/s_fabs.c: New.
10730         * sysdeps/alpha/fpu/s_fabsf.c: New.
10731         * sysdeps/alpha/fpu/s_rint.c: New.
10732         * sysdeps/alpha/fpu/s_rintf.c: New.
10733
10734         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10735
10736         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10737         Kill sethae.
10738         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10739         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10740         Use physical addresses not KSEG addresses.
10741         (io_system): Add PYXIS.
10742         (io): Remove hae.reg, sys, hae_shift.
10743         (stb_mb, stw_mb, stl_mb, __sethae): New.
10744         (inline_outb, inline_outw, inline_outl): Don't set hae.
10745         (inline_inb, inline_inw, inline_inl): Likewise.
10746         (dense_sethae): New null function.
10747         (struct cpuinfo_data): New.
10748         (process_cpuinfo): Use local and stack variables, not static.
10749         Move readlink check here from init_iosys.
10750         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10751         (_iopl): Simplify.
10752         (_hae_shift): Calculate it here.
10753         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10754         add pciconfig_iobase.
10755
10756 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10757
10758         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10759         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10760
10761         * scripts/versions.awk: Fixed version renaming code to distinguish
10762         libraries properly.
10763
10764 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10765
10766         * include/stdlib.h: Add prototype for __cxa_atexit.
10767
10768         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10769         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10770
10771 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10772
10773         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10774         existing rtld-installed-name.
10775         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10776         replace existing rtld-installed-name using $(symbolic-link-prog).
10777
10778 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10779
10780         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10781         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10782         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10783         but not the former.
10784
10785 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10786
10787         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10788         glob64.  Since there is no glob64 in the LFS proposal applications
10789         can assume that glob handles LFS situations.  glob64 is only needed
10790         if alternative filesystem functions are used.
10791
10792 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10793
10794         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10795         when GLOB_DOOFFS is set; correct handling of patterns
10796         containing escaped wildcards (and no unescaped ones);
10797         GLOB_ERR flag was being ignored in some situations.
10798
10799         * posix/globtest.c, posix/globtest.sh: Updated to include
10800         tests for the problems fixed by the above changes to glob.c.
10801
10802         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10803
10804 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10805
10806         * Makeconfig (soversion.i): Use only first match for each lib.
10807
10808         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10809
10810         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10811         rather than $(sysd-dirs-done) to protect these rules.
10812
10813         * Makerules (version-renames.def): Target removed.
10814         (Versions.all): Depend on soversions.i directly and parse it.
10815
10816         * Makeconfig (soversions.i): New target, input-reading parts of
10817         soversions.mk generation moved here; result is a canonicalized
10818         list "LIB VERSION [SET]" for this configuration.
10819         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10820         * Makerules (version-renames.def): New target, generated from
10821         soversions.i with contents that was in $(map-firstversions).
10822         (Versions.all): Don't depend on soversions.mk, depend on
10823         version-renames.def instead; just cat it into the input.
10824
10825         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10826         for $(map-firstversions), which better handles it being empty.
10827
10828         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10829         supported version for libc 0.2.90.libio to GLIBC_2.2.
10830
10831         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10832         and use it to emit new variable `map-firstversions'.
10833         * scripts/firstversions.awk: New file.
10834         * Makerules (Versions.all): Use scripts/firstversions.awk and
10835         the $(map-firstversions) value to generate a modified versions list
10836         that includes renames in "A = B" syntax for each version set earlier
10837         than the "earliest symbol version" named in shlib-versions.
10838         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10839         rename version set A to B in the output to the intermediate file.
10840         * scripts/abi-versions.awk: New file.
10841         * Makerules (abi-versions.h): New target, generated by that script.
10842         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10843         * include/shlib-compat.h: New file, uses that generated header.
10844
10845 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10846
10847         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10848         after stripping # comments, and then run it through cpp.
10849         This allows things like "%ifdef FOO" based on config.h settings.
10850         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10851
10852         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10853         and other errors that indicate a pseudo-receive happened, grok through
10854         the message buffer for port rights that need references fixed up.
10855
10856 2000-03-16  Andreas Jaeger  <aj@suse.de>
10857
10858         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10859
10860         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10861
10862         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10863         from latest Linux kernel.
10864         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10865
10866         * misc/sys/mman.h: Add prototype for mincore.
10867
10868 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10869
10870         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10871         entry for GLIBC_2.0 version of setrlimit.
10872         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10873
10874 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10875
10876         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10877         * nis/nss_compat/compat-initgroups.c: Likewise.
10878         * nis/nss_nis/nis-initgroups.c: Likewise.
10879         * nis/nss_nis/nis-netgrp.c: Likewise.
10880         * nis/nss_nis/nis-proto.c: Likewise.
10881         * nis/nss_nis/nis-rpc.c: Likewise.
10882         * nis/nss_nis/nis-service.c: Likewise.
10883         * nis/ypclnt.c: Likewise.
10884
10885 2000-03-16  Andreas Jaeger  <aj@suse.de>
10886
10887         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10888         doesn't exist, correct checks.  Fixes PR libc/1649.
10889
10890 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10891
10892         * nscd/hstcache.c: Restore correct UID.
10893         * nscd/pwdcache.c: Likewise.
10894         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10895
10896 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10897
10898         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10899         macros for register names, in line with 2000-03-14 linux change.
10900
10901         * sysdeps/mach/sched_yield.c: New file.
10902
10903 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10904
10905         * sysdeps/generic/lockfile.c: Include <stdio.h>
10906         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10907         case <libio.h> defined them.
10908         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10909         from __internal_*.
10910         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10911         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10912
10913         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10914         for more pleasing parse error.
10915
10916 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10917
10918         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10919         memory for eras.
10920         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10921
10922         * elf/Makefile: Add rules to compile and run constload1 test.
10923         * elf/constload1.c: New file.
10924         * elf/constload2.c: New file.
10925         * elf/constload3.c: New file.
10926
10927 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10928
10929         * sysdeps/posix/open64.c: Make __open64 weak alias.
10930         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10931         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10932         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10933         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10934         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10935         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10936         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10937         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10938         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10939         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10940
10941 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10942
10943         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10944         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10945
10946 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10947
10948         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10949         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10950
10951 2000-03-08  Andreas Jaeger  <aj@suse.de>
10952
10953         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10954
10955 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10956
10957         * timezone/africa: Update from tzdata2000d.
10958         * timezone/asia: Likewise.
10959         * timezone/australasia: Likewise.
10960         * timezone/europe: Likewise.
10961         * timezone/northamerica: Likewise.
10962         * timezone/southamerica: Likewise.
10963
10964         * po/fr.po: Update from translation team.
10965         * po/de.po: Likewise.
10966
10967         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10968         last parameter.  Move code to add map to global scope from here...
10969         * elf/dl-open.c (dl_open_worker): ...here.
10970         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10971         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10972
10973         * locale/programs/ld-collate.c (collate_read): Fix warning.
10974
10975         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10976         values and macros for register names.
10977
10978         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10979         returned by seek cookie function is -1.
10980
10981 2000-03-14  Andreas Jaeger  <aj@suse.de>
10982
10983         * locale/localeconv.c (localeconv): Fix typo.
10984         Reported by Andre Charbonneau <andrec@corel.com>.
10985
10986 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10987
10988         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10989         since modules depend on it counting the number of times the conversion
10990         function got called.
10991
10992         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10993
10994         * iconv/gconv.h: Pretty print.
10995
10996 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10997
10998         * posix/wordexp-test.c: Correct one of the tests added in the last
10999         change.  Really get the root passwd entry to check again ~root.
11000
11001 2000-03-10  Andreas Jaeger  <aj@suse.de>
11002
11003         * manual/filesys.texi (Working Directory): Fix last patch.
11004         Patch by Martin Buchholz  <martin@xemacs.org>.
11005
11006 2000-03-10  Andreas Jaeger  <aj@suse.de>
11007
11008         * manual/creature.texi (Feature Test Macros): Fix language.
11009
11010 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11011
11012         * mach/devstream.c (devstream_write, devstream_read): New functions.
11013         (input, output): Functions removed.
11014         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11015         using only the vanilla fopencookie interface.
11016
11017         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11018         as macro for __io_functions.
11019         (funcsio): Use cookie_io_functions_t type name.
11020         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11021
11022         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11023         fopencookie.
11024         (fopencookie): Use it.
11025         * libio/libio.h: Declare _IO_cookie_init.
11026         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11027         _IO_cookie_init.
11028
11029         * libio/libio.h (__io_seek_fn): Fix second argument type
11030         to be a pointer, in line with the manual and the old stdio.
11031         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11032
11033         * sysdeps/generic/bits/stdio-lock.h: New file.
11034         This is a stub with #error, but that's better than no file at all.
11035
11036 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11037
11038         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11039         * manual/message.texi (Using gettextized software): Doc Fixes.
11040         * manual/message.texi (Message Translation): Doc Fixes.
11041         * manual/filesys.texi (File Size): Doc Fixes.
11042         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11043         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11044         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11045         * manual/install.texi: Doc Fixes.
11046         * manual/search.texi (Hash Search Function): Doc Fixes.
11047         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11048         * FAQ.in: Doc Fixes.
11049         * config.h.in: Doc Fixes.
11050         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11051         Doc Fixes.  `allows to' is not correct English.
11052
11053         * elf/rtld.c: Doc fixes.
11054         * manual/creature.texi (Feature Test Macros): Doc fixes.
11055         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11056
11057         * manual/filesys.texi (Working Directory): Check for ERANGE to
11058         avoid infloop.
11059
11060 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11061
11062         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11063         conditions so as not to clobber the final '\0' when there is only one
11064         element in the vector.
11065
11066 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11067
11068         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11069         broken by 2000-02-27 change.
11070
11071         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11072
11073 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11074
11075         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11076         argument type, for 2000-02-22 change in signal/signal.h declaration.
11077
11078 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11079
11080         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11081         to getdirentries64 (no __), since the Linux implementation
11082         has no __ name, and there is no declaration for the __ name.
11083
11084         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11085
11086         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11087         sed regexp so as not to break directory names including /../ within.
11088
11089         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11090         The sysdeps/generic file is right for BSD.  This file was in fact the
11091         Hurd file, but the only difference was the WNOREAP flag that was never
11092         actually implemented or used anywhere.
11093
11094         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11095         since AC_PATH_PROG already does it for us.
11096         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11097         correctness and sh portability.  I replaced the broken check
11098         with a more sensible implementation of the apparently intended
11099         semantics, which might still be questionable.  Using expr causes
11100         a non-numeric value for `perl -V:apiversion` to be accepted,
11101         refusing to use only a perl that reports a number less than 5;
11102         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11103         * configure: Regenerated.
11104
11105 2000-03-08  Andreas Jaeger  <aj@suse.de>
11106
11107         * manual/crypt.texi: Fix paths.
11108
11109 2000-03-07  Andreas Jaeger  <aj@suse.de>
11110
11111         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11112         were swapped.
11113         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11114         libc/1636.
11115
11116 2000-03-06  Andreas Jaeger  <aj@suse.de>
11117
11118         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11119         in __sgn1l, otherwise g++ fails to parse this.
11120         Reported by Sean Chen <sean.chen@turbolinux.com>.
11121
11122 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11123
11124         * configure.in: Compute sizeof-long-double.
11125         * configure: Regenerated.
11126         * config.make.in: Make sizeof-long-double available to sub-makes.
11127
11128 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11129
11130         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11131         call.
11132
11133 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11134
11135         * Makeconfig (rpath-dirs): Add crypt.
11136         (all-subdirs): Remove md5crypt.
11137         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11138         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11139         * sysdeps/generic/crypt-entry.c: Delete.
11140         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11141         * sysdeps/generic/crypt.h: Delete.
11142         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11143         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11144         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11145         * sysdeps/generic/des_impl.c: Delete.
11146         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11147         * crypt/sysdeps: Delete.
11148         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11149         * md5-crypt/Versions: Move to crypt/.
11150         * md5-crypt/md5-crypt.c: Move to crypt/.
11151         * md5-crypt/md5.c: Move to crypt/.
11152         * md5-crypt/md5c-test.c: Move to crypt/.
11153         * md5-crypt/md5test.c: Move to crypt/.
11154         * md5-crypt: Delete.
11155         * crypt/Makefile: Adjust for new structure.
11156
11157 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11158
11159         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11160         define to 1 if not defined.
11161
11162 2000-03-03  Andreas Jaeger  <aj@suse.de>
11163
11164         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11165
11166 2000-03-03  Andreas Jaeger  <aj@suse.de>
11167
11168         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11169         cases.
11170         (xdr_int64_t): Correctly handle lower half.
11171         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11172
11173 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11174
11175         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11176         call.
11177
11178 2000-03-02  Andreas Jaeger  <aj@suse.de>
11179
11180         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11181         2.3.43.
11182
11183 2000-03-02  Andreas Jaeger  <aj@suse.de>
11184
11185         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11186
11187 2000-03-01  Andreas Jaeger  <aj@suse.de>
11188
11189         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11190         (tests): Added tst-getdate.
11191
11192         * time/tst-getdate.c: New file.
11193
11194         * time/datemsk: New file, needed for tst-getdate.
11195
11196 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11197
11198         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11199
11200 2000-02-17  H.J. Lu  <hjl@gnu.org>
11201
11202         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11203
11204         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11205         available.
11206         (svcudp_recv): Set up message with the new "xp_pad" field for
11207         IP_PKTINFO.
11208         (svcudp_reply): Support IP_PKTINFO if available.
11209
11210 2000-03-01  Andreas Jaeger  <aj@suse.de>
11211
11212         * time/getdate.c (check_mday): Fix check for february.
11213         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11214         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11215
11216 2000-03-02  Andreas Jaeger  <aj@suse.de>
11217
11218         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11219         g++ fails to parse this.
11220         Reported by Sean Chen <sean.chen@turbolinux.com>.
11221
11222 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11223
11224         * io/creat.c: Moved to...
11225         * sysdeps/generic/creat.c: ...here.
11226         * io/creat64.c: Moved to...
11227         * sysdeps/generic/creat64.c: ...here.
11228         * io/lockf.c: Moved to...
11229         * sysdeps/generic/lockf.c: ...here.
11230
11231         * crypt/crypt.texi: Moved to...
11232         * manual/crypt.texi: ...here.
11233         * crypt/examples/genpass.c: Moved to...
11234         * manual/examples/genpass.c: ...here.
11235         * crypt/examples/mygenpass.c: Moved to...
11236         * manual/examples/mygenpass.c: ...here.
11237         * crypt/examples/testpass.c: Moved to...
11238         * manual/examples/testpass.c: ...here.
11239
11240         * manual/Makefile (chapters): Add crypt.
11241         * manual/conf.texi: Add usual header for not-last chapter.
11242         * manual/crypt.texi: Add special header for last chapter.
11243
11244 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11245
11246         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11247         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11248         complain if there is no crypt add-on.
11249         * crypt/configure: Removed.
11250
11251         * crypt/crypt.texi: Update documentation of US export restrictions
11252         to match the 14 Jan 2000 regulations.
11253
11254 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11255
11256         * crypt: New subdirectory, merged in from the crypt add-on.
11257
11258 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11259
11260         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11261
11262
11263 See ChangeLog.10 for earlier changes.