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