Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-05-18  Andreas Jaeger  <aj@suse.de>
2
3         * manual/arith.texi (Parsing of Integers): Fix typo.
4         Closes PR libc/1744, reported by blp@gnu.org.
5
6 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7
8         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
9         __extension__ to hexadecimal floating constant notation.
10         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
11         Likewise.
12         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
13         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
14         Likewise.
15         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
16         HUGE_VALL): Likewise.
17         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
18         HUGE_VALL): Likewise.
19         (HUGE_VALL): Set to HUGE_VAL on sparc32.
20
21 2000-05-17  Andreas Jaeger  <aj@suse.de>
22
23         * string/envz.h: Add pure attributes if possible.
24
25         * string/argz.h: argz_count is a pure function.
26
27         * string/strings.h: Add pure and const attributes if possible.
28
29         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
30         possibly searching through the whole memory.
31         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
32
33 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
34
35         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
36         not yet defined.
37         (_dl_cache_check_flags): Likewise.
38         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
39         dl-cache.h.
40
41 2000-05-17  Andreas Jaeger  <aj@suse.de>
42
43         * manual/creature.texi (Feature Test Macros): Remove paragraph
44         since the description is wrong.
45         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
46
47         * scripts/config.sub: New version.
48         * scripts/config.guess: Likewise.
49         * manual/texinfo.tex: Likewise.
50
51         * time/test_time.args: Removed.
52         * time/Makefile (test_time-ARGS): Added contents here instead.
53
54         * posix/tstgetopt.args: Removed.
55         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
56
57         * Rules: Allow arguments for test files to be specified in
58         Makefile with testname-ARGS; remove rules with .args in it.
59
60         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
61         remove old bogus rule for opendir-tst1.args.
62
63         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
64
65         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
66         into objdir.  This allows a readonly sourcetree.
67         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
68
69 2000-05-16  Andreas Jaeger  <aj@suse.de>,
70             David Huggins-Daines <dhd@linuxcare.com>
71
72         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
73         cache_data in case of only new cache format correctly.
74
75         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
76         cache_file_new.
77
78         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
79         struct cache_file_new.
80
81         * elf/cache.c (save_cache): Fix str_offset if only new cache is
82         present.
83
84         * elf/cache.c (save_cache): Align struct new_file_cache.
85         (print_cache): Likewise.
86
87 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
88
89         * elf/soinit.c (__libc_global_ctors): Move
90         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
91         * resolv/resolv.h (__res_state): Added __attribute__((const)).
92         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
93         variable, don't define it to __res_state call.
94
95 2000-05-13  Andreas Jaeger  <aj@suse.de>
96
97         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
98         Linux 2.3.99pre7.
99         (AF_PPPOX): Likewise.
100         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
101         (AF_PPPOX): Likewise.
102
103 2000-05-12  Andreas Jaeger  <aj@suse.de>
104
105         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
106         Reported by tmoestl@gmx.net, closes PR libc/1732.
107
108 2000-05-11  Jan Hubicka  <jh@suse.cz>
109
110         * misc/sys/cdefs.h: Add support for pure attribute.
111
112         * include/string.h: Add __attribute_pure__ to various functions.
113         * string/string.h: Likewise.
114
115 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
116
117         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
118         argument.
119         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
120         R_SPARC_UA64.
121         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
122
123 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
124
125         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
126         at proper place.  Compute the high nibble correctly.
127
128 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
129
130         * elf/ldconfig.c: Include elf.h.
131
132         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
133         (_dl_vsym): Likewise.
134         Reported by Owen Taylor <otaylor@redhat.com>.
135
136         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
137         always.
138
139 2000-05-08  Andreas Jaeger  <aj@suse.de>
140
141         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
142
143         * intl/bindtextdom.c (set_binding_values): Add prototype.
144
145 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
146
147         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
148         call to elf_machine_fixup_plt.
149         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
150         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
151
152 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
153
154         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
155         they are not dlclose'd from underneath us.
156
157 2000-05-08  Andreas Schwab  <schwab@suse.de>
158
159         * posix/execle.c: Fix size parameter of memcpy.
160
161 2000-05-08  Andreas Schwab  <schwab@suse.de>
162
163         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
164         getpagesize syscall if available.
165
166 2000-05-08  Andreas Jaeger  <aj@suse.de>
167
168         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
169         set errno.
170
171 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
172
173         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
174         sizeof(struct link_map *) chunks, not in bytes.
175
176 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
177
178         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
179         only needed for locale.
180         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
181         It's only needed for catgets.
182         Patches by Greg McGary <gkm@eng.ascend.com>.
183
184 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
185
186         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
187         Remove duplicate <errno.h> include.  Remove inclusion of
188         <libintl.h> and "nsswitch.h".
189         (set_cloexec_flag): New function, broken out of dbopen.
190         (dbopen): Changed return type to `enum
191         nss_status'.  Mostly rewritten to make sure that we do not report
192         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
193         (internal_setent): Change return type to nss_status.
194         Document, and make sure that the function
195         behaves accordingly.  Make dynamically loading the database
196         library really thread-safe and return NSS_STATUS_UNAVAIL if it
197         failed.
198         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
199         unecessary casts.
200         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
201         documentation.
202         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
203         c_get function member.
204         * nss/nss_db/nss_db.h: Add and tweak some comments.
205         (DBT): Move typedef before NSS_DBC typedef.
206         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
207
208 2000-05-07  H.J. Lu  <hjl@gnu.org>
209
210         * csu/initfini.c: Moved to ....
211         * sysdeps/generic/initfini.c: ...here.
212
213         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
214
215 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
216
217         * manual/resource.texi: Document POSIX scheduling functions.
218         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
219
220         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
221         reading anything.  Reported by Andries.Brouwer@cwi.nl.
222
223         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
224         for x since promotion in comparison might leads to unexpected
225         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
226
227         * iconv/Makefile (tests): Add tst-iconv1.
228         * iconv/tst-iconv1.c: New file.
229         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
230         empty input buffer over full output buffer.
231         (ucs4_internal_loop): Likewise.
232         (ucs4_internal_loop_unaligned): Likewise.
233         (internal_ucs4le_loop): Likewise.
234         (internal_ucs4le_loop_unaligned): Likewise.
235         (ucs4le_internal_loop): Likewise.
236         (ucs4le_internal_loop_unaligned): Likewise.
237         Reported by yaoz@nih.gov.
238
239 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
240
241         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
242         returned != __GCONV_OK, there is nothing to clean up.
243
244 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
245
246         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
247         OUTPUT_CHARSET environment variables.
248
249 2000-05-06  Andreas Jaeger  <aj@suse.de>
250
251         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
252         (struct cache_file_new): New.
253         (struct file_entry): New (moved from cache.c).
254         (struct cache_file): New (moved from cache.c).
255
256         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
257         from _dl_load_cache_lookup.
258         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
259         the different cache formats.
260         New variable cache_new for new format.
261
262         * elf/ldconfig.h: Change according to changes in cache.c and
263         ldconfig.c; remove cache_libcmp; add opt_format.
264
265         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
266         stuff that's defined in those headers.
267         Add hwcap to struct lib_entry.
268         (opt_format): New variable to select cache format.
269         (options): Add format parameter.
270         (is_hwcap): New function.
271         (path_hwcap): New function.
272         (parse_opt): Handle new format parameter.
273         (search_dir): Handle hwcap, search also subdirectories with hwcap.
274
275         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
276         ldconfig is part of glibc.
277         Include dl-cache.h and remove stuff that's defined there.
278         (struct cache_entry): Add new member hwcap.
279         (print_entry): Print hwcap, cleanup a bit.
280         (print_cache): Print new and old formats.
281         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
282         (save_cache): Save new and old formats.
283         (add_to_cache): Handle hwcap.
284
285         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
286         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
287         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
288         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
289         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
290         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
291
292 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
293
294         * intl/dcigettext.c (alignof): New macro.
295         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
296         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
297         freemem_size to 0.
298
299 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
300
301         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
302         return value.
303
304 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
305
306         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
307         (mempcpy): Correct typo is parameter list.
308
309 2000-05-06  Andreas Jaeger  <aj@suse.de>
310
311         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
312         functions unless -ffast-math is given to gcc.
313
314 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
315
316         * po/ko.po: Update from translation team.
317
318 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
319
320         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
321         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
322         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
323         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
324         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
325         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
326
327         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
328         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
329         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
330
331         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
332         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
333         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
334         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
335
336         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
337         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
338
339 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
340
341         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
342         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
343
344         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
345         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
346
347         * sysdeps/ia64/Implies: New file.
348         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
349         * sysdeps/ia64/Makefile: New file.
350         * sysdeps/ia64/gmp-mparam.h: New file,
351
352         * sysdeps/ia64/elf/start.S: New file.
353
354         * sysdeps/ia64/bits/fenv.h: New file.
355
356 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
357
358         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
359
360 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
361
362         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
363         ia64 has 64 bit .hash entries just as the Alpha.
364
365 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
366
367         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
368
369 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
370
371         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
372         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
373         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
374         * sysdeps/ia64/fpu/fegetenv.c: New file.
375         * sysdeps/ia64/fpu/fegetexcept.c: New file.
376         * sysdeps/ia64/fpu/fegetround.c: New file.
377         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
378         * sysdeps/ia64/fpu/fesetenv.c: New file.
379         * sysdeps/ia64/fpu/fesetround.c: New file.
380         * sysdeps/ia64/fpu/feupdateenv.c: New file.
381         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
382         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
383         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
384         * sysdeps/ia64/fpu/ftestexcept.c: New file.
385
386 2000-05-05  Andreas Jaeger  <aj@suse.de>
387
388         * misc/tst-tsearch.c (main): Correct type for initstate argument.
389
390         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
391         (_dl_string_hwcap): New, does nothing.
392
393         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
394         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
395         (_dl_string_hwcap): New function, converts from string to hwcap
396         encoding.
397         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
398         (_DL_HWCAP_COUNT): New.
399         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
400         (_dl_string_hwcap): New function, converts from string to hwcap
401         encoding.
402         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
403         (_DL_HWCAP_COUNT): New.
404         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
405         (_dl_string_hwcap): New function, converts from string to hwcap
406         encoding.
407
408 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
409
410         * elf/Makefile (distribute): Add dl-lookupcfg.h.
411         * sysdeps/ia64/Dist: New file.
412
413         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
414         parameter to mprotect and for variable assignments.
415
416 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
417
418         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
419         validity of map before dereferencing it.
420
421         * elf/dl-reloc.c (RESOLVE_MAP): Define.
422
423 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
424
425         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
426         lookup to the arguments to elf_machine_fixup_plt().
427
428         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
429         of the symbol being resolved to input argument list and make the
430         function return the pointer to the reloc.
431
432         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
433         return valuie to lookup_t and return the value.
434         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
435         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
436         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
437         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
438         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
439         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
440
441         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
442         Make it an inline function returning value after calling
443         __elf_machine_fixup_plt().
444
445         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
446         symbol address.
447
448         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
449         obtain the symbol address.
450
451         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
452         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
453
454         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
455         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
456         inline on non ia64.
457
458 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
459
460         * elf/dl-runtime.c (fixup): Use the portable macros to get the
461         symbol address of an object.
462
463         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
464         the symbol address of an object.
465
466         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
467         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
468         (_dl_lookup_symbol_skip): Likewise.
469         (_dl_lookup_versioned_symbol): Likewise.
470         (_dl_lookup_versioned_symbol_skip): Likewise.
471
472 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
473
474         * elf/rtld.c (_dl_start): Get the function pointer return address
475         via _dl_start_address for architectures that need a function
476         pointer descriptor rather than just a pointer (ia64).
477
478         * sysdeps/generic/dl-lookupcfg.h: New file.
479         * sysdeps/ia64/dl-lookupcfg.h: New file.
480         * sysdeps/ia64/dl-machine.h: New file.
481         * sysdeps/ia64/dl-symaddr.c: New file.
482         * sysdeps/ia64/dl-fptr.c: New file.
483
484         * elf/elf.h: Add IA-64 specific definitions.
485
486 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
487
488         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
489         end of enum.
490
491 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
492
493         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
494         happy.
495
496 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
497
498         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
499         symbol.  Call _dl_init rather than the old way.
500
501 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
502
503         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
504         test for pointer in range of DSO address space.
505
506 2000-05-04  Andreas Jaeger  <aj@suse.de>
507
508         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
509
510 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
511
512         * locale/findlocale.c (_nl_find_locale): Add new parameter to
513         calls of _nl_make_l10nflist.
514
515         * libio/stdio.h: Make fseeko and ftello prototypes available is
516         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
517
518         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
519         real unsetenv implementation from 1999-07-29 [PR libc/1714].
520
521 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
522
523         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
524         before calling tfind.
525
526 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
527
528         * resolv/resolv.h (res_querydomain): Remove redefinition to
529         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
530
531 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
532
533         * po/gl.po: Update from translation team.
534
535         * manual/intro.texi (Program Basics): Change section title.
536         * manual/process.texi: Fix reference.
537         (Executing a File): Add reference exec in other section.
538         * manual/signal.texi: Fix reference.
539         * manual/startup.texi: Document syscall function.
540         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
541
542 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
543
544         * intl/libintl.h (bind_textdomain_codeset): New declaration.
545         * intl/bindtextdom.c (set_binding_values): New function.
546         (bindtextdomain): Call it.
547         (bind_textdomain_codeset): New function.
548         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
549         (free_mem): Free each binding's codeset.
550         * intl/gettextP.h (struct binding): Add codeset field.
551         (_nl_find_domain): Add domainbinding argument.
552         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
553         Pass it to _nl_make_l10nflist.
554         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
555         (_nl_make_l10nflist): Add domainbinding argument.
556         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
557         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
558         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
559         locale_charset().
560         * manual/message.texi: New node "Charset conversion in gettext".
561
562 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
563
564         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
565         appropriate.  Handle possible __read error.
566
567 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
568
569         * intl/gettextP.h (__builtin_expect): Define as empty if not a
570         compiler builtin.
571         * intl/loadinfo.h (__builtin_expect): Likewise.
572         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
573         __builtin_expect where appropriate.
574         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
575         * intl/localealias.c (extend_alias_table): Return an error indicator.
576         (read_alias_file): Bail out if extend_alias_table fails.
577
578 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
579
580         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
581         * intl/localealias.c: Likewise.
582
583 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
584
585         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
586         Initialize domain->plural and domain->nplurals even if there is no
587         nullentry.
588
589 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
590
591         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
592         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
593         In case of failure, goto converted.
594
595 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
596
597         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
598         * iconv/gconv_int.h (norm_add_slashes): Move to here.
599         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
600         __gconv_open.
601
602 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
603
604         * intl/dcigettext.c (transcmp): Compare the domains as well.
605         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
606         not before.
607         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
608         <errno.h>.
609
610 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
611
612         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
613         Reported by Bruno Haible.
614
615 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
616
617         * manual/arith.texi: Remove @w from @itemize.
618
619 2000-05-02  Andreas Jaeger  <aj@suse.de>
620
621         * conform/data/tar.h-data: Add some checks for specific values.
622
623         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
624         and RAND_MAX.
625
626         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
627         FOPEN_MAX.
628
629         * conform/data/netinet/in.h-data: Add exact checks for the values
630         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
631
632         * conform/data/float.h-data: Add some minimal values.
633
634         * conform/conformtest.pl: Test for macros with string constants,
635         check for minimum and maximum values.
636         Add limits.h to headers.
637
638         * conform/data/cpio.h-data: Test for value of MAGIC.
639
640         * conform/data/limits.h-data: New file.
641
642 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
643
644         * math/Makefile (headers): Add bits/fenvinline.h.
645
646 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
647
648         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
649         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
650
651         * posix/Versions: Change posix_spawnattr_getdefault and
652         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
653         and posix_spawnattr_setsigdefault respectively.
654         * posix/spawn.h: Likewise.
655         * posix/spawnattr_getdefault.h: Likewise.
656         * posix/spawnattr_setdefault.h: Likewise.
657         * conform/data/spawn.h-data: Likewise.
658
659 2000-05-01  Andreas Jaeger  <aj@suse.de>
660
661         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
662
663 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
664
665         * manual/sysinfo.texi: Document getdomainname, setdomainname
666         and sysctl.
667         * manual/string.texi: Fix typo.
668         * manual/terminal.texi: Document gtty and stty.
669         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
670
671 2000-04-30  Andreas Jaeger  <aj@suse.de>
672
673         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
674         accordance with Austin Draft.
675
676 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
677
678         * catgets/gencat.c (read_input_file): Use isblank and not isspace
679         to recognize second character in comment line.
680
681         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
682         ENOBUFS if we are out of memory.
683
684         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
685         available if __USE_XOPEN2K.
686         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
687         * sysdeps/unix/common/bits/fcntl.h: Likewise.
688         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
689         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
690         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
691         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
692         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
693         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
694
695 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
696
697         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
698         Recognize option -s, -c, and -l.
699
700 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
701
702         * nscd/nscd.c: Start new session for nscd, drop privilegs
703         to configured user if requested and no -S parameter are used.
704         * nscd/nscd.conf: Add new option "server-user".
705         * nscd/nscd_conf.c: Add support for new "server-user" option.
706         * nscd/nscd.h: Add declaration for server_user variable.
707         Based on patch by Chris Wing <wingc@engin.umich.edu>
708
709 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
710
711         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
712         that changing the __restore and __restore_rt signal return code
713         will break GDB.
714
715 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
716
717         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
718         <sys/user.h>.
719
720 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
721
722         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
723
724 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
725
726         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
727         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
728         arpa/inet.h.
729         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
730         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
731         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
732         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
733         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
734         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
735         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
736         posix_fallocate, and posix_madvise.
737         * conform/data/netdb.h-data: New file.
738         * conform/data/pthread.h-data: Add pthread_barrier_t,
739         pthread_barrierattr_t, pthread_barrier_destroy,
740         pthread_barrier_init, pthread_barrier_wait,
741         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
742         pthread_barrierattr_init, pthread_barrierattr_setpshared,
743         pthread_condattr_getclock, pthread_condattr_setclock,
744         pthread_getcpuclockid, pthread_mutex_timedlock,
745         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
746         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
747         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
748         * conform/data/sched.h-data: Add sched_ss_low_priority,
749         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
750         SCHED_SPORADIC.
751         * conform/data/semaphore.h-data: Add sem_timedwait.
752         * conform/data/signal.h-data: Add SIGIO.
753         * conform/data/spawn.h-data: New file.
754         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
755         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
756         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
757         Fix typo in gmtime_r definition.
758         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
759         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
760         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
761         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
762         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
763         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
764         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
765         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
766         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
767         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
768         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
769         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
770         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
771         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
772         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
773         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
774         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
775         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
776         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
777         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
778         typo in off_t definition.
779         * conform/data/net/if.h-data: New file.
780         * conform/data/netinet/in.h-data: New file.
781         * conform/data/netinet/tcp.h-data: New file.
782         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
783         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
784         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
785         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
786         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
787         and posix_typed_mem_open.
788         * conform/data/sys/socket.h-data: New file.
789         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
790         * conform/data/sys/types.h-data: Add pthread_barrier_t,
791         pthread_barrierattr_t, and pthread_spinlock_t.
792         * conform/data/sys/un.h-data: New file.
793         * conform/data/sys/utsname.h-data: New file.
794
795         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
796         parameter.
797         * inet/gethstbyad.c (gethostbyname): Likewise.
798         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
799         * inet/getipnodebyad.c (getipnodebyad): Likewise.
800         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
801         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
802         Likewise.
803         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
804         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
805         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
806         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
807         * resolv/gethnamaddr.c (gethostbyname): Likewise.
808         * resolv/netdb.h (struct hostent): Fix type of h_length member.
809         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
810         and second parameter.
811
812         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
813         == NULL.
814
815 2000-04-29  Andreas Jaeger  <aj@suse.de>
816
817         * conform/data/arpa/inet.h-data: New file.
818
819 2000-04-28  Geoff Clare <gwc@unisoft.com>
820
821         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
822         path passed to ftw() or nftw() is an empty string.
823         Closes PR libc/1710.
824
825 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
826
827         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
828         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
829         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
830         * localedata/tst-mbswcs4.c: New file.
831         * localedata/tst-mbswcs5.c: New file.
832
833         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
834         == NULL.  Little optimization.
835
836         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
837         DT_PREINIT_ARRAYSZ).
838         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
839
840         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
841         overflows in conversion from ASCII.
842
843 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
844
845         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
846         * Makerules (full_config_sysdirs): Likewise.
847         * MakeTAGS (full_config_sysdirs): Likewise.
848
849 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
850
851         * .cvsignore: Remove linuxthreads.
852         * po/.cvsignore: Remove *.pot.
853         * posix/glob/.cvsignore: Removed.
854         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
855
856 2000-04-25  Andreas Jaeger  <aj@suse.de>
857
858         * conform/Makefile (distribute): Also distribute contents of
859         subdirectories.
860
861         * Makerules (no_deps): Remove abi-versions.h.
862
863         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
864
865 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
866
867         * sysdeps/sparc/sparc64/elf/Dist: Remove.
868         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
869         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
870         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
871         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
872         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
873         objects.
874
875 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
876
877         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
878
879 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
880
881         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
882         * intl/l10nflist.c: Likewise.
883
884 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
885
886         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
887         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
888         * intl/textdomain.c [!_LIBC]: Likewise.
889         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
890         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
891         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
892         syntax error.
893
894 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
895
896         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
897         character set conversion also in the case the translation was found
898         after a hash collision or through binary search.  Store the maximum
899         index together with the converted message.  Use iconv() when available.
900         In case of out of memory during conversion, return the unconverted
901         translated string, not NULL.
902
903 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
904
905         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
906         to avoid name clashes with the ia32 linker.
907
908 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
909
910         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
911         handling.
912
913 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
914
915         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
916         strtoumax, strfry, and memfrob.
917         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
918         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
919
920         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
921         if this function is available.
922
923         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
924         all values.
925
926 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
927
928         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
929
930 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
931
932         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
933         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
934         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
935         * localedata/tst-mbswcs3.c: New file.
936
937 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
938
939         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
940         characters.  Don't handle incomplete characters as errors.
941         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
942         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
943         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
944         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
945         * localedata/tst-mbswcs2.c: New file.
946
947         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
948         stored character in state in UNPACK_BYTES macro.
949         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
950         test for available characters, handle result of BODY code correctly.
951         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
952         (distribute): Add tst-mbswcs.sh.
953         Add rule to run tst-mbswcs.sh.
954         * localedata/tst-mbswcs.sh: New file.
955         * localedata/tst-mbswcs1.c: New file.
956
957 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
958
959         * nis/nis_callback.c (__nis_create_callback): Do failed memory
960         allocation fixups centrally, fix __builtin_expect call, return NULL
961         on failure, not NIS_NOMEMORY.
962
963 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
964
965         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
966
967         * intl/loadinfo.h (internal_function): Define if not already defined.
968
969 2000-04-27  Andreas Jaeger  <aj@suse.de>
970
971         * intl/libintl.h: Fix typo, reported by Bruno Haible
972         <haible@clisp.cons.org>.
973
974 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
975
976         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
977         setting the state to GMON_PROF_BUSY.
978
979 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
980
981         * elf/dl-profile.c (_dl_start_profile): define all variables which
982         do not have to be global as local variables.
983
984         * nis/nis_callback.c (__nis_create_callback): Partially undo last
985         patch.  Keep needed tests for failed memory allocation.
986
987         * elf/dl-reloc.c (_dl_relocate_object): Add one more
988         __builtin_expect saying that we don't normally expect to profile.
989
990         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
991         __builtin_expect where desirable.
992
993 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
994
995         * manual/Makefile (chapters): Add syslog.
996         * manual/syslog.texi: New file.
997         * manual/math.texi: Fix references.
998         * manual/terminal.texi: Likewise.
999         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
1000
1001 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
1002
1003         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
1004         stdlib.h was not included or __USE_XOPEN not defined.
1005
1006 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
1007
1008         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
1009         Patch by Zack Weinberg <zack@wolery.cumb.org>.
1010
1011 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
1012
1013         * manual/examples/subopt.c (mount_opts): Add missing terminating
1014         entry.
1015         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
1016
1017         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
1018         * libio/ftello.c: Likewise.
1019         * libio/ftello64.c: Likewise.
1020         * libio/ioftell.c: Likewise.
1021         * sysdeps/generic/memrchr.c: Likewise.
1022         * sysdeps/posix/libc_fatal.c: Likewise.
1023         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1024         * misc/fstab.c: Include <string.h> for strcmp prototype.
1025         * sysdeps/generic/ldsodefs.h: Likewise.
1026         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1027         Patch by Kurt Roeckx <Q@ping.be>.
1028
1029         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
1030         Remove db-open.  Change all uses.
1031         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
1032
1033 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
1034
1035         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
1036         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
1037         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
1038         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
1039         with .set noat/at to shut up warnings.
1040         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
1041         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
1042         compilation if __NR_pciconfig_iobase is not defined.
1043         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
1044         Add alias.
1045
1046 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
1047
1048         * manual/sysinfo.texi: Fix typo.
1049         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
1050         Replace "high precision time" with "high accuracy clock".
1051         Fix language.
1052         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
1053
1054         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
1055         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
1056         instead of malloc.
1057         * nis/nis_subr.c: Use __builtin_expect.
1058         * nis/ypclnt.c: Likewise.
1059         * nis/nis_getservlist.c: Likewise.
1060         * nis/nis_creategroup.c: Likewise.
1061
1062         * nis/nis_callback.c (__nis_create_callback): Check result of
1063         memory allocation.  Fix memory leaks.  Use __builtin_expect.
1064         (__nis_destroy_callback): Fix memory leaks.
1065
1066 2000-04-21  Andreas Jaeger  <aj@suse.de>
1067
1068         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
1069         * sysdeps/mips/mips64/add_n.S: Likewise.
1070         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
1071         * sysdeps/mips/mips64/lshift.S: Likewise.
1072         * sysdeps/mips/mips64/mul_1.S: Likewise.
1073         * sysdeps/mips/mips64/rshift.S: Likewise.
1074         * sysdeps/mips/mips64/setjmp.S: Likewise.
1075         * sysdeps/mips/mips64/sub_n.S: Likewise.
1076         * sysdeps/mips/mips64/submul_1.S: Likewise
1077         * sysdeps/unix/mips/sysdep.S: Likewise.
1078
1079         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
1080         and update comment.  The strtab from _dl_relocate_object can be
1081         used.
1082
1083 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
1084
1085         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
1086         * iconv/iconv_close.c (iconv_close): Likewise.
1087         * iconv/iconv_open.c (iconv_open): Likewise.
1088
1089         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
1090         __builtin_expect where useful.
1091
1092         * grp/initgroups.c (initgroups): Test for result of memory
1093         allocation and punt if it fails.
1094
1095         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
1096         * grp/fgetgrent.c (fgetfrent): Likewise.
1097         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
1098
1099 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
1100
1101         * libio/vasprintf.c: Include string.h to get memcpy prototype.
1102
1103 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
1104
1105         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
1106         don't search for NUL byte to decrement counter.
1107         Reported by Ulrich.Brink@sap.com.
1108
1109         * iconv/gconv_simple.c: Define separate functions to convert from
1110         UCS4/UCS4-LE to the internal encoding.
1111         * iconv/gconv_builtin.h: Use separate functions to convert from
1112         UCS4/UCS4-LE to the internal encoding.
1113         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
1114         __gconv_transform_ucs4le_internal.
1115
1116         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
1117         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
1118
1119         * iconv/skeleton.c: Add some more __builtin_expect.
1120         * iconv/loop.c: Likewise.
1121
1122 2000-03-08  H.J. Lu  <hjl@gnu.org>
1123
1124         * posix/regex.c (regex_compile): Correctly handle "\{" when
1125         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
1126
1127 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
1128
1129         * manual/stdio.texi: Give advise about handling error when using
1130         stream functions.
1131         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
1132
1133 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
1134
1135         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
1136         field to nelems * sizeof (uint32_t).
1137         * locale/programs/ld-address.c (address_output): Align word fields
1138         properly.
1139         * locale/programs/ld-monetary.c (monetary_output): Likewise.
1140         Don't restart idx pointers to idx end at the duo_int_curr_symbol
1141         field.
1142         Avoid giving arbitrary garbage in the crncystr field.
1143         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
1144         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
1145         fields.
1146         * locale/programs/ld-numeric.c (numeric_output): Likewise.
1147         Don't restart idx pointers to idx end at the decimal_point_wc field.
1148         * locale/programs/ld-time.c (time_output): week_1stday should be
1149         word, not byte.  Align it properly.
1150
1151 2000-04-19  H.J. Lu  <hjl@gnu.org>
1152
1153         * csu/gmon-start.c (_start): Declared as "extern void".
1154         (etext): Likewise.
1155
1156 2000-04-18  Andreas Jaeger  <aj@suse.de>
1157
1158         * manual/install.texi (Running make install): Don't mention utmpd
1159         anymore.
1160
1161 2000-04-18  Andreas Jaeger  <aj@suse.de>
1162
1163         * linuxthreads/Versions: Use ld instead of ld.so.
1164
1165         * elf/Makefile (ld-map): Use ld.map.
1166
1167         * Versions.def: Use ld instead of ld.so.
1168         * elf/Versions: Likewise.
1169         * sysdeps/mach/hurd/Versions: Likewise.
1170
1171 2000-04-20  Andreas Jaeger  <aj@suse.de>
1172
1173         * elf/rtld.c (print_statistics): Move ifndef further up.
1174         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
1175         (dl_main): Likewise.
1176
1177 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
1178
1179         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
1180         * gmon/Versions: Move moncontrol to GLIBC_2.2.
1181
1182         * po/cs.po: Update from translation team.
1183
1184         * sysdeps/generic/updwtmp.c: Remove daemon support.
1185
1186         * login/Makefile (routines): Remove utmp_daemon.
1187
1188         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
1189         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
1190         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
1191         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
1192
1193         * elf/rtld.c: Display statitics option also if hp timing is not
1194         available.
1195
1196         * login/programs/connection.c: Removed.
1197         * login/programs/database.c Removed.
1198         * login/programs/error.c: Removed.
1199         * login/programs/request.c: Removed.
1200         * login/programs/xtmp.c: Removed.
1201         * login/programs/xtmp.h: Removed.
1202         * login/Makefile: Remove rules for utmpd.
1203         * login/README.utmpd: Removed.
1204         * login/utmp_daemon.c: Removed.
1205         * login/getutent_r.c: Remove references to daemon functions.
1206         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
1207         declaration.
1208
1209 2000-04-18  Andreas Jaeger  <aj@suse.de>
1210
1211         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
1212         2.2 for libnsl, libresolv, librt, libnss_*.
1213
1214         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
1215
1216         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
1217
1218 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
1219
1220         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
1221         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
1222         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
1223         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
1224         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
1225         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
1226         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
1227         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
1228         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
1229         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
1230         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
1231         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
1232         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
1233         it here.
1234         * sysdeps/unix/sysv/aix/msync.c: New file.
1235         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
1236         * sysdeps/unix/sysv/aix/net/if.h: New file.
1237         * sysdeps/unix/sysv/aix/pipe.c: New file.
1238         * sysdeps/unix/sysv/aix/poll.c: New file.
1239         * sysdeps/unix/sysv/aix/rename.c: New file.
1240         * sysdeps/unix/sysv/aix/rmdir.c: New file.
1241         * sysdeps/unix/sysv/aix/select.c: New file.
1242         * sysdeps/unix/sysv/aix/semctl.c: New file.
1243         * sysdeps/unix/sysv/aix/semget.c: New file.
1244         * sysdeps/unix/sysv/aix/semop.c: New file.
1245         * sysdeps/unix/sysv/aix/sendto.c: New file.
1246         * sysdeps/unix/sysv/aix/setgroups.c: New file.
1247         * sysdeps/unix/sysv/aix/setpgid.c: New file.
1248         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
1249         * sysdeps/unix/sysv/aix/setpriority.c: New file.
1250         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
1251         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
1252         * sysdeps/unix/sysv/aix/setsid.c: New file.
1253         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
1254         * sysdeps/unix/sysv/aix/shmat.c: New file.
1255         * sysdeps/unix/sysv/aix/shmctl.c: New file.
1256         * sysdeps/unix/sysv/aix/shmdt.c: New file.
1257         * sysdeps/unix/sysv/aix/shmget.c: New file.
1258         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
1259         * sysdeps/unix/sysv/aix/sigstack.c: New file.
1260         * sysdeps/unix/sysv/aix/socket.c: New file.
1261         * sysdeps/unix/sysv/aix/socketpair.c: New file.
1262         * sysdeps/unix/sysv/aix/speed.c: New file.
1263         * sysdeps/unix/sysv/aix/symlink.c: New file.
1264         * sysdeps/unix/sysv/aix/sync.c: New file.
1265         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
1266         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
1267         * sysdeps/unix/sysv/aix/times.c: New file.
1268         * sysdeps/unix/sysv/aix/ulimit.c: New file.
1269         * sysdeps/unix/sysv/aix/umask.c: New file.
1270         * sysdeps/unix/sysv/aix/unlink.c: New file.
1271         * sysdeps/unix/sysv/aix/ustat.c: New file.
1272         * sysdeps/unix/sysv/aix/utimes.c: New file.
1273
1274 2000-04-18  Andreas Jaeger  <aj@suse.de>
1275
1276         * manual/startup.texi (Environment Access): Fix putenv prototype
1277         according to recent changes.
1278         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
1279         PR libc/1692.
1280
1281         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
1282         needed.
1283
1284 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
1285
1286         * posix/Makefile (tests): Add tst-getaddrinfo.
1287         * posix/tst-getaddrinfo.c: New file.
1288
1289 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
1290
1291         * manual/sysinfo.texi: Document that umount2 is not widely available.
1292
1293         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
1294         signal timing is not really implemented.
1295
1296 2000-04-17  Andreas Jaeger  <aj@suse.de>
1297
1298         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
1299
1300 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
1301
1302         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
1303         and inst_libdir.
1304
1305 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
1306
1307         * manual/intro.texi: Change reference from System Information to
1308         System Management.
1309         * manual/users.texi: Likewise.
1310         * manual/conf.texi: Likewise.
1311         * manual/sysinfo.texi: Document mount, umount, and umount2.
1312         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
1313
1314 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
1315
1316         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
1317         Create wnumstr as well as numstr to support wide character output
1318         correctly.
1319
1320 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
1321
1322         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
1323         modification and move it...
1324         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
1325         Add -melf64_sparc switch to $(LD) on sparc64-linux.
1326         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
1327         switch to $(LD) on sparc-linux.
1328
1329 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
1330
1331         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
1332         and setresuid from sysdep_routines.
1333
1334 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
1335
1336         * manual/Makefile (chapters): Add resource.
1337
1338         * manual/time.texi: Move section on resources to...
1339         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
1340         and vtimes.
1341         * manual/setjmp.texi: Adjust back reference.
1342         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
1343
1344         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
1345         definition.
1346         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
1347         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
1348         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
1349         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
1350         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
1351         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
1352         * sysdeps/unix/sysv/aix/close.c: Add copyright.
1353         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
1354         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
1355         * sysdeps/unix/sysv/aix/access.c: Add copyright.
1356         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
1357         * sysdeps/unix/sysv/aix/Implies: New file.
1358         * sysdeps/unix/sysv/aix/Versions: New file.
1359         * sysdeps/unix/sysv/aix/bind.c: New file.
1360         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
1361         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
1362         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
1363         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
1364         * sysdeps/unix/sysv/aix/chdir.c: New file.
1365         * sysdeps/unix/sysv/aix/chmod.c: New file.
1366         * sysdeps/unix/sysv/aix/chroot.c: New file.
1367         * sysdeps/unix/sysv/aix/creat.c: New file.
1368         * sysdeps/unix/sysv/aix/dl-close.c: New file.
1369         * sysdeps/unix/sysv/aix/dl-open.c: New file.
1370         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
1371         * sysdeps/unix/sysv/aix/fchdir.c: New file.
1372         * sysdeps/unix/sysv/aix/fchmod.c: New file.
1373         * sysdeps/unix/sysv/aix/getgroups.c: New file.
1374         * sysdeps/unix/sysv/aix/gethostname.c: New file.
1375         * sysdeps/unix/sysv/aix/getpriority.c: New file.
1376         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
1377         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
1378         * sysdeps/unix/sysv/aix/getrusage.c: New file.
1379         * sysdeps/unix/sysv/aix/link.c: New file.
1380         * sysdeps/unix/sysv/aix/madvise.c: New file.
1381         * sysdeps/unix/sysv/aix/mkdir.c: New file.
1382         * sysdeps/unix/sysv/aix/mknod.c: New file.
1383         * sysdeps/unix/sysv/aix/mprotect.c: New file.
1384         * sysdeps/unix/sysv/aix/msgctl.c: New file.
1385         * sysdeps/unix/sysv/aix/msgget.c: New file.
1386         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
1387
1388 2000-04-17  Andreas Jaeger  <aj@suse.de>
1389
1390         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
1391         as suggested by Ulrich Drepper.
1392         (__dl_runtime_resolve): Remove unused variable, initialize sym
1393         directly.
1394         (RTLD_START): Document OFFSET_GP_GOT.
1395         (OFFSET_GP_GOT): New magic value.
1396         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
1397         (elf_machine_got_rel): Only declare strtab if needed.
1398         (elf_machine_relplt): Removed, it's not needed.
1399         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
1400
1401         * sysdeps/mips/add_n.S: Add newline at EOF.
1402         * sysdeps/mips/rshift.S: Likewise.
1403         * sysdeps/mips/mul_1.S: Likewise.
1404         * sysdeps/mips/lshift.S: Likewise.
1405         * sysdeps/mips/addmul_1.S: Likewise.
1406
1407 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
1408
1409         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
1410
1411         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
1412         * elf/dl-lookup.c: Likewise.
1413         * elf/dl-init.c (_dl_init): Likewise.
1414         * elf/dl-fini.c (_dl_fini): Likewise.
1415         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
1416         * elf/dl-close.c (_dl_close): Likewise.
1417         * elf/rtld.c (_dl_start_final): Likewise.
1418
1419         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
1420
1421 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
1422
1423         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
1424         only fall back on using Linux.
1425
1426         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
1427         Before testing versions check that we actually loaded the object
1428         and whether we are in trace mode.  If not loaded during tracing don't
1429         test versions in this object.
1430         (_dl_check_all_versions): Take new parameter and pass to
1431         _dl_check_map_versions.
1432         * sysdeps/generic/ldsodefs.h: Update prototypes for
1433         _dl_check_all_versions and _dl_check_map_versions.
1434         * elf/rtld.c (struct version_check_args): Add dotrace.
1435         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
1436         (dl_main): Pass info about trace mode to version_check_doit.
1437         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
1438         _dl_check_all_versions.
1439
1440         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
1441         and getutmpx.
1442         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
1443
1444         * manual/argp.texi: Document index parameter of argp_parse.
1445         Fix typo.
1446         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
1447
1448 2000-04-14  Andreas Jaeger  <aj@suse.de>
1449
1450         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
1451         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
1452
1453         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
1454
1455 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
1456
1457         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
1458         compat_symbol call for old adjtime.
1459
1460         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
1461         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
1462
1463         * posix/Makefile (headers): Add spawn.h.
1464         (distribute): Add spawn_int.h.
1465         (routines): Add spawn_faction_init, spawn_faction_destroy,
1466         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
1467         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
1468         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
1469         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
1470         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
1471         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
1472         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
1473         posix_spawnattr_init, posix_spawnattr_destroy,
1474         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
1475         posix_spawnattr_getflags, posix_spawnattr_setflags,
1476         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
1477         and posix_spawnp.
1478         * posix/spawn.c: New file.
1479         * posix/spawn.h: New file.
1480         * posix/spawn_faction_addclose.c: New file.
1481         * posix/spawn_faction_adddup2.c: New file.
1482         * posix/spawn_faction_addopen.c: New file.
1483         * posix/spawn_faction_destroy.c: New file.
1484         * posix/spawn_faction_init.c: New file.
1485         * posix/spawn_int.h: New file.
1486         * posix/spawnattr_destroy.c: New file.
1487         * posix/spawnattr_getdefault.c: New file.
1488         * posix/spawnattr_getflags.c: New file.
1489         * posix/spawnattr_getpgroup.c: New file.
1490         * posix/spawnattr_getschedparam.c: New file.
1491         * posix/spawnattr_getschedpolicy.c: New file.
1492         * posix/spawnattr_getsigmask.c: New file.
1493         * posix/spawnattr_init.c: New file.
1494         * posix/spawnattr_setdefault.c: New file.
1495         * posix/spawnattr_setflags.c: New file.
1496         * posix/spawnattr_setpgroup.c: New file.
1497         * posix/spawnattr_setschedparam.c: New file.
1498         * posix/spawnattr_setschedpolicy.c: New file.
1499         * posix/spawnattr_setsigmask.c: New file.
1500         * posix/spawni.c: New file.
1501         * posix/spawnp.c: New file.
1502
1503         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
1504         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1505
1506 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
1507
1508         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
1509         * malloc/malloc.c: Implement posix_memalign for glibc.
1510         * include/stdlib.h: Add prototype for __posix_memalign.
1511         * stdlib/stdlib.h: Add prototype for posix_memalign.
1512
1513 2000-04-14  Andreas Jaeger  <aj@suse.de>
1514
1515         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
1516         symidx correctly.
1517         (elf_machine_got_rel): Cast sym correctly.
1518
1519         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
1520         * sysdeps/mips/addmul_1.S: Likewise.
1521         * sysdeps/mips/lshift.S: Likewise.
1522         * sysdeps/mips/mul_1.S: Likewise.
1523         * sysdeps/mips/rshift.S: Likewise.
1524         * sysdeps/mips/sub_n.S: Likewise.
1525         * sysdeps/mips/submul_1.S: Likewise.
1526
1527         * stdlib/stdlib.h: Fix typo in comment.
1528
1529         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
1530         2.2 for libdl, ld and libm.
1531
1532         * sysdeps/generic/madvise.c: Fix typos.
1533
1534         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
1535
1536         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
1537
1538         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
1539         warnings.
1540
1541 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
1542
1543         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
1544         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
1545         Make old name weak alias.
1546         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
1547         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
1548         Make old name weak alias.
1549         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
1550
1551         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
1552         posix_fallocate, and posix_fallocate64.
1553         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
1554         posix_fallocate, and posix_fallocate64.
1555         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
1556         posix_fallocate, and posix_fallocate64.
1557         * sysdeps/generic/fadvise.c: New file.
1558         * sysdeps/generic/fadvise64.c: New file.
1559         * sysdeps/generic/fallocate.c: New file.
1560         * sysdeps/generic/fallocate64.c: New file.
1561         * sysdeps/posix/fallocate.c: New file.
1562         * sysdeps/posix/fallocate64.c: New file.
1563         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
1564         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
1565         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
1566         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
1567         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1568         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
1569         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1570         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1571         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1572
1573         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
1574         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1575
1576 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
1577
1578         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
1579         * misc/sys/mman.h (posix_madvise): Add prototype.
1580         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
1581         old name and posix_madvise weak aliases.
1582         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1583         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
1584         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
1585         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1586         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1587         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1588         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1589
1590 2000-04-13  Andreas Jaeger  <aj@suse.de>
1591
1592         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
1593         versioning.
1594         (elf_machine_got_rel): Only add runtime display if needed.
1595         (elf_machine_got_rel): Handle symbol versioning.
1596
1597 2000-04-13  Andreas Jaeger  <aj@suse.de>
1598
1599         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
1600
1601         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
1602         default.
1603
1604         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
1605         with some applications.
1606         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
1607
1608         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
1609         * sysdeps/mips/bsd-_setjmp.S: Likewise.
1610         * sysdeps/mips/setjmp.S: Likewise.
1611
1612         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
1613
1614 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
1615
1616         * posix/globtest.sh: Work around inconsistency with expanding ~/
1617         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
1618
1619 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
1620
1621         * posix/getconf.c: Add support for many more POSIX options.
1622         * sysdeps/posix/sysconf.c: Likewise.
1623         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
1624         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
1625         _POSIX_SHELL.
1626         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1627         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
1628         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
1629         CLOCK_THREAD_CPUTIME_ID.
1630         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
1631         CLOCK_PROCESS_CPUTIME_ID.
1632         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
1633         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
1634         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
1635         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
1636
1637         * malloc/Makefile (tests): Add tst-calloc.
1638         * malloc/tst-calloc.c: New file.
1639
1640         * sysdeps/arm/libm-test-ulps: New file.
1641
1642         * malloc/malloc.c: Undo all of today's changes.
1643
1644         * locale/programs/locale.c (show_info): Don't try to look into
1645         data for LC_ALL (there is none).
1646
1647         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
1648         avoid writing over boundary.
1649         Patch by Greg McGary <gkm@eng.ascend.com>.
1650
1651         * sysdeps/arm/memprof.h: New file.
1652
1653 2000-04-12  Andreas Jaeger  <aj@suse.de>
1654
1655         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
1656
1657         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
1658         for memmem declaration.
1659
1660 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
1661
1662         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
1663         to -1.
1664         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
1665
1666         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
1667         mode is invalid.
1668         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
1669         Patch by Bart Veer <bartv@redhat.com>.
1670
1671         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
1672         function interface.
1673
1674 2000-04-11  Andreas Jaeger  <aj@suse.de>
1675
1676         * sysdeps/mips/dl-machine.h: Update some comments.
1677         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
1678
1679 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
1680
1681         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
1682         _POSIX_SHARED_MEMORY_OBJECTS.
1683
1684         * rt/Makefile (tests): Add tst-shm.
1685         Add rules to generate tst-shm.
1686         * rt/tst-shm.c: New file.
1687
1688         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
1689         for descriptor.
1690
1691         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
1692         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
1693         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
1694         * sysdeps/generic/shm_open.c: New file.
1695         * sysdeps/generic/shm_unlink.c: New file.
1696         * sysdeps/unix/sysv/linux/shm_open.c: New file.
1697         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
1698         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
1699          __endmntent, __getmntent_r, __setmntent, and __statfs.
1700
1701         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
1702         fragmentation by allocating new memory at the end instead of
1703         reallocating.
1704
1705         * posix/globtest.sh: Fix last change.
1706
1707 2000-04-10  Philip Blundell  <philb@gnu.org>
1708
1709         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
1710         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
1711         IPV6_DROP_MEMBERSHIP.
1712         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
1713         Likewise.
1714
1715 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
1716
1717         * elf/readlib (process_file): Close streams in case of an error.
1718
1719 2000-04-09  Andreas Jaeger  <aj@suse.de>
1720
1721         * elf/readlib.c (process_file): Check if file is big enough to
1722         contain aout and ELF headers.
1723         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
1724
1725 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
1726
1727         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
1728
1729 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
1730
1731         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
1732         stream unbuffered.
1733         * rt/Makefile (tests): Add tst-clock.
1734         Add rules to build tst-clock.
1735         * rt/tst-clock.c: New file.
1736         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
1737         about initialization of nsec.
1738         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
1739         about initialization of freq.  Set retval to zero if successful.
1740         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
1741
1742 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
1743
1744         * Versions.def (librt): Add GLIBC_2.2.
1745         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
1746         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
1747         timer_getoverr, timer_gettime, and timer_settime.
1748         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
1749         clock_settime, timer_create, timer_delete, timer_getoverrun,
1750         timer_gettime, and timer_settime.
1751         * sysdeps/generic/clock_getcpuclockid.c: New file.
1752         * sysdeps/generic/get_clockfreq.c: New file.
1753         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
1754         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
1755         * sysdeps/mach/hurd/i386/bits/time.h: New file.
1756         * sysdeps/unix/i386/i586/clock_getres.c: New file.
1757         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
1758         * sysdeps/unix/i386/i686/Implies: New file.
1759         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
1760         * time/Makefile (routines): Move clock_getres, clock_gettime,
1761         clock_settime, timer_create, timer_delete, timer_getoverr,
1762         timer_gettime, and timer_settime to rt/Makefile.
1763         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
1764         clock_settime, timer_create, timer_delete, timer_getoverrun,
1765         timer_gettime, and timer_settime.
1766         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
1767
1768         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
1769         and not const as attribute name.
1770
1771 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
1772
1773         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
1774
1775 2000-04-10  Andreas Schwab  <schwab@suse.de>
1776
1777         * posix/globtest.sh: Skip tests that depend on unreadable
1778         directories if run as root.
1779
1780 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
1781
1782         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
1783         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
1784
1785 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
1786
1787         * sysdeps/unix/clock_gettime.c: New file.
1788         * sysdeps/unix/clock_settime.c: New file.
1789         * sysdeps/posix/clock_getres.c: New file.
1790
1791         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
1792
1793         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
1794         lseek call be passing in a buffer which never allow a successful
1795         first getdents syscall if not at leas the initial entry can be
1796         stored in the user buffer.
1797
1798         * localedata/Makefile: Add rules to clean up directories created by
1799         new strfmon tests.
1800
1801 2000-04-09  Geoff Clare  <gwc@unisoft.com>
1802
1803         * localedata/tst-fmon.data: Added new tests for strfmon()
1804         using test locales with all combinations of cs_precedes,
1805         sign_posn and sep_by_space.
1806         * localedata/tst-fmon.sh: Updated to support the new tests.
1807         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
1808         the localedef source for the new strfmon() test locale.
1809         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
1810         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
1811         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
1812         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
1813         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
1814         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
1815         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
1816         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
1817         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
1818         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
1819         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
1820         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
1821         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
1822         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
1823
1824         * stdlib/strfmon.c: Correct problems with missing or extra
1825         spaces for unusual combinations of sign_posn and sep_by_space.
1826         Improved left-precision alignment code.
1827
1828 2000-04-07  Andreas Jaeger  <aj@suse.de>
1829
1830         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
1831
1832 2000-04-10  Andreas Jaeger  <aj@suse.de>
1833
1834         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
1835
1836 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
1837
1838         Implement handling of restartable conversion functions according to
1839         ISO C.
1840         * iconv/gconv.h (__gconv_fct): Add additional parameter.
1841         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
1842         * iconv/gconv.c: Pass additional parameter to conversion function.
1843         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
1844         (internal_ucs4le_loop_single): New function.
1845         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
1846         (__gconv_transform_internal_ascii): Likewise.
1847         (__gconv_transform_internal_utf8): Likewise.
1848         (__gconv_transform_utf8_internal): Likewise.
1849         (__gconv_transform_ucs2_internal): Likewise.
1850         (__gconv_transform_internal_ucs2): Likewise.
1851         (__gconv_transform_ucs2reverse_internal): Likewise.
1852         (__gconv_transform_internal_ucs2reverse): Likewise.
1853         (internal_ucs4le_loop_unaligned): Before return
1854         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
1855         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
1856         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
1857         * iconv/loop.c: Fit in definition of function to convert one character
1858         for processing of left-over bytes from the state object.
1859         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
1860         inend to match names in loop functions.
1861         (RESET_INPUT_BUFFER): Change apprpriately.
1862         (gconv): If needed, call function to process bytes from the state
1863         object.  Similar at the end: store left over bytes if input is
1864         incomplete.
1865         Take extra argument and add new argument to all calls of the
1866         conversion function.
1867         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
1868         information in the state object to not conflict with length count.
1869         * iconvdata/iso-2022-jp.c: Likewise.
1870         * iconvdata/iso-2022-kr.c: Likewise.
1871         * iconvdata/unicode.c: Adjust for change change in parameters of
1872         skeleton function.
1873         * iconvdata/utf-16.c: Likewise.
1874         * libio/iofwide.c: Add new parameter to all calls of conversion
1875         function.
1876         * wcsmbs/btowc.c: Likewise.
1877         * wcsmbs/mbrtowc.c: Likewise.
1878         * wcsmbs/mbsnrtowcs.c: Likewise.
1879         * wcsmbs/mbsrtowcs.c: Likewise.
1880         * wcsmbs/wcrtomb.c: Likewise.
1881         * wcsmbs/wcsnrtombs.c: Likewise.
1882         * wcsmbs/wcsrtombs.c: Likewise.
1883         * wcsmbs/wctob.c: Likewise.
1884
1885         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
1886         MAX_NEEDED_INPUT.
1887
1888 2000-04-07  Andreas Jaeger  <aj@suse.de>
1889
1890         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
1891         newer kernels.
1892
1893 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
1894
1895         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
1896         element a union to allow byte access.
1897         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
1898         mbstate_t.
1899         * iconvdata/iso-2022-jp.c: Likewise.
1900         * iconvdata/iso-2022-kr.c: Likewise.
1901         * wcsmbs/mbsinit.c: Likewise.
1902         * stdlib/mblen.c: Likewise.
1903         * stdio-common/printf-parse.h: Likewise.
1904
1905 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
1906
1907         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
1908         kernel does not allow relative seeks on descriptors associated
1909         with directories.  Go back to get the position in the directory
1910         every time we enter the function.  Return -1 and set errno if one
1911         entry could be read from the kernel but does not fit into the
1912         buffer passed in by the user.
1913
1914         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
1915         Support ..(2).. ellipsis.
1916         (parse_charmap): Recognize ..(2).. etc and pass step down.
1917         Correctly generate names for UCS4 characters.
1918
1919         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
1920         (ctype_finish): We know the wide character value for <SP>,
1921         don't search.
1922         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
1923         (charclass_ucs4_ellipsis): Likewise.
1924         (read_translit_ignore_entry): Store ellipsis step.
1925         (ctype_read): Recognize ..(2).. etc and pass step down.
1926
1927         * locale/programs/linereader.c (lr_token): When seeing comment
1928         character ignore only rest of line in sources but stop at escaped
1929         newline.
1930         Recognize ..(2).. and ....(2).....
1931
1932         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
1933         and tok_ellipsis4_2.
1934
1935 2000-04-06  Andreas Jaeger  <aj@suse.de>
1936
1937         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
1938         removed, remove it here also.
1939         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
1940         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1941         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
1942         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1943
1944 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
1945
1946         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
1947         include bits/sigcontext.h.
1948         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1949
1950 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
1951
1952         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
1953         collation symbol definition.  Value in quivalence definition must
1954         be defined, don't check that it is not.
1955
1956         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
1957         values as character names.
1958
1959         * locale/programs/ld-ctype.c (get_character): Handle missing
1960         repertoire map correctly.
1961
1962 2000-04-05  Cristian Gafton  <gafton@redhat.com>
1963
1964         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
1965         because it is used in generic code.
1966         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
1967         * wcsmbs/wcwidth.h: Declare __ctype32_b.
1968         * intl/gettext.c: Include <locale.h>.
1969         * intl/ngettext.c: Likewise.
1970
1971 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
1972
1973         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
1974         socklen_t type for size.
1975         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
1976         init function interface.
1977         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
1978         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
1979         sys/ucontext.h.
1980         (__jmp_buf): Declare the whole type structure here, don't use
1981         ucontext.
1982
1983 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
1984
1985         * iconv/skeleton.c (put16u): Fix typo.
1986         Reported by Bruno Haible <haible@ilog.fr>.
1987
1988         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
1989         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
1990         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
1991         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
1992         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
1993         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
1994
1995         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
1996         * Makefile (distribute): Add abi-versions.awk and
1997         firstversions.awk.
1998         Patches by Torsten Duwe <duwe@caldera.de>.
1999
2000 2000-04-05  Andreas Schwab  <schwab@suse.de>
2001
2002         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
2003
2004 2000-04-05  Andreas Schwab  <schwab@suse.de>
2005
2006         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
2007         entry point, used on Hurd.
2008
2009 2000-04-04  Andreas Jaeger  <aj@suse.de>
2010
2011         * intl/Makefile: Only run the gettext test with shared libraries.
2012
2013 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
2014
2015         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
2016         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
2017
2018 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
2019
2020         * Makeconfig: Undo last change.
2021         * configure.in: If --disable-shared was given, don't set VERSIONING,
2022         don't define DO_VERSIONING, and don't give scare warning for no
2023         versioning.
2024         * configure: Regenerated.
2025
2026 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
2027
2028         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
2029
2030 2000-04-04  Andreas Jaeger  <aj@suse.de>
2031
2032         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
2033
2034 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
2035
2036         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
2037         STV_HIDDEN and STV_INTERNAL during lookup.
2038         (profile_fixup): Likewise.
2039         * elf/dl-reloc.c (RESOLVE): Likewise.
2040
2041         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
2042         unaligned so that it compiles for system which need unaligned
2043         access handling.
2044
2045 2000-04-04  Andreas Schwab  <schwab@suse.de>
2046
2047         * elf/cache.c (print_entry): Only look at the type field when
2048         printing the type.
2049
2050 2000-04-04  Andreas Schwab  <schwab@suse.de>
2051
2052         * iconvdata/big5.c (BODY): Fix typo.
2053
2054 2000-04-04  Andreas Schwab  <schwab@suse.de>
2055
2056         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
2057         function interface.  Remove unused _dl_start_user entry point.
2058
2059 2000-04-03  Andreas Jaeger  <aj@suse.de>
2060
2061         * include/arpa/inet.h (__inet_aton): Add protoype.
2062
2063 2000-04-01  Andreas Jaeger  <aj@suse.de>
2064
2065         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
2066
2067         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
2068         * sysdeps/mach/mips/thread_state.h: Likewise.
2069
2070         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
2071         * sysdeps/generic/fegetenv.c: Likewise.
2072         * sysdeps/generic/fesetenv.c: Likewise.
2073         * sysdeps/generic/feupdateenv.c: Likewise.
2074         * sysdeps/generic/fraiseexcpt.c: Likewise.
2075         * sysdeps/generic/fsetexcptflg.c: Likewise.
2076         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
2077         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
2078         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
2079         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2080
2081 2000-04-02  H.J. Lu  <hjl@gnu.org>
2082
2083         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
2084
2085 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
2086
2087         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
2088         (add_name_to_object): Add cast in malloc call.
2089         (fillin_rpath): Optimize loop to initialize ->status a bit.
2090
2091         * sysdeps/i386/dl-machine.h: Undo last change.
2092         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
2093         Restore %edx register after call here.
2094
2095         * sysdeps/arm/atomicity.h: New file.
2096         Contributed by Jesper Skov <jskov@redhat.com>.
2097
2098 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
2099
2100         * Makeconfig (preprocess-versions): Undo last change.
2101         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
2102
2103         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
2104         here, before we might move the stack.
2105         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
2106         (init1): And not here.
2107
2108         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
2109         change, to restore argc value in call-clobbered register after
2110         RTLD_START_SPECIAL_INIT, which will contain a call.
2111
2112         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
2113         allocating and initializing L->l_initfini.
2114
2115         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
2116
2117 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
2118
2119         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
2120         RUNPATH, RPATH, and LD_LIBRARY_PATH.
2121         (open_path): Change type of fourth parameter.  Make pointer to array
2122         of pointers.  Create variable dirs with original type.
2123         Track whether any directory for the object exists and if not,
2124         change *DIRSP to (void*) -1 to signal there is no such search path.
2125         (_dl_map_object): Change all calls of open_path.
2126         Rewrite decompose_rpath calls.
2127
2128 2000-03-31  Andreas Schwab  <schwab@suse.de>
2129
2130         * string/strfry.c: Declare STATE as array of char instead of int
2131         and do not initialize it (done by initstate_r).  Pass correct
2132         size.
2133
2134 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
2135
2136         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
2137
2138         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
2139         instruction out of the code.
2140
2141 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
2142
2143         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
2144         element at this position.
2145
2146         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
2147         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
2148         l_reldeps elements.
2149         * elf/dl-lookup.c (add_dependency): New function.
2150         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
2151         dynamically loaded object.
2152         (_dl_lookup_symbol_skip): Likewise.
2153         (_dl_lookup_versioned_symbol): Likewise.
2154         (_dl_lookup_versioned_symbol_skip): Likewise.
2155         * elf/dl-open.c: Don't define _dl_load_lock here...
2156         * elf/rtld.c: ...but here...
2157         * elf/dl-support.c: ...and here.
2158         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
2159         through relocation.
2160         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
2161         relocations.
2162         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
2163         anymore.
2164         * dlfcn/glrefmain.c: Add one more debug message.
2165
2166         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
2167         command line.
2168         * Makerules (sysd-versions): Use ( ) instead of { }.
2169
2170         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
2171         optimize for the non-debugging case.
2172         * elf/dl-lookup.c: Likewise.
2173         * sysdeps/generic/libc-start.c: Likewise.
2174
2175 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
2176
2177         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
2178         (init1): Don't initialize __environ here, since init already does it.
2179         (first_init): New function, broken out of _init.
2180         (_hurd_stack_setup): Use it.
2181         [SHARED] (_dl_init_first): New function, renamed from old _init.
2182         (init1) [SHARED]: Don't call posixland_init here.
2183         (posixland_init): Take ENVP arg, so signature is usual for initializer.
2184         [SHARED] (_init): Define as alias for posixland_init.
2185         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
2186         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
2187         RTLD_START_SPECIAL_INIT before calling initializers.
2188         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
2189         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
2190         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
2191         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
2192
2193         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
2194         since we define the function with the name `tmpfile'.
2195
2196         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
2197         * hurd/Versions: Likewise.
2198
2199 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
2200
2201         * elf/dl-runtime.c (fixup): Fix typo in comment.
2202
2203         * resolv/netdb.h (getnameinfo): All length parameters are of type
2204         socklen_t.
2205         * inet/getnameinfo.c: Likewise.
2206
2207 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
2208
2209         * posix/unistd.h (socklen_t): Define if it has not yet happened.
2210         (gethostname): Change type of second parameter to socklen_t.
2211         * include/unistd.h (__gethostname): Change type of second
2212         parameter to socklen_t.
2213         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
2214         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
2215         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
2216         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
2217         Likewise.
2218         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
2219         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
2220         Allow definition elsewhere.
2221         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2222         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2223         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2224         * sysdeps/generic/bits/types.h: Define __socklen_t.
2225         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
2226         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
2227         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2228         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2229         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2230         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2231         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
2232
2233         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
2234         (inet_lnaof): Likewise.
2235         (inet_netof): Likewise.
2236         (inet_network): Likewise.
2237         (inet_aton): Likewise.
2238         (inet_makeaddr): Change parameter types to in_addr_t.
2239         (inet_neta): Likewise.
2240         (inet_ntop): Change type of last parameter to socklen_t.
2241         (inet_aton): Only make available if __USE_MISC.
2242         (inet_neta): Likewise.
2243         (inet_net_ntop): Likewise.
2244         (inet_net_pton): Likewise.
2245         (inet_nsap_ntoa): Likewise.
2246
2247         * inet/in.h: Define in_port_t type.
2248         Define in_addr_t type.
2249         (struct in_addr): Use in_addr_t in definition.
2250         (IN_CLASSA): Use cast to in_addr_t.
2251         (IN_CLASSB): Likewise.
2252         (IN_CLASSC): Likewise.
2253         (IN_CLASSD): Likewise.
2254         (IN_EXPERIMENTAL): Likewise.
2255         (IN_BADCLASS): Likewise.
2256         (INADDR_ANY): Likewise.
2257         (INADDR_BROADCAST): Likewise.
2258         (INADDR_NONE): Likewise.
2259         (INADDR_LOOPBACK): Likewise.
2260         (INADDR_UNSPEC_GROUP): Likewise.
2261         (INADDR_ALLHOSTS_GROUP): Likewise.
2262         (INADDR_ALLRTRS_GROUP): Likewise.
2263         (INADDR_MAX_LOCAL_GROUP): Likewise.
2264         (struct sockaddr_in): Use in_port_t for sin_port element.
2265         (struct sockaddr_in6): Use in_port_t for sin6_port element.
2266         Use uint8_t instead of u_int8_t.
2267
2268         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
2269         Call __inet_aton instead of inet_aton.
2270         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
2271
2272         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
2273         (innetgr): Likewise.
2274         (struct addrinfo): Use socklen_t for ai_addrlen element.
2275
2276         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
2277         IPV6_RECVERR): New defines.
2278
2279         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
2280         * inet/getnetbyad.c: Likewise.
2281         * inet/getnetbyad_r.c: Likewise.
2282         * nis/nss_nis/nis-network.c: Likewise.
2283         * nis/nssplus_nis/nisplus-network.c: Likewise.
2284         * nss/nss_files/files-network.c: Likewise.
2285         * resolv/netdb.h: Define uint32_t if not already happened.
2286         Include bits/netdb.h.  Remove definition of struct netent.
2287         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
2288         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
2289         * sysdeps/generic/bits/netdb.h: New file.
2290         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
2291
2292         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
2293         (tests): Add glrefmain.
2294         Add rules to build modules and run tests.  Ignore result of glrefmain
2295         for now since it fails.
2296         * dlfcn/glrefmain.c: New file.
2297         * dlfcn/glreflib1.c: New file.
2298         * dlfcn/glreflib2.c: New file.
2299
2300         * test-skeleton.c: Include <string.h> for strsignal prototype.
2301
2302         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
2303         to be missing.
2304
2305         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
2306         former init-first.h.  Initialize __libc_multiple_libcs.
2307
2308 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
2309
2310         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
2311         #if expression for use of unaligned function to the one used in
2312         the definition of these functions.
2313         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
2314         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
2315         (internal_ucs4le_loop_unaligned): New function.
2316
2317         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
2318         (tests): Add order.
2319         (module-names): Add dep1, dep2, dep3, and dep4.
2320         Add dependencies for dep* modules and order.
2321         Define rule for order.out which checks the result.
2322         * elf/dep1.c: New file.
2323         * elf/dep2.c: New file.
2324         * elf/dep3.c: New file.
2325         * elf/dep4.c: New file.
2326         * elf/order.c: New file.
2327
2328         * elf/dl-init.c: Fix typo in comment.
2329
2330 2000-03-31  Andreas Jaeger  <aj@suse.de>
2331
2332         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
2333         init function interface.
2334         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
2335
2336 2000-03-31  Andreas Jaeger  <aj@suse.de>
2337
2338         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
2339         * sysdeps/mips/fpu/fegetenv.c: Likewise.
2340         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
2341         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
2342         * sysdeps/mips/fpu/fesetenv.c: Likewise.
2343
2344         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
2345         anymore, update comment.
2346
2347         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2348
2349         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
2350         SHLIB_COMPAT - the struct is always needed.
2351
2352 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
2353
2354         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
2355         * elf/dl-support.c: Define _dl_starting_up.
2356
2357 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
2358
2359         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
2360         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
2361
2362         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
2363
2364         * elf/Makefile (dl-routines): Remove preinit.
2365         * elf/Versions: Remove _dl_preinit.
2366         * elf/dl-preinit.c: Removed.  Move content into...
2367         * elf/dl-init.c: ...here.
2368         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
2369
2370         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
2371         elements.
2372
2373 2000-03-29  Geoff Clare  <gwc@unisoft.com>
2374
2375         * stdlib/strfmon.c: Corrected problems with the code that
2376         sets default values for [np]_sep_by_space and
2377         [np]_sign_posn; also the new positive/negative alignment
2378         code from the previous patch was not quite right for
2379         [np]_sign_posn = 0.
2380
2381         * localedata/tst-fmon.data: Changes corresponding to the
2382         two sets of fixes made to stdlib/strfmon.c.
2383
2384 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
2385
2386         * malloc/malloc.c: Declare bit flags UL so that they will not
2387         default to int size when being inverted.
2388
2389 2000-03-29  Andreas Jaeger  <aj@suse.de>
2390
2391         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
2392         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
2393
2394 2000-03-29  Andreas Jaeger  <aj@suse.de>,
2395             Ralf Baechle <ralf@uni-koblenz.de>
2396
2397         * Makeconfig: Introduce new variable SHARED to mark code used in
2398         the shared library.
2399         * elf/dl-close.c: Use it instead of PIC.
2400         * elf/dl-load.c: Likewise.
2401         * elf/dl-open.c: Likewise.
2402         * hurd/geteuids.c: Likewise.
2403         * include/libc-symbols.h: Likewise.
2404         * include/shlib-compat.h: Likewise.
2405         * libio/freopen.c: Likewise.
2406         * linuxthreads/cancel.c: Likewise.
2407         * linuxthreads/pthread.c: Likewise.
2408         * linuxthreads/wrapsyscall.c: Likewise.
2409         * nss/nsswitch.c: Likewise.
2410         * stdio-common/vfprintf.c: Likewise.
2411         * sysdeps/arm/init-first.c: Likewise.
2412         * sysdeps/i386/init-first.c: Likewise
2413         * sysdeps/generic/init-first.c: Likewise.
2414         * sysdeps/generic/libc-start.c: Likewise.
2415         * sysdeps/mips/init-first.c: Likewise.
2416         * sysdeps/powerpc/elf/libc-start.c: Likewise.
2417         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2418         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
2419         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
2420         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2421
2422         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
2423
2424 2000-03-29  Andreas Jaeger  <aj@suse.de>
2425
2426         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
2427         Use D_PTR to access relocated entries in l_info.
2428         (elf_machine_rela): Likewise.
2429
2430         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
2431         Likewise.
2432         (elf_machine_rela): Likewise.
2433
2434         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
2435         Likewise.
2436         (__elf_machine_fixup_plt): Likewise.
2437         (__process_machine_rela): Likewise.
2438
2439         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
2440         (elf_machine_rela): Likewise.
2441
2442         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
2443         (elf_machine_rel): Likewise.
2444
2445         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
2446         (elf_machine_fixup_plt): Likewise.
2447         (elf_machine_rela): Likewise.
2448
2449 2000-03-29  Andreas Jaeger  <aj@suse.de>
2450
2451         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
2452         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
2453         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2454         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
2455         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
2456         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
2457         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
2458         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
2459         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
2460         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
2461         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
2462         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
2463         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
2464         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
2465         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2466
2467         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
2468         macros, remove K&R prototypes.
2469
2470 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
2471
2472         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
2473         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
2474         (PR libc/1677).
2475
2476 2000-03-30  Andreas Jaeger  <aj@suse.de>
2477
2478         * misc/sys/cdefs.h: Remove K&R support.
2479
2480 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
2481
2482         * iconv/skeleton.c: Avoid compiling unaligned versions in some
2483         with size of dynamic sectionmore cases.
2484         * iconv/loop.c: Likewise.
2485
2486 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
2487
2488         * iconv/loop.c (put16): Remove __const. Fix access index.
2489         (put32): Remove __const. Use uint32_t instead of uint16_t.
2490         * iconv/skeleton.c: Likewise.
2491
2492 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
2493
2494         * mach/Versions (libc: GLIBC_2.0)
2495         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
2496         __vm_allocate on this.
2497         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
2498         mutex- and spinlock-related symbols on this.
2499         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
2500         New version set.  Lock-related symbols go here instead in this case.
2501         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
2502         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
2503         cthread_getspecific, cthread_setspecific, __libc_getspecific.
2504         * hurd/Versions
2505         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
2506         Put them here instead.
2507         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
2508         New version set.  Those cthreads symbols go here instead in this case.
2509         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
2510
2511 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
2512
2513         * elf/dl-init.c (_dl_init): We don't need to call constructors
2514         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
2515
2516         Implement dynamic determination of constructor/destructor order in
2517         the dynamic linker.
2518         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
2519         (GLIBC_2.2): Add _dl_init.
2520         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
2521         r_duplist is not anymore allocated separately.  l_initfini is and
2522         therefore free it if necessary.
2523         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
2524         malloc block.  Otherwise allocate l_initfini list only.
2525         Put dependencies for the object in l_initfini list.
2526         Sort dependencies for the object to be loaded topologically.
2527         * elf/dl-fini.c: Before running the destructors sort the topologically.
2528         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
2529         call constructors instead of iterating over the pointers.  Get list of
2530         objects for which to run constructors from l_initfini element. Accept
2531         argc, argv, and env as parameters and pass them to the constructors.
2532         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
2533         with size of dynamic section.
2534         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
2535         _dl_init_next and calling constructors ourself.
2536         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
2537         Take argc, argv, and env as parameters and pass them to the
2538         constructors.  Rewrite to call all constructors and not iterate over
2539         the pointers.
2540         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
2541         precompute l_initcount and l_preinitcount.
2542         * elf/link.h (struct link_map): Add l_ldnum member.
2543         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
2544         l_initcount, and l_preinitcount.  Add l_initfini.
2545         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
2546         one for _dl_init.
2547         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
2548         function interface.
2549         * sysdeps/unix/sysv/linux/init-first.h: Removed.
2550         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
2551         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
2552         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
2553         conventions now match.
2554
2555         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
2556         effect for shared objects.  Don't emit message and call only for
2557         static library.
2558
2559 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
2560
2561         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
2562         CSA_Z243.4-1985-1..UCS2.
2563         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
2564         ISO-8859-10..UCS2.
2565
2566 2000-03-29  Andreas Jaeger  <aj@suse.de>
2567
2568         * include/unistd.h: Remove duplicate entry for __rmdir.
2569         Remove declaration of __mkdir since __mkdir is declared in
2570         sys/stat.h.
2571
2572         * manual/creature.texi (Feature Test Macros): Fix typo, reported
2573         by Michael Deutschmann <michael@talamasca.ocis.net>.
2574
2575         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
2576         * sysdeps/mips/fpu/fegetenv.c: Likewise.
2577         * sysdeps/mips/fpu/fesetenv.c: Likewise.
2578         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
2579         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
2580
2581 2000-03-28  Andreas Jaeger  <aj@suse.de>
2582
2583         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
2584         declaration, the prototype is defined via bits/mathcalls.h.
2585         (__sincosf): Likewise.
2586         (__sincosl): Likewise.
2587         (ldexp): Likewise.
2588         (ldexpf): Likewise.
2589         (ldexpl): Likewise.
2590         (__finite): Likewise.
2591         (__inline_mathcodeNP): New macro without prototype
2592         declarations.
2593         (__inline_mathcodeNP2): Likewise.
2594         (__inline_mathcodeNP3): Likewise.
2595         (__inline_mathcodeNP_): Likewise.
2596         (__inline_mathcodeNP2_): Likewise.
2597         (__inline_mathcodeNP3_): Likewise.
2598         (__inline_mathopNP): Likewise.
2599         (__inline_mathop_declNP): Likewise.
2600         (__inline_mathop_declNP_): Likewise.
2601         (__inline_mathcode_): Use __inline_mathcodeNP_.
2602         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
2603         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
2604         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
2605         (__expm1l): Don't define prototype, the prototype is defined via
2606         bits/mathcalls.h.
2607         (exp): Likewise.
2608         (__expl): Likewise.
2609         (tan): Likewise.
2610         (atan2): Likewise.
2611         (__atan2l): Likewise.
2612         (fmod): Likewise.
2613         (pow): Likewise.
2614         (fabsf): Likewise.
2615         (fabsl): Likewise.
2616         (__fabsl): Likewise.
2617         (asin): Likewise.
2618         (acos): Likewise.
2619         (sinh): Likewise.
2620         (cosh): Likewise.
2621         (tanh): Likewise.
2622         (floor): Likewise.
2623         (ceil): Likewise.
2624         (expm1): Likewise.
2625         (log1p): Likewise.
2626         (asinh): Likewise.
2627         (acosh): Likewise.
2628         (atanh): Likewise.
2629         (hypot): Likewise.
2630         (logb): Likewise.
2631         (fma): Likewise.
2632         (drem): Likewise.
2633         (sqrt): Likewise.
2634         (__sqrtl): Likewise.
2635         (sin): Likewise.
2636         (cos): Likewise.
2637         (atan): Likewise.
2638         (log): Likewise.
2639         (log10): Likewise.
2640         (asinh): Likewise.
2641         (log2): Likewise.
2642         (rint): Likewise.
2643
2644 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
2645
2646         * Makerules: If make variable md5 is defined to yes after
2647         generating dependencies generate MD5 sum for the object.
2648
2649         * iconv/gconv_builtin.h: Fix length in transformation definition
2650         for UNICODEBIG.
2651
2652         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
2653
2654         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
2655         allow as well reading from/writing to unaligned addresses on machines
2656         which don't support this in hardware.  Use FCTNAME macro to define
2657         function name.  Include the file a second time for platforms which
2658         need special unaligned handling.
2659         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
2660         to access potentially unaligned addresses.  These macros are intended
2661         to be used only outside the loops.
2662         (unaligned): New definition.  In case the machine can handle unaligned
2663         access define as zero.  Otherwise as a variable which is initialized
2664         as nonzero in case the buffer passed in at runtime is unaligned with
2665         respect to the character set encoding involved.
2666         Call aligned or unaligned looop functions according to unaligned
2667         variable.
2668         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
2669         of direct casting pointer to potentially handle unaligned memory
2670         accesses.
2671         * iconvdata/8bit-generic.c: Likewise.
2672         * iconvdata/ansi_x3.110.c: Likewise.
2673         * iconvdata/big5.c: Likewise.
2674         * iconvdata/euc-cn.c: Likewise.
2675         * iconvdata/euc-jp.c: Likewise.
2676         * iconvdata/euc-kr.c: Likewise.
2677         * iconvdata/euc-tw.c: Likewise.
2678         * iconvdata/gbk.c: Likewise.
2679         * iconvdata/iso-2022-cn.c: Likewise.
2680         * iconvdata/iso-2022-jp.c: Likewise.
2681         * iconvdata/iso-2022-kr.c: Likewise.
2682         * iconvdata/iso646.c: Likewise.
2683         * iconvdata/iso_6937-2.c: Likewise.
2684         * iconvdata/iso_6937.c: Likewise.
2685         * iconvdata/johab.c: Likewise.
2686         * iconvdata/sjis.c: Likewise.
2687         * iconvdata/t.61.c: Likewise.
2688         * iconvdata/uhc.c: Likewise.
2689         * iconvdata/unicode.c: Likewise.
2690         * iconvdata/utf-16.c: Likewise.
2691
2692         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
2693         prototypes.
2694
2695         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
2696         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
2697         public.
2698         * malloc/mcheck.h (mcheck_check_all): Declare.
2699
2700         * stdio-common/Makefile (tests): Add tst-obprintf.
2701
2702 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
2703
2704         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
2705         Declare pthread_sigmask.
2706
2707         * csu/version.c: Add 2000 to copyright years.
2708         Remove Emacs local variables section.
2709
2710 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
2711
2712         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
2713         __gconv_transform_internal_ucs2little): Remove declarations.
2714         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
2715         __gconv_transform_internal_ucs2): Never need to bswap_16.
2716         (__gconv_transform_ucs2reverse_internal,
2717         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
2718
2719 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
2720
2721         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
2722         obsoleting version not being defined at all, in which case the
2723         result is always true.
2724
2725         * Makeconfig (preprocess-versions): New canned sequence for running
2726         cpp on shlib-versions and the like.
2727         (soversions.i): Use it.
2728         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
2729         Versions.def and Versions files.
2730
2731 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
2732
2733         * stdio-common/tst-obprintf.c (main): Add another check to see
2734         obstack_printf handling all possible beginnings of the block
2735         inside an obstack chunk.
2736
2737         * locale/programs/localedef.c: Use __malloc_initialize_hook to
2738         install mcheck handler.
2739
2740         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
2741         handling problem.
2742
2743 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
2744
2745         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
2746
2747         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
2748         on [HAVE_ELF && DO_VERSIONING].
2749
2750 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
2751
2752         * stdio-common/tst-obprintf.c: New file.
2753
2754 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
2755
2756         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
2757         _IO_OVERFLOW directly instead through __overflow.
2758
2759         * locale/programs/localedef.c (construct_output_path): If path
2760         contains a / compute the end of the directory name correctly.
2761
2762         * include/features.h: Undef and document __USE_XOPEN2K.
2763
2764         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
2765         whenever a function is called.  Initiated by calling mcheck_pedantic
2766         instead of mcheck.
2767         * malloc/mcheck.h: Declare mcheck_pedantic.
2768         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
2769         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
2770         for now.
2771
2772 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
2773
2774         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
2775         * dlfcn/dlopenold.c: Likewise.
2776         * nss/getXXbyYY_r.c: Likewise.
2777         * nss/getXXent_r.c: Likewise.
2778         * hurd/hurdinit.c: Likewise.
2779         * hurd/compat-20.c: Likewise.
2780         * libio/oldiofopen.c: Likewise.
2781         * libio/oldiofclose.c: Likewise.
2782         * libio/oldiofdopen.c: Likewise.
2783         * libio/oldfileops.c: Likewise.
2784         * libio/oldstdfiles.c: Likewise.
2785         * libio/oldiofsetpos.c: Likewise.
2786         * libio/oldiofgetpos.c: Likewise.
2787         * libio/oldiofgetpos64.c: Likewise.
2788         * libio/oldiofsetpos64.c: Likewise.
2789         * libio/oldiopopen.c: Likewise.
2790         * libio/oldpclose.c: Likewise.
2791         * libio/oldtmpfile.c: Likewise.
2792         * libio/freopen.c (freopen): Likewise.
2793         * libio/iofclose.c (_IO_new_fclose): Likewise.
2794
2795         * sysdeps/mach/sys/reboot.h: Include <features.h>.
2796         (reboot): Declare it.
2797
2798         * libio/Makefile (headers): Add bits/stdio-lock.h here.
2799
2800         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
2801
2802         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
2803
2804         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
2805         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
2806         We need this for the sbrk decl, which can be included without Unix98.
2807
2808 2000-03-20  Richard Henderson  <rth@cygnus.com>
2809
2810         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
2811         argument to yperr2nss is an int, not size_t.
2812         * posix/regex.c (print_partial_compiled_pattern): Cast all
2813         ptrdiff_t to long for printing.
2814         (print_compiled_pattern): Use Z for printing size_t.
2815         * posix/testfnm.c (tests): Avoid trigraphs.
2816         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2817         Use a C comment, not an assembly comment.
2818
2819         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
2820         of __ASSUME_32BITUIDS.
2821
2822 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
2823
2824         * libio/iofopncook.c: Remove K&R prototypes.
2825
2826 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
2827
2828         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
2829         an initial value of 1024 instead of RLIM_INFINITY.
2830
2831         * Versions.def (libmachuser, libhurduser): Remove these sections,
2832         since these libraries do not presently use symbol versions.
2833
2834         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
2835         is RLIM_INFINITY, return -1 instead.
2836
2837 2000-03-24  Andreas Jaeger  <aj@suse.de>
2838
2839         * Makefile (postclean): Added soversions.i.
2840
2841 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
2842
2843         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
2844         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
2845         and _FPU_IEEE.  Change _FPU_RESERVED.
2846
2847 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
2848
2849         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
2850
2851 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
2852
2853         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
2854         (gaih_inet): Remove unused duplicate variable.
2855
2856         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
2857         Don't use __libc_sa_len, which only exists for Linux.  Just handle
2858         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
2859         only flavors supported by this function anyway.
2860
2861 2000-03-24  Geoff Clare  <gwc@unisoft.com>
2862
2863         * stdlib/strfmon.c: corrected problems with missing signs and
2864         missing or extra spaces; allow for sign strings longer than
2865         one character; add padding to ensure positive and negative
2866         formats are aligned when a left precision is used.
2867
2868 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
2869
2870         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
2871         Patch by John Mizel <John.Mizel@msdw.com>.
2872
2873 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
2874
2875         * manual/install.texi: Remove references to crypt add-on.
2876
2877 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
2878
2879         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
2880         section while taking the _hurd_rlimit_lock.
2881         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
2882
2883 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
2884
2885         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
2886         using $(LN_S).
2887
2888         * sysdeps/mach/hurd/if_index.c: New file.
2889
2890         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
2891         * sysdeps/gnu/net/if.h: here.
2892         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
2893         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
2894         * sysdeps/generic/net/if.h: New file.  Declares just the standard
2895         functions and `struct if_nameindex' type.
2896         * socket/Makefile (headers): Add net/if.h here.
2897         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
2898         * sysdeps/mach/hurd/Dist: Remove it here.
2899         * sysdeps/unix/sysv/linux/Dist: And here.
2900         * sysdeps/generic/if_index.c: Include <net/if.h>.
2901
2902 2000-03-24  Andreas Jaeger  <aj@suse.de>
2903
2904         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
2905         access relocated entries in l_info.
2906         (elf_machine_got_rel): Likewise.
2907         (elf_machine_runtime_setup): Likewise.
2908         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
2909         (elf_machine_runtime_setup): Likewise.
2910         (__dl_runtime_resolve): Likewise.
2911
2912 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
2913
2914         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
2915         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
2916         according to RFC 2553.
2917         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
2918         * inet/getnameinfo.c: Likewise.
2919         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
2920
2921 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
2922
2923         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
2924         Remove no-op pointer increment.
2925
2926 2000-03-23  Andreas Jaeger  <aj@suse.de>
2927
2928         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
2929         follow change for libio.h from 2000-03-10.
2930
2931 2000-03-23  Andreas Jaeger  <aj@suse.de>
2932
2933         * elf/dl-addr.c: Adjust include paths for ldsodefs location
2934         change.
2935         * elf/dl-debug.c: Likewise.
2936         * elf/dl-deps.c: Likewise.
2937         * elf/dl-error.c: Likewise.
2938         * elf/dl-fini.c: Likewise.
2939         * elf/dl-init.c: Likewise.
2940         * elf/dl-load.c: Likewise.
2941         * elf/dl-lookup.c: Likewise.
2942         * elf/dl-minimal.c: Likewise.
2943         * elf/dl-object.c: Likewise.
2944         * elf/dl-open.c: Likewise.
2945         * elf/dl-preinit.c: Likewise.
2946         * elf/dl-profile.c: Likewise.
2947         * elf/dl-profstub.c: Likewise.
2948         * elf/dl-reloc.c: Likewise.
2949         * elf/dl-runtime.c: Likewise.
2950         * elf/dl-support.c: Likewise.
2951         * elf/dl-symbol.c: Likewise.
2952         * elf/dl-version.c: Likewise.
2953         * elf/rtld.c: Likewise.
2954         * elf/sprof.c: Likewise.
2955         * sysdeps/generic/dl-cache.c: Likewise.
2956         * sysdeps/generic/dl-origin.c: Likewise.
2957         * sysdeps/generic/dl-sysdep.c: Likewise.
2958         * sysdeps/generic/elf/backtracesyms.c: Likewise.
2959         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2960         * sysdeps/generic/libc-start.c: Likewise.
2961         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2962         * sysdeps/powerpc/dl-machine.c: Likewise.
2963         * sysdeps/powerpc/elf/libc-start.c: Likewise.
2964         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2965         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2966         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2967
2968         * elf/ldsodefs.h: Move file to ...
2969         * sysdeps/generic/ldsodefs.h: ... here.
2970
2971         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
2972
2973         * sysdeps/mips/elf/ldsodefs.h: New file.
2974
2975         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
2976         entries in l_info.
2977         (_dl_check_map_versions): Likewise.
2978         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2979         * elf/dl-load.c (_dl_init_paths): Likewise.
2980         (_dl_map_object): Likewise.
2981         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
2982         (elf_get_dynamic_info): Likewise.
2983         * elf/do-lookup.h (FCT): Likewise.
2984         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
2985         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2986         * elf/dl-addr.c (_dl_addr): Likewise.
2987         * elf/dl-runtime.c (profile_fixup): Likewise.
2988         (fixup): Likewise.
2989         * elf/dl-init.c (_dl_init_next): Likewise.
2990         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
2991         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
2992         (DISTINGUISH_LIB_VERSIONS): Likewise.
2993         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
2994         (elf_machine_rel): Likewise.
2995
2996         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
2997         for writable dynamic section.
2998
2999 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
3000
3001         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
3002         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
3003
3004 2000-03-22  Andreas Jaeger  <aj@suse.de>
3005
3006         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
3007         from latest Linux kernel.
3008
3009 2000-03-21  Andreas Jaeger  <aj@suse.de>
3010
3011         * Versions.def: Add version 2.1.4.
3012
3013 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
3014
3015         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
3016         * libio/oldiofopen.c: Likewise.
3017         * libio/oldiofclose.c: Likewise.
3018         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
3019
3020 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
3021
3022         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
3023         indicating the first version set to obsolete the conditionalized code.
3024         (compat_symbol): New macro.
3025         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
3026         rhs be the ABI_* macro for the subsuming version.  Assign increasing
3027         integer values to the ABI_* macros for supported versions.
3028         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
3029         compat_symbol macro.
3030
3031 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
3032
3033         * nscd/connections.c (nscd_run): Pretty print.
3034         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
3035
3036         * manual/charset.texi: Fix typos.  Rephrase.
3037         * manual/process.texi: Likewise.
3038         * manual/signal.texi: Likewise.
3039         Patches by Mike Coleman <mkc@kc.net>.
3040
3041         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
3042         versions.
3043         * libio/iofdopen.c: Likewise.
3044         * libio/iofgetpos.c: Likewise.
3045         * libio/iofgetpos64.c: Likewise.
3046         * libio/iofopen.c: Likewise.
3047         * libio/iofsetpos.c: Likewise.
3048         * libio/iofsetpos64.c: Likewise.
3049         * libio/iopopen.c: Likewise.
3050         * libio/oldiofopen.c: Likewise.
3051         * libio/pclose.c: Likewise.
3052         * sysdeps/gnu/siglist.c: Likewise.
3053         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
3054
3055         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
3056         chance to expand VERSION_##lib##_##version.
3057
3058         * libio/fileops.c: Use new macros from shlib-compat.h to define
3059         versions.
3060         * libio/iofclose.c: Likewise.
3061         * libio/oldiofclose.c: Likewise.
3062         Patch by Roland McGrath <roland@frob.com>.
3063
3064 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
3065
3066         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
3067         Lay out struct sigcontext according to what really gets passed on
3068         the stack.
3069         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
3070         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
3071         (prgregset_t, prfpregset_t): Define to elf_* types.
3072         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
3073         Define to correct value.
3074         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
3075         sigcontext.
3076         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
3077
3078 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
3079
3080         * scripts/firstversions.awk: Allow multiple version sets in the
3081         "earliest version" specification, meaning that version sets in the
3082         gaps between listed versions should be folded into the earliest later
3083         version that is explicitly listed.
3084         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
3085         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
3086
3087 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
3088
3089         * iconv/gconv_builtin.c: Include <endian.h>.
3090         * iconv/gconv_builtin.h: Add UCS-BE aliases.
3091         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
3092         according to current platform.
3093         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
3094         __gconv_transform_internal_ucs2reverse, and
3095         __gconv_transform_internal_ucs4le.
3096         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
3097         __gconv_transform_ucs2reverse_internal and
3098         __gconv_transform_internal_ucs2reverse.
3099         * iconvdata/Makefile (modules): Add UNICODE.
3100         (distribute): Add unicode.c.
3101         * iconvdata/gconv-modules: Add definitions for UNICODE module.
3102         * iconvdata/unicode.c: New file.
3103
3104         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
3105         determine byte order of input and convert accordingly.
3106
3107         * iconvdata/utf-16.c (gconv_init): Fix typo.
3108
3109 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
3110
3111         * iconvdata/gconv-modules: Fix typo.
3112
3113         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
3114         more messages.
3115
3116         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
3117
3118 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
3119
3120         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
3121
3122 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
3123
3124         * misc/Makefile (routines): Add mincore.
3125
3126 2000-03-20  Andreas Jaeger  <aj@suse.de>
3127
3128         * sysdeps/generic/mincore.c: New stub file.
3129
3130         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
3131         from latest Linux kernel.
3132
3133 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
3134
3135         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
3136         _SC_GETPW_R_SIZE_MAX.
3137
3138 2000-03-20  Richard Henderson  <rth@cygnus.com>
3139
3140         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
3141         in GLIBC_2.1.4.
3142
3143 2000-03-20  Richard Henderson  <rth@cygnus.com>
3144
3145         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
3146         of arithmetic instructions.
3147
3148         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
3149         with the fpcr.  Protect from INV exception.
3150         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
3151         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
3152         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
3153
3154         * sysdeps/alpha/fpu/s_copysign.c: New.
3155         * sysdeps/alpha/fpu/s_copysignf.c: New.
3156         * sysdeps/alpha/fpu/s_fabs.c: New.
3157         * sysdeps/alpha/fpu/s_fabsf.c: New.
3158         * sysdeps/alpha/fpu/s_rint.c: New.
3159         * sysdeps/alpha/fpu/s_rintf.c: New.
3160
3161         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
3162
3163         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
3164         Kill sethae.
3165         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
3166         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
3167         Use physical addresses not KSEG addresses.
3168         (io_system): Add PYXIS.
3169         (io): Remove hae.reg, sys, hae_shift.
3170         (stb_mb, stw_mb, stl_mb, __sethae): New.
3171         (inline_outb, inline_outw, inline_outl): Don't set hae.
3172         (inline_inb, inline_inw, inline_inl): Likewise.
3173         (dense_sethae): New null function.
3174         (struct cpuinfo_data): New.
3175         (process_cpuinfo): Use local and stack variables, not static.
3176         Move readlink check here from init_iosys.
3177         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
3178         (_iopl): Simplify.
3179         (_hae_shift): Calculate it here.
3180         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
3181         add pciconfig_iobase.
3182
3183 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
3184
3185         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
3186         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
3187
3188         * scripts/versions.awk: Fixed version renaming code to distinguish
3189         libraries properly.
3190
3191 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
3192
3193         * include/stdlib.h: Add prototype for __cxa_atexit.
3194
3195         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
3196         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
3197
3198 2000-03-17  Cristian Gafton  <gafton@redhat.com>
3199
3200         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
3201         existing rtld-installed-name.
3202         ($(rtld-installed-name)): Request libc-$(version) be installed too.
3203         replace existing rtld-installed-name using $(symbolic-link-prog).
3204
3205 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
3206
3207         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
3208         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
3209         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
3210         but not the former.
3211
3212 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
3213
3214         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
3215         glob64.  Since there is no glob64 in the LFS proposal applications
3216         can assume that glob handles LFS situations.  glob64 is only needed
3217         if alternative filesystem functions are used.
3218
3219 2000-03-19  Geoff Clare  <gwc@unisoft.com>
3220
3221         * sysdeps/generic/glob.c: Correct gl_pathc value returned
3222         when GLOB_DOOFFS is set; correct handling of patterns
3223         containing escaped wildcards (and no unescaped ones);
3224         GLOB_ERR flag was being ignored in some situations.
3225
3226         * posix/globtest.c, posix/globtest.sh: Updated to include
3227         tests for the problems fixed by the above changes to glob.c.
3228
3229         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
3230
3231 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
3232
3233         * Makeconfig (soversion.i): Use only first match for each lib.
3234
3235         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
3236
3237         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
3238         rather than $(sysd-dirs-done) to protect these rules.
3239
3240         * Makerules (version-renames.def): Target removed.
3241         (Versions.all): Depend on soversions.i directly and parse it.
3242
3243         * Makeconfig (soversions.i): New target, input-reading parts of
3244         soversions.mk generation moved here; result is a canonicalized
3245         list "LIB VERSION [SET]" for this configuration.
3246         (soversions.mk): Use that as input.  Don't emit map-firstversions.
3247         * Makerules (version-renames.def): New target, generated from
3248         soversions.i with contents that was in $(map-firstversions).
3249         (Versions.all): Don't depend on soversions.mk, depend on
3250         version-renames.def instead; just cat it into the input.
3251
3252         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
3253         for $(map-firstversions), which better handles it being empty.
3254
3255         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
3256         supported version for libc 0.2.90.libio to GLIBC_2.2.
3257
3258         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
3259         and use it to emit new variable `map-firstversions'.
3260         * scripts/firstversions.awk: New file.
3261         * Makerules (Versions.all): Use scripts/firstversions.awk and
3262         the $(map-firstversions) value to generate a modified versions list
3263         that includes renames in "A = B" syntax for each version set earlier
3264         than the "earliest symbol version" named in shlib-versions.
3265         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
3266         rename version set A to B in the output to the intermediate file.
3267         * scripts/abi-versions.awk: New file.
3268         * Makerules (abi-versions.h): New target, generated by that script.
3269         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
3270         * include/shlib-compat.h: New file, uses that generated header.
3271
3272 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
3273
3274         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
3275         after stripping # comments, and then run it through cpp.
3276         This allows things like "%ifdef FOO" based on config.h settings.
3277         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
3278
3279         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
3280         and other errors that indicate a pseudo-receive happened, grok through
3281         the message buffer for port rights that need references fixed up.
3282
3283 2000-03-16  Andreas Jaeger  <aj@suse.de>
3284
3285         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
3286
3287         * sysdeps/unix/sysv/linux/madvise.c: Remove.
3288
3289         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
3290         from latest Linux kernel.
3291         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
3292
3293         * misc/sys/mman.h: Add prototype for mincore.
3294
3295 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
3296
3297         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
3298         entry for GLIBC_2.0 version of setrlimit.
3299         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3300
3301 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
3302
3303         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
3304         * nis/nss_compat/compat-initgroups.c: Likewise.
3305         * nis/nss_nis/nis-initgroups.c: Likewise.
3306         * nis/nss_nis/nis-netgrp.c: Likewise.
3307         * nis/nss_nis/nis-proto.c: Likewise.
3308         * nis/nss_nis/nis-rpc.c: Likewise.
3309         * nis/nss_nis/nis-service.c: Likewise.
3310         * nis/ypclnt.c: Likewise.
3311
3312 2000-03-16  Andreas Jaeger  <aj@suse.de>
3313
3314         * manual/Makefile: MAKEINFO is set to `:' from configure if it
3315         doesn't exist, correct checks.  Fixes PR libc/1649.
3316
3317 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
3318
3319         * nscd/hstcache.c: Restore correct UID.
3320         * nscd/pwdcache.c: Likewise.
3321         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
3322
3323 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
3324
3325         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
3326         macros for register names, in line with 2000-03-14 linux change.
3327
3328         * sysdeps/mach/sched_yield.c: New file.
3329
3330 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
3331
3332         * sysdeps/generic/lockfile.c: Include <stdio.h>
3333         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
3334         case <libio.h> defined them.
3335         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
3336         from __internal_*.
3337         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
3338         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
3339
3340         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
3341         for more pleasing parse error.
3342
3343 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
3344
3345         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
3346         memory for eras.
3347         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
3348
3349         * elf/Makefile: Add rules to compile and run constload1 test.
3350         * elf/constload1.c: New file.
3351         * elf/constload2.c: New file.
3352         * elf/constload3.c: New file.
3353
3354 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
3355
3356         * sysdeps/posix/open64.c: Make __open64 weak alias.
3357         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
3358         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3359         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
3360         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3361         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
3362         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
3363         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3364         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
3365         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3366         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
3367
3368 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
3369
3370         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
3371         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
3372
3373 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
3374
3375         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
3376         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
3377
3378 2000-03-08  Andreas Jaeger  <aj@suse.de>
3379
3380         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
3381
3382 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
3383
3384         * timezone/africa: Update from tzdata2000d.
3385         * timezone/asia: Likewise.
3386         * timezone/australasia: Likewise.
3387         * timezone/europe: Likewise.
3388         * timezone/northamerica: Likewise.
3389         * timezone/southamerica: Likewise.
3390
3391         * po/fr.po: Update from translation team.
3392         * po/de.po: Likewise.
3393
3394         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
3395         last parameter.  Move code to add map to global scope from here...
3396         * elf/dl-open.c (dl_open_worker): ...here.
3397         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
3398         * elf/rtld.c: Adjust call to _dl_map_object_deps.
3399
3400         * locale/programs/ld-collate.c (collate_read): Fix warning.
3401
3402         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
3403         values and macros for register names.
3404
3405         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
3406         returned by seek cookie function is -1.
3407
3408 2000-03-14  Andreas Jaeger  <aj@suse.de>
3409
3410         * locale/localeconv.c (localeconv): Fix typo.
3411         Reported by Andre Charbonneau <andrec@corel.com>.
3412
3413 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
3414
3415         * iconv/skeleton.c: Increment __invocation_counter in inner loop
3416         since modules depend on it counting the number of times the conversion
3417         function got called.
3418
3419         * iconv/gconv_open.c: Optimize loop to setup step data structure.
3420
3421         * iconv/gconv.h: Pretty print.
3422
3423 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
3424
3425         * posix/wordexp-test.c: Correct one of the tests added in the last
3426         change.  Really get the root passwd entry to check again ~root.
3427
3428 2000-03-10  Andreas Jaeger  <aj@suse.de>
3429
3430         * manual/filesys.texi (Working Directory): Fix last patch.
3431         Patch by Martin Buchholz  <martin@xemacs.org>.
3432
3433 2000-03-10  Andreas Jaeger  <aj@suse.de>
3434
3435         * manual/creature.texi (Feature Test Macros): Fix language.
3436
3437 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
3438
3439         * mach/devstream.c (devstream_write, devstream_read): New functions.
3440         (input, output): Functions removed.
3441         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
3442         using only the vanilla fopencookie interface.
3443
3444         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
3445         as macro for __io_functions.
3446         (funcsio): Use cookie_io_functions_t type name.
3447         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
3448
3449         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
3450         fopencookie.
3451         (fopencookie): Use it.
3452         * libio/libio.h: Declare _IO_cookie_init.
3453         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
3454         _IO_cookie_init.
3455
3456         * libio/libio.h (__io_seek_fn): Fix second argument type
3457         to be a pointer, in line with the manual and the old stdio.
3458         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
3459
3460         * sysdeps/generic/bits/stdio-lock.h: New file.
3461         This is a stub with #error, but that's better than no file at all.
3462
3463 2000-03-09  Martin Buchholz  <martin@xemacs.org>
3464
3465         * sysdeps/unix/sysv/linux/alpha/syscall.S:
3466         * manual/message.texi (Using gettextized software):
3467         * manual/message.texi (Message Translation): Doc Fixes.
3468         * manual/filesys.texi (File Size):
3469         * manual/charset.texi (glibc iconv Implementation):
3470         * locale/programs/ld-collate.c (collate_output):
3471         * iconv/gconv_db.c (find_derivation):
3472         * manual/install.texi:
3473         * manual/search.texi (Hash Search Function):
3474         * manual/stdio.texi (Output Conversion Syntax):
3475         * FAQ.in:
3476         * config.h.in:
3477         * sysdeps/generic/dl-sysdep.c:
3478         Doc Fixes.  `allows to' is not correct English.
3479
3480         * elf/rtld.c: Doc fixes.
3481         * manual/creature.texi (Feature Test Macros): Doc fixes.
3482         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
3483
3484         * manual/filesys.texi (Working Directory): Check for ERANGE to
3485         avoid infloop.
3486
3487 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
3488
3489         * string/argz-stringify.c (__argz_stringify): Fix loop termination
3490         conditions so as not to clobber the final '\0' when there is only one
3491         element in the vector.
3492
3493 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
3494
3495         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
3496         broken by 2000-02-27 change.
3497
3498         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
3499
3500 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
3501
3502         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
3503         argument type, for 2000-02-22 change in signal/signal.h declaration.
3504
3505 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
3506
3507         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
3508         to getdirentries64 (no __), since the Linux implementation
3509         has no __ name, and there is no declaration for the __ name.
3510
3511         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
3512
3513         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
3514         sed regexp so as not to break directory names including /../ within.
3515
3516         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
3517         The sysdeps/generic file is right for BSD.  This file was in fact the
3518         Hurd file, but the only difference was the WNOREAP flag that was never
3519         actually implemented or used anywhere.
3520
3521         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
3522         since AC_PATH_PROG already does it for us.
3523         (PERL): Rewrite check added in 2000-02-29 change for syntactic
3524         correctness and sh portability.  I replaced the broken check
3525         with a more sensible implementation of the apparently intended
3526         semantics, which might still be questionable.  Using expr causes
3527         a non-numeric value for `perl -V:apiversion` to be accepted,
3528         refusing to use only a perl that reports a number less than 5;
3529         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
3530         * configure: Regenerated.
3531
3532 2000-03-08  Andreas Jaeger  <aj@suse.de>
3533
3534         * manual/crypt.texi: Fix paths.
3535
3536 2000-03-07  Andreas Jaeger  <aj@suse.de>
3537
3538         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
3539         were swapped.
3540         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
3541         libc/1636.
3542
3543 2000-03-06  Andreas Jaeger  <aj@suse.de>
3544
3545         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
3546         in __sgn1l, otherwise g++ fails to parse this.
3547         Reported by Sean Chen <sean.chen@turbolinux.com>.
3548
3549 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
3550
3551         * configure.in: Compute sizeof-long-double.
3552         * configure: Regenerated.
3553         * config.make.in: Make sizeof-long-double available to sub-makes.
3554
3555 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
3556
3557         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
3558         call.
3559
3560 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
3561
3562         * Makeconfig (rpath-dirs): Add crypt.
3563         (all-subdirs): Remove md5crypt.
3564         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
3565         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
3566         * sysdeps/generic/crypt-entry.c: Delete.
3567         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
3568         * sysdeps/generic/crypt.h: Delete.
3569         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
3570         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
3571         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
3572         * sysdeps/generic/des_impl.c: Delete.
3573         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
3574         * crypt/sysdeps: Delete.
3575         * crypt/crypt_util.c: Don't use `patchlevel.h'.
3576         * md5-crypt/Versions: Move to crypt/.
3577         * md5-crypt/md5-crypt.c: Move to crypt/.
3578         * md5-crypt/md5.c: Move to crypt/.
3579         * md5-crypt/md5c-test.c: Move to crypt/.
3580         * md5-crypt/md5test.c: Move to crypt/.
3581         * md5-crypt: Delete.
3582         * crypt/Makefile: Adjust for new structure.
3583
3584 2000-03-03  Paul Eggert  <eggert@twinsun.com>
3585
3586         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
3587         define to 1 if not defined.
3588
3589 2000-03-03  Andreas Jaeger  <aj@suse.de>
3590
3591         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
3592
3593 2000-03-03  Andreas Jaeger  <aj@suse.de>
3594
3595         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
3596         cases.
3597         (xdr_int64_t): Correctly handle lower half.
3598         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
3599
3600 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
3601
3602         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
3603         call.
3604
3605 2000-03-02  Andreas Jaeger  <aj@suse.de>
3606
3607         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
3608         2.3.43.
3609
3610 2000-03-02  Andreas Jaeger  <aj@suse.de>
3611
3612         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
3613
3614 2000-03-01  Andreas Jaeger  <aj@suse.de>
3615
3616         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
3617         (tests): Added tst-getdate.
3618
3619         * time/tst-getdate.c: New file.
3620
3621         * time/datemsk: New file, needed for tst-getdate.
3622
3623 2000-02-29  Cristian Gafton  <gafton@redhat.com>
3624
3625         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
3626
3627 2000-02-17  H.J. Lu  <hjl@gnu.org>
3628
3629         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
3630
3631         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
3632         available.
3633         (svcudp_recv): Set up message with the new "xp_pad" field for
3634         IP_PKTINFO.
3635         (svcudp_reply): Support IP_PKTINFO if available.
3636
3637 2000-03-01  Andreas Jaeger  <aj@suse.de>
3638
3639         * time/getdate.c (check_mday): Fix check for february.
3640         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
3641         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
3642
3643 2000-03-02  Andreas Jaeger  <aj@suse.de>
3644
3645         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
3646         g++ fails to parse this.
3647         Reported by Sean Chen <sean.chen@turbolinux.com>.
3648
3649 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
3650
3651         * io/creat.c: Moved to...
3652         * sysdeps/generic/creat.c: ...here.
3653         * io/creat64.c: Moved to...
3654         * sysdeps/generic/creat64.c: ...here.
3655         * io/lockf.c: Moved to...
3656         * sysdeps/generic/lockf.c: ...here.
3657
3658         * crypt/crypt.texi: Moved to...
3659         * manual/crypt.texi: ...here.
3660         * crypt/examples/genpass.c: Moved to...
3661         * manual/examples/genpass.c: ...here.
3662         * crypt/examples/mygenpass.c: Moved to...
3663         * manual/examples/mygenpass.c: ...here.
3664         * crypt/examples/testpass.c: Moved to...
3665         * manual/examples/testpass.c: ...here.
3666
3667         * manual/Makefile (chapters): Add crypt.
3668         * manual/conf.texi: Add usual header for not-last chapter.
3669         * manual/crypt.texi: Add special header for last chapter.
3670
3671 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
3672
3673         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
3674         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
3675         complain if there is no crypt add-on.
3676         * crypt/configure: Removed.
3677
3678         * crypt/crypt.texi: Update documentation of US export restrictions
3679         to match the 14 Jan 2000 regulations.
3680
3681 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
3682
3683         * crypt: New subdirectory, merged in from the crypt add-on.
3684
3685 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
3686
3687         * include/unistd.h: Add __rmdir and __mkdir prototypes.
3688
3689
3690 See ChangeLog.10 for earlier changes.