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