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