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