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