.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2002-08-05  Roland McGrath  <roland@redhat.com>
2
3         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
4         xprt_unregister.
5         * sunrpc/svc.c: Add libc_hidden_def.
6         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
7         pmap_set, pmap_unset.
8         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
9         * sunrpc/pm_getport.c: Likewise.
10         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
11         * sunrpc/publickey.c: Add libc_hidden_def.
12
13 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
14
15         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
16         the other memset call in this function.
17
18         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
19         at correct index.  Clear BSS region now that memalign is used.
20
21 2002-08-05  Roland McGrath  <roland@redhat.com>
22
23         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
24         * sysdeps/generic/uname.c: Add libc_hidden_def.
25         * sysdeps/mach/hurd/uname.c: Likewise.
26
27 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
28
29         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
30         wcspbrk): Add libc_hidden_proto.
31         * time/strftime.c (my_strftime): Add libc_hidden_def.
32         (strftime): Remove libc_hidden_def.
33         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
34         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
35         * wcsmbs/wcsspn.c (wcsspn): Likewise.
36         * wcsmbs/wcscmp.c (wcscmp): Likewise.
37         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
38         * wcsmbs/wcscoll.c (wcscoll): Likewise.
39
40         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
41         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
42         __rpc_thread_createerr): Add libc_hidden_proto.
43         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
44         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
45         __rpc_thread_createerr): Add libc_hidden_def.
46
47         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
48         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
49         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
50         clnt_perror, clnt_sperror): Add libc_hidden_def.
51         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
52
53         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
54         libc_hidden_proto.
55         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
56         * sunrpc/des_soft.c (des_setparity): Likewise.
57
58         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
59         Add libc_hidden_proto.
60         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
61         Add libc_hidden_def.
62
63 2002-08-05  Roland McGrath  <roland@redhat.com>
64
65         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
66         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
67         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
68         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
69         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
70         old data, abandoning the original memory allocated by rtld at startup,
71         instead of calling realloc normally.
72
73 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
74
75         * po/fr.po: Update from translation team.
76
77 2002-08-04  Roland McGrath  <roland@redhat.com>
78
79         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
80         then generate a dummy module under the given name, obeying the
81         normal rules for the "caller" field.
82
83         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
84         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
85
86         * include/pthread.h: Don't declare __pthread_initialize_minimal as
87         weak here; we declare it weak or strong in the one place we use it.
88         * sysdeps/generic/libc-start.c: ... which is here.
89         Don't make the decl weak if [USE_TLS], since static programs need TLS
90         setup even when single-threaded.
91
92         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
93
94         * elf/Makefile (test-srcs): Add $(modules-names) to it.
95         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
96         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
97         all these variables.
98
99 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
100
101         * include/stdio.h: Don't define macro magic to redirect function
102         calls if _ISOMAC is defined.
103
104         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
105         ldouble asin tests.
106
107 2002-08-04  Roland McGrath  <roland@redhat.com>
108
109         * stdlib/lrand48_r.c: Add libc_hidden_def.
110
111         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
112         TCB with __libc_memalign instead of mmap.
113         (_dl_deallocate_tls): Free it with free instead of munmap.
114
115         * Makerules (cpp-srcs-left): When setting this to run
116         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
117         words.  Combine the two loops into one on the concatenated list,
118         including those as well as $(test-srcs).
119
120         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
121         since we align here with optimally minimal waste anyway.
122         (malloc): Just call that.
123
124         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
125         the right variable.
126
127         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
128         to compute memory location for l_tls_initimage.
129         * elf/rtld.c (_dl_start): Likewise.
130         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
131
132         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
133         because the .d file is generated in the non-shared case and
134         so fails to catch them otherwise.
135
136         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
137         split out of _dl_allocate_tls.
138         (_dl_allocate_tls_init): Likewise.
139         (_dl_allocate_tls): Call those.
140         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
141         * elf/rtld.c (dl_main): Call them separately instead of calling
142         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
143         is finished, so that the initializer data has been relocated before we
144         copy it into the main thread's TLS block.
145
146         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
147         loop conditions, prevented the last used module from being initialized.
148
149 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
150
151         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
152         if glob resp. globfree are not macros.
153         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
154         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
155         Add libc_hidden_ver.
156         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
157         libc_hidden_def.
158         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
159         instead of libc_hidden_weak.
160         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
161         libc_hidden_ver instead of libc_hidden_def.
162         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
163         libc_hidden_ver instead of libc_hidden_def.
164         (wcstoll, wcstoq): Remove libc_hidden_weak.
165         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
166         libc_hidden_ver.
167         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
168         libc_hidden_ver.
169         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
170         libc_hidden_ver.
171         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
172         libc_hidden_ver.
173
174 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
175
176         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
177         to access _sys_siglist.
178         * string/strsignal.c: Likewise.
179         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
180         * sysdeps/gnu/siglist.c: Likewise.
181         * sysdeps/unix/siglist.c: Likewise.
182         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
183
184         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
185
186         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
187
188         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
189         alias and use it.
190         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
191
192         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
193         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
194         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
195
196         * include/time.h: Add libc_hidden_proto for __gmtime_r.
197         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
198
199         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
200         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
201         and __gconv_get_cache respectively.
202         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
203         defined static.  Change all users.
204         (__gconv_get_cache): New function.
205         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
206         (__gconv_get_alias_db): New function.
207         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
208         (__conv_modules_db): Likewise.
209         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
210         and __gconv_get_alias_db.
211         * iconv/iconv_prog.c: Use the new functions instead of accessing the
212         variables.
213
214         * include/stdlib.h: Add prototype and libc_hidden_proto for
215         __default_morecore.
216         * sysdeps/generic/morecore.c: Include <stdlib.h>.
217
218         * malloc/obstack.c: Remove fputs macro.
219
220         * malloc/mtrace.c: Remove fopen macro.
221
222 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
223
224         * manual/debug.texi: Fix spelling to programmatically.
225         Reported by <hayastan132@hotmail.com>.
226
227 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
228
229         * include/libio.h: Add libc_hidden_proto for __uflow.
230         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
231         fgetpos to _IO_* names.
232         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
233         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
234         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
235         putwc_unlocked, vswscanf.
236         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
237         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
238         * libio/fseek.c: Likewise.
239         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
240         not fopencookie.
241         * libio/genops.c (__uflow): Add libc_hidden_def.
242         * libio/iofflush_u.c (fflush_unlocked): Likewise.
243         * libio/iofgets_u.c (fgets_unlocked): Likewise.
244         * libio/iofputs_u.c (fputs_unlocked): Likewise.
245         * libio/iofputws_u.c (fputws_unlocked): Likewise.
246         * libio/iofread_u.c (fread_unlocked): Likewise.
247         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
248         * libio/iovswscanf.c (vswscanf): Likewise.
249         * libio/putwc_u.c (putwc_unlocked): Likewise.
250         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
251         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
252         * malloc/mtrace.c: Likewise.
253
254         * sunrpc/clnt_perr.c: Remove fputs macro.
255         * sunrpc/svc_simple.c: Likewise.
256         * sunrpc/svc_tcp.c: Likewise.
257         * sunrpc/svc_udp.c: Likewise.
258         * sunrpc/xdr_rec.c: Likewise.
259         * sunrpc/xdr_ref.c: Likewise.
260
261         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
262         iconv_prog, linereader, and charmap-dir.
263         * locale/Makefile: Likewise for locale and charmap-dir.
264         * malloc/Makefile: Likewise for memusagestat.
265         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
266         * sunrpc/Makefile: Likewise for rpc_main.
267         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
268         * timezone/Makefile: Likewise for zic.
269
270         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
271
272         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
273         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
274         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
275         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
276         _dl_close.
277
278         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
279         __wunderflow.
280         * libio/genops.c (__underflow): Add libc_hidden_def.
281         * libio/wgenops.c (__wuflow): Likewise.
282         (__wunderflow): Likewise.
283
284         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
285         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
286
287         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
288         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
289
290         * include/string.h: Add libc_hidden_proto for __strverscmp.
291         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
292
293         * include/unistd.h: Add libc_hidden_proto for __sysconf.
294         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
295         * sysdeps/posix/sysconf.c: Likewise.
296         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
297         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
298
299         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
300         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
301         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
302         __iswxdigit_l, __towlower_l, __towupper_l.
303         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
304         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
305
306         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
307         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
308         * sysdeps/mach/hurd/xmknod.c: Likewise.
309         * sysdeps/unix/xmknod.c: Likewise.
310         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
311         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
312         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
313
314         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
315
316 2002-08-03  Roland McGrath  <roland@redhat.com>
317
318         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
319         setpriority.
320         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
321         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
322         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
323         * sysdeps/mach/hurd/setpriority.c: Likewise.
324         * sysdeps/mach/hurd/getpriority.c: Likewise.
325         * sysdeps/generic/setpriority.c: Likewise.
326         * sysdeps/generic/getpriority.c: Likewise.
327
328         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
329         * malloc/mcheck.c: Add libc_hidden_def.
330
331         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
332         * misc/hsearch_r.c: Add libc_hidden_def.
333
334         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
335         * posix/fnmatch.c: Add libc_hidden_weak.
336
337         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
338         execl, execle, execlp, execvp, getpid, getsid.
339         * sysdeps/generic/alarm.c: Add libc_hidden_def.
340         * sysdeps/unix/alarm.c: Likewise.
341         * posix/confstr.c: Likewise.
342         * posix/execvp.c: Likewise.
343         * posix/execlp.c: Likewise.
344         * posix/execle.c: Likewise.
345         * posix/execl.c: Likewise.
346         * sysdeps/generic/getsid.c: Likewise.
347         * sysdeps/mach/hurd/getsid.c: Likewise.
348         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
349         * sysdeps/mach/hurd/getpid.c: Likewise.
350
351         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
352         qecvt_r, qfcvt_r, lrand48_r.
353         * misc/efgcvt_r.c: Add libc_hidden_def.
354
355         * include/wordexp.h: Use libc_hidden_proto for wordfree.
356         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
357
358         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
359         * locale/nl_langinfo.c: Add libc_hidden_def.
360
361         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
362         * sysdeps/generic/glob.c: Add libc_hidden_def.
363         * sysdeps/generic/glob64.c: Likewise.
364         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
365
366         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
367
368         * elf/Makefile (CFLAGS-vismod2.c): New variable.
369
370         * locale/setlocale.c (_nl_current_names): Variable moved ...
371         * locale/localename.c (_nl_current_names): ... here, new file.
372         Make it global, with attribute_hidden.
373         * locale/localeinfo.h: Declare it.
374         * locale/Makefile (aux): Add localename.
375         * locale/localename.c (__current_locale_name): New function.
376         * include/locale.h (__current_locale_name): Declare it.
377         * intl/dcigettext.c (guess_category_value): Use that instead of
378         calling setlocale.
379
380         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
381         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
382         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
383         * locale/newlocale.c: Add alias to __ name.
384         * locale/duplocale.c: Likewise.
385         * locale/freelocale.c: Likewise.
386         * locale/uselocale.c: New file.
387         * locale/Makefile (routines): Add it.
388         * locale/Versions (libc: GLIBC_2.3): New set.
389         Add newlocale, duplocale, freelocale, uselocale.
390         (libc: GLIBC_PRIVATE): Add __uselocale.
391
392         * locale/localeinfo.h [SHARED]
393         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
394         (_NL_CURRENT_DATA): Define using that.
395         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
396         (_NL_CURRENT_DEFINE): Define to empty.
397         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
398         conditionalized on this.
399         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
400         taking initializer of _nl_C_locobj.
401         [SHARED] (_nl_global_locale): New variable, using that initializer.
402         (_nl_C_locobj): Use new macro for initialzier.
403         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
404         [! SHARED] (CATEGORY_USED): New macro.
405         [SHARED] (CATEGORY_USED, _nl_C): New macros.
406         (setdata, setlocale): Use that macro instead of examining _nl_current.
407         (setdata): Set the slot in _nl_global_locale.
408         Conditionalize setting of _nl_current on [! SHARED].
409         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
410         declaration as an extern.
411         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
412
413         * include/locale.h: Use libc_hidden_proto for setlocale.
414         * locale/setlocale.c: Add libc_hidden_def.
415
416         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
417
418         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
419         * misc/hsearch_r.c: Add libc_hidden_def.
420         * misc/lsearch.c: Likewise.
421
422         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
423         endttyent.
424         * misc/getttyent.c: Add libc_hidden_def.
425
426         * include/mcheck.h: Use libc_hidden_proto for mcheck.
427         * malloc/mcheck.c: Add libc_hidden_def.
428
429         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
430         * include/argz.h: Use libc_hidden_proto for argz_delete.
431         * string/argz-delete.c: Add libc_hidden_def.
432         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
433
434         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
435         HIDDEN_JUMPTARGET for _exit.
436         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
437         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
438         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
439         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
440
441         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
442         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
443         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
444         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
445
446         * include/stdlib.h: Use libc_hidden_proto for abort,
447         __strtof_internal, __strtod_internal, __strtold_internal,
448         __strtol_internal, __strtoll_internal, __strtoul_internal,
449         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
450         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
451         __strtoul_l_internal, __strtoull_l_internal.
452         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
453         __wcstod_internal, __wcstold_internal, __wcstol_internal,
454         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
455         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
456         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
457         __wcsncasecmp_l.
458         * sysdeps/generic/abort.c: Add libc_hidden_def.
459         * stdlib/strtod.c: Likewise.
460         * sysdeps/generic/strtol.c: Likewise.
461         * sysdeps/wordsize-64/strtol.c: Likewise.
462         * sysdeps/wordsize-64/wcstol.c: Likewise.
463         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
464
465         * include/stdlib.h: Use libc_hidden_proto for qsort.
466         * stdlib/msort.c: Add libc_hidden_def.
467
468         * include/utime.h: Use libc_hidden_proto for utime.
469         * sysdeps/generic/utime.c: Add libc_hidden_def.
470         * sysdeps/unix/utime.c: Likewise.
471
472         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
473         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
474         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
475         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
476         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
477
478         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
479         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
480         and __libc_current_sigrtmax.
481         * signal/sigismem.c: Add libc_hidden_def.
482         * signal/sigfillset.c: Likewise.
483         * signal/sigempty.c: Likewise.
484         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
485         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
486         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
487         * sysdeps/posix/raise.c: Likewise.
488         * sysdeps/generic/raise.c: Likewise.
489
490 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
491
492         * include/string.h: Use libc_hidden_proto for __stpcpy.
493         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
494         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
495         * sysdeps/generic/stpcpy.c: Likewise.
496         * sysdeps/i386/stpcpy.S: Likewise.
497         * sysdeps/i386/i586/stpcpy.S: Likewise.
498         * sysdeps/powerpc/stpcpy.S: Likewise.
499         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
500         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
501
502         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
503         __strncasecmp_l, __strdup, __strndup, __strerror_r.
504         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
505         libc_hidden_def.
506         * string/strdup.c (__strdup): Likewise.
507         * string/strndup.c (__strndup): Likewise.
508         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
509         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
510
511 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
512
513         * include/libio.h: New file.
514         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
515         * libio/iolibio.h: #include <libio.h>, not "libio.h".
516         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
517         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
518         * sysdeps/unix/common/syscalls.list: Likewise.
519         * sysdeps/unix/inet/syscalls.list: Likewise.
520         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
521         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
522         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
523         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
524         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
525         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
526         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
527         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
528         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
529         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
530         * sysdeps/unix/syscalls.list: Likewise.
531
532 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
533             Ulrich Drepper  <drepper@redhat.com>
534
535         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
536         the arguments is big enough to cause an overflow.
537
538 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
539
540         * assert/assert.c: Use hidden_def not INTDEF.
541
542 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
543
544         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
545         not defined.
546
547 2002-08-03  Roland McGrath  <roland@redhat.com>
548
549         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
550         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
551         verr, verrx.
552         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
553         * misc/syslog.c: Add libc_hidden_def.
554         * misc/err.c: Likewise.
555         * stdlib/exit.c: Likewise.
556         * stdlib/bsearch.c: Likewise.
557         * sysdeps/generic/getenv.c: Likewise.
558
559         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
560
561         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
562         libc_hidden_weak for every system call symbol defined.
563
564         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
565         timelocal, localtime, strftime.
566         * time/asctime.c: Add libc_hidden_def.
567         * time/mktime.c: Likewise.
568         * time/localtime.c: Likewise.
569         * time/strftime.c: Likewise.
570         * time/strptime.c: Likewise.
571         * sysdeps/generic/time.c: Likewise.
572         * sysdeps/unix/time.c: Likewise.
573         * sysdeps/unix/sysv/i386/time.S: Likewise.
574         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
575
576         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
577         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
578         * resolv/inet_ntop.c: Likewise.
579         * resolv/inet_pton.c: Likewise.
580         * inet/inet_mkadr.c: Add libc_hidden_def.
581         * inet/inet_netof.c: Likewise.
582         * resolv/inet_addr.c: Likewise.
583
584         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
585         clauses from conditionals for now.  Will have to be fixed later
586         for older compilers.
587
588         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
589
590 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
591
592         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
593         broken alias attribute handling.
594         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
595
596 2002-08-02  Roland McGrath  <roland@frob.com>
597
598         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
599         since it sets the variables we use in a -D switch.
600
601 2002-08-02  Roland McGrath  <roland@redhat.com>
602
603         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
604         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
605         matches long int, not int.
606
607         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
608         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
609         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
610         * wctype/wctrans.c (wctrans): Likewise.
611         * wctype/wctype.c (__wctype): Likewise.
612         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
613
614 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
615
616         * assert/assert.c (__assert_fail): Fix typo in comment.
617
618         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
619         * sunrpc/rpc_thread.c: Define it without static.
620         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
621
622 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
623
624         * assert/assert.c (__assert_fail): Remove undef.
625         Replace INTDEF with libc_hidden_def.
626         * assert/__assert.c (__assert): Remove INTUSE.
627         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
628         libc_hidden_weak.
629         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
630         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
631         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
632         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
633         libm_hiden_ver): Define.
634         * include/assert.h (__assert_fail_internal): Remove.
635         (__assert_fail): Add prototype.  Add hidden_proto.
636         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
637         libc_hidden_proto.
638         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
639         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
640         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
641         Add libc_hidden_proto.
642         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
643         __fcntl): Add libc_hidden_proto.  Remove macros.
644         (__open_internal, __fcntl_internal): Remove.
645         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
646         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
647         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
648         libc_hiden_proto.
649         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
650         libc_hidden_def.
651         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
652         Add libc_hidden_def.
653         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
654         * sysdeps/generic/open.c (__open): Remove undef.
655         Add libc_hidden_def.  Remove INTDEF.
656         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
657         Add libc_hidden_def.
658         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
659         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
660         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
661         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
662         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
663         (__libc_fcntl): Add libc_hidden_def.
664         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
665         (__open): Remove INTDEF2.  Add libc_hidden_weak.
666         (__libc_open): Add libc_hidden_def.
667         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
668         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
669         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
670         Add libc_hidden_def.
671         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
672         Add libc_hidden_def.
673         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
674         undef.
675         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
676         (__libc_fcntl): Add libc_hidden_def.
677         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
678         __getpgid_internal, __chown_internal): Remove.
679         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
680         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
681         __GI___chown): Add.
682         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
683         __getpid_internal, __open_internal, __write_internal): Remove.
684         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
685         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
686         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
687         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
688         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
689         Replace INTDEF with libc_hidden_def.
690         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
691         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
692         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
693         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
694         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
695         Add libc_hidden_proto.
696         * include/sys/poll.h (__poll): Add libc_hidden_proto.
697         * include/sys/select.h (__select): Likewise.
698         * include/sys/socket.h (__send): Likewise.
699         * include/sys/statfs.h (__statfs): Likewise.
700         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
701         __getpid, __getpgid, __setpgid, __close, __read, __write,
702         __getpagesize, __sbrk): Likewise.
703         (__chown_internal, __dup2_internal, __getpid_internal,
704         __getpgid_internal, __close_internal, __write_internal,
705         __getpagesize_internal): Remove.
706         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
707         Remove macros.
708         * include/printf.h (__printf_fp): Add libc_hidden_proto.
709         * include/sched.h (__sched_setscheduler): Likewise.
710         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
711         * include/stdlib.h (__secure_getenv): Likewise.
712         * include/signal.h (__sigaction, __sigsuspend): Likewise.
713         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
714         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
715         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
716         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
717         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
718         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
719         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
720         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
721         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
722         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
723         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
724         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
725         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
726         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
727         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
728         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
729         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
730         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
731         * libio/genops.c (__overflow): Add libc_hidden_def.
732         * libio/iovdprintf.c: Remove libio.h include.
733         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
734         libc_hidden_weak): Define to nothing if not defined.
735         (__overflow, __woverflow): Add libc_hidden_proto.
736         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
737         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
738         (DB_LOOKUP_FCT): Add libc_hidden_proto.
739         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
740         (DB_LOOKUP_FCT): Add libc_hidden_proto.
741         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
742         and libc_hidden_def.
743         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
744         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
745         (__getpgid): Add libc_hidden_proto.
746         (__bsd_getpgrp): Remove INTUSE.
747         * resolv/res_init.c (__res_ninit, __res_randomid): Add
748         libc_hidden_def.
749         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
750         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
751         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
752         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
753         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
754         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
755         __rpc_thread_createerr): Add libc_hidden_def.
756         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
757         libc_hidden_def.
758         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
759         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
760         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
761         * sysdeps/generic/chown.c (__chown): Likewise.
762         * sysdeps/generic/close.c (__close): Likewise.
763         * sysdeps/generic/dup2.c (__dup2): Likewise.
764         * sysdeps/generic/pipe.c (__pipe): Likewise.
765         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
766         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
767         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
768         * sysdeps/generic/read.c (__libc_read): Likewise.
769         (__read): Add libc_hidden_weak.
770         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
771         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
772         * sysdeps/generic/select.c (__select): Likewise.
773         * sysdeps/generic/send.c (__send): Likewise.
774         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
775         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
776         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
777         * sysdeps/generic/statfs.c (__statfs): Likewise.
778         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
779         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
780         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
781         Remove undef and INTDEF.
782         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
783         * sysdeps/generic/getpid.c (__getpid): Likewise.
784         * sysdeps/generic/write.c (__libc_write): Likewise.
785         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
786         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
787         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
788         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
789         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
790         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
791         Remove undef and INTDEF.
792         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
793         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
794         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
795         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
796         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
797         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
798         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
799         (__pipe): Add libc_hidden_def.
800         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
801         libc_hidden_weak.
802         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
803         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
804         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
805         (__read): Add libc_hidden_weak.
806         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
807         (__libc_pwrite64): Add libc_hidden_def.
808         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
809         * sysdeps/mach/hurd/select.c (__select): Likewise.
810         * sysdeps/mach/hurd/send.c (__send): Likewise.
811         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
812         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
813         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
814         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
815         * sysdeps/posix/dup2.c: Likewise.
816         Remove undef and INTDEF.
817         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
818         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
819         (__pwrite64): Add libc_hidden_weak.
820         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
821         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
822         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
823         * sysdeps/standalone/close.c (__close): Likewise.
824         * sysdeps/standalone/write.c (__libc_write): Likewise.
825         (__write): Add libc_hidden_weak.
826         * sysdeps/standalone/read.c (__read): Likewise.
827         (__libc_read): Add libc_hidden_def.
828         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
829         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
830         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
831         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
832         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
833         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
834         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
835         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
836         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
837         __GI___sigaction): Add.
838         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
839         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
840         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
841         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
842         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
843         __GI___setpgid): Add.
844         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
845         Remove undef and INTDEF.
846         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
847         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
848         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
849         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
850         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
851         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
852         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
853         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
854         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
855         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
856         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
857         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
858         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
859         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
860         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
861         __GI___statfs, __GI___send): Add.
862         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
863         libc_hidden_ver resp. libc_hidden_def.
864         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
865         libc_hidden_def.
866         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
867         Likewise.  Remove undef and INTDEF.
868         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
869         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
870         __GI___statfs, __GI___send): Add.
871         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
872         libc_hidden_def.
873         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
874         Likewise.
875         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
876         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
877         libc_hidden_ver resp. libc_hidden_def.
878         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
879         __GI___send): Add.
880         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
881         Add libc_hidden_weak.
882         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
883         Add libc_hidden_def.
884         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
885         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
886         libc_hidden_weak.
887         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
888         resp. libc_hidden_def.
889         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
890         libc_hidden_weak.
891         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
892         INTDEF.
893         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
894         Likewise.  Remove undef.
895         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
896         libc_hidden_weak.
897         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
898         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
899         libc_hidden_weak.
900         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
901         libc_hidden_def.
902         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
903         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
904         Likewise.  Remove undef and INTDEF.
905         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
906         libc_hidden_def.
907         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
908         libc_hidden_weak.
909         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
910         libc_hidden_def.
911         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
912         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
913         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
914         libc_hidden_weak.
915         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
916         Add libc_hidden_def.
917         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
918         __GI___statfs): Add.
919         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
920         libc_hidden_weak.
921         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
922         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
923         Remove undef and INTDEF.
924         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
925         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
926         libc_hidden_def.
927         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
928         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
929         libc_hidden_weak.
930         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
931         libc_hidden_def.
932         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
933         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
934         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
935         Add.
936         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
937         libc_hidden_def.  Remove undef and INTDEF.
938         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
939         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
940         libc_hidden_def.
941         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
942         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
943         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
944         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
945         Remove undef and INTDEF.
946         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
947         broken visibility attribute handling.
948         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
949
950 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
951
952         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
953         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
954
955         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
956         previous patch.
957
958 2002-06-29  Todd Fries  <todd@openbsd.org>
959
960         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
961
962 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
963
964         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
965
966 2002-07-30  Roland McGrath  <roland@redhat.com>
967
968         * resolv/resolv.h (_res): Define macro unconditionally.
969         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
970         * include/resolv.h: ... here.
971         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
972         as a __thread variable.
973         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
974         a __thread variable instead of a global.
975         * resolv/res_data.c [_LIBC]: Don't #undef _res.
976
977         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
978         time we test it.
979
980         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
981
982         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
983         decls of memset and memcpy.
984
985         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
986         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
987
988         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
989
990         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
991         (__libc_tsd_define): Define using __thread.
992
993         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
994         (__rpc_thread_variables): Use __libc_tsd_get.
995         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
996         __rpc_thread_variables, which might allocate what we're about to free.
997
998         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
999         thread-local variable.
1000         * resolv/netdb.h (h_errno): Define macro unconditionally.
1001         [_LIBC] (__set_h_errno): Macro moved to ...
1002         * include/netdb.h: ... here.
1003         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1004         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1005         [! _LIBC_REENTRANT]: #undef h_errno here.
1006
1007         * include/errno.h: Protect from multiple inclusion.
1008
1009         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1010         before defining them, since Linux's <linux/posix_types.h> might have
1011         defined them.
1012
1013 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1014
1015         * malloc/malloc.c (public_cALLOc): Check for overflow on
1016         multiplication.
1017         * sunrpc/xdr_array.c (xdr_array): Likewise.
1018         * sunrpc/rpc/types.h (mem_free): Add comment.
1019         Patch by Solar Designer <solar@openwall.com>.
1020
1021 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1022
1023         * sysdeps/unix/sysv/linux/kernel-features.h
1024         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
1025
1026 2002-08-01  Roland McGrath  <roland@redhat.com>
1027
1028         * libio/fileops.c (_IO_file_sync_mmap): New function.
1029         (_IO_file_jumps_mmap): Use it.
1030         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
1031         repeat the stat check and resize the mapped buffer as necessary.
1032
1033 2002-07-31  Roland McGrath  <roland@redhat.com>
1034
1035         * libio/fileops.c (decide_maybe_mmap): New static function.
1036         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
1037         mmap the file contents.  Then switch the jump tables to the mmap
1038         tables if it worked, or the vanilla file tables if not.
1039         (_IO_file_underflow_maybe_mmap): New function.
1040         (_IO_file_seekoff_maybe_mmap): New function.
1041         (_IO_file_xsgetn_maybe_mmap): New function.
1042         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
1043         * libio/libioP.h: Declare those.
1044         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
1045         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
1046         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
1047         If the stream is read-only, set its jump tables to those new ones.
1048         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
1049         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
1050         We need the tables set before _IO_file_attach.
1051
1052         * libio/tst-mmap-eofsync.c: New file.
1053         * libio/tst-mmap-fflushsync.c: New file.
1054         * libio/bug-mmap-fflush.c: New file.
1055         * libio/tst-mmap2-eofsync.c: New file.
1056         * libio/Makefile (tests): Add them.
1057
1058         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
1059         _IO_file_underflow_mmap fails, it already set the appropriate bit.
1060
1061 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
1062
1063         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
1064         Declarations moved to <bits/sys_errlist.h>.  Include that file.
1065         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
1066         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
1067         declare sys_errlist and sys_nerr.
1068         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
1069         provide declarations.
1070
1071 2002-07-31  Roland McGrath  <roland@redhat.com>
1072
1073         * elf/rtld.c (dl_main): Fix typo in error message.
1074
1075 2002-07-31  Roland McGrath  <roland@frob.com>
1076
1077         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
1078         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
1079         sysdeps/mach/hurd/dl-sysdep.c change.
1080
1081 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
1082
1083         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
1084         -r`/build/include for kernel headers.
1085
1086         * po/fi.po: New file.
1087
1088 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
1089
1090         * configure.in (static_nss): Set to `yes' if --disable-shared.
1091
1092 2002-07-23  Bruno Haible  <bruno@clisp.org>
1093
1094         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
1095         is set.
1096
1097 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1098
1099         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
1100         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
1101         arguments.
1102
1103 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1104
1105         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
1106         alias.
1107
1108 2002-07-21  Bruno Haible  <bruno@clisp.org>
1109
1110         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
1111         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
1112         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
1113         trans_sysdep_tab_offset.
1114         (struct sysdep_segment): New type.
1115         (struct sysdep_string): New type.
1116         (SEGMENTS_END): New macro.
1117         * intl/gettextP.h (struct sysdep_string_desc): New type.
1118         (struct loaded_domain): New fields malloced, n_sysdep_strings,
1119         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
1120         orig_tab, trans_tab, hash_tab to const pointers because they point
1121         into read-only memory.
1122         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
1123         (PRI*): Define fallback values.
1124         (get_sysdep_segment_value): New function.
1125         (_nl_load_domain): Distinguish major and minor revision parts. Add
1126         support for minor revision 1 with system dependent strings.
1127         (_nl_unload_domain): Also free the 'malloced' field.
1128         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
1129         now done in loadmsgcat.c. Add support for system dependent strings.
1130
1131 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1132
1133         * posix/bug-regex7.c: New file.
1134         * posix/bug-regex8.c: New file.
1135         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
1136
1137 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1138
1139         * posix/bug-regex4.c (main): Fix typos.
1140         * posix/bug-regex6.c (main): Likewise.
1141
1142 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
1143
1144         * posix/bug-regex6.c (main): Fix warnings.
1145
1146         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
1147
1148         * iconv/iconv_prog.c (main): Improve error message for the cases
1149         where -t and/or -f parameter are missing.
1150
1151 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
1152
1153         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
1154         (re_search): Likewise.
1155         (re_match_2): Likewise.
1156         (re_search_2): Likewise.
1157         (re_search_stub): New function.
1158         (re_search_2_stub): New function.
1159         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
1160
1161 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1162
1163         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
1164         (re_string_eoi): Use STOP instead of LEN.
1165         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
1166         (re_string_construct): Likewise.
1167         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
1168         * posix/regexec.c (re_search_internal): Add a new argument STOP
1169         so that it can handle the argument STOP of re_search_2 and re_match_2
1170         correctly.
1171         (regexec): Adapt to new I/F of re_search_internal.
1172         (re_search_stub): Likewise.
1173
1174 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
1175
1176         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
1177
1178         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
1179
1180         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
1181         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
1182         of __divdi3.
1183
1184         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
1185         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
1186         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
1187         alias for adjtimex syscall.
1188
1189         * elf/dl-minimal.c: Define __assert_fail_internal.
1190         * assert/assert.c: Likewise.
1191         * include/assert.h: Define __assert_file macro if !SHARED and not
1192         NOT_IN_libc.
1193
1194         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
1195         programs.
1196         * locale/Makefile: Likewise.
1197         * nscd/Makefile: Likewise.
1198         * catgets/Makefile: Likewise.
1199
1200 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1201
1202         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
1203         compute current position.
1204
1205         * stdio-common/tst-fseek.c (main): Improve error messages.
1206
1207         * libio/tst-freopen.c (main): Remove unused variable.
1208
1209         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
1210         succesful seek call.  Simplify error checking.
1211
1212 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1213
1214         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
1215         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1216
1217 2002-07-19  Roland McGrath  <roland@frob.com>
1218
1219         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
1220         __libc_enable_secure is set.
1221
1222 2002-07-24  Roland McGrath  <roland@frob.com>
1223
1224         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
1225         This implementation supports only IPv4.
1226         * inet/ifaddrs.h: New file.
1227         * sysdeps/generic/ifaddrs.c: New file.
1228         * sysdeps/gnu/ifaddrs.c: New file.
1229         * inet/test-ifaddrs.c: New file.
1230         * inet/Makefile (routines): Add ifaddrs.
1231         (headers): Add ifaddrs.h here.
1232         (tests): Add test-ifaddrs.
1233         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
1234
1235         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
1236         socket call to get an AF_INET socket, instead of using __opensock.
1237         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
1238
1239         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
1240         if not -1 use it instead of calling __opensock.
1241         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
1242         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
1243         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
1244
1245         * sysdeps/mach/hurd/ifreq.h: New file.
1246         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
1247         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
1248         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
1249
1250         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
1251         which gets moved around.  Calculate size of mmap'd buffer instead.
1252
1253 2002-07-24  Philip Blundell  <philb@gnu.org>
1254
1255         * sysdeps/unix/arm/brk.S: Improve schedule.
1256         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
1257         efficient instruction.
1258         (__socket): Optimize return sequence.
1259
1260 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1261
1262         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
1263         sockets on old kernels.
1264
1265 2002-07-22  Philip Blundell  <philb@gnu.org>
1266
1267         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
1268         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1269         alias.
1270
1271 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1272
1273         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
1274         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
1275
1276         * locale/programs/locarchive.c (add_locale_to_archive): Correct
1277         test to detect duplicate locales.
1278
1279         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
1280         position would be before beginning of file.
1281         (_IO_file_seekoff_mmap): Likewise.
1282         * libio/Makefile (tests): Add bug-fseek.
1283         * libio/bug-fseek.c: New file.
1284
1285         * intl/explodename.c: Remove support for CEN-style locale variables.
1286         It was never used and shouldn't be since it's not portable.
1287         * intl/finddomain.c: Likewise.
1288         * intl/l10nflist.c: Likewise.
1289         * intl/loadinfo.h: Likewise.
1290         * locale/findlocale.c: Likewise.
1291
1292 2002-07-24  Roland McGrath  <roland@frob.com>
1293
1294         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
1295         position, calculate it to take into account an active pushback buffer.
1296
1297         * libio/Makefile (tests): Add bug-ungetc.
1298         * libio/bug-ungetc.c: New file.
1299
1300 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
1301
1302         * sysdeps/generic/libc-tls.c: New file.
1303         * csu/Makefile (routines): Add libc-tls.
1304         (static-only-routines): Add libc-tls.
1305         * elf/dl-support.c (_dl_phdr): New variable.
1306         (_dl_phnum): New variable.
1307         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
1308         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
1309         for !SHARED.  First look through auxiliary vector.  If TLS always
1310         call __pthread_initialize_minimal.
1311
1312         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
1313         in mmap call is never zero.
1314
1315 2002-07-23  Andreas Jaeger  <aj@suse.de>
1316
1317         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
1318         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1319
1320 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
1321
1322         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
1323         creation and removal of the temp file.
1324
1325         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
1326         file creation.
1327         * test-skeleton.c (create_temp_file): New function.
1328
1329 2002-07-22  Andreas Jaeger  <aj@suse.de>
1330
1331         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
1332         local label.
1333
1334 2002-07-21  Roland McGrath  <roland@frob.com>
1335
1336         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
1337         put -I../include before -I../stdlib so we get the right errno.h et al.
1338         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
1339         (CFLAGS-wcstof.c): Likewise.
1340         (CFLAGS-wcstold.c): Likewise.
1341         (CFLAGS-wcstod_l.c): Likewise.
1342         (CFLAGS-wcstof_l.c): Likewise.
1343         (CFLAGS-wcstold_l.c): Likewise.
1344
1345 2002-07-19  Roland McGrath  <roland@frob.com>
1346
1347         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
1348
1349 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
1350
1351         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
1352         __ASSUME_AT_XID is defined.
1353         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
1354         for 2.4.1 and up.
1355         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
1356         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
1357
1358         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
1359         (CFLAGS-wcstof.c): Likewise.
1360         (CFLAGS-wcstold.c): Likewise.
1361         (CFLAGS-wcstod_l.c): Likewise.
1362         (CFLAGS-wcstof_l.c): Likewise.
1363         (CFLAGS-wcstold_l.c): Likewise.
1364
1365 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
1366
1367         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
1368         __priority_which_t): Always typedef to int for C++.
1369
1370 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
1371
1372         * configure.in: Add test for __thread support in compiler.
1373         * config.h.in: Add HAVE___THREAD.
1374         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
1375         * include/sys/errno.h: Moved to...
1376         * stdlib/sys/errno.h: ...here.  New file.
1377         * stdlib/errno.h: New file.  Moved from...
1378         * include/errno.h: ...here.  Changed into an internal header defining
1379         libc-local things like __set_errno.
1380         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
1381         bits/errno.h.
1382         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
1383         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
1384         either.
1385         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
1386         from...
1387         (_dl_start_final): ...here.  Add code to initialize tls elements from
1388         bootstrap_map.
1389         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
1390         if USE_TLS && HAVE___THREAD.
1391         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
1392         * sysdeps/mach/hurd/bits/errno.h: Likewise.
1393         * sysdeps/standalone/arm/bits/errno.h: Likewise.
1394         * sysdeps/standalone/bits/errno.h: Likewise.
1395         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
1396         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
1397         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
1398         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
1399         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
1400         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
1401         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
1402         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
1403         use GL(dl_rtld_map), use map parameter.
1404         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1405         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
1406         USE_TLS && HAVE___THREAD.
1407         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
1408         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
1409         TLS code sequence.
1410         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1411
1412         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
1413         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
1414         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1415         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1416         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1417         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1418
1419 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
1420
1421         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
1422         MS_INVALIDATE values.
1423
1424 2002-07-17  Andreas Schwab  <schwab@suse.de>
1425             Ulrich Drepper  <drepper@redhat.com>
1426
1427         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
1428         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1429         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1430         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1431
1432 2002-07-01  H.J. Lu  <hjl@gnu.org>
1433
1434         * elf/circleload1.c (load_dso): Call "circlemod1" and check
1435         return value.
1436
1437         * elf/circlemod1.c (circlemod1): Return int.
1438         * elf/circlemod2.c (circlemod2): Likewise.
1439         * elf/circlemod2a.c (circlemod2): Likewise.
1440         * elf/circlemod3.c (circlemod3): Likewise.
1441         (circlemod3a): A new function.
1442
1443 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
1444
1445         * catgets/tst-catgets.c (main): Don't expect results for
1446         untranslated messages.
1447
1448         * glibcbug.in: Fix little typo.  Remove STDIO.
1449
1450         * config.h.in: Fail if __FAST_MATH__ is defined.
1451         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
1452         (CPPFLAGS-test-idouble.c): Likewise.
1453         (CPPFLAGS-test-ildouble.c): Likewise.
1454
1455 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
1456
1457         * intl/tst-gettext.sh: Pass -f option to msgfmt.
1458         * intl/tst-gettext.c: Correctly handle untranslated messages in
1459         positive tests.
1460
1461         * po/de.po: Update from translation team.
1462
1463 2002-07-02  H.J. Lu  <hjl@gnu.org>
1464
1465         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
1466         use ll/sc.
1467         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1468
1469         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
1470         to 2.4.0 for mips.
1471
1472 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
1473
1474         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
1475         TLS fail if USE_TLS is not defined.
1476
1477         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
1478         and adjust state for seek position.  [PR libc/4070]
1479         * libio/Makefile (tests): Add bug-rewind.
1480         * libio/bug-rewind.c: New file.
1481
1482 2002-07-12  Philip Blundell  <philb@gnu.org>
1483
1484         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
1485         (__backtrace): Use it.
1486         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
1487
1488 2002-07-12  Philip Blundell  <philb@gnu.org>
1489
1490         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
1491         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1492         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1493         (elf_machine_rela): Remove unused variable.
1494
1495         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
1496         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
1497         define.
1498
1499 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
1500
1501         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
1502
1503 2002-07-14  Andreas Jaeger  <aj@suse.de>
1504
1505         * sysdeps/x86_64/bits/link.h: Add biarch support.
1506
1507 2002-07-13  Andreas Jaeger  <aj@suse.de>
1508
1509         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
1510         Use correct indices.
1511         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
1512
1513 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1514
1515         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
1516         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
1517         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
1518         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
1519         * sysdeps/s390/s390-32/bits/link.h: Remove.
1520         * sysdeps/s390/s390-64/bits/link.h: Remove.
1521         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
1522         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
1523         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
1524         * sysdeps/s390/bits/wordsize.h: New file.
1525         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
1526         elfclass.h.
1527         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
1528         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
1529         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
1530         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
1531         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
1532         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
1533         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
1534         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
1535         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
1536         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
1537         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
1538         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
1539         resource.h.
1540         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
1541         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
1542         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
1543         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
1544         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
1545         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
1546         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
1547         sigaction.h.
1548         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
1549         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
1550         siginfo.h.
1551         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
1552         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
1553         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
1554         socket.h.
1555         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
1556         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
1557         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
1558         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
1559         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
1560         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
1561         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
1562         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
1563         procfs.h.
1564         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
1565         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
1566         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
1567         ucontext.h.
1568         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
1569         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
1570
1571 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
1572
1573         * Versions.def (libc): Add GLIBC_2.3.
1574         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
1575         * stdlib/canonicalize.c: Add compatibility version for realpath
1576         and make new code available in GLIBC_2.3.
1577
1578 2002-07-06  Bruno Haible  <bruno@clisp.org>
1579
1580         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
1581
1582 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
1583
1584         * resolv/res_hconf.c (_res_hconf_init): Move code into new
1585         function do_init.  Use __libc_once.
1586         (do_init): New function.
1587
1588         * iconvdata/iso8859-11.h: Removed.
1589         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
1590         (distribute): Remove iso8859-11.h.
1591         * iconvdata/tst-tables.sh: Add ISO-8859-11.
1592
1593         * stdio-common/vfscanf.c (inchar): Restore errno from previous
1594         underflow operation if c == (W)EOF.
1595
1596 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1597
1598         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
1599         non-zero, adjust exponent.
1600         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
1601         Remove NO_LONG_DOUBLE aliases.
1602         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
1603         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
1604         (__log1pl): Raise divide by zero and invalid exceptions when needed.
1605         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1606         1**y and -1**+-Inf.
1607         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
1608         Fix BITS_PER_MP_LIMB 32 extraction.
1609         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
1610         exceptions for qNaNs.
1611         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1612         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
1613         Raise exceptions when needed.  Don't recurse unnecessarily.
1614         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
1615         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
1616         exceptions for qNaNs.
1617         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
1618         to fix *quo return value sign.
1619         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
1620         case -Inf argument.
1621         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
1622
1623 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
1624
1625         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
1626         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
1627         -DNDEBUG.
1628
1629 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
1630
1631         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
1632         the result.
1633
1634         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
1635         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
1636
1637         * Versions.def (libthread_db): Add GLIBC_2.3.
1638
1639 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
1640
1641         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
1642         new stream if possible.
1643         * libio/freopen64.c (freopen64): Likewise.
1644         * libio/Makefile (tests): Add tst-freopen.
1645         * libio/tst-freopen.c: New file.
1646
1647 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1648
1649         * libio/stdio.h (obstack_printf): Add format attribute.
1650         (obstack_vprintf): Likewise.
1651
1652 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
1653
1654         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
1655         resp. 16 bytes on 32-bit resp. 64-bit platforms.
1656         (re_charset_t, re_string_t): Reorder structure members for 64-bit
1657         architectures.
1658
1659 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
1660
1661         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
1662         (init_dfa): ...here.
1663
1664 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1665
1666         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
1667         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
1668         nodes in parse trees.
1669         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
1670         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
1671         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
1672         nodes which can epsilon transit.
1673         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
1674         to IS_EPSILON_NODE macro.
1675         * posix/regexec.c (update_regs): New function to update registers
1676         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
1677         (proceed_next_node): Use the entities of the nodes to determine
1678         whether the node can transit to.
1679         (set_regs): Use update_regs function to update registers.
1680
1681 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1682
1683         * posix/bug-regex4.c (main): Remove duplicate setlocale.
1684         * posix/bug-regex6.c: New file.
1685         * posix/Makefile (tests): Add bug-regex6.
1686         (bug-regex6-ENV): Set LOCPATH.
1687
1688 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
1689
1690         * Versions.def [libpthread]: Add GLIBC_2.2.6.
1691         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
1692
1693 2002-07-06  Bruno Haible  <bruno@clisp.org>
1694
1695         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
1696
1697 2002-07-06  Bruno Haible  <bruno@clisp.org>
1698
1699         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
1700         declarations.
1701
1702         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
1703
1704         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
1705
1706         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
1707         not _UTSNAME_H.
1708         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
1709
1710         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
1711         * sysdeps/generic/bits/ustat.h: Likewise.
1712
1713         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
1714
1715 2002-07-08  Andreas Jaeger  <aj@suse.de>
1716
1717         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
1718
1719 2002-07-08  Andreas Jaeger  <aj@suse.de>
1720
1721         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
1722
1723 2002-07-06  Andreas Jaeger  <aj@suse.de>
1724
1725         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
1726         * sysdeps/x86_64/fpu/s_copysign.S: New.
1727         * sysdeps/x86_64/fpu/s_copysignf.S: New.
1728         * sysdeps/x86_64/fpu/s_copysignl.S: New.
1729         * sysdeps/x86_64/fpu/s_finitel.S: New.
1730         * sysdeps/x86_64/fpu/s_fmax.S: New.
1731         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
1732         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
1733         * sysdeps/x86_64/fpu/s_fmin.S: New.
1734         * sysdeps/x86_64/fpu/s_fminf.S: New.
1735         * sysdeps/x86_64/fpu/s_fminl.S: New.
1736
1737 2002-06-05  Brian Youmans <3diff@gnu.org>
1738
1739         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
1740         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1741         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1742         * sysdeps/ia64/fpu/e_asin.S: Likewise.
1743         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1744         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1745         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1746         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1747         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1748         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1749         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1750         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1751         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1752         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1753         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1754         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1755         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1756         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1757         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1758         * sysdeps/ia64/fpu/e_log.S: Likewise.
1759         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1760         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1761         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1762         * sysdeps/ia64/fpu/e_powl.S: Likewise.
1763         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1764         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1765         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1766         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1767         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1768         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1769         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1770         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1771         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1772         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1773         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1774         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1775         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
1776         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1777         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
1778         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
1779         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1780         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1781         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1782         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1783         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1784         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1785         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1786         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1787         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1788         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1789         * sysdeps/ia64/fpu/s_logb.S: Likewise.
1790         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1791         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1792         * sysdeps/ia64/fpu/s_modf.S: Likewise.
1793         * sysdeps/ia64/fpu/s_modff.S: Likewise.
1794         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1795         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1796         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1797         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1798         * sysdeps/ia64/fpu/s_rint.S: Likewise.
1799         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1800         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1801         * sysdeps/ia64/fpu/s_round.S: Likewise.
1802         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1803         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1804         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1805         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1806         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1807         * sysdeps/ia64/fpu/s_significand.S: Likewise.
1808         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1809         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1810         * sysdeps/ia64/fpu/s_tan.S: Likewise.
1811         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1812         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1813         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1814         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1815         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1816         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
1817         reflect IBM donation of math library to FSF
1818         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1819         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1820         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1821         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1822         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1823         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1824         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1825         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1826         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1827         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1828         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1829         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1830         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1831         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1832         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1833         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1834         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1835         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1836         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1837         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1838         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1839         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1840         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
1841         * sysdeps/vax/__longjmp.c: Likewise.
1842         * sysdeps/vax/setjmp.c: Likewise.
1843         * libio/filedoalloc.c: Fixed BSD copying permission notice to
1844         remove advertising clause
1845         * sysdeps/vax/htonl.s: Likewise.
1846         * sysdeps/vax/htons.s: Likewise.
1847         * libio/wfiledoalloc.c: Likewise.
1848         * stdlib/random.c: Likewise.
1849         * stdlib/random_r.c: Likewise.
1850         * sysdeps/mach/sys/reboot.h: Likewise.
1851         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
1852         * sysdeps/posix/getaddrinfo.c: Likewise.
1853         * sunrpc/des_impl.c: Updated license permission notice to Lesser
1854         GPL and corrected pointer to point to the correct license.
1855
1856 2002-07-04  Andreas Jaeger  <aj@suse.de>
1857
1858         * scripts/config.guess: New upstream version.
1859         * scripts/config.sub: Likewise.
1860
1861 2002-07-02  Andreas Schwab  <schwab@suse.de>
1862
1863         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
1864         in parallel to bumping up the buffer pointer.
1865
1866 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
1867
1868         * math/libm-test.inc (acos_test): Add missing L suffix for
1869         expected result.
1870         (cpow_test): Likewise.
1871         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
1872         error for acos (0.0625).
1873
1874 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
1875
1876         * locale/iso-639.def: Add entry for Ganda.
1877         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
1878         definition.
1879         (address_finish): Handle entries with two letter ISO 639 code.
1880
1881         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
1882         directory if it existed before.
1883         * iconv/iconvconfig.c: Implement --prefix option.
1884
1885         * math/libm-test.inc (cexp_test): Add missing L suffix for
1886         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
1887         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
1888         1.25 i).
1889
1890 2002-05-29  H.J. Lu  <hjl@gnu.org>
1891
1892         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
1893         is turned on.
1894
1895 2002-05-28  H.J. Lu  <hjl@gnu.org>
1896
1897         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
1898         are not dlopened on the dependency list of a dlopened object.
1899
1900 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
1901
1902         * elf/dl-lookup.c (add_dependency): It is not necessary to add
1903         dependencies if they are created between objects which are created
1904         while processing RTLD_NOW for objects loaded as part of the same
1905         dlopen call.
1906
1907 2002-06-14  H.J. Lu  <hjl@gnu.org>
1908
1909         * elf/Makefile (tests): Add circleload1.
1910         (modules-names): Add circlemod1, circlemod2, circlemod3,
1911         circlemod1a, circlemod2a and circlemod3a.
1912         ($(objpfx)circleload1): New target.
1913         ($(objpfx)circleload1.out): Likewise.
1914         ($(objpfx)circlemod1.so): Likewise.
1915         ($(objpfx)circlemod2.so): Likewise.
1916         ($(objpfx)circlemod1a.so): Likewise.
1917         ($(objpfx)circlemod2a.so): Likewise.
1918         * elf/circleload1.c: New file.
1919         * elf/circlemod1.c: New file.
1920         * elf/circlemod1a.c: New file.
1921         * elf/circlemod2.c: New file.
1922         * elf/circlemod2a.c: New file.
1923         * elf/circlemod3.c: New file.
1924         * elf/circlemod3a.c: New file.
1925
1926 2002-06-18  Amos Waterland  <apw@us.ibm.com>
1927
1928         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
1929         file descriptor.
1930         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
1931         add check for fd not open for writing.
1932
1933         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
1934         completed element(s) and do not suspend thread if so.  Patch
1935         heavily modified by drepper.
1936
1937         * rt/tst-aio7.c: New file.  Regression test for problems which the
1938         above three changes fix.
1939         * rt/Makefile (tests): Add tst-aio7.
1940
1941 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
1942
1943         * rt/tst-aio6.c: Fix comment.
1944
1945         * catgets/gencat.c (read_input_file): Handle more than one slash
1946         at end of line correctly [PR libc/3926].
1947         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
1948
1949         * catgets/sample.SJIS: Add test case for above bug.
1950         * catgets/test-gencat.c: Adjust test code.
1951         * catgets/test-gencat.sh: Adjust expected results.
1952
1953         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
1954         to skip relative relocations.
1955         Patch by Geoff Keating <geoffk@redhat.com>.
1956
1957 2002-05-26  Bruno Haible  <bruno@clisp.org>
1958
1959         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
1960         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
1961         All callers changed.
1962         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
1963         STANDARD_FROM_LOOP_ERR_HANDLER.
1964         (utf8_internal_loop): Likewise.
1965         (ucs2_internal_loop): Likewise.
1966         (internal_ucs2_loop): Perform error handling like in
1967         STANDARD_FROM_LOOP_ERR_HANDLER.
1968         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
1969         in STANDARD_FROM_LOOP_ERR_HANDLER.
1970         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1971         handling.
1972         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
1973         in STANDARD_FROM_LOOP_ERR_HANDLER.
1974         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1975         handling.
1976         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
1977         in STANDARD_FROM_LOOP_ERR_HANDLER.
1978         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1979         handling.
1980         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
1981         STANDARD_FROM_LOOP_ERR_HANDLER.
1982         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1983         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
1984         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
1985         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
1986         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
1987         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
1988         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
1989         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
1990         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
1991         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
1992         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
1993         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
1994         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
1995         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
1996         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
1997         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
1998         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
1999         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2000         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2001         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2002         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2003         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2004         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2005         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2006         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2007         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2008         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2009         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2010         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
2011         an error, still set result = __GCONV_ILLEGAL_INPUT.
2012         (BODY for TO_LOOP): Likewise.
2013         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2014         STANDARD_FROM_LOOP_ERR_HANDLER.
2015         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2016         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2017         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2018         handling.
2019         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2020         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2021         STANDARD_FROM_LOOP_ERR_HANDLER.
2022         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2023         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
2024         STANDARD_FROM_LOOP_ERR_HANDLER.
2025         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2026         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
2027         STANDARD_FROM_LOOP_ERR_HANDLER.
2028         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2029         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
2030         STANDARD_FROM_LOOP_ERR_HANDLER.
2031         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2032         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
2033         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2034         handling.
2035         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2036         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
2037         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
2038         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
2039
2040 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2041
2042         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
2043         labels in assembler instructions.
2044
2045 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
2046
2047         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
2048         not enough content is available.
2049         * libio/tst-eof.c: New file.
2050         * libio/Makefile (tests): Add tst-eof.
2051
2052         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
2053         update atime.
2054         * libio/tst-atime.c: New file.
2055         * libio/Makefile (tests): Add tst-atime.
2056
2057         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
2058         handling of overly long words.
2059
2060 2002-06-25  Andreas Jaeger  <aj@suse.de>
2061
2062         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
2063         to not use 32-bit pc relative relocations.
2064         (elf_machine_dynamic): Likewise.
2065
2066 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
2067
2068         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
2069         (__GETDENTS): Check for failed getdents64 syscall.
2070         * dirent/Makefile (tests): Add bug-readdir1.
2071         * dirent/bug-readdir1.c: New file.
2072
2073 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
2074
2075         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
2076         lookups.
2077         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
2078         code.  Print TLS modid and offset for modules containing PT_TLS
2079         segments.
2080
2081 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2082
2083         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2084         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2085         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2086         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2087
2088 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2089
2090         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
2091         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
2092         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
2093         * nss/getXXent_r.c (NEW, NEW1): Define.
2094         (NEW (REENTRANT_GETNAME)): Strong alias to
2095         INTERNAL (REENTRANT_GETNAME).
2096         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
2097
2098 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
2099
2100         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
2101         (_IO_file_jumps_mmap): Use it.
2102         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
2103         * libio/libioP.h: Remove _IO_wdefault_setbuf and
2104         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
2105         prototype.
2106         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
2107         (_IO_wfile_jumps_mmap): Don't use it anymore.
2108         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
2109         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
2110         _IO_wdefault_setbuf.
2111         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
2112         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
2113         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
2114
2115 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
2116
2117         * libio/Makefile (tests): Add tst-mmap-setvbuf.
2118         * libio/tst-mmap-setvbuf.c: New test.
2119
2120 2002-06-21  Andreas Jaeger  <aj@suse.de>
2121
2122         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
2123
2124 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
2125
2126         * include/unistd.h (__fork_internal): Remove.
2127         (__fork): Don't define to __fork_internal.
2128         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
2129         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
2130         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
2131         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
2132         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
2133
2134 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2135
2136         * po/hr.po: New file.
2137
2138 2002-06-11  Wolfram Gloger  <wg@malloc.de>
2139
2140         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
2141         Reported by Michael Meissner <meissner@redhat.com>.
2142
2143 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2144
2145         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
2146         Patch by Hans Boehm <hans_boehm@hp.com>.
2147
2148 2002-06-20  Andreas Jaeger  <aj@suse.de>
2149
2150         * math/libm-test.inc: Use exact values as input parameters,
2151         compute output parameters with 36 digits for 128-bit long doubles.
2152         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2153         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
2154         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2155
2156 2002-06-13  Stephen L Moshier  <steve@moshier.net>
2157
2158         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
2159         argument or result is subnormal.
2160
2161 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
2162
2163         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
2164         quotient.
2165         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2166         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2167
2168         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
2169
2170 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
2171
2172         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
2173         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
2174         Reported by Peter A. Buhr.
2175
2176 2002-06-15  Roland McGrath  <roland@frob.com>
2177
2178         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
2179         warning.
2180
2181         * sysdeps/mach/hurd/getcwd.c
2182         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
2183
2184         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
2185         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
2186
2187         * sysdeps/alpha/divrem.h: Use local label instead of global one for
2188         jump to local subroutine.
2189
2190 2002-06-14  Roland McGrath  <roland@frob.com>
2191
2192         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
2193         * sysdeps/mach/hurd/Makeconfig: ... here.
2194
2195 2002-06-13  Andreas Schwab  <schwab@suse.de>
2196
2197         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
2198         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2199         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2200
2201 2002-06-13  Roland McGrath  <roland@frob.com>
2202
2203         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
2204         * hurd/hurdstartup.c (_hurd_startup): Likewise.
2205         Use intptr_t instead of int for argc in stack layout.
2206         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
2207         (_dl_init_first): Likewise.
2208         (_hurd_stack_setup): Likewise.
2209         (init1): Add a cast.
2210         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
2211
2212         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
2213         argument to pfinet_siocgifconf RPC.
2214
2215 2002-06-13  Andreas Schwab  <schwab@suse.de>
2216
2217         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
2218         expansion order.
2219
2220 2002-06-12  Roland McGrath  <roland@frob.com>
2221
2222         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
2223         if already defined.
2224         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
2225         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
2226
2227 2002-06-11  Roland McGrath  <roland@frob.com>
2228
2229         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
2230         file on [!RTLD_STAT64].
2231         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2232
2233         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
2234         (__fdopen): Use INTUSE.
2235         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
2236
2237         * stdio-common/tmpfile64.c: File removed.
2238         * sysdeps/generic/tmpfile64.c: New file.
2239         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
2240         if not already defined.
2241         (tmpfile): Use it in place of __GT_FILE.
2242
2243         * include/unistd.h: Declare __chown_internal.
2244
2245         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
2246         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
2247
2248 2002-06-09  Roland McGrath  <roland@frob.com>
2249
2250         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
2251         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
2252         value of HURD_INTERFACE_VERSION >= 20020609.
2253         * sysdeps/mach/hurd/configure: Regenerated.
2254         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
2255         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
2256         convert a struct stat64 into a struct stat and return 0 or -1
2257         with errno set to EOVERFLOW.
2258         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
2259         for struct statfs64 to struct statfs.
2260         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
2261         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
2262         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2263         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2264         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2265         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2266         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2267         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
2268         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
2269         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
2270         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
2271         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
2272         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
2273         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
2274         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
2275         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
2276         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
2277         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
2278         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
2279         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
2280         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
2281         Use struct stat64 for io_stat argument.
2282         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
2283         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
2284         to io_seek.
2285         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
2286         * hurd/fd-write.c (_hurd_fd_write): Likewise.
2287         * hurd/hurd/fd.h: Update decls.
2288         * sysdeps/mach/hurd/getcwd.c
2289         (_hurd_canonicalize_directory_name_internal): Use ino64_t
2290         and struct dirent64.
2291         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
2292         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
2293         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
2294         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
2295
2296 2002-06-08  Roland McGrath  <roland@frob.com>
2297
2298         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
2299         instead of unsigned long int for __allocation and __size members.
2300
2301 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2302
2303         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2304         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2305         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2306         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2307
2308 2002-06-07  Roland McGrath  <roland@frob.com>
2309
2310         * sysdeps/mach/hurd/bits/environments.h: File removed.
2311
2312 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2313
2314         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
2315         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
2316         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
2317         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
2318         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
2319         (sendfile64): Likewise.
2320         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
2321         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
2322         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
2323         Likewise.
2324         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
2325
2326         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
2327         already defined.
2328
2329 2002-06-04  Bruno Haible  <bruno@clisp.org>
2330
2331         * sysdeps/cris/stackinfo.h: New file.
2332
2333         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
2334         to an integer type before performing bit operations on it.
2335
2336 2002-06-05  Roland McGrath  <roland@frob.com>
2337
2338         * sysdeps/generic/sendfile.c: Include <errno.h>.
2339         * sysdeps/generic/sendfile64.c: Likewise.
2340
2341         * io/Makefile (routines): Add sendfile and sendfile64.
2342         (headers): Add sys/sendfile.h to the list.
2343         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
2344         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
2345         * io/sys/sendfile.h: ... here.
2346         * sysdeps/generic/sendfile.c: New file.
2347         * sysdeps/generic/sendfile64.c: New file.
2348
2349         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
2350         Move sendfile, sendfile64 to ...
2351         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
2352         * sysdeps/mach/hurd/sendfile.c: New file.
2353         * sysdeps/mach/hurd/sendfile64.c: New file.
2354
2355         * sysdeps/mach/nanosleep.c: New file.
2356
2357 2002-06-04  Roland McGrath  <roland@frob.com>
2358
2359         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
2360         * sysdeps/alpha/elf/configure: New file (generated).
2361
2362 2002-06-02  Roland McGrath  <roland@frob.com>
2363
2364         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
2365
2366 2002-06-01  Roland McGrath  <roland@frob.com>
2367
2368         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
2369         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
2370
2371 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
2372
2373         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
2374         Add nsmap.
2375         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
2376         Remove nstimes setting.
2377         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
2378         * resolv/res_send.c (res_nsend): Don't close unconditionally if
2379         there is mix of IPv6 and IPv4 nameservers.
2380         Use nsmap array to find free slots and preserve nameserver ordering.
2381         Fix RES_ROTATE.
2382
2383 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
2384
2385         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
2386         use this header with LFS.
2387
2388         * po/sk.po: Update from translation team.
2389
2390 2002-05-28  Andreas Schwab  <schwab@suse.de>
2391
2392         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
2393         message when finding object of wrong class.
2394
2395 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
2396
2397         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
2398         Patch by <radu@netsoft.ro>.
2399
2400 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
2401
2402         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
2403         Add readahead.
2404         * sysdeps/unix/sysv/linux/readahead.c: New file.
2405         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
2406         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
2407         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
2408         Add sendfile64 alias to sendfile syscall.
2409         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2410         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2411         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2412         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
2413         syscall.
2414
2415         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
2416         special section for PIC register loading.
2417         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2418
2419         * config.h.in: Define HAVE_HIDDEN.
2420         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
2421
2422         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
2423
2424 2002-05-28  Roland McGrath  <roland@frob.com>
2425
2426         * sysdeps/mach/alpha/setfpucw.c: New file.
2427
2428 2002-05-26  Roland McGrath  <roland@frob.com>
2429
2430         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
2431         Use integer_t instead of int for IOC_VOID case.
2432
2433 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
2434
2435         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
2436
2437 2002-05-26  Bruno Haible  <bruno@clisp.org>
2438
2439         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
2440         end of the ISO-8859-7 from idx table.
2441
2442 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
2443
2444         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
2445
2446 2002-05-24  David S. Miller  <davem@redhat.com>
2447
2448         * string/bits/string2.h (memset): Do not try to optimize when
2449         not _STRING_ARCH_unaligned if GCC will do the right thing.
2450
2451 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
2452
2453         * posix/regex.c: Define `inline' as a macro into nothing for the
2454         compilers which lack the keyword.
2455         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
2456         for the compatibility of gawk.
2457         * posix/regcomp.c: Add fake implementation of isblank() for the
2458         environments which lack the function.
2459         Don't use free_charset() in case of non-i18n envs.
2460         (build_range_exp): Don't use i18n related code in case of non-i18n
2461         envs.
2462         (build_collating_symbol): Likewise.
2463         (build_equiv_class): Likewise.
2464         (build_charclass): Likewise.
2465         (re_compile_fastmap_iter): Likewise.
2466         (parse_bracket_exp): Likewise.
2467         (build_word_op): Likewise.
2468         (regfree): Don't use free_charset() in case of non-i18n envs.
2469         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
2470         re_token_type_t in case of non-i18n envs.
2471         Don't define re_charset_t in case of non-i18n envs.
2472         Change the type of wcs of re_string_t from wchar_t to wint_t,
2473         since we store also WEOF.
2474         * posix/regex_internal.c: (re_string_realloc_buffers): Change
2475         the type of wcs of re_string_t from wchar_t to wint_t.
2476         (re_string_reconstruct): Likewise.
2477         (create_ci_newstate): Don't use i18n related code in case of
2478         non-i18n envs.
2479         (create_cd_newstate): Likewise.
2480
2481 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
2482
2483         * iconv/loop.c: Fix typo.
2484
2485 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
2486
2487         * inet/ether_line.c (ether_line): Fix a typo causing only
2488         lower 4 bits of each ethernet address byte being assigned.
2489         Don't modify what line points to.
2490         * inet/tst-ether_aton.c (main): Add ether_line tests.
2491
2492 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
2493
2494         * manual/filesys.texi: Don't make readlink example leak memory
2495         when readlink fails.
2496
2497 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
2498
2499         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
2500         some more security checks.
2501
2502 2002-05-17  David S. Miller  <davem@redhat.com>
2503
2504         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
2505
2506 2002-05-16  David S. Miller  <davem@redhat.com>
2507
2508         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
2509         (elf_machine_dynamic): Use it to force PIC register to be loaded.
2510         (elf_machine_load_address): Likewise.
2511         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
2512
2513         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
2514         is unaligned, do not forget to fully initialize %g1 magic value.
2515
2516         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
2517         register definitions and provide 32-bit variants of structures
2518         during 64-bit builds.
2519
2520         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
2521         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
2522         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
2523         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
2524         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
2525         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
2526         Do not clear implicit one bit here, it must be done post-rounding.
2527         Only pad to the left using left shift if value uses less than the
2528         available fractional bits.
2529
2530 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2531
2532         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
2533         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
2534         (shared-only-routines): Likewise.
2535         * sysdeps/powerpc/libgcc-compat.c: New file.
2536         * sysdeps/wordsize-32/cmpdi2.c: Removed.
2537         * sysdeps/wordsize-32/fixdfdi.c: Removed.
2538         * sysdeps/wordsize-32/fixsfdi.c: Removed.
2539         * sysdeps/wordsize-32/shdi3.c: Removed.
2540
2541 2002-05-16  Bruno Haible  <bruno@clisp.org>
2542
2543         * MakeTAGS (libc.pot): Don't sort the output.
2544         * po/header.pot: Update to match xgettext 0.11 output.
2545
2546 2002-05-16  Bruno Haible  <bruno@clisp.org>
2547
2548         * MakeTAGS (subdirs): Remove duplicates.
2549
2550 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
2551
2552         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
2553         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
2554         alias.
2555
2556 2002-05-19  Andreas Jaeger  <aj@suse.de>
2557
2558         * sysdeps/unix/sysv/linux/configure.in: Warn against an
2559         installation in /usr/local.
2560
2561 2002-05-16  Bruno Haible  <bruno@clisp.org>
2562
2563         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
2564         string as argument of #error.
2565
2566 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
2567
2568         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
2569         don't define static.  Remove old __realpath function.  TC1 of
2570         POSIX 2001 will allow the second parameter to be NULL.
2571         * stdlib/test-canon.c: Comment out test for NULL as second
2572         parameter of realpath.
2573
2574         * time/offtime.c (__offtime): Set errno if overflow is detected.
2575
2576         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
2577         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
2578         dl-brk and dl-sbrk.
2579
2580         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
2581         (fdimf): Likewise.
2582
2583 2002-05-15  Roland McGrath  <roland@frob.com>
2584
2585         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
2586
2587 2002-05-12  Bruno Haible  <bruno@clisp.org>
2588
2589         * iconvdata/testdata/EUC-JISX0213: New file.
2590         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
2591         * iconvdata/testdata/SHIFT_JISX0213: New file.
2592         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
2593         * iconvdata/testdata/ISO-2022-JP-3: New file.
2594         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
2595         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
2596         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
2597         contains comments indicating precomposed characters.
2598
2599 2002-04-21  Bruno Haible  <bruno@clisp.org>
2600
2601         * iconvdata/iso-2022-jp-3.c: New file.
2602         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
2603         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
2604         (LDFLAGS-ISO-2022-JP-3.so): New variable.
2605         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
2606         (distribute): Add iso-2022-jp-3.c.
2607
2608 2002-05-12  Bruno Haible  <bruno@clisp.org>
2609
2610         * iconvdata/tst-table-to.c (main): Restore handling of
2611         transliterations, broken by last patch.
2612
2613 2002-05-12  Bruno Haible  <bruno@clisp.org>
2614
2615         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
2616
2617 2002-05-12  Bruno Haible  <bruno@clisp.org>
2618
2619         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
2620         when there is not enough room in the output buffer.
2621         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2622
2623 2002-04-20  Bruno Haible  <bruno@clisp.org>
2624
2625         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
2626         macros.
2627         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2628         Also make this macro work if FROM_DIRECTION evaluates to 0.
2629         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2630         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
2631         of consume_incomplete.
2632         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2633         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
2634         4, not 8.
2635         * iconvdata/cp1258.c: Likewise.
2636         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2637         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
2638         not 2.
2639         * iconvdata/ibm933.c: Likewise.
2640         * iconvdata/ibm935.c: Likewise.
2641         * iconvdata/ibm937.c: Likewise.
2642         * iconvdata/ibm939.c: Likewise.
2643         * iconvdata/iso-2022-cn.c: Define
2644         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2645         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
2646         * iconvdata/iso-2022-cn-ext.c: Likewise.
2647         * iconvdata/iso-2022-jp.c: Define
2648         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2649         {MIN,MAX}_NEEDED_{FROM,TO}.
2650         * iconvdata/tcvn5712-1.c: Define
2651         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2652         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
2653         * iconvdata/euc-jisx0213.c: Define
2654         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2655         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
2656         * iconvdata/shift_jisx0213.c: Likewise.
2657
2658 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2659
2660         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
2661         shdi3, fixdfdi, fixsfdi in csu dir.
2662         (shared-only-routines): Likewise.
2663         * sysdeps/wordsize-32/cmpdi2.c: New file.
2664         * sysdeps/wordsize-32/shdi3.c: New file.
2665         * sysdeps/wordsize-32/fixdfdi.c: New file.
2666         * sysdeps/wordsize-32/fixsfdi.c: New file.
2667         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
2668         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
2669         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
2670
2671         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
2672         Only use va_arg if the argument will be used [PR libc/3259].
2673
2674 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
2675
2676         * catgets/catgets.c (catopen): Free buffer if internal catalog
2677         open fails.
2678
2679 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
2680
2681         * debug/xtrace.sh: Make more robust.  For realtime tracking use
2682         non-buffering methods.
2683         * debug/pcprofiledump.c: Implement -u option.
2684         Patch by Roger Luethi <rl@hellgate.ch>.
2685
2686 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
2687
2688         * include/netinet/in.h (bindresvport_internal): Add prototype.
2689         * include/rpc/auth.h  (authunix_create_internal,
2690         authunix_create_default_internal, authnone_create_internal,
2691         authdes_pk_create_internal): Add prototypes.
2692         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
2693         clntudp_create_internal, clntudp_bufcreate_internal,
2694         clntunix_create_internal): Add prototypes.
2695         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
2696         svc_getreq_internal, svc_getreq_common_internal,
2697         svc_getreqset_internal, svc_getreq_poll_internal,
2698         svc_register_internal, svc_unregister_internal,
2699         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
2700         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
2701         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
2702         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
2703         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
2704         * inet/rcmd.c (rcmd_af): Use __listen.
2705         (rresvport_af): Use __bind.
2706         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
2707         authunix_create, authunix_create_default, authnone_create,
2708         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
2709         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
2710         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
2711         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
2712         _authenticate, add INTDEF after such function definitions.
2713         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
2714         __setsockopt, __getsockname instead of non-__ variants.
2715         * sunrpc/pmap_rmt.c: Likewise.
2716         * sunrpc/rtime.c: Likewise.
2717         * sunrpc/svc_udp.c: Likewise.
2718         * sunrpc/clnt_unix.c: Likewise.
2719         * sunrpc/svc_unix.c: Likewise.
2720         * sunrpc/bindrsvprt.c: Likewise.
2721         * sunrpc/svc_tcp.c: Likewise.
2722         * sunrpc/auth_none.c: Likewise.
2723         * sunrpc/clnt_raw.c: Likewise.
2724         * sunrpc/clnt_tcp.c: Likewise.
2725         * sunrpc/auth_unix.c: Likewise.
2726         * sunrpc/key_call.c: Likewise.
2727         * sunrpc/clnt_gen.c: Likewise.
2728         * sunrpc/pm_getmaps.c: Likewise.
2729         * sunrpc/clnt_simp.c: Likewise.
2730         * sunrpc/pmap_clnt.c: Likewise.
2731         * sunrpc/svc_run.c: Likewise.
2732         * sunrpc/svc.c: Likewise.
2733         * sunrpc/svc_simple.c: Likewise.
2734         * sunrpc/pm_getport.c: Likewise.
2735         * sunrpc/auth_des.c: Likewise.
2736         * sunrpc/svc_auth.c: Likewise.
2737         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
2738         __register_frame_info_table_bases, __deregister_frame_info_bases):
2739         Add INTDEF.
2740         (__register_frame_info_bases_internal,
2741         __register_frame_info_table_bases_internal,
2742         __deregister_frame_info_bases_internal): Add prototypes.
2743         (__register_frame_info, __register_frame): Use INTUSE in call to
2744         __register_frame_info_bases.
2745         (__register_frame_info_table): Similarly.
2746         (__deregister_frame_info, __deregister_frame): Similarly.
2747         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
2748         sendto as weak alias.
2749         * sysdeps/mach/hurd/sendto.c: Likewise.
2750         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
2751         recvfrom as weak alias.
2752         * sysdeps/mach/hurd/recvfrom.c: Likewise.
2753         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
2754         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
2755         recvmsg as weak alias.
2756         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
2757         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
2758         sendmsg as weak alias.
2759         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
2760         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
2761         setsockopt, add setsockopt as weak alias.
2762         * sysdeps/mach/hurd/setsockopt.c: Likewise.
2763         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
2764         weak alias.
2765         * sysdeps/mach/hurd/bind.c: Likewise.
2766         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
2767         as weak alias.
2768         * sysdeps/mach/hurd/listen.c: Likewise.
2769         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
2770         getsockname, add getsockname as weak alias.
2771         * sysdeps/mach/hurd/getsockname.c: Likewise.
2772         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
2773         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
2774         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
2775         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
2776         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
2777         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
2778         Add aliases.
2779         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2780         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2781         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2782         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2783         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
2784         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
2785         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
2786         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
2787         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
2788         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
2789         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
2790         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
2791
2792 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2793
2794         * locale/programs/localedef.h (show_archive_content): Add verbose
2795         argument.
2796         * locale/programs/localedef.c (main): Adjust caller.
2797         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
2798         (nameentcmp, dataentcmp): New functions.
2799         (xstrcmp): Remove.
2800         (show_archive_content): Print verbose listing with --list-archive -v.
2801
2802 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
2803
2804         * locale/programs/locarchive.c (open_archive): Take extra argument
2805         readonly.  If true open file with O_RDONLY and don't create the
2806         archive if it doesn't exist.
2807         Adapt all callers.
2808         (close_archive): Don't do anything if fd element is -1.
2809         * locale/programs/localedef.h (open_archive): Adjust prototype.
2810         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
2811         call.
2812
2813         * malloc/malloc.c (__posix_memalign): Correct check for size of
2814         alignment value [PR libc/3444].
2815
2816         * include/stdio.h: Remove references to old stdio implementation.
2817
2818         * libio/Makefile (bug-ungetwc2-ENV): Define.
2819
2820 2002-05-13  Roland McGrath  <roland@frob.com>
2821
2822         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
2823
2824         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
2825
2826 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
2827
2828         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2829         Allocate three, not two, more than LEN when appending '/.'.
2830         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
2831         if NAME ends with '/.' if it is shorter than 2 chars.
2832
2833 2002-05-12  Roland McGrath  <roland@frob.com>
2834
2835         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
2836         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
2837
2838         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
2839         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
2840
2841 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2842
2843         * sysdeps/ia64/Makefile: Remove extra endif.
2844         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
2845
2846 2002-05-10  Andreas Schwab  <schwab@suse.de>
2847
2848         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
2849
2850 2002-05-09  Andreas Jaeger  <aj@suse.de>
2851
2852         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
2853         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
2854         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
2855
2856         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
2857         * sysdeps/wordsize-64/glob.c: ...here.
2858         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
2859         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
2860         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
2861
2862 2002-05-08  Roland McGrath  <roland@frob.com>
2863
2864         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
2865         O_NOTRANS flag in "." lookup.
2866
2867 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
2868
2869         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
2870
2871 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
2872
2873         * locale/duplocale.c (__duplocale): Update special members only
2874         when allocation succeeded.
2875
2876 2002-05-03  Roland McGrath  <roland@frob.com>
2877
2878         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
2879         we can only build libc.so.0.3(GLIBC_2.2.6) now.
2880
2881 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2882
2883         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
2884         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
2885         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
2886         * sysdeps/ia64/ia64libgcc.S: New file.
2887
2888 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
2889
2890         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
2891
2892         * malloc/memusage.c: Distinguish anonymous mmap.
2893
2894 2002-05-01  Roland McGrath  <roland@frob.com>
2895
2896         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
2897         and use INTDEF on it.
2898         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
2899
2900         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
2901
2902         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
2903
2904 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
2905
2906         * malloc/memusage.c: Add support for tracking mmap & friends.
2907         * malloc/memusage.sh: Implement -m/--mmap option.
2908
2909 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
2910
2911         * locale/programs/locarchive.c (create_archive): Add archivefname
2912         argument, create fname from it.
2913         (enlarge_archive): Honour output_prefix.
2914         (open_archive): Likewise.
2915
2916 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
2917
2918         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
2919         too many stpcpy macros.
2920
2921 2002-04-26  Bruno Haible  <bruno@clisp.org>
2922
2923         * locale/programs/ld-collate.c (collate_read): Cast first argument
2924         for "%.*s" to int.
2925
2926 2002-04-26  Bruno Haible  <bruno@clisp.org>
2927
2928         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
2929         __dcngettext_internal): New declarations.
2930         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
2931         attribute declarations.
2932
2933 2002-04-30  Roland McGrath  <roland@frob.com>
2934
2935         Removed old GNU stdio implementation; GNU libio is now the only option.
2936         * configure.in: Removed --enable-libio option and @stdio@ subst var.
2937         Define USE_IN_LIBIO unconditionally.
2938         * configure: Regenerated.
2939         * Makeconfig (stdio): Set to libio by default.
2940         * config.make.in (stdio): Variable removed.
2941         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
2942         * sysdeps/unix/sysv/linux/configure: Regenerated.
2943         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
2944         * sysdeps/mach/hurd/configure: Regenerated.
2945         * stdio/.cvsignore: File removed.
2946         * stdio/Makefile: File removed.
2947         * stdio/Versions: File removed.
2948         * stdio/__fbufsize.c: File removed.
2949         * stdio/__flbf.c: File removed.
2950         * stdio/__fpending.c: File removed.
2951         * stdio/__fpurge.c: File removed.
2952         * stdio/__freadable.c: File removed.
2953         * stdio/__freading.c: File removed.
2954         * stdio/__fsetlocking.c: File removed.
2955         * stdio/__fwritable.c: File removed.
2956         * stdio/__fwriting.c: File removed.
2957         * stdio/clearerr.c: File removed.
2958         * stdio/fclose.c: File removed.
2959         * stdio/fcloseall.c: File removed.
2960         * stdio/feof.c: File removed.
2961         * stdio/ferror.c: File removed.
2962         * stdio/fflush.c: File removed.
2963         * stdio/fgetc.c: File removed.
2964         * stdio/fgetpos.c: File removed.
2965         * stdio/fgets.c: File removed.
2966         * stdio/fileno.c: File removed.
2967         * stdio/fmemopen.c: File removed.
2968         * stdio/fopen.c: File removed.
2969         * stdio/fopncook.c: File removed.
2970         * stdio/fputc.c: File removed.
2971         * stdio/fputs.c: File removed.
2972         * stdio/fread.c: File removed.
2973         * stdio/freopen.c: File removed.
2974         * stdio/fseek.c: File removed.
2975         * stdio/fsetpos.c: File removed.
2976         * stdio/ftell.c: File removed.
2977         * stdio/fwrite.c: File removed.
2978         * stdio/getc.c: File removed.
2979         * stdio/getchar.c: File removed.
2980         * stdio/getdelim.c: File removed.
2981         * stdio/gets.c: File removed.
2982         * stdio/glue.c: File removed.
2983         * stdio/internals.c: File removed.
2984         * stdio/linewrap.c: File removed.
2985         * stdio/linewrap.h: File removed.
2986         * stdio/memstream.c: File removed.
2987         * stdio/newstream.c: File removed.
2988         * stdio/obstream.c: File removed.
2989         * stdio/putc.c: File removed.
2990         * stdio/putchar.c: File removed.
2991         * stdio/puts.c: File removed.
2992         * stdio/rewind.c: File removed.
2993         * stdio/setbuf.c: File removed.
2994         * stdio/setbuffer.c: File removed.
2995         * stdio/setlinebuf.c: File removed.
2996         * stdio/setvbuf.c: File removed.
2997         * stdio/stdio.h: File removed.
2998         * stdio/ungetc.c: File removed.
2999         * stdio/vasprintf.c: File removed.
3000         * stdio/vscanf.c: File removed.
3001         * stdio/vsnprintf.c: File removed.
3002         * stdio/vsprintf.c: File removed.
3003         * stdio/vsscanf.c: File removed.
3004         * sysdeps/generic/defs.c: File removed.
3005         * sysdeps/generic/fdopen.c: File removed.
3006         * sysdeps/generic/pipestream.c: File removed.
3007         * sysdeps/generic/stdio_init.c: File removed.
3008         * sysdeps/generic/sysd-stdio.c: File removed.
3009         * sysdeps/generic/vdprintf.c: File removed.
3010         * sysdeps/mach/hurd/defs.c: File removed.
3011         * sysdeps/mach/hurd/fdopen.c: File removed.
3012         * sysdeps/mach/hurd/pipestream.c: File removed.
3013         * sysdeps/mach/hurd/stdio_init.c: File removed.
3014         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3015         * sysdeps/mach/hurd/vdprintf.c: File removed.
3016         * sysdeps/posix/defs.c: File removed.
3017         * sysdeps/posix/fdopen.c: File removed.
3018         * sysdeps/posix/pipestream.c: File removed.
3019         * sysdeps/posix/stdio_init.c: File removed.
3020         * sysdeps/posix/vdprintf.c: File removed.
3021         * sysdeps/unix/pipestream.c: File removed.
3022         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3023         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
3024         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
3025
3026 2002-04-29  Roland McGrath  <roland@frob.com>
3027
3028         * include/libc-symbols.h (link_warning): Use `unused' attribute.
3029
3030 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
3031
3032         * sysdeps/generic/tls.h: Describe what must be defined.
3033
3034         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
3035         glob_in_dir [PR libc/3385].
3036         * posix/globtest.sh: Add test case.
3037
3038         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
3039         //TRANSLIT twice.
3040
3041 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
3042
3043         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
3044         _internal symbol handling.
3045         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3046
3047 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
3048
3049         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
3050         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3051
3052 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
3053
3054         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
3055         not _LIBC and RE_ENABLE_I18N.
3056         (build_range_exp): Implement for not _LIBC.
3057         (build_collating_symbol): Likewise.
3058         (parse_bracket_exp): Unify redundant error handlings.
3059         Don't erase mbcset for non matching list in multibyte envs.
3060         (build_word_op): Add '_' to matching list for \w operator.
3061         * posix/regex_internal.c (re_string_construct): Invoke
3062         build_upper_buffer in case of not RE_ENABLE_I18N.
3063         (re_string_reconstruct): Don't touch cur_state in case of not
3064         RE_ENABLE_I18N.
3065         * posix/regex_internal.h (attribute_hidden): New macro in case of
3066         not _LIBC.
3067         (re_charset_t): Define range_starts/ends in case of not _LIBC.
3068         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
3069         RE_ENABLE_I18N.
3070         (transit_state_mb): Likewise.
3071         (check_node_accept_bytes): Implement the code evaluating range
3072         expression in case of not _LIBC.
3073         (find_collation_sequence_value): Hide in case of not _LIBC.
3074
3075 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
3076
3077         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
3078         i386/semctl.c.
3079         (__old_semctl, __new_semctl): Only use va_arg if the argument will
3080         be used.
3081
3082 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
3083
3084         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
3085
3086         * sysdeps/ia64/strncpy.S: Fix recovery code.
3087         Patch by David Mosberger <davidm@hpl.hp.com>.
3088
3089 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3090
3091         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
3092         GLIBC_2.2.6.
3093
3094 2002-04-14  Bruno Haible  <bruno@clisp.org>
3095
3096         * posix/regex.c (re_max_failures): Add back symbol for binary
3097         compatibility.
3098
3099 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
3100
3101         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
3102         of buffer building functions.
3103         * posix/regex_internal.c (re_string_allocate): New function.
3104         (re_string_realloc_buffers): New function.
3105         (re_string_skip_chars): New function.
3106         (re_string_reconstruct): New function.
3107         (re_string_construct): Adapt it to new interface of buffer building
3108         functions.
3109         (re_string_construct_common): Likewise.
3110         (build_wcs_buffer): Likewise.
3111         (build_wcs_upper_buffer): Likewise.
3112         (build_upper_buffer): Likewise.
3113         (re_string_translate_buffer): Likewise.
3114         (re_string_context_at): Adapt it to variable length buffers.
3115         * posix/regex_internal.h (re_string_t): Add new fields to handle
3116         variable length buffers.
3117         (re_match_context_t): Likewise.
3118         * posix/regexec.c (re_search_internal): Adapt it to new interface
3119         of re_string_t and re_match_context_t.
3120         (acquire_init_state_context): Likewise.
3121         (check_matching): Likewise.
3122         (check_halt_state_context): Likewise.
3123         (proceed_next_node): Likewise.
3124         (set_regs): Likewise.
3125         (sift_states_backward): Likewise.
3126         (clean_state_log_if_need): Likewise.
3127         (sift_states_iter_mb): Likewise.
3128         (sift_states_iter_bkref): Likewise.
3129         (add_epsilon_backreference): Likewise.
3130         (transit_state): Likewise.
3131         (transit_state_sb): Likewise.
3132         (transit_state_mb): Likewise.
3133         (transit_state_bkref): Likewise.
3134         (transit_state_bkref_loop): Likewise.
3135         (check_node_accept): Likewise.
3136         (match_ctx_init): Likewise.
3137         (extend_buffers): New function.
3138
3139 2002-04-21  Bruno Haible  <bruno@clisp.org>
3140
3141         * iconvdata/tst-table.sh: For the second check, use the truncated
3142         GB18030 charmap table, like for the first check.
3143
3144 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3145
3146         * elf/dl-load.c (open_verify): Correct __lseek parameters.
3147         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
3148
3149 2002-04-23  H.J. Lu  <hjl@gnu.org>
3150
3151         * include/math.h (isfinite): Fix a typo.
3152
3153 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3154
3155         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
3156         which is created by the test suite.
3157
3158 2002-04-20  Bruno Haible  <bruno@clisp.org>
3159
3160         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
3161         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
3162
3163 2002-04-20  Bruno Haible  <bruno@clisp.org>
3164
3165         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
3166         to avoid gcc warning.
3167
3168 2002-04-20  Bruno Haible  <bruno@clisp.org>
3169
3170         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
3171         of data->__statep->__count.
3172
3173 2002-04-20  Bruno Haible  <bruno@clisp.org>
3174
3175         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
3176         tag characters.
3177         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
3178
3179 2002-04-24  Roland McGrath  <roland@frob.com>
3180
3181         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
3182         use END macro instead of our own .end directive.
3183         Use `callsys' insn mnemonic instead of `call_pal'.
3184
3185         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
3186
3187         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
3188         macro; we need this for Hurd.
3189
3190         Log entry was missing for 2002/03/24 commit of rev 1.8,
3191         goes with 2002-03-17 changes.
3192         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
3193         (sysdep_routines): Append ioperm here.
3194         (sysdep_headers): Append sys/io.h here.
3195
3196 2002-04-23  Roland McGrath  <roland@frob.com>
3197
3198         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
3199         * sysdeps/mach/hurd/sendto.c: Likewise.
3200         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
3201         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
3202         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
3203
3204 2002-04-22  Roland McGrath  <roland@frob.com>
3205
3206         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
3207         failure from i386_io_perm_* RPCs to ENOSYS.
3208
3209 2002-04-22  Andreas Jaeger  <aj@suse.de>
3210
3211         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
3212
3213         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
3214
3215         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
3216         register instead of destroying %rbx.
3217
3218 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
3219
3220         * string/string.h: Declare strerror_r also for XPG6.
3221
3222 2002-04-19  Roland McGrath  <roland@frob.com>
3223
3224         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
3225
3226 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
3227
3228         * Makefile: Add handling of xtests and xcheck targets.
3229         * MakeTAGS: Likewise.
3230         * Makeconfig: Likewise.
3231         * Makerules: Likewise.
3232         * Rules: Likewise.
3233         * manual/Makefile: Likewise.
3234         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
3235         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
3236
3237 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
3238
3239         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
3240         authnone_private_s.
3241         * sunrpc/auth_none.c: Include bits/libc-lock.h.
3242         Delete #ifdef _RPC_THREAD_SAFE_ block.
3243         (authnone_private): Make a struct, not a pointer to struct.
3244         (authnone_private_guard): New once-control variable.
3245         (authnone_create_once): New function, split out of
3246         authnone_create.  No need to allocate memory.
3247         (authnone_create): Just call authnone_create_once via
3248         __libc_once, then return &authnone_private->no_client.
3249         (authnone_marshal): Access private data via CLIENT argument,
3250         not authnone_private pointer.
3251         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
3252         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
3253         authnone_private_s.
3254
3255 2002-04-12  H.J. Lu  <hjl@gnu.org>
3256
3257         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
3258
3259 2002-04-18  Bruno Haible  <bruno@clisp.org>
3260
3261         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3262         FROM_DIRECTION): Make the FROM direction stateless.
3263         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3264         FROM_DIRECTION): Likewise.
3265
3266 2002-04-15  Bruno Haible  <bruno@clisp.org>
3267
3268         * iconvdata/JISX0213.TXT: New file.
3269         * iconvdata/jisx0213.h: New file.
3270         * iconvdata/jisx0213.c: New file.
3271         * iconvdata/euc-jisx0213.c: New file.
3272         * iconvdata/shift_jisx0213.c: New file.
3273         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
3274         * iconvdata/EUC-JISX0213.precomposed: New file.
3275         * iconvdata/SHIFT_JISX0213.precomposed: New file.
3276         * iconvdata/SHIFT_JISX0213.irreversible: New file.
3277         * iconvdata/tst-table-to.c (main): Make it work for encodings for
3278         which the "to" direction is stateful.
3279         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
3280         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
3281         SHIFT_JISX0213.
3282         (libJISX0213-routines): New variable.
3283         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
3284         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
3285         (LDFLAGS-libJISX0213.so): New variable.
3286         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
3287         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
3288         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
3289
3290 2002-04-15  Bruno Haible  <bruno@clisp.org>
3291
3292         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
3293         uint32_t.  Update to Unicode 3.2.
3294         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
3295         (BODY for TO_LOOP): Handle the ASCII range specially.
3296         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
3297         * iconvdata/testdata/BIG5HKSCS: Remove a character.
3298         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
3299
3300 2002-04-15  Bruno Haible  <bruno@clisp.org>
3301
3302         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
3303         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
3304
3305 2002-04-15  Bruno Haible  <bruno@clisp.org>
3306
3307         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
3308         (ucs4_to_cns11643): Update.
3309         * iconvdata/cns11643.c: Update to Unicode 3.2.
3310         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
3311         __cns11643_from_ucs4p2_tab): Regenerated.
3312         (__cns11643_from_ucs4p2c_tab): New array.
3313         * iconvdata/cvs11643l1.c: Update comments.
3314         * iconvdata/EUC-TW.irreversible: Remove two entries.
3315
3316 2002-04-15  Bruno Haible  <bruno@clisp.org>
3317
3318         * locale/C-translit.h.in: Update to Unicode 3.2.
3319         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
3320         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
3321
3322 2002-04-15  Bruno Haible  <bruno@clisp.org>
3323
3324         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
3325         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
3326
3327 2002-04-15  Bruno Haible  <bruno@clisp.org>
3328
3329         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
3330         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
3331         always one byte, not 0 bytes in some cases and 2 bytes in others.
3332
3333         * iconvdata/tst-table-from.c (main): Correct the usage message.
3334
3335 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
3336
3337         * posix/regcomp.c (parse_expression): Fix incorrect error code.
3338         (parse_dup_op): Fix error handling like "a{}".
3339         (parse_bracket_exp): Add error handling.
3340         (fetch_number): Add error handling for "a{<very_large_number>}".
3341
3342 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
3343
3344         * posix/regcomp.c (parse_bracket_symbol): Add error handling
3345         in case that the symbol name is too long.
3346         (build_charclass): Handle [:lower:]/[:uppper:] correctly
3347         in case of REG_ICASE.
3348
3349 2002-04-19  Andreas Jaeger  <aj@suse.de>
3350
3351         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
3352         <hartvige@mips.com>.
3353
3354 2002-04-15  H.J. Lu  <hjl@gnu.org>
3355
3356         * include/math.h (__finitel_internal): Declare only if
3357         __NO_LONG_DOUBLE_MATH is not defined.
3358         (__isinfl_internal): Likewise.
3359         (__isnanl_internal): Likewise.
3360
3361         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
3362         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3363         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3364         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3365         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3366         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3367         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3368
3369         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
3370         __fcntl_internal.
3371
3372         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
3373         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
3374
3375 2002-04-15  Bruno Haible  <bruno@clisp.org>
3376
3377         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
3378         (BODY for TO_LOOP): Likewise.
3379         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
3380         * iconvdata/tst-table.sh: Add support for encodings which contain
3381         precomposed Unicode characters, known to the iconv converter in both
3382         directions but not listed in the charmap.
3383         * iconvdata/IBM856.irreversible: New file.
3384         * iconvdata/IBM922.irreversible: New file.
3385         * iconvdata/IBM1132.irreversible: New file.
3386         * iconvdata/IBM1133.irreversible: New file.
3387         * iconvdata/IBM1160.irreversible: New file.
3388         * iconvdata/IBM1161.irreversible: New file.
3389         * iconvdata/IBM1163.irreversible: New file.
3390         * iconvdata/IBM1164.irreversible: New file.
3391         * iconvdata/ARMSCII-8.irreversible: New file.
3392         * iconvdata/TCVN5712-1.precomposed: New file.
3393         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
3394         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
3395         ARMSCII-8, TCVN5712-1.
3396         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
3397         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
3398         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
3399         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
3400
3401 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
3402
3403         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
3404         for EVENING69.  Include offsets in TZ environment variable.
3405
3406 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
3407
3408         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
3409         avoid compiler warnings.
3410
3411         * locale/programs/localedef.c (main): Always call
3412         construct_output_path.
3413
3414         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
3415
3416         * locale/programs/locfile.c (to_archive): New variable.  To collect
3417         data which has to be added to the locale archive.
3418         (write_all_categories): Take new third parameter with locale name.
3419         Unless no_archive flag set add new locale data to the archive
3420         (write_locale_data): Unless no-archive flag set store generated data
3421         in to_archive data structure instead of generation output file.
3422         Add new parameter with locale category index.
3423         * locale/programs/locfile.h: Add new parameters in declaractions of
3424         write_all_categories and write_locale_data.
3425         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
3426         --add-to-archive, and --delete-from-archive options.  Pass extra
3427         parameter to write_all_categories.
3428         * locale/programs/localedef.h: Add prototypes for functions in
3429         locarchive.c.
3430         * locale/locarchive.h: New file.
3431         * locale/programs/locarchive.c: New file.
3432         * locale/Makefile (distribute): Add programs/locarchive.c and
3433         locarchive.h.
3434         (localedef-modules): Add md5 and locarchive.
3435         Add vpath to crypt subdir for md5.c.
3436
3437         * locale/programs/ld-address.c: Pass locale category ID as new second
3438         parameter to write_locale_data.
3439         * locale/programs/ld-collate.c: Likewise.
3440         * locale/programs/ld-ctype.c: Likewise.
3441         * locale/programs/ld-identification.c: Likewise.
3442         * locale/programs/ld-measurement.c: Likewise.
3443         * locale/programs/ld-messages.c: Likewise.
3444         * locale/programs/ld-monetary.c: Likewise.
3445         * locale/programs/ld-name.c: Likewise.
3446         * locale/programs/ld-numeric.c: Likewise.
3447         * locale/programs/ld-paper.c: Likewise.
3448         * locale/programs/ld-telephone.c: Likewise.
3449         * locale/programs/ld-time.c: Likewise.
3450
3451         * locale/simple-hash.c: Move compute_hashval function from here...
3452         * locale/hashval.h: ...to here.  New file.
3453         * locale/simple-hash.h: Add prototype for compute_hashval.
3454
3455         * include/libintl.h: Minor cleanups.
3456
3457 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
3458
3459         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
3460
3461 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
3462
3463         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
3464
3465 2002-04-14  Bruno Haible  <bruno@clisp.org>
3466
3467         * locale/programs/charmap.c (charmap_read): Don't access result if
3468         result == NULL.
3469
3470 2002-02-17  Andreas Schwab  <schwab@suse.de>
3471
3472         * elf/reldep7.c: New file.
3473      &nb