Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2
3         * timezone/zic.c: Update from tzcode2000f.
4         * timezone/australasia: Update from tzdata2000f.
5         * timezone/europe: Likewise.
6         * timezone/southamerica: Likewise.
7         * timezone/yearistype: Likewise.
8
9 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
10
11         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
12         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
13         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
14         Remove the junk that's only relevant in the Linux kernel itself.
15         Add a warning saying that this file is now obsolete, and include
16         <sys/procfs.h>.
17         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
18         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
19         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
20         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
21         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
22         and add the notice that the file is primarily there for GDB.
23         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
24
25 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
26
27         * time/tzfile.c (__tzfile_compute): __tzstring zones
28         from zone_names.
29
30 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
31
32         * resolv/resolv.h (__res_state): Surround prototype with
33         __BEGIN_DECLS/__END_DECLS.
34         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
35
36 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
37
38         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
39         Make independant of asm/resource.h from the Linux kernel.
40
41 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
42
43         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
44
45 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
46
47         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
48         * locale/Makefile (locale-CPPFLAGS): Likewise.
49
50 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
51
52         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
53         for AMD processors.
54
55 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
56
57         * misc/Versions (mincore): Export at GLIBC_2.2.
58
59 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
60
61         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
62
63 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
64
65         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
66         socketpair.  Made socketpair a weak alias.
67         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
68         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
69         conforming, but fall back on the old protocol if the socket server
70         doesn't support it.
71         * include/sys/socket.h: Add prototype for __socketpair.
72
73 2000-08-09  Andreas Schwab  <schwab@suse.de>
74
75         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
76         long long modifier is seen.
77
78         * elf/nodelete.c (do_test): Remove reference to undefined member
79         sa_restorer.
80         * rt/tst-aio4.c (do_test): Likewise.
81
82         * configure.in: Add `-lm' when checking for libgd.
83         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
84         linking.
85
86 2000-08-09  Andreas Jaeger  <aj@suse.de>
87
88         * configure.in: Change required make versions.
89
90         * manual/install.texi (Tools for Compilation): Document required
91         make version.
92         (Supported Configurations): Update list of supported
93         configurations.
94
95 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
96
97         * locale/linereader.c (get_string): Don't print an error is a string
98         contains an unknown character.
99
100 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
101
102         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
103         (new_symbol): Take new parameters with name of the symbol.
104         Adjust callers.
105         (handle_ellipsis): Don't only allow character symbols.
106         (collate_read): Allow string of collating elements contain invalid
107         characters; ignore entry in this case.
108         Handle ellipsis of collating symbols before first order_start.
109         Allow ellipsis in state 0.
110
111 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
112
113         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
114         error message.
115         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
116
117 2000-08-04  Greg McGary  <greg@mcgary.org>
118
119         * posix/regex.c (SET_HIGH_BOUND): New macro.
120         (MOVE_BUFFER_POINTER): Use it.
121         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
122         (EXTEND_BUFFER): Use it.
123
124 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
125
126         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
127         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
128         _wide_data but from _IO_FILE directly.
129         * libio/iofclose.c: Likewise.
130         * libio/wfileops.c: Likewise.
131
132         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
133         * libio/libioP.h: Change prototypes.
134
135 2000-08-03  Greg McGary  <greg@mcgary.org>
136
137         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
138         frame pointer early so that we save caller's frame pointer.
139         * sysdeps/i386/elf/setjmp.S: Likewise.
140
141         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
142         * io/test-utime.c: Test passing NULL as utimbuf* arg.
143
144         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
145         (MOVE_BUFFER_POINTER): Handle high_bound properly.
146         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
147
148 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
149
150         * iconvdata/big5.c: Updated.
151         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
152
153 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
154
155         * Makeconfig (all-subdirs): Add conform.
156         * conform/Makefile: Include ../Rules.
157
158         * Makefile (README): Add rules to generate here as well.
159
160 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
161
162         * version.h (VERSION): Bump to 2.1.92.
163
164         * sysdeps/ia64/Dist: Add _mcount.S.
165
166         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
167
168         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
169
170         * elf/Makefile (distribute): Add missing modules.
171
172         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
173
174         * posix/regex.c (compile_range): Translate range start and end
175         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
176
177         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
178         asm/resource.h.
179
180         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
181
182 2000-08-02  Andreas Jaeger  <aj@suse.de>
183
184         * elf/elf.h (EM_S390): Added.
185         (R_390_*): New relocs for S390.
186
187         * sysdeps/unix/sysv/linux/s390/Dist: New file.
188         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
189         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
190         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
191         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
192         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
193         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
194         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
195         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
196         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
197         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
198         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
199         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
200         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
201         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
202         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
203         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
204         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
205         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
206         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
207         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
208         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
209         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
210         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
211         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
212         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
213         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
214         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
215         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
216         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
217         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
218         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
219         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
220         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
221         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
222         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
223         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
224         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
225         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
226         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
227         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
228         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
229         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
230         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
231         * sysdeps/s390/sysdep.h: New file.
232         * sysdeps/s390/sys/ucontext.h: New file.
233         * sysdeps/s390/sub_n.S: New file.
234         * sysdeps/s390/strncpy.S: New file.
235         * sysdeps/s390/strcpy.S: New file.
236         * sysdeps/s390/stackinfo.h: New file.
237         * sysdeps/s390/setjmp.S: New file.
238         * sysdeps/s390/s390-mcount.S: New file.
239         * sysdeps/s390/mul_1.S: New file.
240         * sysdeps/s390/memusage.h: New file.
241         * sysdeps/s390/memset.S: New file.
242         * sysdeps/s390/memcpy.S: New file.
243         * sysdeps/s390/memchr.S: New file.
244         * sysdeps/s390/machine-gmon.h: New file.
245         * sysdeps/s390/ldbl2mpn.c: New file.
246         * sysdeps/s390/gmp-mparam.h: New file.
247         * sysdeps/s390/fpu/fpu_control.h: New file.
248         * sysdeps/s390/fpu/fesetround.c: New file.
249         * sysdeps/s390/fpu/fegetround.c: New file.
250         * sysdeps/s390/fpu/fclrexcpt.c: New file.
251         * sysdeps/s390/fpu/bits/fenv.h: New file.
252         * sysdeps/s390/ffs.c: New file.
253         * sysdeps/s390/elf/start.S: New file.
254         * sysdeps/s390/elf/setjmp.S: New file.
255         * sysdeps/s390/elf/bsd-setjmp.S: New file.
256         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
257         * sysdeps/s390/dl-machine.h: New file.
258         * sysdeps/s390/bzero.S: New file.
259         * sysdeps/s390/bsd-setjmp.S: New file.
260         * sysdeps/s390/bsd-_setjmp.S: New file.
261         * sysdeps/s390/bits/string.h: New file.
262         * sysdeps/s390/bits/setjmp.h: New file.
263         * sysdeps/s390/bits/huge_val.h: New file.
264         * sysdeps/s390/bits/endian.h: New file.
265         * sysdeps/s390/bits/byteswap.h: New file.
266         * sysdeps/s390/bcopy.S: New file.
267         * sysdeps/s390/backtrace.c: New file.
268         * sysdeps/s390/atomicity.h: New file.
269         * sysdeps/s390/asm-syntax.h: New file.
270         * sysdeps/s390/addmul_1.S: New file.
271         * sysdeps/s390/add_n.S: New file.
272         * sysdeps/s390/abort-instr.h: New file.
273         * sysdeps/s390/__longjmp.c: New file.
274         * sysdeps/s390/Makefile: New file.
275         * sysdeps/s390/Implies: New file.
276         * sysdeps/s390/Dist: New file.
277         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
278
279 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
280
281         Remove incompatible IPv6 extension of RPC.
282         * sunrpc/Makefile: Undo changes.
283         * sunrpc/rpc_main.c: Likewise.
284         * sunrpc/rpc/clnt.h: Likewise.
285         * sunrpc/rpc/svc.h: Likewise.
286         * sunrpc/bindrsvprt6.c: Removed.
287         * sunrpc/clnt_tcp6.c: Removed.
288         * sunrpc/clnt_udp6.c: Removed.
289         * sunrpc/svc_tcp6.c: Removed.
290         * sunrpc/svc_udp6.c: Removed.
291
292         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
293         dgettext, and dcgettetxt.
294
295         * intl/locale.alias: Update japanese aliases.
296
297         * sysdeps/ia64/bits/byteswap.h: New file.
298         Patch by Dan Pop <Dan.Pop@cern.ch>.
299
300         * misc/sys/cdefs.h: Define __attribute_format_arg__.
301         * intl/libintl.h: Use it here instead of using __attribute__ directly.
302
303 2000-07-13  H.J. Lu  <hjl@gnu.org>
304
305         * posix/regex.c (re_max_failures): Set to 4000.
306
307 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
308
309         * gnulib/Makefile (tests): Add tst-gcc.
310         * gnulib/tst-gcc.c: New file.
311
312         * assert/Makefile (routines): Add __assert.
313         * assert/Versions: Export __assert for glibc 2.2.
314         * assert/__assert.c: New file.
315         * assert/assert.h: Declare __assert.
316
317 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
318
319         * locale/localeinfo.h (_ISCTYPE): New macro.
320         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
321         LC_CTYPE locale format.
322         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
323         (ctype_output): Output class_b[nr] right before class_3level[nr].
324         (allocate_arrays): Fill class_b, similarly to class_3level.
325
326 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
327             Joseph S. Myers  <jsm28@cam.ac.uk>
328
329         * math/tgmath.h: Make standard compliant.  Don't ask how.
330
331 2000-07-04  H.J. Lu  <hjl@gnu.org>
332
333         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
334         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
335         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
336
337 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
338
339         * include/features.h (_XOPEN_SOURCE): Update the explanation.
340         (__USE_LARGEFILE): Add an explanation.
341         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
342         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
343
344 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
345
346         * libio/Makefile: Enable exception handling for genops, wgenops,
347         fileops, and wfileops.
348
349 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
350
351         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
352         acount that elf/rtld's main program might remove some varibales
353         from the environment if we're trying to be secure.  Move the Hurd
354         startup data if necessary, or, if we there is no startup data,
355         make sure the magical convention that ARGV[0] is stored just after
356         the environment list.
357
358 2000-08-01  Philip Blundell  <philb@gnu.org>
359
360         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
361         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
362         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
363         oldsetrlimit for GLIBC_2.0.
364
365 2000-08-01  Andreas Jaeger  <aj@suse.de>
366
367         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
368         (LINE_PARSER): Allow any number of spaces between ip address and
369         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
370
371         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
372
373         * include/netdb.h: Remove getipnodebyaddr and friends, leave
374         constants in.
375
376         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
377         _nss_nisplus_getipnodebyname_r.
378
379         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
380         now, getipnodebyname is deprecated.
381         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
382         Likewise.
383
384         * inet/Makefile (routines): Don't build getipnodebyaddr and
385         friends.
386
387         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
388
389         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
390
391         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
392
393         * wctype/Makefile (distribute): Add wchar-lookup.h.
394
395         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
396
397         * iconvdata/Makefile (distribute): Add isiri-3342.h.
398
399 2000-08-01  Andreas Schwab  <schwab@suse.de>
400
401         * Make-dist (dist): Resolve `..' in file names.
402
403 2000-08-01  Andreas Jaeger  <aj@suse.de>
404
405         * stdio-common/Makefile (distribute): Remove removed files, add
406         new files.
407
408         * Makefile (distribute): Remove include/db_185.h and db.h.
409
410         * include/db_185.h: Remove, it's not needed anymore.
411         * include/db.h: Likewise.
412
413 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
414
415         * inet/Makefile (tests): Remove tst-ipnode.
416         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
417         now.
418
419 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
420
421         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
422         endp statements have already been added.
423
424 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
425
426         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
427         <sysdeps/ia64/sysdep.h>.
428
429         * sysdeps/ia64/_mcount.S: New file.
430
431         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
432         __gmon_start__.  Fix up extraneous whitespace.
433
434 2000-01-12  H.J. Lu  <hjl@gnu.org>
435
436         * sysdeps/ia64/elf/initfini.c: New file.
437
438 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
439
440         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
441         dependency between branch and ar.pfs write.
442
443 2000-07-31  H.J. Lu  <hjl@gnu.org>
444
445         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
446         handle the wchar_t array.
447
448 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
449
450         * iconvdata/gb18030.c: Don't map to and from positions in ISO
451         10646 which are not yet assigned.
452         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
453
454 2000-07-31  Andreas Jaeger  <aj@suse.de>
455
456         * inet/Versions: Remove getipnodebyaddr and friends from
457         GLIBC_2.2.
458
459         * resolv/netdb.h: Remove getipnodebyaddr and friends.
460
461 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
462
463         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
464         ch >= 0x81 && ch2 < 0x40 as invalid.
465
466 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
467
468         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
469         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
470
471 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
472
473         * iconvdata/johab.c (BODY for TO_LOOP): After calling
474         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
475
476 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
477
478         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
479         0xb8.
480         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
481
482 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
483
484         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
485
486 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
487
488         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
489         (from_ucs4): Change values of U+00A4 and U+00ED.
490         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
491
492 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
493
494         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
495         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
496
497 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
498
499         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
500         * iconvdata/isiri-3342.h: New file.
501         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
502         treat 0x80 as a gap.
503
504 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
505
506         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
507         (utf8_encode): Use simple shifts instead.  Fix return value.
508
509 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
510
511         * timezone/private.h: Update from tzcode2000e.
512         * timezone/asia: Update from tzdata2000e.
513         * timezone/australasia: Likewise.
514         * timezone/europe: Likewise.
515         * timezone/northamerica: Likewise.
516         * timezone/zone-tab: Likewise.
517
518 2000-07-30  Ralf Baechle  <ralf@gnu.org>
519
520         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
521         the order of struct sigaltstack members is different.
522
523 2000-07-26  Philip Blundell  <philb@gnu.org>
524
525         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
526
527 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
528
529         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
530         * locale/programs/ld-ctype.c: Adjust for this.
531
532         * locale/programs/ld-collate.c: Add more alignment checks.
533         * locale/string/strcoll.c: Likewise.
534
535 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
536
537         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
538         outside USE_IN_LIBIO block.
539
540 2000-07-26  Philip Blundell  <philb@gnu.org>
541
542         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
543         (elf_machine_rel): Use it for out-of-range PC24 relocs.
544
545 2000-07-28  Philip Blundell  <philb@gnu.org>
546
547         * math/test-fpucw.c: Ignore reserved bits in control word.
548
549 2000-07-28  Philip Blundell  <philb@gnu.org>
550
551         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
552         (ret): Redefine to PSEUDO_RET.
553         (PSEUDO): Remove jump to syscall_error.
554
555 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
556
557         * resolv/README: Add some information about using the resolver in
558         multi-threaded code and with C++.  Spelling fixes.
559
560 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
561
562         * resolv/resolv.h (struct __sockaddr_in): Remove.
563         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
564
565 2000-07-29  Greg McGary  <greg@mcgary.org>
566
567         * Rules (test-bp-inputs, make-test-out): New variables.
568         ($(objpfx)%-bp.out): New rule.
569         ($(objpfx)%.out): Rewrite in terms of new variables.
570
571         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
572         internal function that uses vtable.
573         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
574         * libio/vswprintf.c (_IO_vswprintf): Likewise.
575
576         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
577         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
578         (chunk_align): Likewise.
579
580         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
581         in a way that conforms to decl, and avoids spurious bounds violation.
582
583         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
584         * sysdeps/generic/frame.h: Likewise.
585         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
586         around return value.
587         (__backtrace): Qualify frame-pointer chain and return address
588         pointers as __unbounded.  Wrap bounds around variable `current'.
589         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
590         around return value.
591         (catch_segfault): Qualify frame-pointer chain and return address
592         pointers as __unbounded.  Wrap bounds around variable `current'.
593         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
594         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
595         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
596         __unbounded.
597         (__backtrace): Qualify frame-pointer chain and return address
598         pointers as __unbounded.  Wrap bounds around variable `current'.
599
600         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
601         * sysdeps/i386/mul_1.S: Likewise.
602         * sysdeps/i386/submul_1.S: Likewise.
603         * sysdeps/i386/i586/addmul_1.S: Likewise.
604         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
605         * sysdeps/i386/i586/submul_1.S: Likewise.
606
607 2000-07-27  Andreas Jaeger  <aj@suse.de>
608
609         * libio/Depend: New file, libio needs localedata for tests.
610         * posix/Depend: Likewise.
611
612 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
613
614         * stdio-common/_i18n_itoa.c: Removed.
615         * stdio-common/_i18n_itoa.h: Removed.
616         * stdio-common/_i18n_itowa.c: Removed.
617         * stdio-common/_i18n_itowa.h: Removed.
618         * stdio-common/_i18n_number.h: New file.
619         * stdio-common/Depend: New file.
620         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
621         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
622         printing.  Change printing of numbers with locale specific digits to
623         use new code in _i18n_number.h.
624         * stdio-common/Makefile (routines): Remove _i18n_itoa and
625         _i18n_itowa.
626
627         * stdio-common/bug13.c: Improve messages.
628
629         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
630         (set_class_defaults): Always search also for Uxxxx names.
631         Detect insufficient number of outdigits.
632
633         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
634
635 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
636
637         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
638         _NL_CTYPE_MAP_NAMES.
639         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
640         * wctype/wcfuncs.c (towlower, towupper): Use them.
641         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
642         * wctype/wctrans.c (wctrans): Likewise.
643         * wctype/wctrans_l.c (__wctrans_l): Likewise.
644
645 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
646
647         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
648         Use the optimized version of this function outside glibc as well.
649
650 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
651
652         * locale/indigits.h (indigit_value): Correct.
653         * locale/indigitswc.h (indigitwc_value): Correct.
654         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
655         conversion, add GROUP checking for it, fix GROUP number
656         conversion with strlen(thousands) > 1.
657         Honour width correctly in the presence of floating
658         decimal points and thousands separators.
659         * stdio-common/tst-sscanf.c: New test.
660         * stdio-common/Makefile: Add it to tests.
661         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
662         thousands separators and group argument is non-zero.
663
664 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
665
666         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
667         starts at GLIBC_2.2.
668
669 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
670
671         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
672         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
673         _test_and_set.
674         (headers): Add sys/tas.h.
675         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
676         GLIBC_2.2 from libc.
677         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
678         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
679         _test_and_set.
680
681 2000-07-28  Andreas Jaeger  <aj@suse.de>
682
683         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
684
685         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
686         ($(objpfx)tst-dladdr.out): new.
687         (tests): Add tst-dladdr.
688         ($(objpfx)glrefmain): Use libdl.
689
690         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
691         <vs@caldera.de>.
692
693 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
694
695         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
696         ftruncate(64) calls.
697
698 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
699
700         * intl/tst-translit.c: Include string.h to get prototype for
701         strcmp().
702
703 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
704
705         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
706         name and add weak alias for __fork.
707
708         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
709         & pwrite to use __libc_<name> as strong names instead of
710         __syscall_<name>.
711
712         * include/sched.h: Add clone2 prototype.
713
714 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
715
716         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
717         procedure name twice.
718
719 2000-07-27  Philip Blundell  <philb@gnu.org>
720
721         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
722
723 2000-07-27  Andreas Jaeger  <aj@suse.de>
724
725         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
726         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
727         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
728         Reported by Andi Kleen <ak@suse.de>.
729
730         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
731         (do_wait): Test requests with aio_return64.
732         (do_test): Change callers of do_wait.
733
734 2000-07-26  Andreas Jaeger  <aj@suse.de>
735
736         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
737         (do_wait): Test requests with aio_return.
738         (do_test): Change callers of do_wait.
739
740 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
741
742         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
743         from request list.  Don't do the list handling here, call
744         __aio_remove_request.
745         * rt/aio_misc.h: Add prototype for __aio_remove_request.
746         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
747         request might already be processed.  Don't do the list handling
748         here, call __aio_remove_request.
749
750         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
751         LIO_DSYNC.
752
753         * rt/aio_misc.c: Add comment explaining why writer memory barriers
754         are missing.
755
756 2000-07-27  Greg McGary  <greg@mcgary.org>
757
758         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
759         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
760         in union init.  Pass zero for ignored semnum arg to semctl.
761         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
762
763 2000-07-26  Greg McGary  <greg@mcgary.org>
764
765         * sysdeps/gnu/bits/msq.h: Qualify kernel's
766         data structure pointers as __unbounded.
767         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
768         * sysdeps/generic/bp-semctl.h: New file.
769         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
770         pointers as __unbounded.  Check bounds of syscall args.
771         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
772         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
773         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
774         * sysdeps/unix/sysv/linux/semop.c: Likewise.
775         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
776         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
777         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
778         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
779         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
780         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
781         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
782         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
783         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
784         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
785         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
786         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
787
788 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
789
790         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
791         by default.
792         * locale/C-ctype.c: Likewise.
793         * wcsmbs/wcsmbsload.c: Likewise.
794
795 2000-07-26  Greg McGary  <greg@mcgary.org>
796
797         * Makeconfig (+link-bounded, link-libc-bounded,
798         link-extra-libs-bounded): New variables.
799         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
800         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
801         * Rules (tests-bp.out): New variable.
802         (tests): Conditionally add BP tests.
803         (binaries-bounded): Add variable and associated rule.
804         * csu/Makefile [build-bounded] (extra-objs, install-lib):
805         Move conditional stuff after place where condition is defined.
806
807         * malloc/malloc.c (bp-checks.h): Add #include.
808         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
809         (_bin_at): Add unbounded version of bin_at.
810         (IAV, chunk_alloc): Use unbounded _bin_at.
811         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
812         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
813         Wrap BOUNDED_N around return value.
814         (chunk_realloc): Adjust oldsize once.
815
816         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
817         (__ubp_memchr): Add correct decl.
818         (_CHECK_STRING): Use __ubp_memchr.
819         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
820         New alias for unbounded-pointer __memchr.
821         * sysdeps/i386/memchr.S: Likewise.
822         * sysdeps/ia64/memchr.S: Likewise.
823         * sysdeps/m68k/memchr.S: Likewise.
824         * sysdeps/sparc/sparc32/memchr.S: Likewise.
825         * sysdeps/sparc/sparc64/memchr.S: Likewise.
826         * sysdeps/vax/memchr.s: Likewise.
827
828         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
829         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
830         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
831         * sysdeps/i386/i686/strtok.S: Likewise.
832         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
833         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
834
835         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
836         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
837
838         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
839         bounds of copy_result to mount_proc.
840
841 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
842
843         * wctype/wctype.h (__wctrans_l): New declaration.
844         * wctype/wctrans_l.c: New file.
845         * wctype/Makefile (routines): Add wctrans_l.
846
847 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
848
849         * posix/fnmatch_loop.c: Fixes for use outside glibc.
850         Patch by MacGyver <macgyver@tos.net>.
851
852 2000-07-26  Andreas Jaeger  <aj@suse.de>
853
854         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
855         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
856         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
857
858         * rt/tst-aio.c (test_file): Fix typo.
859         * rt/tst-aio64.c (test_file): Likewise.
860
861         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
862         * rt/Makefile: Add rules to build and run tst-aio3.
863
864         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
865         it's not needed and confuses only.
866
867 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
868
869         * resolv/res_init.c: Add support for nameserver communication with
870         IPv6.
871         * resolv/res_send.c: Likewise.
872         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
873         in nsaddrs field.
874         Patch by <venaas@nvg.ntnu.no>.
875
876 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
877
878         * locale/programs/ld-ctype.c (wctype_table_get): New function.
879         (wcwidth_table_get): New function.
880         (wcwidth_table_add): Call it.
881         (wctrans_table_get): New function.
882         (wctrans_table_add): Call it.
883
884 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
885
886         * rt/lio_listio.c (lio_listio): Always disable individual
887         notification.
888         * rt/Makefile: Add rules to build and run tst-aio2.
889         * rt/tst-aio2.c: New file.
890
891         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
892         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
893
894 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
895
896         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
897         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
898         leading and trailing spaces from host, user and domain name.
899
900 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
901
902         * csu/defs.awk: Add support for need_endp.
903
904 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
905
906         * resolv/resolv.h: Remove __P from res_send_qhook and
907         res_send_rhook typedefs.
908
909 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
910
911         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
912
913 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
914
915         * iconv/gconv_builtin.h: Add WCHAR_T alias.
916
917 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
918
919         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
920         calling thread, set the cancellation flag and return success
921         instead of EINTR.
922
923 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
924
925         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
926         * libio/tst-widetext.c: New file.
927         * libio/tst-widetext.input: New file.
928
929         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
930
931         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
932         empty external buffer correctly.
933
934 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
935
936         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
937         __STRING(entry) and not #entry.
938         (_RTLD_EPILOGUE): Likewise.
939         * sysdeps/mips/mips64/dl-machine.h: Likewise.
940
941 2000-07-25  Andreas Jaeger  <aj@suse.de>
942
943         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
944         according to changes in test program, run also with static only
945         builds.
946         ($(objpfx)tst-printf.out): Likewise.
947
948         * stdio-common/tst-unbputc.sh: Likewise.
949         * stdio-common/tst-printf.sh: Likewise.
950
951 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
952
953         * libio/wfileops.c (_IO_wdo_write): Correct return value.
954
955         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
956         loop.
957
958         * libio/fileops.c: Pretty print.
959
960 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
961
962         * wctype/wchar-lookup.h: New file.
963         * wctype/iswctype.c: Include "wchar-lookup.h".
964         (__iswctype): Support alternate locale format with 3-level tables.
965         * wctype/iswctype_l.c (__iswctype_l): Likewise.
966         * wctype/towctrans.c (__towctrans): Likewise.
967         * wctype/towctrans_l.c (__towctrans_l): Likewise.
968         * wctype/wcfuncs.c: Include "wchar-lookup.h".
969         (__ctype32_wctype, __ctype32_wctrans): Declare external.
970         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
971         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
972         __iswxdigit, towlower, towupper): Support alternate locale format
973         with 3-level tables.
974         * wctype/wcextra.c (iswblank): Likewise.
975         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
976         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
977         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
978         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
979         format with 3-level tables.
980         * wctype/wcextra_l.c (__iswblank_l): Likewise.
981         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
982         format, return a 3-level table pointer.
983         * wctype/wctype_l.c (__wctype_l): Likewise.
984         * wctype/wctrans.c (wctrans): Likewise.
985         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
986         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
987         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
988         (iswctype): Remove macro definition.
989         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
990         (internal_wcwidth): Support alternate locale format with 3-level
991         tables.
992         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
993         New nl_items.
994         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
995         Define them as being type "word".
996         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
997         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
998         __ctype32_width): New exported variables.
999         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
1000         alternate locale format. Don't initialize __ctype_names and
1001         __ctype_width in the alternate locale format.
1002         * locale/programs/localedef.h (oldstyle_tables): New declaration.
1003         * locale/programs/localedef.c (oldstyle_tables): New variable.
1004         (OPT_OLDSTYLE): New macro.
1005         (options): Add --old-style option.
1006         (parse_opt): Handle --old-style option.
1007         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
1008         map_offset, class_3level, map_3level, width_3level members.
1009         (ctype_output): Support for alternate locale format: Computation of
1010         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
1011         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
1012         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
1013         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
1014         now contain both class and map tables.
1015         (struct wctype_table): New type.
1016         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
1017         functions.
1018         (struct wcwidth_table): New type.
1019         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
1020         functions.
1021         (struct wctrans_table): New type.
1022         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
1023         functions.
1024         (allocate_arrays): Support for alternate locale format: Set
1025         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
1026         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
1027         to the first 256 characters. Compute ctype->map_3level. Set
1028         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
1029         instead of ctype->width.
1030
1031 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
1032
1033         * libio/iogetwline.c (_IO_getwline_info): Use wide character
1034         string functions.
1035
1036 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
1037
1038         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
1039         in wide characters, not bytes.
1040         * libio/tst_putwc.c (do_test): Add test for writing lots of data
1041         into file.
1042
1043 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
1044
1045         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
1046         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
1047         LC_MEASUREMENT, LC_IDENTIFICATION.
1048
1049         * locale/xlocale.h (struct __locale_struct): Increase size of
1050         __locales array.
1051         * locale/duplocale.c (__duplocale): Copy newly added categories as
1052         well.
1053         * locale/freelocale.c (__freelocale): Free newly added categories.
1054         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
1055         If a base is given, use it, don't simply return it.
1056
1057 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
1058
1059         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
1060         variables, copied_key and copied_salt, instead of boolean variables.
1061
1062 2000-07-24  Andreas Jaeger  <aj@suse.de>
1063
1064         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
1065         check for offset.
1066
1067         * grp/initgroups.c (initgroups_dyn_function): Renamed from
1068         initgroups_function, adopted prototype for change from 2000-07-23.
1069         (initgroups): Follow type change.
1070
1071         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
1072         & PAGE_MASK case, reformat.
1073
1074         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
1075         from stdin and setup environment.
1076
1077 2000-07-24  Andreas Schwab  <schwab@suse.de>
1078
1079         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
1080
1081 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
1082
1083         * string/endian.h: Explain the _*_ENDIAN constant values a bit
1084         more.  Patch by scarlet@mit.edu [PR libc/1799].
1085
1086         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
1087         [PR libc/1792].
1088
1089         * argp/argp-parse.c (parser_finalize): Reverse order in which
1090         parsers are run for ARGP_KEY_END.  [PR libc/1755].
1091
1092         * grp/initgroups.c (initgroups): Don't limit the possible number
1093         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
1094         the setgroups call while the call fails and descrease the number
1095         of groups each round.
1096         The name of the initgroups function in the NSS modules changed.
1097         (compat_call): Adapt for dynamic resizing.
1098         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1099         Implement dynamic resizing.
1100         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
1101         Likewise.
1102         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
1103         * hesiod/Versions: Change exported interface name.
1104         * nis/Versions: Change exported interface name.
1105
1106 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
1107
1108         * locale/iso-639.def: Some errors corrected.
1109         Patch by Keld Simonsen.
1110
1111         * include/limits.h: Update non-gcc portion.
1112         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1113
1114 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
1115
1116         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
1117         program's data space, reallocate only the space that was just
1118         deallocated to release its backing space.
1119
1120 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
1121
1122         * stdio-common/vfprintf.c (process_string_arg): For wide character
1123         version, handle precision also correctly.
1124
1125         * nss/nss_files/files-hosts.c: Correct problem with three or more
1126         entries with the same name.
1127
1128         * nss/nss_files/files-hosts.c: Implement multi handling.
1129         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
1130
1131 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
1132
1133         * nss/nss_files/files-parse.c: Don't pollute namespace by using
1134         strcasecmp.
1135
1136         * grp/Makefile: Change Makefiles and tests to run only when necessary.
1137         * malloc/Makefile: Likewise.
1138         * malloc/tst-mtrace.sh: Likewise.
1139         * posix/Makefile: Likewise.
1140         * posix/globtest.sh: Likewise.
1141         * posix/wordexp-tst.sh: Likewise.
1142         * string/Makefile: Likewise.
1143
1144 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
1145
1146         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
1147         size instead of LC_ALL to take into account the new locale
1148         categories.
1149
1150 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
1151
1152         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
1153         remainders of hash table.
1154         * locale/categories.def: Remove remainders of transliteration
1155         hash table.
1156         * locale/langinfo.h: Likewise.
1157         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
1158         transliteration tables.
1159
1160         * locale/gen-translit.pl: New file.
1161         * locale/C-translit.h.in: New file.
1162         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
1163         data pointers with data from this file.
1164         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
1165         and gen-translit.pl.
1166         Add rule to generate C-translit.h.
1167         * intl/tst-translit.c (main): Update for now performed
1168         transliteration.
1169
1170         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
1171         (it's no input error).
1172         * stdio-common/tstscanf.c: Add test case for format %f with input --.
1173         * stdio-common/scanf12.c: Correct expected result for first scanf.
1174
1175         * stdio-common/vfprintf.c (process_string_arg): Correct handling
1176         of multibyte character strings in %s format with precision.
1177
1178 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
1179
1180         * locale/programs/ld-collate.c (collate_read): Allow collating
1181         symbols and elements be named in reorder-after instructions.
1182         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
1183
1184         * locale/programs/ld-collate.c (handle_ellipsis): Test for
1185         duplication with generated name, not the name of the first
1186         character.
1187         Patch by Yong Li <yong.li@asu.edu>.
1188
1189         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
1190         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1191
1192 2000-07-21  Wolfram Gloger  <wg@malloc.de>
1193
1194         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
1195         allocations only if a non-main arena cannot be extended.
1196
1197 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
1198
1199         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
1200         in DF_1_NODEFLIB handling.
1201
1202 2000-07-21  Andreas Jaeger  <aj@suse.de>
1203
1204         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
1205         own rule.
1206
1207         * libio/fwide.c: Include <wchar.h> for prototype.
1208
1209 2000-07-21  Greg McGary  <greg@mcgary.org>
1210
1211         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
1212         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
1213         Define in terms of chunk_at_offset.
1214         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
1215         (next_bin, prev_bin): offset by size of real array elements.
1216         (chunk_align): Make `m' a scalar, since that's how it's used.
1217
1218 2000-07-21  Greg McGary  <greg@mcgary.org>
1219
1220         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
1221         UNCHECK_BOUNDS.
1222         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
1223         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
1224         Wrap bounds around argv & envp and each of their string members.
1225         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
1226         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
1227         symbol in BP_SYM ().  Discard bounds of address arg.
1228         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1229         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
1230         Discard bounds on address arg, add bounds to return value.
1231
1232 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
1233
1234         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
1235         * elf/filter.c: New file.
1236         * elf/filtmod1.c: New file.
1237         * elf/filtmod2.c: New file.
1238
1239         * elf/rtld.c: Define _dl_bind_not variable.
1240         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
1241         * elf/dl-support.c: Likewise.
1242         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
1243         * elf/dl-runtime.c (fixup): Don't remember looked up value if
1244         _dl_bind_not.
1245         (profile_fixup): Likewise.
1246
1247         * libio/Makefile (routines): Add fwide.
1248         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
1249         fwide now.  Internal calls to _IO_fwide must do locking themselves
1250         or don't need locking.
1251         * libio/fwide.c: New file.
1252
1253         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
1254
1255         * elf/Makefile: Add no modules for nodelete test.
1256         * elf/nodelmod3.c: New file.
1257         * elf/nodelmod4.c: New file.
1258         * elf/nodelete.c: Also test case where dependency of dlopen() object
1259         is marked nodelete.
1260
1261         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
1262         * elf/nodlopen.c: New file.
1263         * elf/nodlopenmod.c: New file.
1264         * include/dlfcn.h: Define __RTLD_DLOPEN.
1265         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
1266         and this is a dlopen() call, do not load the binary.
1267         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
1268         * dlfcn/dlopenold.c: Likewise.
1269         * configure.in: Add test for -z nodelete option.
1270         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
1271
1272 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
1273
1274         Make Hesiod NSS module thread-safe.
1275
1276         * hesiod/README.hesiod: Update.
1277
1278         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
1279         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
1280         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
1281         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
1282         hesiod-proto.
1283         * hesiod/nss_hesiod/hesiod-init.c: New file.
1284         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
1285         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
1286         * hesiod/nss_hesiod/nss_hesiod.h: New file.
1287         * hesiod/nss_hesiod/hesiod-service.c
1288         (_nss_hesiod_getservbyport_r): New function.  Provide support for
1289         looking up services by port number.
1290         * hesiod/nss_hesiod/hesiod-proto.c: New file.
1291
1292         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
1293         * hesiod/hesiod.h: Likewise.
1294         * hesiod/hesiod_p.h: Likewise.
1295
1296 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
1297
1298         Fix problems with `struct __res_state' getting too big.
1299         * resolv/resolv.h (struct __sockaddr_in): New definition.
1300         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
1301         the private parts of the structure to save some space.
1302         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
1303         (struct sockaddr_in *) in call to sock_eq.
1304         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
1305
1306 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
1307
1308         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
1309         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
1310         with nodelete.
1311         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
1312         to _dl_map_object.  Return immediately if no object loaded.
1313         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
1314         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
1315         if it exists into l_flags_1 word.
1316         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
1317         it to determine whether loading is wanted or not.
1318         (_dl_map_object): Likewise.
1319         Call _dl_map_object_from_fd with new parameter.
1320         * sysdeps/generic/ldsodefs.h: Update prototype.
1321         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
1322         * elf/rtld.c: Likewise.
1323         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1324         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
1325         * elf/noload.c: New file.
1326         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
1327         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
1328         * sysdeps/mips/bits/dlfcn.h: Likewise.
1329         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
1330         (tests-nodelete-yes): Define.
1331         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
1332         Add rules to build nodelete and modules.
1333         * elf/nodelete.c: New file.
1334         * elf/nodelmod1.c: New file.
1335         * elf/nodelmod2.c: New file.
1336         * configure.in: Add test for -z nodelete option.
1337         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
1338
1339         * libio/Makefile (tests): Add tst_wprintf2.
1340         (tst_wprintf2-ARGS): Define.
1341         * libio/tst_wprintf2.c: New file.
1342         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
1343
1344         * libio/wfiledoalloc.c: Only allocate external buffer if this
1345         hasn't happened yet.
1346
1347         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
1348         something in the buffer.  gconv call can write up to end of the
1349         buffer, not only _IO_write_end.
1350         (_IO_wfile_overflow): Allocate also external buffer.
1351
1352 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
1353
1354         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
1355         strings with precision in vfwprintf correctly.
1356         * stdio-common/vfprintf.c: Fix completely broken handling of
1357         unbuffered wide character streams.
1358         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
1359
1360         * resolv/Makefile (distribute): Add README.
1361
1362         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
1363
1364 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
1365
1366         Update resolver code to BIND 8.2.3-T5B.
1367
1368         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
1369         __res_nclose.
1370         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
1371         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
1372         __res_search.
1373         * resolv/Banner: BIND-8.2.3-T5B.
1374
1375         * resolv/base64.c: Update from BIND 8.2.3-T5B.
1376         * resolv/herror.c: Likewise.
1377         * resolv/inet_addr.c: Likewise.
1378         * resolv/inet_net_ntop.c: Likewise.
1379         * resolv/inet_net_pton.c: Likewise.
1380         * resolv/inet_neta.c: Likewise.
1381         * resolv/inet_ntop.c: Likewise.
1382         * resolv/nsap_addr.c: Likewise.
1383         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
1384         IPv6 addresses (ISC bug #520).
1385
1386         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
1387         * resolv/ns_parse.c: Likewise.
1388         * resolv/ns_netint.c: Likewise.
1389         * resolv/ns_samedomain.c: Likewise.
1390         * resolv/ns_ttl.c: Likewise.
1391         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
1392         RCS ID in object file.
1393
1394         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
1395         * resolv/res_mkquery.c: Likewise.
1396         * resolv/res_query.c: Likewise.
1397         * resolv/res_init.c: Likewise.
1398         (res_setoptions): Mark internal.
1399         * resolv/res_send.c: Likewise.
1400         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
1401         by using poll instead.
1402         * resolv/res_comp.c: Likewise.
1403         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
1404         weak alias for __dn_expand.
1405         * resolv/res_data.c: Likewise.
1406         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
1407         in _res.options.  Avoids a potential security risk by avoiding a
1408         close (0).
1409         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
1410         res_mkquery, res_query, res_querydomain adn res_search weak
1411         aliases for __res_mkquery, __res_query, __res_querydomain and
1412         __res_search.
1413         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
1414         instead to avoid close(0).
1415         (res_init): Always use the static resolver context.
1416         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
1417         alias for __res_init.
1418
1419         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
1420         RES_SET_H_ERRNO and accompanying comment to...
1421         * include/resolv.h: ... here.
1422
1423         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
1424         * resolv/arpa/nameser_compat.h: Likewise.
1425
1426 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
1427
1428         * nss/makedb.c (main): Compare result of load_db with
1429         NSS_STATUS_SUCCESS and not 0.
1430         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
1431
1432         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
1433
1434 2000-07-18  Greg McGary  <greg@mcgary.org>
1435
1436         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
1437         (EXTEND_BUFFER): Use it.
1438
1439 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
1440
1441         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
1442         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
1443         __builtin_return_address.
1444         * dlfcn/dlopenold.c: Likewise.
1445         * dlfcn/dlsym.c: Likewise.
1446         * dlfcn/dlvsym.c: Likewise.
1447         * elf/dl-profstub.c: Likewise.
1448         * malloc/malloc.c: Likewise.
1449         * sysdeps/generic/machine-gmon.h: Likewise.
1450         Based on a patch by schwidefsky@de.ibm.com.
1451
1452 2000-07-18  Andreas Jaeger  <aj@suse.de>
1453
1454         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
1455         NULL to elf_machine_fixup_plt t argument to silence GCC.
1456
1457         * include/string.h: Add prototype for __memchr.
1458
1459         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
1460
1461         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
1462         instead of memrchr.
1463
1464 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
1465
1466         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
1467
1468         * locale/C-ctype.c: Add initializers for gap elements.
1469         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
1470         for gap elements.
1471
1472 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
1473
1474         * nscd/nscd.c (print_version): Update copyright year.
1475
1476 2000-07-17  Greg McGary  <greg@mcgary.org>
1477
1478         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
1479         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
1480         signature argnames with angle-brackets for use as word delimiters,
1481         and to induce syntax errors for any args not handled.  Split
1482         multi-echo echoes and comment each stage.
1483         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
1484         * sysdeps/unix/inet/syscalls.list: Likewise.
1485         * sysdeps/unix/mman/syscalls.list: Likewise.
1486         * sysdeps/unix/syscalls.list: Likewise.
1487         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1488         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1489         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1490         * sysdeps/unix/sysv/syscalls.list: Likewise.
1491         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
1492
1493         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
1494         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
1495         qualifiers.  Don't check NULL-terminator of argv & envp.
1496         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
1497         unbounded pointer type in word-size assertion.
1498         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
1499         cases to stifle warnings.
1500
1501         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
1502         _IO_file_attach.
1503         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
1504
1505         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
1506         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
1507         ptr as __unbouned.
1508
1509         * Makerules (o-objects): Supplement with $(o-objects$o).
1510         * string/Makefile (o-objects.ob): Add variable to pull
1511         unbounded versions of memcpy, memset and memchr into libc_b.
1512
1513         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
1514         rather than non-existent __ubp_memchr.
1515         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
1516         (_CHECK_STRING, _CHECK_N): New macros.
1517         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
1518         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
1519         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
1520         Add weak alias "memchr".
1521         * sysdeps/generic/memchr.c: Likewise.
1522         * sysdeps/i386/memchr.S: Likewise.
1523         * sysdeps/ia64/memchr.S: Likewise.
1524         * sysdeps/m68k/memchr.S: Likewise.
1525         * sysdeps/sparc/sparc32/memchr.S: Likewise.
1526         * sysdeps/sparc/sparc64/memchr.S: Likewise.
1527         * sysdeps/vax/memchr.s: Likewise.
1528
1529         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
1530
1531         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
1532         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
1533         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
1534         __BOUNDED_POINTERS__.
1535         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
1536         for __BOUNDED_POINTERS__.
1537
1538 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
1539
1540         * iconv/gconv_open.c (__gconv_open): Initialize the __data
1541         field of struct __gconv_trans_data differently.  Don't pass NULL to
1542         trans_init_fct.  Simplify list append operation.
1543
1544 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
1545
1546         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
1547         not only those having tsearch.
1548
1549 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
1550
1551         * locale/langinfo.h: Add placeholder values in enum for removed
1552         LC_CTYPE entries.
1553
1554 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
1555
1556         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
1557         chain if the PHDR check fails.
1558
1559 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
1560
1561         * nss/getent.c (print_hosts): Make sure we always print a space
1562         between numeric addresses and hostnames.
1563
1564 2000-07-17  Wolfram Gloger  <wg@malloc.de>
1565
1566         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
1567         i.e. if n_mmaps_max>0.
1568
1569 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
1570
1571         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
1572         values to remove possible clash with other AI_* constants.
1573         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
1574         hexadecimal constants to stress the fact they're in fact
1575         bit flags.
1576
1577 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
1578
1579         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
1580         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
1581         instead of res_init.
1582
1583 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
1584
1585         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
1586         parameters of memset calls to avoid warnings.
1587
1588 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
1589
1590         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
1591         necessary.
1592
1593         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
1594         Patch by Greg McGary <greg@mcgary.org>.
1595
1596         * io/Makefile (tests): Add tst-getcwd.
1597         * io/tst-getcwd.c: New file.
1598
1599         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
1600
1601 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
1602
1603         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
1604         structure.
1605
1606 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
1607
1608         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
1609         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
1610
1611 2000-07-12  H.J. Lu  <hjl@gnu.org>
1612
1613         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
1614         GLIBC_2.2.
1615         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
1616         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
1617         (sysdep-routines): Add clone2.
1618         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
1619
1620 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
1621
1622         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
1623         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
1624
1625 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
1626
1627         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
1628         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
1629         Change type of si_band from "int" to "long".
1630         (si_imm) [USE_GNU]: Define
1631         (si_isr) [USE_GNU]: Ditto.
1632         (ILL_BREAK) [USE_GNU]: Ditto.
1633         (FPE_DECOVF) [USE_GNU]: Ditto.
1634         (FPE_DECDIV) [USE_GNU]: Ditto.
1635         (FPE_DECERR) [USE_GNU]: Ditto.
1636         (FPE_INVASC) [USE_GNU]: Ditto.
1637         (FPE_INVDEC) [USE_GNU]: Ditto.
1638         (TRAP_BRANCH) [USE_GNU]: Ditto.
1639         (TRAP_HWBKPT) [USE_GNU]: Ditto.
1640
1641 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
1642
1643         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
1644         bits/sigcontext as struct mcontext does not depend on it.
1645
1646         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
1647
1648 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
1649
1650         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
1651
1652 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
1653
1654         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
1655
1656 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
1657
1658         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
1659
1660 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
1661
1662         * intl/Makefile (test-srcs): Add tst-translit.
1663         (tests): Likewise.
1664         Add rules to build and run tst-translit.
1665         * intl/tst-translit.c: New file.
1666         * intl/tst-translit.sh: New file.
1667         * intl/translit.po: New file.
1668
1669 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
1670
1671         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
1672         transliteration function did its job, continue, don't stop.
1673
1674         * iconvdata/iso646.c: Little optimizations in body for conversion
1675         from UCS4.
1676
1677 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
1678
1679         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
1680
1681 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
1682
1683         * configure.in: Check for pwd binary.
1684         * config.make.in: Add PWD_P to be subsituted.
1685         * Makerules: Use $(PWD_P) instead of /bin/pwd.
1686
1687 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
1688
1689         * iconvdata/Makefile (modules): Add GB18030.
1690         (distribute): Add gb18030.c.
1691         * iconvdata/gconv-modules: Add entries for GB18030 module.
1692         * iconvdata/gb18030.c: New file.
1693         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
1694         and Wu Jian.
1695
1696 2000-07-13  Andreas Jaeger  <aj@suse.de>
1697
1698         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
1699         patch.
1700
1701         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
1702         * inet/getnetgrent.c (free_mem): Likewise.
1703         * misc/mntent.c (free_mem): Likewise.
1704         * nss/getXXbyYY.c (free_mem): Likewise.
1705         * nss/getXXent.c (free_mem): Likewise.
1706         * pwd/fgetpwent.c (free_mem): Likewise.
1707         * shadow/fgetspent.c (free_mem): Likewise.
1708
1709 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
1710
1711         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
1712         64-bit architecture correctly [PR libc/1794].
1713
1714 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
1715
1716         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
1717         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
1718         report that we are out of memory.
1719         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
1720         * elf/dl-libc.c (dlerror_run): Likewise.
1721         * elf/dl-open.c (_dl_open): Likewise.
1722         * elf/rtld.c (dl_main): Likewise.
1723         * elf/dl-error.c: Define _dl_out_of_memory.
1724         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
1725         the error string.
1726         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
1727         [PR libc/1813].
1728
1729         * dlfcn/dlerror.c (free_key_mem): Also free error string.
1730
1731         * iconv/loop.c: Fix comment.
1732
1733         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
1734
1735 2000-07-13  Andreas Jaeger  <aj@suse.de>
1736
1737         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
1738         getcwd (NULL, size) with size > 0.
1739         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
1740
1741 2000-07-13  Andreas Jaeger  <aj@suse.de>
1742
1743         * posix/Makefile: Remove build rules for libposix.
1744
1745 2000-07-13  Andreas Schwab  <schwab@suse.de>
1746
1747         * sysdeps/generic/glob.c (glob): Fix memory leak.
1748         [SHELL]: Remove reference to undefined variable `files'.
1749         Fixes PR libc/1782.
1750
1751 2000-07-13  Andreas Jaeger  <aj@suse.de>
1752
1753         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
1754         functions.
1755
1756         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
1757         memory if it was allocated.
1758
1759 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
1760
1761         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
1762         step.
1763
1764         * iconv/gconv_open.c (__gconv_open): Reapply
1765         2000-07-12 Bruno Haible <haible@clisp.cons.org>
1766
1767                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
1768
1769         * iconv/gconv_open.c: Undo last two changes for now.  They break
1770         everything.
1771
1772 2000-07-12  Andreas Jaeger  <aj@suse.de>
1773
1774         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
1775         compiler.
1776         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
1777         (CFLAGS-dl-cache.c): Likewise.
1778         (CFLAGS-ldconfig.c): Added, passes directory locations.
1779
1780         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
1781         locate cache.
1782         * elf/ldconfig.c (LD_SO_CONF): Likewise.
1783         (main): Use configured LIBDIR and SLIBDIR.
1784
1785 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
1786
1787         * math/bits/cmathcalls.h (cimag): Add __THROW.
1788         (creal, conj): Likewise.
1789         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
1790         by negative value.
1791
1792 2000-07-12  H.J. Lu  <hjl@gnu.org>
1793
1794         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
1795         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
1796
1797 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
1798
1799         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
1800         it is wrong.
1801
1802 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
1803
1804         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
1805
1806 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
1807
1808         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
1809         __modname.
1810
1811 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
1812
1813         * iconv/gconv_open.c (__gconv_open): Initialize
1814         result->__steps[cnt].__data.
1815
1816 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
1817
1818         * nss/getent.c (services_keys): Pass port number in network byte
1819         order in call to getservbyport.
1820
1821 2000-07-11  Andreas Jaeger  <aj@suse.de>
1822
1823         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
1824         source dir.
1825         * intl/Makefile (do-gettext-test): Likewise.
1826         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
1827
1828 2000-07-11  Andreas Schwab  <schwab@suse.de>
1829
1830         * Makeconfig (run-program-prefix): New rule.
1831         (built-program-cmd): Use run-program-prefix.
1832
1833 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
1834
1835         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
1836         and NOEXPR unconditionally available.
1837
1838 2000-07-12  Greg McGary  <greg@mcgary.org>
1839
1840         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
1841         * sysdeps/posix/open64.c: Likewise.
1842         * sysdeps/generic/fegetenv.c: Likewise.
1843         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
1844         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
1845         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
1846         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
1847         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
1848         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
1849
1850 2000-07-11  Greg McGary  <greg@mcgary.org>
1851
1852         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
1853         Add extra level of macro expansion.
1854         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
1855         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
1856         is available at the time `select' prototype is declared.
1857         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
1858         Collect non-versioned weak aliases.  Consider only non-versioned
1859         aliases for the user-visible systemcall name.  Do checks inline with
1860         call to primitive system call.
1861         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
1862         stand-alone bounds checks to suppress unused value warnings.
1863         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
1864
1865 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
1866
1867         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
1868         file descriptor checking in SUID programs for the Hurd.
1869
1870         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
1871         res_hostalias instead of __hostalias for thread-safety.
1872
1873 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
1874
1875         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
1876         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
1877
1878 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
1879
1880         * include/features.h: Include ISO C99 features if the compiler used
1881         is an ISO C99 compiler.
1882         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1883
1884 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
1885
1886         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
1887
1888 2000-07-10  Andreas Jaeger  <aj@suse.de>
1889
1890         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
1891         it's overridden by libpthreads.
1892         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1893         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1894         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1895         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1896         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1897
1898         * malloc/Makefile: Run tst-mtrace only with shared libs.
1899
1900         * stdio-common/Makefile: Run unbputc and tst-printf tests only
1901         with shared libs.
1902
1903 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1904
1905         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
1906         that gpreg really points to the GOT section of the calling object.
1907         Scan all PT_LOAD segments of objects for stub_pc, instead of only
1908         checking a start address of first one.
1909         Fix typos.
1910         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
1911         Likewise.
1912
1913         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
1914
1915 2000-07-10  Andreas Jaeger  <aj@suse.de>
1916
1917         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
1918         (string_alias->strong_alias).
1919
1920 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
1921
1922         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
1923
1924 2000-07-07  Greg McGary  <greg@mcgary.org>
1925
1926         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
1927         have no names without leading underscores.
1928
1929 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1930
1931         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
1932         U007E.
1933
1934         * stdio-common/Makefile (tests): Remove tst-printf here...
1935         (tests-srcs): ...and add it here.
1936         (distribute): Add tst-unbputc.sh and tst-printf.sh.
1937         Add rules to run tst-printf.sh.
1938         * stdio-common/tst-printf.c: Move code around so that there is really
1939         no further output where it's stated.
1940         * stdio-common/tst-printf.sh: New file.
1941
1942 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
1943
1944         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
1945         (do_write): Renamed from pwrite.
1946         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
1947         `struct _IO_cookie_file'.
1948
1949 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1950
1951         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
1952         detected.
1953         * malloc/tst-mtrace.sh: Run mtrace script.
1954
1955 2000-07-07  Greg McGary  <greg@mcgary.org>
1956
1957         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
1958         Move all three components of a bounded pointer.
1959
1960 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1961
1962         * locale/programs/locale.c (write_locales): Don't simply add all
1963         directories found in the subdir, test whether at least the
1964         LC_CTYPE file is in there.
1965
1966 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
1967
1968         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
1969         * iconvdata/euc-kr.c: Likewise.
1970
1971         * stdio-common/vfprintf.c (process_string_arg): Check result of
1972         wcrtomb call and bail out if it failed.
1973
1974         * malloc/Makefile (test-srcs): Add tst-mtrace.
1975         (distribute): Add tst-mtrace.sh.
1976         Add rule to run tst-mtrace.sh.
1977         * malloc/tst-mtrace.c: New file.
1978         * malloc/tst-mtrace.sh: New file.
1979
1980         * include/signal.h: Declare __libc_sigaction.
1981         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
1982         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
1983         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1984         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1985         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1986         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1987         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1988
1989         * configure.in: Fix CFLAGS-memprofstat.c definition after
1990         2000-06-19 change.
1991         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
1992
1993 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
1994
1995         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
1996         instead of NULL to elf_machine_fixup_plt t argument.
1997         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1998         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
1999         cast.
2000
2001 2000-07-06  Andreas Jaeger  <aj@suse.de>
2002
2003         * crypt/Makefile (LDLIBS-cert): Removed.
2004         (LDLIBS-md5c-test): Removed.
2005         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
2006         ($(objpfx)md5c-test): Likewise for md5c-test.out.
2007
2008 2000-07-06  Andreas Jaeger  <aj@suse.de>
2009
2010         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
2011         of the proc system is "proc".
2012
2013         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
2014         thread library for static programs.
2015
2016 2000-07-06  Greg McGary  <greg@mcgary.org>
2017
2018         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
2019         New macros.
2020         * sysdeps/generic/strcpy.c: Add bounds checks.
2021         * sysdeps/unix/fxstat.c: Likewise.
2022         * sysdeps/unix/xstat.c: Likewise.
2023         * sysdeps/unix/common/lxstat.c: Likewise.
2024         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2025         * sysdeps/unix/sysv/linux/execve.c: Likewise.
2026         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2027         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2028         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2029         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2030         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
2031         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2032         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2033         * sysdeps/unix/sysv/linux/poll.c: Likewise.
2034         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2035         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2036         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2037         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2038         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2039         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2040         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2041         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2042         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2043         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2044         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2045         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2046         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2047         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2048         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2049         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2050         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2051         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2052         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2053         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2054         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2055         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
2056         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2057         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2058         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2059         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
2060         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
2061         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
2062         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
2063         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2064         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2065         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
2066         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2067         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2068         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2069         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2070         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2071         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
2072         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2073         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
2074         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
2075         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2076         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2077         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2078         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2079         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2080         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2081         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
2082         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2083         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
2084         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2085         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
2086         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2087         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
2088
2089         * string/endian.h (__LONG_LONG_PAIR): New macro.
2090         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
2091         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2092         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2093         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2094         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2095         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2096         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
2097         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2098         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2099         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2100         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2101         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2102
2103         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
2104
2105 2000-07-06  Andreas Jaeger  <aj@suse.de>
2106
2107         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
2108         Initialize result.
2109
2110         * math/test-fpucw.c: Include <stdio.h> for printf.
2111
2112 2000-07-05  Greg McGary  <greg@mcgary.org>
2113
2114         * sysdeps/generic/bp-checks.h: New file.
2115         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
2116         with list of #include files.
2117         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
2118         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
2119         Don't generate BP thunk if `V' appears in signature.
2120         Generate thunks with complete bounds checks.
2121         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
2122         * sysdeps/unix/inet/syscalls.list: Likewise.
2123         * sysdeps/unix/mman/syscalls.list: Likewise.
2124         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2125         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2126         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2127         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
2128
2129 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
2130
2131         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
2132         result.  Search first in /etc/mtab (proc/mounts would be stupid).
2133         If mount not in the file fall back on /proc.
2134
2135         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
2136         string got copied in.
2137         Patch by Solar Designer <solar@false.com>.
2138
2139 2000-07-05  Andreas Jaeger  <aj@suse.de>
2140
2141         * manual/install.texi (Installation): Update information about
2142         add-ons.
2143         (Configuring and compiling): Update for glibc 2.2.
2144
2145 2000-07-04  Andreas Jaeger  <aj@suse.de>
2146
2147         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
2148         (_FPU_IEEE): Likewise.
2149
2150         * math/Makefile (tests): Add test-fpucw.
2151
2152         * math/test-fpucw.c (main): New file.
2153
2154 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
2155
2156         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
2157
2158         * locale/programs/ld-collate.c (collate_output): Also write out the
2159         collation sequence values and the wide character string for the
2160         collation symbol table.
2161
2162         * posix/fnmatch.c: Include "../locale/elem-hash.h".
2163         * posix/fnmatch_loop.c: Implement collating symbol handling.
2164         * posix/tst-fnmatch.input: Add more tests, especially for collating
2165         symbol handling.
2166
2167         * posix/regex.c: Fix comment.
2168
2169 2000-07-05  Andreas Jaeger  <aj@suse.de>
2170
2171         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
2172         (_FPU_GETCW): Remove extra colon.
2173         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
2174
2175         * posix/fnmatch_loop.c (FCT): Only declare len if
2176         !WIDE_CHAR_VERSION to silence GCC.
2177
2178         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
2179         prototype.
2180         * sysdeps/generic/strchrnul.c: Likewise.
2181         * sysdeps/generic/strlen.c: Likewise.
2182         * sysdeps/generic/strchr.c: Likewise.
2183         * sysdeps/generic/memchr.c: Likewise.
2184
2185 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
2186
2187         * posix/fnmatch_loop.c: Implement equivalence class handling.
2188         * posix/tst-fnmatch.input: Add tests for equivalence class
2189         handling.
2190
2191         * posix/fnmatch_loop.c: Improve performance for single-byte
2192         character sets by not using btowc.
2193
2194         * posix/tst-fnmatch.input: Add tests for locale dependent
2195         behaviour.
2196         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
2197
2198         * posix/tst-fnmatch.input: Add more test cases.
2199
2200         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
2201         are not aligned to alignof(md5_uint32) do it before calling
2202         __md5_process_bytes.
2203         * crypt/md5.c: Make sure buffers are aligned.
2204         * crypt/md5.h: Likewise.
2205         Reported by Solar Designer <solar@false.com>.
2206
2207         * crypt/Makefile: Add dependencies for test programs.
2208
2209         * Rules: Define LC_ALL=C in environments of all programs we run.
2210
2211         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
2212
2213 2000-07-03  H.J. Lu  <hjl@gnu.org>
2214
2215         * locale/programs/ld-ctype.c (ctype_output): The size of iov
2216         is 2 + elem + offset, not 2 + elem + offset + 2.
2217
2218 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
2219
2220         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
2221         suite.
2222         * posix/Makefile (tests): Add tst-fnmatch.
2223         (tst-fnmatch-ENV): Define.
2224         * posix/tst-fnmatch.c: New file.
2225         * posix/tst-fnmatch.sh: New file.
2226
2227 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
2228
2229         * locale/programs/charmap.c (charmap_read): Prepend
2230         the condition filename == NULL.
2231
2232 2000-07-03  Greg McGary  <greg@mcgary.org>
2233
2234         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
2235
2236         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
2237         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
2238
2239         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
2240         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
2241         (FILEBUF_LITERAL): Add cast for CHAIN init.
2242         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
2243         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
2244         Revert type of `fp' to _IO_FILE*.
2245         (_IO_iter_file): Remove cast.
2246         (_IO_iter_next): Elide intermediate member reference.
2247
2248         * sysdeps/powerpc/strchr.S:  Check bounds.
2249         Wrap extern symbols in BP_SYM ().
2250
2251 2000-07-03  Andreas Jaeger  <aj@suse.de>
2252
2253         * dlfcn/Makefile (generated): New.
2254
2255 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
2256
2257         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
2258         (__uflow): Likewise.
2259         (__underflow): Likewise.
2260         * libio/wgenops.c (__wunderflow): Likewise.
2261         * stdio-common/tst-unbputc.c: New file.
2262         * stdio-common/tst-unbputc.sh: New file.
2263         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
2264
2265         * po/en_GB.po: New file.
2266         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
2267
2268 2000-07-01  Andreas Jaeger  <aj@suse.de>
2269
2270         * intl/Makefile (generated-dirs): New.
2271
2272         * elf/Makefile (generated): trusted-dirs.h is always generated,
2273         move out of build-shared condition.
2274         (generated): Merge the two entries for build-shared.
2275
2276 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
2277
2278         * debug/Makefile (distribute): Add xtrace.sh.
2279
2280 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
2281
2282         * version.h (VERSION): Bump to 2.1.91.
2283
2284         * configure.in: Update warning comment.  glibc should not be
2285         broken anymore.
2286
2287         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
2288         ioperm.c, sys/procfs.h, and sys/io.h.
2289
2290         * sysdeps/powerpc/Dist: Add bp-asm.h.
2291
2292         * assert/Depend: Add localedata.
2293         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
2294         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
2295
2296         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
2297         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
2298         relocation address to prevent unaligned trap.
2299         Suggested by Richard Henderson <rth@cygnus.com>.
2300
2301 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
2302
2303         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
2304         if redirecting and either redirection is done using defines or
2305         not optimizing.
2306
2307 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
2308
2309         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
2310         generated expressions.
2311         Patch by Darren McClelland <dmcclell@zetec.com>.
2312
2313         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
2314         since zic uses setlocale and gettext but we cannot make it use the
2315         new locale data since zic calls a shell which might not use the
2316         new libc.
2317
2318         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
2319         handling the internation currency symbol.  POSIX says that the
2320         fourth character is used to separate the currency symbol from the
2321         value.  Therefore it does not have to be printed.  But we cannot
2322         remove the space if the currency symbol is printed before the
2323         number since this is what many locales expect.
2324
2325         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
2326         whether this information is available.
2327
2328         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
2329         buffers in case the translation is too large.  Remember allocated
2330         memory blocks in a list.
2331         (free_mem): Free memory for translations.
2332
2333         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
2334
2335         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
2336         information is available set the string length to zero.
2337
2338         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
2339
2340 2000-06-30  Greg McGary  <greg@mcgary.org>
2341
2342         * sysdeps/powerpc/bp-asm.h: New file.
2343         * sysdeps/powerpc/__longjmp.S:  Check bounds.
2344         Wrap extern symbols in BP_SYM ().
2345         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
2346         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
2347         * sysdeps/powerpc/setjmp.S: Likewise.
2348         * sysdeps/powerpc/add_n.S: Likewise.
2349         * sysdeps/powerpc/addmul_1.S: Likewise.
2350         * sysdeps/powerpc/lshift.S: Likewise.
2351         * sysdeps/powerpc/rshift.S: Likewise.
2352         * sysdeps/powerpc/mul_1.S: Likewise.
2353         * sysdeps/powerpc/sub_n.S: Likewise.
2354         * sysdeps/powerpc/submul_1.S: Likewise.
2355         * sysdeps/powerpc/strlen.S: Likewise.
2356         * sysdeps/powerpc/memset.S: Likewise.
2357         * sysdeps/powerpc/stpcpy.S: Likewise.
2358         * sysdeps/powerpc/strcmp.S: Likewise.
2359         * sysdeps/powerpc/strcpy.S: Likewise.
2360         * sysdeps/powerpc/elf/bzero.S: Likewise.
2361
2362         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
2363         Line up operands column with tabs.
2364
2365 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
2366
2367         * elf/Makefile (LDFLAGS-origtest): Actually add it.
2368
2369         * sysdeps/ia64/htonl.S: New file.
2370         * sysdeps/ia64/htons.S: New file.
2371         * sysdeps/ia64/memcpy.S: Replace with version which does not use
2372         floating point registers.
2373         Patches by Dan Pop <Dan.Pop@cern.ch>.
2374
2375 2000-06-30  Andreas Jaeger  <aj@suse.de>
2376
2377         * posix/Makefile (tests): tst-exec and tst-spawn only work with
2378         shared libraries.
2379
2380         * io/Makefile (CFLAGS-test-lfs.c): New.
2381         (tests): Add test-lfs.
2382
2383         * io/test-lfs.c: New file.
2384
2385 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
2386
2387         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
2388         instruction.
2389
2390 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
2391
2392         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
2393
2394 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
2395
2396         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
2397         alias to the fstatfs call.
2398
2399         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
2400         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
2401
2402         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
2403         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
2404
2405         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
2406         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
2407         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
2408         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
2409
2410         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
2411         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
2412
2413         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
2414         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
2415
2416         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
2417         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
2418
2419         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
2420
2421 2000-06-29  Andreas Jaeger  <aj@suse.de>
2422
2423         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
2424         with syslog.
2425         (print_err_message): Likewise.
2426         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
2427
2428 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
2429
2430         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
2431         used as words is properly aligned.
2432
2433         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
2434         data files.
2435
2436 2000-06-29  Greg McGary  <greg@mcgary.org>
2437
2438         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
2439         * sysdeps/unix/make-syscalls.sh: Handle signatures of
2440         length 7..9, just in case...
2441         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
2442
2443         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
2444         (POP_ERRNO_LOCATION_RETURN): Fold insns.
2445         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
2446         (PUSH_SIGNAL_MASK): New macro.
2447         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
2448         LEAVE is unnecessary.  Check bounds of jmp_buf.
2449         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
2450         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
2451         immediately before tail-call.
2452         * sysdeps/i386/setjmp.S: Likewise.
2453         * sysdeps/i386/bsd-_setjmp.S: Likewise.
2454         * sysdeps/i386/bsd-setjmp.S: Likewise.
2455
2456 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
2457
2458         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
2459         versioned_symbol.
2460         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
2461         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
2462         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
2463         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
2464         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
2465         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
2466         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
2467         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
2468
2469 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
2470
2471         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
2472         we later need to calling free().
2473         Patch by Matt Wilson <msw@redhat.com>.
2474
2475         * stdio-common/tst-printf.c: Add test for above problem.
2476
2477 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
2478
2479         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
2480         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
2481
2482 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
2483
2484         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
2485         prototype for abs().
2486         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
2487
2488 2000-06-23  Andreas Jaeger  <aj@suse.de>
2489
2490         * config.h.in: Don't use regparm with bounded pointers.
2491
2492 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
2493
2494         * stdlib/grouping.h: Correctly handle multibyte thousands
2495         separator and decimal point.
2496         * stdlib/stdtod.c: Likewise.
2497         * sysdeps/generic/strtol.c: Likewise.
2498
2499         * locale/categories.def: Add entries for wide character decimal point
2500         and thousands separator in numeric and monetary category.
2501
2502 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
2503
2504         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
2505         second definition and initialization of decimal.
2506
2507 2000-06-28  Greg McGary  <greg@mcgary.org>
2508
2509         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
2510         out.
2511         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
2512         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
2513         in.
2514         (_IO_JUMPS): Don't cast THIS--expect arg to be a
2515         (struct _IO_FILE_plus *).
2516         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
2517         THIS, since _IO_JUMPS no longer does it implicitly.
2518         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
2519         arg type as (struct _IO_FILE_plus *).
2520         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
2521         arg as (_IO_strfile *).
2522         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
2523         Declare 1st arg as (_IO_strfile *).
2524         * libio/fileops.c (_IO_new_file_init): Declare
2525         arg type as (struct _IO_FILE_plus *).
2526         * libio/oldfileops.c (_IO_old_file_init): Likewise.
2527         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
2528         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
2529         Declare iteration pointer as (struct _IO_FILE_plus *).
2530         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
2531                 (struct _IO_FILE_plus *).
2532         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
2533         * libio/oldstdfiles.c (_IO_list_all): Likewise.
2534         (_IO_check_libio): Set user-visible handles to
2535         (struct _IO_FILE_plus *).
2536         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
2537         to (struct _IO_FILE_plus *).
2538
2539         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
2540         whose high bound includes vtable to all functions that will use
2541         vtable.  For streambufs, pass pointer whose bounds include struct
2542         _IO_strfile.
2543         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
2544         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2545         * libio/iofopen.c (_IO_new_fopen): Likewise.
2546         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2547         * libio/iofopen64.c (_IO_fopen64): Likewise.
2548         * libio/iopopen.c (_IO_new_popen): Likewise.
2549         * libio/oldiopopen.c (_IO_old_popen): Likewise.
2550         * libio/memstream.c (open_memstream): Likewise.
2551         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2552         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
2553         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2554         * libio/iofopncook.c (_IO_cookie_init): Likewise.
2555         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
2556         * libio/vasprintf.c (_IO_vasprintf): Likewise.
2557         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2558         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
2559         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
2560         * stdlib/strfmon.c (__strfmon_l): Likewise.
2561         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
2562         (vfprintf): Qualify computed-goto targets as unbounded.
2563
2564 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
2565
2566         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
2567         thousands separator correctly.
2568
2569         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
2570         * stdio-common/vfwscanf.c: Likewise.
2571
2572 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
2573
2574         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
2575         count into signatures for most calls.
2576
2577 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
2578
2579         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
2580         the generic parser now.
2581
2582 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
2583
2584         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
2585         table entries are 32 bit on the ia64 (as specified by the ABI),
2586         not 64 bit as on the Alpha.
2587
2588         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
2589         change of objects to use 32 bit hash table indices (see above).
2590
2591 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
2592
2593         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
2594         prototype for abs().
2595
2596 2000-06-28  Wolfram Gloger  <wg@malloc.de>
2597
2598         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
2599         fails, try mmap_chunk() as a last resort even though n_mmaps_max
2600         may have been reached.
2601
2602 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
2603
2604         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
2605         symbols in multi-character weights correctly.
2606
2607         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
2608         depending on whether the input string is empty or not.
2609
2610         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
2611         given state and not avoiding this by modifying a local object.
2612         * wcsmbs/wcrtomb.c: Likewise.
2613
2614         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
2615         object since some incomplete characters might be in there.
2616
2617         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
2618         sequences with first byte 0x8e correctly.
2619
2620         * iconvdata/jis0208.h: Remove redundant test.
2621
2622 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
2623
2624         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
2625         Add it where it is needed now.
2626
2627         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
2628         the input charset into account when generating the hash table.
2629         (allocate_arrays): Correct setting default width.  Not all empty slots
2630         in the table are filled, only those not covert explicitly by the
2631         locale description and in the charset.
2632
2633         * wctype/towctrans.c (__towctrans): Be graceful and accept error
2634         return values from the wctrans function.
2635
2636         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
2637         wide character version.
2638         For %C handling, test correct pointer variable for NULL.
2639
2640         * wcsmbs/wctob.c: Handle WEOF special.
2641
2642         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
2643
2644         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
2645         always-true test to avoid warning.
2646
2647 2000-06-27  Greg McGary  <greg@mcgary.org>
2648
2649         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
2650         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
2651         (symbol_version, default_symbol_version): Factor redundant
2652         definitions out of conditional.
2653
2654 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
2655
2656         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
2657         not obstack_blank.
2658
2659 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
2660
2661         * include/libc-symbols.h (symbol_version): Add extra level of
2662         macro expansion.
2663         (default_symbol_version): Likewise.
2664
2665 2000-06-26  Greg McGary  <greg@mcgary.org>
2666
2667         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
2668         for BP return value & push implicit struct-return pointer to
2669         __errno_location.
2670         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2671         (SYSCALL_ERROR_HANDLER): Likewise.
2672         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
2673         (SYSCALL_ERROR_HANDLER): Likewise.
2674
2675         * Makeconfig: Add missing comment.
2676         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
2677         BP-flavored startup object.
2678         ($(objpfx)b$(start-installed-name)): New rule.
2679         * include/libc-symbols.h (symbol_set_declare): Change type
2680         of `__start_##set' and `__stop_##set' to pointer-to-function.
2681         (symbol_set_declare): Change type of `set' to array of
2682         pointer-to-function.
2683         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
2684         pointer-to-function.
2685
2686         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
2687
2688         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
2689         Remove clock_* and timer_* entries.
2690         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
2691         arg-count with signatures.
2692
2693         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
2694         Check bounds of arguments.
2695         * sysdeps/i386/addmul_1.S: Likewise.
2696         * sysdeps/i386/lshift.S: Likewise.
2697         * sysdeps/i386/mul_1.S: Likewise.
2698         * sysdeps/i386/rshift.S: Likewise.
2699         * sysdeps/i386/sub_n.S: Likewise.
2700         * sysdeps/i386/submul_1.S: Likewise.
2701         * sysdeps/i386/i586/add_n.S: Likewise.
2702         * sysdeps/i386/i586/addmul_1.S: Likewise.
2703         * sysdeps/i386/i586/lshift.S: Likewise.
2704         * sysdeps/i386/i586/rshift.S: Likewise.
2705         * sysdeps/i386/i586/sub_n.S: Likewise.
2706         * sysdeps/i386/i686/add_n.S: Likewise.
2707
2708         * sysdeps/i386/memchr.S: Likewise.
2709         * sysdeps/i386/memcmp.S: Likewise.
2710         * sysdeps/i386/rawmemchr.S: Likewise.
2711         * sysdeps/i386/i586/bzero.S: Likewise.
2712         * sysdeps/i386/i586/memcpy.S: Likewise.
2713         * sysdeps/i386/i586/mempcpy.S: Likewise.
2714         * sysdeps/i386/i586/memset.S: Likewise.
2715         * sysdeps/i386/i686/bzero.S: Likewise.
2716         * sysdeps/i386/i686/memcpy.S: Likewise.
2717         * sysdeps/i386/i686/mempcpy.S: Likewise.
2718         * sysdeps/i386/i686/memset.S: Likewise.
2719
2720         * sysdeps/i386/stpcpy.S: Likewise.
2721         * sysdeps/i386/stpncpy.S: Likewise.
2722         * sysdeps/i386/strchr.S: Likewise.
2723         * sysdeps/i386/strchrnul.S: Likewise.
2724         * sysdeps/i386/strcspn.S: Likewise.
2725         * sysdeps/i386/strpbrk.S: Likewise.
2726         * sysdeps/i386/strrchr.S: Likewise.
2727         * sysdeps/i386/strspn.S: Likewise.
2728         * sysdeps/i386/strtok.S: Likewise.
2729         * sysdeps/i386/strtok_r.S: Likewise.
2730         * sysdeps/i386/i486/strcat.S: Likewise.
2731         * sysdeps/i386/i486/strlen.S: Likewise.
2732         * sysdeps/i386/i586/strchr.S: Likewise.
2733         * sysdeps/i386/i586/strcpy.S: Likewise.
2734         * sysdeps/i386/i586/strlen.S: Likewise.
2735         * sysdeps/i386/i686/strcmp.S: Likewise.
2736         * sysdeps/i386/i686/strtok.S: Likewise.
2737         * sysdeps/i386/i686/strtok_r.S: Likewise.
2738
2739         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
2740         * sysdeps/i386/fpu/fesetenv.c: Likewise.
2741         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
2742         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
2743         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
2744
2745         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
2746         * sysdeps/i386/mul_1.S: Likewise.
2747         * sysdeps/i386/submul_1.S: Likewise.
2748         * sysdeps/i386/i586/add_n.S: Likewise.
2749         * sysdeps/i386/i586/addmul_1.S: Likewise.
2750         * sysdeps/i386/i586/lshift.S: Likewise.
2751         * sysdeps/i386/i586/mul_1.S: Likewise.
2752         * sysdeps/i386/i586/rshift.S: Likewise.
2753         * sysdeps/i386/i586/sub_n.S: Likewise.
2754         * sysdeps/i386/i586/submul_1.S: Likewise.
2755
2756 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
2757
2758         * rt/Makefile (librt-routines): Add clock_nanosleep.
2759         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
2760         * sysdeps/generic/clock_nanosleep.c: New file.
2761         * sysdeps/unix/clock_nanosleep.c: New file.
2762         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
2763         * time/time.h: Declare clock_nanosleep.
2764
2765 2000-06-26  Greg McGary  <greg@mcgary.org>
2766
2767         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
2768         INSN1, INSN2, TEXT, GLOBL): Remove macros.
2769         (ALIGN): Cleanup surrounding conditionals.
2770
2771         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
2772         Call ENTER/LEAVE macros.
2773         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
2774         * sysdeps/i386/submul_1.S: Likewise.
2775
2776         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
2777         syntax.  Define & use symbolic argument stack offsets.  Call
2778         ENTER/LEAVE macros.
2779         * sysdeps/i386/i586/mul_1.S: Likewise.
2780         * sysdeps/i386/i586/submul_1.S: Likewise.
2781
2782 2000-06-25  Greg McGary  <greg@mcgary.org>
2783
2784         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
2785         not as bcopy.
2786
2787 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
2788
2789         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
2790         * iconvdata/gen-8bit-gap.sh: Likewise.
2791         * iconvdata/gen-8bit.sh: Likewise.
2792
2793         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
2794
2795         * locale/programs/ld-collate.c (collate_read): Don't actually read
2796         the copy locale if we are ignoring the content.
2797
2798         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
2799         unknown character.
2800
2801         * locale/programs/ld-collate.c: Correct handling of different
2802         collation sections.
2803         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
2804         as extra parameter from which to copy category information.
2805         Change all callers.
2806         (load_locale): Likewise.
2807         * locale/programs/localedef.h: Update prototypes of add_to_readlist
2808         and load_locale.
2809         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
2810         * locale/programs/locfile.h: Likewise.
2811         * locale/programs/locfile-kw.gperf: Add entry for script.
2812         * locale/programs/locfile-token.h: Add tok_script.
2813
2814         * locale/programs/locale.c: Update copyright year.
2815         * locale/programs/localedef.c: Likewise.
2816
2817 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
2818
2819         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
2820         Jens Moeller <jens.moeller@waii.com>.
2821
2822 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
2823
2824         * locale/programs/ld-name.c (name_finish): Add missing format
2825         specifier to test for name_fmt.
2826
2827         * locale/programs/ld-address.c (iso639): Correct length of string
2828         elements.
2829         (iso3166): Likewise.
2830
2831         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
2832
2833         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
2834         Define.
2835
2836         * elf/elf.h (NT_PRFPXREG): Define.
2837
2838 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
2839
2840         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
2841         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
2842
2843 2000-06-23  Andreas Schwab  <schwab@suse.de>
2844
2845         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
2846         with signatures.
2847
2848 2000-06-23  Andreas Jaeger  <aj@suse.de>
2849
2850         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
2851
2852         * io/test-stat.c: Add copyright header, mention Maciej.
2853
2854         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
2855         SYS_mincore, SYS_madvise): Added.
2856
2857         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
2858         execve.
2859
2860 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
2861
2862         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
2863         (CFLAGS-tst_putwc.c): New definition.
2864         * libio/tst_getwc.c: New file.
2865         * libio/tst_getwc.input: New file.
2866         * libio/tst_putwc.c: New file.
2867
2868         * include/string.h: Add prototype for __strdup.
2869
2870 2000-06-22  Greg McGary  <greg@mcgary.org>
2871
2872         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
2873         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
2874         Fix signatures.
2875
2876 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
2877
2878         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
2879
2880 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
2881
2882         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
2883
2884 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
2885
2886         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
2887         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
2888
2889 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
2890
2891         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
2892         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
2893         and __S_TYPEISSHM.
2894         * sysdeps/mach/hurd/bits/stat.h: Likewise.
2895         * sysdeps/unix/bsd/bits/stat.h: Likewise.
2896         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
2897         * sysdeps/unix/sysv/bits/stat.h: Likewise.
2898         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
2899         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
2900         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2901         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2902         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2903         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2904         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
2905         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
2906         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
2907         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
2908         S_TYPEISSHM.
2909
2910 2000-06-22  Andreas Jaeger  <aj@suse.de>
2911
2912         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
2913         with signatures.
2914
2915         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
2916
2917         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
2918
2919 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
2920
2921         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
2922         ahead.
2923
2924 2000-06-21  Greg McGary  <greg@mcgary.org>
2925
2926         * Makerules (elide-routines.*, elide-bp-thunks):
2927         Define unconditionally.
2928
2929 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
2930
2931         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
2932
2933 2000-06-21  Andreas Jaeger  <aj@suse.de>
2934
2935         * io/Makefile (tests): Add test-stat.
2936         (CFLAGS-test-stat.c): New.
2937
2938         * io/test-stat.c: New file from Maciej W. Rozycki
2939         <macro@ds2.pg.gda.pl>.
2940
2941 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
2942
2943         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
2944         in __rlimit_resource to make them match the kernel order.
2945         rlim_t is always 64 bit, use __rlim64_t to declare it
2946         unconditionally.
2947
2948 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
2949
2950         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
2951         RLIM_INFINITY before defining it to avoid clash with kernel header
2952
2953 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
2954
2955         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
2956
2957 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
2958
2959         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
2960
2961 2000-06-21  Andreas Jaeger  <aj@suse.de>
2962
2963         * stdio-common/temptest.c: Include <stdlib.h>.
2964         * stdio-common/tst-fileno.c: Likewise.
2965         * stdio-common/scanf4.c: Likewise.
2966         * stdio-common/scanf5.c: Likewise.
2967         * time/clocktest.c: Likewise.
2968         * posix/test-vfork.c: Likewise.
2969         * posix/globtest.c: Likewise.
2970         * io/test-utime.c: Likewise.
2971         * wctype/test_wcfuncs.c: Likewise.
2972         * crypt/cert.c: Likewise.
2973
2974         * stdio-common/tst-printfsz.c: Include <string.h>.
2975         * libio/tst_swscanf.c: Likewise.
2976         * libio/tst_wscanf.c: Likewise.
2977         * posix/runtests.c: Likewise.
2978         * posix/tst-getaddrinfo.c: Likewise.
2979         * posix/wordexp-test.c: Likewise.
2980         * misc/tst-efgcvt.c: Likewise.
2981
2982         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
2983         * nss/test-netdb.c: Likewise.
2984
2985         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
2986         supported kernel for MIPS.
2987
2988         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
2989         * rt/aio_suspend.c: Likewise.
2990
2991 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
2992
2993         * math/libm-test.inc: Include <string.h>.
2994
2995 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2996
2997         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
2998
2999 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
3000
3001         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
3002         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
3003
3004 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
3005
3006         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
3007
3008 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
3009
3010         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
3011
3012 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
3013
3014         * locale/programs/ld-collate.c (insert_value): Now take string and
3015         length instead of struct token* parameter.  Adjust use of token.
3016         (handle_ellipsis): Likewise.
3017         (collate_read): Allow <Uxxxx> names and transform them into names
3018         to be passed to insert_value and handle_ellipsis.
3019
3020         * locale/programs/ld-ctype.c (uninames): New array with names of
3021         digits in <Uxxxxxxxx> format.
3022         (ctype_finish): Correct search for space character value.  Likewise
3023         for default outdigits values.
3024
3025 2000-06-20  Greg McGary  <greg@mcgary.org>
3026
3027         * Makerules (objects): Add BP thunks.
3028
3029 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
3030
3031         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
3032         in width definitions.
3033
3034 2000-06-20  Andreas Jaeger  <aj@suse.de>
3035
3036         * sysdeps/mips/fpu/libm-test-ulps: New file.
3037
3038         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
3039         first.
3040
3041         * sysdeps/mips/fpu/feholdexcpt.c: New file.
3042
3043         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
3044
3045 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
3046
3047         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
3048         change in gconv_builtin.h.
3049
3050         * malloc/Makefile: Change all references to memprof into memusage.
3051         * malloc/memprof.c: Rename to...
3052         * malloc/memusage.c: ...this.  New file.
3053         * malloc/memprof.sh: Rename to...
3054         * malloc/memusage.sh: ...this.  New file.
3055         * malloc/memprofstat.c: Rename to...
3056         * malloc/memusagestat.c: ...this.  New file.
3057         * sysdeps/alpha/memprof.h: Rename to..
3058         * sysdeps/alpha/memusage.h: ...this.  New file.
3059         * sysdeps/arm/memprof.h: Rename to..
3060         * sysdeps/arm/memusage.h: ...this.  New file.
3061         * sysdeps/generic/memprof.h: Rename to..
3062         * sysdeps/generic/memusage.h: ...this.  New file.
3063         * sysdeps/i386/memprof.h: Rename to..
3064         * sysdeps/i386/memusage.h: ...this.  New file.
3065         * sysdeps/ia64/memprof.h: Rename to..
3066         * sysdeps/ia64/memusage.h: ...this.  New file.
3067         * sysdeps/m68k/memprof.h: Rename to..
3068         * sysdeps/m68k/memusage.h: ...this.  New file.
3069         * sysdeps/mips/memprof.h: Rename to..
3070         * sysdeps/mips/memusage.h: ...this.  New file.
3071         * sysdeps/powerpc/memprof.h: Rename to..
3072         * sysdeps/powerpc/memusage.h: ...this.  New file.
3073         * sysdeps/sparc/memprof.h: Rename to..
3074         * sysdeps/sparc/memusage.h: ...this.  New file.
3075         * sysdeps/sh/memprof.h: Rename to..
3076         * sysdeps/sh/memusage.h: ...this.  New file.
3077
3078         * elf/sprof.c (print_version): Update year.
3079
3080         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
3081         table entry values.  Use D_PTR.
3082         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
3083         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
3084
3085 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
3086
3087         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
3088         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
3089         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
3090         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
3091
3092 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
3093
3094         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
3095
3096 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
3097
3098         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
3099         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
3100         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
3101
3102         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
3103
3104         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
3105         kernel change.
3106
3107         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
3108         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
3109         structure.
3110         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
3111         implementation.
3112
3113 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
3114
3115         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
3116
3117 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
3118
3119         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
3120
3121 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
3122
3123         * iconv/gconv_int.h (strict gconv_module): Remove all members
3124         associated with regular expressions.  Use a simple string as the
3125         from name.
3126         * iconv/gconv_db.c: Remove code handling regular expressions.
3127         * iconv/gconv_conf.c: Likewise.
3128         * iconv/iconv_prog.c: Likewise.
3129         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
3130
3131         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
3132         General namespace cleanup.
3133         (struct __gconv_trans_data): Add next field.
3134         (struct __gconv_step_data): Make __trans a pointer.
3135         * iconv/gconv_conf.c: Split out code to find gconv directories from
3136         __gconv_read_conf in new functions.
3137         * iconv/gconv_int.h: Define new data structure and declare new
3138         functions for handling of gconv directory list.
3139         * iconv/gconv_open.c: Allow more than one error handling step being
3140         used.  Call function to load error handling module if it is none
3141         of the builtin transformations.
3142         * iconv/gconv_close.c: Add code to free transliteration data.
3143         * iconv/gconv_trans.c: Add functions to load and unload modules
3144         implementing transliteration etc.
3145         * iconv/skeleton.c: Call all context functions now that more than
3146         one module is allowed.
3147         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
3148         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
3149         where the full error handling using transliteration is needed.
3150         * iconvdata/8bit-gap.c: Likewise.
3151         * iconvdata/8bit-generic.c: Likewise.
3152         * iconvdata/ansi_x3.110.c: Likewise.
3153         * iconvdata/big5.c: Likewise.
3154         * iconvdata/big5hkscs.c: Likewise.
3155         * iconvdata/euc-cn.c: Likewise.
3156         * iconvdata/euc-jp.c: Likewise.
3157         * iconvdata/euc-kr.c: Likewise.
3158         * iconvdata/euc-tw.c: Likewise.
3159         * iconvdata/gbgbk.c: Likewise.
3160         * iconvdata/gbk.c: Likewise.
3161         * iconvdata/iso-2022-cn.c: Likewise.
3162         * iconvdata/iso-2022-jp.c: Likewise.
3163         * iconvdata/iso-2022-kr.c: Likewise.
3164         * iconvdata/iso646.c: Likewise.
3165         * iconvdata/iso8859-1.c: Likewise.
3166         * iconvdata/iso_6937-2.c: Likewise.
3167         * iconvdata/iso_6937.c: Likewise.
3168         * iconvdata/johab.c: Likewise.
3169         * iconvdata/sjis.c: Likewise.
3170         * iconvdata/t.61.c: Likewise.
3171         * iconvdata/uhc.c: Likewise.
3172         * iconvdata/unicode.c: Likewise.
3173         * iconvdata/utf-16.c: Likewise.
3174         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
3175         structure correctly after last change.
3176         * wcsmbs/btowc.c: Likewise.
3177         * wcsmbs/mbrtowc.c: Likewise.
3178         * wcsmbs/mbsnrtowcs.c: Likewise.
3179         * wcsmbs/mbsrtowcs.c: Likewise.
3180         * wcsmbs/wcrtomb.c: Likewise.
3181         * wcsmbs/wcsnrtombs.c: Likewise.
3182         * wcsmbs/wcsrtombs.c: Likewise.
3183         * wcsmbs/wctob.c: Likewise.
3184
3185         * localedata/Makefile: Set -Wno-format for some files since gcc does
3186         not know all the format specifiers.
3187
3188 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
3189
3190         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
3191         unneeded code.
3192         * locale/lc-time.c (_nl_init_era_entries): Likewise.
3193
3194 2000-06-18  Andreas Jaeger  <aj@suse.de>
3195
3196         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
3197         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
3198
3199 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
3200
3201         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
3202         LINUX_LINK_MAX.
3203         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
3204
3205         * locale/programs/ld-ctype.c (ctype_output): Really write out
3206         mboutdigits information.
3207         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
3208         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
3209         * localedata/tests/trans.def: Add outdigit information.
3210
3211         * localedata/tst-mbswcs3.c: Remove comment.
3212
3213         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
3214         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
3215         * libio/tst_wprintf.c (main): Add test for I flag.
3216
3217         * iconv/gconv_trans.c: Implement handling if translit_ignore.
3218         * locale/langinfo.h: Add entries for translit_ignore information.
3219         * locale/categories.def: Add entries for new LC_CTYPE elements.
3220         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
3221         pointer instead of "" where possible.
3222         * locale/programs/ld-ctype.c: Write out translit_ignore information.
3223         * intl/Depend: Add localedata.
3224         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
3225         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
3226
3227 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
3228
3229         * locale/langinfo.h: Add entries for default_missing information.
3230         * locale/C-ctype.c: Add initializers for new fields.
3231         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
3232         information.
3233         * locale/categories.h: Add entries for all LC_CTYPE values.
3234         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
3235         information.
3236
3237         * localedata/tst-trans.c: Write out an error message if class is
3238         not found.
3239
3240         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
3241         * iconv/gconv_open.c: Remove error handling specification from `from'
3242         character set name.
3243         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
3244         new parameter to always enable transliteration.
3245         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
3246         change.
3247         (struct locale_data): Add new members use_translit and options.
3248         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
3249         character set name contained modifier TRANSLIT.
3250         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
3251         and options fields.
3252         (_nl_unload_locale): Free options string if necessary.
3253         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
3254         the locale names suggested this.
3255         * locale/C-address.c: Add two new initialilzers to adjust data
3256         structure for new format.
3257         * locale/C-collate.c: Likewise.
3258         * locale/C-ctype.c: Likewise.
3259         * locale/C-identification.c: Likewise.
3260         * locale/C-measurement.c: Likewise.
3261         * locale/C-messages.c: Likewise.
3262         * locale/C-monetary.c: Likewise.
3263         * locale/C-name.c: Likewise.
3264         * locale/C-numeric.c: Likewise.
3265         * locale/C-paper.c: Likewise.
3266         * locale/C-telephone.c: Likewise.
3267         * locale/C-time.c: Likewise.
3268
3269         * locale/setlocale.c: Add some more __builtin_expect.
3270
3271 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
3272
3273         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
3274         unsigned char **.
3275         (__gconv_init_fct): Remove two parameters.
3276         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
3277         gconv_transliterate.  Remove two parameters.
3278         Change prototypes of builtin functions according to __gconv_fct change.
3279         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
3280         != NULL only during error handling.  Stop in this case after the
3281         conversion.
3282         * iconv/gconv_trans.c: Replace with real implementation for
3283         __gconv_transliterate.
3284         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
3285         * iconv/gconv.c: Change calls to downstream functions once again.
3286         Use NULL for the fifth parameter instead of pointer to output buffer.
3287         * libio/iofwide.c: Likewise.
3288         * wcsmbs/btowc.c: Likewise.
3289         * wcsmbs/mbrtowc.c: Likewise.
3290         * wcsmbs/mbsnrtowcs.c: Likewise.
3291         * wcsmbs/mbsrtowcs.c: Likewise.
3292         * wcsmbs/wcrtomb.c: Likewise.
3293         * wcsmbs/wcsnrtombs.c: Likewise.
3294         * wcsmbs/wcsrtombs.c: Likewise.
3295         * wcsmbs/wctob.c: Likewise.
3296         * iconv/gconv_simple.c: Remove two parameters from error handling
3297         function call.
3298         * iconvdata/8bit-gap.c: Likewise.
3299         * iconvdata/8bit-generic.c: Likewise.
3300         * iconvdata/ansi_x3.110.c: Likewise.
3301         * iconvdata/big5.c: Likewise.
3302         * iconvdata/big5hkscs.c: Likewise.
3303         * iconvdata/euc-cn.c: Likewise.
3304         * iconvdata/euc-jp.c: Likewise.
3305         * iconvdata/euc-kr.c: Likewise.
3306         * iconvdata/euc-tw.c: Likewise.
3307         * iconvdata/gbgbk.c: Likewise.
3308         * iconvdata/gbk.c: Likewise.
3309         * iconvdata/iso-2022-cn.c: Likewise.
3310         * iconvdata/iso-2022-jp.c: Likewise.
3311         * iconvdata/iso-2022-kr.c: Likewise.
3312         * iconvdata/iso646.c: Likewise.
3313         * iconvdata/iso8859-1.c: Likewise.
3314         * iconvdata/iso_6937-2.c: Likewise.
3315         * iconvdata/iso_6937.c: Likewise.
3316         * iconvdata/johab.c: Likewise.
3317         * iconvdata/sjis.c: Likewise.
3318         * iconvdata/t.61.c: Likewise.
3319         * iconvdata/uhc.c: Likewise.
3320         * iconvdata/unicode.c: Likewise.
3321         * iconvdata/utf-16.c: Likewise.
3322
3323 2000-06-15  Greg McGary  <greg@mcgary.org>
3324
3325         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
3326         of callnum assignment.  Tolerate callnum expressions containing
3327         parens.
3328
3329 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
3330
3331         * login/Makefile (utmpd): Remove rule to build utmpd.
3332
3333         * csu/Versions: Move libgcc frame handling functions from here...
3334         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
3335         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
3336         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
3337         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
3338         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
3339         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
3340         New file.
3341         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
3342
3343         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
3344
3345         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
3346
3347 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
3348
3349         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
3350         compatibility.
3351         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
3352         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
3353         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
3354         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
3355
3356 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
3357
3358         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
3359         defined, terminate quotes and read them after the comment char.
3360         * configure.in (HAVE_SECTION_QUOTES): Test whether
3361         __attribute__((section ("x"))) puts quotes around x or not.
3362         * config.h.in (HAVE_SECTION_QUOTES): Add.
3363         * configure: Rebuilt.
3364
3365 2000-06-14  Andreas Jaeger  <aj@suse.de>
3366
3367         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
3368         depending on the configure option --sysconfdir.
3369         Closes PR libc/1762.
3370         Patch by Andreas Schwab <schwab@suse.de>.
3371
3372         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
3373         entry point.
3374         Reported by Jim Pick <jim@jimpick.com>.
3375
3376 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
3377
3378         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
3379         crashing the application.  Emit some simple error message.
3380         Reported by mju@panasas.com [PR libc/1769].
3381
3382 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
3383
3384         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
3385
3386         * crypt/Makefile (distribute): Add md5.h.
3387
3388         * Makefile (distribute): Add include/shlib-compat.h.
3389
3390         * Make-dist: Search for tests also in sysdeps hierachy.
3391
3392         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
3393         ufc.c, speeds.c, README.ufc-crypt, and Banner.
3394
3395         * sysdeps/sparc/Subdirs: New file.
3396
3397         * locale/Makefile (distribute): Add weightwc.h and
3398         programs/localedef.h.
3399
3400         * time/Makefile (distribute): Add datemsk.
3401
3402         * sysdeps/ia64/Dist: Add softpipe.h.
3403
3404         * sysdeps/unix/sysv/aix/Dist: New file.
3405
3406         * posix/setpgrp.c: Moved to...
3407         * sysdeps/generic/setpgrp.c: ...here.  New file.
3408         * io/mknod.c: Moved to...
3409         * sysdeps/generic/mknod.c: ...here.  New file.
3410
3411         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
3412
3413         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
3414
3415         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
3416
3417         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
3418         gprsave0.S, gprrest1.S, and gprrest0.S.
3419
3420         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
3421
3422         * posix/Makefile (routines): Add spawnattr_getsigmask,
3423         spawnattr_getschedpolicy, spawnattr_getschedparam,
3424         spawnattr_setsigmask, spawnattr_setschedpolicy, and
3425         spawnattr_setschedparam.
3426         * posix/Versions: Add posix_spawnattr_getschedpolicy,
3427         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
3428         posix_spawnattr_setschedparam.
3429
3430         * posix/spawnattr_setschedparam.c: Fix typo.
3431
3432         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
3433         Correct typo.
3434
3435         * login/programs/utmpd.c: Removed.
3436         * login/programs/utmpd.h: Removed.
3437         * login/programs/utmpd-private.h: Removed.
3438
3439         * Makefile (distribute): Add include/db_185.h and include/db.h.
3440
3441         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
3442         iso-ir-165.h.
3443
3444         * elf/Makefile (distribute): Add missing files.
3445
3446         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
3447         * elf/eval.c: Moved to...
3448         * dlfcn/eval.c: ...here.  New file.
3449
3450         * Makefile (distribute): Also distribute ChangeLog.1?.
3451
3452         * Make-dist (+tsrcs): Remove .args handling here as well.
3453
3454         * rt/Makefile (tests): Add tst-timer.
3455         * sysdeps/generic/tst-timer.c: New file.
3456
3457         * Makerules (sources): Don't add BP sources here.
3458
3459         * login/Makefile (distribute): Remove xtmp.h.
3460
3461         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
3462         is true.  Reported by Bruno Haible <haible@ilog.fr>.
3463
3464 2000-06-13  Andreas Jaeger  <aj@suse.de>
3465
3466         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
3467         Patch by Ralf Baechle <ralf@gnu.org>.
3468
3469 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
3470
3471         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
3472         for mincore syscall.
3473
3474         * misc/sys/cdefs.h: Define __bounded and __unbounded if
3475         __BOUNDED_POINTERS__ is not defined.
3476
3477 2000-06-07  Greg McGary  <greg@mcgary.org>
3478
3479         * sysdeps/generic/bp-sym.h: New file.
3480         * sysdeps/generic/bp-start.h: New file.
3481         * sysdeps/i386/elf/start.S: Designate BP symbols.
3482         * sysdeps/generic/libc-start.c: Wrap bounds around
3483         argv & envp and each of their string members.
3484
3485 2000-06-07  Greg McGary  <greg@mcgary.org>
3486
3487         * sysdeps/unix/make-syscalls.sh: Add comments to
3488         output that aid debugging & comprehension.
3489         Map simple syscall signatures to number of args.
3490         Generate BP syscall thunk definitions.
3491         * sysdeps/generic/bp-thunks.h: New file.
3492         * sysdeps/unix/syscalls.list: Replace arg-count with
3493         simple return+arg signature.
3494         * sysdeps/unix/common/syscalls.list: Likewise.
3495         * sysdeps/unix/inet/syscalls.list: Likewise.
3496         * sysdeps/unix/mman/syscalls.list: Likewise.
3497         * sysdeps/unix/sysv/syscalls.list: Likewise.
3498         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3499         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
3500
3501 2000-06-07  Greg McGary  <greg@mcgary.org>
3502
3503         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
3504         for all files *.[cS].
3505         (CFLAGS-.ob): Don't optimize sibling calls.
3506         (bppfx): New variable.
3507         * Makerules (elide-bp-thunks): New variable.
3508         (elide-routines.*): Elide BP-* files for all but *.ob.
3509         (sources): Include bp-thunks.
3510
3511 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
3512
3513         * iconv/gconv_simple.c: Remove unnecessary prototype.
3514
3515         * iconv/gconv_trans.c: Pretty print.
3516
3517         * elf/elf.h (R_SH_NUM): Got accidently dropped.
3518
3519         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
3520         minimal kernel versions.  Add information about IA-64 kernel.
3521
3522         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
3523         specific minimal supported kernel versions to be specified.
3524
3525         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
3526         step data structure.
3527         * wcsmbs/btowc.c: Likewise.
3528         * wcsmbs/mbrtowc.c: Likewise.
3529         * wcsmbs/mbsnrtowcs.c: Likewise.
3530         * wcsmbs/mbsrtowcs.c: Likewise.
3531         * wcsmbs/wcrtomb.c: Likewise.
3532         * wcsmbs/wcsnrtombs.c: Likewise.
3533         * wcsmbs/wcsrtombs.c: Likewise.
3534         * wcsmbs/wctob.c: Likewise.
3535
3536         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
3537         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
3538
3539         * shlib-versions: Earliest backward compatible version for SH is 2.2.
3540
3541         * misc/sys/cdefs.h: Remove one more __P.
3542
3543         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
3544         Reported by HJ Lu.
3545
3546         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
3547         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
3548         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
3549
3550 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
3551             Yutaka Niibe  <gniibe@chroot.org>
3552
3553         * configure.in: Add machine sh3, sh4.
3554         * elf/elf.h: Add SH specific declarations of relocations.
3555         * shlib-versions: Add sh*-*-linux* cases.
3556
3557 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
3558
3559         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
3560         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
3561         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
3562         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
3563         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
3564         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
3565
3566         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
3567         instead of KERNEL_MATH_EMULATION.
3568         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
3569         KERNEL_MATH_EMULATION.
3570
3571         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
3572         * sysdeps/sh/sh3/dl-machine.h: Moved to...
3573         * sysdeps/sh/dl-machine.h: ...here.  New file.
3574         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
3575         and include generic SH version.
3576         * sysdeps/sh/sh3/bits/endian.h: Move to...
3577         * sysdeps/sh/bits/endian.h: ...here.  New file.
3578         * sysdeps/sh/sh4/bits/endian.h: Removed.
3579         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
3580         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
3581         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
3582
3583         * include/libc-symbols.h (link_warning): Work around a change in
3584         GAS which warns about changing section attributes.
3585         Proposed by Nick Clifton <nickc@redhat.com>.
3586
3587 2000-06-12  H.J. Lu  <hjl@gnu.org>
3588
3589         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
3590
3591 2000-06-11  H.J. Lu  <hjl@gnu.org>
3592
3593         * sysdeps/i386/fpu/Versions: New file.
3594
3595 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
3596
3597         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
3598         parameters.
3599         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
3600         exists.
3601
3602 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
3603
3604         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
3605         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
3606         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
3607
3608         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
3609         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
3610         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
3611
3612 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
3613             Yutaka Niibe  <gniibe@chroot.org>
3614
3615         * sysdeps/sh/Dist: New file.
3616         * sysdeps/sh/Implies: New file.
3617         * sysdeps/sh/elf/initfini.c: New file.
3618         * sysdeps/sh/gmp-mparam.h: New file.
3619         * sysdeps/sh/init-first.c: New file.
3620         * sysdeps/sh/machine-gmon.h: New file.
3621         * sysdeps/sh/memcpy.S: New file.
3622         * sysdeps/sh/memprof.h: New file.
3623         * sysdeps/sh/memset.S: New file.
3624         * sysdeps/sh/sh3/__longjmp.S: New file.
3625         * sysdeps/sh/sh3/bits/endian.h: New file.
3626         * sysdeps/sh/sh3/bits/huge_val.h: New file.
3627         * sysdeps/sh/sh3/bits/setjmp.h: New file.
3628         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
3629         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
3630         * sysdeps/sh/sh3/dl-machine.h: New file.
3631         * sysdeps/sh/sh3/setjmp.S: New file.
3632         * sysdeps/sh/sh4/__longjmp.S: New file.
3633         * sysdeps/sh/sh4/bits/endian.h: New file.
3634         * sysdeps/sh/sh4/bits/huge_val.h: New file.
3635         * sysdeps/sh/sh4/bits/setjmp.h: New file.
3636         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
3637         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
3638         * sysdeps/sh/sh4/dl-machine.h: New file.
3639         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
3640         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
3641         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
3642         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
3643         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
3644         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
3645         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
3646         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
3647         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
3648         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
3649         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
3650         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
3651         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
3652         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
3653         * sysdeps/sh/sh4/setjmp.S: New file.
3654         * sysdeps/sh/elf/start.S: New file.
3655         * sysdeps/sh/sys/ucontext.h: New file.
3656         * sysdeps/sh/strlen.S: New file.
3657         * sysdeps/sh/sysdep.h: New file.
3658         * sysdeps/unix/sh/sysdep.S: New file.
3659         * sysdeps/unix/sh/sysdep.h: New file.
3660         * sysdeps/unix/sysv/linux/sh/Dist: New file.
3661         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
3662         * sysdeps/unix/sysv/linux/sh/Versions: New file.
3663         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
3664         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
3665         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
3666         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
3667         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
3668         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
3669         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
3670         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
3671         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
3672         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
3673         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
3674         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
3675         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
3676         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
3677         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
3678         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
3679         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
3680         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
3681         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
3682         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
3683         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
3684         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
3685         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
3686         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
3687         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
3688         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
3689         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
3690         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
3691         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
3692         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
3693         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
3694         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
3695         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
3696         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
3697         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
3698         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
3699         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
3700         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
3701         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
3702         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
3703         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
3704         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
3705         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
3706         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
3707         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
3708         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
3709         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
3710
3711 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
3712
3713         * Rules (%.out): Define GCONV_PATH in the environment.
3714         * assert/Depend: New file.
3715         * iconvdata/Depend: New file.
3716         * intl/Depend: New file.
3717         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
3718         * intl/tst-gettext.sh: Likewise.
3719         * iconv/Makefile (routines): Add gconv_trans.
3720         * iconv/gconv_trans.c: New file.
3721         * iconv/gconv.h (struct __gconv_trans_data): New type.
3722         (__gconv_fct): New parameter with starting position in output buffer.
3723         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
3724         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
3725         (struct __gconv_step): Add new member __trans.
3726         * iconv/gconv_int.h: Pretty print prototypes.
3727         (gconv_transliterate): New prototype.
3728         (__BUILTIN_TRANS): Update for new conversion function interface.
3729         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
3730         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
3731         in names, find appropriate function, and install in the conversion
3732         steps it can be used.
3733         * iconv/skeleton.c: Add additional parameter for beginning of output
3734         buffer.  Change calls of downstream functions.
3735         * iconv/loop.c: Change loop function interface completely.  Pass in
3736         step and step_data structure.  Remove optimization for BODY with
3737         NEED_LENGTH_TEST == 0.
3738         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
3739         appropriate error handling code to use transliteration steps.  Remove
3740         optimization for BODY with NEED_LENGTH_TEST == 0.
3741         * iconvdata/8bit-gap.c: Likewise.
3742         * iconvdata/8bit-generic.c: Likewise.
3743         * iconvdata/ansi_x3.110.c: Likewise.
3744         * iconvdata/big5.c: Likewise.
3745         * iconvdata/big5hkscs.c: Likewise.
3746         * iconvdata/euc-cn.c: Likewise.
3747         * iconvdata/euc-jp.c: Likewise.
3748         * iconvdata/euc-kr.c: Likewise.
3749         * iconvdata/euc-tw.c: Likewise.
3750         * iconvdata/gbgbk.c: Likewise.
3751         * iconvdata/gbk.c: Likewise.
3752         * iconvdata/iso-2022-cn.c: Likewise.
3753         * iconvdata/iso-2022-jp.c: Likewise.
3754         * iconvdata/iso-2022-kr.c: Likewise.
3755         * iconvdata/iso646.c: Likewise.
3756         * iconvdata/iso8859-1.c: Likewise.
3757         * iconvdata/iso_6937-2.c: Likewise.
3758         * iconvdata/iso_6937.c: Likewise.
3759         * iconvdata/johab.c: Likewise.
3760         * iconvdata/sjis.c: Likewise.
3761         * iconvdata/t.61.c: Likewise.
3762         * iconvdata/uhc.c: Likewise.
3763         * iconvdata/unicode.c: Likewise.
3764         * iconvdata/utf-16.c: Likewise.
3765         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
3766         DL_CALL_FCT.
3767         * wcsmbs/btowc.c: Likewise.
3768         * wcsmbs/mbrtowc.c: Likewise.
3769         * wcsmbs/mbsnrtowcs.c: Likewise.
3770         * wcsmbs/mbsrtowcs.c: Likewise.
3771         * wcsmbs/wcrtomb.c: Likewise.
3772         * wcsmbs/wcsnrtombs.c: Likewise.
3773         * wcsmbs/wcsrtombs.c: Likewise.
3774         * wcsmbs/wctob.c: Likewise.
3775
3776 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
3777
3778         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
3779         other header files.  Mention about 128-byte cache line sizes.
3780         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
3781         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
3782         for current calling sequence.
3783         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
3784
3785         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
3786         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3787
3788         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
3789         and setrlimit syscalls for backwards compatibility.
3790
3791 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
3792
3793         * iconv/skeleton.c:  Rename converted written to correcter name
3794         irreversible.
3795         * iconv/gconv.c: Rename converted variable to correcter name
3796         irreversible.
3797         * iconv/gconv_int.h: Likewise.
3798         * iconv/gconv_simple.c: Likewise.
3799         * iconv/iconv.c: Likewise.
3800         * iconv/loop.c: Likewise.
3801         * iconvdata/8bit-gap.c: Likewise.
3802         * iconvdata/8bit-generic.c: Likewise.
3803         * iconvdata/ansi_x3.110.c: Likewise.
3804         * iconvdata/big5.c: Likewise.
3805         * iconvdata/big5hkscs.c: Likewise.
3806         * iconvdata/euc-cn.c: Likewise.
3807         * iconvdata/euc-jp.c: Likewise.
3808         * iconvdata/euc-kr.c: Likewise.
3809         * iconvdata/gbgbk.c: Likewise.
3810         * iconvdata/gbk.c: Likewise.
3811         * iconvdata/iso-2022-cn.c: Likewise.
3812         * iconvdata/iso-2022-jp.c: Likewise.
3813         * iconvdata/iso-2022-kr.c: Likewise.
3814         * iconvdata/iso646.c: Likewise.
3815         * iconvdata/iso8859-1.c: Likewise.
3816         * iconvdata/iso_6937-2.c: Likewise.
3817         * iconvdata/iso_6937.c: Likewise.
3818         * iconvdata/johab.c: Likewise.
3819         * iconvdata/sjis.c: Likewise.
3820         * iconvdata/t.61.c: Likewise.
3821         * iconvdata/uhc.c: Likewise.
3822         * iconvdata/unicode.c: Likewise.
3823         * iconvdata/utf-16.c: Likewise.
3824
3825         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
3826         __cmsg_data field with __extension__.
3827
3828 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
3829
3830         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
3831
3832 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
3833
3834         * iconv/gconv_simple.c: Fix various small bugs in several
3835         functions.
3836
3837         * iconv/loop.c: Fix comment.
3838
3839 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
3840
3841         * elf/link.h: Remove libc internal declarations.
3842         * include/link.h: Move them here.
3843
3844 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
3845
3846         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
3847         Patch by Dan Pop <Dan.Pop@cern.ch>.
3848
3849         Rewrite error message handling.
3850         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
3851         _dl_catch_error.
3852         * elf/dl-error (struct catch): Add objname member.
3853         (_dl_signal_error): Take new parameter with object name.  When
3854         passing message on simply store object name and duplicate error
3855         message.
3856         (_dl_catch_error): Take new parameter.  Store object name in the
3857         place pointed to.
3858         * include/dlfcn.h: Adjust _dl_catch_error prototype.
3859         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
3860         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
3861         (dlerror): Add objname to asprintf() parameters.
3862         (_dl_error_run): Pass new parameter to _dl_catch_error.
3863         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
3864         * elf/dl-open.c (_dl_open): Likewise.
3865         * elf/rtld.c (dl_main): Likewise.
3866         * elf/dl-close.c: Mark error messages with N_().
3867         * elf/dl-deps.c: Likewise.
3868         * elf/dl-error.c: Likewise.
3869         * elf/dl-load.c: Likewise.
3870         * elf/dl-open.c: Likewise.
3871         * elf/dl-reloc.c: Likewise.
3872         * elf/dl-support.c: Likewise.
3873         * elf/dl-sym.c: Likewise.
3874         * elf/dl-version.c: Likewise.
3875         * elf/dl-lookup.c: Add comments about problems with error message
3876         translations.
3877         * elf/dl-reloc.c: Likewise.
3878         * elf/dl-version.c: Likewise.
3879
3880 2000-06-09  H.J. Lu  <hjl@gnu.org>
3881
3882         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
3883         after freeing it.
3884
3885         * dlfcn/Makefile (distribute): Add failtestmod.c.
3886         (tests): Add failtest.
3887         Add rules to build and run failtest.
3888         * dlfcn/failtest.c: New file.
3889         * dlfcn/failtestmod.c: New file.
3890
3891 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
3892
3893         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
3894         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
3895         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
3896         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
3897         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
3898
3899 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3900
3901         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
3902         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
3903
3904 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3905             Ulrich Drepper  <drepper@redhat.com>
3906
3907         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
3908         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
3909         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
3910         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
3911         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
3912         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
3913
3914 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
3915
3916         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
3917         to find correct mount point despite wrong information from the
3918         kernel.
3919
3920 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3921
3922         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
3923         the address of a symbol so function pointers are handled properly.
3924
3925 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
3926
3927         * sysdeps/i386/Dist: Add bp-asm.h.
3928
3929         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
3930         defaultdir variable instead of "/var/shm" everywhere.
3931         (defaultdir): Change to /dev/shm/.
3932
3933 2000-06-08  Greg McGary  <greg@mcgary.org>
3934
3935         * sysdeps/i386/bp-asm.h: New file.
3936         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
3937         offsets.  Add ENTER/LEAVE macros for optionally maintaining
3938         frame-pointer chain when debugging.
3939         * sysdeps/i386/add_n.S: Likewise.
3940         * sysdeps/i386/addmul_1.S: Likewise.
3941         * sysdeps/i386/lshift.S: Likewise.
3942         * sysdeps/i386/memchr.S: Likewise.
3943         * sysdeps/i386/memcmp.S: Likewise.
3944         * sysdeps/i386/mul_1.S: Likewise.
3945         * sysdeps/i386/rawmemchr.S: Likewise.
3946         * sysdeps/i386/rshift.S: Likewise.
3947         * sysdeps/i386/stpcpy.S: Likewise.
3948         * sysdeps/i386/stpncpy.S: Likewise.
3949         * sysdeps/i386/strchr.S: Likewise.
3950         * sysdeps/i386/strchrnul.S: Likewise.
3951         * sysdeps/i386/strcspn.S: Likewise.
3952         * sysdeps/i386/strpbrk.S: Likewise.
3953         * sysdeps/i386/strrchr.S: Likewise.
3954         * sysdeps/i386/strspn.S: Likewise.
3955         * sysdeps/i386/strtok.S: Likewise.
3956         * sysdeps/i386/sub_n.S: Likewise.
3957         * sysdeps/i386/submul_1.S: Likewise.
3958         * sysdeps/i386/elf/setjmp.S: Likewise.
3959         * sysdeps/i386/i486/strcat.S: Likewise.
3960         * sysdeps/i386/i486/strlen.S: Likewise.
3961         * sysdeps/i386/i586/add_n.S: Likewise.
3962         * sysdeps/i386/i586/lshift.S: Likewise.
3963         * sysdeps/i386/i586/memcpy.S: Likewise.
3964         * sysdeps/i386/i586/memset.S: Likewise.
3965         * sysdeps/i386/i586/rshift.S: Likewise.
3966         * sysdeps/i386/i586/strchr.S: Likewise.
3967         * sysdeps/i386/i586/strcpy.S: Likewise.
3968         * sysdeps/i386/i586/strlen.S: Likewise.
3969         * sysdeps/i386/i586/sub_n.S: Likewise.
3970         * sysdeps/i386/i686/add_n.S: Likewise.
3971         * sysdeps/i386/i686/memcpy.S: Likewise.
3972         * sysdeps/i386/i686/mempcpy.S: Likewise.
3973         * sysdeps/i386/i686/memset.S: Likewise.
3974         * sysdeps/i386/i686/strcmp.S: Likewise.
3975
3976 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
3977
3978         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
3979
3980         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
3981         256 and don't use OPEN_MAX.
3982
3983         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
3984         use it instead of LINK_MAX.
3985         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3986
3987 2000-06-08  Andreas Jaeger  <aj@suse.de>
3988
3989         * libio/genops.c (_IO_list_lock): Only compile body if we're
3990         thread safe.
3991         (_IO_list_unlock): Likewise.
3992         (_IO_list_resetlock): Likewise.
3993
3994 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
3995
3996         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
3997         unless user defined it.
3998
3999         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
4000         if not defined by the user.
4001
4002         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
4003         * libio/iofwrite.c (_IO_fwrite): Likewise.
4004
4005         * time/time.h: Add missing __THROW for clock_getcpuclockid
4006         prototype.
4007
4008         * elf/Makefile (distribute): Add dl-dtprocnum.h.
4009         * include/elf.h: Include also <dl-dtprocnum.h>.
4010         * elf/dl-deps.c: Likewise.
4011         * elf/dl-lookup.c: Likewise.
4012         * elf/dl-runtime.c: Likewise.
4013         * elf/dl-version.c: Likewise.
4014         * elf/do-rel.h: Likewise.
4015         * elf/dynamic-link.h: Likewise.
4016         * elf/link.h: Likewise.
4017         * elf/rtld.c: Likewise.
4018         * sysdeps/generic/dl-dtprocnum.h: New file.
4019         * sysdeps/ia64/dl-dtprocnum.h: New file.
4020         * sysdeps/mips/dl-dtprocnum.h: New file.
4021         * sysdeps/sparc/dl-dtprocnum.h: New file.
4022
4023         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
4024
4025         * elf/do-lookup.h: Add some __builtin_expect.
4026
4027         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
4028
4029         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
4030         (_dl_dynamic_weak): New variable.
4031         * elf/dl-support.c: Likewise.
4032         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
4033         * elf/do-lookup.h: If we find a weak definition treat it like a
4034         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
4035         case treat it like before.
4036
4037         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
4038         is in main program.
4039         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
4040
4041         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
4042         using l_map_start and l_map_end.
4043
4044         * elf/dl-version.c: Add __builtin_expect in many places.
4045
4046         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
4047         Update.
4048
4049 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
4050
4051         Lock for stdio stream list becomes global, for use in LinuxThreads.
4052
4053         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
4054         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
4055         _IO_list_resetlock): New interface for iterating global list of
4056         streams without accessing the _IO_list_all global variable,
4057         and for manipulating the lock which protects this list.
4058         * libio/libioP.h: Likewise.
4059         * libio/Version: Add entries for the new functions.
4060
4061         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
4062         pointer to _IO_FILE.
4063
4064 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
4065
4066         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
4067         BIT() must actually be BITw().
4068
4069         * locale/programs/ld-ctype.c: Handle SP and space consistently.
4070
4071         * locale/programs/charmap.c: Allow string arguments for
4072         code_set_name and repertoiremap.
4073
4074 2000-06-07  Andreas Jaeger  <aj@suse.de>
4075
4076         * elf/Makefile: Build ldconfig only when building shared libraries.
4077
4078 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
4079
4080         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
4081         __USE_ISOC99.
4082         (fdimf, __fdim, fdim): Likewise.
4083
4084 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
4085
4086         * locale/findlocale.c: Add __builtin_expect in many places.
4087         * locale/loadlocale.c: Likewise.
4088
4089 2000-06-06  Greg McGary  <greg@mcgary.org>
4090
4091         * sysdeps/mips/elf/start.S: Trim redundant code.
4092
4093         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
4094         Use C comments throughout.  Line up operands column with tabs.
4095         * sysdeps/powerpc/strchr.S: Likewise.
4096         * sysdeps/powerpc/strcmp.S: Likewise.
4097         * sysdeps/powerpc/strcpy.S: Likewise.
4098         * sysdeps/powerpc/strlen.S: Likewise.
4099
4100         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
4101         Get low part of &__curbrk with @l.
4102
4103 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
4104
4105         * iconvdata/utf-16.c: Add __builtin_expect in many places.
4106         * iconvdata/unicode.c: Likewise.
4107         * iconvdata/uhc.c: Likewise.
4108         * iconvdata/t.61.c: Likewise.
4109         * iconvdata/sjis.c: Likewise.
4110         * iconvdata/johab.c: Likewise.
4111         * iconvdata/iso_6937.c: Likewise.
4112         * iconvdata/iso_6937-2.c: Likewise.
4113         * iconvdata/iso8859-1.c: Likewise.
4114         * iconvdata/iso646.c: Likewise.
4115         * iconvdata/iso-2022-kr.c: Likewise.
4116         * iconvdata/iso-2022-jp.c: Likewise.
4117         * iconvdata/iso-2022-cn.c: Likewise.
4118         * iconvdata/gbgbk.c: Likewise.
4119         * iconvdata/gbk.c: Likewise.
4120         * iconvdata/euc-kr.c: Likewise.
4121         * iconvdata/euc-jp.c: Likewise.
4122         * iconvdata/euc-cn.c: Likewise.
4123
4124 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
4125
4126         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
4127         * iconvdata/big5.c: Likewise.
4128         * iconvdata/ansi_x3.110.c: Likewise.
4129         * iconvdata/8bit-generic.c: Likewise.
4130         * iconvdata/8bit-gap.c: Likewise.
4131         * iconv/loop.c: Likewise.
4132         * iconv/gconv_db.c: Likewise.
4133         * iconv/gconv_dl.c: Likewise.
4134         * iconv/gconv_simple.c: Likewise.
4135         * iconv/skeleton.c: Likewise.
4136
4137         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
4138         (struct __gconv_step_data): Rename __is_last to __flags.
4139         * iconv/gconv_close.c: Change all uses of __is_last.
4140         * iconv/skeleton.c: Likewise.
4141         * iconvdata/iso-2022-cn.c: Likewise.
4142         * iconvdata/iso-2022-jp.c: Likewise.
4143         * iconvdata/iso-2022-kr.c: Likewise.
4144         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
4145         Recognize IGNORE error handling, set flag, and remove from name.
4146         * iconv/loop.c (ignore_errors_p): Define.
4147         Add flags parameter to both functions.
4148         * iconv/skeleton.c: Pass flags to all conversion functions.
4149         * iconv/gconv_simple.c: Add flags parameter to all functions.
4150         Don't return error for invald error if ignore flag is set.
4151         (ucs4_internal_loop_single): Add missing pointer increment.
4152         (internal_ucs4le_loop_single): Likewise.
4153         * iconv/iconv_prog.c: Implement handling of -c parameter.
4154         * iconvdata/8bit-gap.c: Don't return error for invald error if
4155         ignore flag is set.
4156         * iconvdata/8bit-generic.c: Likewise.
4157         * iconvdata/ansi_x3.110.c: Likewise.
4158         * iconvdata/big5.c: Likewise.
4159         * iconvdata/big5hkscs.c: Likewise.
4160         * iconvdata/euc-cn.c: Likewise.
4161         * iconvdata/euc-jp.c: Likewise.
4162         * iconvdata/euc-kr.c: Likewise.
4163         * iconvdata/gbgbk.c: Likewise.
4164         * iconvdata/gbk.c: Likewise.
4165         * iconvdata/iso-2022-cn.c: Likewise.
4166         * iconvdata/iso-2022-jp.c: Likewise.
4167         * iconvdata/iso-2022-kr.c: Likewise.
4168         * iconvdata/iso646.c: Likewise.
4169         * iconvdata/iso8859-1.c: Likewise.
4170         * iconvdata/iso_6937-2.c: Likewise.
4171         * iconvdata/iso_6937.c: Likewise.
4172         * iconvdata/johab.c: Likewise.
4173         * iconvdata/sjis.c: Likewise.
4174         * iconvdata/t.61.c: Likewise.
4175         * iconvdata/uhc.c: Likewise.
4176         * iconvdata/unicode.c: Likewise.
4177         * iconvdata/utf-16.c: Likewise.
4178         * libio/fileops.c: Likewise.
4179         * libio/iofwide.c: Likewise.
4180         * wcsmbs/btowc.c: Likewise.
4181         * wcsmbs/mbrtowc.c: Likewise.
4182         * wcsmbs/mbsnrtowcs.c: Likewise.
4183         * wcsmbs/mbsrtowcs.c: Likewise.
4184         * wcsmbs/wcrtomb.c: Likewise.
4185         * wcsmbs/wcsnrtombs.c: Likewise.
4186         * wcsmbs/wcsrtombs.c: Likewise.
4187         * wcsmbs/wctob.c: Likewise.
4188
4189         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
4190         an error.
4191
4192 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
4193
4194         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
4195         counter for the object we are releasing, just decrement it.
4196         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
4197
4198 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
4199
4200         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
4201         if -ffast-math.
4202
4203 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
4204
4205         * iconvdata/big5hkscs.c: New file.
4206         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
4207
4208         * iconvdata/gconv-modules: Add entry for new module.
4209         * iconvdata/Makefile (modules): Add BIG5HKSCS.
4210         (distribute): Add big5hkscs.c.
4211
4212 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
4213
4214         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
4215         inlines to match prototypes in mathcalls.h.
4216         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
4217         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
4218         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
4219         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4220
4221 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
4222
4223         * elf/elf.h (SHT_SUNW_move): Define.
4224
4225         * elf/elf.h: Add more Solaris compatiblity definitions.
4226
4227 2000-06-03  Andreas Jaeger  <aj@suse.de>
4228
4229         * sysdeps/powerpc/dl-start.S: Close open comment.
4230
4231 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
4232
4233         * inet/Versions: Fix typo in rresvport_af export.
4234
4235 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
4236
4237         * math/tgmath.h: Pretty print.
4238
4239 2000-06-02  Andreas Jaeger  <aj@suse.de>
4240
4241         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
4242         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4243
4244 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
4245
4246         * elf/rtld.c (process_envvars): Test for = after variable name.
4247
4248 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
4249
4250         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
4251         have extra call to __gmon_start__, use the pointer we already have.
4252
4253         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
4254         shifting.
4255
4256         * sysdeps/i386/elf/setjmp.S: Work around change is recent
4257         binutils.  gas now emits a jump through the PLT instead of a
4258         relative jump if the jump target is an exported symbol.
4259
4260 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
4261
4262         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
4263
4264 2000-05-31  Andreas Jaeger  <aj@suse.de>
4265
4266         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
4267         gregset_t.
4268
4269         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
4270         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4271
4272         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
4273         syscall.
4274         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4275
4276 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
4277
4278         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
4279
4280         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
4281         * locale/localeconv.c: Make function versioned (with same definition).
4282
4283         * elf/Makefile (modules-names): Strip before using it.
4284
4285 2000-05-30  Andreas Jaeger  <aj@suse.de>
4286
4287         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
4288         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
4289         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
4290         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
4291         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
4292         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
4293
4294 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
4295
4296         * Makefile: Add GNU make magic.
4297
4298         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
4299         Removed.
4300         * inet/rcmd.c: Remove __P.  Remove unused variables.
4301         (iruserfopen): Make first parameter const.
4302         (ruserok_sa): Return result of ruserok2_sa.
4303         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
4304         * inet/rexec.c: Remove unused variables.  Other small cleanups.
4305         * inet/ruserpass.c: Remove __P.  Remove unused variables.
4306         (ruserpass): Check results of memory allocation.
4307         * include/netdb.h: Add prototype for ruserpass.
4308
4309 2000-05-29  Andreas Jaeger  <aj@suse.de>
4310
4311         * elf/readlib.c (interpreters): Use LD_SO since this is supported
4312         for all platforms.
4313
4314 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
4315
4316         * inet/rcmd.c (rresvport_af): Use correct port number.
4317
4318 2000-05-26  Andreas Schwab  <schwab@suse.de>
4319
4320         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
4321         entries in all-sonames.
4322         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
4323         preserving the old name if different for compatibility.
4324
4325 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
4326
4327         * posix/Makefile (tests): Add tst-spawn.
4328         (tst-spawn-ARGS): New variable.
4329         * posix/tst-spawn.c: New file.
4330
4331         * posix/spawn_faction_addclose.c: Correctly account for new entry.
4332         * posix/spawn_faction_adddup2.c: Likewise.
4333         * posix/spawn_faction_addopen.c: Likewise.
4334         * posix/spawni.c: Correctly test for success of dup2 calls.
4335
4336         * posix/tst-preadwrite.c: Check success of malloc call.
4337
4338 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
4339
4340         * posix/Makefile (tests): Add tst-exec.
4341         (tst-exec-ARGS): New variable.
4342         * posix/tst-exec.c: New file.
4343
4344         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
4345
4346 2000-05-04  Andreas Jaeger  <aj@suse.de>
4347
4348         * string/string.h: Remove __strdup prototype, it's not needed in
4349         this file anymore.
4350
4351 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
4352
4353         * posix/Makefile (tests): Add tst-fork.
4354         * posix/tst-fork.c: New file.
4355
4356         * resolv/inet_pton.c: Loose __P.
4357
4358 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
4359
4360         * libio/libioP.h (_IO_CHECK_WIDE): Define.
4361         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
4362         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
4363         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
4364         _IO_CHECK_WIDE fails.
4365
4366 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
4367
4368         * po/da.po: New file.
4369
4370         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
4371         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
4372
4373         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
4374         (Other iconv Implementations): Fix typo.
4375         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
4376
4377 2000-05-27  Andreas Jaeger  <aj@suse.de>
4378
4379         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
4380         normal version now.
4381         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
4382         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
4383         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4384         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4385         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
4386         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
4387
4388         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
4389         endianness to decide how to pass arguments.
4390         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
4391
4392         * elf/vismain.c: Use test-skeleton interface.
4393         (TEST_FUNCTION): New macro.
4394         (do_test): Renamed from main.
4395
4396 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
4397
4398         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
4399         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
4400
4401         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
4402         handling of AI_V4MAPPED flag.
4403
4404         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
4405         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
4406         perform lookup for T_A type and tell getanswer_r to convert the
4407         result with new argument.
4408         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
4409         Don't convert addresses from IPv4 to IPv6 here.
4410         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
4411         IPv6 is wanted.  Allow qtype and type from reply to disagree if
4412         IPv4 mapping has to be done.  Perform mappings if required by the
4413         caller and not if RES_USE_INET6 bit in _res.options is set.
4414         Add several __builtin_expect.
4415
4416 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
4417
4418         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
4419
4420         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
4421         NULL.
4422
4423         * posix/tst-preadwrite.c: Allow parallel execution of
4424         tst-preadwrite and tst-preadwrite64.
4425
4426         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
4427         * posix/tst-truncate.c: New file.
4428         * posix/tst-truncate64.c: New file.
4429
4430         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
4431         was switched.
4432
4433         * posix/Makefile (tests): Add tst-preadwrite64.
4434         * posix/tst-preadwrite.c: Alloc file being used also for testing
4435         pread64 and pwrite64.
4436         * posix/tst-preadwrite64.c: New file.
4437
4438 2000-05-26  Andreas Jaeger  <aj@suse.de>
4439
4440         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
4441         of arguments dependend on endianness.
4442         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4443
4444         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
4445         normal version now.
4446         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
4447         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
4448         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4449         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4450
4451         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
4452         endianness to check how to pass argument.
4453         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
4454
4455         * elf/ldconfig.h: Update parameter list for process_elf_file.
4456
4457         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
4458         Add parameter file_length and pass it ot process_elf*file.
4459
4460         * sysdeps/generic/readelflib.c (check_ptr): New.
4461         (process_elf_file): Use check_ptr to check all accesses to the
4462         mmapped file. Add parameter file_length.
4463
4464         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
4465         library names.
4466
4467         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
4468         Closes PR libc/1573, reported by Bradley White
4469         <bww@laurelnetworks.com>.
4470
4471 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
4472
4473         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
4474         __FAST_MATH__ is defined.
4475
4476 2000-05-22  Andreas Jaeger  <aj@suse.de>
4477
4478         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
4479         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
4480
4481         * manual/math.texi (FP Function Optimizations): Document gcc
4482         -ffast-math behaviour with mathinlines.
4483
4484         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
4485         functions unless -ffast-math is given to gcc.
4486
4487 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
4488
4489         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
4490         __sincosl): Guard with __USE_GNU.
4491
4492 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
4493
4494         * csu/Makefile (routines): Add check_fds.
4495         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
4496         binaries.  Add various __builtin_expect.
4497         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
4498         * sysdeps/generic/check_fds.c: ...here.  New file.
4499
4500         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
4501         binaries if file /etc/suid-debug is available.
4502
4503         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
4504         and wcseqorder members.
4505         (struct locale_collate_t): Likewise.
4506         (collate_finish): Assign collation sequence value to each character.
4507         Create tables for output.
4508         (collate_output): Write out tables with collation sequence information.
4509         * locale/C-collate.c: Provide C locale data for collation sequence
4510         table.
4511         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
4512         _NL_COLLATE_COLLSEQWC.
4513         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
4514         _NL_COLLATE_COLLSEQWC.
4515         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
4516         include fnmatch_loop.c.
4517         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
4518         character is matched by range expression.  Use collation sequence
4519         table.  Outside glibc fall back on simple character value comparison.
4520
4521 2000-05-24  Andreas Jaeger  <aj@suse.de>
4522
4523         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
4524         words.
4525
4526         * intl/Makefile: Run gettext-test only if msgfmt is available.
4527
4528         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
4529         Define it for newer kernels.
4530
4531 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
4532
4533         * elf/dl-sym.c: Minor cleanups.
4534
4535         * configure.in: Add test for .protected.
4536         * config.make.in: Add have-protected variable.
4537         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
4538         (tests-vis-yes): Add vismain.
4539         (modules-names): Add $(modules-vis-$(have-protected)).
4540         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
4541         Add rules to generate and run vismain.
4542         * elf/vismain.c: New file.
4543         * elf/vismod1.c: New file.
4544         * elf/vismod2.c: New file.
4545         * elf/vismod3.c: New file.
4546
4547 2000-05-23  Andreas Jaeger  <aj@suse.de>
4548
4549         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
4550
4551         * manual/search.texi (Array Sort Function): Document that qsort is
4552         not necessarily in-place.
4553
4554         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
4555         Closes PR libc/1731.
4556
4557         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
4558         * dirent/scandir64.c: Likewise.
4559         * pwd/getpw.c: Likewise.
4560         * stdlib/bsearch.c (bsearch): Likewise.
4561         * stdlib/tst-strtoll.c: Likewise.
4562         * localedata/collate-test.c: Likewise.
4563         * localedata/xfrm-test.c: Likewise.
4564         * posix/bsd-getpgrp.c: Likewise.
4565         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
4566         * sysdeps/generic/bits/siginfo.h: Likewise.
4567         * sysdeps/generic/bits/sockaddr.h: Likewise.
4568         * sysdeps/generic/sys/swap.h: Likewise.
4569         * sysdeps/generic/sys/sysinfo.h: Likewise.
4570         * sysdeps/generic/vfork.c: Likewise.
4571         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
4572         * sysdeps/mach/hurd/fdopen.c: Likewise.
4573         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
4574         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4575         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4576         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4577         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4578         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
4579         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
4580
4581         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
4582         * shadow/lckpwdf.c: Likewise.
4583         * stdlib/tst-strtol.c: Likewise.
4584         * sysdeps/generic/tcsetattr.c: Likewise.
4585         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4586         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4587
4588 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
4589
4590         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
4591         free it and set to (void *) -1.
4592
4593 2000-05-22  Jakub Jelinek <jakub@redhat.com>
4594
4595         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
4596         not the second character in the range.
4597         * stdio-common/tstscanf.c (main): Add testcase for the above.
4598         Reported by jik@kamens.brookline.ma.us.
4599
4600 2000-05-21  H.J. Lu  <hjl@gnu.org>
4601
4602         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
4603         with noexec and noplt parameter.
4604         (do_lookup): Likewise.
4605
4606         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
4607         do_lookup.  Support STV_PROTECTED.
4608         (_dl_lookup_symbol_skip): Likewise.
4609         (_dl_lookup_versioned_symbol): Likewise.
4610         (_dl_lookup_versioned_symbol_skip): Likewise.
4611
4612         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
4613
4614         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
4615
4616 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
4617
4618         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
4619         * sysdeps/i386/bits/huge_val.h: Likewise.
4620         * sysdeps/ieee754/bits/huge_val.h: Likewise.
4621         * sysdeps/m68k/bits/huge_val.h: Likewise.
4622         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
4623         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
4624
4625 2000-05-22  Andreas Jaeger  <aj@suse.de>
4626
4627         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
4628         change in iconv.h.
4629
4630 2000-05-19  Andreas Jaeger  <aj@suse.de>
4631
4632         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
4633         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
4634         breaks compilation without linuxthreads.
4635
4636 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
4637
4638         * sysdeps/ia64/memccpy.S: New file.
4639         * sysdeps/ia64/memchr.S: New file.
4640         * sysdeps/ia64/memcmp.S: New file.
4641         * sysdeps/ia64/memcpy.S: New file.
4642         * sysdeps/ia64/memmove.S: New file.
4643         * sysdeps/ia64/memset.S: New file.
4644         * sysdeps/ia64/strcat.S: New file.
4645         * sysdeps/ia64/strchr.S: New file.
4646         * sysdeps/ia64/strcmp.S: New file.
4647         * sysdeps/ia64/strcpy.S: New file.
4648         * sysdeps/ia64/strlen.S: New file.
4649         * sysdeps/ia64/strncmp.S: New file.
4650         * sysdeps/ia64/strncpy.S: New file.
4651         * sysdeps/ia64/softpipe.h: New file.
4652         Patches by Dan Pop <Dan.Pop@cern.ch>.
4653
4654         * manual/memory.texi: Document memory handling functions (mlock,
4655         munlock, mlockall, munlockall, brk, and sbrk)
4656         * manual/time.texi: Document timespec and friends.
4657         * manual/conf.texi: Fix references.
4658         * manual/ctype.texi: Likewise.
4659         * manual/errno.texi: Likewise.
4660         * manual/intro.texi: Likewise.
4661         * manual/locale.texi: Likewise.
4662         * manual/sysinfo.texi: Likewise.
4663         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4664
4665 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
4666
4667         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
4668         * sysdeps/ia64/dl-lookupcfg.h: ...here.
4669
4670 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
4671
4672         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
4673         dxfer_direction.
4674
4675 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
4676
4677         * locale/locale.h (struct lconv): Add new elements from ISO C99.
4678         * locale/localeconv.c: Initialize new elements from ISO C99.
4679         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
4680         new standard elements.
4681         * locale/categories.def: Adjust accordingly.
4682
4683         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
4684         * iconv/iconv.c: Likewise.
4685         * conform/data/iconv.h-data: Likewise.
4686         * iconv/iconv_prog.c (process_block): Remove const from second
4687         parameter.
4688         (main): Remove const from addr definition.
4689         * manual/charset.texi (Generic Conversion Interface): Remove from
4690         inbuf parameter of iconv.
4691
4692         * intl/dcigettext.c: Fix typo in comment.
4693
4694 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
4695
4696         * resolv/res_libc.c (_res): Initialize _sock to -1.
4697
4698 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
4699
4700         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
4701         (fopencookie@@GLIBC_2.2): New.
4702         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
4703         (fopencookie@GLIBC_2.0): New.
4704         * libio/Versions: Add fopencookie to GLIBC_2.2.
4705
4706 2000-05-18  Andreas Jaeger  <aj@suse.de>
4707
4708         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
4709         Closes PR libc/1731.
4710
4711         * manual/arith.texi (Parsing of Integers): Fix typo.
4712         Closes PR libc/1744, reported by blp@gnu.org.
4713
4714 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
4715
4716         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
4717         __extension__ to hexadecimal floating constant notation.
4718         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
4719         Likewise.
4720         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
4721         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
4722         Likewise.
4723         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
4724         HUGE_VALL): Likewise.
4725         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
4726         HUGE_VALL): Likewise.
4727         (HUGE_VALL): Set to HUGE_VAL on sparc32.
4728
4729 2000-05-17  Andreas Jaeger  <aj@suse.de>
4730
4731         * string/envz.h: Add pure attributes if possible.
4732
4733         * string/argz.h: argz_count is a pure function.
4734
4735         * string/strings.h: Add pure and const attributes if possible.
4736
4737         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
4738         possibly searching through the whole memory.
4739         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
4740
4741 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
4742
4743         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
4744         not yet defined.
4745         (_dl_cache_check_flags): Likewise.
4746         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
4747         dl-cache.h.
4748
4749 2000-05-17  Andreas Jaeger  <aj@suse.de>
4750
4751         * manual/creature.texi (Feature Test Macros): Remove paragraph
4752         since the description is wrong.
4753         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
4754
4755         * scripts/config.sub: New version.
4756         * scripts/config.guess: Likewise.
4757         * manual/texinfo.tex: Likewise.
4758
4759         * time/test_time.args: Removed.
4760         * time/Makefile (test_time-ARGS): Added contents here instead.
4761
4762         * posix/tstgetopt.args: Removed.
4763         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
4764
4765         * Rules: Allow arguments for test files to be specified in
4766         Makefile with testname-ARGS; remove rules with .args in it.
4767
4768         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
4769         remove old bogus rule for opendir-tst1.args.
4770
4771         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
4772
4773         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
4774         into objdir.  This allows a readonly sourcetree.
4775         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
4776
4777 2000-05-16  Andreas Jaeger  <aj@suse.de>,
4778             David Huggins-Daines <dhd@linuxcare.com>
4779
4780         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
4781         cache_data in case of only new cache format correctly.
4782
4783         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
4784         cache_file_new.
4785
4786         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
4787         struct cache_file_new.
4788
4789         * elf/cache.c (save_cache): Fix str_offset if only new cache is
4790         present.
4791
4792         * elf/cache.c (save_cache): Align struct new_file_cache.
4793         (print_cache): Likewise.
4794
4795 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
4796
4797         * elf/soinit.c (__libc_global_ctors): Move
4798         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
4799         * resolv/resolv.h (__res_state): Added __attribute__((const)).
4800         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
4801         variable, don't define it to __res_state call.
4802
4803 2000-05-13  Andreas Jaeger  <aj@suse.de>
4804
4805         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
4806         Linux 2.3.99pre7.
4807         (AF_PPPOX): Likewise.
4808         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
4809         (AF_PPPOX): Likewise.
4810
4811 2000-05-12  Andreas Jaeger  <aj@suse.de>
4812
4813         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
4814         Reported by tmoestl@gmx.net, closes PR libc/1732.
4815
4816 2000-05-11  Jan Hubicka  <jh@suse.cz>
4817
4818         * misc/sys/cdefs.h: Add support for pure attribute.
4819
4820         * include/string.h: Add __attribute_pure__ to various functions.
4821         * string/string.h: Likewise.
4822
4823 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
4824
4825         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
4826         argument.
4827         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
4828         R_SPARC_UA64.
4829         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
4830
4831 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
4832
4833         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
4834         at proper place.  Compute the high nibble correctly.
4835
4836 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
4837
4838         * elf/ldconfig.c: Include elf.h.
4839
4840         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
4841         (_dl_vsym): Likewise.
4842         Reported by Owen Taylor <otaylor@redhat.com>.
4843
4844         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
4845         always.
4846
4847 2000-05-08  Andreas Jaeger  <aj@suse.de>
4848
4849         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
4850
4851         * intl/bindtextdom.c (set_binding_values): Add prototype.
4852
4853 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
4854
4855         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
4856         call to elf_machine_fixup_plt.
4857         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
4858         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4859
4860 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
4861
4862         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
4863         they are not dlclose'd from underneath us.
4864
4865 2000-05-08  Andreas Schwab  <schwab@suse.de>
4866
4867         * posix/execle.c: Fix size parameter of memcpy.
4868
4869 2000-05-08  Andreas Schwab  <schwab@suse.de>
4870
4871         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
4872         getpagesize syscall if available.
4873
4874 2000-05-08  Andreas Jaeger  <aj@suse.de>
4875
4876         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
4877         set errno.
4878
4879 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
4880
4881         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
4882         sizeof(struct link_map *) chunks, not in bytes.
4883
4884 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
4885
4886         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
4887         only needed for locale.
4888         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
4889         It's only needed for catgets.
4890         Patches by Greg McGary <gkm@eng.ascend.com>.
4891
4892 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
4893
4894         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
4895         Remove duplicate <errno.h> include.  Remove inclusion of
4896         <libintl.h> and "nsswitch.h".
4897         (set_cloexec_flag): New function, broken out of dbopen.
4898         (dbopen): Changed return type to `enum
4899         nss_status'.  Mostly rewritten to make sure that we do not report
4900         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
4901         (internal_setent): Change return type to nss_status.
4902         Document, and make sure that the function
4903         behaves accordingly.  Make dynamically loading the database
4904         library really thread-safe and return NSS_STATUS_UNAVAIL if it
4905         failed.
4906         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
4907         unecessary casts.
4908         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
4909         documentation.
4910         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
4911         c_get function member.
4912         * nss/nss_db/nss_db.h: Add and tweak some comments.
4913         (DBT): Move typedef before NSS_DBC typedef.
4914         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
4915
4916 2000-05-07  H.J. Lu  <hjl@gnu.org>
4917
4918         * csu/initfini.c: Moved to ....
4919         * sysdeps/generic/initfini.c: ...here.
4920
4921         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
4922
4923 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
4924
4925         * manual/resource.texi: Document POSIX scheduling functions.
4926         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4927
4928         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
4929         reading anything.  Reported by Andries.Brouwer@cwi.nl.
4930
4931         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
4932         for x since promotion in comparison might leads to unexpected
4933         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
4934
4935         * iconv/Makefile (tests): Add tst-iconv1.
4936         * iconv/tst-iconv1.c: New file.
4937         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
4938         empty input buffer over full output buffer.
4939         (ucs4_internal_loop): Likewise.
4940         (ucs4_internal_loop_unaligned): Likewise.
4941         (internal_ucs4le_loop): Likewise.
4942         (internal_ucs4le_loop_unaligned): Likewise.
4943         (ucs4le_internal_loop): Likewise.
4944         (ucs4le_internal_loop_unaligned): Likewise.
4945         Reported by yaoz@nih.gov.
4946
4947 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
4948
4949         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
4950         returned != __GCONV_OK, there is nothing to clean up.
4951
4952 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
4953
4954         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
4955         OUTPUT_CHARSET environment variables.
4956
4957 2000-05-06  Andreas Jaeger  <aj@suse.de>
4958
4959         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
4960         (struct cache_file_new): New.
4961         (struct file_entry): New (moved from cache.c).
4962         (struct cache_file): New (moved from cache.c).
4963
4964         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
4965         from _dl_load_cache_lookup.
4966         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
4967         the different cache formats.
4968         New variable cache_new for new format.
4969
4970         * elf/ldconfig.h: Change according to changes in cache.c and
4971         ldconfig.c; remove cache_libcmp; add opt_format.
4972
4973         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
4974         stuff that's defined in those headers.
4975         Add hwcap to struct lib_entry.
4976         (opt_format): New variable to select cache format.
4977         (options): Add format parameter.
4978         (is_hwcap): New function.
4979         (path_hwcap): New function.
4980         (parse_opt): Handle new format parameter.
4981         (search_dir): Handle hwcap, search also subdirectories with hwcap.
4982
4983         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
4984         ldconfig is part of glibc.
4985         Include dl-cache.h and remove stuff that's defined there.
4986         (struct cache_entry): Add new member hwcap.
4987         (print_entry): Print hwcap, cleanup a bit.
4988         (print_cache): Print new and old formats.
4989         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
4990         (save_cache): Save new and old formats.
4991         (add_to_cache): Handle hwcap.
4992
4993         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
4994         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
4995         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
4996         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
4997         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
4998         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
4999
5000 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
5001
5002         * intl/dcigettext.c (alignof): New macro.
5003         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
5004         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
5005         freemem_size to 0.
5006
5007 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
5008
5009         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
5010         return value.
5011
5012 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
5013
5014         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
5015         (mempcpy): Correct typo is parameter list.
5016
5017 2000-05-06  Andreas Jaeger  <aj@suse.de>
5018
5019         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
5020         functions unless -ffast-math is given to gcc.
5021
5022 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
5023
5024         * po/ko.po: Update from translation team.
5025
5026 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
5027
5028         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
5029         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
5030         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
5031         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
5032         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
5033         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
5034
5035         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
5036         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
5037         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
5038
5039         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
5040         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
5041         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
5042         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
5043
5044         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
5045         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
5046
5047 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5048
5049         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
5050         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
5051
5052         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
5053         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
5054
5055         * sysdeps/ia64/Implies: New file.
5056         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
5057         * sysdeps/ia64/Makefile: New file.
5058         * sysdeps/ia64/gmp-mparam.h: New file,
5059
5060         * sysdeps/ia64/elf/start.S: New file.
5061
5062         * sysdeps/ia64/bits/fenv.h: New file.
5063
5064 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
5065
5066         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
5067
5068 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
5069
5070         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
5071         ia64 has 64 bit .hash entries just as the Alpha.
5072
5073 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
5074
5075         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
5076
5077 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
5078
5079         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
5080         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
5081         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
5082         * sysdeps/ia64/fpu/fegetenv.c: New file.
5083         * sysdeps/ia64/fpu/fegetexcept.c: New file.
5084         * sysdeps/ia64/fpu/fegetround.c: New file.
5085         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
5086         * sysdeps/ia64/fpu/fesetenv.c: New file.
5087         * sysdeps/ia64/fpu/fesetround.c: New file.
5088         * sysdeps/ia64/fpu/feupdateenv.c: New file.
5089         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
5090         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
5091         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
5092         * sysdeps/ia64/fpu/ftestexcept.c: New file.
5093
5094 2000-05-05  Andreas Jaeger  <aj@suse.de>
5095
5096         * misc/tst-tsearch.c (main): Correct type for initstate argument.
5097
5098         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
5099         (_dl_string_hwcap): New, does nothing.
5100
5101         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
5102         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5103         (_dl_string_hwcap): New function, converts from string to hwcap
5104         encoding.
5105         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
5106         (_DL_HWCAP_COUNT): New.
5107         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5108         (_dl_string_hwcap): New function, converts from string to hwcap
5109         encoding.
5110         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
5111         (_DL_HWCAP_COUNT): New.
5112         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5113         (_dl_string_hwcap): New function, converts from string to hwcap
5114         encoding.
5115
5116 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
5117
5118         * elf/Makefile (distribute): Add dl-lookupcfg.h.
5119         * sysdeps/ia64/Dist: New file.
5120
5121         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
5122         parameter to mprotect and for variable assignments.
5123
5124 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5125
5126         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
5127         validity of map before dereferencing it.
5128
5129         * elf/dl-reloc.c (RESOLVE_MAP): Define.
5130
5131 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
5132
5133         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
5134         lookup to the arguments to elf_machine_fixup_plt().
5135
5136         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
5137         of the symbol being resolved to input argument list and make the
5138         function return the pointer to the reloc.
5139
5140         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
5141         return valuie to lookup_t and return the value.
5142         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
5143         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
5144         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
5145         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
5146         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
5147         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
5148
5149         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
5150         Make it an inline function returning value after calling
5151         __elf_machine_fixup_plt().
5152
5153         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
5154         symbol address.
5155
5156         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
5157         obtain the symbol address.
5158
5159         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
5160         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
5161
5162         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
5163         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
5164         inline on non ia64.
5165
5166 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
5167
5168         * elf/dl-runtime.c (fixup): Use the portable macros to get the
5169         symbol address of an object.
5170
5171         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
5172         the symbol address of an object.
5173
5174         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
5175         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
5176         (_dl_lookup_symbol_skip): Likewise.
5177         (_dl_lookup_versioned_symbol): Likewise.
5178         (_dl_lookup_versioned_symbol_skip): Likewise.
5179
5180 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
5181
5182         * elf/rtld.c (_dl_start): Get the function pointer return address
5183         via _dl_start_address for architectures that need a function
5184         pointer descriptor rather than just a pointer (ia64).
5185
5186         * sysdeps/generic/dl-lookupcfg.h: New file.
5187         * sysdeps/ia64/dl-lookupcfg.h: New file.
5188         * sysdeps/ia64/dl-machine.h: New file.
5189         * sysdeps/ia64/dl-symaddr.c: New file.
5190         * sysdeps/ia64/dl-fptr.c: New file.
5191
5192         * elf/elf.h: Add IA-64 specific definitions.
5193
5194 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
5195
5196         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
5197         end of enum.
5198
5199 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
5200
5201         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
5202         happy.
5203
5204 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
5205
5206         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
5207         symbol.  Call _dl_init rather than the old way.
5208
5209 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
5210
5211         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
5212         test for pointer in range of DSO address space.
5213
5214 2000-05-04  Andreas Jaeger  <aj@suse.de>
5215
5216         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
5217
5218 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
5219
5220         * locale/findlocale.c (_nl_find_locale): Add new parameter to
5221         calls of _nl_make_l10nflist.
5222
5223         * libio/stdio.h: Make fseeko and ftello prototypes available is
5224         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
5225
5226         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
5227         real unsetenv implementation from 1999-07-29 [PR libc/1714].
5228
5229 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
5230
5231         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
5232         before calling tfind.
5233
5234 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
5235
5236         * resolv/resolv.h (res_querydomain): Remove redefinition to
5237         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
5238
5239 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
5240
5241         * po/gl.po: Update from translation team.
5242
5243         * manual/intro.texi (Program Basics): Change section title.
5244         * manual/process.texi: Fix reference.
5245         (Executing a File): Add reference exec in other section.
5246         * manual/signal.texi: Fix reference.
5247         * manual/startup.texi: Document syscall function.
5248         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
5249
5250 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5251
5252         * intl/libintl.h (bind_textdomain_codeset): New declaration.
5253         * intl/bindtextdom.c (set_binding_values): New function.
5254         (bindtextdomain): Call it.
5255         (bind_textdomain_codeset): New function.
5256         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
5257         (free_mem): Free each binding's codeset.
5258         * intl/gettextP.h (struct binding): Add codeset field.
5259         (_nl_find_domain): Add domainbinding argument.
5260         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
5261         Pass it to _nl_make_l10nflist.
5262         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
5263         (_nl_make_l10nflist): Add domainbinding argument.
5264         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
5265         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
5266         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
5267         locale_charset().
5268         * manual/message.texi: New node "Charset conversion in gettext".
5269
5270 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
5271
5272         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
5273         appropriate.  Handle possible __read error.
5274
5275 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5276
5277         * intl/gettextP.h (__builtin_expect): Define as empty if not a
5278         compiler builtin.
5279         * intl/loadinfo.h (__builtin_expect): Likewise.
5280         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
5281         __builtin_expect where appropriate.
5282         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5283         * intl/localealias.c (extend_alias_table): Return an error indicator.
5284         (read_alias_file): Bail out if extend_alias_table fails.
5285
5286 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5287
5288         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
5289         * intl/localealias.c: Likewise.
5290
5291 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
5292
5293         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
5294         Initialize domain->plural and domain->nplurals even if there is no
5295         nullentry.
5296
5297 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
5298
5299         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
5300         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
5301         In case of failure, goto converted.
5302
5303 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
5304
5305         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
5306         * iconv/gconv_int.h (norm_add_slashes): Move to here.
5307         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
5308         __gconv_open.
5309
5310 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5311
5312         * intl/dcigettext.c (transcmp): Compare the domains as well.
5313         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
5314         not before.
5315         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
5316         <errno.h>.
5317
5318 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
5319
5320         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
5321         Reported by Bruno Haible.
5322
5323 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5324
5325         * manual/arith.texi: Remove @w from @itemize.
5326
5327 2000-05-02  Andreas Jaeger  <aj@suse.de>
5328
5329         * conform/data/tar.h-data: Add some checks for specific values.
5330
5331         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
5332         and RAND_MAX.
5333
5334         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
5335         FOPEN_MAX.
5336
5337         * conform/data/netinet/in.h-data: Add exact checks for the values
5338         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
5339
5340         * conform/data/float.h-data: Add some minimal values.
5341
5342         * conform/conformtest.pl: Test for macros with string constants,
5343         check for minimum and maximum values.
5344         Add limits.h to headers.
5345
5346         * conform/data/cpio.h-data: Test for value of MAGIC.
5347
5348         * conform/data/limits.h-data: New file.
5349
5350 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
5351
5352         * math/Makefile (headers): Add bits/fenvinline.h.
5353
5354 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
5355
5356         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
5357         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
5358
5359         * posix/Versions: Change posix_spawnattr_getdefault and
5360         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
5361         and posix_spawnattr_setsigdefault respectively.
5362         * posix/spawn.h: Likewise.
5363         * posix/spawnattr_getdefault.h: Likewise.
5364         * posix/spawnattr_setdefault.h: Likewise.
5365         * conform/data/spawn.h-data: Likewise.
5366
5367 2000-05-01  Andreas Jaeger  <aj@suse.de>
5368
5369         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
5370
5371 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
5372
5373         * manual/sysinfo.texi: Document getdomainname, setdomainname
5374         and sysctl.
5375         * manual/string.texi: Fix typo.
5376         * manual/terminal.texi: Document gtty and stty.
5377         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5378
5379 2000-04-30  Andreas Jaeger  <aj@suse.de>
5380
5381         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
5382         accordance with Austin Draft.
5383
5384 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
5385
5386         * catgets/gencat.c (read_input_file): Use isblank and not isspace
5387         to recognize second character in comment line.
5388
5389         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
5390         ENOBUFS if we are out of memory.
5391
5392         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
5393         available if __USE_XOPEN2K.
5394         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
5395         * sysdeps/unix/common/bits/fcntl.h: Likewise.
5396         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5397         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5398         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5399         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5400         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
5401         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
5402
5403 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
5404
5405         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
5406         Recognize option -s, -c, and -l.
5407
5408 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
5409
5410         * nscd/nscd.c: Start new session for nscd, drop privilegs
5411         to configured user if requested and no -S parameter are used.
5412         * nscd/nscd.conf: Add new option "server-user".
5413         * nscd/nscd_conf.c: Add support for new "server-user" option.
5414         * nscd/nscd.h: Add declaration for server_user variable.
5415         Based on patch by Chris Wing <wingc@engin.umich.edu>
5416
5417 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
5418
5419         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
5420         that changing the __restore and __restore_rt signal return code
5421         will break GDB.
5422
5423 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
5424
5425         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
5426         <sys/user.h>.
5427
5428 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
5429
5430         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
5431
5432 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
5433
5434         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
5435         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
5436         arpa/inet.h.
5437         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
5438         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
5439         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
5440         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
5441         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
5442         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
5443         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
5444         posix_fallocate, and posix_madvise.
5445         * conform/data/netdb.h-data: New file.
5446         * conform/data/pthread.h-data: Add pthread_barrier_t,
5447         pthread_barrierattr_t, pthread_barrier_destroy,
5448         pthread_barrier_init, pthread_barrier_wait,
5449         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
5450         pthread_barrierattr_init, pthread_barrierattr_setpshared,
5451         pthread_condattr_getclock, pthread_condattr_setclock,
5452         pthread_getcpuclockid, pthread_mutex_timedlock,
5453         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
5454         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
5455         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
5456         * conform/data/sched.h-data: Add sched_ss_low_priority,
5457         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
5458         SCHED_SPORADIC.
5459         * conform/data/semaphore.h-data: Add sem_timedwait.
5460         * conform/data/signal.h-data: Add SIGIO.
5461         * conform/data/spawn.h-data: New file.
5462         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
5463         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
5464         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
5465         Fix typo in gmtime_r definition.
5466         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
5467         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
5468         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
5469         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
5470         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
5471         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
5472         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
5473         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
5474         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
5475         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
5476         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
5477         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
5478         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
5479         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
5480         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
5481         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
5482         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
5483         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
5484         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
5485         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
5486         typo in off_t definition.
5487         * conform/data/net/if.h-data: New file.
5488         * conform/data/netinet/in.h-data: New file.
5489         * conform/data/netinet/tcp.h-data: New file.
5490         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
5491         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
5492         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
5493         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
5494         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
5495         and posix_typed_mem_open.
5496         * conform/data/sys/socket.h-data: New file.
5497         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
5498         * conform/data/sys/types.h-data: Add pthread_barrier_t,
5499         pthread_barrierattr_t, and pthread_spinlock_t.
5500         * conform/data/sys/un.h-data: New file.
5501         * conform/data/sys/utsname.h-data: New file.
5502
5503         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
5504         parameter.
5505         * inet/gethstbyad.c (gethostbyname): Likewise.
5506         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
5507         * inet/getipnodebyad.c (getipnodebyad): Likewise.
5508         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
5509         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
5510         Likewise.
5511         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
5512         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
5513         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
5514         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
5515         * resolv/gethnamaddr.c (gethostbyname): Likewise.
5516         * resolv/netdb.h (struct hostent): Fix type of h_length member.
5517         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
5518         and second parameter.
5519
5520         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
5521         == NULL.
5522
5523 2000-04-29  Andreas Jaeger  <aj@suse.de>
5524
5525         * conform/data/arpa/inet.h-data: New file.
5526
5527 2000-04-28  Geoff Clare <gwc@unisoft.com>
5528
5529         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
5530         path passed to ftw() or nftw() is an empty string.
5531         Closes PR libc/1710.
5532
5533 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
5534
5535         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
5536         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
5537         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
5538         * localedata/tst-mbswcs4.c: New file.
5539         * localedata/tst-mbswcs5.c: New file.
5540
5541         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
5542         == NULL.  Little optimization.
5543
5544         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
5545         DT_PREINIT_ARRAYSZ).
5546         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
5547
5548         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
5549         overflows in conversion from ASCII.
5550
5551 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
5552
5553         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
5554         * Makerules (full_config_sysdirs): Likewise.
5555         * MakeTAGS (full_config_sysdirs): Likewise.
5556
5557 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
5558
5559         * .cvsignore: Remove linuxthreads.
5560         * po/.cvsignore: Remove *.pot.
5561         * posix/glob/.cvsignore: Removed.
5562         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
5563
5564 2000-04-25  Andreas Jaeger  <aj@suse.de>
5565
5566         * conform/Makefile (distribute): Also distribute contents of
5567         subdirectories.
5568
5569         * Makerules (no_deps): Remove abi-versions.h.
5570
5571         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
5572
5573 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
5574
5575         * sysdeps/sparc/sparc64/elf/Dist: Remove.
5576         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
5577         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
5578         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
5579         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
5580         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
5581         objects.
5582
5583 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
5584
5585         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
5586
5587 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
5588
5589         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
5590         * intl/l10nflist.c: Likewise.
5591
5592 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
5593
5594         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
5595         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
5596         * intl/textdomain.c [!_LIBC]: Likewise.
5597         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
5598         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
5599         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
5600         syntax error.
5601
5602 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
5603
5604         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
5605         character set conversion also in the case the translation was found
5606         after a hash collision or through binary search.  Store the maximum
5607         index together with the converted message.  Use iconv() when available.
5608         In case of out of memory during conversion, return the unconverted
5609         translated string, not NULL.
5610
5611 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
5612
5613         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
5614         to avoid name clashes with the ia32 linker.
5615
5616 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
5617
5618         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
5619         handling.
5620
5621 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
5622
5623         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
5624         strtoumax, strfry, and memfrob.
5625         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
5626         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5627
5628         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
5629         if this function is available.
5630
5631         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
5632         all values.
5633
5634 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
5635
5636         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
5637
5638 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
5639
5640         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
5641         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
5642         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
5643         * localedata/tst-mbswcs3.c: New file.
5644
5645 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
5646
5647         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
5648         characters.  Don't handle incomplete characters as errors.
5649         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
5650         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
5651         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
5652         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
5653         * localedata/tst-mbswcs2.c: New file.
5654
5655         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
5656         stored character in state in UNPACK_BYTES macro.
5657         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
5658         test for available characters, handle result of BODY code correctly.
5659         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
5660         (distribute): Add tst-mbswcs.sh.
5661         Add rule to run tst-mbswcs.sh.
5662         * localedata/tst-mbswcs.sh: New file.
5663         * localedata/tst-mbswcs1.c: New file.
5664
5665 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
5666
5667         * nis/nis_callback.c (__nis_create_callback): Do failed memory
5668         allocation fixups centrally, fix __builtin_expect call, return NULL
5669         on failure, not NIS_NOMEMORY.
5670
5671 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
5672
5673         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
5674
5675         * intl/loadinfo.h (internal_function): Define if not already defined.
5676
5677 2000-04-27  Andreas Jaeger  <aj@suse.de>
5678
5679         * intl/libintl.h: Fix typo, reported by Bruno Haible
5680         <haible@clisp.cons.org>.
5681
5682 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
5683
5684         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
5685         setting the state to GMON_PROF_BUSY.
5686
5687 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
5688
5689         * elf/dl-profile.c (_dl_start_profile): define all variables which
5690         do not have to be global as local variables.
5691
5692         * nis/nis_callback.c (__nis_create_callback): Partially undo last
5693         patch.  Keep needed tests for failed memory allocation.
5694
5695         * elf/dl-reloc.c (_dl_relocate_object): Add one more
5696         __builtin_expect saying that we don't normally expect to profile.
5697
5698         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
5699         __builtin_expect where desirable.
5700
5701 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
5702
5703         * manual/Makefile (chapters): Add syslog.
5704         * manual/syslog.texi: New file.
5705         * manual/math.texi: Fix references.
5706         * manual/terminal.texi: Likewise.
5707         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5708
5709 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
5710
5711         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
5712         stdlib.h was not included or __USE_XOPEN not defined.
5713
5714 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
5715
5716         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
5717         Patch by Zack Weinberg <zack@wolery.cumb.org>.
5718
5719 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
5720
5721         * manual/examples/subopt.c (mount_opts): Add missing terminating
5722         entry.
5723         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
5724
5725         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
5726         * libio/ftello.c: Likewise.
5727         * libio/ftello64.c: Likewise.
5728         * libio/ioftell.c: Likewise.
5729         * sysdeps/generic/memrchr.c: Likewise.
5730         * sysdeps/posix/libc_fatal.c: Likewise.
5731         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5732         * misc/fstab.c: Include <string.h> for strcmp prototype.
5733         * sysdeps/generic/ldsodefs.h: Likewise.
5734         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5735         Patch by Kurt Roeckx <Q@ping.be>.
5736
5737         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
5738         Remove db-open.  Change all uses.
5739         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
5740
5741 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
5742
5743         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
5744         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
5745         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
5746         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
5747         with .set noat/at to shut up warnings.
5748         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
5749         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
5750         compilation if __NR_pciconfig_iobase is not defined.
5751         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
5752         Add alias.
5753
5754 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
5755
5756         * manual/sysinfo.texi: Fix typo.
5757         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
5758         Replace "high precision time" with "high accuracy clock".
5759         Fix language.
5760         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
5761
5762         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
5763         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
5764         instead of malloc.
5765         * nis/nis_subr.c: Use __builtin_expect.
5766         * nis/ypclnt.c: Likewise.
5767         * nis/nis_getservlist.c: Likewise.
5768         * nis/nis_creategroup.c: Likewise.
5769
5770         * nis/nis_callback.c (__nis_create_callback): Check result of
5771         memory allocation.  Fix memory leaks.  Use __builtin_expect.
5772         (__nis_destroy_callback): Fix memory leaks.
5773
5774 2000-04-21  Andreas Jaeger  <aj@suse.de>
5775
5776         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
5777         * sysdeps/mips/mips64/add_n.S: Likewise.
5778         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5779         * sysdeps/mips/mips64/lshift.S: Likewise.
5780         * sysdeps/mips/mips64/mul_1.S: Likewise.
5781         * sysdeps/mips/mips64/rshift.S: Likewise.
5782         * sysdeps/mips/mips64/setjmp.S: Likewise.
5783         * sysdeps/mips/mips64/sub_n.S: Likewise.
5784         * sysdeps/mips/mips64/submul_1.S: Likewise
5785         * sysdeps/unix/mips/sysdep.S: Likewise.
5786
5787         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
5788         and update comment.  The strtab from _dl_relocate_object can be
5789         used.
5790
5791 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
5792
5793         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
5794         * iconv/iconv_close.c (iconv_close): Likewise.
5795         * iconv/iconv_open.c (iconv_open): Likewise.
5796
5797         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
5798         __builtin_expect where useful.
5799
5800         * grp/initgroups.c (initgroups): Test for result of memory
5801         allocation and punt if it fails.
5802
5803         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
5804         * grp/fgetgrent.c (fgetfrent): Likewise.
5805         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
5806
5807 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
5808
5809         * libio/vasprintf.c: Include string.h to get memcpy prototype.
5810
5811 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
5812
5813         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
5814         don't search for NUL byte to decrement counter.
5815         Reported by Ulrich.Brink@sap.com.
5816
5817         * iconv/gconv_simple.c: Define separate functions to convert from
5818         UCS4/UCS4-LE to the internal encoding.
5819         * iconv/gconv_builtin.h: Use separate functions to convert from
5820         UCS4/UCS4-LE to the internal encoding.
5821         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
5822         __gconv_transform_ucs4le_internal.
5823
5824         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
5825         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
5826
5827         * iconv/skeleton.c: Add some more __builtin_expect.
5828         * iconv/loop.c: Likewise.
5829
5830 2000-03-08  H.J. Lu  <hjl@gnu.org>
5831
5832         * posix/regex.c (regex_compile): Correctly handle "\{" when
5833         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
5834
5835 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
5836
5837         * manual/stdio.texi: Give advise about handling error when using
5838         stream functions.
5839         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
5840
5841 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
5842
5843         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
5844         field to nelems * sizeof (uint32_t).
5845         * locale/programs/ld-address.c (address_output): Align word fields
5846         properly.
5847         * locale/programs/ld-monetary.c (monetary_output): Likewise.
5848         Don't restart idx pointers to idx end at the duo_int_curr_symbol
5849         field.
5850         Avoid giving arbitrary garbage in the crncystr field.
5851         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
5852         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
5853         fields.
5854         * locale/programs/ld-numeric.c (numeric_output): Likewise.
5855         Don't restart idx pointers to idx end at the decimal_point_wc field.
5856         * locale/programs/ld-time.c (time_output): week_1stday should be
5857         word, not byte.  Align it properly.
5858
5859 2000-04-19  H.J. Lu  <hjl@gnu.org>
5860
5861         * csu/gmon-start.c (_start): Declared as "extern void".
5862         (etext): Likewise.
5863
5864 2000-04-18  Andreas Jaeger  <aj@suse.de>
5865
5866         * manual/install.texi (Running make install): Don't mention utmpd
5867         anymore.
5868
5869 2000-04-18  Andreas Jaeger  <aj@suse.de>
5870
5871         * linuxthreads/Versions: Use ld instead of ld.so.
5872
5873         * elf/Makefile (ld-map): Use ld.map.
5874
5875         * Versions.def: Use ld instead of ld.so.
5876         * elf/Versions: Likewise.
5877         * sysdeps/mach/hurd/Versions: Likewise.
5878
5879 2000-04-20  Andreas Jaeger  <aj@suse.de>
5880
5881         * elf/rtld.c (print_statistics): Move ifndef further up.
5882         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
5883         (dl_main): Likewise.
5884
5885 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
5886
5887         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
5888         * gmon/Versions: Move moncontrol to GLIBC_2.2.
5889
5890         * po/cs.po: Update from translation team.
5891
5892         * sysdeps/generic/updwtmp.c: Remove daemon support.
5893
5894         * login/Makefile (routines): Remove utmp_daemon.
5895
5896         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
5897         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
5898         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
5899         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
5900
5901         * elf/rtld.c: Display statitics option also if hp timing is not
5902         available.
5903
5904         * login/programs/connection.c: Removed.
5905         * login/programs/database.c Removed.
5906         * login/programs/error.c: Removed.
5907         * login/programs/request.c: Removed.
5908         * login/programs/xtmp.c: Removed.
5909         * login/programs/xtmp.h: Removed.
5910         * login/Makefile: Remove rules for utmpd.
5911         * login/README.utmpd: Removed.
5912         * login/utmp_daemon.c: Removed.
5913         * login/getutent_r.c: Remove references to daemon functions.
5914         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
5915         declaration.
5916
5917 2000-04-18  Andreas Jaeger  <aj@suse.de>
5918
5919         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5920         2.2 for libnsl, libresolv, librt, libnss_*.
5921
5922         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
5923
5924         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
5925
5926 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
5927
5928         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
5929         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
5930         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
5931         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
5932         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
5933         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
5934         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
5935         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
5936         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
5937         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
5938         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
5939         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
5940         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
5941         it here.
5942         * sysdeps/unix/sysv/aix/msync.c: New file.
5943         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
5944         * sysdeps/unix/sysv/aix/net/if.h: New file.
5945         * sysdeps/unix/sysv/aix/pipe.c: New file.
5946         * sysdeps/unix/sysv/aix/poll.c: New file.
5947         * sysdeps/unix/sysv/aix/rename.c: New file.
5948         * sysdeps/unix/sysv/aix/rmdir.c: New file.
5949         * sysdeps/unix/sysv/aix/select.c: New file.
5950         * sysdeps/unix/sysv/aix/semctl.c: New file.
5951         * sysdeps/unix/sysv/aix/semget.c: New file.
5952         * sysdeps/unix/sysv/aix/semop.c: New file.
5953         * sysdeps/unix/sysv/aix/sendto.c: New file.
5954         * sysdeps/unix/sysv/aix/setgroups.c: New file.
5955         * sysdeps/unix/sysv/aix/setpgid.c: New file.
5956         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
5957         * sysdeps/unix/sysv/aix/setpriority.c: New file.
5958         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
5959         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
5960         * sysdeps/unix/sysv/aix/setsid.c: New file.
5961         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
5962         * sysdeps/unix/sysv/aix/shmat.c: New file.
5963         * sysdeps/unix/sysv/aix/shmctl.c: New file.
5964         * sysdeps/unix/sysv/aix/shmdt.c: New file.
5965         * sysdeps/unix/sysv/aix/shmget.c: New file.
5966         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
5967         * sysdeps/unix/sysv/aix/sigstack.c: New file.
5968         * sysdeps/unix/sysv/aix/socket.c: New file.
5969         * sysdeps/unix/sysv/aix/socketpair.c: New file.
5970         * sysdeps/unix/sysv/aix/speed.c: New file.
5971         * sysdeps/unix/sysv/aix/symlink.c: New file.
5972         * sysdeps/unix/sysv/aix/sync.c: New file.
5973         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
5974         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
5975         * sysdeps/unix/sysv/aix/times.c: New file.
5976         * sysdeps/unix/sysv/aix/ulimit.c: New file.
5977         * sysdeps/unix/sysv/aix/umask.c: New file.
5978         * sysdeps/unix/sysv/aix/unlink.c: New file.
5979         * sysdeps/unix/sysv/aix/ustat.c: New file.
5980         * sysdeps/unix/sysv/aix/utimes.c: New file.
5981
5982 2000-04-18  Andreas Jaeger  <aj@suse.de>
5983
5984         * manual/startup.texi (Environment Access): Fix putenv prototype
5985         according to recent changes.
5986         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
5987         PR libc/1692.
5988
5989         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
5990         needed.
5991
5992 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
5993
5994         * posix/Makefile (tests): Add tst-getaddrinfo.
5995         * posix/tst-getaddrinfo.c: New file.
5996
5997 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5998
5999         * manual/sysinfo.texi: Document that umount2 is not widely available.
6000
6001         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
6002         signal timing is not really implemented.
6003
6004 2000-04-17  Andreas Jaeger  <aj@suse.de>
6005
6006         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
6007
6008 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
6009
6010         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
6011         and inst_libdir.
6012
6013 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
6014
6015         * manual/intro.texi: Change reference from System Information to
6016         System Management.
6017         * manual/users.texi: Likewise.
6018         * manual/conf.texi: Likewise.
6019         * manual/sysinfo.texi: Document mount, umount, and umount2.
6020         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6021
6022 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
6023
6024         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
6025         Create wnumstr as well as numstr to support wide character output
6026         correctly.
6027
6028 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
6029
6030         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
6031         modification and move it...
6032         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
6033         Add -melf64_sparc switch to $(LD) on sparc64-linux.
6034         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
6035         switch to $(LD) on sparc-linux.
6036
6037 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
6038
6039         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
6040         and setresuid from sysdep_routines.
6041
6042 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
6043
6044         * manual/Makefile (chapters): Add resource.
6045
6046         * manual/time.texi: Move section on resources to...
6047         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
6048         and vtimes.
6049         * manual/setjmp.texi: Adjust back reference.
6050         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6051
6052         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
6053         definition.
6054         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
6055         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
6056         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
6057         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
6058         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
6059         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
6060         * sysdeps/unix/sysv/aix/close.c: Add copyright.
6061         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
6062         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
6063         * sysdeps/unix/sysv/aix/access.c: Add copyright.
6064         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
6065         * sysdeps/unix/sysv/aix/Implies: New file.
6066         * sysdeps/unix/sysv/aix/Versions: New file.
6067         * sysdeps/unix/sysv/aix/bind.c: New file.
6068         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
6069         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
6070         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
6071         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
6072         * sysdeps/unix/sysv/aix/chdir.c: New file.
6073         * sysdeps/unix/sysv/aix/chmod.c: New file.
6074         * sysdeps/unix/sysv/aix/chroot.c: New file.
6075         * sysdeps/unix/sysv/aix/creat.c: New file.
6076         * sysdeps/unix/sysv/aix/dl-close.c: New file.
6077         * sysdeps/unix/sysv/aix/dl-open.c: New file.
6078         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
6079         * sysdeps/unix/sysv/aix/fchdir.c: New file.
6080         * sysdeps/unix/sysv/aix/fchmod.c: New file.
6081         * sysdeps/unix/sysv/aix/getgroups.c: New file.
6082         * sysdeps/unix/sysv/aix/gethostname.c: New file.
6083         * sysdeps/unix/sysv/aix/getpriority.c: New file.
6084         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
6085         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
6086         * sysdeps/unix/sysv/aix/getrusage.c: New file.
6087         * sysdeps/unix/sysv/aix/link.c: New file.
6088         * sysdeps/unix/sysv/aix/madvise.c: New file.
6089         * sysdeps/unix/sysv/aix/mkdir.c: New file.
6090         * sysdeps/unix/sysv/aix/mknod.c: New file.
6091         * sysdeps/unix/sysv/aix/mprotect.c: New file.
6092         * sysdeps/unix/sysv/aix/msgctl.c: New file.
6093         * sysdeps/unix/sysv/aix/msgget.c: New file.
6094         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
6095
6096 2000-04-17  Andreas Jaeger  <aj@suse.de>
6097
6098         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
6099         as suggested by Ulrich Drepper.
6100         (__dl_runtime_resolve): Remove unused variable, initialize sym
6101         directly.
6102         (RTLD_START): Document OFFSET_GP_GOT.
6103         (OFFSET_GP_GOT): New magic value.
6104         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
6105         (elf_machine_got_rel): Only declare strtab if needed.
6106         (elf_machine_relplt): Removed, it's not needed.
6107         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
6108
6109         * sysdeps/mips/add_n.S: Add newline at EOF.
6110         * sysdeps/mips/rshift.S: Likewise.
6111         * sysdeps/mips/mul_1.S: Likewise.
6112         * sysdeps/mips/lshift.S: Likewise.
6113         * sysdeps/mips/addmul_1.S: Likewise.
6114
6115 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
6116
6117         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
6118
6119         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
6120         * elf/dl-lookup.c: Likewise.
6121         * elf/dl-init.c (_dl_init): Likewise.
6122         * elf/dl-fini.c (_dl_fini): Likewise.
6123         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
6124         * elf/dl-close.c (_dl_close): Likewise.
6125         * elf/rtld.c (_dl_start_final): Likewise.
6126
6127         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
6128
6129 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
6130
6131         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
6132         only fall back on using Linux.
6133
6134         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
6135         Before testing versions check that we actually loaded the object
6136         and whether we are in trace mode.  If not loaded during tracing don't
6137         test versions in this object.
6138         (_dl_check_all_versions): Take new parameter and pass to
6139         _dl_check_map_versions.
6140         * sysdeps/generic/ldsodefs.h: Update prototypes for
6141         _dl_check_all_versions and _dl_check_map_versions.
6142         * elf/rtld.c (struct version_check_args): Add dotrace.
6143         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
6144         (dl_main): Pass info about trace mode to version_check_doit.
6145         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
6146         _dl_check_all_versions.
6147
6148         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
6149         and getutmpx.
6150         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6151
6152         * manual/argp.texi: Document index parameter of argp_parse.
6153         Fix typo.
6154         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
6155
6156 2000-04-14  Andreas Jaeger  <aj@suse.de>
6157
6158         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
6159         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
6160
6161         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
6162
6163 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
6164
6165         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
6166         compat_symbol call for old adjtime.
6167
6168         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
6169         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
6170
6171         * posix/Makefile (headers): Add spawn.h.
6172         (distribute): Add spawn_int.h.
6173         (routines): Add spawn_faction_init, spawn_faction_destroy,
6174         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
6175         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
6176         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
6177         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
6178         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
6179         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
6180         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
6181         posix_spawnattr_init, posix_spawnattr_destroy,
6182         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
6183         posix_spawnattr_getflags, posix_spawnattr_setflags,
6184         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
6185         and posix_spawnp.
6186         * posix/spawn.c: New file.
6187         * posix/spawn.h: New file.
6188         * posix/spawn_faction_addclose.c: New file.
6189         * posix/spawn_faction_adddup2.c: New file.
6190         * posix/spawn_faction_addopen.c: New file.
6191         * posix/spawn_faction_destroy.c: New file.
6192         * posix/spawn_faction_init.c: New file.
6193         * posix/spawn_int.h: New file.
6194         * posix/spawnattr_destroy.c: New file.
6195         * posix/spawnattr_getdefault.c: New file.
6196         * posix/spawnattr_getflags.c: New file.
6197         * posix/spawnattr_getpgroup.c: New file.
6198         * posix/spawnattr_getschedparam.c: New file.
6199         * posix/spawnattr_getschedpolicy.c: New file.
6200         * posix/spawnattr_getsigmask.c: New file.
6201         * posix/spawnattr_init.c: New file.
6202         * posix/spawnattr_setdefault.c: New file.
6203         * posix/spawnattr_setflags.c: New file.
6204         * posix/spawnattr_setpgroup.c: New file.
6205         * posix/spawnattr_setschedparam.c: New file.
6206         * posix/spawnattr_setschedpolicy.c: New file.
6207         * posix/spawnattr_setsigmask.c: New file.
6208         * posix/spawni.c: New file.
6209         * posix/spawnp.c: New file.
6210
6211         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
6212         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
6213
6214 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
6215
6216         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
6217         * malloc/malloc.c: Implement posix_memalign for glibc.
6218         * include/stdlib.h: Add prototype for __posix_memalign.
6219         * stdlib/stdlib.h: Add prototype for posix_memalign.
6220
6221 2000-04-14  Andreas Jaeger  <aj@suse.de>
6222
6223         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
6224         symidx correctly.
6225         (elf_machine_got_rel): Cast sym correctly.
6226
6227         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
6228         * sysdeps/mips/addmul_1.S: Likewise.
6229         * sysdeps/mips/lshift.S: Likewise.
6230         * sysdeps/mips/mul_1.S: Likewise.
6231         * sysdeps/mips/rshift.S: Likewise.
6232         * sysdeps/mips/sub_n.S: Likewise.
6233         * sysdeps/mips/submul_1.S: Likewise.
6234
6235         * stdlib/stdlib.h: Fix typo in comment.
6236
6237         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
6238         2.2 for libdl, ld and libm.
6239
6240         * sysdeps/generic/madvise.c: Fix typos.
6241
6242         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
6243
6244         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
6245
6246         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
6247         warnings.
6248
6249 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
6250
6251         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
6252         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
6253         Make old name weak alias.
6254         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6255         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
6256         Make old name weak alias.
6257         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6258
6259         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
6260         posix_fallocate, and posix_fallocate64.
6261         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
6262         posix_fallocate, and posix_fallocate64.
6263         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
6264         posix_fallocate, and posix_fallocate64.
6265         * sysdeps/generic/fadvise.c: New file.
6266         * sysdeps/generic/fadvise64.c: New file.
6267         * sysdeps/generic/fallocate.c: New file.
6268         * sysdeps/generic/fallocate64.c: New file.
6269         * sysdeps/posix/fallocate.c: New file.
6270         * sysdeps/posix/fallocate64.c: New file.
6271         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
6272         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
6273         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
6274         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
6275         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6276         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
6277         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6278         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
6279         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6280
6281         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
6282         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6283
6284 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
6285
6286         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
6287         * misc/sys/mman.h (posix_madvise): Add prototype.
6288         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
6289         old name and posix_madvise weak aliases.
6290         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6291         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
6292         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
6293         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6294         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
6295         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
6296         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6297
6298 2000-04-13  Andreas Jaeger  <aj@suse.de>
6299
6300         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
6301         versioning.
6302         (elf_machine_got_rel): Only add runtime display if needed.
6303         (elf_machine_got_rel): Handle symbol versioning.
6304
6305 2000-04-13  Andreas Jaeger  <aj@suse.de>
6306
6307         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
6308
6309         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
6310         default.
6311
6312         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
6313         with some applications.
6314         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
6315
6316         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
6317         * sysdeps/mips/bsd-_setjmp.S: Likewise.
6318         * sysdeps/mips/setjmp.S: Likewise.
6319
6320         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
6321
6322 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
6323
6324         * posix/globtest.sh: Work around inconsistency with expanding ~/
6325         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
6326
6327 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
6328
6329         * posix/getconf.c: Add support for many more POSIX options.
6330         * sysdeps/posix/sysconf.c: Likewise.
6331         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
6332         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
6333         _POSIX_SHELL.
6334         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
6335         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
6336         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
6337         CLOCK_THREAD_CPUTIME_ID.
6338         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
6339         CLOCK_PROCESS_CPUTIME_ID.
6340         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
6341         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
6342         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
6343         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
6344
6345         * malloc/Makefile (tests): Add tst-calloc.
6346         * malloc/tst-calloc.c: New file.
6347
6348         * sysdeps/arm/libm-test-ulps: New file.
6349
6350         * malloc/malloc.c: Undo all of today's changes.
6351
6352         * locale/programs/locale.c (show_info): Don't try to look into
6353         data for LC_ALL (there is none).
6354
6355         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
6356         avoid writing over boundary.
6357         Patch by Greg McGary <gkm@eng.ascend.com>.
6358
6359         * sysdeps/arm/memprof.h: New file.
6360
6361 2000-04-12  Andreas Jaeger  <aj@suse.de>
6362
6363         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
6364
6365         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
6366         for memmem declaration.
6367
6368 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
6369
6370         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
6371         to -1.
6372         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
6373
6374         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
6375         mode is invalid.
6376         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
6377         Patch by Bart Veer <bartv@redhat.com>.
6378
6379         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
6380         function interface.
6381
6382 2000-04-11  Andreas Jaeger  <aj@suse.de>
6383
6384         * sysdeps/mips/dl-machine.h: Update some comments.
6385         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
6386
6387 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
6388
6389         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
6390         _POSIX_SHARED_MEMORY_OBJECTS.
6391
6392         * rt/Makefile (tests): Add tst-shm.
6393         Add rules to generate tst-shm.
6394         * rt/tst-shm.c: New file.
6395
6396         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
6397         for descriptor.
6398
6399         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
6400         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
6401         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
6402         * sysdeps/generic/shm_open.c: New file.
6403         * sysdeps/generic/shm_unlink.c: New file.
6404         * sysdeps/unix/sysv/linux/shm_open.c: New file.
6405         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
6406         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
6407          __endmntent, __getmntent_r, __setmntent, and __statfs.
6408
6409         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
6410         fragmentation by allocating new memory at the end instead of
6411         reallocating.
6412
6413         * posix/globtest.sh: Fix last change.
6414
6415 2000-04-10  Philip Blundell  <philb@gnu.org>
6416
6417         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
6418         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
6419         IPV6_DROP_MEMBERSHIP.
6420         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
6421         Likewise.
6422
6423 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
6424
6425         * elf/readlib (process_file): Close streams in case of an error.
6426
6427 2000-04-09  Andreas Jaeger  <aj@suse.de>
6428
6429         * elf/readlib.c (process_file): Check if file is big enough to
6430         contain aout and ELF headers.
6431         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
6432
6433 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
6434
6435         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
6436
6437 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
6438
6439         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
6440         stream unbuffered.
6441         * rt/Makefile (tests): Add tst-clock.
6442         Add rules to build tst-clock.
6443         * rt/tst-clock.c: New file.
6444         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
6445         about initialization of nsec.
6446         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
6447         about initialization of freq.  Set retval to zero if successful.
6448         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
6449
6450 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
6451
6452         * Versions.def (librt): Add GLIBC_2.2.
6453         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
6454         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
6455         timer_getoverr, timer_gettime, and timer_settime.
6456         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
6457         clock_settime, timer_create, timer_delete, timer_getoverrun,
6458         timer_gettime, and timer_settime.
6459         * sysdeps/generic/clock_getcpuclockid.c: New file.
6460         * sysdeps/generic/get_clockfreq.c: New file.
6461         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
6462         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
6463         * sysdeps/mach/hurd/i386/bits/time.h: New file.
6464         * sysdeps/unix/i386/i586/clock_getres.c: New file.
6465         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
6466         * sysdeps/unix/i386/i686/Implies: New file.
6467         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
6468         * time/Makefile (routines): Move clock_getres, clock_gettime,
6469         clock_settime, timer_create, timer_delete, timer_getoverr,
6470         timer_gettime, and timer_settime to rt/Makefile.
6471         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
6472         clock_settime, timer_create, timer_delete, timer_getoverrun,
6473         timer_gettime, and timer_settime.
6474         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
6475
6476         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
6477         and not const as attribute name.
6478
6479 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
6480
6481         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
6482
6483 2000-04-10  Andreas Schwab  <schwab@suse.de>
6484
6485         * posix/globtest.sh: Skip tests that depend on unreadable
6486         directories if run as root.
6487
6488 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
6489
6490         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
6491         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
6492
6493 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
6494
6495         * sysdeps/unix/clock_gettime.c: New file.
6496         * sysdeps/unix/clock_settime.c: New file.
6497         * sysdeps/posix/clock_getres.c: New file.
6498
6499         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
6500
6501         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
6502         lseek call be passing in a buffer which never allow a successful
6503         first getdents syscall if not at leas the initial entry can be
6504         stored in the user buffer.
6505
6506         * localedata/Makefile: Add rules to clean up directories created by
6507         new strfmon tests.
6508
6509 2000-04-09  Geoff Clare  <gwc@unisoft.com>
6510
6511         * localedata/tst-fmon.data: Added new tests for strfmon()
6512         using test locales with all combinations of cs_precedes,
6513         sign_posn and sep_by_space.
6514         * localedata/tst-fmon.sh: Updated to support the new tests.
6515         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
6516         the localedef source for the new strfmon() test locale.
6517         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
6518         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
6519         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
6520         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
6521         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
6522         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
6523         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
6524         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
6525         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
6526         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
6527         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
6528         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
6529         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
6530         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
6531
6532         * stdlib/strfmon.c: Correct problems with missing or extra
6533         spaces for unusual combinations of sign_posn and sep_by_space.
6534         Improved left-precision alignment code.
6535
6536 2000-04-07  Andreas Jaeger  <aj@suse.de>
6537
6538         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
6539
6540 2000-04-10  Andreas Jaeger  <aj@suse.de>
6541
6542         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
6543
6544 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
6545
6546         Implement handling of restartable conversion functions according to
6547         ISO C.
6548         * iconv/gconv.h (__gconv_fct): Add additional parameter.
6549         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
6550         * iconv/gconv.c: Pass additional parameter to conversion function.
6551         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
6552         (internal_ucs4le_loop_single): New function.
6553         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
6554         (__gconv_transform_internal_ascii): Likewise.
6555         (__gconv_transform_internal_utf8): Likewise.
6556         (__gconv_transform_utf8_internal): Likewise.
6557         (__gconv_transform_ucs2_internal): Likewise.
6558         (__gconv_transform_internal_ucs2): Likewise.
6559         (__gconv_transform_ucs2reverse_internal): Likewise.
6560         (__gconv_transform_internal_ucs2reverse): Likewise.
6561         (internal_ucs4le_loop_unaligned): Before return
6562         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
6563         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
6564         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
6565         * iconv/loop.c: Fit in definition of function to convert one character
6566         for processing of left-over bytes from the state object.
6567         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
6568         inend to match names in loop functions.
6569         (RESET_INPUT_BUFFER): Change apprpriately.
6570         (gconv): If needed, call function to process bytes from the state
6571         object.  Similar at the end: store left over bytes if input is
6572         incomplete.
6573         Take extra argument and add new argument to all calls of the
6574         conversion function.
6575         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
6576         information in the state object to not conflict with length count.
6577         * iconvdata/iso-2022-jp.c: Likewise.
6578         * iconvdata/iso-2022-kr.c: Likewise.
6579         * iconvdata/unicode.c: Adjust for change change in parameters of
6580         skeleton function.
6581         * iconvdata/utf-16.c: Likewise.
6582         * libio/iofwide.c: Add new parameter to all calls of conversion
6583         function.
6584         * wcsmbs/btowc.c: Likewise.
6585         * wcsmbs/mbrtowc.c: Likewise.
6586         * wcsmbs/mbsnrtowcs.c: Likewise.
6587         * wcsmbs/mbsrtowcs.c: Likewise.
6588         * wcsmbs/wcrtomb.c: Likewise.
6589         * wcsmbs/wcsnrtombs.c: Likewise.
6590         * wcsmbs/wcsrtombs.c: Likewise.
6591         * wcsmbs/wctob.c: Likewise.
6592
6593         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
6594         MAX_NEEDED_INPUT.
6595
6596 2000-04-07  Andreas Jaeger  <aj@suse.de>
6597
6598         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
6599         newer kernels.
6600
6601 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
6602
6603         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
6604         element a union to allow byte access.
6605         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
6606         mbstate_t.
6607         * iconvdata/iso-2022-jp.c: Likewise.
6608         * iconvdata/iso-2022-kr.c: Likewise.
6609         * wcsmbs/mbsinit.c: Likewise.
6610         * stdlib/mblen.c: Likewise.
6611         * stdio-common/printf-parse.h: Likewise.
6612
6613 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
6614
6615         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
6616         kernel does not allow relative seeks on descriptors associated
6617         with directories.  Go back to get the position in the directory
6618         every time we enter the function.  Return -1 and set errno if one
6619         entry could be read from the kernel but does not fit into the
6620         buffer passed in by the user.
6621
6622         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
6623         Support ..(2).. ellipsis.
6624         (parse_charmap): Recognize ..(2).. etc and pass step down.
6625         Correctly generate names for UCS4 characters.
6626
6627         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
6628         (ctype_finish): We know the wide character value for <SP>,
6629         don't search.
6630         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
6631         (charclass_ucs4_ellipsis): Likewise.
6632         (read_translit_ignore_entry): Store ellipsis step.
6633         (ctype_read): Recognize ..(2).. etc and pass step down.
6634
6635         * locale/programs/linereader.c (lr_token): When seeing comment
6636         character ignore only rest of line in sources but stop at escaped
6637         newline.
6638         Recognize ..(2).. and ....(2).....
6639
6640         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
6641         and tok_ellipsis4_2.
6642
6643 2000-04-06  Andreas Jaeger  <aj@suse.de>
6644
6645         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
6646         removed, remove it here also.
6647         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
6648         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
6649         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
6650         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
6651
6652 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
6653
6654         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
6655         include bits/sigcontext.h.
6656         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
6657
6658 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
6659
6660         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
6661         collation symbol definition.  Value in quivalence definition must
6662         be defined, don't check that it is not.
6663
6664         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
6665         values as character names.
6666
6667         * locale/programs/ld-ctype.c (get_character): Handle missing
6668         repertoire map correctly.
6669
6670 2000-04-05  Cristian Gafton  <gafton@redhat.com>
6671
6672         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
6673         because it is used in generic code.
6674         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
6675         * wcsmbs/wcwidth.h: Declare __ctype32_b.
6676         * intl/gettext.c: Include <locale.h>.
6677         * intl/ngettext.c: Likewise.
6678
6679 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
6680
6681         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
6682         socklen_t type for size.
6683         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
6684         init function interface.
6685         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6686         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
6687         sys/ucontext.h.
6688         (__jmp_buf): Declare the whole type structure here, don't use
6689         ucontext.
6690
6691 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
6692
6693         * iconv/skeleton.c (put16u): Fix typo.
6694         Reported by Bruno Haible <haible@ilog.fr>.
6695
6696         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
6697         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
6698         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
6699         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
6700         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
6701         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
6702
6703         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
6704         * Makefile (distribute): Add abi-versions.awk and
6705         firstversions.awk.
6706         Patches by Torsten Duwe <duwe@caldera.de>.
6707
6708 2000-04-05  Andreas Schwab  <schwab@suse.de>
6709
6710         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
6711
6712 2000-04-05  Andreas Schwab  <schwab@suse.de>
6713
6714         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
6715         entry point, used on Hurd.
6716
6717 2000-04-04  Andreas Jaeger  <aj@suse.de>
6718
6719         * intl/Makefile: Only run the gettext test with shared libraries.
6720
6721 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
6722
6723         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
6724         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
6725
6726 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
6727
6728         * Makeconfig: Undo last change.
6729         * configure.in: If --disable-shared was given, don't set VERSIONING,
6730         don't define DO_VERSIONING, and don't give scare warning for no
6731         versioning.
6732         * configure: Regenerated.
6733
6734 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
6735
6736         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
6737
6738 2000-04-04  Andreas Jaeger  <aj@suse.de>
6739
6740         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
6741
6742 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
6743
6744         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
6745         STV_HIDDEN and STV_INTERNAL during lookup.
6746         (profile_fixup): Likewise.
6747         * elf/dl-reloc.c (RESOLVE): Likewise.
6748
6749         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
6750         unaligned so that it compiles for system which need unaligned
6751         access handling.
6752
6753 2000-04-04  Andreas Schwab  <schwab@suse.de>
6754
6755         * elf/cache.c (print_entry): Only look at the type field when
6756         printing the type.
6757
6758 2000-04-04  Andreas Schwab  <schwab@suse.de>
6759
6760         * iconvdata/big5.c (BODY): Fix typo.
6761
6762 2000-04-04  Andreas Schwab  <schwab@suse.de>
6763
6764         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
6765         function interface.  Remove unused _dl_start_user entry point.
6766
6767 2000-04-03  Andreas Jaeger  <aj@suse.de>
6768
6769         * include/arpa/inet.h (__inet_aton): Add protoype.
6770
6771 2000-04-01  Andreas Jaeger  <aj@suse.de>
6772
6773         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
6774
6775         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
6776         * sysdeps/mach/mips/thread_state.h: Likewise.
6777
6778         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
6779         * sysdeps/generic/fegetenv.c: Likewise.
6780         * sysdeps/generic/fesetenv.c: Likewise.
6781         * sysdeps/generic/feupdateenv.c: Likewise.
6782         * sysdeps/generic/fraiseexcpt.c: Likewise.
6783         * sysdeps/generic/fsetexcptflg.c: Likewise.
6784         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
6785         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
6786         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
6787         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6788
6789 2000-04-02  H.J. Lu  <hjl@gnu.org>
6790
6791         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
6792
6793 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
6794
6795         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
6796         (add_name_to_object): Add cast in malloc call.
6797         (fillin_rpath): Optimize loop to initialize ->status a bit.
6798
6799         * sysdeps/i386/dl-machine.h: Undo last change.
6800         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
6801         Restore %edx register after call here.
6802
6803         * sysdeps/arm/atomicity.h: New file.
6804         Contributed by Jesper Skov <jskov@redhat.com>.
6805
6806 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
6807
6808         * Makeconfig (preprocess-versions): Undo last change.
6809         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
6810
6811         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
6812         here, before we might move the stack.
6813         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
6814         (init1): And not here.
6815
6816         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
6817         change, to restore argc value in call-clobbered register after
6818         RTLD_START_SPECIAL_INIT, which will contain a call.
6819
6820         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
6821         allocating and initializing L->l_initfini.
6822
6823         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
6824
6825 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
6826
6827         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
6828         RUNPATH, RPATH, and LD_LIBRARY_PATH.
6829         (open_path): Change type of fourth parameter.  Make pointer to array
6830         of pointers.  Create variable dirs with original type.
6831         Track whether any directory for the object exists and if not,
6832         change *DIRSP to (void*) -1 to signal there is no such search path.
6833         (_dl_map_object): Change all calls of open_path.
6834         Rewrite decompose_rpath calls.
6835
6836 2000-03-31  Andreas Schwab  <schwab@suse.de>
6837
6838         * string/strfry.c: Declare STATE as array of char instead of int
6839         and do not initialize it (done by initstate_r).  Pass correct
6840         size.
6841
6842 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
6843
6844         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
6845
6846         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
6847         instruction out of the code.
6848
6849 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
6850
6851         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
6852         element at this position.
6853
6854         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
6855         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
6856         l_reldeps elements.
6857         * elf/dl-lookup.c (add_dependency): New function.
6858         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
6859         dynamically loaded object.
6860         (_dl_lookup_symbol_skip): Likewise.
6861         (_dl_lookup_versioned_symbol): Likewise.
6862         (_dl_lookup_versioned_symbol_skip): Likewise.
6863         * elf/dl-open.c: Don't define _dl_load_lock here...
6864         * elf/rtld.c: ...but here...
6865         * elf/dl-support.c: ...and here.
6866         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
6867         through relocation.
6868         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
6869         relocations.
6870         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
6871         anymore.
6872         * dlfcn/glrefmain.c: Add one more debug message.
6873
6874         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
6875         command line.
6876         * Makerules (sysd-versions): Use ( ) instead of { }.
6877
6878         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
6879         optimize for the non-debugging case.
6880         * elf/dl-lookup.c: Likewise.
6881         * sysdeps/generic/libc-start.c: Likewise.
6882
6883 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
6884
6885         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
6886         (init1): Don't initialize __environ here, since init already does it.
6887         (first_init): New function, broken out of _init.
6888         (_hurd_stack_setup): Use it.
6889         [SHARED] (_dl_init_first): New function, renamed from old _init.
6890         (init1) [SHARED]: Don't call posixland_init here.
6891         (posixland_init): Take ENVP arg, so signature is usual for initializer.
6892         [SHARED] (_init): Define as alias for posixland_init.
6893         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
6894         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
6895         RTLD_START_SPECIAL_INIT before calling initializers.
6896         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
6897         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
6898         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
6899         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
6900
6901         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
6902         since we define the function with the name `tmpfile'.
6903
6904         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
6905         * hurd/Versions: Likewise.
6906
6907 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
6908
6909         * elf/dl-runtime.c (fixup): Fix typo in comment.
6910
6911         * resolv/netdb.h (getnameinfo): All length parameters are of type
6912         socklen_t.
6913         * inet/getnameinfo.c: Likewise.
6914
6915 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
6916
6917         * posix/unistd.h (socklen_t): Define if it has not yet happened.
6918         (gethostname): Change type of second parameter to socklen_t.
6919         * include/unistd.h (__gethostname): Change type of second
6920         parameter to socklen_t.
6921         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
6922         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
6923         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
6924         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
6925         Likewise.
6926         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
6927         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
6928         Allow definition elsewhere.
6929         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6930         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6931         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6932         * sysdeps/generic/bits/types.h: Define __socklen_t.
6933         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
6934         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
6935         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
6936         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
6937         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
6938         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
6939         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
6940
6941         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
6942         (inet_lnaof): Likewise.
6943         (inet_netof): Likewise.
6944         (inet_network): Likewise.
6945         (inet_aton): Likewise.
6946         (inet_makeaddr): Change parameter types to in_addr_t.
6947         (inet_neta): Likewise.
6948         (inet_ntop): Change type of last parameter to socklen_t.
6949         (inet_aton): Only make available if __USE_MISC.
6950         (inet_neta): Likewise.
6951         (inet_net_ntop): Likewise.
6952         (inet_net_pton): Likewise.
6953         (inet_nsap_ntoa): Likewise.
6954
6955         * inet/in.h: Define in_port_t type.
6956         Define in_addr_t type.
6957         (struct in_addr): Use in_addr_t in definition.
6958         (IN_CLASSA): Use cast to in_addr_t.
6959         (IN_CLASSB): Likewise.
6960         (IN_CLASSC): Likewise.
6961         (IN_CLASSD): Likewise.
6962         (IN_EXPERIMENTAL): Likewise.
6963         (IN_BADCLASS): Likewise.
6964         (INADDR_ANY): Likewise.
6965         (INADDR_BROADCAST): Likewise.
6966         (INADDR_NONE): Likewise.
6967         (INADDR_LOOPBACK): Likewise.
6968         (INADDR_UNSPEC_GROUP): Likewise.
6969         (INADDR_ALLHOSTS_GROUP): Likewise.
6970         (INADDR_ALLRTRS_GROUP): Likewise.
6971         (INADDR_MAX_LOCAL_GROUP): Likewise.
6972         (struct sockaddr_in): Use in_port_t for sin_port element.
6973         (struct sockaddr_in6): Use in_port_t for sin6_port element.
6974         Use uint8_t instead of u_int8_t.
6975
6976         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
6977         Call __inet_aton instead of inet_aton.
6978         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
6979
6980         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
6981         (innetgr): Likewise.
6982         (struct addrinfo): Use socklen_t for ai_addrlen element.
6983
6984         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
6985         IPV6_RECVERR): New defines.
6986
6987         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
6988         * inet/getnetbyad.c: Likewise.
6989         * inet/getnetbyad_r.c: Likewise.
6990         * nis/nss_nis/nis-network.c: Likewise.
6991         * nis/nssplus_nis/nisplus-network.c: Likewise.
6992         * nss/nss_files/files-network.c: Likewise.
6993         * resolv/netdb.h: Define uint32_t if not already happened.
6994         Include bits/netdb.h.  Remove definition of struct netent.
6995         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
6996         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
6997         * sysdeps/generic/bits/netdb.h: New file.
6998         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
6999
7000         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
7001         (tests): Add glrefmain.
7002         Add rules to build modules and run tests.  Ignore result of glrefmain
7003         for now since it fails.
7004         * dlfcn/glrefmain.c: New file.
7005         * dlfcn/glreflib1.c: New file.
7006         * dlfcn/glreflib2.c: New file.
7007
7008         * test-skeleton.c: Include <string.h> for strsignal prototype.
7009
7010         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
7011         to be missing.
7012
7013         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
7014         former init-first.h.  Initialize __libc_multiple_libcs.
7015
7016 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
7017
7018         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
7019         #if expression for use of unaligned function to the one used in
7020         the definition of these functions.
7021         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
7022         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
7023         (internal_ucs4le_loop_unaligned): New function.
7024
7025         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
7026         (tests): Add order.
7027         (module-names): Add dep1, dep2, dep3, and dep4.
7028         Add dependencies for dep* modules and order.
7029         Define rule for order.out which checks the result.
7030         * elf/dep1.c: New file.
7031         * elf/dep2.c: New file.
7032         * elf/dep3.c: New file.
7033         * elf/dep4.c: New file.
7034         * elf/order.c: New file.
7035
7036         * elf/dl-init.c: Fix typo in comment.
7037
7038 2000-03-31  Andreas Jaeger  <aj@suse.de>
7039
7040         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
7041         init function interface.
7042         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
7043
7044 2000-03-31  Andreas Jaeger  <aj@suse.de>
7045
7046         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
7047         * sysdeps/mips/fpu/fegetenv.c: Likewise.
7048         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
7049         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
7050         * sysdeps/mips/fpu/fesetenv.c: Likewise.
7051
7052         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
7053         anymore, update comment.
7054
7055         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
7056
7057         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
7058         SHLIB_COMPAT - the struct is always needed.
7059
7060 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
7061
7062         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
7063         * elf/dl-support.c: Define _dl_starting_up.
7064
7065 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
7066
7067         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
7068         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
7069
7070         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
7071
7072         * elf/Makefile (dl-routines): Remove preinit.
7073         * elf/Versions: Remove _dl_preinit.
7074         * elf/dl-preinit.c: Removed.  Move content into...
7075         * elf/dl-init.c: ...here.
7076         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
7077
7078         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
7079         elements.
7080
7081 2000-03-29  Geoff Clare  <gwc@unisoft.com>
7082
7083         * stdlib/strfmon.c: Corrected problems with the code that
7084         sets default values for [np]_sep_by_space and
7085         [np]_sign_posn; also the new positive/negative alignment
7086         code from the previous patch was not quite right for
7087         [np]_sign_posn = 0.
7088
7089         * localedata/tst-fmon.data: Changes corresponding to the
7090         two sets of fixes made to stdlib/strfmon.c.
7091
7092 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
7093
7094         * malloc/malloc.c: Declare bit flags UL so that they will not
7095         default to int size when being inverted.
7096
7097 2000-03-29  Andreas Jaeger  <aj@suse.de>
7098
7099         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
7100         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
7101
7102 2000-03-29  Andreas Jaeger  <aj@suse.de>,
7103             Ralf Baechle <ralf@uni-koblenz.de>
7104
7105         * Makeconfig: Introduce new variable SHARED to mark code used in
7106         the shared library.
7107         * elf/dl-close.c: Use it instead of PIC.
7108         * elf/dl-load.c: Likewise.
7109         * elf/dl-open.c: Likewise.
7110         * hurd/geteuids.c: Likewise.
7111         * include/libc-symbols.h: Likewise.
7112         * include/shlib-compat.h: Likewise.
7113         * libio/freopen.c: Likewise.
7114         * linuxthreads/cancel.c: Likewise.
7115         * linuxthreads/pthread.c: Likewise.
7116         * linuxthreads/wrapsyscall.c: Likewise.
7117         * nss/nsswitch.c: Likewise.
7118         * stdio-common/vfprintf.c: Likewise.
7119         * sysdeps/arm/init-first.c: Likewise.
7120         * sysdeps/i386/init-first.c: Likewise
7121         * sysdeps/generic/init-first.c: Likewise.
7122         * sysdeps/generic/libc-start.c: Likewise.
7123         * sysdeps/mips/init-first.c: Likewise.
7124         * sysdeps/powerpc/elf/libc-start.c: Likewise.
7125         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7126         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
7127         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
7128         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
7129
7130         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
7131
7132 2000-03-29  Andreas Jaeger  <aj@suse.de>
7133
7134         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
7135         Use D_PTR to access relocated entries in l_info.
7136         (elf_machine_rela): Likewise.
7137
7138         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
7139         Likewise.
7140         (elf_machine_rela): Likewise.
7141
7142         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
7143         Likewise.
7144         (__elf_machine_fixup_plt): Likewise.
7145         (__process_machine_rela): Likewise.
7146
7147         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
7148         (elf_machine_rela): Likewise.
7149
7150         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
7151         (elf_machine_rel): Likewise.
7152
7153         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
7154         (elf_machine_fixup_plt): Likewise.
7155         (elf_machine_rela): Likewise.
7156
7157 2000-03-29  Andreas Jaeger  <aj@suse.de>
7158
7159         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
7160         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
7161         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
7162         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
7163         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
7164         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
7165         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
7166         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
7167         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
7168         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
7169         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
7170         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
7171         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
7172         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
7173         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7174
7175         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
7176         macros, remove K&R prototypes.
7177
7178 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
7179
7180         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
7181         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
7182         (PR libc/1677).
7183
7184 2000-03-30  Andreas Jaeger  <aj@suse.de>
7185
7186         * misc/sys/cdefs.h: Remove K&R support.
7187
7188 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
7189
7190         * iconv/skeleton.c: Avoid compiling unaligned versions in some
7191         more cases.
7192         * iconv/loop.c: Likewise.
7193
7194 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
7195
7196         * iconv/loop.c (put16): Remove __const. Fix access index.
7197         (put32): Remove __const. Use uint32_t instead of uint16_t.
7198         * iconv/skeleton.c: Likewise.
7199
7200 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
7201
7202         * mach/Versions (libc: GLIBC_2.0)
7203         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
7204         __vm_allocate on this.
7205         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
7206         mutex- and spinlock-related symbols on this.
7207         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
7208         New version set.  Lock-related symbols go here instead in this case.
7209         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
7210         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
7211         cthread_getspecific, cthread_setspecific, __libc_getspecific.
7212         * hurd/Versions
7213         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
7214         Put them here instead.
7215         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
7216         New version set.  Those cthreads symbols go here instead in this case.
7217         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
7218
7219 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
7220
7221         * elf/dl-init.c (_dl_init): We don't need to call constructors
7222         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
7223
7224         Implement dynamic determination of constructor/destructor order in
7225         the dynamic linker.
7226         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
7227         (GLIBC_2.2): Add _dl_init.
7228         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
7229         r_duplist is not anymore allocated separately.  l_initfini is and
7230         therefore free it if necessary.
7231         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
7232         malloc block.  Otherwise allocate l_initfini list only.
7233         Put dependencies for the object in l_initfini list.
7234         Sort dependencies for the object to be loaded topologically.
7235         * elf/dl-fini.c: Before running the destructors sort the topologically.
7236         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
7237         call constructors instead of iterating over the pointers.  Get list of
7238         objects for which to run constructors from l_initfini element. Accept
7239         argc, argv, and env as parameters and pass them to the constructors.
7240         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
7241         with size of dynamic section.
7242         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
7243         _dl_init_next and calling constructors ourself.
7244         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
7245         Take argc, argv, and env as parameters and pass them to the
7246         constructors.  Rewrite to call all constructors and not iterate over
7247         the pointers.
7248         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
7249         precompute l_initcount and l_preinitcount.
7250         * elf/link.h (struct link_map): Add l_ldnum member.
7251         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
7252         l_initcount, and l_preinitcount.  Add l_initfini.
7253         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
7254         one for _dl_init.
7255         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
7256         function interface.
7257         * sysdeps/unix/sysv/linux/init-first.h: Removed.
7258         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
7259         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
7260         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
7261         conventions now match.
7262
7263         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
7264         effect for shared objects.  Don't emit message and call only for
7265         static library.
7266
7267 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
7268
7269         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
7270         CSA_Z243.4-1985-1..UCS2.
7271         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
7272         ISO-8859-10..UCS2.
7273
7274 2000-03-29  Andreas Jaeger  <aj@suse.de>
7275
7276         * include/unistd.h: Remove duplicate entry for __rmdir.
7277         Remove declaration of __mkdir since __mkdir is declared in
7278         sys/stat.h.
7279
7280         * manual/creature.texi (Feature Test Macros): Fix typo, reported
7281         by Michael Deutschmann <michael@talamasca.ocis.net>.
7282
7283         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
7284         * sysdeps/mips/fpu/fegetenv.c: Likewise.
7285         * sysdeps/mips/fpu/fesetenv.c: Likewise.
7286         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
7287         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
7288
7289 2000-03-28  Andreas Jaeger  <aj@suse.de>
7290
7291         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
7292         declaration, the prototype is defined via bits/mathcalls.h.
7293         (__sincosf): Likewise.
7294         (__sincosl): Likewise.
7295         (ldexp): Likewise.
7296         (ldexpf): Likewise.
7297         (ldexpl): Likewise.
7298         (__finite): Likewise.
7299         (__inline_mathcodeNP): New macro without prototype
7300         declarations.
7301         (__inline_mathcodeNP2): Likewise.
7302         (__inline_mathcodeNP3): Likewise.
7303         (__inline_mathcodeNP_): Likewise.
7304         (__inline_mathcodeNP2_): Likewise.
7305         (__inline_mathcodeNP3_): Likewise.
7306         (__inline_mathopNP): Likewise.
7307         (__inline_mathop_declNP): Likewise.
7308         (__inline_mathop_declNP_): Likewise.
7309         (__inline_mathcode_): Use __inline_mathcodeNP_.
7310         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
7311         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
7312         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
7313         (__expm1l): Don't define prototype, the prototype is defined via
7314         bits/mathcalls.h.
7315         (exp): Likewise.
7316         (__expl): Likewise.
7317         (tan): Likewise.
7318         (atan2): Likewise.
7319         (__atan2l): Likewise.
7320         (fmod): Likewise.
7321         (pow): Likewise.
7322         (fabsf): Likewise.
7323         (fabsl): Likewise.
7324         (__fabsl): Likewise.
7325         (asin): Likewise.
7326         (acos): Likewise.
7327         (sinh): Likewise.
7328         (cosh): Likewise.
7329         (tanh): Likewise.
7330         (floor): Likewise.
7331         (ceil): Likewise.
7332         (expm1): Likewise.
7333         (log1p): Likewise.
7334         (asinh): Likewise.
7335         (acosh): Likewise.
7336         (atanh): Likewise.
7337         (hypot): Likewise.
7338         (logb): Likewise.
7339         (fma): Likewise.
7340         (drem): Likewise.
7341         (sqrt): Likewise.
7342         (__sqrtl): Likewise.
7343         (sin): Likewise.
7344         (cos): Likewise.
7345         (atan): Likewise.
7346         (log): Likewise.
7347         (log10): Likewise.
7348         (asinh): Likewise.
7349         (log2): Likewise.
7350         (rint): Likewise.
7351
7352 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
7353
7354         * Makerules: If make variable md5 is defined to yes after
7355         generating dependencies generate MD5 sum for the object.
7356
7357         * iconv/gconv_builtin.h: Fix length in transformation definition
7358         for UNICODEBIG.
7359
7360         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
7361
7362         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
7363         allow as well reading from/writing to unaligned addresses on machines
7364         which don't support this in hardware.  Use FCTNAME macro to define
7365         function name.  Include the file a second time for platforms which
7366         need special unaligned handling.
7367         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
7368         to access potentially unaligned addresses.  These macros are intended
7369         to be used only outside the loops.
7370         (unaligned): New definition.  In case the machine can handle unaligned
7371         access define as zero.  Otherwise as a variable which is initialized
7372         as nonzero in case the buffer passed in at runtime is unaligned with
7373         respect to the character set encoding involved.
7374         Call aligned or unaligned looop functions according to unaligned
7375         variable.
7376         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
7377         of direct casting pointer to potentially handle unaligned memory
7378         accesses.
7379         * iconvdata/8bit-generic.c: Likewise.
7380         * iconvdata/ansi_x3.110.c: Likewise.
7381         * iconvdata/big5.c: Likewise.
7382         * iconvdata/euc-cn.c: Likewise.
7383         * iconvdata/euc-jp.c: Likewise.
7384         * iconvdata/euc-kr.c: Likewise.
7385         * iconvdata/euc-tw.c: Likewise.
7386         * iconvdata/gbk.c: Likewise.
7387         * iconvdata/iso-2022-cn.c: Likewise.
7388         * iconvdata/iso-2022-jp.c: Likewise.
7389         * iconvdata/iso-2022-kr.c: Likewise.
7390         * iconvdata/iso646.c: Likewise.
7391         * iconvdata/iso_6937-2.c: Likewise.
7392         * iconvdata/iso_6937.c: Likewise.
7393         * iconvdata/johab.c: Likewise.
7394         * iconvdata/sjis.c: Likewise.
7395         * iconvdata/t.61.c: Likewise.
7396         * iconvdata/uhc.c: Likewise.
7397         * iconvdata/unicode.c: Likewise.
7398         * iconvdata/utf-16.c: Likewise.
7399
7400         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
7401         prototypes.
7402
7403         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
7404         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
7405         public.
7406         * malloc/mcheck.h (mcheck_check_all): Declare.
7407
7408         * stdio-common/Makefile (tests): Add tst-obprintf.
7409
7410 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
7411
7412         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
7413         Declare pthread_sigmask.
7414
7415         * csu/version.c: Add 2000 to copyright years.
7416         Remove Emacs local variables section.
7417
7418 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
7419
7420         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
7421         __gconv_transform_internal_ucs2little): Remove declarations.
7422         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
7423         __gconv_transform_internal_ucs2): Never need to bswap_16.
7424         (__gconv_transform_ucs2reverse_internal,
7425         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
7426
7427 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
7428
7429         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
7430         obsoleting version not being defined at all, in which case the
7431         result is always true.
7432
7433         * Makeconfig (preprocess-versions): New canned sequence for running
7434         cpp on shlib-versions and the like.
7435         (soversions.i): Use it.
7436         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
7437         Versions.def and Versions files.
7438
7439 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
7440
7441         * stdio-common/tst-obprintf.c (main): Add another check to see
7442         obstack_printf handling all possible beginnings of the block
7443         inside an obstack chunk.
7444
7445         * locale/programs/localedef.c: Use __malloc_initialize_hook to
7446         install mcheck handler.
7447
7448         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
7449         handling problem.
7450
7451 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
7452
7453         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
7454
7455         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
7456         on [HAVE_ELF && DO_VERSIONING].
7457
7458 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
7459
7460         * stdio-common/tst-obprintf.c: New file.
7461
7462 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
7463
7464         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
7465         _IO_OVERFLOW directly instead through __overflow.
7466
7467         * locale/programs/localedef.c (construct_output_path): If path
7468         contains a / compute the end of the directory name correctly.
7469
7470         * include/features.h: Undef and document __USE_XOPEN2K.
7471
7472         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
7473         whenever a function is called.  Initiated by calling mcheck_pedantic
7474         instead of mcheck.
7475         * malloc/mcheck.h: Declare mcheck_pedantic.
7476         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
7477         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
7478         for now.
7479
7480 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
7481
7482         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
7483         * dlfcn/dlopenold.c: Likewise.
7484         * nss/getXXbyYY_r.c: Likewise.
7485         * nss/getXXent_r.c: Likewise.
7486         * hurd/hurdinit.c: Likewise.
7487         * hurd/compat-20.c: Likewise.
7488         * libio/oldiofopen.c: Likewise.
7489         * libio/oldiofclose.c: Likewise.
7490         * libio/oldiofdopen.c: Likewise.
7491         * libio/oldfileops.c: Likewise.
7492         * libio/oldstdfiles.c: Likewise.
7493         * libio/oldiofsetpos.c: Likewise.
7494         * libio/oldiofgetpos.c: Likewise.
7495         * libio/oldiofgetpos64.c: Likewise.
7496         * libio/oldiofsetpos64.c: Likewise.
7497         * libio/oldiopopen.c: Likewise.
7498         * libio/oldpclose.c: Likewise.
7499         * libio/oldtmpfile.c: Likewise.
7500         * libio/freopen.c (freopen): Likewise.
7501         * libio/iofclose.c (_IO_new_fclose): Likewise.
7502
7503         * sysdeps/mach/sys/reboot.h: Include <features.h>.
7504         (reboot): Declare it.
7505
7506         * libio/Makefile (headers): Add bits/stdio-lock.h here.
7507
7508         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
7509
7510         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
7511
7512         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
7513         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
7514         We need this for the sbrk decl, which can be included without Unix98.
7515
7516 2000-03-20  Richard Henderson  <rth@cygnus.com>
7517
7518         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
7519         argument to yperr2nss is an int, not size_t.
7520         * posix/regex.c (print_partial_compiled_pattern): Cast all
7521         ptrdiff_t to long for printing.
7522         (print_compiled_pattern): Use Z for printing size_t.
7523         * posix/testfnm.c (tests): Avoid trigraphs.
7524         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7525         Use a C comment, not an assembly comment.
7526
7527         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
7528         of __ASSUME_32BITUIDS.
7529
7530 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
7531
7532         * libio/iofopncook.c: Remove K&R prototypes.
7533
7534 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
7535
7536         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
7537         an initial value of 1024 instead of RLIM_INFINITY.
7538
7539         * Versions.def (libmachuser, libhurduser): Remove these sections,
7540         since these libraries do not presently use symbol versions.
7541
7542         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
7543         is RLIM_INFINITY, return -1 instead.
7544
7545 2000-03-24  Andreas Jaeger  <aj@suse.de>
7546
7547         * Makefile (postclean): Added soversions.i.
7548
7549 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
7550
7551         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
7552         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
7553         and _FPU_IEEE.  Change _FPU_RESERVED.
7554
7555 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
7556
7557         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
7558
7559 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
7560
7561         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
7562         (gaih_inet): Remove unused duplicate variable.
7563
7564         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
7565         Don't use __libc_sa_len, which only exists for Linux.  Just handle
7566         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
7567         only flavors supported by this function anyway.
7568
7569 2000-03-24  Geoff Clare  <gwc@unisoft.com>
7570
7571         * stdlib/strfmon.c: Corrected problems with missing signs and
7572         missing or extra spaces; allow for sign strings longer than
7573         one character; add padding to ensure positive and negative
7574         formats are aligned when a left precision is used.
7575
7576 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
7577
7578         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
7579         Patch by John Mizel <John.Mizel@msdw.com>.
7580
7581 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
7582
7583         * manual/install.texi: Remove references to crypt add-on.
7584
7585 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
7586
7587         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
7588         section while taking the _hurd_rlimit_lock.
7589         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
7590
7591 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
7592
7593         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
7594         using $(LN_S).
7595
7596         * sysdeps/mach/hurd/if_index.c: New file.
7597
7598         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
7599         * sysdeps/gnu/net/if.h: here.
7600         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
7601         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
7602         * sysdeps/generic/net/if.h: New file.  Declares just the standard
7603         functions and `struct if_nameindex' type.
7604         * socket/Makefile (headers): Add net/if.h here.
7605         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
7606         * sysdeps/mach/hurd/Dist: Remove it here.
7607         * sysdeps/unix/sysv/linux/Dist: And here.
7608         * sysdeps/generic/if_index.c: Include <net/if.h>.
7609
7610 2000-03-24  Andreas Jaeger  <aj@suse.de>
7611
7612         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
7613         access relocated entries in l_info.
7614         (elf_machine_got_rel): Likewise.
7615         (elf_machine_runtime_setup): Likewise.
7616         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
7617         (elf_machine_runtime_setup): Likewise.
7618         (__dl_runtime_resolve): Likewise.
7619
7620 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
7621
7622         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
7623         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
7624         according to RFC 2553.
7625         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
7626         * inet/getnameinfo.c: Likewise.
7627         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
7628
7629 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
7630
7631         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
7632         Remove no-op pointer increment.
7633
7634 2000-03-23  Andreas Jaeger  <aj@suse.de>
7635
7636         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
7637         follow change for libio.h from 2000-03-10.
7638
7639 2000-03-23  Andreas Jaeger  <aj@suse.de>
7640
7641         * elf/dl-addr.c: Adjust include paths for ldsodefs location
7642         change.
7643         * elf/dl-debug.c: Likewise.
7644         * elf/dl-deps.c: Likewise.
7645         * elf/dl-error.c: Likewise.
7646         * elf/dl-fini.c: Likewise.
7647         * elf/dl-init.c: Likewise.
7648         * elf/dl-load.c: Likewise.
7649         * elf/dl-lookup.c: Likewise.
7650         * elf/dl-minimal.c: Likewise.
7651         * elf/dl-object.c: Likewise.
7652         * elf/dl-open.c: Likewise.
7653         * elf/dl-preinit.c: Likewise.
7654         * elf/dl-profile.c: Likewise.
7655         * elf/dl-profstub.c: Likewise.
7656         * elf/dl-reloc.c: Likewise.
7657         * elf/dl-runtime.c: Likewise.
7658         * elf/dl-support.c: Likewise.
7659         * elf/dl-symbol.c: Likewise.
7660         * elf/dl-version.c: Likewise.
7661         * elf/rtld.c: Likewise.
7662         * elf/sprof.c: Likewise.
7663         * sysdeps/generic/dl-cache.c: Likewise.
7664         * sysdeps/generic/dl-origin.c: Likewise.
7665         * sysdeps/generic/dl-sysdep.c: Likewise.
7666         * sysdeps/generic/elf/backtracesyms.c: Likewise.
7667         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7668         * sysdeps/generic/libc-start.c: Likewise.
7669         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7670         * sysdeps/powerpc/dl-machine.c: Likewise.
7671         * sysdeps/powerpc/elf/libc-start.c: Likewise.
7672         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7673         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7674         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7675
7676         * elf/ldsodefs.h: Move file to ...
7677         * sysdeps/generic/ldsodefs.h: ... here.
7678
7679         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
7680
7681         * sysdeps/mips/elf/ldsodefs.h: New file.
7682
7683         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
7684         entries in l_info.
7685         (_dl_check_map_versions): Likewise.
7686         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7687         * elf/dl-load.c (_dl_init_paths): Likewise.
7688         (_dl_map_object): Likewise.
7689         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
7690         (elf_get_dynamic_info): Likewise.
7691         * elf/do-lookup.h (FCT): Likewise.
7692         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
7693         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7694         * elf/dl-addr.c (_dl_addr): Likewise.
7695         * elf/dl-runtime.c (profile_fixup): Likewise.
7696         (fixup): Likewise.
7697         * elf/dl-init.c (_dl_init_next): Likewise.
7698         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
7699         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
7700         (DISTINGUISH_LIB_VERSIONS): Likewise.
7701         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
7702         (elf_machine_rel): Likewise.
7703
7704         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
7705         for writable dynamic section.
7706
7707 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
7708
7709         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
7710         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
7711
7712 2000-03-22  Andreas Jaeger  <aj@suse.de>
7713
7714         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
7715         from latest Linux kernel.
7716
7717 2000-03-21  Andreas Jaeger  <aj@suse.de>
7718
7719         * Versions.def: Add version 2.1.4.
7720
7721 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
7722
7723         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
7724         * libio/oldiofopen.c: Likewise.
7725         * libio/oldiofclose.c: Likewise.
7726         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7727
7728 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
7729
7730         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
7731         indicating the first version set to obsolete the conditionalized code.
7732         (compat_symbol): New macro.
7733         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
7734         rhs be the ABI_* macro for the subsuming version.  Assign increasing
7735         integer values to the ABI_* macros for supported versions.
7736         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
7737         compat_symbol macro.
7738
7739 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
7740
7741         * nscd/connections.c (nscd_run): Pretty print.
7742         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
7743
7744         * manual/charset.texi: Fix typos.  Rephrase.
7745         * manual/process.texi: Likewise.
7746         * manual/signal.texi: Likewise.
7747         Patches by Mike Coleman <mkc@kc.net>.
7748
7749         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
7750         versions.
7751         * libio/iofdopen.c: Likewise.
7752         * libio/iofgetpos.c: Likewise.
7753         * libio/iofgetpos64.c: Likewise.
7754         * libio/iofopen.c: Likewise.
7755         * libio/iofsetpos.c: Likewise.
7756         * libio/iofsetpos64.c: Likewise.
7757         * libio/iopopen.c: Likewise.
7758         * libio/oldiofopen.c: Likewise.
7759         * libio/pclose.c: Likewise.
7760         * sysdeps/gnu/siglist.c: Likewise.
7761         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7762
7763         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
7764         chance to expand VERSION_##lib##_##version.
7765
7766         * libio/fileops.c: Use new macros from shlib-compat.h to define
7767         versions.
7768         * libio/iofclose.c: Likewise.
7769         * libio/oldiofclose.c: Likewise.
7770         Patch by Roland McGrath <roland@frob.com>.
7771
7772 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
7773
7774         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
7775         Lay out struct sigcontext according to what really gets passed on
7776         the stack.
7777         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
7778         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
7779         (prgregset_t, prfpregset_t): Define to elf_* types.
7780         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
7781         Define to correct value.
7782         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
7783         sigcontext.
7784         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
7785
7786 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
7787
7788         * scripts/firstversions.awk: Allow multiple version sets in the
7789         "earliest version" specification, meaning that version sets in the
7790         gaps between listed versions should be folded into the earliest later
7791         version that is explicitly listed.
7792         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
7793         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
7794
7795 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
7796
7797         * iconv/gconv_builtin.c: Include <endian.h>.
7798         * iconv/gconv_builtin.h: Add UCS-BE aliases.
7799         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
7800         according to current platform.
7801         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
7802         __gconv_transform_internal_ucs2reverse, and
7803         __gconv_transform_internal_ucs4le.
7804         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
7805         __gconv_transform_ucs2reverse_internal and
7806         __gconv_transform_internal_ucs2reverse.
7807         * iconvdata/Makefile (modules): Add UNICODE.
7808         (distribute): Add unicode.c.
7809         * iconvdata/gconv-modules: Add definitions for UNICODE module.
7810         * iconvdata/unicode.c: New file.
7811
7812         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
7813         determine byte order of input and convert accordingly.
7814
7815         * iconvdata/utf-16.c (gconv_init): Fix typo.
7816
7817 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
7818
7819         * iconvdata/gconv-modules: Fix typo.
7820
7821         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
7822         more messages.
7823
7824         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
7825
7826 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
7827
7828         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
7829
7830 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
7831
7832         * misc/Makefile (routines): Add mincore.
7833
7834 2000-03-20  Andreas Jaeger  <aj@suse.de>
7835
7836         * sysdeps/generic/mincore.c: New stub file.
7837
7838         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
7839         from latest Linux kernel.
7840
7841 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
7842
7843         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
7844         _SC_GETPW_R_SIZE_MAX.
7845
7846 2000-03-20  Richard Henderson  <rth@cygnus.com>
7847
7848         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
7849         in GLIBC_2.1.4.
7850
7851 2000-03-20  Richard Henderson  <rth@cygnus.com>
7852
7853         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
7854         of arithmetic instructions.
7855
7856         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
7857         with the fpcr.  Protect from INV exception.
7858         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7859         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
7860         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7861
7862         * sysdeps/alpha/fpu/s_copysign.c: New.
7863         * sysdeps/alpha/fpu/s_copysignf.c: New.
7864         * sysdeps/alpha/fpu/s_fabs.c: New.
7865         * sysdeps/alpha/fpu/s_fabsf.c: New.
7866         * sysdeps/alpha/fpu/s_rint.c: New.
7867         * sysdeps/alpha/fpu/s_rintf.c: New.
7868
7869         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
7870
7871         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
7872         Kill sethae.
7873         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
7874         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
7875         Use physical addresses not KSEG addresses.
7876         (io_system): Add PYXIS.
7877         (io): Remove hae.reg, sys, hae_shift.
7878         (stb_mb, stw_mb, stl_mb, __sethae): New.
7879         (inline_outb, inline_outw, inline_outl): Don't set hae.
7880         (inline_inb, inline_inw, inline_inl): Likewise.
7881         (dense_sethae): New null function.
7882         (struct cpuinfo_data): New.
7883         (process_cpuinfo): Use local and stack variables, not static.
7884         Move readlink check here from init_iosys.
7885         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
7886         (_iopl): Simplify.
7887         (_hae_shift): Calculate it here.
7888         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
7889         add pciconfig_iobase.
7890
7891 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
7892
7893         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
7894         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
7895
7896         * scripts/versions.awk: Fixed version renaming code to distinguish
7897         libraries properly.
7898
7899 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
7900
7901         * include/stdlib.h: Add prototype for __cxa_atexit.
7902
7903         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
7904         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
7905
7906 2000-03-17  Cristian Gafton  <gafton@redhat.com>
7907
7908         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
7909         existing rtld-installed-name.
7910         ($(rtld-installed-name)): Request libc-$(version) be installed too.
7911         replace existing rtld-installed-name using $(symbolic-link-prog).
7912
7913 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
7914
7915         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
7916         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
7917         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
7918         but not the former.
7919
7920 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
7921
7922         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
7923         glob64.  Since there is no glob64 in the LFS proposal applications
7924         can assume that glob handles LFS situations.  glob64 is only needed
7925         if alternative filesystem functions are used.
7926
7927 2000-03-19  Geoff Clare  <gwc@unisoft.com>
7928
7929         * sysdeps/generic/glob.c: Correct gl_pathc value returned
7930         when GLOB_DOOFFS is set; correct handling of patterns
7931         containing escaped wildcards (and no unescaped ones);
7932         GLOB_ERR flag was being ignored in some situations.
7933
7934         * posix/globtest.c, posix/globtest.sh: Updated to include
7935         tests for the problems fixed by the above changes to glob.c.
7936
7937         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
7938
7939 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
7940
7941         * Makeconfig (soversion.i): Use only first match for each lib.
7942
7943         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
7944
7945         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
7946         rather than $(sysd-dirs-done) to protect these rules.
7947
7948         * Makerules (version-renames.def): Target removed.
7949         (Versions.all): Depend on soversions.i directly and parse it.
7950
7951         * Makeconfig (soversions.i): New target, input-reading parts of
7952         soversions.mk generation moved here; result is a canonicalized
7953         list "LIB VERSION [SET]" for this configuration.
7954         (soversions.mk): Use that as input.  Don't emit map-firstversions.
7955         * Makerules (version-renames.def): New target, generated from
7956         soversions.i with contents that was in $(map-firstversions).
7957         (Versions.all): Don't depend on soversions.mk, depend on
7958         version-renames.def instead; just cat it into the input.
7959
7960         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
7961         for $(map-firstversions), which better handles it being empty.
7962
7963         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
7964         supported version for libc 0.2.90.libio to GLIBC_2.2.
7965
7966         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
7967         and use it to emit new variable `map-firstversions'.
7968         * scripts/firstversions.awk: New file.
7969         * Makerules (Versions.all): Use scripts/firstversions.awk and
7970         the $(map-firstversions) value to generate a modified versions list
7971         that includes renames in "A = B" syntax for each version set earlier
7972         than the "earliest symbol version" named in shlib-versions.
7973         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
7974         rename version set A to B in the output to the intermediate file.
7975         * scripts/abi-versions.awk: New file.
7976         * Makerules (abi-versions.h): New target, generated by that script.
7977         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
7978         * include/shlib-compat.h: New file, uses that generated header.
7979
7980 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
7981
7982         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
7983         after stripping # comments, and then run it through cpp.
7984         This allows things like "%ifdef FOO" based on config.h settings.
7985         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
7986
7987         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
7988         and other errors that indicate a pseudo-receive happened, grok through
7989         the message buffer for port rights that need references fixed up.
7990
7991 2000-03-16  Andreas Jaeger  <aj@suse.de>
7992
7993         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
7994
7995         * sysdeps/unix/sysv/linux/madvise.c: Remove.
7996
7997         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
7998         from latest Linux kernel.
7999         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
8000
8001         * misc/sys/mman.h: Add prototype for mincore.
8002
8003 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
8004
8005         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
8006         entry for GLIBC_2.0 version of setrlimit.
8007         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
8008
8009 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
8010
8011         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
8012         * nis/nss_compat/compat-initgroups.c: Likewise.
8013         * nis/nss_nis/nis-initgroups.c: Likewise.
8014         * nis/nss_nis/nis-netgrp.c: Likewise.
8015         * nis/nss_nis/nis-proto.c: Likewise.
8016         * nis/nss_nis/nis-rpc.c: Likewise.
8017         * nis/nss_nis/nis-service.c: Likewise.
8018         * nis/ypclnt.c: Likewise.
8019
8020 2000-03-16  Andreas Jaeger  <aj@suse.de>
8021
8022         * manual/Makefile: MAKEINFO is set to `:' from configure if it
8023         doesn't exist, correct checks.  Fixes PR libc/1649.
8024
8025 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
8026
8027         * nscd/hstcache.c: Restore correct UID.
8028         * nscd/pwdcache.c: Likewise.
8029         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
8030
8031 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
8032
8033         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
8034         macros for register names, in line with 2000-03-14 linux change.
8035
8036         * sysdeps/mach/sched_yield.c: New file.
8037
8038 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
8039
8040         * sysdeps/generic/lockfile.c: Include <stdio.h>
8041         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
8042         case <libio.h> defined them.
8043         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
8044         from __internal_*.
8045         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
8046         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
8047
8048         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
8049         for more pleasing parse error.
8050
8051 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
8052
8053         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
8054         memory for eras.
8055         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
8056
8057         * elf/Makefile: Add rules to compile and run constload1 test.
8058         * elf/constload1.c: New file.
8059         * elf/constload2.c: New file.
8060         * elf/constload3.c: New file.
8061
8062 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
8063
8064         * sysdeps/posix/open64.c: Make __open64 weak alias.
8065         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
8066         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8067         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
8068         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8069         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8070         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
8071         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8072         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
8073         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8074         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8075
8076 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
8077
8078         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
8079         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
8080
8081 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
8082
8083         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
8084         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
8085
8086 2000-03-08  Andreas Jaeger  <aj@suse.de>
8087
8088         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
8089
8090 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
8091
8092         * timezone/africa: Update from tzdata2000d.
8093         * timezone/asia: Likewise.
8094         * timezone/australasia: Likewise.
8095         * timezone/europe: Likewise.
8096         * timezone/northamerica: Likewise.
8097         * timezone/southamerica: Likewise.
8098
8099         * po/fr.po: Update from translation team.
8100         * po/de.po: Likewise.
8101
8102         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
8103         last parameter.  Move code to add map to global scope from here...
8104         * elf/dl-open.c (dl_open_worker): ...here.
8105         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
8106         * elf/rtld.c: Adjust call to _dl_map_object_deps.
8107
8108         * locale/programs/ld-collate.c (collate_read): Fix warning.
8109
8110         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
8111         values and macros for register names.
8112
8113         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
8114         returned by seek cookie function is -1.
8115
8116 2000-03-14  Andreas Jaeger  <aj@suse.de>
8117
8118         * locale/localeconv.c (localeconv): Fix typo.
8119         Reported by Andre Charbonneau <andrec@corel.com>.
8120
8121 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
8122
8123         * iconv/skeleton.c: Increment __invocation_counter in inner loop
8124         since modules depend on it counting the number of times the conversion
8125         function got called.
8126
8127         * iconv/gconv_open.c: Optimize loop to setup step data structure.
8128
8129         * iconv/gconv.h: Pretty print.
8130
8131 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
8132
8133         * posix/wordexp-test.c: Correct one of the tests added in the last
8134         change.  Really get the root passwd entry to check again ~root.
8135
8136 2000-03-10  Andreas Jaeger  <aj@suse.de>
8137
8138         * manual/filesys.texi (Working Directory): Fix last patch.
8139         Patch by Martin Buchholz  <martin@xemacs.org>.
8140
8141 2000-03-10  Andreas Jaeger  <aj@suse.de>
8142
8143         * manual/creature.texi (Feature Test Macros): Fix language.
8144
8145 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
8146
8147         * mach/devstream.c (devstream_write, devstream_read): New functions.
8148         (input, output): Functions removed.
8149         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
8150         using only the vanilla fopencookie interface.
8151
8152         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
8153         as macro for __io_functions.
8154         (funcsio): Use cookie_io_functions_t type name.
8155         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
8156
8157         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
8158         fopencookie.
8159         (fopencookie): Use it.
8160         * libio/libio.h: Declare _IO_cookie_init.
8161         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
8162         _IO_cookie_init.
8163
8164         * libio/libio.h (__io_seek_fn): Fix second argument type
8165         to be a pointer, in line with the manual and the old stdio.
8166         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
8167
8168         * sysdeps/generic/bits/stdio-lock.h: New file.
8169         This is a stub with #error, but that's better than no file at all.
8170
8171 2000-03-09  Martin Buchholz  <martin@xemacs.org>
8172
8173         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
8174         * manual/message.texi (Using gettextized software): Doc Fixes.
8175         * manual/message.texi (Message Translation): Doc Fixes.
8176         * manual/filesys.texi (File Size): Doc Fixes.
8177         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
8178         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
8179         * iconv/gconv_db.c (find_derivation): Doc Fixes.
8180         * manual/install.texi: Doc Fixes.
8181         * manual/search.texi (Hash Search Function): Doc Fixes.
8182         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
8183         * FAQ.in: Doc Fixes.
8184         * config.h.in: Doc Fixes.
8185         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
8186         Doc Fixes.  `allows to' is not correct English.
8187
8188         * elf/rtld.c: Doc fixes.
8189         * manual/creature.texi (Feature Test Macros): Doc fixes.
8190         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
8191
8192         * manual/filesys.texi (Working Directory): Check for ERANGE to
8193         avoid infloop.
8194
8195 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
8196
8197         * string/argz-stringify.c (__argz_stringify): Fix loop termination
8198         conditions so as not to clobber the final '\0' when there is only one
8199         element in the vector.
8200
8201 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
8202
8203         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
8204         broken by 2000-02-27 change.
8205
8206         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
8207
8208 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
8209
8210         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
8211         argument type, for 2000-02-22 change in signal/signal.h declaration.
8212
8213 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
8214
8215         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
8216         to getdirentries64 (no __), since the Linux implementation
8217         has no __ name, and there is no declaration for the __ name.
8218
8219         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
8220
8221         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
8222         sed regexp so as not to break directory names including /../ within.
8223
8224         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
8225         The sysdeps/generic file is right for BSD.  This file was in fact the
8226         Hurd file, but the only difference was the WNOREAP flag that was never
8227         actually implemented or used anywhere.
8228
8229         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
8230         since AC_PATH_PROG already does it for us.
8231         (PERL): Rewrite check added in 2000-02-29 change for syntactic
8232         correctness and sh portability.  I replaced the broken check
8233         with a more sensible implementation of the apparently intended
8234         semantics, which might still be questionable.  Using expr causes
8235         a non-numeric value for `perl -V:apiversion` to be accepted,
8236         refusing to use only a perl that reports a number less than 5;
8237         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
8238         * configure: Regenerated.
8239
8240 2000-03-08  Andreas Jaeger  <aj@suse.de>
8241
8242         * manual/crypt.texi: Fix paths.
8243
8244 2000-03-07  Andreas Jaeger  <aj@suse.de>
8245
8246         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
8247         were swapped.
8248         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
8249         libc/1636.
8250
8251 2000-03-06  Andreas Jaeger  <aj@suse.de>
8252
8253         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
8254         in __sgn1l, otherwise g++ fails to parse this.
8255         Reported by Sean Chen <sean.chen@turbolinux.com>.
8256
8257 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
8258
8259         * configure.in: Compute sizeof-long-double.
8260         * configure: Regenerated.
8261         * config.make.in: Make sizeof-long-double available to sub-makes.
8262
8263 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
8264
8265         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
8266         call.
8267
8268 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
8269
8270         * Makeconfig (rpath-dirs): Add crypt.
8271         (all-subdirs): Remove md5crypt.
8272         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
8273         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
8274         * sysdeps/generic/crypt-entry.c: Delete.
8275         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
8276         * sysdeps/generic/crypt.h: Delete.
8277         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
8278         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
8279         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
8280         * sysdeps/generic/des_impl.c: Delete.
8281         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
8282         * crypt/sysdeps: Delete.
8283         * crypt/crypt_util.c: Don't use `patchlevel.h'.
8284         * md5-crypt/Versions: Move to crypt/.
8285         * md5-crypt/md5-crypt.c: Move to crypt/.
8286         * md5-crypt/md5.c: Move to crypt/.
8287         * md5-crypt/md5c-test.c: Move to crypt/.
8288         * md5-crypt/md5test.c: Move to crypt/.
8289         * md5-crypt: Delete.
8290         * crypt/Makefile: Adjust for new structure.
8291
8292 2000-03-03  Paul Eggert  <eggert@twinsun.com>
8293
8294         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
8295         define to 1 if not defined.
8296
8297 2000-03-03  Andreas Jaeger  <aj@suse.de>
8298
8299         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
8300
8301 2000-03-03  Andreas Jaeger  <aj@suse.de>
8302
8303         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
8304         cases.
8305         (xdr_int64_t): Correctly handle lower half.
8306         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
8307
8308 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
8309
8310         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
8311         call.
8312
8313 2000-03-02  Andreas Jaeger  <aj@suse.de>
8314
8315         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
8316         2.3.43.
8317
8318 2000-03-02  Andreas Jaeger  <aj@suse.de>
8319
8320         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
8321
8322 2000-03-01  Andreas Jaeger  <aj@suse.de>
8323
8324         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
8325         (tests): Added tst-getdate.
8326
8327         * time/tst-getdate.c: New file.
8328
8329         * time/datemsk: New file, needed for tst-getdate.
8330
8331 2000-02-29  Cristian Gafton  <gafton@redhat.com>
8332
8333         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
8334
8335 2000-02-17  H.J. Lu  <hjl@gnu.org>
8336
8337         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
8338
8339         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
8340         available.
8341         (svcudp_recv): Set up message with the new "xp_pad" field for
8342         IP_PKTINFO.
8343         (svcudp_reply): Support IP_PKTINFO if available.
8344
8345 2000-03-01  Andreas Jaeger  <aj@suse.de>
8346
8347         * time/getdate.c (check_mday): Fix check for february.
8348         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
8349         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
8350
8351 2000-03-02  Andreas Jaeger  <aj@suse.de>
8352
8353         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
8354         g++ fails to parse this.
8355         Reported by Sean Chen <sean.chen@turbolinux.com>.
8356
8357 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
8358
8359         * io/creat.c: Moved to...
8360         * sysdeps/generic/creat.c: ...here.
8361         * io/creat64.c: Moved to...
8362         * sysdeps/generic/creat64.c: ...here.
8363         * io/lockf.c: Moved to...
8364         * sysdeps/generic/lockf.c: ...here.
8365
8366         * crypt/crypt.texi: Moved to...
8367         * manual/crypt.texi: ...here.
8368         * crypt/examples/genpass.c: Moved to...
8369         * manual/examples/genpass.c: ...here.
8370         * crypt/examples/mygenpass.c: Moved to...
8371         * manual/examples/mygenpass.c: ...here.
8372         * crypt/examples/testpass.c: Moved to...
8373         * manual/examples/testpass.c: ...here.
8374
8375         * manual/Makefile (chapters): Add crypt.
8376         * manual/conf.texi: Add usual header for not-last chapter.
8377         * manual/crypt.texi: Add special header for last chapter.
8378
8379 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
8380
8381         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
8382         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
8383         complain if there is no crypt add-on.
8384         * crypt/configure: Removed.
8385
8386         * crypt/crypt.texi: Update documentation of US export restrictions
8387         to match the 14 Jan 2000 regulations.
8388
8389 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
8390
8391         * crypt: New subdirectory, merged in from the crypt add-on.
8392
8393 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
8394
8395         * include/unistd.h: Add __rmdir and __mkdir prototypes.
8396
8397
8398 See ChangeLog.10 for earlier changes.