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