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