Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
4         pseudo denormal representation of LDBL_MIN.
5
6         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
7         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
8
9         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
10         * iconvdata/jis0208.c: Likewise.
11         * iconvdata/jis0212.c: Likewise.
12         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
13
14         * math/test-misc.c (main): More tests for frexp and some for
15         fpclassify and isnormal.
16
17         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
18         test for subnormal.
19         Reported by Fred J. Tydeman <tydeman@tybor.com>.
20
21         * math/test-misc.c (main): Add tests for frexp.
22         Reported by Fred J. Tydeman <tydeman@tybor.com>.
23         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
24
25 2000-12-02  H.J. Lu  <hjl@gnu.org>
26
27         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
28         '\0' to wcschr.
29
30 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
31
32         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
33         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
34         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
35
36         * sysdeps/generic/glob.c: Adjust types of several variables to
37         avoid warnings.
38
39 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
40
41         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
42
43 2000-11-30  Roland McGrath  <roland@frob.com>
44
45         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
46         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
47         allow multiple instances using the same function name in one file.
48
49 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
50
51         * configure.in: Correct test for pserver CVS access.
52
53 2000-11-28  H.J. Lu  <hjl@gnu.org>
54
55         * libio/libio.h: Remove extra "#if ... #endif".
56
57 2000-11-29  H.J. Lu  <hjl@gnu.org>
58
59         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
60
61 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
62
63         * locale/setlocale.c (setname): Free for all categories, not just
64         LC_ALL.
65         (setlocale): Store a copy of string passed by user, not the string
66         itself.
67
68 2000-11-30  Roland McGrath  <roland@frob.com>
69
70         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
71         rather than _hurd_fd_subinit, so it happens after it's safe to use
72         libc facilities like malloc.
73
74 2000-11-28  Andreas Jaeger  <aj@suse.de>
75
76         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
77         declaration, adjust declaration of __syscall_getdents to match
78         kernel.
79
80 2000-11-29  H.J. Lu  <hjl@gnu.org>
81
82         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
83
84 2000-11-29  Andreas Jaeger  <aj@suse.de>
85
86         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
87
88 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
89
90         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
91         * dlfcn/defaultmod2.c: Likewise.
92         * dlfcn/dlopen.c: Likewise.
93         * dlfcn/dlopenold.c: Likewise.
94         * dlfcn/failtestmod.c: Likewise.
95         * dlfcn/glreflib1.c: Likewise.
96         * dlfcn/glreflib2.c: Likewise.
97         * dlfcn/eval.c: Likewise.  Add attributes.
98
99         * ctype/ctype-extn.c: Define isblank and not __isblank.
100
101         * time/strftime.c: Add const where necessary to avoid warnings.
102         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
103
104 2000-11-22  Paul Eggert  <eggert@twinsun.com>
105
106         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
107         size of (size_t) -1; it's not portable.
108
109 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
110
111         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
112         crappy i486 FPU.
113         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
114
115 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
116
117         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
118
119         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
120         _mcount is required by profiled binaries.
121
122         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
123         * sysdeps/ia64/machine-gmon.h: ...here.
124
125 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
126
127         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
128         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
129         and ibm1129.h.
130         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
131         IBM1129.
132         * iconvdata/ibm922.c: New file.
133         * iconvdata/ibm922.h: New file.
134         * iconvdata/ibm1124.c: New file.
135         * iconvdata/ibm1124.h: New file.
136         * iconvdata/ibm1129.c: New file.
137         * iconvdata/ibm1129.h: New file.
138         * iconvdata/testdata/IBM922: New file.
139         * iconvdata/testdata/IBM922..UTF8: New file.
140         * iconvdata/testdata/IBM1124: New file.
141         * iconvdata/testdata/IBM1124..UTF8: New file.
142         * iconvdata/testdata/IBM1129: New file.
143         * iconvdata/testdata/IBM1129..UTF8: New file.
144
145 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
146
147         * catgets/gencat.c (normalize_line): Take extra parameter with escape
148         character.  Change callers.
149         (open_conversion): Determine mapping of 0x5c as wchar_t value.
150         * catgets/Makefile: Add rules to build and run test-gencat.
151         * catgets/sample.SJIS: New file.
152         * catgets/test-gencat.c: New file.
153         * catgets/test-gencat.sh: New file.
154         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
155
156 2000-11-28  Andreas Jaeger  <aj@suse.de>
157
158         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
159         Linux version.
160
161 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
162
163         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
164
165 2000-11-28  Andreas Jaeger  <aj@suse.de>
166
167         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
168         __flexarr.
169         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
170         Likewise.
171
172 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
173
174         * misc/getusershell.c: Make strings in okshells array const.
175         * misc/regexp.c: Add const to cast to avoid warnings.
176         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
177         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
178         __setresuid.
179         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
180         setresgid.
181         * misc/error.c: Add prototypes for __error and __error_at_line.
182         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
183         statement to avoid warning.
184         * test-skeleton.c: Mark timeout_handler with noreturn.
185         * iconv/skeleton.c (get16u): Add const to cast.
186         (get32u): Likewise.
187         * iconvdata/gb18030.c: Likewise.
188         * iconvdata/iso-2022-cn-ext.c: Likewise.
189         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
190         * iconvdata/big5.c: Likewise.
191         * iconvdata/big5hkscs.c: Likewise.
192         * iconvdata/iso_6937.c: Likewise.
193         * iconvdata/iso_6937-2.c: Likewise.
194         * iconvdata/t.61.c: Likewise.
195         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
196         * iconvdata/unicode.c: Likewise.
197         * iconvdata/utf-16.c: Likewise.
198         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
199         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
200         with little code shuffling.
201
202         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
203         the problems introduced when the user selects -O3.
204
205         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
206         * misc/sys/cdefs.h: Define __flexarr.
207         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
208
209         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
210         * iconv/skeleton.c: Likewise.
211         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
212         * iconv/loop.c (get16): Add const to cast.
213         (get32): Likewise.
214
215 2000-11-27  Andreas Jaeger  <aj@suse.de>
216
217         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
218         to avoid warning.
219         * login/programs/utmpdump.c (print_entry): Likewise.
220
221 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
222
223         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
224         in a single asm as they may be used to access other stored
225         registers.
226         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
227
228 2000-11-27  Andreas Jaeger  <aj@suse.de>
229
230         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
231         * rt/tst-aio64.c: Likewise.
232
233 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
234
235         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
236         for gencat run.
237         (libc.cat): Likewise.
238         * catgets/gencat.c: Implement handling of message catalogs encoded
239         with stateful character sets.
240         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
241
242 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
243
244         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
245
246         * inet/getnameinfo.c: Adjust casts to avoid warnings.
247         * inet/rcmd.c: Likewise.
248         * inet/ruserpass.c: Likewise.
249         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
250         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
251         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
252         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
253         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
254         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
255         * include/aliases.h: Add prototypes for internal __getalias* functions.
256         * include/netdb.h: Add prototypes for __old_gethostent_r,
257         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
258         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
259         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
260         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
261         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
262         __old_getrpcbynumber_r, __old_getrpcent_r.
263
264         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
265         __getrpcent_r prototypes.
266
267 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
268
269         * string/strcoll.c: Add casts to avoid warnings.
270         * string/strnlen.c: Likewise.
271         * string/strxfrm.c: Likewise.
272         * sysdeps/generic/_strerror.c: Likewise.
273         * sysdeps/generic/memrchr.c: Likewise.
274         * sysdeps/generic/strcasestr.c: Likewise.
275         * sysdeps/generic/strstr.c: Likewise.
276
277         * locale/weight.h (findidx): Add const to cast to avoid warning.
278
279         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
280         * elf/loadtest.c: Likewise.
281         * elf/multiload.c: Likewise.
282         * elf/next.c: Likewise.
283         * elf/nodelete.c: Likewise.
284         * elf/noload.c: Likewise.
285         * elf/order.c: Likewise.
286         * elf/origtest.c: Likewise.
287         * elf/preloadtest.c: Likewise.
288         * elf/restest1.c: Likewise.
289
290         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
291         parameter of asm must be in %ecx.
292
293         * string/tester.c: Mark test functions as static to avoid warnings.
294
295         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
296         preserve value over different gconv-modules files.
297
298 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
299
300         * locale/findlocale.c: Add casts to avoid warnings.
301         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
302         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
303         to avoid warnings.
304         * misc/tsearch.c (const_node): New type.
305         (trecurse): Correct casts to avoid warnings.
306         (__twalk): Likewise.
307         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
308         LONG_BIT.
309
310         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
311
312         * test-skeleton.c: Mark local functions as static to avoid warnings.
313
314 2000-11-23  H.J. Lu  <hjl@gnu.org>
315
316         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
317         support the background job.
318         Fix a typo.
319
320 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
321
322         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
323         has same names but lower cost.
324
325 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
326
327         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
328         which never occur during bootstrap.
329         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
330
331 2000-11-23  Andreas Jaeger  <aj@suse.de>
332
333         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
334
335         * nss/Versions: Remove _nss_files_getipnodebyname_r.
336
337         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
338
339 2000-11-18  Martin Buchholz  <martin@xemacs.org>
340
341         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
342         (called++) return;'
343
344 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
345
346         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
347
348         * csu/abi-note.S: Correct comment for operating system number.
349
350 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
351
352         * Versions.def: Add GLIBC_2.2.1 for glibc.
353
354 2000-11-22  Andreas Schwab  <schwab@suse.de>
355
356         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
357         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
358
359 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
360
361         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
362         absolute time for pthread_cond_timedwait call.
363         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
364
365         * rt/Makefile (tests): Add tst-aio6.
366         * rt/tst-aio6.c: New file.
367
368 2000-11-23  Andreas Jaeger  <aj@suse.de>
369
370         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
371
372 2000-11-22  Andreas Jaeger  <aj@suse.de>
373
374         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
375
376 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
377
378         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
379
380 2000-11-21  Andreas Schwab  <schwab@suse.de>
381
382         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
383         * sysdeps/arm/setjmp.S: Likewise.
384         * sysdeps/arm/fpu/setjmp.S: Likewise.
385         * sysdeps/i386/setjmp.S: Likewise.
386         * sysdeps/i386/elf/setjmp.S: Likewise.
387         * sysdeps/s390/setjmp.S: Likewise.
388         * sysdeps/s390/elf/setjmp.S: Likewise.
389         * sysdeps/sh/sh3/setjmp.S: Likewise.
390         * sysdeps/sh/sh4/setjmp.S: Likewise.
391         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
392         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
393         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
394         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
395
396 2000-11-21  Andreas Jaeger  <aj@suse.de>
397
398         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
399         NORETURN, fix parameter list.
400
401         * string/bug-strncat1.c (main): Fix typo.
402         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
403
404 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
405
406         * configure.in: Add --enable-all-warnings.
407         * config.make.in (all-warnings): New variable.
408         * Makeconfig (+gccwarn): Define with many more warnings if
409         all-warnings is yes.
410
411 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
412
413         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
414         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
415         * malloc/tst-valloc.c (main): Cast valloc return value to long.
416         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
417         * math/test-fpucw.c (main): Use %lx in format string, cast
418         control words to long.
419         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
420         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
421         large that it is unsigned warning.
422
423         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
424         it to long on sparc64.
425
426 2000-11-20  Andreas Jaeger  <aj@suse.de>
427
428         * nscd/nscd.h (termination_handler): Add noreturn attribute.
429         (receiv_print_stats): Likewise.
430
431         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
432
433 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
434
435         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
436
437         * csu/gmon-start.c: Always have prototype for __gmon_start.
438         * csu/version.c: Add prototypes for __libc_print_version and
439         __libc_main.
440         * iconv/gconv.c: Include gconv_int.h and gconv.h.
441         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
442         and __to_name.
443         * iconv/gconv_builtin.h: Add ASCII module definitions.
444         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
445         (add_module): Add cast to avoid warning.  Rework construction of
446         strings for new module.
447         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
448         (derivation_compare): Likewise.
449         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
450         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
451         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
452         (struct gconv_alias): Remove const from fromname and toname.
453         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
454         for loop functions.
455         (internal_ucs4_loop): Use correct const-ness.
456         (ucs4_internal_loop): Likewise.
457         (internal_ucs4le_loop): Likewise.
458         (ucs4le_internal_loop_single): Likewise.
459         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
460         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
461         assignments appropriately.
462         (struct known_trans): Remove const from fname.
463         (trans_compare): Make s1 and s2 const.
464         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
465         avoid warning.
466         * iconv/skeleton.c: Remove cast in calls of loop functions.
467         * iconvdata/gconv-modules: Remove US-ASCII definitions.
468         * iconvdata/iso646.c: Remove US_ASCII support.
469         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
470         * include/unistd.h: Add __libc_check_standard_fds prototype.
471         * string/bits/string2.h (__mempcpy_args): Add const to casts.
472         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
473         _fini.
474         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
475         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
476         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
477         warning.
478         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
479         __libc_init_first and _dl_start.
480         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
481         (DCIGETTEXT): Make domaindata variable const.
482         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
483         to avoid warning.
484
485 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
486
487         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
488
489         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
490         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
491         __unused? members.
492
493         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
494         value defined in /usr/include/asm-mips/fcntl.h.
495
496 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
497
498         * stdio-common/Makefile (tests): Add test-vfprintf.
499         (test-vfprintf-ENV): New variable.
500         * stdio-common/test-vfprintf.c: New file.
501
502         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
503
504         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
505         (tst-mbrtowc-ENV): New variable.
506         (tst-wcrtomb-ENV): New variable.
507         * wcsmbs/tst-mbrtowc.c: New file.
508         * wcsmbs/tst-wcrtomb.c: New file.
509
510 2000-11-16  Andreas Jaeger  <aj@suse.de>
511
512         * manual/install.texi (Tools for Compilation): Update
513         documentation for GCC 2.95.2.
514
515 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
516
517         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
518         if IPv4 and IPv6 requests timed out.
519
520 2000-11-18  Akim Demaille  <akim@epita.fr>
521
522         * malloc/obstack.h: Formatting changes.
523         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
524         prevents type checking.
525         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
526         cast the value to (void *): assigning a `foo *' to a `void *'
527         variable is valid.
528         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
529
530 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
531
532         * scripts/config.guess: Update from upstream maintainer.
533         * scripts/config.sub: Likewise.
534
535 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
536
537         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
538         * libio/freopen64.c (freopen64): Likewise.
539         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
540
541         * libio/Makefile: Add rules to build and run test-freopen.
542         * libio/test-freopen.c: New file.
543         * libio/test-freopen.sh: New file.
544
545 2000-11-15  H.J. Lu  <hjl@gnu.org>
546
547         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
548         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
549         (DL_DT_FINI_ADDRESS): Likewise.
550
551         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
552         return type to ElfW(Addr).
553         (_dl_function_address): New prototype.
554         (DL_FUNCTION_ADDRESS): Defined.
555         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
556         (DL_DT_FINI_ADDRESS): Likewise.
557
558         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
559
560         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
561         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
562
563         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
564         (_dl_function_address): This.
565
566         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
567         function pointer for DT_FINI.
568         * elf/dl-close.c (_dl_close): Likewise.
569
570         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
571         function pointer for DT_INIT.
572
573 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
574
575         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
576         end of wexpbuf buffer.
577
578 2000-11-16  Andreas Jaeger  <aj@suse.de>
579
580         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
581         definition of F_GETLK, F_SETLK, F_SETLKW.
582
583 2000-11-16  Andreas Jaeger  <aj@suse.de>
584
585         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
586         it's not defined.
587
588 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
589
590         * dlfcn/default.c (main): Add test for dladdr of main returning
591         argv[0] in dli_fname field.
592
593 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
594
595         * Makeconfig (run-program-prefix): Move test-static test into the
596         variable.
597
598         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
599         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
600         schedule instructions.
601         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
602         schedule instructions, fix a bug in copying auxiliary data.
603
604 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
605
606         * manual/startup.texi (Program Arguments): Fix type of main's envp
607         parameter.
608         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
609
610         * iconvdata/gconv-modules: Add CP950 alias.
611
612 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
613
614         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
615         syscall-list.h goal.
616         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
617
618 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
619
620         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
621
622         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
623         output of program.
624
625         * intl/tst-gettext2.c: Set C locale if setting other locale
626         failed.  Use gettext() not _().
627
628         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
629         successfully loaded a new locale.
630
631 2000-11-13  Andreas Jaeger  <aj@suse.de>
632
633         * configure.in: Require gcc 2.95 or newer.
634
635 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
636
637         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
638         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
639
640 2000-11-11  Jim Meyering  <meyering@lucent.com>
641
642         * string/strndup.c (strndup): Cast return value to `char *'.
643
644 2000-11-15  Jim Meyering  <meyering@ascend.com>
645
646         * sysdeps/generic/memchr.c: Remove some useless parentheses.
647         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
648         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
649         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
650         Also #undef __memchr.
651         Use `weak_alias' only if it's defined.
652
653 2000-11-10  H.J. Lu  <hjl@gnu.org>
654
655         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
656
657 2000-11-15  Andreas Jaeger  <aj@suse.de>
658
659         * elf/chroot_canon.c: Include <stdint.h>.
660
661         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
662         (print_entry): Likewise.
663         (add_to_cache): Likewise.
664
665         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
666
667         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
668         (path_hwcap): Likewise.
669         (search_dir): Likewise.
670
671         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
672
673         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
674
675         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
676         (_dl_platform_string): New.
677         (_DL_HWCAP_PLATFORM): New.
678         (_dl_string_platform): New.
679         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
680
681         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
682         (_dl_string_platform): New.
683         (_DL_HWCAP_PLATFORM): New.
684         (_dl_platform_string): New.
685
686         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
687         recognition.
688         (_DL_HWCAP_COUNT): New.
689         (_dl_string_platform): New.
690         (_DL_HWCAP_PLATFORM): New.
691         (_dl_platform_string): New.
692
693 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
694
695         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
696
697 2000-11-14  Andreas Jaeger  <aj@suse.de>
698
699         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to
700         _dl_hwcap.
701
702 2000-11-13  Roland McGrath  <roland@frob.com>
703
704         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
705
706 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
707
708         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
709         underrun and make sure the result is null terminated even if there
710         is no trailing newline.
711
712 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
713
714         * sysdeps/alpha/fpu/libm-test-ulps: Update.
715
716 2000-11-10  H.J. Lu  <hjl@gnu.org>
717
718         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
719
720 2000-11-10  Andreas Jaeger  <aj@suse.de>
721
722         * elf/ldconfig.c (create_links): Fix alloca calculation.
723         Patch by Ben Collins <bcollins@debian.org>.
724
725 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
726
727         * inet/getnameinfo.c (getnameinfo): Use correct destination
728         parameter for if_indextoname.
729         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
730
731 2000-11-09  H.J. Lu  <hjl@gnu.org>
732
733         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
734         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
735         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
736         xdr_keystatus.
737
738         * time/Versions (GLIBC_2.1): Move getitimer to...
739         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
740
741 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
742
743         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL-C during
744         "make install", to work around a binary incompatibility between
745         glibc 2.1 and glibc 2.2 gconv modules.
746
747 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
748
749         * intl/locale.alias: Add thai.
750         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
751
752 2000-11-07  Akim Demaille  <akim@epita.fr>
753
754         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
755         argument `data' for consistency with the prototypes.
756         Qualify it `const'.
757         (obstack_copy, obstack_copy0): Rename the second argument as
758         `address' for consistency.  Qualify it `const'.
759         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
760         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
761         `const' their input argument (`data' or `address').
762         Adjust the corresponding macros to include `const' in casts.
763
764 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
765
766         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
767         target family.
768
769 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
770
771         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
772         socket creation.
773
774 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
775
776         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
777         ai_protocol by internal table if service was not given.
778
779 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
780
781         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
782         numerical port was specified with protocol without socktype.
783
784 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
785
786         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
787
788 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
789
790         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
791
792 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
793
794         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
795         sin6_scope_id field.
796
797 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
798
799         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
800
801 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
802
803         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
804
805 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
806
807         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
808         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
809
810 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
811
812         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
813         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
814
815 2000-11-09  H.J. Lu  <hjl@gnu.org>
816
817         * io/Versions (GLIBC_2.1.1): Remove lockf64.
818
819
820 See ChangeLog.11 for earlier changes.