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