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