Update.
[platform/upstream/glibc.git] / ChangeLog
1 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2
3         * csu/Makefile: Define elide-routines.os not static-only-routines.
4
5         * include/sched.h (__clone): Add varargs at the end.
6
7         * elf/rtld.c (_dl_start): All TLS_INIT_TP to fail and stop in that
8         case.
9         (TLS_INIT_HELPER): If defined use it.
10         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
11
12 2002-08-15  Roland McGrath  <roland@redhat.com>
13
14         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
15         on L->l_prev; it can happen under rtld --verify too.
16
17         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
18         header separately, just map an initial window of 2MB from the file
19         and remap if that is not large enough to cover the whole header.
20
21 2002-08-15  Andreas Jaeger  <aj@suse.de>
22
23         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
24         version 2.3.
25         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
26         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
27         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
28         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
29         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
30         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
31         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
32         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
33         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
34         Patch by Andreas Gruenbacher <agruen@suse.de>.
35
36         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
37
38 2002-08-14  Roland McGrath  <roland@redhat.com>
39
40         * locale/locarchive.h (struct locale_category_data): Give this name to
41         the type of locale_data_t's elements.
42         * locale/programs/locarchive.c (cmpcategorysize): New static function.
43         (add_locale): Use that to sort the categories by size and put all
44         those that fit into two pages into the LC_ALL block, instead of
45         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
46         (show_archive_content): Detect categories inside LC_ALL block
47         directly, instead of hard-coding.
48         (oldlocrecentcmp): Compare just on file locations used.
49
50 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
51
52         * locale/programs/locarchive.c (struct oldlocrecent): New.
53         (oldlocrecentcmp): New.
54         (enlarge_archive): Re-add locales in the order they were added
55         to the archive.
56         (add_locale): Put all the small locale files together, if the small
57         locale file block would occupy less pages if page size aligned, align
58         it.
59         (show_archive_content): Adjust for locale archives optimized for speed.
60
61 2002-08-14  Roland McGrath  <roland@frob.com>
62
63         * configure.in: Use "MISSING" as not-found value for MIG.
64         * sysdeps/mach/configure.in: Fatal if mig not found.
65         * configure, sysdeps/mach/configure: Regenerated.
66
67 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
68
69         * locale/loadarchive.c (archfname): Add missing slash.
70
71         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
72         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
73
74 2002-08-12  Roland McGrath  <roland@redhat.com>
75
76         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
77         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
78         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
79         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
80         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
81         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
82         * sysdeps/generic/waitpid.c: Likewise.
83
84         * include/net/if.h: New file.  Use libc_hidden_proto
85         for if_nametoindex and if_indextoname.
86         * sysdeps/generic/if_index.c: Add libc_hidden_def.
87         * sysdeps/mach/hurd/if_index.c: Likewise.
88         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
89
90         * include/grp.h (setgroups): Add libc_hidden_proto.
91         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
92         * sysdeps/mach/hurd/setgroups.c: Likewise.
93         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
94         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
95
96 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
97
98         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
99         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
100         * sysdeps/generic/setegid.c (setegid): Likewise.
101         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
102         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
103         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
104         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
105         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
106         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
107         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
108         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
109         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
110         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
111         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
112         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
113         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
114
115         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
116         __lxstat_internal, __lxstat64_internal): Remove.
117         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
118         Add hidden_proto.
119         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
120         Remove INTDEF where present, remove #undef at the beginning.
121         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
122         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
123         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
124         * sysdeps/generic/xstat.c (__xstat): Likewise.
125         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
126         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
127         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
128         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
129         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
130         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
131         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
132         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
133         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
134         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
135         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
136         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
137         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
138         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
139         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
140         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
141         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
142         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
143         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
144         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
145         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
146         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
147         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
148         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
149         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
150         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
151         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
152         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
153         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
154         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
155         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
156         * sysdeps/unix/xstat.c (__xstat): Likewise.
157
158         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
159         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
160         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
161         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
162         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
163         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
164         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
165
166         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
167         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
168         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
169         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
170         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
171         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
172         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
173         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
174         Likewise.
175         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
176         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
177         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
178         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
179         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
180         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
181         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
182         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
183
184         * include/string.h (strcoll): Add libc_hidden_proto.
185         * string/strcoll.c (strcoll): Add libc_hidden_def.
186
187         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
188
189 2002-08-11  Philip Blundell  <philb@gnu.org>
190
191         * sysdeps/arm/Makefile: New file.
192
193 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
194
195         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
196         by another '|', end of regex or enclosing ')', clear branch.
197         * posix/bug-regex9.c: New test.
198         * posix/Makefile (tests): Add bug-regex9.
199
200 2002-08-12  Roland McGrath  <roland@redhat.com>
201
202         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
203         start count condition, use TOTAL instead of variable that was never
204         set.  Fix outer loop termination condition to TOTAL >= after update.
205
206         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
207         dl_tls_static_align and dl_tls_static_nelem.
208
209 2002-08-11  Roland McGrath  <roland@redhat.com>
210
211         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
212         of the TLS macros, otherwise the compiler might not have initialized
213         the PIC register yet when we use the PLT via asm.
214         * elf/tst-tlsmod3.c (in_dso2): Likewise.
215         * elf/tst-tlsmod2.c (in_dso): Likewise.
216
217         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
218
219         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
220         Evaluate argument exactly once.  Remove __volatile__ from asm's.
221
222         * include/unistd.h: Use libc_hidden_proto for getdomainname
223         and getlogin_r.
224         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
225         * sysdeps/mach/hurd/getdomain.c: Likewise.
226         * sysdeps/unix/getlogin_r.c: Likewise.
227         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
228         * sysdeps/generic/getlogin_r.c: Likewise.
229
230         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
231         * sunrpc/rtime.c: Add libc_hidden_def.
232
233         * include/string.h: Use libc_hidden_proto for basename.
234         * string/basename.c [_LIBC]: Add libc_hidden_def.
235
236         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
237
238         * locale/loadarchive.c: munmap -> __munmap throughout.
239
240         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
241         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
242         * sysdeps/generic/gai_strerror.c: Likewise.
243
244         * include/sys/errno.h: New file.
245
246         * include/signal.h: No libc_hidden_proto for raise,
247         __libc_current_sigrtmin, __libc_current_sigrtmax.
248         These need to be overridden by linuxthreads.
249         * sysdeps/posix/raise.c: Reverted.
250         * sysdeps/generic/raise.c: Reverted.
251         * signal/allocrtsig.c: Reverted.
252
253         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
254
255 2002-08-10  Roland McGrath  <roland@redhat.com>
256
257         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
258         * locale/localeinfo.h: Declare it.
259         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
260         current locale if it's not in the file list.
261         Call _nl_archive_subfreeres.
262
263 2002-08-10  Andreas Jaeger  <aj@suse.de>
264
265         * sysdeps/i386/strchr.S: Add comment.
266
267 2002-08-10  Roland McGrath  <roland@redhat.com>
268
269         * include/wchar.h (putwc): Use libc_hidden_proto.
270         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
271         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
272         * stdio-common/dprintf.c: Add libc_hidden_def.
273         * stdio-common/fprintf.c: Likewise.
274         * stdio-common/sprintf.c: Likewise.
275         * stdio-common/sscanf.c: Likewise.
276         * libio/iofwrite.c: Likewise.
277         * libio/memstream.c: Likewise.
278         * libio/putwc.c: Likewise.
279         * stdio-common/perror.c: Likewise.
280         * sysdeps/posix/remove.c: Likewise.
281         * sysdeps/generic/remove.c: Likewise.
282         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
283         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
284
285 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
286
287         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
288         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
289         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
290         towlower, towupper): Add libc_hidden_weak.
291
292         * include/bits/dlfcn.h: New file.
293         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
294
295         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
296         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
297         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
298         * include/pwd.h (_nss_files_parse_pwent): Likewise.
299         * include/shadow.h (_nss_files_parse_spent): Likewise.
300         * include/netdb.h (_nss_files_parse_protoent,
301         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
302         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
303         (LINE_PARSER): Use it.
304         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
305         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
306
307         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
308         #endif.
309
310         * manual/debug.texi (%MENU%): Remove trailing dot.
311         Reported by <hayastan132@hotmail.com>.
312
313         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
314         aliases.
315         (lseek): Dummy.
316         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
317         Likewise.
318
319 2002-08-09  Roland McGrath  <roland@redhat.com>
320
321         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
322         name to find codeset name (if any) and normalize it.  If the
323         normalized name differs, look up only that in the archive.
324         * locale/programs/locarchive.c (add_locale_to_archive): If the name
325         contains a codeset, normalize the codeset store only the normalized
326         name in the archive.  If not, add an alias containing the locale's
327         normalized codeset name.  Apply codeset name normalization when
328         matching entries in the alias file.
329
330         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
331         decrement HEAD->namehash_used here.
332         (add_locale): Only need to insert name string when name_offset != 0.
333
334         * locale/programs/localedef.c (options): Add -A/--alias-file.
335         (alias_file): New variable.
336         (parse_opt): Grok -A, set that.
337         * locale/programs/localedef.h: Declare it.
338
339         * locale/locarchive.h (struct locrecent): Add `refs' member.
340         * locale/programs/locarchive.c (insert_name): New function, broken out
341         of ...
342         (add_locale_to_archive): ... here.  Call that.
343         (add_alias): New function.
344         (add_locale): New static function, add_locale_to_archive renamed.
345         (add_locale_to_archive): Call that and use add_alias to add an alias
346         for the name with codeset if the given name lacks it.
347         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
348
349         * locale/Makefile (routines): Add loadarchive.
350         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
351         (_nl_load_locale_from_archive): New function.
352         * locale/localeinfo.h: Declare it.
353         * locale/findlocale.c (_nl_find_locale): If using default locale path,
354         try _nl_load_locale_from_archive first.
355
356         * locale/loadlocale.c (_nl_intern_locale_data): New function,
357         broken out of _nl_load_locale.
358         (_nl_load_locale): Call that.
359         * locale/localeinfo.h: Declare it.
360         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
361         (struct locale_data): Remove unused member `options'.
362         * locale/findlocale.c (_nl_remove_locale): Update uses.
363         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
364         * locale/C-collate.c: Update initializer.
365         * locale/C-identification.c: Likewise.
366         * locale/C-measurement.c: Likewise.
367         * locale/C-telephone.c: Likewise.
368         * locale/C-address.c: Likewise.
369         * locale/C-name.c: Likewise.
370         * locale/C-paper.c: Likewise.
371         * locale/C-time.c: Likewise.
372         * locale/C-numeric.c: Likewise.
373         * locale/C-monetary.c: Likewise.
374         * locale/C-messages.c : Likewise.
375         * locale/C-ctype.c: Likewise.
376
377         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
378         use CHAR_BIT instead of BITSPERBYTE.
379
380         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
381         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
382         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
383         (_nl_remove_locale): Likewise.
384         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
385
386         * locale/findlocale.c (_nl_default_locale_path): New variable.
387         (_nl_find_locale): If LOCALE_PATH is null, default to that.
388         * locale/localeinfo.h: Declare it.
389         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
390         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
391         * locale/newlocale.c (__newlocale): Likewise.
392
393         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
394         * inet/rexec.c (rexec_af): Add libc_hidden_def.
395         * sysdeps/generic/morecore.c: Likewise.
396         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
397         (__libc_current_sigrtmax): Likewise.
398
399 2002-08-08  Roland McGrath  <roland@redhat.com>
400
401         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
402         * catgets/open_catalog.c (__open_catalog): Likewise.
403
404         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
405         from typo INITIAL_NUM_NANES.
406         (create_archive): Update use.
407
408 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
409
410         * sysdeps/unix/sysv/linux/sigwait.c: New file.
411
412 2002-08-08  Roland McGrath  <roland@frob.com>
413
414         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
415
416 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
417
418         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
419         else and undefine after including wcstol_l.c.
420         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
421
422 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
423
424         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
425
426 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
427
428         * configure.in: Make the test for broken_alias_attribute stricter.
429
430 2002-05-24  Robert Love  <rml@tech9.net>
431
432         * posix/Makefile (routines): Add sched_getaffinity and
433         sched_setaffinity.
434         * posix/sched.h: Add declarations for sched_getaffinity and
435         sched_setaffinity.
436         * sysdeps/generic/sched_getaffinity.c: New file.
437         * sysdeps/generic/sched_setaffinity.c: New file.
438         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
439         sched_setaffinity.
440
441 2002-08-06  Andreas Schwab  <schwab@suse.de>
442
443         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
444
445 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
446
447         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
448         message.
449
450         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
451         It is known to be defined.
452
453         * include/string.h: Define index and rindex only if _ISOMAC is not
454         defined.
455
456         * elf/rtld.c: Include <errno.h>.
457         * sysdeps/generic/libc-tls.c: Likewise.
458
459 2002-08-07  Roland McGrath  <roland@redhat.com>
460
461         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
462         it internally.
463         (precsize_aton): Likewise.
464
465         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
466         the static symbols added in the last change (doofus is me).
467
468         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
469         loop to notice missing categories in a composite name.
470
471         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
472         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
473         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
474         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
475
476 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
477
478         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
479
480 2002-08-07  Roland McGrath  <roland@redhat.com>
481
482         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
483         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
484         Reported by Jakub Jelinek  <jakub@redhat.com>.
485
486 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
487
488         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
489         division.
490
491 2002-08-06  Roland McGrath  <roland@redhat.com>
492
493         * include/getopt.h: Put private decls inside [_GETOPT_H].
494         Use libc_hidden_proto for getopt_long, getopt_long_only.
495         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
496         Add libc_hidden_def.
497
498         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
499         Define as a macro for __dl_iterate_phdr.
500
501         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
502         made static.  Add __ name as a strong alias.
503         (internal_endnetgrent): Likewise.
504         (internal_getnetgrent_r): Likewise.
505
506         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
507         with no __ prefix.
508         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
509         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
510         all *_l functions with no __ prefix.
511         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
512         * ctype/ctype_l.c: Likewise.
513         * locale/nl_langinfo.c: Likewise.
514         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
515         * stdlib/stdlib.h [__USE_GNU]: Likewise.
516         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
517         * wctype/wctype.h [__USE_GNU]: Likewise.
518         * string/strcoll_l.c (strcoll_l): Define as weak alias.
519         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
520         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
521         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
522         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
523         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
524         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
525         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
526         (__wcscasecmp_l): Add libc_hidden_def.
527         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
528         (__wcsncasecmp_l): Add libc_hidden_def.
529         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
530         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
531         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
532         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
533         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
534         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
535         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
536         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
537         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
538         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
539         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
540         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
541         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
542         * wctype/wctype_l.c (wctype_l) Define as weak alias.
543
544 2002-08-05  Roland McGrath  <roland@redhat.com>
545
546         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
547         netname2user, host2netname, user2netname, key_gendes.
548         * sunrpc/netname.c: Add libc_hidden_def.
549         * sunrpc/key_call.c: Likewise.
550
551         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
552         freeaddrinfo.
553         * inet/getnameinfo.c: Add libc_hidden_def.
554         * sysdeps/generic/getaddrinfo.c: Likewise.
555         * sysdeps/posix/getaddrinfo.c: Likewise.
556
557         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
558         * wcsmbs/wmemchr.c: Add libc_hidden_def.
559         * wcsmbs/wmemset.c: Add libc_hidden_def.
560
561         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
562         (index, rindex): Define as macros for strchr, strrchr.
563
564         * string/envz.c (envz_strip): index -> strchr
565
566         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
567         * sunrpc/rpc_prot.c: Add libc_hidden_def.
568
569         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
570         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
571
572         * include/stdlib.h: Use libc_hidden_proto for wctomb.
573         * stdlib/wctomb.c: Add libc_hidden_def.
574
575         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
576         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
577         * resolv/herror.c: Likewise.
578         * inet/rcmd.c: Add libc_hidden_def.
579         * inet/ruserpass.c: Likewise.
580         * inet/getnetgrent_r.c: Likewise.
581
582         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
583         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
584         for svcerr_auth, svcerr_noprog, svcerr_progvers.
585         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
586         libc_hidden_def.
587         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
588         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
589
590         * sysdeps/posix/system.c (do_system): New function, guts broken out of
591         __libc_system.
592         (__libc_system): Call it, putting just the line == NULL test here.
593
594         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
595         variables work right.
596
597         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
598         * elf/dl-close.c (_dl_close): Likewise.
599
600         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
601         in6addr_any, in6addr_loopback.  Remove decls for
602         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
603         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
604         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
605         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
606         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
607         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
608         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
609         in6addr_loopback.
610         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
611
612         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
613         ether_aton_r.
614         * inet/ether_aton_r.c: Add libc_hidden_def.
615         * inet/ether_ntoa_r.c: Likewise.
616
617         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
618         xprt_unregister.
619         * sunrpc/svc.c: Add libc_hidden_def.
620         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
621         pmap_set, pmap_unset.
622         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
623         * sunrpc/pm_getport.c: Likewise.
624         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
625         * sunrpc/publickey.c: Add libc_hidden_def.
626
627 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
628
629         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
630         the other memset call in this function.
631
632         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
633         at correct index.  Clear BSS region now that memalign is used.
634
635 2002-08-05  Roland McGrath  <roland@redhat.com>
636
637         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
638         * sysdeps/generic/uname.c: Add libc_hidden_def.
639         * sysdeps/mach/hurd/uname.c: Likewise.
640
641 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
642
643         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
644         wcspbrk): Add libc_hidden_proto.
645         * time/strftime.c (my_strftime): Add libc_hidden_def.
646         (strftime): Remove libc_hidden_def.
647         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
648         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
649         * wcsmbs/wcsspn.c (wcsspn): Likewise.
650         * wcsmbs/wcscmp.c (wcscmp): Likewise.
651         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
652         * wcsmbs/wcscoll.c (wcscoll): Likewise.
653
654         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
655         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
656         __rpc_thread_createerr): Add libc_hidden_proto.
657         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
658         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
659         __rpc_thread_createerr): Add libc_hidden_def.
660
661         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
662         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
663         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
664         clnt_perror, clnt_sperror): Add libc_hidden_def.
665         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
666
667         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
668         libc_hidden_proto.
669         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
670         * sunrpc/des_soft.c (des_setparity): Likewise.
671
672         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
673         Add libc_hidden_proto.
674         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
675         Add libc_hidden_def.
676
677 2002-08-05  Roland McGrath  <roland@redhat.com>
678
679         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
680         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
681         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
682         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
683         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
684         old data, abandoning the original memory allocated by rtld at startup,
685         instead of calling realloc normally.
686
687 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
688
689         * po/fr.po: Update from translation team.
690
691 2002-08-04  Roland McGrath  <roland@redhat.com>
692
693         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
694         then generate a dummy module under the given name, obeying the
695         normal rules for the "caller" field.
696
697         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
698         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
699
700         * include/pthread.h: Don't declare __pthread_initialize_minimal as
701         weak here; we declare it weak or strong in the one place we use it.
702         * sysdeps/generic/libc-start.c: ... which is here.
703         Don't make the decl weak if [USE_TLS], since static programs need TLS
704         setup even when single-threaded.
705
706         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
707
708         * elf/Makefile (test-srcs): Add $(modules-names) to it.
709         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
710         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
711         all these variables.
712
713 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
714
715         * include/stdio.h: Don't define macro magic to redirect function
716         calls if _ISOMAC is defined.
717
718         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
719         ldouble asin tests.
720
721 2002-08-04  Roland McGrath  <roland@redhat.com>
722
723         * stdlib/lrand48_r.c: Add libc_hidden_def.
724
725         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
726         TCB with __libc_memalign instead of mmap.
727         (_dl_deallocate_tls): Free it with free instead of munmap.
728
729         * Makerules (cpp-srcs-left): When setting this to run
730         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
731         words.  Combine the two loops into one on the concatenated list,
732         including those as well as $(test-srcs).
733
734         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
735         since we align here with optimally minimal waste anyway.
736         (malloc): Just call that.
737
738         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
739         the right variable.
740
741         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
742         to compute memory location for l_tls_initimage.
743         * elf/rtld.c (_dl_start): Likewise.
744         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
745
746         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
747         because the .d file is generated in the non-shared case and
748         so fails to catch them otherwise.
749
750         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
751         split out of _dl_allocate_tls.
752         (_dl_allocate_tls_init): Likewise.
753         (_dl_allocate_tls): Call those.
754         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
755         * elf/rtld.c (dl_main): Call them separately instead of calling
756         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
757         is finished, so that the initializer data has been relocated before we
758         copy it into the main thread's TLS block.
759
760         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
761         loop conditions, prevented the last used module from being initialized.
762
763 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
764
765         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
766         if glob resp. globfree are not macros.
767         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
768         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
769         Add libc_hidden_ver.
770         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
771         libc_hidden_def.
772         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
773         instead of libc_hidden_weak.
774         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
775         libc_hidden_ver instead of libc_hidden_def.
776         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
777         libc_hidden_ver instead of libc_hidden_def.
778         (wcstoll, wcstoq): Remove libc_hidden_weak.
779         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
780         libc_hidden_ver.
781         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
782         libc_hidden_ver.
783         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
784         libc_hidden_ver.
785         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
786         libc_hidden_ver.
787
788 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
789
790         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
791         to access _sys_siglist.
792         * string/strsignal.c: Likewise.
793         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
794         * sysdeps/gnu/siglist.c: Likewise.
795         * sysdeps/unix/siglist.c: Likewise.
796         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
797
798         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
799
800         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
801
802         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
803         alias and use it.
804         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
805
806         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
807         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
808         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
809
810         * include/time.h: Add libc_hidden_proto for __gmtime_r.
811         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
812
813         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
814         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
815         and __gconv_get_cache respectively.
816         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
817         defined static.  Change all users.
818         (__gconv_get_cache): New function.
819         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
820         (__gconv_get_alias_db): New function.
821         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
822         (__conv_modules_db): Likewise.
823         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
824         and __gconv_get_alias_db.
825         * iconv/iconv_prog.c: Use the new functions instead of accessing the
826         variables.
827
828         * include/stdlib.h: Add prototype and libc_hidden_proto for
829         __default_morecore.
830         * sysdeps/generic/morecore.c: Include <stdlib.h>.
831
832         * malloc/obstack.c: Remove fputs macro.
833
834         * malloc/mtrace.c: Remove fopen macro.
835
836 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
837
838         * manual/debug.texi: Fix spelling to programmatically.
839         Reported by <hayastan132@hotmail.com>.
840
841 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
842
843         * include/libio.h: Add libc_hidden_proto for __uflow.
844         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
845         fgetpos to _IO_* names.
846         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
847         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
848         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
849         putwc_unlocked, vswscanf.
850         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
851         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
852         * libio/fseek.c: Likewise.
853         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
854         not fopencookie.
855         * libio/genops.c (__uflow): Add libc_hidden_def.
856         * libio/iofflush_u.c (fflush_unlocked): Likewise.
857         * libio/iofgets_u.c (fgets_unlocked): Likewise.
858         * libio/iofputs_u.c (fputs_unlocked): Likewise.
859         * libio/iofputws_u.c (fputws_unlocked): Likewise.
860         * libio/iofread_u.c (fread_unlocked): Likewise.
861         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
862         * libio/iovswscanf.c (vswscanf): Likewise.
863         * libio/putwc_u.c (putwc_unlocked): Likewise.
864         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
865         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
866         * malloc/mtrace.c: Likewise.
867
868         * sunrpc/clnt_perr.c: Remove fputs macro.
869         * sunrpc/svc_simple.c: Likewise.
870         * sunrpc/svc_tcp.c: Likewise.
871         * sunrpc/svc_udp.c: Likewise.
872         * sunrpc/xdr_rec.c: Likewise.
873         * sunrpc/xdr_ref.c: Likewise.
874
875         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
876         iconv_prog, linereader, and charmap-dir.
877         * locale/Makefile: Likewise for locale and charmap-dir.
878         * malloc/Makefile: Likewise for memusagestat.
879         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
880         * sunrpc/Makefile: Likewise for rpc_main.
881         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
882         * timezone/Makefile: Likewise for zic.
883
884         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
885
886         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
887         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
888         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
889         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
890         _dl_close.
891
892         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
893         __wunderflow.
894         * libio/genops.c (__underflow): Add libc_hidden_def.
895         * libio/wgenops.c (__wuflow): Likewise.
896         (__wunderflow): Likewise.
897
898         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
899         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
900
901         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
902         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
903
904         * include/string.h: Add libc_hidden_proto for __strverscmp.
905         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
906
907         * include/unistd.h: Add libc_hidden_proto for __sysconf.
908         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
909         * sysdeps/posix/sysconf.c: Likewise.
910         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
911         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
912
913         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
914         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
915         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
916         __iswxdigit_l, __towlower_l, __towupper_l.
917         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
918         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
919
920         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
921         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
922         * sysdeps/mach/hurd/xmknod.c: Likewise.
923         * sysdeps/unix/xmknod.c: Likewise.
924         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
925         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
926         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
927
928         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
929
930 2002-08-03  Roland McGrath  <roland@redhat.com>
931
932         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
933         setpriority.
934         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
935         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
936         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
937         * sysdeps/mach/hurd/setpriority.c: Likewise.
938         * sysdeps/mach/hurd/getpriority.c: Likewise.
939         * sysdeps/generic/setpriority.c: Likewise.
940         * sysdeps/generic/getpriority.c: Likewise.
941
942         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
943         * malloc/mcheck.c: Add libc_hidden_def.
944
945         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
946         * misc/hsearch_r.c: Add libc_hidden_def.
947
948         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
949         * posix/fnmatch.c: Add libc_hidden_weak.
950
951         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
952         execl, execle, execlp, execvp, getpid, getsid.
953         * sysdeps/generic/alarm.c: Add libc_hidden_def.
954         * sysdeps/unix/alarm.c: Likewise.
955         * posix/confstr.c: Likewise.
956         * posix/execvp.c: Likewise.
957         * posix/execlp.c: Likewise.
958         * posix/execle.c: Likewise.
959         * posix/execl.c: Likewise.
960         * sysdeps/generic/getsid.c: Likewise.
961         * sysdeps/mach/hurd/getsid.c: Likewise.
962         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
963         * sysdeps/mach/hurd/getpid.c: Likewise.
964
965         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
966         qecvt_r, qfcvt_r, lrand48_r.
967         * misc/efgcvt_r.c: Add libc_hidden_def.
968
969         * include/wordexp.h: Use libc_hidden_proto for wordfree.
970         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
971
972         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
973         * locale/nl_langinfo.c: Add libc_hidden_def.
974
975         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
976         * sysdeps/generic/glob.c: Add libc_hidden_def.
977         * sysdeps/generic/glob64.c: Likewise.
978         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
979
980         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
981
982         * elf/Makefile (CFLAGS-vismod2.c): New variable.
983
984         * locale/setlocale.c (_nl_current_names): Variable moved ...
985         * locale/localename.c (_nl_current_names): ... here, new file.
986         Make it global, with attribute_hidden.
987         * locale/localeinfo.h: Declare it.
988         * locale/Makefile (aux): Add localename.
989         * locale/localename.c (__current_locale_name): New function.
990         * include/locale.h (__current_locale_name): Declare it.
991         * intl/dcigettext.c (guess_category_value): Use that instead of
992         calling setlocale.
993
994         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
995         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
996         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
997         * locale/newlocale.c: Add alias to __ name.
998         * locale/duplocale.c: Likewise.
999         * locale/freelocale.c: Likewise.
1000         * locale/uselocale.c: New file.
1001         * locale/Makefile (routines): Add it.
1002         * locale/Versions (libc: GLIBC_2.3): New set.
1003         Add newlocale, duplocale, freelocale, uselocale.
1004         (libc: GLIBC_PRIVATE): Add __uselocale.
1005
1006         * locale/localeinfo.h [SHARED]
1007         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
1008         (_NL_CURRENT_DATA): Define using that.
1009         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
1010         (_NL_CURRENT_DEFINE): Define to empty.
1011         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
1012         conditionalized on this.
1013         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
1014         taking initializer of _nl_C_locobj.
1015         [SHARED] (_nl_global_locale): New variable, using that initializer.
1016         (_nl_C_locobj): Use new macro for initialzier.
1017         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
1018         [! SHARED] (CATEGORY_USED): New macro.
1019         [SHARED] (CATEGORY_USED, _nl_C): New macros.
1020         (setdata, setlocale): Use that macro instead of examining _nl_current.
1021         (setdata): Set the slot in _nl_global_locale.
1022         Conditionalize setting of _nl_current on [! SHARED].
1023         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
1024         declaration as an extern.
1025         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
1026
1027         * include/locale.h: Use libc_hidden_proto for setlocale.
1028         * locale/setlocale.c: Add libc_hidden_def.
1029
1030         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
1031
1032         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
1033         * misc/hsearch_r.c: Add libc_hidden_def.
1034         * misc/lsearch.c: Likewise.
1035
1036         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
1037         endttyent.
1038         * misc/getttyent.c: Add libc_hidden_def.
1039
1040         * include/mcheck.h: Use libc_hidden_proto for mcheck.
1041         * malloc/mcheck.c: Add libc_hidden_def.
1042
1043         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
1044         * include/argz.h: Use libc_hidden_proto for argz_delete.
1045         * string/argz-delete.c: Add libc_hidden_def.
1046         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
1047
1048         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
1049         HIDDEN_JUMPTARGET for _exit.
1050         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
1051         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
1052         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1053         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
1054
1055         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
1056         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
1057         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
1058         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
1059
1060         * include/stdlib.h: Use libc_hidden_proto for abort,
1061         __strtof_internal, __strtod_internal, __strtold_internal,
1062         __strtol_internal, __strtoll_internal, __strtoul_internal,
1063         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
1064         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
1065         __strtoul_l_internal, __strtoull_l_internal.
1066         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
1067         __wcstod_internal, __wcstold_internal, __wcstol_internal,
1068         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
1069         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
1070         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
1071         __wcsncasecmp_l.
1072         * sysdeps/generic/abort.c: Add libc_hidden_def.
1073         * stdlib/strtod.c: Likewise.
1074         * sysdeps/generic/strtol.c: Likewise.
1075         * sysdeps/wordsize-64/strtol.c: Likewise.
1076         * sysdeps/wordsize-64/wcstol.c: Likewise.
1077         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
1078
1079         * include/stdlib.h: Use libc_hidden_proto for qsort.
1080         * stdlib/msort.c: Add libc_hidden_def.
1081
1082         * include/utime.h: Use libc_hidden_proto for utime.
1083         * sysdeps/generic/utime.c: Add libc_hidden_def.
1084         * sysdeps/unix/utime.c: Likewise.
1085
1086         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
1087         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
1088         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1089         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
1090         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
1091
1092         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
1093         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
1094         and __libc_current_sigrtmax.
1095         * signal/sigismem.c: Add libc_hidden_def.
1096         * signal/sigfillset.c: Likewise.
1097         * signal/sigempty.c: Likewise.
1098         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
1099         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1100         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
1101         * sysdeps/posix/raise.c: Likewise.
1102         * sysdeps/generic/raise.c: Likewise.
1103
1104 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1105
1106         * include/string.h: Use libc_hidden_proto for __stpcpy.
1107         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
1108         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
1109         * sysdeps/generic/stpcpy.c: Likewise.
1110         * sysdeps/i386/stpcpy.S: Likewise.
1111         * sysdeps/i386/i586/stpcpy.S: Likewise.
1112         * sysdeps/powerpc/stpcpy.S: Likewise.
1113         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1114         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1115
1116         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
1117         __strncasecmp_l, __strdup, __strndup, __strerror_r.
1118         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
1119         libc_hidden_def.
1120         * string/strdup.c (__strdup): Likewise.
1121         * string/strndup.c (__strndup): Likewise.
1122         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
1123         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
1124
1125 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1126
1127         * include/libio.h: New file.
1128         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
1129         * libio/iolibio.h: #include <libio.h>, not "libio.h".
1130         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
1131         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
1132         * sysdeps/unix/common/syscalls.list: Likewise.
1133         * sysdeps/unix/inet/syscalls.list: Likewise.
1134         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
1135         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1136         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1137         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1138         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1139         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1140         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1141         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1142         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1143         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
1144         * sysdeps/unix/syscalls.list: Likewise.
1145
1146 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1147             Ulrich Drepper  <drepper@redhat.com>
1148
1149         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
1150         the arguments is big enough to cause an overflow.
1151
1152 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1153
1154         * assert/assert.c: Use hidden_def not INTDEF.
1155
1156 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1157
1158         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
1159         not defined.
1160
1161 2002-08-03  Roland McGrath  <roland@redhat.com>
1162
1163         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
1164         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
1165         verr, verrx.
1166         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
1167         * misc/syslog.c: Add libc_hidden_def.
1168         * misc/err.c: Likewise.
1169         * stdlib/exit.c: Likewise.
1170         * stdlib/bsearch.c: Likewise.
1171         * sysdeps/generic/getenv.c: Likewise.
1172
1173         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
1174
1175         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
1176         libc_hidden_weak for every system call symbol defined.
1177
1178         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
1179         timelocal, localtime, strftime.
1180         * time/asctime.c: Add libc_hidden_def.
1181         * time/mktime.c: Likewise.
1182         * time/localtime.c: Likewise.
1183         * time/strftime.c: Likewise.
1184         * time/strptime.c: Likewise.
1185         * sysdeps/generic/time.c: Likewise.
1186         * sysdeps/unix/time.c: Likewise.
1187         * sysdeps/unix/sysv/i386/time.S: Likewise.
1188         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1189
1190         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
1191         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
1192         * resolv/inet_ntop.c: Likewise.
1193         * resolv/inet_pton.c: Likewise.
1194         * inet/inet_mkadr.c: Add libc_hidden_def.
1195         * inet/inet_netof.c: Likewise.
1196         * resolv/inet_addr.c: Likewise.
1197
1198         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
1199         clauses from conditionals for now.  Will have to be fixed later
1200         for older compilers.
1201
1202         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
1203
1204 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1205
1206         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
1207         broken alias attribute handling.
1208         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
1209
1210 2002-08-02  Roland McGrath  <roland@frob.com>
1211
1212         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
1213         since it sets the variables we use in a -D switch.
1214
1215 2002-08-02  Roland McGrath  <roland@redhat.com>
1216
1217         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
1218         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
1219         matches long int, not int.
1220
1221         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
1222         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
1223         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1224         * wctype/wctrans.c (wctrans): Likewise.
1225         * wctype/wctype.c (__wctype): Likewise.
1226         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
1227
1228 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1229
1230         * assert/assert.c (__assert_fail): Fix typo in comment.
1231
1232         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
1233         * sunrpc/rpc_thread.c: Define it without static.
1234         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
1235
1236 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1237
1238         * assert/assert.c (__assert_fail): Remove undef.
1239         Replace INTDEF with libc_hidden_def.
1240         * assert/__assert.c (__assert): Remove INTUSE.
1241         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
1242         libc_hidden_weak.
1243         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
1244         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
1245         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
1246         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
1247         libm_hiden_ver): Define.
1248         * include/assert.h (__assert_fail_internal): Remove.
1249         (__assert_fail): Add prototype.  Add hidden_proto.
1250         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
1251         libc_hidden_proto.
1252         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
1253         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
1254         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
1255         Add libc_hidden_proto.
1256         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
1257         __fcntl): Add libc_hidden_proto.  Remove macros.
1258         (__open_internal, __fcntl_internal): Remove.
1259         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
1260         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
1261         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
1262         libc_hiden_proto.
1263         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
1264         libc_hidden_def.
1265         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
1266         Add libc_hidden_def.
1267         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
1268         * sysdeps/generic/open.c (__open): Remove undef.
1269         Add libc_hidden_def.  Remove INTDEF.
1270         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
1271         Add libc_hidden_def.
1272         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
1273         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
1274         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
1275         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1276         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1277         (__libc_fcntl): Add libc_hidden_def.
1278         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
1279         (__open): Remove INTDEF2.  Add libc_hidden_weak.
1280         (__libc_open): Add libc_hidden_def.
1281         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
1282         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
1283         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1284         Add libc_hidden_def.
1285         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
1286         Add libc_hidden_def.
1287         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
1288         undef.
1289         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1290         (__libc_fcntl): Add libc_hidden_def.
1291         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
1292         __getpgid_internal, __chown_internal): Remove.
1293         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
1294         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
1295         __GI___chown): Add.
1296         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
1297         __getpid_internal, __open_internal, __write_internal): Remove.
1298         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
1299         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
1300         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
1301         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
1302         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
1303         Replace INTDEF with libc_hidden_def.
1304         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1305         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
1306         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
1307         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
1308         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
1309         Add libc_hidden_proto.
1310         * include/sys/poll.h (__poll): Add libc_hidden_proto.
1311         * include/sys/select.h (__select): Likewise.
1312         * include/sys/socket.h (__send): Likewise.
1313         * include/sys/statfs.h (__statfs): Likewise.
1314         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
1315         __getpid, __getpgid, __setpgid, __close, __read, __write,
1316         __getpagesize, __sbrk): Likewise.
1317         (__chown_internal, __dup2_internal, __getpid_internal,
1318         __getpgid_internal, __close_internal, __write_internal,
1319         __getpagesize_internal): Remove.
1320         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
1321         Remove macros.
1322         * include/printf.h (__printf_fp): Add libc_hidden_proto.
1323         * include/sched.h (__sched_setscheduler): Likewise.
1324         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
1325         * include/stdlib.h (__secure_getenv): Likewise.
1326         * include/signal.h (__sigaction, __sigsuspend): Likewise.
1327         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
1328         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
1329         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
1330         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
1331         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
1332         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
1333         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
1334         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
1335         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
1336         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
1337         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
1338         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
1339         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
1340         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
1341         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
1342         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1343         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1344         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1345         * libio/genops.c (__overflow): Add libc_hidden_def.
1346         * libio/iovdprintf.c: Remove libio.h include.
1347         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
1348         libc_hidden_weak): Define to nothing if not defined.
1349         (__overflow, __woverflow): Add libc_hidden_proto.
1350         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
1351         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
1352         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1353         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
1354         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1355         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
1356         and libc_hidden_def.
1357         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
1358         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
1359         (__getpgid): Add libc_hidden_proto.
1360         (__bsd_getpgrp): Remove INTUSE.
1361         * resolv/res_init.c (__res_ninit, __res_randomid): Add
1362         libc_hidden_def.
1363         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
1364         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
1365         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
1366         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
1367         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
1368         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
1369         __rpc_thread_createerr): Add libc_hidden_def.
1370         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
1371         libc_hidden_def.
1372         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
1373         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
1374         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
1375         * sysdeps/generic/chown.c (__chown): Likewise.
1376         * sysdeps/generic/close.c (__close): Likewise.
1377         * sysdeps/generic/dup2.c (__dup2): Likewise.
1378         * sysdeps/generic/pipe.c (__pipe): Likewise.
1379         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
1380         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
1381         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
1382         * sysdeps/generic/read.c (__libc_read): Likewise.
1383         (__read): Add libc_hidden_weak.
1384         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
1385         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
1386         * sysdeps/generic/select.c (__select): Likewise.
1387         * sysdeps/generic/send.c (__send): Likewise.
1388         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
1389         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
1390         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
1391         * sysdeps/generic/statfs.c (__statfs): Likewise.
1392         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
1393         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
1394         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
1395         Remove undef and INTDEF.
1396         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
1397         * sysdeps/generic/getpid.c (__getpid): Likewise.
1398         * sysdeps/generic/write.c (__libc_write): Likewise.
1399         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1400         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
1401         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1402         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
1403         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
1404         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
1405         Remove undef and INTDEF.
1406         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
1407         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
1408         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1409         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1410         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
1411         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1412         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
1413         (__pipe): Add libc_hidden_def.
1414         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
1415         libc_hidden_weak.
1416         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
1417         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
1418         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
1419         (__read): Add libc_hidden_weak.
1420         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
1421         (__libc_pwrite64): Add libc_hidden_def.
1422         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1423         * sysdeps/mach/hurd/select.c (__select): Likewise.
1424         * sysdeps/mach/hurd/send.c (__send): Likewise.
1425         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
1426         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1427         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
1428         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1429         * sysdeps/posix/dup2.c: Likewise.
1430         Remove undef and INTDEF.
1431         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
1432         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
1433         (__pwrite64): Add libc_hidden_weak.
1434         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
1435         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
1436         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
1437         * sysdeps/standalone/close.c (__close): Likewise.
1438         * sysdeps/standalone/write.c (__libc_write): Likewise.
1439         (__write): Add libc_hidden_weak.
1440         * sysdeps/standalone/read.c (__read): Likewise.
1441         (__libc_read): Add libc_hidden_def.
1442         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
1443         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
1444         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
1445         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
1446         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
1447         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
1448         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
1449         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
1450         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
1451         __GI___sigaction): Add.
1452         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1453         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1454         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1455         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1456         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1457         __GI___setpgid): Add.
1458         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1459         Remove undef and INTDEF.
1460         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1461         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1462         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1463         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1464         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1465         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1466         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1467         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1468         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1469         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1470         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1471         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1472         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1473         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1474         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1475         __GI___statfs, __GI___send): Add.
1476         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1477         libc_hidden_ver resp. libc_hidden_def.
1478         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1479         libc_hidden_def.
1480         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1481         Likewise.  Remove undef and INTDEF.
1482         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1483         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1484         __GI___statfs, __GI___send): Add.
1485         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1486         libc_hidden_def.
1487         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1488         Likewise.
1489         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1490         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1491         libc_hidden_ver resp. libc_hidden_def.
1492         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1493         __GI___send): Add.
1494         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1495         Add libc_hidden_weak.
1496         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1497         Add libc_hidden_def.
1498         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1499         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1500         libc_hidden_weak.
1501         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1502         resp. libc_hidden_def.
1503         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1504         libc_hidden_weak.
1505         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
1506         INTDEF.
1507         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1508         Likewise.  Remove undef.
1509         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1510         libc_hidden_weak.
1511         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1512         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1513         libc_hidden_weak.
1514         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1515         libc_hidden_def.
1516         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
1517         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1518         Likewise.  Remove undef and INTDEF.
1519         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
1520         libc_hidden_def.
1521         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
1522         libc_hidden_weak.
1523         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
1524         libc_hidden_def.
1525         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1526         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
1527         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
1528         libc_hidden_weak.
1529         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
1530         Add libc_hidden_def.
1531         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
1532         __GI___statfs): Add.
1533         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
1534         libc_hidden_weak.
1535         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
1536         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
1537         Remove undef and INTDEF.
1538         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
1539         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
1540         libc_hidden_def.
1541         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
1542         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
1543         libc_hidden_weak.
1544         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
1545         libc_hidden_def.
1546         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
1547         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
1548         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
1549         Add.
1550         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
1551         libc_hidden_def.  Remove undef and INTDEF.
1552         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
1553         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
1554         libc_hidden_def.
1555         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
1556         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
1557         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
1558         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
1559         Remove undef and INTDEF.
1560         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
1561         broken visibility attribute handling.
1562         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
1563
1564 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1565
1566         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
1567         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
1568
1569         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
1570         previous patch.
1571
1572 2002-06-29  Todd Fries  <todd@openbsd.org>
1573
1574         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
1575
1576 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1577
1578         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
1579
1580 2002-07-30  Roland McGrath  <roland@redhat.com>
1581
1582         * resolv/resolv.h (_res): Define macro unconditionally.
1583         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
1584         * include/resolv.h: ... here.
1585         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
1586         as a __thread variable.
1587         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
1588         a __thread variable instead of a global.
1589         * resolv/res_data.c [_LIBC]: Don't #undef _res.
1590
1591         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
1592         time we test it.
1593
1594         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
1595
1596         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
1597         decls of memset and memcpy.
1598
1599         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
1600         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
1601
1602         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
1603
1604         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
1605         (__libc_tsd_define): Define using __thread.
1606
1607         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
1608         (__rpc_thread_variables): Use __libc_tsd_get.
1609         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
1610         __rpc_thread_variables, which might allocate what we're about to free.
1611
1612         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
1613         thread-local variable.
1614         * resolv/netdb.h (h_errno): Define macro unconditionally.
1615         [_LIBC] (__set_h_errno): Macro moved to ...
1616         * include/netdb.h: ... here.
1617         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1618         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1619         [! _LIBC_REENTRANT]: #undef h_errno here.
1620
1621         * include/errno.h: Protect from multiple inclusion.
1622
1623         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1624         before defining them, since Linux's <linux/posix_types.h> might have
1625         defined them.
1626
1627 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1628
1629         * malloc/malloc.c (public_cALLOc): Check for overflow on
1630         multiplication.
1631         * sunrpc/xdr_array.c (xdr_array): Likewise.
1632         * sunrpc/rpc/types.h (mem_free): Add comment.
1633         Patch by Solar Designer <solar@openwall.com>.
1634
1635 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1636
1637         * sysdeps/unix/sysv/linux/kernel-features.h
1638         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
1639
1640 2002-08-01  Roland McGrath  <roland@redhat.com>
1641
1642         * libio/fileops.c (_IO_file_sync_mmap): New function.
1643         (_IO_file_jumps_mmap): Use it.
1644         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
1645         repeat the stat check and resize the mapped buffer as necessary.
1646
1647 2002-07-31  Roland McGrath  <roland@redhat.com>
1648
1649         * libio/fileops.c (decide_maybe_mmap): New static function.
1650         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
1651         mmap the file contents.  Then switch the jump tables to the mmap
1652         tables if it worked, or the vanilla file tables if not.
1653         (_IO_file_underflow_maybe_mmap): New function.
1654         (_IO_file_seekoff_maybe_mmap): New function.
1655         (_IO_file_xsgetn_maybe_mmap): New function.
1656         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
1657         * libio/libioP.h: Declare those.
1658         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
1659         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
1660         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
1661         If the stream is read-only, set its jump tables to those new ones.
1662         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
1663         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
1664         We need the tables set before _IO_file_attach.
1665
1666         * libio/tst-mmap-eofsync.c: New file.
1667         * libio/tst-mmap-fflushsync.c: New file.
1668         * libio/bug-mmap-fflush.c: New file.
1669         * libio/tst-mmap2-eofsync.c: New file.
1670         * libio/Makefile (tests): Add them.
1671
1672         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
1673         _IO_file_underflow_mmap fails, it already set the appropriate bit.
1674
1675 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
1676
1677         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
1678         Declarations moved to <bits/sys_errlist.h>.  Include that file.
1679         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
1680         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
1681         declare sys_errlist and sys_nerr.
1682         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
1683         provide declarations.
1684
1685 2002-07-31  Roland McGrath  <roland@redhat.com>
1686
1687         * elf/rtld.c (dl_main): Fix typo in error message.
1688
1689 2002-07-31  Roland McGrath  <roland@frob.com>
1690
1691         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
1692         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
1693         sysdeps/mach/hurd/dl-sysdep.c change.
1694
1695 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
1696
1697         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
1698         -r`/build/include for kernel headers.
1699
1700         * po/fi.po: New file.
1701
1702 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
1703
1704         * configure.in (static_nss): Set to `yes' if --disable-shared.
1705
1706 2002-07-23  Bruno Haible  <bruno@clisp.org>
1707
1708         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
1709         is set.
1710
1711 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1712
1713         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
1714         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
1715         arguments.
1716
1717 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1718
1719         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
1720         alias.
1721
1722 2002-07-21  Bruno Haible  <bruno@clisp.org>
1723
1724         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
1725         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
1726         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
1727         trans_sysdep_tab_offset.
1728         (struct sysdep_segment): New type.
1729         (struct sysdep_string): New type.
1730         (SEGMENTS_END): New macro.
1731         * intl/gettextP.h (struct sysdep_string_desc): New type.
1732         (struct loaded_domain): New fields malloced, n_sysdep_strings,
1733         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
1734         orig_tab, trans_tab, hash_tab to const pointers because they point
1735         into read-only memory.
1736         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
1737         (PRI*): Define fallback values.
1738         (get_sysdep_segment_value): New function.
1739         (_nl_load_domain): Distinguish major and minor revision parts. Add
1740         support for minor revision 1 with system dependent strings.
1741         (_nl_unload_domain): Also free the 'malloced' field.
1742         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
1743         now done in loadmsgcat.c. Add support for system dependent strings.
1744
1745 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1746
1747         * posix/bug-regex7.c: New file.
1748         * posix/bug-regex8.c: New file.
1749         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
1750
1751 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1752
1753         * posix/bug-regex4.c (main): Fix typos.
1754         * posix/bug-regex6.c (main): Likewise.
1755
1756 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
1757
1758         * posix/bug-regex6.c (main): Fix warnings.
1759
1760         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
1761
1762         * iconv/iconv_prog.c (main): Improve error message for the cases
1763         where -t and/or -f parameter are missing.
1764
1765 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
1766
1767         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
1768         (re_search): Likewise.
1769         (re_match_2): Likewise.
1770         (re_search_2): Likewise.
1771         (re_search_stub): New function.
1772         (re_search_2_stub): New function.
1773         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
1774
1775 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1776
1777         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
1778         (re_string_eoi): Use STOP instead of LEN.
1779         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
1780         (re_string_construct): Likewise.
1781         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
1782         * posix/regexec.c (re_search_internal): Add a new argument STOP
1783         so that it can handle the argument STOP of re_search_2 and re_match_2
1784         correctly.
1785         (regexec): Adapt to new I/F of re_search_internal.
1786         (re_search_stub): Likewise.
1787
1788 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
1789
1790         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
1791
1792         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
1793
1794         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
1795         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
1796         of __divdi3.
1797
1798         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
1799         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
1800         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
1801         alias for adjtimex syscall.
1802
1803         * elf/dl-minimal.c: Define __assert_fail_internal.
1804         * assert/assert.c: Likewise.
1805         * include/assert.h: Define __assert_file macro if !SHARED and not
1806         NOT_IN_libc.
1807
1808         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
1809         programs.
1810         * locale/Makefile: Likewise.
1811         * nscd/Makefile: Likewise.
1812         * catgets/Makefile: Likewise.
1813
1814 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1815
1816         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
1817         compute current position.
1818
1819         * stdio-common/tst-fseek.c (main): Improve error messages.
1820
1821         * libio/tst-freopen.c (main): Remove unused variable.
1822
1823         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
1824         succesful seek call.  Simplify error checking.
1825
1826 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1827
1828         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
1829         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1830
1831 2002-07-19  Roland McGrath  <roland@frob.com>
1832
1833         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
1834         __libc_enable_secure is set.
1835
1836 2002-07-24  Roland McGrath  <roland@frob.com>
1837
1838         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
1839         This implementation supports only IPv4.
1840         * inet/ifaddrs.h: New file.
1841         * sysdeps/generic/ifaddrs.c: New file.
1842         * sysdeps/gnu/ifaddrs.c: New file.
1843         * inet/test-ifaddrs.c: New file.
1844         * inet/Makefile (routines): Add ifaddrs.
1845         (headers): Add ifaddrs.h here.
1846         (tests): Add test-ifaddrs.
1847         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
1848
1849         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
1850         socket call to get an AF_INET socket, instead of using __opensock.
1851         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
1852
1853         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
1854         if not -1 use it instead of calling __opensock.
1855         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
1856         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
1857         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
1858
1859         * sysdeps/mach/hurd/ifreq.h: New file.
1860         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
1861         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
1862         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
1863
1864         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
1865         which gets moved around.  Calculate size of mmap'd buffer instead.
1866
1867 2002-07-24  Philip Blundell  <philb@gnu.org>
1868
1869         * sysdeps/unix/arm/brk.S: Improve schedule.
1870         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
1871         efficient instruction.
1872         (__socket): Optimize return sequence.
1873
1874 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1875
1876         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
1877         sockets on old kernels.
1878
1879 2002-07-22  Philip Blundell  <philb@gnu.org>
1880
1881         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
1882         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1883         alias.
1884
1885 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1886
1887         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
1888         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
1889
1890         * locale/programs/locarchive.c (add_locale_to_archive): Correct
1891         test to detect duplicate locales.
1892
1893         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
1894         position would be before beginning of file.
1895         (_IO_file_seekoff_mmap): Likewise.
1896         * libio/Makefile (tests): Add bug-fseek.
1897         * libio/bug-fseek.c: New file.
1898
1899         * intl/explodename.c: Remove support for CEN-style locale variables.
1900         It was never used and shouldn't be since it's not portable.
1901         * intl/finddomain.c: Likewise.
1902         * intl/l10nflist.c: Likewise.
1903         * intl/loadinfo.h: Likewise.
1904         * locale/findlocale.c: Likewise.
1905
1906 2002-07-24  Roland McGrath  <roland@frob.com>
1907
1908         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
1909         position, calculate it to take into account an active pushback buffer.
1910
1911         * libio/Makefile (tests): Add bug-ungetc.
1912         * libio/bug-ungetc.c: New file.
1913
1914 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
1915
1916         * sysdeps/generic/libc-tls.c: New file.
1917         * csu/Makefile (routines): Add libc-tls.
1918         (static-only-routines): Add libc-tls.
1919         * elf/dl-support.c (_dl_phdr): New variable.
1920         (_dl_phnum): New variable.
1921         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
1922         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
1923         for !SHARED.  First look through auxiliary vector.  If TLS always
1924         call __pthread_initialize_minimal.
1925
1926         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
1927         in mmap call is never zero.
1928
1929 2002-07-23  Andreas Jaeger  <aj@suse.de>
1930
1931         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
1932         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1933
1934 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
1935
1936         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
1937         creation and removal of the temp file.
1938
1939         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
1940         file creation.
1941         * test-skeleton.c (create_temp_file): New function.
1942
1943 2002-07-22  Andreas Jaeger  <aj@suse.de>
1944
1945         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
1946         local label.
1947
1948 2002-07-21  Roland McGrath  <roland@frob.com>
1949
1950         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
1951         put -I../include before -I../stdlib so we get the right errno.h et al.
1952         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
1953         (CFLAGS-wcstof.c): Likewise.
1954         (CFLAGS-wcstold.c): Likewise.
1955         (CFLAGS-wcstod_l.c): Likewise.
1956         (CFLAGS-wcstof_l.c): Likewise.
1957         (CFLAGS-wcstold_l.c): Likewise.
1958
1959 2002-07-19  Roland McGrath  <roland@frob.com>
1960
1961         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
1962
1963 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
1964
1965         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
1966         __ASSUME_AT_XID is defined.
1967         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
1968         for 2.4.1 and up.
1969         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
1970         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
1971
1972         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
1973         (CFLAGS-wcstof.c): Likewise.
1974         (CFLAGS-wcstold.c): Likewise.
1975         (CFLAGS-wcstod_l.c): Likewise.
1976         (CFLAGS-wcstof_l.c): Likewise.
1977         (CFLAGS-wcstold_l.c): Likewise.
1978
1979 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
1980
1981         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
1982         __priority_which_t): Always typedef to int for C++.
1983
1984 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
1985
1986         * configure.in: Add test for __thread support in compiler.
1987         * config.h.in: Add HAVE___THREAD.
1988         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
1989         * include/sys/errno.h: Moved to...
1990         * stdlib/sys/errno.h: ...here.  New file.
1991         * stdlib/errno.h: New file.  Moved from...
1992         * include/errno.h: ...here.  Changed into an internal header defining
1993         libc-local things like __set_errno.
1994         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
1995         bits/errno.h.
1996         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
1997         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
1998         either.
1999         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
2000         from...
2001         (_dl_start_final): ...here.  Add code to initialize tls elements from
2002         bootstrap_map.
2003         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
2004         if USE_TLS && HAVE___THREAD.
2005         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
2006         * sysdeps/mach/hurd/bits/errno.h: Likewise.
2007         * sysdeps/standalone/arm/bits/errno.h: Likewise.
2008         * sysdeps/standalone/bits/errno.h: Likewise.
2009         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
2010         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
2011         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
2012         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
2013         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
2014         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
2015         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
2016         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
2017         use GL(dl_rtld_map), use map parameter.
2018         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2019         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
2020         USE_TLS && HAVE___THREAD.
2021         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
2022         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
2023         TLS code sequence.
2024         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2025
2026         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
2027         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
2028         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2029         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2030         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2031         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2032
2033 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
2034
2035         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
2036         MS_INVALIDATE values.
2037
2038 2002-07-17  Andreas Schwab  <schwab@suse.de>
2039             Ulrich Drepper  <drepper@redhat.com>
2040
2041         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
2042         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2043         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2044         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2045
2046 2002-07-01  H.J. Lu  <hjl@gnu.org>
2047
2048         * elf/circleload1.c (load_dso): Call "circlemod1" and check
2049         return value.
2050
2051         * elf/circlemod1.c (circlemod1): Return int.
2052         * elf/circlemod2.c (circlemod2): Likewise.
2053         * elf/circlemod2a.c (circlemod2): Likewise.
2054         * elf/circlemod3.c (circlemod3): Likewise.
2055         (circlemod3a): A new function.
2056
2057 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
2058
2059         * catgets/tst-catgets.c (main): Don't expect results for
2060         untranslated messages.
2061
2062         * glibcbug.in: Fix little typo.  Remove STDIO.
2063
2064         * config.h.in: Fail if __FAST_MATH__ is defined.
2065         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
2066         (CPPFLAGS-test-idouble.c): Likewise.
2067         (CPPFLAGS-test-ildouble.c): Likewise.
2068
2069 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2070
2071         * intl/tst-gettext.sh: Pass -f option to msgfmt.
2072         * intl/tst-gettext.c: Correctly handle untranslated messages in
2073         positive tests.
2074
2075         * po/de.po: Update from translation team.
2076
2077 2002-07-02  H.J. Lu  <hjl@gnu.org>
2078
2079         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
2080         use ll/sc.
2081         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2082
2083         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
2084         to 2.4.0 for mips.
2085
2086 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2087
2088         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
2089         TLS fail if USE_TLS is not defined.
2090
2091         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
2092         and adjust state for seek position.  [PR libc/4070]
2093         * libio/Makefile (tests): Add bug-rewind.
2094         * libio/bug-rewind.c: New file.
2095
2096 2002-07-12  Philip Blundell  <philb@gnu.org>
2097
2098         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
2099         (__backtrace): Use it.
2100         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
2101
2102 2002-07-12  Philip Blundell  <philb@gnu.org>
2103
2104         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
2105         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2106         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2107         (elf_machine_rela): Remove unused variable.
2108
2109         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
2110         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
2111         define.
2112
2113 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
2114
2115         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
2116
2117 2002-07-14  Andreas Jaeger  <aj@suse.de>
2118
2119         * sysdeps/x86_64/bits/link.h: Add biarch support.
2120
2121 2002-07-13  Andreas Jaeger  <aj@suse.de>
2122
2123         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
2124         Use correct indices.
2125         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
2126
2127 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2128
2129         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
2130         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
2131         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
2132         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
2133         * sysdeps/s390/s390-32/bits/link.h: Remove.
2134         * sysdeps/s390/s390-64/bits/link.h: Remove.
2135         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
2136         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
2137         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
2138         * sysdeps/s390/bits/wordsize.h: New file.
2139         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
2140         elfclass.h.
2141         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
2142         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
2143         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
2144         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
2145         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
2146         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
2147         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
2148         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
2149         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
2150         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
2151         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
2152         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
2153         resource.h.
2154         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
2155         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
2156         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
2157         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
2158         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
2159         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
2160         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
2161         sigaction.h.
2162         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
2163         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
2164         siginfo.h.
2165         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
2166         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
2167         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
2168         socket.h.
2169         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
2170         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
2171         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
2172         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
2173         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
2174         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
2175         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
2176         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
2177         procfs.h.
2178         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
2179         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
2180         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
2181         ucontext.h.
2182         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
2183         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
2184
2185 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2186
2187         * Versions.def (libc): Add GLIBC_2.3.
2188         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
2189         * stdlib/canonicalize.c: Add compatibility version for realpath
2190         and make new code available in GLIBC_2.3.
2191
2192 2002-07-06  Bruno Haible  <bruno@clisp.org>
2193
2194         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
2195
2196 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2197
2198         * resolv/res_hconf.c (_res_hconf_init): Move code into new
2199         function do_init.  Use __libc_once.
2200         (do_init): New function.
2201
2202         * iconvdata/iso8859-11.h: Removed.
2203         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
2204         (distribute): Remove iso8859-11.h.
2205         * iconvdata/tst-tables.sh: Add ISO-8859-11.
2206
2207         * stdio-common/vfscanf.c (inchar): Restore errno from previous
2208         underflow operation if c == (W)EOF.
2209
2210 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2211
2212         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
2213         non-zero, adjust exponent.
2214         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
2215         Remove NO_LONG_DOUBLE aliases.
2216         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
2217         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
2218         (__log1pl): Raise divide by zero and invalid exceptions when needed.
2219         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
2220         1**y and -1**+-Inf.
2221         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
2222         Fix BITS_PER_MP_LIMB 32 extraction.
2223         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
2224         exceptions for qNaNs.
2225         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2226         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
2227         Raise exceptions when needed.  Don't recurse unnecessarily.
2228         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
2229         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
2230         exceptions for qNaNs.
2231         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
2232         to fix *quo return value sign.
2233         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
2234         case -Inf argument.
2235         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
2236
2237 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2238
2239         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
2240         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
2241         -DNDEBUG.
2242
2243 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2244
2245         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
2246         the result.
2247
2248         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
2249         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
2250
2251         * Versions.def (libthread_db): Add GLIBC_2.3.
2252
2253 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
2254
2255         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
2256         new stream if possible.
2257         * libio/freopen64.c (freopen64): Likewise.
2258         * libio/Makefile (tests): Add tst-freopen.
2259         * libio/tst-freopen.c: New file.
2260
2261 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2262
2263         * libio/stdio.h (obstack_printf): Add format attribute.
2264         (obstack_vprintf): Likewise.
2265
2266 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2267
2268         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
2269         resp. 16 bytes on 32-bit resp. 64-bit platforms.
2270         (re_charset_t, re_string_t): Reorder structure members for 64-bit
2271         architectures.
2272
2273 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2274
2275         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
2276         (init_dfa): ...here.
2277
2278 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2279
2280         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
2281         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
2282         nodes in parse trees.
2283         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
2284         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
2285         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
2286         nodes which can epsilon transit.
2287         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
2288         to IS_EPSILON_NODE macro.
2289         * posix/regexec.c (update_regs): New function to update registers
2290         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
2291         (proceed_next_node): Use the entities of the nodes to determine
2292         whether the node can transit to.
2293         (set_regs): Use update_regs function to update registers.
2294
2295 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2296
2297         * posix/bug-regex4.c (main): Remove duplicate setlocale.
2298         * posix/bug-regex6.c: New file.
2299         * posix/Makefile (tests): Add bug-regex6.
2300         (bug-regex6-ENV): Set LOCPATH.
2301
2302 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2303
2304         * Versions.def [libpthread]: Add GLIBC_2.2.6.
2305         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
2306
2307 2002-07-06  Bruno Haible  <bruno@clisp.org>
2308
2309         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
2310
2311 2002-07-06  Bruno Haible  <bruno@clisp.org>
2312
2313         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
2314         declarations.
2315
2316         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
2317
2318         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
2319
2320         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
2321         not _UTSNAME_H.
2322         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
2323
2324         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
2325         * sysdeps/generic/bits/ustat.h: Likewise.
2326
2327         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
2328
2329 2002-07-08  Andreas Jaeger  <aj@suse.de>
2330
2331         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
2332
2333 2002-07-08  Andreas Jaeger  <aj@suse.de>
2334
2335         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
2336
2337 2002-07-06  Andreas Jaeger  <aj@suse.de>
2338
2339         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
2340         * sysdeps/x86_64/fpu/s_copysign.S: New.
2341         * sysdeps/x86_64/fpu/s_copysignf.S: New.
2342         * sysdeps/x86_64/fpu/s_copysignl.S: New.
2343         * sysdeps/x86_64/fpu/s_finitel.S: New.
2344         * sysdeps/x86_64/fpu/s_fmax.S: New.
2345         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
2346         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
2347         * sysdeps/x86_64/fpu/s_fmin.S: New.
2348         * sysdeps/x86_64/fpu/s_fminf.S: New.
2349         * sysdeps/x86_64/fpu/s_fminl.S: New.
2350
2351 2002-06-05  Brian Youmans <3diff@gnu.org>
2352
2353         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
2354         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2355         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2356         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2357         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2358         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2359         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2360         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2361         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2362         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2363         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2364         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2365         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2366         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2367         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2368         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2369         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2370         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2371         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2372         * sysdeps/ia64/fpu/e_log.S: Likewise.
2373         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2374         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2375         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2376         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2377         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2378         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2379         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2380         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2381         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2382         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2383         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2384         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2385         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2386         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2387         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2388         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2389         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
2390         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2391         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
2392         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
2393         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2394         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2395         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2396         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2397         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2398         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2399         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2400         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2401         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2402         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2403         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2404         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2405         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2406         * sysdeps/ia64/fpu/s_modf.S: Likewise.
2407         * sysdeps/ia64/fpu/s_modff.S: Likewise.
2408         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2409         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2410         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2411         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2412         * sysdeps/ia64/fpu/s_rint.S: Likewise.
2413         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2414         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2415         * sysdeps/ia64/fpu/s_round.S: Likewise.
2416         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2417         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2418         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2419         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2420         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2421         * sysdeps/ia64/fpu/s_significand.S: Likewise.
2422         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2423         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2424         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2425         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2426         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2427         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2428         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2429         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2430         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
2431         reflect IBM donation of math library to FSF
2432         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2433         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2434         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2435         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2436         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2437         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2438         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2439         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2440         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2441         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2442         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2443         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2444         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2445         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2446         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2447         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2448         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2449         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2450         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2451         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2452         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2453         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2454         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2455         * sysdeps/vax/__longjmp.c: Likewise.
2456         * sysdeps/vax/setjmp.c: Likewise.
2457         * libio/filedoalloc.c: Fixed BSD copying permission notice to
2458         remove advertising clause
2459         * sysdeps/vax/htonl.s: Likewise.
2460         * sysdeps/vax/htons.s: Likewise.
2461         * libio/wfiledoalloc.c: Likewise.
2462         * stdlib/random.c: Likewise.
2463         * stdlib/random_r.c: Likewise.
2464         * sysdeps/mach/sys/reboot.h: Likewise.
2465         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2466         * sysdeps/posix/getaddrinfo.c: Likewise.
2467         * sunrpc/des_impl.c: Updated license permission notice to Lesser
2468         GPL and corrected pointer to point to the correct license.
2469
2470 2002-07-04  Andreas Jaeger  <aj@suse.de>
2471
2472         * scripts/config.guess: New upstream version.
2473         * scripts/config.sub: Likewise.
2474
2475 2002-07-02  Andreas Schwab  <schwab@suse.de>
2476
2477         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2478         in parallel to bumping up the buffer pointer.
2479
2480 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2481
2482         * math/libm-test.inc (acos_test): Add missing L suffix for
2483         expected result.
2484         (cpow_test): Likewise.
2485         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2486         error for acos (0.0625).
2487
2488 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2489
2490         * locale/iso-639.def: Add entry for Ganda.
2491         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2492         definition.
2493         (address_finish): Handle entries with two letter ISO 639 code.
2494
2495         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2496         directory if it existed before.
2497         * iconv/iconvconfig.c: Implement --prefix option.
2498
2499         * math/libm-test.inc (cexp_test): Add missing L suffix for
2500         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
2501         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2502         1.25 i).
2503
2504 2002-05-29  H.J. Lu  <hjl@gnu.org>
2505
2506         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2507         is turned on.
2508
2509 2002-05-28  H.J. Lu  <hjl@gnu.org>
2510
2511         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2512         are not dlopened on the dependency list of a dlopened object.
2513
2514 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2515
2516         * elf/dl-lookup.c (add_dependency): It is not necessary to add
2517         dependencies if they are created between objects which are created
2518         while processing RTLD_NOW for objects loaded as part of the same
2519         dlopen call.
2520
2521 2002-06-14  H.J. Lu  <hjl@gnu.org>
2522
2523         * elf/Makefile (tests): Add circleload1.
2524         (modules-names): Add circlemod1, circlemod2, circlemod3,
2525         circlemod1a, circlemod2a and circlemod3a.
2526         ($(objpfx)circleload1): New target.
2527         ($(objpfx)circleload1.out): Likewise.
2528         ($(objpfx)circlemod1.so): Likewise.
2529         ($(objpfx)circlemod2.so): Likewise.
2530         ($(objpfx)circlemod1a.so): Likewise.
2531         ($(objpfx)circlemod2a.so): Likewise.
2532         * elf/circleload1.c: New file.
2533         * elf/circlemod1.c: New file.
2534         * elf/circlemod1a.c: New file.
2535         * elf/circlemod2.c: New file.
2536         * elf/circlemod2a.c: New file.
2537         * elf/circlemod3.c: New file.
2538         * elf/circlemod3a.c: New file.
2539
2540 2002-06-18  Amos Waterland  <apw@us.ibm.com>
2541
2542         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
2543         file descriptor.
2544         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
2545         add check for fd not open for writing.
2546
2547         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
2548         completed element(s) and do not suspend thread if so.  Patch
2549         heavily modified by drepper.
2550
2551         * rt/tst-aio7.c: New file.  Regression test for problems which the
2552         above three changes fix.
2553         * rt/Makefile (tests): Add tst-aio7.
2554
2555 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
2556
2557         * rt/tst-aio6.c: Fix comment.
2558
2559         * catgets/gencat.c (read_input_file): Handle more than one slash
2560         at end of line correctly [PR libc/3926].
2561         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
2562
2563         * catgets/sample.SJIS: Add test case for above bug.
2564         * catgets/test-gencat.c: Adjust test code.
2565         * catgets/test-gencat.sh: Adjust expected results.
2566
2567         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
2568         to skip relative relocations.
2569         Patch by Geoff Keating <geoffk@redhat.com>.
2570
2571 2002-05-26  Bruno Haible  <bruno@clisp.org>
2572
2573         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
2574         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
2575         All callers changed.
2576         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
2577         STANDARD_FROM_LOOP_ERR_HANDLER.
2578         (utf8_internal_loop): Likewise.
2579         (ucs2_internal_loop): Likewise.
2580         (internal_ucs2_loop): Perform error handling like in
2581         STANDARD_FROM_LOOP_ERR_HANDLER.
2582         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
2583         in STANDARD_FROM_LOOP_ERR_HANDLER.
2584         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2585         handling.
2586         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
2587         in STANDARD_FROM_LOOP_ERR_HANDLER.
2588         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2589         handling.
2590         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
2591         in STANDARD_FROM_LOOP_ERR_HANDLER.
2592         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2593         handling.
2594         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
2595         STANDARD_FROM_LOOP_ERR_HANDLER.
2596         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2597         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
2598         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
2599         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
2600         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
2601         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
2602         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
2603         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
2604         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
2605         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
2606         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
2607         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
2608         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
2609         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
2610         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
2611         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
2612         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
2613         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2614         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2615         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2616         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2617         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2618         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2619         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2620         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2621         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2622         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2623         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2624         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
2625         an error, still set result = __GCONV_ILLEGAL_INPUT.
2626         (BODY for TO_LOOP): Likewise.
2627         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2628         STANDARD_FROM_LOOP_ERR_HANDLER.
2629         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2630         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2631         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2632         handling.
2633         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2634         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2635         STANDARD_FROM_LOOP_ERR_HANDLER.
2636         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2637         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
2638         STANDARD_FROM_LOOP_ERR_HANDLER.
2639         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2640         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
2641         STANDARD_FROM_LOOP_ERR_HANDLER.
2642         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2643         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
2644         STANDARD_FROM_LOOP_ERR_HANDLER.
2645         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2646         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
2647         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2648         handling.
2649         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2650         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
2651         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
2652         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
2653
2654 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2655
2656         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
2657         labels in assembler instructions.
2658
2659 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
2660
2661         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
2662         not enough content is available.
2663         * libio/tst-eof.c: New file.
2664         * libio/Makefile (tests): Add tst-eof.
2665
2666         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
2667         update atime.
2668         * libio/tst-atime.c: New file.
2669         * libio/Makefile (tests): Add tst-atime.
2670
2671         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
2672         handling of overly long words.
2673
2674 2002-06-25  Andreas Jaeger  <aj@suse.de>
2675
2676         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
2677         to not use 32-bit pc relative relocations.
2678         (elf_machine_dynamic): Likewise.
2679
2680 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
2681
2682         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
2683         (__GETDENTS): Check for failed getdents64 syscall.
2684         * dirent/Makefile (tests): Add bug-readdir1.
2685         * dirent/bug-readdir1.c: New file.
2686
2687 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
2688
2689         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
2690         lookups.
2691         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
2692         code.  Print TLS modid and offset for modules containing PT_TLS
2693         segments.
2694
2695 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2696
2697         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2698         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2699         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2700         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2701
2702 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2703
2704         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
2705         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
2706         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
2707         * nss/getXXent_r.c (NEW, NEW1): Define.
2708         (NEW (REENTRANT_GETNAME)): Strong alias to
2709         INTERNAL (REENTRANT_GETNAME).
2710         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
2711
2712 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
2713
2714         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
2715         (_IO_file_jumps_mmap): Use it.
2716         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
2717         * libio/libioP.h: Remove _IO_wdefault_setbuf and
2718         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
2719         prototype.
2720         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
2721         (_IO_wfile_jumps_mmap): Don't use it anymore.
2722         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
2723         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
2724         _IO_wdefault_setbuf.
2725         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
2726         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
2727         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
2728
2729 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
2730
2731         * libio/Makefile (tests): Add tst-mmap-setvbuf.
2732         * libio/tst-mmap-setvbuf.c: New test.
2733
2734 2002-06-21  Andreas Jaeger  <aj@suse.de>
2735
2736         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
2737
2738 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
2739
2740         * include/unistd.h (__fork_internal): Remove.
2741         (__fork): Don't define to __fork_internal.
2742         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
2743         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
2744         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
2745         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
2746         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
2747
2748 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2749
2750         * po/hr.po: New file.
2751
2752 2002-06-11  Wolfram Gloger  <wg@malloc.de>
2753
2754         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
2755         Reported by Michael Meissner <meissner@redhat.com>.
2756
2757 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2758
2759         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
2760         Patch by Hans Boehm <hans_boehm@hp.com>.
2761
2762 2002-06-20  Andreas Jaeger  <aj@suse.de>
2763
2764         * math/libm-test.inc: Use exact values as input parameters,
2765         compute output parameters with 36 digits for 128-bit long doubles.
2766         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2767         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
2768         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2769
2770 2002-06-13  Stephen L Moshier  <steve@moshier.net>
2771
2772         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
2773         argument or result is subnormal.
2774
2775 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
2776
2777         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
2778         quotient.
2779         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2780         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2781
2782         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
2783
2784 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
2785
2786         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
2787         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
2788         Reported by Peter A. Buhr.
2789
2790 2002-06-15  Roland McGrath  <roland@frob.com>
2791
2792         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
2793         warning.
2794
2795         * sysdeps/mach/hurd/getcwd.c
2796         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
2797
2798         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
2799         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
2800
2801         * sysdeps/alpha/divrem.h: Use local label instead of global one for
2802         jump to local subroutine.
2803
2804 2002-06-14  Roland McGrath  <roland@frob.com>
2805
2806         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
2807         * sysdeps/mach/hurd/Makeconfig: ... here.
2808
2809 2002-06-13  Andreas Schwab  <schwab@suse.de>
2810
2811         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
2812         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2813         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2814
2815 2002-06-13  Roland McGrath  <roland@frob.com>
2816
2817         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
2818         * hurd/hurdstartup.c (_hurd_startup): Likewise.
2819         Use intptr_t instead of int for argc in stack layout.
2820         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
2821         (_dl_init_first): Likewise.
2822         (_hurd_stack_setup): Likewise.
2823         (init1): Add a cast.
2824         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
2825
2826         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
2827         argument to pfinet_siocgifconf RPC.
2828
2829 2002-06-13  Andreas Schwab  <schwab@suse.de>
2830
2831         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
2832         expansion order.
2833
2834 2002-06-12  Roland McGrath  <roland@frob.com>
2835
2836         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
2837         if already defined.
2838         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
2839         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
2840
2841 2002-06-11  Roland McGrath  <roland@frob.com>
2842
2843         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
2844         file on [!RTLD_STAT64].
2845         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2846
2847         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
2848         (__fdopen): Use INTUSE.
2849         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
2850
2851         * stdio-common/tmpfile64.c: File removed.
2852         * sysdeps/generic/tmpfile64.c: New file.
2853         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
2854         if not already defined.
2855         (tmpfile): Use it in place of __GT_FILE.
2856
2857         * include/unistd.h: Declare __chown_internal.
2858
2859         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
2860         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
2861
2862 2002-06-09  Roland McGrath  <roland@frob.com>
2863
2864         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
2865         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
2866         value of HURD_INTERFACE_VERSION >= 20020609.
2867         * sysdeps/mach/hurd/configure: Regenerated.
2868         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
2869         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
2870         convert a struct stat64 into a struct stat and return 0 or -1
2871         with errno set to EOVERFLOW.
2872         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
2873         for struct statfs64 to struct statfs.
2874         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
2875         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
2876         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2877         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2878         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2879         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2880         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2881         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
2882         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
2883         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
2884         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
2885         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
2886         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
2887         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
2888         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
2889         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
2890         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
2891         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
2892         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
2893         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
2894         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
2895         Use struct stat64 for io_stat argument.
2896         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
2897         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
2898         to io_seek.
2899         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
2900         * hurd/fd-write.c (_hurd_fd_write): Likewise.
2901         * hurd/hurd/fd.h: Update decls.
2902         * sysdeps/mach/hurd/getcwd.c
2903         (_hurd_canonicalize_directory_name_internal): Use ino64_t
2904         and struct dirent64.
2905         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
2906         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
2907         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
2908         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
2909
2910 2002-06-08  Roland McGrath  <roland@frob.com>
2911
2912         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
2913         instead of unsigned long int for __allocation and __size members.
2914
2915 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2916
2917         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2918         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2919         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2920         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2921
2922 2002-06-07  Roland McGrath  <roland@frob.com>
2923
2924         * sysdeps/mach/hurd/bits/environments.h: File removed.
2925
2926 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2927
2928         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
2929         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
2930         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
2931         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
2932         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
2933         (sendfile64): Likewise.
2934         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
2935         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
2936         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
2937         Likewise.
2938         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
2939
2940         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
2941         already defined.
2942
2943 2002-06-04  Bruno Haible  <bruno@clisp.org>
2944
2945         * sysdeps/cris/stackinfo.h: New file.
2946
2947         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
2948         to an integer type before performing bit operations on it.
2949
2950 2002-06-05  Roland McGrath  <roland@frob.com>
2951
2952         * sysdeps/generic/sendfile.c: Include <errno.h>.
2953         * sysdeps/generic/sendfile64.c: Likewise.
2954
2955         * io/Makefile (routines): Add sendfile and sendfile64.
2956         (headers): Add sys/sendfile.h to the list.
2957         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
2958         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
2959         * io/sys/sendfile.h: ... here.
2960         * sysdeps/generic/sendfile.c: New file.
2961         * sysdeps/generic/sendfile64.c: New file.
2962
2963         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
2964         Move sendfile, sendfile64 to ...
2965         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
2966         * sysdeps/mach/hurd/sendfile.c: New file.
2967         * sysdeps/mach/hurd/sendfile64.c: New file.
2968
2969         * sysdeps/mach/nanosleep.c: New file.
2970
2971 2002-06-04  Roland McGrath  <roland@frob.com>
2972
2973         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
2974         * sysdeps/alpha/elf/configure: New file (generated).
2975
2976 2002-06-02  Roland McGrath  <roland@frob.com>
2977
2978         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
2979
2980 2002-06-01  Roland McGrath  <roland@frob.com>
2981
2982         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
2983         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
2984
2985 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
2986
2987         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
2988         Add nsmap.
2989         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
2990         Remove nstimes setting.
2991         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
2992         * resolv/res_send.c (res_nsend): Don't close unconditionally if
2993         there is mix of IPv6 and IPv4 nameservers.
2994         Use nsmap array to find free slots and preserve nameserver ordering.
2995         Fix RES_ROTATE.
2996
2997 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
2998
2999         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
3000         use this header with LFS.
3001
3002         * po/sk.po: Update from translation team.
3003
3004 2002-05-28  Andreas Schwab  <schwab@suse.de>
3005
3006         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
3007         message when finding object of wrong class.
3008
3009 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
3010
3011         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
3012         Patch by <radu@netsoft.ro>.
3013
3014 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3015
3016         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
3017         Add readahead.
3018         * sysdeps/unix/sysv/linux/readahead.c: New file.
3019         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
3020         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
3021         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
3022         Add sendfile64 alias to sendfile syscall.
3023         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3024         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3025         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3026         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
3027         syscall.
3028
3029         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
3030         special section for PIC register loading.
3031         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3032
3033         * config.h.in: Define HAVE_HIDDEN.
3034         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
3035
3036         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
3037
3038 2002-05-28  Roland McGrath  <roland@frob.com>
3039
3040         * sysdeps/mach/alpha/setfpucw.c: New file.
3041
3042 2002-05-26  Roland McGrath  <roland@frob.com>
3043
3044         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
3045         Use integer_t instead of int for IOC_VOID case.
3046
3047 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
3048
3049         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
3050
3051 2002-05-26  Bruno Haible  <bruno@clisp.org>
3052
3053         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
3054         end of the ISO-8859-7 from idx table.
3055
3056 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
3057
3058         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
3059
3060 2002-05-24  David S. Miller  <davem@redhat.com>
3061
3062         * string/bits/string2.h (memset): Do not try to optimize when
3063         not _STRING_ARCH_unaligned if GCC will do the right thing.
3064
3065 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
3066
3067         * posix/regex.c: Define `inline' as a macro into nothing for the
3068         compilers which lack the keyword.
3069         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
3070         for the compatibility of gawk.
3071         * posix/regcomp.c: Add fake implementation of isblank() for the
3072         environments which lack the function.
3073         Don't use free_charset() in case of non-i18n envs.
3074         (build_range_exp): Don't use i18n related code in case of non-i18n
3075         envs.
3076         (build_collating_symbol): Likewise.
3077         (build_equiv_class): Likewise.
3078         (build_charclass): Likewise.
3079         (re_compile_fastmap_iter): Likewise.
3080         (parse_bracket_exp): Likewise.
3081         (build_word_op): Likewise.
3082         (regfree): Don't use free_charset() in case of non-i18n envs.
3083         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
3084         re_token_type_t in case of non-i18n envs.
3085         Don't define re_charset_t in case of non-i18n envs.
3086         Change the type of wcs of re_string_t from wchar_t to wint_t,
3087         since we store also WEOF.
3088         * posix/regex_internal.c: (re_string_realloc_buffers): Change
3089         the type of wcs of re_string_t from wchar_t to wint_t.
3090         (re_string_reconstruct): Likewise.
3091         (create_ci_newstate): Don't use i18n related code in case of
3092         non-i18n envs.
3093         (create_cd_newstate): Likewise.
3094
3095 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
3096
3097         * iconv/loop.c: Fix typo.
3098
3099 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3100
3101         * inet/ether_line.c (ether_line): Fix a typo causing only
3102         lower 4 bits of each ethernet address byte being assigned.
3103         Don't modify what line points to.
3104         * inet/tst-ether_aton.c (main): Add ether_line tests.
3105
3106 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
3107
3108         * manual/filesys.texi: Don't make readlink example leak memory
3109         when readlink fails.
3110
3111 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
3112
3113         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
3114         some more security checks.
3115
3116 2002-05-17  David S. Miller  <davem@redhat.com>
3117
3118         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
3119
3120 2002-05-16  David S. Miller  <davem@redhat.com>
3121
3122         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
3123         (elf_machine_dynamic): Use it to force PIC register to be loaded.
3124         (elf_machine_load_address): Likewise.
3125         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
3126
3127         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
3128         is unaligned, do not forget to fully initialize %g1 magic value.
3129
3130         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
3131         register definitions and provide 32-bit variants of structures
3132         during 64-bit builds.
3133
3134         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
3135         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
3136         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
3137         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
3138         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
3139         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
3140         Do not clear implicit one bit here, it must be done post-rounding.
3141         Only pad to the left using left shift if value uses less than the
3142         available fractional bits.
3143
3144 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3145
3146         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
3147         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
3148         (shared-only-routines): Likewise.
3149         * sysdeps/powerpc/libgcc-compat.c: New file.
3150         * sysdeps/wordsize-32/cmpdi2.c: Removed.
3151         * sysdeps/wordsize-32/fixdfdi.c: Removed.
3152         * sysdeps/wordsize-32/fixsfdi.c: Removed.
3153         * sysdeps/wordsize-32/shdi3.c: Removed.
3154
3155 2002-05-16  Bruno Haible  <bruno@clisp.org>
3156
3157         * MakeTAGS (libc.pot): Don't sort the output.
3158         * po/header.pot: Update to match xgettext 0.11 output.
3159
3160 2002-05-16  Bruno Haible  <bruno@clisp.org>
3161
3162         * MakeTAGS (subdirs): Remove duplicates.
3163
3164 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3165
3166         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
3167         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
3168         alias.
3169
3170 2002-05-19  Andreas Jaeger  <aj@suse.de>
3171
3172         * sysdeps/unix/sysv/linux/configure.in: Warn against an
3173         installation in /usr/local.
3174
3175 2002-05-16  Bruno Haible  <bruno@clisp.org>
3176
3177         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
3178         string as argument of #error.
3179
3180 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
3181
3182         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
3183         don't define static.  Remove old __realpath function.  TC1 of
3184         POSIX 2001 will allow the second parameter to be NULL.
3185         * stdlib/test-canon.c: Comment out test for NULL as second
3186         parameter of realpath.
3187
3188         * time/offtime.c (__offtime): Set errno if overflow is detected.
3189
3190         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
3191         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
3192         dl-brk and dl-sbrk.
3193
3194         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
3195         (fdimf): Likewise.
3196
3197 2002-05-15  Roland McGrath  <roland@frob.com>
3198
3199         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
3200
3201 2002-05-12  Bruno Haible  <bruno@clisp.org>
3202
3203         * iconvdata/testdata/EUC-JISX0213: New file.
3204         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
3205         * iconvdata/testdata/SHIFT_JISX0213: New file.
3206         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
3207         * iconvdata/testdata/ISO-2022-JP-3: New file.
3208         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
3209         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
3210         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
3211         contains comments indicating precomposed characters.
3212
3213 2002-04-21  Bruno Haible  <bruno@clisp.org>
3214
3215         * iconvdata/iso-2022-jp-3.c: New file.
3216         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
3217         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
3218         (LDFLAGS-ISO-2022-JP-3.so): New variable.
3219         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
3220         (distribute): Add iso-2022-jp-3.c.
3221
3222 2002-05-12  Bruno Haible  <bruno@clisp.org>
3223
3224         * iconvdata/tst-table-to.c (main): Restore handling of
3225         transliterations, broken by last patch.
3226
3227 2002-05-12  Bruno Haible  <bruno@clisp.org>
3228
3229         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
3230
3231 2002-05-12  Bruno Haible  <bruno@clisp.org>
3232
3233         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
3234         when there is not enough room in the output buffer.
3235         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3236
3237 2002-04-20  Bruno Haible  <bruno@clisp.org>
3238
3239         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
3240         macros.
3241         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3242         Also make this macro work if FROM_DIRECTION evaluates to 0.
3243         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3244         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
3245         of consume_incomplete.
3246         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3247         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
3248         4, not 8.
3249         * iconvdata/cp1258.c: Likewise.
3250         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3251         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
3252         not 2.
3253         * iconvdata/ibm933.c: Likewise.
3254         * iconvdata/ibm935.c: Likewise.
3255         * iconvdata/ibm937.c: Likewise.
3256         * iconvdata/ibm939.c: Likewise.
3257         * iconvdata/iso-2022-cn.c: Define
3258         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3259         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
3260         * iconvdata/iso-2022-cn-ext.c: Likewise.
3261         * iconvdata/iso-2022-jp.c: Define
3262         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3263         {MIN,MAX}_NEEDED_{FROM,TO}.
3264         * iconvdata/tcvn5712-1.c: Define
3265         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3266         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
3267         * iconvdata/euc-jisx0213.c: Define
3268         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3269         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
3270         * iconvdata/shift_jisx0213.c: Likewise.
3271
3272 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3273
3274         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
3275         shdi3, fixdfdi, fixsfdi in csu dir.
3276         (shared-only-routines): Likewise.
3277         * sysdeps/wordsize-32/cmpdi2.c: New file.
3278         * sysdeps/wordsize-32/shdi3.c: New file.
3279         * sysdeps/wordsize-32/fixdfdi.c: New file.
3280         * sysdeps/wordsize-32/fixsfdi.c: New file.
3281         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
3282         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
3283         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
3284
3285         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
3286         Only use va_arg if the argument will be used [PR libc/3259].
3287
3288 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
3289
3290         * catgets/catgets.c (catopen): Free buffer if internal catalog
3291         open fails.
3292
3293 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3294
3295         * debug/xtrace.sh: Make more robust.  For realtime tracking use
3296         non-buffering methods.
3297         * debug/pcprofiledump.c: Implement -u option.
3298         Patch by Roger Luethi <rl@hellgate.ch>.
3299
3300 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
3301
3302         * include/netinet/in.h (bindresvport_internal): Add prototype.
3303         * include/rpc/auth.h  (authunix_create_internal,
3304         authunix_create_default_internal, authnone_create_internal,
3305         authdes_pk_create_internal): Add prototypes.
3306         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
3307         clntudp_create_internal, clntudp_bufcreate_internal,
3308         clntunix_create_internal): Add prototypes.
3309         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
3310         svc_getreq_internal, svc_getreq_common_internal,
3311         svc_getreqset_internal, svc_getreq_poll_internal,
3312         svc_register_internal, svc_unregister_internal,
3313         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
3314         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
3315         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
3316         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
3317         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
3318         * inet/rcmd.c (rcmd_af): Use __listen.
3319         (rresvport_af): Use __bind.
3320         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
3321         authunix_create, authunix_create_default, authnone_create,
3322         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
3323         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
3324         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
3325         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
3326         _authenticate, add INTDEF after such function definitions.
3327         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
3328         __setsockopt, __getsockname instead of non-__ variants.
3329         * sunrpc/pmap_rmt.c: Likewise.
3330         * sunrpc/rtime.c: Likewise.
3331         * sunrpc/svc_udp.c: Likewise.
3332         * sunrpc/clnt_unix.c: Likewise.
3333         * sunrpc/svc_unix.c: Likewise.
3334         * sunrpc/bindrsvprt.c: Likewise.
3335         * sunrpc/svc_tcp.c: Likewise.
3336         * sunrpc/auth_none.c: Likewise.
3337         * sunrpc/clnt_raw.c: Likewise.
3338         * sunrpc/clnt_tcp.c: Likewise.
3339         * sunrpc/auth_unix.c: Likewise.
3340         * sunrpc/key_call.c: Likewise.
3341         * sunrpc/clnt_gen.c: Likewise.
3342         * sunrpc/pm_getmaps.c: Likewise.
3343         * sunrpc/clnt_simp.c: Likewise.
3344         * sunrpc/pmap_clnt.c: Likewise.
3345         * sunrpc/svc_run.c: Likewise.
3346         * sunrpc/svc.c: Likewise.
3347         * sunrpc/svc_simple.c: Likewise.
3348         * sunrpc/pm_getport.c: Likewise.
3349         * sunrpc/auth_des.c: Likewise.
3350         * sunrpc/svc_auth.c: Likewise.
3351         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
3352         __register_frame_info_table_bases, __deregister_frame_info_bases):
3353         Add INTDEF.
3354         (__register_frame_info_bases_internal,
3355         __register_frame_info_table_bases_internal,
3356         __deregister_frame_info_bases_internal): Add prototypes.
3357         (__register_frame_info, __register_frame): Use INTUSE in call to
3358         __register_frame_info_bases.
3359         (__register_frame_info_table): Similarly.
3360         (__deregister_frame_info, __deregister_frame): Similarly.
3361         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
3362         sendto as weak alias.
3363         * sysdeps/mach/hurd/sendto.c: Likewise.
3364         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
3365         recvfrom as weak alias.
3366         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3367         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
3368         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
3369         recvmsg as weak alias.
3370         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
3371         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
3372         sendmsg as weak alias.
3373         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
3374         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
3375         setsockopt, add setsockopt as weak alias.
3376         * sysdeps/mach/hurd/setsockopt.c: Likewise.
3377         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
3378         weak alias.
3379         * sysdeps/mach/hurd/bind.c: Likewise.
3380         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
3381         as weak alias.
3382         * sysdeps/mach/hurd/listen.c: Likewise.
3383         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
3384         getsockname, add getsockname as weak alias.
3385         * sysdeps/mach/hurd/getsockname.c: Likewise.
3386         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
3387         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
3388         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
3389         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
3390         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
3391         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
3392         Add aliases.
3393         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3394         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3395         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3396         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3397         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
3398         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
3399         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
3400         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
3401         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
3402         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
3403         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
3404         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
3405
3406 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3407
3408         * locale/programs/localedef.h (show_archive_content): Add verbose
3409         argument.
3410         * locale/programs/localedef.c (main): Adjust caller.
3411         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
3412         (nameentcmp, dataentcmp): New functions.
3413         (xstrcmp): Remove.
3414         (show_archive_content): Print verbose listing with --list-archive -v.
3415
3416 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3417
3418         * locale/programs/locarchive.c (open_archive): Take extra argument
3419         readonly.  If true open file with O_RDONLY and don't create the
3420         archive if it doesn't exist.
3421         Adapt all callers.
3422         (close_archive): Don't do anything if fd element is -1.
3423         * locale/programs/localedef.h (open_archive): Adjust prototype.
3424         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
3425         call.
3426
3427         * malloc/malloc.c (__posix_memalign): Correct check for size of
3428         alignment value [PR libc/3444].
3429
3430         * include/stdio.h: Remove references to old stdio implementation.
3431
3432         * libio/Makefile (bug-ungetwc2-ENV): Define.
3433
3434 2002-05-13  Roland McGrath  <roland@frob.com>
3435
3436         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
3437
3438         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
3439
3440 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
3441
3442         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3443         Allocate three, not two, more than LEN when appending '/.'.
3444         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
3445         if NAME ends with '/.' if it is shorter than 2 chars.
3446
3447 2002-05-12  Roland McGrath  <roland@frob.com>
3448
3449         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
3450         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
3451
3452         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3453         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3454
3455 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3456
3457         * sysdeps/ia64/Makefile: Remove extra endif.
3458         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3459
3460 2002-05-10  Andreas Schwab  <schwab@suse.de>
3461
3462         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3463
3464 2002-05-09  Andreas Jaeger  <aj@suse.de>
3465
3466         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3467         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3468         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3469
3470         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3471         * sysdeps/wordsize-64/glob.c: ...here.
3472         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3473         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3474         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3475
3476 2002-05-08  Roland McGrath  <roland@frob.com>
3477
3478         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3479         O_NOTRANS flag in "." lookup.
3480
3481 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
3482
3483         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3484
3485 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
3486
3487         * locale/duplocale.c (__duplocale): Update special members only
3488         when allocation succeeded.
3489
3490 2002-05-03  Roland McGrath  <roland@frob.com>
3491
3492         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3493         we can only build libc.so.0.3(GLIBC_2.2.6) now.
3494
3495 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
3496
3497         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3498         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3499         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3500         * sysdeps/ia64/ia64libgcc.S: New file.
3501
3502 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
3503
3504         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3505
3506         * malloc/memusage.c: Distinguish anonymous mmap.
3507
3508 2002-05-01  Roland McGrath  <roland@frob.com>
3509
3510         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3511         and use INTDEF on it.
3512         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3513
3514         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3515
3516         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
3517
3518 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
3519
3520         * malloc/memusage.c: Add support for tracking mmap & friends.
3521         * malloc/memusage.sh: Implement -m/--mmap option.
3522
3523 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3524
3525         * locale/programs/locarchive.c (create_archive): Add archivefname
3526         argument, create fname from it.
3527         (enlarge_archive): Honour output_prefix.
3528         (open_archive): Likewise.
3529
3530 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3531
3532         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
3533         too many stpcpy macros.
3534
3535 2002-04-26  Bruno Haible  <bruno@clisp.org>
3536
3537         * locale/programs/ld-collate.c (collate_read): Cast first argument
3538         for "%.*s" to int.
3539
3540 2002-04-26  Bruno Haible  <bruno@clisp.org>
3541
3542         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
3543         __dcngettext_internal): New declarations.
3544         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
3545         attribute declarations.
3546
3547 2002-04-30  Roland McGrath  <roland@frob.com>
3548
3549         Removed old GNU stdio implementation; GNU libio is now the only option.
3550         * configure.in: Removed --enable-libio option and @stdio@ subst var.
3551         Define USE_IN_LIBIO unconditionally.
3552         * configure: Regenerated.
3553         * Makeconfig (stdio): Set to libio by default.
3554         * config.make.in (stdio): Variable removed.
3555         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
3556         * sysdeps/unix/sysv/linux/configure: Regenerated.
3557         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
3558         * sysdeps/mach/hurd/configure: Regenerated.
3559         * stdio/.cvsignore: File removed.
3560         * stdio/Makefile: File removed.
3561         * stdio/Versions: File removed.
3562         * stdio/__fbufsize.c: File removed.
3563         * stdio/__flbf.c: File removed.
3564         * stdio/__fpending.c: File removed.
3565         * stdio/__fpurge.c: File removed.
3566         * stdio/__freadable.c: File removed.
3567         * stdio/__freading.c: File removed.
3568         * stdio/__fsetlocking.c: File removed.
3569         * stdio/__fwritable.c: File removed.
3570         * stdio/__fwriting.c: File removed.
3571         * stdio/clearerr.c: File removed.
3572         * stdio/fclose.c: File removed.
3573         * stdio/fcloseall.c: File removed.
3574         * stdio/feof.c: File removed.
3575         * stdio/ferror.c: File removed.
3576         * stdio/fflush.c: File removed.
3577         * stdio/fgetc.c: File removed.
3578         * stdio/fgetpos.c: File removed.
3579         * stdio/fgets.c: File removed.
3580         * stdio/fileno.c: File removed.
3581         * stdio/fmemopen.c: File removed.
3582         * stdio/fopen.c: File removed.
3583         * stdio/fopncook.c: File removed.
3584         * stdio/fputc.c: File removed.
3585         * stdio/fputs.c: File removed.
3586         * stdio/fread.c: File removed.
3587         * stdio/freopen.c: File removed.
3588         * stdio/fseek.c: File removed.
3589         * stdio/fsetpos.c: File removed.
3590         * stdio/ftell.c: File removed.
3591         * stdio/fwrite.c: File removed.
3592         * stdio/getc.c: File removed.
3593         * stdio/getchar.c: File removed.
3594         * stdio/getdelim.c: File removed.
3595         * stdio/gets.c: File removed.
3596         * stdio/glue.c: File removed.
3597         * stdio/internals.c: File removed.
3598         * stdio/linewrap.c: File removed.
3599         * stdio/linewrap.h: File removed.
3600         * stdio/memstream.c: File removed.
3601         * stdio/newstream.c: File removed.
3602         * stdio/obstream.c: File removed.
3603         * stdio/putc.c: File removed.
3604         * stdio/putchar.c: File removed.
3605         * stdio/puts.c: File removed.
3606         * stdio/rewind.c: File removed.
3607         * stdio/setbuf.c: File removed.
3608         * stdio/setbuffer.c: File removed.
3609         * stdio/setlinebuf.c: File removed.
3610         * stdio/setvbuf.c: File removed.
3611         * stdio/stdio.h: File removed.
3612         * stdio/ungetc.c: File removed.
3613         * stdio/vasprintf.c: File removed.
3614         * stdio/vscanf.c: File removed.
3615         * stdio/vsnprintf.c: File removed.
3616         * stdio/vsprintf.c: File removed.
3617         * stdio/vsscanf.c: File removed.
3618         * sysdeps/generic/defs.c: File removed.
3619         * sysdeps/generic/fdopen.c: File removed.
3620         * sysdeps/generic/pipestream.c: File removed.
3621         * sysdeps/generic/stdio_init.c: File removed.
3622         * sysdeps/generic/sysd-stdio.c: File removed.
3623         * sysdeps/generic/vdprintf.c: File removed.
3624         * sysdeps/mach/hurd/defs.c: File removed.
3625         * sysdeps/mach/hurd/fdopen.c: File removed.
3626         * sysdeps/mach/hurd/pipestream.c: File removed.
3627         * sysdeps/mach/hurd/stdio_init.c: File removed.
3628         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3629         * sysdeps/mach/hurd/vdprintf.c: File removed.
3630         * sysdeps/posix/defs.c: File removed.
3631         * sysdeps/posix/fdopen.c: File removed.
3632         * sysdeps/posix/pipestream.c: File removed.
3633         * sysdeps/posix/stdio_init.c: File removed.
3634         * sysdeps/posix/vdprintf.c: File removed.
3635         * sysdeps/unix/pipestream.c: File removed.
3636         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3637         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
3638         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
3639
3640 2002-04-29  Roland McGrath  <roland@frob.com>
3641
3642         * include/libc-symbols.h (link_warning): Use `unused' attribute.
3643
3644 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
3645
3646         * sysdeps/generic/tls.h: Describe what must be defined.
3647
3648         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
3649         glob_in_dir [PR libc/3385].
3650         * posix/globtest.sh: Add test case.
3651
3652         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
3653         //TRANSLIT twice.
3654
3655 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
3656
3657         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
3658         _internal symbol handling.
3659         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3660
3661 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
3662
3663         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
3664         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3665
3666 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
3667
3668         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
3669         not _LIBC and RE_ENABLE_I18N.
3670         (build_range_exp): Implement for not _LIBC.
3671         (build_collating_symbol): Likewise.
3672         (parse_bracket_exp): Unify redundant error handlings.
3673         Don't erase mbcset for non matching list in multibyte envs.
3674         (build_word_op): Add '_' to matching list for \w operator.
3675         * posix/regex_internal.c (re_string_construct): Invoke
3676         build_upper_buffer in case of not RE_ENABLE_I18N.
3677         (re_string_reconstruct): Don't touch cur_state in case of not
3678         RE_ENABLE_I18N.
3679         * posix/regex_internal.h (attribute_hidden): New macro in case of
3680         not _LIBC.
3681         (re_charset_t): Define range_starts/ends in case of not _LIBC.
3682         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
3683         RE_ENABLE_I18N.
3684         (transit_state_mb): Likewise.
3685         (check_node_accept_bytes): Implement the code evaluating range
3686         expression in case of not _LIBC.
3687         (find_collation_sequence_value): Hide in case of not _LIBC.
3688
3689 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
3690
3691         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
3692         i386/semctl.c.
3693         (__old_semctl, __new_semctl): Only use va_arg if the argument will
3694         be used.
3695
3696 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
3697
3698         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
3699
3700         * sysdeps/ia64/strncpy.S: Fix recovery code.
3701         Patch by David Mosberger <davidm@hpl.hp.com>.
3702
3703 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3704
3705         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
3706         GLIBC_2.2.6.
3707
3708 2002-04-14  Bruno Haible  <bruno@clisp.org>
3709
3710         * posix/regex.c (re_max_failures): Add back symbol for binary
3711         compatibility.
3712
3713 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
3714
3715         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
3716         of buffer building functions.
3717         * posix/regex_internal.c (re_string_allocate): New function.
3718         (re_string_realloc_buffers): New function.
3719         (re_string_skip_chars): New function.
3720         (re_string_reconstruct): New function.
3721         (re_string_construct): Adapt it to new interface of buffer building
3722         functions.
3723         (re_string_construct_common): Likewise.
3724         (build_wcs_buffer): Likewise.
3725         (build_wcs_upper_buffer): Likewise.
3726         (build_upper_buffer): Likewise.
3727         (re_string_translate_buffer): Likewise.
3728         (re_string_context_at): Adapt it to variable length buffers.
3729         * posix/regex_internal.h (re_string_t): Add new fields to handle
3730         variable length buffers.
3731         (re_match_context_t): Likewise.
3732         * posix/regexec.c (re_search_internal): Adapt it to new interface
3733         of re_string_t and re_match_context_t.
3734         (acquire_init_state_context): Likewise.
3735         (check_matching): Likewise.
3736         (check_halt_state_context): Likewise.
3737         (proceed_next_node): Likewise.
3738         (set_regs): Likewise.
3739         (sift_states_backward): Likewise.
3740         (clean_state_log_if_need): Likewise.
3741         (sift_states_iter_mb): Likewise.
3742         (sift_states_iter_bkref): Likewise.
3743         (add_epsilon_backreference): Likewise.
3744         (transit_state): Likewise.
3745         (transit_state_sb): Likewise.
3746         (transit_state_mb): Likewise.
3747         (transit_state_bkref): Likewise.
3748         (transit_state_bkref_loop): Likewise.
3749         (check_node_accept): Likewise.
3750         (match_ctx_init): Likewise.
3751         (extend_buffers): New function.
3752
3753 2002-04-21  Bruno Haible  <bruno@clisp.org>
3754
3755         * iconvdata/tst-table.sh: For the second check, use the truncated
3756         GB18030 charmap table, like for the first check.
3757
3758 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3759
3760         * elf/dl-load.c (open_verify): Correct __lseek parameters.
3761         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
3762
3763 2002-04-23  H.J. Lu  <hjl@gnu.org>
3764
3765         * include/math.h (isfinite): Fix a typo.
3766
3767 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3768
3769         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
3770         which is created by the test suite.
3771
3772 2002-04-20  Bruno Haible  <bruno@clisp.org>
3773
3774         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
3775         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
3776
3777 2002-04-20  Bruno Haible  <bruno@clisp.org>
3778
3779         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
3780         to avoid gcc warning.
3781
3782 2002-04-20  Bruno Haible  <bruno@clisp.org>
3783
3784         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
3785         of data->__statep->__count.
3786
3787 2002-04-20  Bruno Haible  <bruno@clisp.org>
3788
3789         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
3790         tag characters.
3791         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
3792
3793 2002-04-24  Roland McGrath  <roland@frob.com>
3794
3795         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
3796         use END macro instead of our own .end directive.
3797         Use `callsys' insn mnemonic instead of `call_pal'.
3798
3799         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
3800
3801         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
3802         macro; we need this for Hurd.
3803
3804         Log entry was missing for 2002/03/24 commit of rev 1.8,
3805         goes with 2002-03-17 changes.
3806         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
3807         (sysdep_routines): Append ioperm here.
3808         (sysdep_headers): Append sys/io.h here.
3809
3810 2002-04-23  Roland McGrath  <roland@frob.com>
3811
3812         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
3813         * sysdeps/mach/hurd/sendto.c: Likewise.
3814         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
3815         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
3816         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
3817
3818 2002-04-22  Roland McGrath  <roland@frob.com>
3819
3820         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
3821         failure from i386_io_perm_* RPCs to ENOSYS.
3822
3823 2002-04-22  Andreas Jaeger  <aj@suse.de>
3824
3825         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
3826
3827         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
3828
3829         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
3830         register instead of destroying %rbx.
3831
3832 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
3833
3834         * string/string.h: Declare strerror_r also for XPG6.
3835
3836 2002-04-19  Roland McGrath  <roland@frob.com>
3837
3838         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
3839
3840 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
3841
3842         * Makefile: Add handling of xtests and xcheck targets.
3843         * MakeTAGS: Likewise.
3844         * Makeconfig: Likewise.
3845         * Makerules: Likewise.
3846         * Rules: Likewise.
3847         * manual/Makefile: Likewise.
3848         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
3849         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
3850
3851 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
3852
3853         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
3854         authnone_private_s.
3855         * sunrpc/auth_none.c: Include bits/libc-lock.h.
3856         Delete #ifdef _RPC_THREAD_SAFE_ block.
3857         (authnone_private): Make a struct, not a pointer to struct.
3858         (authnone_private_guard): New once-control variable.
3859         (authnone_create_once): New function, split out of
3860         authnone_create.  No need to allocate memory.
3861         (authnone_create): Just call authnone_create_once via
3862         __libc_once, then return &authnone_private->no_client.
3863         (authnone_marshal): Access private data via CLIENT argument,
3864         not authnone_private pointer.
3865         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
3866         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
3867         authnone_private_s.
3868
3869 2002-04-12  H.J. Lu  <hjl@gnu.org>
3870
3871         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
3872
3873 2002-04-18  Bruno Haible  <bruno@clisp.org>
3874
3875         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3876         FROM_DIRECTION): Make the FROM direction stateless.
3877         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3878         FROM_DIRECTION): Likewise.
3879
3880 2002-04-15  Bruno Haible  <bruno@clisp.org>
3881
3882         * iconvdata/JISX0213.TXT: New file.
3883         * iconvdata/jisx0213.h: New file.
3884         * iconvdata/jisx0213.c: New file.
3885         * iconvdata/euc-jisx0213.c: New file.
3886         * iconvdata/shift_jisx0213.c: New file.
3887         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
3888         * iconvdata/EUC-JISX0213.precomposed: New file.
3889         * iconvdata/SHIFT_JISX0213.precomposed: New file.
3890         * iconvdata/SHIFT_JISX0213.irreversible: New file.
3891         * iconvdata/tst-table-to.c (main): Make it work for encodings for
3892         which the "to" direction is stateful.
3893         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
3894         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
3895         SHIFT_JISX0213.
3896         (libJISX0213-routines): New variable.
3897         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
3898         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
3899         (LDFLAGS-libJISX0213.so): New variable.
3900         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
3901         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
3902         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
3903
3904 2002-04-15  Bruno Haible  <bruno@clisp.org>
3905
3906         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
3907         uint32_t.  Update to Unicode 3.2.
3908         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
3909         (BODY for TO_LOOP): Handle the ASCII range specially.
3910         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
3911         * iconvdata/testdata/BIG5HKSCS: Remove a character.
3912         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
3913
3914 2002-04-15  Bruno Haible  <bruno@clisp.org>
3915
3916         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
3917         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
3918
3919 2002-04-15  Bruno Haible  <bruno@clisp.org>
3920
3921         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
3922         (ucs4_to_cns11643): Update.
3923         * iconvdata/cns11643.c: Update to Unicode 3.2.
3924         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
3925         __cns11643_from_ucs4p2_tab): Regenerated.
3926         (__cns11643_from_ucs4p2c_tab): New array.
3927         * iconvdata/cvs11643l1.c: Update comments.
3928         * iconvdata/EUC-TW.irreversible: Remove two entries.
3929
3930 2002-04-15  Bruno Haible  <bruno@clisp.org>
3931
3932         * locale/C-translit.h.in: Update to Unicode 3.2.
3933         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
3934         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
3935
3936 2002-04-15  Bruno Haible  <bruno@clisp.org>
3937
3938         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
3939         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
3940
3941 2002-04-15  Bruno Haible  <bruno@clisp.org>
3942
3943         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
3944         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
3945         always one byte, not 0 bytes in some cases and 2 bytes in others.
3946
3947         * iconvdata/tst-table-from.c (main): Correct the usage message.
3948
3949 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
3950
3951         * posix/regcomp.c (parse_expression): Fix incorrect error code.
3952         (parse_dup_op): Fix error handling like "a{}".
3953         (parse_bracket_exp): Add error handling.
3954         (fetch_number): Add error handling for "a{<very_large_number>}".
3955
3956 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
3957
3958         * posix/regcomp.c (parse_bracket_symbol): Add error handling
3959         in case that the symbol name is too long.
3960         (build_charclass): Handle [:lower:]/[:uppper:] correctly
3961         in case of REG_ICASE.
3962
3963 2002-04-19  Andreas Jaeger  <aj@suse.de>
3964
3965         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
3966         <hartvige@mips.com>.
3967
3968 2002-04-15  H.J. Lu  <hjl@gnu.org>
3969
3970         * include/math.h (__finitel_internal): Declare only if
3971         __NO_LONG_DOUBLE_MATH is not defined.
3972         (__isinfl_internal): Likewise.
3973         (__isnanl_internal): Likewise.
3974
3975         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
3976         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3977         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3978         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3979         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3980         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3981         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3982
3983         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
3984         __fcntl_internal.
3985
3986         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
3987         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
3988
3989 2002-04-15  Bruno Haible  <bruno@clisp.org>
3990
3991         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
3992         (BODY for TO_LOOP): Likewise.
3993         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
3994         * iconvdata/tst-table.sh: Add support for encodings which contain
3995         precomposed Unicode characters, known to the iconv converter in both
3996         directions but not listed in the charmap.
3997         * iconvdata/IBM856.irreversible: New file.
3998         * iconvdata/IBM922.irreversible: New file.
3999         * iconvdata/IBM1132.irreversible: New file.
4000         * iconvdata/IBM1133.irreversible: New file.
4001         * iconvdata/IBM1160.irreversible: New file.
4002         * iconvdata/IBM1161.irreversible: New file.
4003         * iconvdata/IBM1163.irreversible: New file.
4004         * iconvdata/IBM1164.irreversible: New file.
4005         * iconvdata/ARMSCII-8.irreversible: New file.
4006         * iconvdata/TCVN5712-1.precomposed: New file.
4007         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
4008         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
4009         ARMSCII-8, TCVN5712-1.
4010         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
4011         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
4012         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
4013         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
4014
4015 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4016
4017         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
4018         for EVENING69.  Include offsets in TZ environment variable.
4019
4020 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
4021
4022         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
4023         avoid compiler warnings.
4024
4025         * locale/programs/localedef.c (main): Always call
4026         construct_output_path.
4027
4028         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
4029
4030         * locale/programs/locfile.c (to_archive): New variable.  To collect
4031         data which has to be added to the locale archive.
4032         (write_all_categories): Take new third parameter with locale name.
4033         Unless no_archive flag set add new locale data to the archive
4034         (write_locale_data): Unless no-archive flag set store generated data
4035         in to_archive data structure instead of generation output file.
4036         Add new parameter with locale category index.
4037         * locale/programs/locfile.h: Add new parameters in declaractions of
4038         write_all_categories and write_locale_data.
4039         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
4040         --add-to-archive, and --delete-from-archive options.  Pass extra
4041         parameter to write_all_categories.
4042         * locale/programs/localedef.h: Add prototypes for functions in
4043         locarchive.c.
4044         * locale/locarchive.h: New file.
4045         * locale/programs/locarchive.c: New file.
4046         * locale/Makefile (distribute): Add programs/locarchive.c and
4047         locarchive.h.
4048         (localedef-modules): Add md5 and locarchive.
4049         Add vpath to crypt subdir for md5.c.
4050
4051         * locale/programs/ld-address.c: Pass locale category ID as new second
4052         parameter to write_locale_data.
4053         * locale/programs/ld-collate.c: Likewise.
4054         * locale/programs/ld-ctype.c: Likewise.
4055         * locale/programs/ld-identification.c: Likewise.
4056         * locale/programs/ld-measurement.c: Likewise.
4057         * locale/programs/ld-messages.c: Likewise.
4058         * locale/programs/ld-monetary.c: Likewise.
4059         * locale/programs/ld-name.c: Likewise.
4060         * locale/programs/ld-numeric.c: Likewise.
4061         * locale/programs/ld-paper.c: Likewise.
4062         * locale/programs/ld-telephone.c: Likewise.
4063         * locale/programs/ld-time.c: Likewise.
4064
4065         * locale/simple-hash.c: Move compute_hashval function from here...
4066         * locale/hashval.h: ...to here.  New file.
4067         * locale/simple-hash.h: Add prototype for compute_hashval.
4068
4069         * include/libintl.h: Minor cleanups.
4070
4071 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
4072
4073         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
4074
4075 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
4076
4077         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
4078
4079 2002-04-14  Bruno Haible  <bruno@clisp.org>
4080
4081         * locale/programs/charmap.c (charmap_read): Don't access result if
4082         result == NULL.
4083
4084 2002-02-17  Andreas Schwab  <schwab@suse.de>
4085
4086         * elf/reldep7.c: New file.
4087         * elf/reldep7mod1.c: New file.
4088         * elf/reldep7mod2.c: New file.
4089         * elf/Makefile: Add rules to build and run reldep7.
4090
4091 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
4092
4093         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
4094         the end of the function.  Pass original flags to recursive call if
4095         add_dependency failed.
4096         (_dl_lookup_versioned_symbol): Likewise.
4097
4098 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
4099
4100         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
4101         early, but check whether it overflowed afterwards.
4102         * time/tst-mktime.c (main): Add new tests.
4103
4104 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
4105
4106         * debug/xtrace.sh: Fix program name in help message.
4107         Patch by Roger Luethi <rl@hellgate.ch>.
4108
4109         * include/sys/stat.h: Add prototypes for __lxstat_internal and
4110         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
4111         NOT_IN_libc.
4112         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
4113         * sysdeps/mach/hurd/lxstat.c: Likewise.
4114         * sysdeps/unix/common/lxstat.c: Likewise.
4115         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
4116         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4117         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4118         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4119         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4120         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
4121         * sysdeps/mach/hurd/lxstat64.c: Likewise.
4122         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
4123         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4124
4125         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
4126         prototypes.  Add __mbrlen and __mbrtowc macros.
4127         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
4128         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
4129
4130         * include/unistd.h: Add prototype for __write_internal and add
4131         __libc_write macro is SHARED.
4132         * sysdeps/generic/write.c: Use INTDEF for __write.
4133         * sysdeps/mach/hurd/write.c: Likewise.
4134         * sysdeps/unix/sysv/aix/write.c: Likewise.
4135         * sysdeps/unix/syscalls.list: Add __libc_write alias.
4136
4137         * assert/assert.c: Replace STR_N_SIZE with something usable in
4138         macro arguments.
4139         * assert/assert-perr.c: Likewise.
4140
4141         * include/sys/socket.h: Declare __libc_sa_len_internal and define
4142         SA_LEN macro to use it if not NOT_IN_libc.
4143         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
4144
4145         * include/fcntl.h: Declare __open_internal and define __open and
4146         __libc_open macros if not NOT_IN_libc.
4147         * sysdeps/generic/open.c: Use INTDEF for __open.
4148         * sysdeps/mach/hurd/open.c: Likewise.
4149         * sysdeps/unix/sysv/aix/open.c: Likewise.
4150         * sysdeps/unix/syscalls.list: Add __open_internal alias.
4151
4152         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
4153         has correct number.
4154
4155         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
4156         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
4157         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4158         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4159
4160         * include/wctype.h: Declare __iswalpha_l_internal,
4161         __iswdigit_l_internal, __iswspace_l_internal,
4162         __iswxdigit_l_internal, and __iswctype_internal.  Define
4163         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
4164         __iswxdigit_l macros if not NOT_IN_libc.
4165         * wctype/iswctype.c: Use INTDEF for __iswctype.
4166         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
4167
4168         * include/math.h: Declare __isinf_internal, __isinfl_internal,
4169         __isnan_internal, and __isnanl_internal.
4170         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
4171         __isnan, and __isnanl.
4172         * stdio-common/printf_size.c: Likewise.
4173         * sysdeps/generic/printf_fphex.c: Likewise.
4174         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
4175         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4176         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
4177         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
4178         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4179         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4180         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4181         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4182         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4183         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4184         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4185         * sysdeps/m68k/s_isinfl.c: Likewise.
4186         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
4187         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4188
4189         * include/sys/time.h: Declare __gettimeofday_internal and define
4190         __gettimeofday macro if not NOT_IN_libc.
4191         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
4192         * sysdeps/mach/gettimeofday.c: Likewise.
4193         * sysdeps/posix/gettimeofday.c: Likewise.
4194         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
4195         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
4196         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4197         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
4198
4199         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
4200         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
4201         Remove __lstat and __fstat inline functions.
4202         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
4203         * sysdeps/mach/hurd/fxstat.c: Likewise.
4204         * sysdeps/unix/fxstat.c: Likewise.
4205         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
4206         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4207         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4208         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4209         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4210         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
4211         * sysdeps/mach/hurd/fxstat64.c: Likewise.
4212         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
4213         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4214
4215         * include/unistd.h: Declare __getpid_internal and define
4216         __getpid macro if not NOT_IN_libc.
4217         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
4218         * sysdeps/generic/getpid.c: Likewise.
4219         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
4220         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
4221
4222         * include/unistd.h: Declare __getpgid_internal and define
4223         __getpgid macro if not NOT_IN_libc.
4224         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
4225         * sysdeps/mach/hurd/getpgid.c: Likewise.
4226         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
4227         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
4228         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4229         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
4230
4231         * include/unistd.h: Declare __getpagesize_internal and define
4232         __getpagesize macro if not NOT_IN_libc.
4233         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
4234         __getpagesize.
4235         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
4236         * sysdeps/mach/getpagesize.c: Likewise.
4237         * sysdeps/posix/getpagesize.c: Likewise.
4238         * sysdeps/unix/getpagesize.c: Likewise.
4239         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4240         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4241         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
4242         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
4243
4244 2002-04-13  Andreas Jaeger  <aj@suse.de>
4245
4246         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
4247         as clobber to reduce register pressure.
4248         (__strpbrk_cg): Likewise.
4249         (__mempcpy_by4): Likewise.
4250         (__strstr_cg): Likewise.
4251         Add prototype for __memrchr.
4252
4253 2002-04-13  Andreas Schwab  <schwab@suse.de>
4254
4255         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
4256         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4257         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4258
4259 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
4260
4261         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
4262         check whether the caller prefers getting the most recent version of
4263         a symbol of the earliest version.
4264         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
4265         _dl_do_lookup to also take the new parameter and pass it on.
4266         Change 'explicit' parameter of _dl_lookup_symbol and
4267         _dl_lookup_versioned_symbol to flags.  Adjust tests.
4268         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4269         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
4270         _dl_lookup_versioned_symbol.
4271         * elf/dl-reloc.c: Likewise.
4272         * elf/dl-runtime.c: Likewise.
4273         * elf/dl-sym.c: Likewise.
4274         * sysdeps/mips/dl-machine.h: Likewise.
4275
4276 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4277
4278         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
4279         in a token.
4280         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
4281
4282 2002-04-10  Andreas Jaeger  <aj@suse.de>
4283
4284         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
4285
4286         * include/argz.h: Remove extra char from last patch.
4287
4288 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
4289
4290         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
4291         * sysdeps/unix/sysv/aix/chown.c: Likewise.
4292         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
4293         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4294         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4295         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
4296         __chown_internal.
4297         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4298
4299         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
4300         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
4301         * intl/ngettext.c: Likewise.
4302
4303         * include/sys/socket.h: Declare __connect_internal and define
4304         __connect macro if not NOT_IN_libc.
4305         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
4306         * sysdeps/unix/sysv/aix/connect.c: Likewise.
4307         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
4308
4309         * include/unistd.h: Declare __close_internal and define __close macro
4310         if not NOT_IN_libc.
4311         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
4312         WJUMP3): Add extra parenthesis to avoid expanding element names with
4313         macors like __close.
4314         * sysdeps/unix/syscalls.list: Add __close_internal alias.
4315
4316         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
4317         if not NOT_IN_libc.
4318         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
4319         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
4320         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
4321
4322         * include/unistd.h: Declare __fork_internal and define __fork macro
4323         if not NOT_IN_libc.
4324         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
4325         * sysdeps/unix/sysv/aix/fork.c: Likewise.
4326         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
4327
4328         * include/stdio_ext.h: Declare __fsetlocking_internal and define
4329         __fsetlocking macro to use it if not NOT_IN_libc.
4330         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
4331
4332         * libio/__fbufsize.c: Correct copyright.
4333         * libio/__flbf.c: Likewise.
4334         * libio/__fpending.c: Likewise.
4335         * libio/__fpurge.c: Likewise.
4336         * libio/__freadable.c: Likewise.
4337         * libio/__freading.c: Likewise.
4338         * libio/__fsetlocking.c: Likewise.
4339         * libio/__fwritable.c: Likewise.
4340         * libio/__fwriting.c: Likewise.
4341
4342         * include/stdio.h: Declare __asprintf_internal and define __asprintf
4343         macro to use it if not NOT_IN_libc.
4344         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
4345
4346         * include/mntent.h: Declare __setmntent_internal,
4347         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
4348         __getmntent_r, and __endmntent macros to use these functions if not
4349         NOT_IN_libc.
4350         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
4351         __endmntent.
4352
4353         * include/math.h: Declare __finite_internal, __finitef_internal, and
4354         __finitel_internal.  Redefine isfinite macro if in libc or libm using
4355         these functions.
4356         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
4357         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
4358         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
4359         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
4360         * sysdeps/i386/fpu/s_finitef.S: Likewise.
4361         * sysdeps/i386/fpu/s_finitel.S: Likewise.
4362         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4363         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4364         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4365         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4366
4367         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
4368         to use this function if not NOT_IN_libc.
4369         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
4370         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
4371         * sysdeps/mach/hurd/fcntl.c: Likewise.
4372         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4373         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4374
4375         * include/argz.h: Declare __argz_count_internal and
4376         __argz_stringify_internal.
4377         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
4378         __argz_stringify.
4379         * string/argz-count.c: Use INTDEF for __argz_count.
4380         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
4381
4382         * include/stdlib.h: Declare __cxa_atexit_internal and define
4383         __cxa_atexit macro if not NOT_IN_libc.
4384         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
4385         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
4386
4387         * assert/assert.c: Use INTDEF for __assert_fail.
4388         * assert/__assert.c: Use INTUSE for call to __assert_fail.
4389         * include/assert.h: Declare __assert_fail_internal.
4390
4391         * extra-lib.mk: Mark assignment to lib with override.
4392
4393 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4394
4395         * Makerules: Use cppflags-iterator.mk to add defines for all test
4396         source files.
4397
4398 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4399
4400         * elf/elf.h: Define R_SH_TLS_xxx macros.
4401         * elf/rtld.c: Remove an extra parenthesis.
4402         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
4403         TLS_GD macros.
4404         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
4405         * sysdeps/sh/dl-lookupcfg.h: New file.
4406         * sysdeps/sh/dl-tls.h: New file.
4407         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
4408         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
4409         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
4410         R_SH_TLS_TPOFF32 relocations.
4411
4412 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4413
4414         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4415         of NOT_IN_LIBC.
4416         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
4417         * include/stdlib.h: Likewise.
4418
4419 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
4420
4421         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
4422         instead of _RTLD_LOCAL.
4423         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
4424         * include/unistd.h: Likewise.
4425         * sysdeps/generic/ldsodefs.h: Likewise.
4426
4427         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
4428         if in libc or ld.so.
4429
4430 2002-04-08  Andreas Jaeger  <aj@suse.de>
4431
4432         * elf/cache.c (print_entry): Support x86-64.
4433
4434 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4435
4436         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
4437         with one accessing the locale data structures directly.
4438         * stdio-common/printf-prs.c: Include localeinfo.h for new
4439         MB_CUR_MAX definition.
4440
4441         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
4442         is the name of the source file without extension.
4443         * Makefile (distribute): Add cppflags-iterator.mk.
4444         * cppflags-iterator.mk: New file.
4445         * extra-lib.mk: For the sources of the library run
4446         cppflags-iterator.mk.
4447
4448         * include/libintl.h: Declare __dcgettext_internal and
4449         _libc_intl_domainname_internal.  Define __dcgettext using these
4450         two symbols if used in libc itself.
4451         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
4452         _libc_intl_domainname_internal.
4453         * argp/argp-parse.c: Likewise.
4454         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4455         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4456         * intl/gettext.c: Likewise.
4457         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4458         alias.
4459         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4460         __dcgettext.
4461         * posix/regex_internal.c (gettext): Likewise.
4462
4463 2002-04-08  Andreas Jaeger  <aj@suse.de>
4464
4465         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4466
4467         * sysdeps/x86_64/fpu/s_llrint.S: New.
4468         * sysdeps/x86_64/fpu/s_llrintf.S: New.
4469         * sysdeps/x86_64/fpu/s_llrintl.S: New.
4470         * sysdeps/x86_64/fpu/s_lrint.S: New.
4471         * sysdeps/x86_64/fpu/s_lrintf.S: New
4472         * sysdeps/x86_64/fpu/s_lrintl.S: New.
4473
4474 2002-04-08  Roland McGrath  <roland@frob.com>
4475
4476         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4477         widening __hurd_fail value.
4478
4479 2002-04-07  Roland McGrath  <roland@frob.com>
4480
4481         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4482         <mach/machine/alpha_instruction.h>.
4483         (_hurd_setup_sighandler): Take proper arguments for current decls.
4484         Update code to use _hurdsig_catch_fault.
4485         Use `callsys' instruction instead of `call_pal'.
4486         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4487
4488         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4489         (ALIGN, at, AT, fp): New macros.
4490
4491 2002-04-06  Roland McGrath  <roland@frob.com>
4492
4493         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4494
4495         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4496         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4497
4498         * sysdeps/mach/hurd/bind.c: Use prototype definition.
4499         * sysdeps/mach/hurd/connect.c: Likewise.
4500         * sysdeps/mach/hurd/getsockopt.c: Likewise.
4501         * sysdeps/mach/hurd/setsockopt.c: Likewise.
4502
4503         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4504         __msg_sig_post RPC.
4505
4506         * hurd/catch-exc.c: Use integer_t instead of int.
4507         * hurd/hurdfault.c: Likewise.
4508
4509         * sysdeps/mach/hurd/alpha/exc2signal.c
4510         (_hurd_exception2signal): Rewritten.
4511         * sysdeps/mach/hurd/alpha/longjmp-ts.c
4512         (_hurd_longjmp_thread_state): Rewritten.
4513
4514 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
4515
4516         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
4517         DB_LOOKUP_FCT prototype.
4518         * nss/getXXent_r.c: Likewise.
4519         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
4520         * inet/getaliasname_r.c: Likewise.
4521         * inet/getnetbyad_r.c: Likewise.
4522         * inet/getnetbynm_r.c: Likewise.
4523         * inet/getnetent_r.c: Likewise.
4524         * inet/getproto_r.c: Likewise.
4525         * inet/getprtent_r.c: Likewise.
4526         * inet/getprtname_r.c: Likewise.
4527         * inet/getrpcbyname_r.c: Likewise.
4528         * inet/getrpcbynumber_r.c: Likewise.
4529         * inet/getrpcent_r.c: Likewise.
4530         * inet/getservent_r.c: Likewise.
4531         * inet/getsrvbynm_r.c: Likewise.
4532         * inet/getsrvbypt_r.c: Likewise.
4533         * shadow/getspent_r.c: Likewise.
4534         * shadow/getspnam_r.c: Likewise.
4535
4536         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
4537
4538         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
4539         Use i686-friendly PIC code.
4540         * sysdeps/i386/elf/setjmp.S: Likewise.
4541
4542         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
4543
4544         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
4545         list.
4546         * elf/Versions: Remove it here.
4547
4548 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
4549
4550         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
4551         direction.  Reported by H . J . Lu <hjl@lucon.org>.
4552
4553 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
4554
4555         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
4556         test just before the test runs.
4557         * intl/tst-translit.sh: Likewise.
4558         * intl/tst-codeset.sh: Likewise.
4559
4560         * timezone/zic.c: Update from tzcode2002c.
4561         * timezone/asia: Update from tzdata2002c.
4562         * timezone/backward: Likewise.
4563         * timezone/europe: Likewise.
4564         * timezone/northamerica: Likewise.
4565         * timezone/northamerica: Likewise.
4566         * timezone/northamerica: Likewise.
4567         * timezone/southamerica: Likewise.
4568         * timezone/zone.tab: Likewise.
4569
4570 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
4571
4572         * sysdeps/generic/brk.c (__curbrk): Declare.
4573         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
4574         * sysdeps/generic/dl-sbrk.c: Likewise.
4575         * sysdeps/unix/arm/dl-brk.S: New file.
4576         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
4577         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
4578         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
4579         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
4580         * sysdeps/unix/i386/dl-brk.S: New file.
4581         * sysdeps/unix/mips/dl-brk.S: New file.
4582         * sysdeps/unix/sparc/dl-brk.S: New file.
4583         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
4584         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
4585         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
4586         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
4587
4588 2002-04-03  Andreas Schwab  <schwab@suse.de>
4589
4590         * Makefile (headers): Add gnu/lib-names.h here instead of
4591         install-others.
4592         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
4593         installation rule.
4594         (install-headers): Add dependency on install-headers-nosubdir.
4595         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
4596         instead of install-others.
4597         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
4598         installation rule.
4599
4600 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
4601
4602         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
4603         Reported by Sam Roberts <sroberts@uniserve.com>.
4604
4605 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
4606
4607         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
4608         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
4609         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4610         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4611
4612 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
4613
4614         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
4615         (RTLD_START): Ditto.
4616         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
4617         dependency violation.
4618
4619 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4620
4621         * time/mktime.c (__mktime_internal): Move check for year < 70 below
4622         all variable declarations.
4623
4624 2002-04-04  Andreas Schwab  <schwab@suse.de>
4625
4626         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
4627
4628 2002-04-04  Andreas Jaeger  <aj@suse.de>
4629
4630         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
4631         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
4632
4633         * sysdeps/x86_64/fpu/s_fabs.c: New file.
4634         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
4635         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
4636
4637         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
4638
4639         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
4640
4641         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
4642         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
4643
4644         * configure.in: Handle all mips entries the same.
4645
4646         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
4647         * sysdeps/mips/mips3/*: Likewise.
4648         * sysdeps/mips/p40/bits/endian.h: Likewise.
4649
4650 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
4651
4652         * misc/dirname.c (dirname): Ignore trailing slashes at end of
4653         non-null result [PR libc/2600].
4654
4655         * misc/tst-dirname.c: Add more tests.
4656
4657 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
4658
4659         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
4660         define a code_set_name provide one based on the filename.
4661
4662         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
4663
4664 2001-12-28  Andreas Jaeger  <aj@suse.de>
4665
4666         * time/mktime.c (__mktime_internal): Check for year < 70
4667         [PR libc/2738].
4668
4669 2002-04-03  Andreas Jaeger  <aj@suse.de>
4670
4671         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
4672         shmat.
4673         Reported by Andi Kleen <ak@suse.de>.
4674
4675 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
4676
4677         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
4678         * sysdeps/generic/w_lgammaf.c: Likewise.
4679         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
4680
4681         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
4682         Adjust for new output format of the backtrace functions.
4683
4684         * misc/syslog.c (vsyslog): Only use cleanup handler if
4685         _LIBC_REENTRANT is defined [PR libc/2924].
4686
4687         * libio/Makefile (tests): Add bug-ungetwc2.
4688         * libio/bug-ungetwc2.c: New file.
4689
4690         * manual/install.texi: Typographical and grammatical cleanup.
4691         Patch by Dennis Grace <dgrace@us.ibm.com>.
4692
4693         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
4694         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
4695
4696         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
4697         always "&".  Adjust callers.
4698         Add "_" prefix to several generated definitions.
4699         Patch by paul@serice.net [PR libc/3158].
4700
4701 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4702
4703         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
4704         size of _dl_arm_cap_flags.
4705         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
4706
4707         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
4708         Define as 8.
4709
4710 2002-03-22  H.J. Lu  <hjl@gnu.org>
4711
4712         * scripts/firstversions.awk: Check the first version.
4713
4714 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4715
4716         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
4717         dependencies must be stable to work correctly.
4718         Reported by martin.lubich@datacon.at.
4719
4720         * libio/bug-ungetwc1.c: New file.
4721         * libio/Makefile (tests): Add bug-ungetwc1.
4722
4723         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
4724         if stream was last used for writing.
4725
4726         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
4727         number [PR libc/3111].
4728
4729         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
4730         to ...
4731         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
4732
4733 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
4734
4735         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
4736         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
4737         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
4738         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
4739         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
4740
4741 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
4742
4743         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
4744         dynamic tags.
4745
4746 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
4747
4748         * sysdeps/i386/fpu/s_fabs.S: New file.
4749         * sysdeps/i386/fpu/s_fabsf.S: New file.
4750         * sysdeps/i386/fpu/s_fabsl.S: New file.
4751         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
4752         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
4753         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
4754
4755 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4756
4757         * rt/tst-shm.c (do_test): Add one more test for size of shared
4758         memory object.
4759
4760 2002-03-29  Wolfram Gloger  <wg@malloc.de>
4761
4762         * malloc/malloc.c: Add short description and prototypes for
4763         malloc_get_state, malloc_set_state and posix_memalign, for
4764         consistency and to avoid warnings with -Wstrict-prototypes.
4765         Reported by Andreas Jaeger <aj@suse.de>.
4766
4767 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4768
4769         * po/gl.po: Update from translation team.
4770
4771 2002-03-31  Roland McGrath  <roland@frob.com>
4772
4773         * hurd/hurdselect.c (_hurd_select): Fix
4774         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
4775         Use a union rather than casts to compare mach_msg_type_t as int.
4776
4777 2002-03-25  Roland McGrath  <roland@frob.com>
4778
4779         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
4780         check off the end of NAME when it's shorter than 2 chars.
4781         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
4782
4783 2002-03-17  Roland McGrath  <roland@frob.com>
4784
4785         * sysdeps/mach/hurd/i386/sys/io.h: New file.
4786         * sysdeps/mach/hurd/i386/ioperm.c: New file.
4787         * sysdeps/mach/hurd/i386/Dist: Add them.
4788         * sysdeps/mach/hurd/i386/Versions
4789         (libc: GLIBC_2.2.6): New set, add ioperm.
4790         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
4791         (mach_interface_list): Check for mach_i386.defs.
4792         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
4793         * sysdeps/mach/configure: Regenerated.
4794
4795 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
4796
4797         * po/fr.po: Update from translation team.
4798
4799 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4800
4801         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
4802         getpriority from syscalls list.
4803
4804 2002-03-28  Andreas Jaeger  <aj@suse.de>
4805
4806         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
4807         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
4808         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
4809         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
4810
4811 2002-03-27  Andreas Jaeger  <aj@suse.de>
4812
4813         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4814         sigcontext): Follow further kernel change.
4815
4816         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
4817         kernel change.
4818
4819         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
4820         Change for struct sigcontext change.
4821
4822         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4823         Follow changes in struct sigcontext.
4824
4825         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
4826         sysycall, use wrapper instead.
4827
4828 2002-03-26  Andreas Jaeger  <aj@suse.de>
4829
4830         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
4831         read and write accesses as detailed as possible.
4832         (__memcpy_by2): Likewise.
4833         (__memcpy_g): Likewise.
4834         (memmove): Likewise.
4835         (memcmp): Likewise.
4836         (__memset_ccn_by4): Likewise.
4837         (__memset_ccn_by2): Likewise.
4838         (__memset_gcn_by4): Likewise.
4839         (__memset_gcn_by2): Likewise.
4840         (memchr): Likewise.
4841         (__memrchr): Likewise.
4842         (rawmemchr): Likewise.
4843         (__strlen_g): Likewise.
4844         (__strcpy_g): Likewise.
4845         (__mempcpy_by4): Likewise.
4846         (__mempcpy_by2): Likewise.
4847         (__mempcpy_byn): Likewise.
4848         (__stpcpy_g): Likewise.
4849         (__strncpy_by4): Likewise.
4850         (__strncpy_by2): Likewise.
4851         (__strncpy_byn): Likewise.
4852         (__strncpy_gg): Likewise.
4853         (__strcat_c): Likewise.
4854         (__strcat_g): Likewise.
4855         (__strncat_g): Likewise.
4856         (__strcmp_gg): Likewise.
4857         (__strncmp_g): Likewise.
4858         (__strchr_c): Likewise.
4859         (__strchr_g): Likewise.
4860         (__strchrnul_c): Likewise.
4861         (__strchrnul_g): Likewise.
4862         (__strrchr_c): Likewise.
4863         (__strrchr_g): Likewise.
4864         (__strrchr_c): Likewise.
4865         (__strrchr_g): Likewise.
4866         (__strcspn_c1): Likewise.
4867         (__strcspn_cg): Likewise.
4868         (__strcspn_g): Likewise.
4869         (__strcspn_g): Likewise.
4870         (__strspn_c1): Likewise.
4871         (__strspn_cg): Likewise.
4872         (__strspn_g): Likewise.
4873         (__strspn_g): Likewise.
4874         (__strpbrk_cg): Likewise.
4875         (__strpbrk_g): Likewise.
4876         (__strstr_cg): Likewise.
4877         (__strstr_g): Likewise.
4878
4879         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
4880         Michal Ludvig <mludvig@suse.cz>.
4881
4882         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
4883         compatibilty, adjust for kernel changes.
4884
4885         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4886         sigcontext): Adjust for kernel changes.
4887
4888 2002-03-25  Andreas Jaeger  <aj@suse.de>
4889
4890         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
4891         little endian.
4892         Reported by Artur Zaprzala <zybi@talex.com.pl>.
4893
4894 2002-03-24  Andreas Jaeger  <aj@suse.de>
4895
4896         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
4897
4898         * stdio-common/tst-fdopen.c (main): Remove unused variable.
4899
4900         * iconv/tst-iconv3.c (main): Use correct printf strings.
4901
4902 2002-03-18  Roland McGrath  <roland@frob.com>
4903
4904         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
4905         (CMGROUP_MAX): New macro.
4906
4907 2002-03-23  Roland McGrath  <roland@frob.com>
4908
4909         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
4910         * sysdeps/posix/shm_unlink.c: Likewise.
4911
4912 2002-03-22  Roland McGrath  <roland@frob.com>
4913
4914         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
4915         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
4916         under --enable-libio.
4917         * sysdeps/mach/hurd/configure: Regenerated.
4918
4919 2002-03-23  Roland McGrath  <roland@frob.com>
4920
4921         * sysdeps/mach/hurd/i386/Makefile
4922         (sysdep_routines, shared-only-routines): Don't add framestate,
4923         reverting 2001-10-02 change.
4924         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4925         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4926         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4927         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4928         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4929         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4930         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4931         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4932         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
4933         Do it here instead, only if [$(unwind-find-fde) = yes].
4934
4935 2002-03-23  Andreas Jaeger  <aj@suse.de>
4936
4937         * signal/signal.h: Fix typo. Patch by Steve Kemp
4938         <skx@tardis.ed.ac.uk>.
4939
4940 2002-03-22  Andreas Jaeger  <aj@suse.de>
4941
4942         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
4943         getresuid.
4944
4945         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4946         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
4947         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4948         user_fpregs_struct): Rename fwd.
4949
4950         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4951         Follow sigcontext changes.
4952
4953 2002-03-22  Andreas Jaeger  <aj@suse.de>
4954
4955         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
4956         changes for NaNs on MIPS.
4957         Patch by Hartvig Ekner <hartvige@mips.com>.
4958
4959 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
4960
4961         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
4962         Use realloc if too large.
4963         (addgrbyid): Likewise.
4964         * nscd/hstcache.c (addhstbyname): Likewise.
4965         (addhstbyaddr): Likewise.
4966         (addhstbynamev6): Likewise.
4967         (addhstbyaddrv6): Likewise.
4968         * nscd/pwdcache.c (addpwbyname): Likewise.
4969         (addpwbyuid): Likewise.
4970
4971 2002-03-21  Andreas Jaeger  <aj@suse.de>
4972
4973         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4974         _fpstate): Add separate struct for x86-64.
4975
4976         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4977         user_fpregs_struct): Change member names to follow kernel.
4978
4979 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
4980
4981         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
4982         Correctly close the UDP connection right away [PR libc/3120].
4983
4984 2002-03-20  Andreas Jaeger  <aj@suse.de>
4985
4986         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
4987         user_fpregs_struct): Fix for changed kernel struct.
4988         (struct user_regs_struct): Likewise.
4989         (struct user): Likewise.
4990         Add 32-bit x86 compatibility.
4991
4992         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
4993
4994 2002-03-19  Andreas Jaeger  <aj@suse.de>
4995
4996         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
4997
4998 2002-03-18  Andreas Jaeger  <aj@suse.de>
4999
5000         * iconvdata/Makefile: Only run tests when shared libs are
5001         available.
5002
5003 2002-03-17  Andreas Jaeger  <aj@suse.de>
5004
5005         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
5006
5007         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
5008
5009         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
5010         bits.
5011
5012         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
5013         (CAUSE_SHIFT): New.
5014         Patch by Hartvig Ekner <hartvige@mips.com>.
5015
5016         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
5017         * sysdeps/generic/unwind-pe.h: Likewise.
5018
5019         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
5020         type to _IO_setb.
5021
5022         * libio/stdio.c (AL2): Define variant when visibility attribute is
5023         not supported.
5024
5025         * include/libc-symbols.h (_INTVARDEF): Define variant when
5026         visibility attribute is not supported.
5027
5028 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
5029
5030         * po/fr.po: Update from translation team.
5031
5032 2002-02-25  Bruno Haible  <bruno@clisp.org>
5033
5034         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
5035
5036 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5037
5038         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
5039         buffers if _IO_file_attach failed.
5040
5041         * libio/fileops.c (_IO_file_open): Close file descriptor if
5042         _IO_SEEKOFF call failed.
5043
5044 2002-03-15  H.J. Lu  <hjl@gnu.org>
5045             Ulrich Drepper  <drepper@redhat.com>
5046
5047         * configure.in: Check for availability of
5048         init_array/fini_array/preinit_array handling in binutils.
5049         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
5050         * config.make.in (have-initfini-array): New variable.
5051
5052 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5053
5054         * stdio-common/tst-printf.c (main): Comment out one test which
5055         checked the compiler's ability to fold floating-point constants
5056         but not really printf.
5057         (rfg3): Make s const.
5058         * stdio-common/tst-printf.sh: Adjust for removed test.
5059
5060         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
5061         internal function.  Adjust for internal_function calling convention.
5062         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
5063         as internal_function.
5064
5065         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
5066         hidden.
5067
5068         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
5069         declaration and definition.
5070         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
5071         declaration.
5072         * nss/getXXent_r.c: Likewise.
5073         * nss/nsswitch.h (db_lookup_function): Add internal_function to
5074         definition.
5075
5076         * include/time.h: Declare __localtime_r as hidden.
5077
5078         * include/aliases.h: Declare __getaliasent_r as hidden.
5079         * include/grp.h: Declare __getgrent_r as hidden.
5080         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
5081         __getservent_r, and __getprotoent_r as hidden.
5082         * include/pwd.h: Declare __getpwent_r as hidden.
5083         * include/shadow.h: Declare __getspent_r as hidden.
5084         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
5085
5086         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
5087         and __gconv_transliterate as hidden.
5088         Add internal_function to __gconv_get_path declaration.
5089         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
5090         definition.  Add attribute_hidden to __gconv_read_conf definition.
5091
5092 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
5093
5094         * elf/rtld.c: Declare _environ as hidden.
5095         * sysdeps/generic/dl-environ.c: Likewise.
5096         * sysdeps/generic/dl-sysdep.c: Likewise.
5097
5098         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
5099         _dl_mcount_internal as hidden.
5100
5101         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
5102         * sysdeps/generic/dl-brk.c: New file.
5103         * sysdeps/generic/dl-sbrk.c: New file.
5104         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
5105         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
5106
5107         * elf/dl-minimal.c (malloc): Declare _end as hidden.
5108         (__errno_location): New function.  Declare errno as hidden.
5109         * elf/rtld.c (_dl_argc): Define as hidden.
5110         (_dl_skip_args): Define as hidden.
5111         (_begin, _end): Declare as hidden.
5112         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
5113         * sysdeps/generic/entry.h (_start): Declare as hidden.
5114         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
5115         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
5116         _dl_runtime_resolve and _dl_runtime_profile as hidden.
5117         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
5118
5119 2002-03-14  Roland McGrath  <roland@frob.com>
5120
5121         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
5122
5123         * Makeconfig (%.v.i, %.v): New implicit rules.
5124         (preprocess-versions): Variable removed.
5125         ($(common-objpfx)shlib-versions.v.i): New target giving just the
5126         shlib-versions input files as dependencies.
5127         ($(common-objpfx)soversions.i): Depend on that instead of the input
5128         files.  Use it as input instead of using a pipeline.
5129         (postclean-generated): Append soversions.i, shlib-versions.v, and
5130         shlib-versions.v.i here.
5131         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
5132         the Versions.def input files as dependencies.
5133         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
5134         ($(common-objpfx)Versions.all): Depend on that instead of the input
5135         files.  Use it as input instead of using a pipeline.
5136         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
5137         (postclean-generated): Append those .v and .v.i files here.
5138
5139 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5140
5141         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
5142         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
5143         Remove.
5144
5145 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5146
5147         * sysdeps/generic/mp_clz_tab.c: New file.
5148         * sysdeps/i386/mp_clz_tab.c: New file.
5149         * sysdeps/hppa/mp_clz_tab.c: New file.
5150         * sysdeps/powerpc/mp_clz_tab.c: New file.
5151         * stdlib/Makefile (aux): Revert last patch.
5152         * math/Makefile (gmp-objs): Likewise.
5153
5154 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5155
5156         * time/strftime.c: Comment fixes for references to obsolescent
5157         standards, In most cases the simplest fix is to remove the
5158         confusing comments.  Cross-referencing all the standards properly
5159         is a bit of a pain, and it should be enough to put that info in
5160         the documentation as I did in my recent time.texi patch.
5161
5162 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5163
5164         * manual/time.texi (Formatting Calendar Time):
5165         ISO C99 also specifies the E and O modifiers.
5166         %P is a GNU extension, and is not in ISO C99.
5167         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
5168         %T is also in ISO C99.
5169         The RFC 822 example is not valid in arbitrary locales.
5170         Reword the POSIX.2 wording slightly, to make it a bit clearer
5171         that POSIX.2 formats are also supported by later POSIX versions.
5172         If a format was introduced in ISO C99 it is also required by
5173         POSIX.1-2001.
5174
5175 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5176
5177         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
5178         _sys_nerr_internal with INTVARDEF2.
5179         * include/libc-symbols.h (INTVARDEF2): New macro.
5180         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
5181         (_sys_nerr_internal): Library.
5182
5183         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
5184         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
5185
5186         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
5187
5188 2002-03-13  Wolfram Gloger  <wg@malloc.de>
5189
5190         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
5191
5192 2002-03-02  Andreas Schwab  <schwab@suse.de>
5193
5194         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
5195         'h' flag and positional arg.
5196         * stdio-common/tst-printf.c (rfg3): New function to test
5197         positional arguments.
5198         (main): Fix some warnings.
5199
5200 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5201
5202         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
5203         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5204
5205 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5206
5207         * grp/initgroups.c (__nss_group_data): Declare as hidden.
5208
5209         * include/locale.h (_nl_C_locobj): Declare as hidden.
5210
5211         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
5212         * time/strptime.c (_nl_C_LC_TIME): Likewise.
5213
5214         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
5215
5216         * include/sys/gmon.h: Declare _gmonparam as hidden.
5217
5218         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
5219         (__ctype32_wctrans): Likewise.
5220         (__ctype32_width): Likewise.
5221
5222         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
5223         use of __ttyname.
5224
5225         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
5226         Define as hidden.
5227         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
5228         hidden.  Change all users of these variables.
5229
5230         * posix/regex_internal.h (__re_error_msgid): Renamed from
5231         re_error_msgid.  Declare as hidden.
5232         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
5233         hidden.
5234
5235         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
5236         (__printf_function_table): Likewise.
5237         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
5238         hidden.
5239         (__printf_function_table): Likewise.
5240
5241         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
5242         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
5243
5244         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
5245         * nss/nsswitch.c: Declare _nss_*_database as hidden.
5246
5247         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
5248         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
5249
5250 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
5251
5252         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
5253         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5254         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5255         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5256         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5257         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5258         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5259         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5260         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
5261         _nl_C_LC_CTYPE_width: Declare as hidden.
5262         * include/locale.h: Declare _nl_locale_file_list.
5263         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
5264         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
5265         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
5266         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
5267         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
5268         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
5269         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
5270         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
5271         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
5272         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
5273         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
5274         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
5275         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5276         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5277         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5278         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5279         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5280         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5281         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5282         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
5283         _nl_C_LC_CTYPE_width, and as hidden.
5284         * locale/findlocale.c: Declare _nl_C as hidden.
5285         * locale/newlocale.c: Likewise.
5286         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
5287         _nl_locale_file_list.
5288         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
5289         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
5290         Define _nl_C_locobj as hidden.
5291
5292         * malloc/mtrace.c (_mtrace_file): Define as hidden.
5293         (_mtrace_line): Likewise.
5294
5295         * include/time.h: Declare __mon_yday as hidden.
5296         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
5297
5298         * libio/libioP.h: Declare __libio_codecvt as hidden.
5299         * libio/fileops.c: Declare __libio_translit as hidden.
5300         * libio/iofwide.c: Define __libio_translit as hidden.
5301
5302         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
5303         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
5304         * login/getutline_r.c: Likewise.
5305         * login/utmpname.c: Likewise.
5306
5307         * login/utmp-private.h: Declare __libc_utmp_file_functions,
5308         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
5309         __libc_utmp_file_name as hidden.
5310
5311         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
5312         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
5313         * locale/freelocale.c: Likewise.
5314         * locale/lc-time.c: Likewise.
5315
5316         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
5317         (__libc_ptyname2): Likewise.
5318         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
5319         hidden.
5320         (__libc_ptyname2): Likewise.
5321
5322         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
5323         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
5324         * sysdeps/generic/init-first.c: Likewise.
5325         * sysdeps/i386/init-first.c: Likewise.
5326         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5327         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5328         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5329         * sysdeps/sh/init-first.c: Likewise.
5330         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5331         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5332
5333         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
5334         (_itowa_upper_digits): Likewise.
5335
5336         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
5337         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
5338         as hidden.
5339
5340         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
5341         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
5342         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
5343         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
5344
5345         * gmon/gmon.c (__bb_head): Define as hidden.
5346         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
5347
5348         * argp/argp-parse.c (_argp_hang): Define as static.
5349
5350         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
5351         handling in latest compilers.
5352
5353         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
5354         define alias.
5355         * libio/fileops.c (_IO_file_jumps): Likewise.
5356         * libio/stdfiles.c (_IO_list_all): Likewise.
5357         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
5358
5359         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
5360         include/malloc.h.
5361         * include/malloc.h: Add __libc_malloc_initialized declaration
5362         here.  Mark variable hidden.
5363         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
5364
5365         * elf/dl-open.c (__libc_argc): Declare as hidden.
5366         (__libc_argv): Likewise.
5367         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
5368         (__libc_argv): Likewise.
5369         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
5370         __libc_argv as hidden.
5371         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5372         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5373         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5374         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5375
5376         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
5377         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
5378         * stdlib/erand48.c: Likewise.
5379         * stdlib/jrand48.c: Likewise.
5380         * stdlib/lcong48.c: Likewise.
5381         * stdlib/lrand48.c: Likewise.
5382         * stdlib/mrand48.c: Likewise.
5383         * stdlib/nrand48.c: Likewise.
5384         * stdlib/seed48.c: Likewise.
5385         * stdlib/srand48.c: Likewise.
5386
5387         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
5388         (_itoa_lower_digits_internal): New declaration.
5389         (_itoa_upper_digits_internal): New declaration.
5390         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
5391         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
5392         (_itoa_upper_digits_internal): New declaration.
5393         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
5394         _itoa_lower_digits.
5395         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
5396         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
5397
5398         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
5399         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5400
5401         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
5402         (_itowa_lower_digits): Likewise.
5403         (_itowa_upper_digits): Likewise.
5404         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
5405         (_itowa_upper_digits): Likewise.
5406
5407         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
5408         not already defined.
5409         (GERMANIC_PLURAL): Declare as hidden.
5410
5411         * posix/getopt.c (__getopt_initialized): Declare as hidden.
5412         (attribute_hidden): Define as empty macro if not already defined.
5413
5414         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
5415         (__gconv_max_path_elem_len): Likewise.
5416         (__gconv_path_envvar): Likewise.
5417
5418         * math/Makefile (gmp-objs): Remove mp_clz_tab.
5419         * stdlib/Makefile (aux): Remove mp_clz_tab.
5420         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
5421
5422         * stdlib/exit.h (__exit_funcs): Declare as hidden.
5423
5424         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
5425
5426         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
5427         _nl_category_names, _nl_category_name_sizes, _nl_current,
5428         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
5429
5430         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
5431         (_nl_current_default_domain): Likewise
5432         (_nl_state_lock): Likewise.
5433         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
5434         (_nl_current_default_domain): Likewise
5435         (_nl_state_lock): Likewise.
5436         * intl/bindtextdom.c (_nl_state_lock): Likewise.
5437
5438         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
5439         (_fpioconst_pow10): Likewise.
5440
5441         * include/time.h (_tmbuf): Add attribute_hidden.
5442
5443         * time/tzset.c (tzstring_list): Define as static.
5444
5445         * include/time.h: Add attribute_hidden to __tzname_cur_max and
5446         __use_tzfile declaration.
5447
5448         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
5449         and __wcsmbs_last_locale declaration.
5450
5451 2002-02-25  Paul Eggert  <eggert@twinsun.com>
5452
5453         * timezone/Makefile (tzbases): Move systemv from here...
5454         (tzlinks): to here, since the entries in systemv were all changed
5455         from Zone to Link lines in tz-2001a.  Bug reported (and patch
5456         tested) by Peter Breitenlohner.
5457
5458 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
5459
5460         * time/tst-posixtz.c (tests): Add new tests.
5461         (main): Test whether tzset() sets daylight properly.
5462
5463 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5464
5465         * time/tzset.c (tz_compute): Move __daylight, __tzname and
5466         __tzname_cur_max setting...
5467         (tzset_internal): ...here.
5468
5469 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5470
5471         * time/tzset.c (compute_change): Don't return any value.
5472         (tz_compute): Likewise.  Don't handle southern hemisphere here.
5473         (__tz_convert): But here.
5474
5475 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5476
5477         * manual/examples/mkfsock.c: Include <string.h> as well.
5478         Patch by Alain De Carolis <alaind@wseurope.com>.
5479
5480 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
5481
5482         * posix/regexec.c (re_match): Fix incorrect register sizes.
5483         (re_search): Likewise.
5484
5485 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5486
5487         * posix/regcomp.c (regfree): Remove a disused condition.
5488         * posix/regex_internal.c (re_acquire_state): Likewise.
5489         (re_acquire_state_context): Likewise.
5490         (register_state): Remove a redundant malloc invocation.
5491         * posix/regex_internal.h: (re_state_table_entry): Simplify
5492         the structure.
5493
5494 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5495
5496         * posix/regcomp.c (regcomp): Add __builtin_expect to error
5497         handling conditions.
5498         (regerror): Likewise.
5499         (regfree): Likewise.
5500         (re_compile_internal): Likewise.
5501         (init_dfa): Likewise.
5502         (init_word_char): Likewise.
5503         (create_initial_state): Likewise.
5504         (analyze): Likewise.
5505         (analyze_tree): Likewise.
5506         (duplicate_node): Likewise.
5507         (calc_eclosure): Likewise.
5508         (calc_eclosure_iter): Likewise.
5509         (parse): Likewise.
5510         (parse_reg_exp): Likewise.
5511         (parse_branch): Likewise.
5512         (parse_expression): Likewise.
5513         (parse_subexp): Likewise.
5514         (parse_dup_op): Likewise.
5515         (parse_bracket_exp): Likewise.
5516         (build_equiv_class): Likewise.
5517         (build_charclass): Likewise.
5518         (build_word_op): Likewise.
5519         (fetch_number): Likewise.
5520         (create_tree): Likewise.
5521         (duplicate_tree): Likewise.
5522         * posix/regex.c (BE): New macro.
5523         * posix/regexec.c (re_match): Add __builtin_expect to error
5524         handling conditions.
5525         (re_match_2): Likewise.
5526         (re_search): Likewise.
5527         (re_search_internal): Likewise.
5528         (check_matching): Likewise.
5529         (proceed_next_node): Likewise.
5530         (set_regs): Likewise.
5531         (sift_states_backward): Likewise.
5532         (add_epsilon_backreference): Likewise.
5533         (transit_state): Likewise.
5534         (transit_state_sb): Likewise.
5535         (transit_state_mb): Likewise.
5536         (transit_state_bkref): Likewise.
5537         (transit_state_bkref_loop): Likewise.
5538         (build_trtable): Likewise.
5539         (group_nodes_into_DFAstates): Likewise.
5540         (match_ctx_init): Likewise.
5541         (match_ctx_add_entry): Likewise.
5542         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
5543         to error handling conditions.
5544         (re_string_construct_toupper): Likewise.
5545         (build_wcs_buffer): Likewise.
5546         (build_wcs_upper_buffer): Likewise.
5547         (build_upper_buffer): Likewise.
5548         (re_string_translate_buffer): Likewise.
5549         (re_node_set_alloc): Likewise.
5550         (re_node_set_init_1): Likewise.
5551         (re_node_set_init_2): Likewise.
5552         (re_node_set_init_copy): Likewise.
5553         (re_node_set_intersect): Likewise.
5554         (re_node_set_init_union): Likewise.
5555         (re_node_set_merge): Likewise.
5556         (re_node_set_insert): Likewise.
5557         (re_dfa_add_node): Likewise.
5558         (re_acquire_state): Likewise.
5559         (re_acquire_state_context): Likewise.
5560         (create_new_state_common): Likewise.
5561         (register_state): Likewise.
5562         (create_ci_new_state): Likewise.
5563         (create_cd_new_state): Likewise.
5564         (re_string_context_at): Remove redundant condition.
5565
5566 2002-01-16  Roger Sayle  <roger@eyesopen.com>
5567
5568         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
5569
5570         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
5571
5572 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
5573
5574         * sysdeps/i386/elf/configure.in: Fix comment.
5575
5576         * sysdeps/sparc/sparc64/configure.in: New.
5577         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
5578         if .dynamic comes before .got.
5579         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
5580
5581         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
5582         HP_TIMING_ACCUM): Fix typos.
5583
5584 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5585
5586         * string/strfry.c: Add some more randomness to the seed.
5587         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
5588
5589         * po/es.po: Update from translation team.
5590         * po/fr.po: Likewise.
5591
5592         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
5593
5594         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
5595         when determining type of format.
5596         Patch by James Antill <james@anqd.org> [PR libc/2787].
5597
5598 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
5599
5600         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
5601
5602 2002-03-11  Roland McGrath  <roland@frob.com>
5603
5604         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
5605
5606         * Versions.def (libc): Add GLIBC_2.2.6.
5607         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
5608         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
5609         __errno_location instead of __hurd_errno_location, and don't inline it.
5610         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5611         * hurd/errno.c: New file.
5612         * hurd/Makefile (routines): Add errno.
5613
5614 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5615
5616         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
5617         ridiculously large widths and precisions [PR libc/3026].
5618
5619 2002-03-11  Andreas Jaeger  <aj@suse.de>
5620
5621         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
5622         support.
5623         Patch by Susanne Oberhauser <froh@SuSE.de>.
5624
5625 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5626
5627         * inet/rexec.c (ahostbuf): Define as static.
5628
5629         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
5630         (__ctype32_wctrans): Likewise.
5631         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
5632         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
5633         (__ctype32_wctrans): Likewise.
5634         (__ctype32_width): Likewise.
5635
5636         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
5637         They were never exported anyway.
5638
5639         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
5640         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
5641         exported.
5642         * include/sys/gmon.h: Declare _gmonparam.
5643
5644         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
5645         symbols for getdents64.  They were never exported.
5646
5647 2002-03-09  Roland McGrath  <roland@frob.com>
5648
5649         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
5650         Reported by Jon Arney <jarney1@cox.net>.
5651
5652 2002-02-23  Roland McGrath  <roland@frob.com>
5653
5654         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
5655         declaration.
5656         (__hurd_errno_location): Function removed.
5657
5658 2002-03-06  Andreas Jaeger  <aj@suse.de>
5659
5660         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
5661         32-bit.
5662
5663 2002-03-04  Andreas Jaeger  <aj@suse.de>
5664
5665         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
5666
5667         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
5668         x86-64.
5669
5670         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
5671
5672         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
5673
5674         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
5675
5676         * sysdeps/x86_64/bits/setjmp.h: New.
5677
5678         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
5679
5680         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
5681
5682         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
5683         for x86.
5684         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
5685         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
5686
5687 2002-02-28  Bo Thorsen  <bo@suse.de>
5688
5689         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
5690         version.
5691
5692 2002-03-03  Andreas Jaeger  <aj@suse.de>
5693
5694         * sysdeps/x86_64/bits/wordsize.h: New file.
5695
5696         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
5697         * elf/tst-tlsmod1.c: Likewise.
5698
5699         * posix/regcomp.c: Get regex.h from include dir for internal
5700         prototypes.
5701
5702         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
5703         to libc-internal.h and include it.
5704         * include/libc-internal.h: Add __init_misc.
5705
5706         * misc/init-misc.c: Include libc-internal.h for prototypes.
5707
5708         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
5709
5710         * misc/error.c [_LIBC]: Include libioP.h for prototype of
5711         _IO_putc_internal.
5712
5713 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
5714
5715         * posix/regcomp.c: Compatibility changes to allow using the code
5716         outside glibc.
5717
5718 2002-02-28  Hartvig Ekner <hartvige@mips.com>
5719
5720         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
5721         compiled non-PIC.
5722
5723 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
5724
5725         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
5726         of .str elements in the returned data structure.
5727
5728         * elf/elf.h: Add Alpha TLS bits.
5729
5730 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5731
5732         * sysdeps/unix/sysv/linux/nice.c: New file.
5733
5734 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
5735
5736         * elf/Makefile (dl-routines): Add dl-origin.
5737         (elide-routines.os): Add dl-origin.
5738         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
5739         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
5740         _dl_debug_state.
5741         * include/libc-symbols.c: Define attribute_hidden depending on
5742         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
5743
5744         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
5745         * elf/dl-load.c: Likewise.
5746         * elf/rtld.c: Likewise.
5747         * include/unistd.h: Declare __libc_enable_secure_internal.
5748         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
5749         Use INTUSE with __libc_enable_secure.
5750         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5751
5752         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
5753         * elf/dl-error.c: Likewise,
5754         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
5755
5756         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
5757         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
5758         function definition.  Use INTDEF with _dl_get_origin.
5759         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
5760
5761         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
5762         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
5763
5764         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
5765         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
5766         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
5767
5768         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
5769         * elf/dl-deps.c: Likewise.
5770         * elf/dl-error.c: Likewise.
5771         * elf/dl-fini.c: Likewise.
5772         * elf/dl-init.c: Likewise.
5773         * elf/dl-load.c: Likewise.
5774         * elf/dl-lookup.c: Likewise.
5775         * elf/dl-reloc.c: Likewise.
5776         * elf/dl-version.c: Likewise.
5777         * elf/do-lookup.h: Likewise.
5778         * sysdeps/arm/dl-machine.h: Likewise.
5779         * sysdeps/cris/dl-machine.h: Likewise.
5780         * sysdeps/hppa/dl-machine.h: Likewise.
5781         * sysdeps/i386/dl-machine.h: Likewise.
5782         * sysdeps/m68k/dl-machine.h: Likewise.
5783         * sysdeps/powerpc/dl-machine.h: Likewise.
5784         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5785         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5786         * sysdeps/sh/dl-machine.h: Likewise.
5787         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
5788         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
5789         * sysdeps/x86_64/dl-machine.h: Likewise.
5790         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
5791         _dl_argv[0].  Use INTUSE with _dl_argv.
5792         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
5793         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
5794
5795 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5796
5797         * elf/rtld.c (_rtld_global): Remove .protected.
5798         (_rtld_local): Strong alias to _rtld_global.
5799         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
5800         only .os object.
5801         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
5802         _rtld_local instead of _rtld_global.
5803         (_rtld_local): Add hidden extern, possibly in .sdata section.
5804         * configure.in: Add tests for visibility attribute and .sdata.
5805         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
5806         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
5807         * sysdeps/arm/dl-machine.h: Likewise.
5808         * sysdeps/generic/ldsodefs.h: Likewise.
5809         * sysdeps/hppa/dl-machine.h: Likewise.
5810         * sysdeps/cris/dl-machine.h: Likewise.
5811         * sysdeps/i386/dl-machine.h: Likewise.
5812         * sysdeps/ia64/dl-machine.h: Likewise.
5813         * sysdeps/m68k/dl-machine.h: Likewise.
5814         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5815         * sysdeps/mips/dl-machine.h: Likewise.
5816         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5817         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5818         * sysdeps/sh/dl-machine.h: Likewise.
5819         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5820         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5821         * sysdeps/x86_64/dl-machine.h: Likewise.
5822
5823 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
5824
5825         * login/login.c (login): Always initialize ut_line field
5826         [PR libc/2991].
5827
5828 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5829
5830         * sysdeps/i386/Makefile (sysdep_routines): Add
5831         divdi3 in csu dir.
5832         (shared-only-routines): Likewise.
5833         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
5834         (shared-only-routines): Likewise.
5835         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
5836         (shared-only-routines): Likewise.
5837         * sysdeps/wordsize-32/divdi3.c: New file.
5838
5839 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
5840
5841         * locale/iso-4217.def: Remove obsolete currencies for countries
5842         with Euro.
5843
5844 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
5845
5846         * posix/regcomp.c (regcomp): Remove a redundant condition.
5847         (init_word_char): Add a check on malloc failure.
5848         (create_initial_state): Likewise.
5849         (duplicate_node): Likewise.
5850         (calc_eclosure): Likewise.
5851         (calc_eclosure_iter): Likewise.
5852         (parse_expression): Likewise.
5853         (parse_bracket_exp): Remove unnecessary malloc invocations.
5854         (build_equiv_class): Likewise.
5855         (build_charclass): Likewise.
5856         * posix/regex_internal.c (re_node_set_intersect): Add a check
5857         on malloc failure.
5858         (re_node_set_add_intersect): Likewise.
5859         (re_node_set_merge): Likewise.
5860         (re_acquire_state): Likewise.
5861         (re_acquire_state_context): Likewise.
5862         (create_newstate_common): Likewise.
5863         (register_state): Likewise.
5864         (create_ci_newstate): Likewise.
5865         (create_cd_newstate): Likewise.
5866         * posix/regex_internal.h: Fix prototypes of re_acquire_state
5867         and re_acquire_state_context.
5868         * posix/regexec.c (regexec): Suit it to the error handling of
5869         re_search_internal.
5870         (re_match): Likewise.
5871         (re_search): Likewise.
5872         (re_search_internal): Add a check on malloc failure.
5873         (acquire_init_state_context): Likewise.
5874         (check_matching): Likewise.
5875         (proceed_next_node): Likewise.
5876         (set_regs): Likewise.
5877         (sift_states_backward): Likewise.
5878         (sift_states_iter_bkref): Likewise.
5879         (add_epsilon_backreference): Likewise.
5880         (transit_state): Likewise.
5881         (transit_state_sb): Likewise.
5882         (transit_state_mb): Likewise.
5883         (transit_state_bkref_loop): Likewise.
5884         (build_trtable): Likewise.
5885         (group_nodes_into_DFAstates): Likewise.
5886         (match_ctx_init): Likewise.
5887         (match_ctx_add_entry): Likewise.
5888
5889 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
5890
5891         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
5892         l_libname if profiling is enabled [PR libc/2916].
5893
5894         * sysdeps/ia64/dl-tls.h: New file.
5895
5896 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
5897
5898         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
5899         Work around an Alpha gas bug.
5900
5901 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
5902
5903         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
5904         uses read to load the catalog.
5905         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
5906
5907 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
5908
5909         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
5910         regex_internal.c, and regex_internal.h.
5911         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
5912         * posix/regex.c: Complete rewrite.
5913         * posix/regexec.c: New file.
5914         * posix/regcomp.c: New file.
5915         * posix/regex_internal.c: New file.
5916         * posix/regex_internal.h: New file.
5917         * posix/regex.h (RE_ICASE): New macro.
5918         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
5919
5920         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
5921         ungetwc.  It's a macro.
5922         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
5923         implementation.
5924         Reported by Jason Merrill <jason@redhat.com>.
5925
5926 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5927
5928         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
5929         position to fp->_offset if it is set.
5930         * stdio-common/Makefile (tests): Add tst-fdopen.
5931         * stdio-common/tst-fdopen.c: New test.
5932
5933 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5934
5935         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
5936         * stdio-common/tst-ungetc.c (main): Add another test.
5937
5938 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
5939
5940         * assert/assert-perr.c: Use INTUSE to reference functions and variables
5941         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
5942         aliases.  Add prototypes for the new aliases.
5943         * assert/assert.c: Likewise.
5944         * include/libc-symbols.h: Likewise.
5945         * include/stdio.h: Likewise.
5946         * include/netinet/in.h: Likewise.
5947         * include/rpc/auth.h: Likewise.
5948         * include/rpc/auth_unix.h: Likewise.
5949         * include/rpc/key_prot.h: Likewise.
5950         * include/rpc/pmap_prot.h: Likewise.
5951         * include/rpc/pmap_rmt.h: Likewise.
5952         * include/rpc/rpc_msg.h: Likewise.
5953         * include/rpc/xdr.h: Likewise.
5954         * inet/gethstbyad_r.c: Likewise.
5955         * inet/gethstbynm2_r.c: Likewise.
5956         * inet/gethstbynm_r.c: Likewise.
5957         * inet/gethstent_r.c: Likewise.
5958         * inet/in6_addr.c: Likewise.
5959         * libio/__fpurge.c: Likewise.
5960         * libio/filedoalloc.c: Likewise.
5961         * libio/fileops.c: Likewise.
5962         * libio/ftello.c: Likewise.
5963         * libio/ftello64.c: Likewise.
5964         * libio/genops.c: Likewise.
5965         * libio/iofclose.c: Likewise.
5966         * libio/iofdopen.c: Likewise.
5967         * libio/iofflush.c: Likewise.
5968         * libio/iofflush_u.c: Likewise.
5969         * libio/iofgetpos.c: Likewise.
5970         * libio/iofgetpos64.c: Likewise.
5971         * libio/iofgets.c: Likewise.
5972         * libio/iofgets_u.c: Likewise.
5973         * libio/iofopen.c: Likewise.
5974         * libio/iofopncook.c: Likewise.
5975         * libio/iofputs.c: Likewise.
5976         * libio/iofread.c: Likewise.
5977         * libio/iofread_u.c: Likewise.
5978         * libio/iofsetpos.c: Likewise.
5979         * libio/iofsetpos64.c: Likewise.
5980         * libio/ioftell.c: Likewise.
5981         * libio/iofwrite.c: Likewise.
5982         * libio/iogetline.c: Likewise.
5983         * libio/iogets.c: Likewise.
5984         * libio/iogetwline.c: Likewise.
5985         * libio/iolibio.h: Likewise.
5986         * libio/iopadn.c: Likewise.
5987         * libio/iopopen.c: Likewise.
5988         * libio/ioseekoff.c: Likewise.
5989         * libio/ioseekpos.c: Likewise.
5990         * libio/iosetbuffer.c: Likewise.
5991         * libio/iosetvbuf.c: Likewise.
5992         * libio/ioungetc.c: Likewise.
5993         * libio/ioungetwc.c: Likewise.
5994         * libio/iovdprintf.c: Likewise.
5995         * libio/iovsprintf.c: Likewise.
5996         * libio/iovsscanf.c: Likewise.
5997         * libio/libioP.h: Likewise.
5998         * libio/memstream.c: Likewise.
5999         * libio/obprintf.c: Likewise.
6000         * libio/oldfileops.c: Likewise.
6001         * libio/oldiofclose.c: Likewise.
6002         * libio/oldiofdopen.c: Likewise.
6003         * libio/oldiofgetpos.c: Likewise.
6004         * libio/oldiofgetpos64.c: Likewise.
6005         * libio/oldiofopen.c: Likewise.
6006         * libio/oldiofsetpos.c: Likewise.
6007         * libio/oldiofsetpos64.c: Likewise.
6008         * libio/oldiopopen.c: Likewise.
6009         * libio/oldstdfiles.c: Likewise.
6010         * libio/putc.c: Likewise.
6011         * libio/setbuf.c: Likewise.
6012         * libio/setlinebuf.c: Likewise.
6013         * libio/stdfiles.c: Likewise.
6014         * libio/stdio.c: Likewise.
6015         * libio/strops.c: Likewise.
6016         * libio/vasprintf.c: Likewise.
6017         * libio/vscanf.c: Likewise.
6018         * libio/vsnprintf.c: Likewise.
6019         * libio/vswprintf.c: Likewise.
6020         * libio/wfiledoalloc.c: Likewise.
6021         * libio/wfileops.c: Likewise.
6022         * libio/wgenops.c: Likewise.
6023         * libio/wstrops.c: Likewise.
6024         * malloc/mtrace.c: Likewise.
6025         * misc/error.c: Likewise.
6026         * misc/syslog.c: Likewise.
6027         * nss/getXXbyYY_r.c: Likewise.
6028         * nss/getXXent_r.c: Likewise.
6029         * nss/hosts-lookup.c: Likewise.
6030         * stdio-common/getw.c
6031         * stdio-common/printf-prs.c: Likewise.
6032         * stdio-common/printf_fp.c: Likewise.
6033         * stdio-common/printf_size.c: Likewise.
6034         * stdio-common/putw.c: Likewise.
6035         * stdio-common/scanf.c: Likewise.
6036         * stdio-common/sprintf.c: Likewise.
6037         * stdio-common/tmpfile64.c: Likewise.
6038         * stdio-common/vfprintf.c: Likewise.
6039         * stdio-common/vfscanf.c: Likewise.
6040         * stdlib/strfmon.c: Likewise.
6041         * sunrpc/auth_des.c: Likewise.
6042         * sunrpc/auth_none.c: Likewise.
6043         * sunrpc/auth_unix.c: Likewise.
6044         * sunrpc/authdes_prot.c: Likewise.
6045         * sunrpc/authuxprot.c: Likewise.
6046         * sunrpc/clnt_perr.c: Likewise.
6047         * sunrpc/clnt_raw.c: Likewise.
6048         * sunrpc/clnt_tcp.c: Likewise.
6049         * sunrpc/clnt_udp.c: Likewise.
6050         * sunrpc/clnt_unix.c: Likewise.
6051         * sunrpc/key_call.c: Likewise.
6052         * sunrpc/key_prot.c: Likewise.
6053         * sunrpc/openchild.c: Likewise.
6054         * sunrpc/pm_getmaps.c: Likewise.
6055         * sunrpc/pm_getport.c: Likewise.
6056         * sunrpc/pmap_clnt.c: Likewise.
6057         * sunrpc/pmap_prot.c: Likewise.
6058         * sunrpc/pmap_prot2.c: Likewise.
6059         * sunrpc/pmap_rmt.c: Likewise.
6060         * sunrpc/rpc_cmsg.c: Likewise.
6061         * sunrpc/rpc_prot.c: Likewise.
6062         * sunrpc/svc_authux.c: Likewise.
6063         * sunrpc/svc_raw.c: Likewise.
6064         * sunrpc/svc_simple.c: Likewise.
6065         * sunrpc/svc_tcp.c: Likewise.
6066         * sunrpc/svc_udp.c: Likewise.
6067         * sunrpc/svc_unix.c: Likewise.
6068         * sunrpc/xdr.c: Likewise.
6069         * sunrpc/xdr_array.c: Likewise.
6070         * sunrpc/xdr_mem.c: Likewise.
6071         * sunrpc/xdr_rec.c: Likewise.
6072         * sunrpc/xdr_ref.c: Likewise.
6073         * sunrpc/xdr_stdio.c: Likewise.
6074         * sysdeps/generic/_strerror.c: Likewise.
6075         * sysdeps/generic/printf_fphex.c: Likewise.
6076         * sysdeps/generic/tmpfile.c: Likewise.
6077         * sysdeps/gnu/errlist.awk: Likewise.
6078         * sysdeps/gnu/errlist.c: Likewise.
6079
6080         * libio/Makefile (routines): Remove iosprint.
6081         * libio/iosprintf.c: Removed
6082
6083
6084 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
6085
6086         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
6087         non_dynamic_init and exported now.
6088         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
6089         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
6090         !SHARED.
6091         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6092         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6093         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6094
6095 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
6096
6097         * elf/dl-close.c (free_slotinfo): Check for end of list and return
6098         true in this case.
6099
6100         * locale/iso-639.def: Add language codes for Walloon.
6101
6102         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
6103         total number of relocations performed.
6104
6105         * elf/sprof.c (load_profdata): If do_test provide information as
6106         to why loading failed.
6107         * elf/dl-profile.c (_dl_start_profile): Initialize all of
6108         hist_hdr.dimen.
6109
6110         * csu/set-init.c: Moved to...
6111         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
6112         * csu/Makefile: Don't compile set-init.
6113         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
6114         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
6115         to __libc_init.
6116         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6117         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6118         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
6119         __libc_init.
6120         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
6121         __libc_subinit.
6122
6123 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
6124
6125         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
6126         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
6127         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
6128         (_dl_deallocate_tls): New function.
6129         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
6130         _dl_deallocate_tls.
6131
6132 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6133
6134         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
6135         * stdio-common/tst-fseek.c (main): Add test for this.
6136
6137 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
6138
6139         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
6140
6141 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
6142
6143         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
6144         pointer before dereferencing.
6145
6146 2002-02-18  Roland McGrath  <roland@frob.com>
6147
6148         * sysdeps/mach/hurd/times.c: Fix typo in last change.
6149
6150         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
6151         Use task_policy in place of task_priority.
6152
6153         * sysdeps/generic/bits/mman.h
6154         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
6155         * sysdeps/mach/msync.c: New file.
6156
6157         * sysdeps/mach/powerpc/syscall.S: New file.
6158
6159         * mach/msg.c [MACH_MSG_OVERWRITE]
6160         (__mach_msg_trap, __mach_msg_overwrite): New functions.
6161         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
6162
6163         * sysdeps/mach/configure.in: Check for clock.defs to put into
6164         mach_interface_list.
6165         * sysdeps/mach/configure: Regenerated.
6166
6167         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
6168         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
6169         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
6170         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
6171         (mach-shortcuts): Add device_read_overwrite_request,
6172         device_read_overwrite, vm_read_overwrite, thread_switch.
6173
6174         * configure.in (base_machine): Set to $machine by default.
6175         * configure: Regenerated.
6176
6177         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
6178         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
6179         * sysdeps/mach/configure: Regenerated.
6180         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
6181
6182         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
6183
6184         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
6185
6186         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
6187         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
6188
6189 2002-02-17  Roland McGrath  <roland@frob.com>
6190
6191         * sysdeps/mach/hurd/times.c
6192         [NO_CREATION_TIME] (startup_time): New static variable.
6193         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
6194         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
6195         creation_time from task_basic_info.
6196         (__times): Use __gettimeofday instead of __host_get_time.
6197
6198         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
6199         Use untyped Mach IPC message format.
6200
6201         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
6202
6203         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
6204         _S_catch_exception_raise_state_identity,
6205         _hurdsig_fault_catch_exception_raise_state,
6206         _hurdsig_fault_catch_exception_raise_state_identity.
6207
6208         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
6209
6210         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
6211         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
6212
6213         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
6214         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
6215
6216         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
6217         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
6218         them as no-op macros.
6219         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
6220         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
6221
6222         * sysdeps/powerpc/dl-machine.h
6223         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
6224
6225         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
6226         Use untyped Mach IPC message format.
6227
6228         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
6229         Handle untyped Mach IPC message formats.
6230
6231         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
6232         Expect different argument conventions when this is defined.
6233         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
6234         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
6235         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
6236         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
6237         for OSF Mach variant.
6238         (faulted): Use mig_reply_error_t for REPLY.
6239         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
6240         in __thread_set_exception_ports call.
6241         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
6242         __mach_port_set_attributes in place of __mach_port_set_qlimit.
6243
6244         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
6245         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
6246         on Darwin, which includes bogons.
6247
6248         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
6249         variable LOADBASE so it's not declared when it's not used.
6250
6251 2002-02-16  Roland McGrath  <roland@frob.com>
6252
6253         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
6254         to use BI.creation_time.
6255
6256         * mach/Machrules (MIG): Add -x c to CPP value passed down.
6257
6258         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
6259         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
6260         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
6261         host_page_size instead of vm_statistics.
6262
6263         * sysdeps/mach/Makefile (mach-before-compile): Don't include
6264         mach_interface.h here, since not all variants use that name.
6265
6266         * sysdeps/mach/configure.in: Add some checks for Mach headers
6267         to ensure a sane installation.
6268         (mach_interface_list): Define this variable by checking for .defs
6269         files found in various variants.
6270         * configure.in (mach_interface_list): AC_SUBST this.
6271         * config.make.in (mach-interface-list): New substituted variable.
6272         * mach/Makefile (user-interfaces): Define this using the value
6273         of $(mach-interface-list) instead of mach, mach4.
6274         Updated other references to mach_interface to use it as well.
6275
6276         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
6277
6278         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
6279         mig_reply_error_t for OSF Mach variant.
6280
6281         * mach/Makefile (routines): Remove bootprivport.
6282         * mach/bootprivport.c: File removed.  It has never been used.
6283
6284         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
6285         Grok the OSF flavor of message format.
6286         (mach_msg_destroy_port): For MAKE_SEND and
6287         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
6288         no-senders notification.
6289
6290 2002-02-06  Roland McGrath  <roland@frob.com>
6291
6292         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
6293         to here if 2.0 compatibility enabled ...
6294         (libc: GLIBC_2.1.3): ... from here.
6295
6296 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
6297
6298         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
6299         generation counter.
6300         * elf/dl-close.c (_dl_close): Likewise.
6301
6302 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
6303
6304         * elf/Makefile: Add rules to build and run tst-tls8.
6305         * elf/tst-tls8.c: New file.
6306         * elf/tst-tlsmod4.c: New file.
6307
6308         * stdlib/test-a64l.c (tests): Add more test cases.
6309
6310         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
6311         Reported by Walter Harms <WHarms@bfs.de>.
6312
6313 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
6314
6315         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
6316         definitions for struct sigcontext.
6317         Suggested by David Mosberger-Tang.
6318
6319 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6320
6321         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
6322         for removing reference of module in slotinfo list.
6323         (_dl_close): Use remove_slotinfo.
6324         * sysdeps/generic/dl-tls.c: General pretty printing.
6325         (oom): Define only if SHARED.
6326         (_dl_next_tls_modid): Correct starting point for the case we assume
6327         there is a gap.  Add missing instruction grouping (doh!).  Correct
6328         tests for reaching maximum index.
6329         * elf/Makefile: Add rules to build and run tst-tls7.
6330         * elf/tst-tls7.c: New file.
6331         * elf/tst-tlsmod3.c: New file.
6332
6333         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
6334         USE_TLS.
6335         * elf/tst-tlsmod2.c: Likewise.
6336
6337         * elf/dl-close.c (_dl_close): When closing an object using TLS
6338         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
6339         true.  Increment dl_tls_generation only if we closed any TLS-using
6340         object.
6341         * elf/tst-tls6.c: New file.
6342         * elf/Makefile: Add rules to build and run tst-tls6.
6343
6344         * po/da.po: Update from translation team.
6345
6346         * locale/categories.def: Fix typo [PR libc/2948].
6347         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
6348         [PR libc/2949].
6349         * locale/iso-4217.def: Update from official version [PR libc/2950].
6350         * glibcbug.in: Honor TMPDIR [PR libc/2951].
6351         * locale/programs/ld-collate.c (collate_finish): Bail out with a
6352         message if input is too confusion instead of using assert.
6353         (collate_read): Don't crash on unknown symbol [PR libc/2952].
6354         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
6355
6356         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
6357         * elf/tst-tls2.c: Likewise.
6358         * elf/tst-tls3.c: Likewise.
6359
6360 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6361
6362         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
6363
6364 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6365
6366         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
6367         if this is really necessary.
6368
6369         * elf/dl-close.c (_dl_close): Implement freeing entries in the
6370         slotinfo array.
6371         (free_mem): Free memory for the slotinfo array if possible.
6372
6373 2002-02-12  Andreas Schwab  <schwab@suse.de>
6374
6375         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
6376
6377 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
6378
6379         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
6380         TLS_DTV_UNALLOCATE.
6381         (oom): New function.
6382         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
6383         (_dl_determine_tlsoffset): Likewise.
6384         (_dl_allocate_tls): Likewise.
6385         (__TLS_GET_ADDR): Define if not already defined.
6386         (_dl_tls_symaddr): New function.
6387         (allocate_and_init): New function.
6388         (__tls_get_addr): Actually implement handling of generation counter
6389         and deferred allocation.
6390         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
6391         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6392         _dl_tls_generation.
6393         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
6394         Declare _dl_tls_symaddr.
6395         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
6396         SHARED.
6397         * include/link.h (struct link_map):  Remove l_tls_nextimage and
6398         l_tls_previmage.
6399         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
6400         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
6401         (_dl_vsym): Likewise.
6402         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
6403         layout.
6404         (dl_main): Allow PT_TLS be present for empty segment.  Remove
6405         nextimage list handling.  Instead add all modules using TLS to
6406         dl_tls_dtv_slotinfo_list.
6407         * elf/dl-open.c (dl_open_worker): After successfully loading all
6408         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
6409         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
6410         empty segment don't do anything.  Remove handling of initimage list.
6411         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
6412         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
6413         * elf/dl-minimal.c: Define __libc_memalign.
6414         * elf/dl-support.c: Remove _dl_initimage_list.  Add
6415         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6416         _dl_tls_generation.
6417         * include/stdlib.h: Declare __libc_memalign.
6418
6419         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
6420         * elf/tst-tls4.c: New file.
6421         * elf/tst-tls5.c: New file.
6422         * elf/tst-tlsmod2.c: New file.
6423
6424         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
6425
6426         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
6427
6428         * elf/tst-tls1.c: Use test-skeleton.c.
6429         * elf/tst-tls2.c: Likewise.
6430         * elf/tst-tls3.c: Likewise.
6431
6432         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
6433
6434 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
6435
6436         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
6437
6438 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
6439
6440         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
6441
6442         * elf/tst-tls3.c: New file.
6443         * elf/tst-tlsmod1.c: New file.
6444         * elf/Makefile: Add rules to build and run tst-tls3.
6445
6446         * sysdeps/i386/dl-machine.h: Include <tls.h>.
6447         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
6448         TLS relocations.
6449
6450         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
6451
6452         * po/fr.po: Update from translation team.
6453
6454         * elf/tls-macros.h: Add alternative macros for use in PIC.
6455
6456         * elf/dl-lookup.c: Include <tls.h>.
6457         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6458
6459         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6460         required by passing pointer to last element of the list.
6461
6462         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6463         l_tls_initimage to a place where it actually is performed.
6464
6465         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6466         after globfree() calls.
6467
6468         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6469         (openaux): Pass open_mode as new last argument to _dl_map_object.
6470         (_dl_map_object_deps): Add new argument open_mode.  Initialize
6471         open_mode element of args variable with it.
6472         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6473         _dl_map_object_deps.
6474         * elf/rtld.c (dl_main): Add zero as last parameter to
6475         _dl_map_object_deps call.
6476         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6477         * elf/nodlopen2.c: New file.
6478         * elf/nodlopenmod2.c: New file.
6479         * elf/Makefile: Add rules to build and run nodlopen2.
6480
6481         * elf/tst-tls1.c: Move TLS helper macros to...
6482         * elf/tls-macros.h: ...here.  New file.
6483         * elf/tst-tls2.c: New file.
6484         * elf/Makefile (tests): Add tst-tls2.
6485         (distribute): Add tls-macros.h.
6486
6487         * po/sv.po: Update from translation team.
6488
6489         * elf/tst-tls1.c (main): Add complete set of tests.  Split
6490         architecture specific definitions from the actual test code.
6491
6492         * po/tr.po: Update from translation team.
6493
6494 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
6495
6496         * elf/Makefile (tests): Add tst-tls1.
6497         * elf/tst-tls1.c: New file.
6498
6499         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6500         alignment of TCB for now.
6501
6502         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6503         initialization image for the application itself.
6504
6505         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6506         loop to initialize TLS block.
6507
6508 2002-02-08  Richard Henderson  <rth@redhat.com>
6509
6510         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6511         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6512
6513         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6514
6515 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
6516
6517         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
6518
6519 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
6520
6521         * po/ca.po: Update from translation team.
6522         * po/sk.po: Likewise.
6523
6524         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
6525         (dl_main): Move dtv/static TLS handling before relocation.
6526         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
6527         TLS_INIT_TP to allocate and install the dtv/static TLS block.
6528         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
6529         so far uses TLS initialize GL(dl_tls_static_size) and
6530         GL(dl_tls_static_align) to account for the TCB.
6531         (_dl_allocate_tls): New function.
6532         * sysdeps/generic/ldsodefs.h (rtld_global): Add
6533         _dl_initial_dtv_malloced.
6534
6535         * configure.in: Test for __builtin_memset more realistically.
6536
6537         * csu/version.c (banner): If TLS support is available say so.
6538
6539 2002-02-04  H.J. Lu  <hjl@gnu.org>
6540
6541         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
6542         __attribute_used__.
6543         (__dl_runtime_resolve): Likewise.
6544
6545         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
6546         declaration.
6547
6548 2001-11-15  H.J. Lu  <hjl@gnu.org>
6549
6550         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
6551         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
6552
6553         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
6554
6555 2002-02-07  H.J. Lu  <hjl@gnu.org>
6556
6557         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
6558         ".set noreorder".
6559         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
6560         Likewise.
6561
6562 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6563
6564         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
6565
6566         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
6567         ___tls_get_addr_internal.
6568         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
6569
6570         * po/ko.po: Update from translation team.
6571
6572 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
6573
6574         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
6575         attribute, change __pad{1,2} type to unsigned int.
6576         (struct stat64): Remove packed attribute.
6577
6578 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6579
6580         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
6581
6582 2002-02-07  Andreas Schwab  <schwab@suse.de>
6583
6584         * configure.in: Fix check for -zcombreloc.
6585
6586 2002-02-06  H.J. Lu  <hjl@gnu.org>
6587
6588         * config.h.in (HAVE_BUILTIN_MEMSET): New.
6589         * configure.in: Check if __builtin_memset really works.
6590         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
6591         __GNUC_PREREQ (2, 96) before using __builtin_memset.
6592
6593 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
6594
6595         * io/bug-ftw3.c (main): Don't try the test if root.
6596
6597 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6598
6599         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
6600         constraints.
6601         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
6602         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
6603         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
6604         Likewise.
6605         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
6606         a weak alias for __clone.
6607         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
6608         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
6609         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
6610         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
6611         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
6612         a weak alias for __mmap64.
6613
6614 2002-02-05  H.J. Lu  <hjl@gnu.org>
6615
6616         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
6617         (atomic_add): Likewise.
6618         (compare_and_swap): Likewise.
6619         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
6620
6621 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6622
6623         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
6624
6625         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
6626         alignment of the TCB and store total size and alignment of static
6627         TLS block in _dl_tls_static_size and _dl_tls_static_align.
6628         tls_index is a typedef.
6629         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
6630         _dl_tls_static_align.
6631         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
6632         * elf/dl-support.c: Define _dl_tls_static_size and
6633         _dl_tls_static_align.
6634
6635 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6636
6637         * configure.in: Add --without-tls option.
6638         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
6639         --without-tls is given.
6640
6641         * sysdeps/generic/dl-tls.c: Include <tls.h>.
6642
6643         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
6644
6645 2002-02-06  Roland McGrath  <roland@frob.com>
6646
6647         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
6648         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
6649
6650         * scripts/versions.awk: Improve error message for missing version.
6651         Each version inherits from the last one only if they have the same
6652         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
6653         but not GLIBC_x and FOO_y.
6654
6655         * scripts/firstversions.awk: Handle libraries that don't have each
6656         particular version named in the third column of shlib-versions.
6657
6658         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
6659
6660 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6661
6662         * Versions.def [ld]: Add GLIBC_2.3.
6663         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
6664         * elf/Makefile (dl-routines): Add dl-tls.
6665         (distribute): Add dl-tls.h.
6666         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6667         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6668         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
6669         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
6670         along with the other info in the link map.  Change queueing of init
6671         images for double linked list.  Use _dl_next_tls_modid to compute
6672         l_tls_modid.
6673         * elf/rtld.c (_dl_start_final): Store alignment requirement
6674         along with the other info in rtld map and executable map.
6675         (dl_main): Add ld.so to the init image list if necessary.  Compute
6676         final module ID with _dl_next_tls_modid.
6677         * include/link.h (struct link_map): Add l_tls_previmage and
6678         l_tls_align.
6679         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6680         * sysdeps/i386/elf/Versions: New file.
6681         * sysdeps/generic/dl-tls.c: New file.
6682         * sysdeps/generic/dl-tls.h: New file.
6683         * sysdeps/i386/dl-tls.h: New file.
6684
6685 2002-02-06  Roland McGrath  <roland@frob.com>
6686
6687         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
6688         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
6689
6690 2002-01-05  Roland McGrath  <roland@frob.com>
6691
6692         * sysdeps/mach/configure.in: New file.
6693         * sysdeps/mach/configure: New generated file.
6694
6695         * mach/Makefile (user-interfaces): Remove default_pager_helper.
6696         It has never been used by anything.
6697
6698 2002-02-06  H.J. Lu  <hjl@gnu.org>
6699
6700         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
6701         is included.
6702
6703 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6704
6705         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
6706         attribute((packed)) to counter stupid people misusing gcc options.
6707         (struct stat64): Likewise.
6708
6709 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6710
6711         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
6712         the variables which are used as booleans.
6713
6714 2002-02-06  Andreas Jaeger  <aj@suse.de>
6715
6716         * include/libc-symbols.h (INTUSE): Renamed from INT.
6717         * elf/dl-deps.c: Change users.
6718         * sysdeps/generic/dl-sysdep.c: Likewise.
6719         * sysdeps/generic/dl-cache.c: Likewise.
6720         * elf/dl-reloc.c: Likewise.
6721         * elf/rtld.c: Likewise.
6722         * elf/dl-version.c: Likewise.
6723         * elf/dl-load.c: Likewise.
6724         * elf/dl-dst.h: Likewise.
6725         * elf/dl-init.c: Likewise.
6726         * elf/dl-error.c: Likewise.
6727         * elf/dl-fini.c: Likewise.
6728         * elf/dl-runtime.c: Likewise.
6729         * elf/do-lookup.h: Likewise.
6730
6731         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
6732         definition.
6733         * stdio-common/_itowa.h: Likewise.
6734
6735 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6736
6737         * elf/dl-minimal.c: Define _itoa_lower_digits.
6738
6739         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
6740         DT_FLAGS set.
6741
6742         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
6743         loading modules with the DF_STATIC_TLS flag set.
6744         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
6745         element.
6746         * include/link.h (struct link_map): Add l_flags field.
6747         * elf/elf.h (DF_STATIC_TLS): New definition.
6748
6749         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
6750         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
6751
6752         * elf/rtld.c (process_dl_debug): Correct printing help message.
6753         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
6754         for %s.
6755
6756         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
6757         definition and pass &errno in use of this variable.
6758         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
6759
6760 2002-02-04  Andreas Schwab  <schwab@suse.de>
6761
6762         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
6763         * locale/programs/charmap-dir.c: Wrap calls that output messages
6764         with WITH_CUR_LOCALE.  Include "localedef.h" first.
6765         * locale/programs/charmap.c: Likewise.
6766         * locale/programs/ld-address.c: Likewise.
6767         * locale/programs/ld-collate.c: Likewise.
6768         * locale/programs/ld-ctype.c: Likewise.
6769         * locale/programs/ld-identification.c: Likewise.
6770         * locale/programs/ld-measurement.c: Likewise.
6771         * locale/programs/ld-messages.c: Likewise.
6772         * locale/programs/ld-monetary.c: Likewise.
6773         * locale/programs/ld-name.c: Likewise.
6774         * locale/programs/ld-numeric.c: Likewise.
6775         * locale/programs/ld-paper.c: Likewise.
6776         * locale/programs/ld-telephone.c: Likewise.
6777         * locale/programs/ld-time.c: Likewise.
6778         * locale/programs/linereader.c: Likewise.
6779         * locale/programs/linereader.h: Likewise.
6780         * locale/programs/localedef.c: Likewise.
6781         * locale/programs/locfile.c: Likewise.
6782         * locale/programs/repertoire.c: Likewise.
6783
6784 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6785
6786         * elf/rtld.c (_dl_start_final): Determine load address to locate
6787         ehdr with GL(dl_rtld_map).l_map_start.
6788
6789         * po/ca.po: Update from translation team.
6790
6791         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
6792         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
6793         header entry.
6794         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6795         _dl_tls_module_cnt.
6796         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
6797
6798 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
6799
6800         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
6801         * include/link.h (struct link_map): Add various members for TLS
6802         information.
6803         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6804         _rtld_tlsoffset, add _dl_initimage_list.
6805         * sysdeps/i386/dl-lookupcfg.h: New file.
6806         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
6807         TLS relocation.  When using TLS we now use RESOLVE_MAP.
6808         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
6809         is used.
6810
6811         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
6812         unused.
6813
6814         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
6815         thread-pointer as soon as possible.
6816         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
6817         elements in rtld_global.
6818         * sysdeps/generic/tls.h: New file.
6819         * elf/Makefile (distribute): Add tls.h.
6820         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
6821         relocations.  Not complete yet.
6822
6823         * resolv/resolv.h: Allow user to define __need_res_state and only
6824         define __res_start structure then.
6825         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
6826
6827         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
6828         dl_cpuclock_offset initialization to _dl_start_final.
6829         (_dl_show_auxv): Avoid unnecessary sign extension.
6830         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
6831
6832 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
6833
6834         * config.h.in: Add HAVE_TLS_SUPPORT.
6835         * sysdeps/i386/elf/configure.in: New file.
6836
6837 2002-02-03  Andreas Schwab  <schwab@suse.de>
6838
6839         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
6840         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
6841
6842 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
6843
6844         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
6845         alloca if the memory reqirements are too high.
6846
6847 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
6848
6849         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
6850         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
6851         the former is available anyway and speed isn't important here.
6852         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
6853         * elf/dl-version.c (match_symbol): Likewise.
6854         (_dl_check_map_versions): Likewise.
6855         * elf/rtld.c (process_envvars): Likewise.
6856         (print_statistics): Likewise.
6857         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
6858         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
6859         bases.  Add assert to catch uses of unimplemented features.
6860         (__strsep): Add assert to catch uses of unimplemented features.
6861         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
6862         and avoid inline optimization.
6863         * elf/rtld.c (process_envvars): Likewise.
6864         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
6865         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
6866         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
6867
6868 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6869
6870         * stdio-common/_itoa.h: Minor simplifications of the code.
6871         * stdio-common/_itoa.c: Likewise.
6872
6873         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
6874         instead of _dl_printf for debugging info output.
6875
6876         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
6877         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
6878
6879 2002-02-01  H.J. Lu  <hjl@gnu.org>
6880
6881         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
6882         (atomic_add): Likewise.
6883         (compare_and_swap): Return 0 only when failed to compare. Use
6884         branch likely.
6885
6886         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
6887         branch likely.
6888
6889 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6890
6891         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
6892
6893 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6894
6895         * elf/dl-minimal.c (__strsep): New minimal implementation.
6896
6897 2002-02-02  Paul Eggert  <eggert@twinsun.com>
6898
6899         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
6900         (__mktime_internal): If no tm_isdst is requested, prefer solutions
6901         with tm_isdst > 0 when the requested time falls within a
6902         spring-forward gap [PR libc/2894].
6903
6904 2002-02-03  Andreas Schwab  <schwab@suse.de>
6905
6906         * stdio-common/tst-rndseek.c: Increase timeout.
6907
6908 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6909
6910         Change ld.so to not use functions which are exported.  One cannot
6911         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
6912         definitions.
6913         * include/libc-symbols.h: Define INT and INTDEF.
6914         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
6915         _dl_signal_error_internal, _dl_map_object_internal,
6916         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
6917         _dl_lookup_versioned_symbol_internal,
6918         _dl_relocate_object_internal, _dl_debug_state_internal,
6919         _dl_start_profile_internal, and _dl_unload_cache_internal.
6920         * include/dlfcn.h: Declare _dl_catch_error_internal.
6921         * elf/rtld.c: Use INT for calls to any of the *_internal functions
6922         above.  Add INTDEF to function definitions.
6923         * elf/dl-debug.c: Likewise.
6924         * elf/dl-deps.c: Likewise.
6925         * elf/dl-dst.h: Likewise.
6926         * elf/dl-error.c: Likewise.
6927         * elf/dl-fini.c: Likewise.
6928         * elf/dl-init.c: Likewise.
6929         * elf/dl-load.c: Likewise.
6930         * elf/dl-lookup.c: Likewise.
6931         * elf/dl-misc.c: Likewise.
6932         * elf/dl-open.c: Likewise.
6933         * elf/dl-profile.c: Likewise.
6934         * elf/dl-reloc.c: Likewise.
6935         * elf/dl-runtime.c: Likewise.
6936         * elf/dl-version.c: Likewise.
6937         * elf/do-lookup.h: Likewise.
6938         * sysdeps/generic/dl-cache.c: Likewise.
6939         * sysdeps/generic/dl-sysdep.c: Likewise.
6940         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
6941         instead of _dl_init.
6942         * sysdeps/arm/dl-machine.h: Likewise.
6943         * sysdeps/cris/dl-machine.h: Likewise.
6944         * sysdeps/hppa/dl-machine.h: Likewise.
6945         * sysdeps/i386/dl-machine.h: Likewise.
6946         * sysdeps/ia64/dl-machine.h: Likewise.
6947         * sysdeps/m68k/dl-machine.h: Likewise.
6948         * sysdeps/mips/dl-machine.h: Likewise.
6949         * sysdeps/mips/mips64/dl-machine.h: Likewise.
6950         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6951         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6952         * sysdeps/sh/dl-machine.h: Likewise.
6953         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6954         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6955         * sysdeps/x86_64/dl-machine.h: Likewise.
6956         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
6957
6958         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
6959         and _dl_debug_initialize.
6960
6961         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
6962         more information.
6963         * elf/rtld.c (dl_main): Avoid strrchr.
6964         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
6965         result of readlink.  Search from the back for '/'.
6966
6967         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
6968         strncpy if possible.
6969
6970         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
6971         strncmp.
6972         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
6973         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
6974         strspn, and strcspn.
6975         (process_envvars): Don't use strcspn.
6976
6977         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
6978         (_dl_dst_substitute): Likewise.
6979
6980 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
6981
6982         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
6983         code which is never used when relocating ld.so itself.
6984
6985         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
6986         starting ld.so itself.  Move l_addr variable initialization closer
6987         to use.
6988         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
6989
6990 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
6991
6992         * Versions.def (libc): Add GLIBC_PRIVATE.
6993         (libdb, libnss_db, libdb1): Remove.
6994         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
6995         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
6996         (libpthread): Add GLIBC_PRIVATE.
6997         (libresolv): Likewise, remove GLIBC_2.1.
6998         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
6999         GLIBC_2.2.3, GLIBC_2.3.
7000         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
7001         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
7002         _dl_sym, _dl_vsym): Likewise.
7003         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
7004         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
7005         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
7006         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
7007         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
7008         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
7009         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
7010         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
7011         Likewise.
7012         (_dl_object_relocation_scope): Remove.
7013         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
7014         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
7015         __gconv_cache): Move to GLIBC_PRIVATE.
7016         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
7017         __internal_setnetgrent): Likewise.
7018         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
7019         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
7020         * locale/Versions (__collate_element_hash, __collate_element_strings,
7021         __collate_symbol_classes, __collate_symbol_hash,
7022         __collate_symbol_strings, _nl_current_LC_COLLATE,
7023         _nl_current_LC_CTYPE): Likewise.
7024         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
7025         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
7026         (libnss_nis, libnss_nisplus): Likewise.
7027         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
7028         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
7029         (libnss_files): Move all symbols to GLIBC_PRIVATE.
7030         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
7031         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
7032         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
7033         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
7034         __ns_get16, __ns_samename): Likewise.
7035         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
7036         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
7037         GLIBC_PRIVATE.
7038         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
7039         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
7040         __libc_connect): Likewise.
7041         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
7042         Likewise.
7043         * stdlib/Versions (__libc_system): Likewise.
7044         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
7045         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
7046         * sysdeps/ia64/fpu/Versions: Likewise.
7047         * sysdeps/ia64/Versions: Likewise.
7048         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
7049         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
7050         to GLIBC_PRIVATE.
7051         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
7052         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
7053         __libc_sigaction): Likewise.
7054         * termios/Versions (__libc_tcdrain): Likewise.
7055
7056         * misc/sys/cdefs (__attribute_noinline__): Define.
7057         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
7058         __attribute_noinline__.
7059
7060         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
7061         * elf/dl-xstat64.c: New file.
7062         * elf/dl-fxstat64.c: New file.
7063         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
7064         don't export __fxstat64 at multiple versions.
7065         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
7066         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
7067
7068 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
7069
7070         * locale/program/ld-collate.c (collate_finish): Assign a wide
7071         char collation sequence value to multi character collating
7072         elements, and avoid over writing by non-character elements.
7073
7074 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7075
7076         * elf/Makefile (distribute): Add dl-procinfo.c.
7077         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
7078         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
7079
7080 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7081
7082         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
7083         definition.
7084         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
7085         _rtld_global struct.
7086         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7087         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
7088         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7089         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
7090         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
7091         _dl_fpu_control_set): Remove unused externs.
7092         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
7093         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
7094         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
7095         related variables in _rtld_global struct.
7096         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
7097         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
7098         unused extern.
7099
7100 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7101
7102         * sysdeps/generic/dl-procinfo.c: New file.
7103
7104 2002-02-01  Andreas Schwab  <schwab@suse.de>
7105
7106         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
7107
7108 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7109
7110         * elf/rtld.c (_dl_start): Mark as internal_function.
7111         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
7112         in register.
7113         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
7114         General pretty printing.
7115
7116 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7117
7118         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
7119         * elf/dl-reloc.c: Pretty printing.
7120         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
7121         procinfo-related variables in rtld_global struct.
7122         * elf/dl-support.c: Likewise.
7123         * elf/rtld.c: Likewise.
7124         * sysdeps/i386/i686/Makefile: Likewise.
7125         * sysdeps/i386/i686/hp-timing.c: Likewise.
7126         * sysdeps/i386/i686/hp-timing.h: Likewise.
7127         * sysdeps/ia64/Makefile: Likewise.
7128         * sysdeps/ia64/hp-timing.c: Likewise.
7129         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
7130         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
7131         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
7132         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
7133         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7134         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
7135         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7136         * sysdeps/x86_64/Makefile: Likewise.
7137
7138         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
7139         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
7140         _dl_debug_fd to rtld_global.
7141         * elf/Versions: Likewise.
7142         * elf/dl-close.c: Likewise.
7143         * elf/dl-iteratephdr.c: Likewise.
7144         * elf/dl-lookup.c: Likewise.
7145         * elf/dl-misc.c: Likewise.
7146         * elf/dl-open.c: Likewise.
7147         * elf/dl-support.c: Likewise.
7148         * elf/do-lookup.h: Likewise.
7149         * elf/rtld.c: Likewise.
7150         * sysdeps/generic/dl-cache.c: Likewise.
7151         * sysdeps/generic/dl-sysdep.c: Likewise.
7152         * sysdeps/ia64/Versions: Likewise.
7153         * sysdeps/unix/clock_gettime.c: Likewise.
7154         * sysdeps/unix/clock_settime.c: Likewise.
7155         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7156         * sysdeps/sparc/Versions: Removed.
7157         * sysdeps/i386/i686/Versions : Removed.
7158         * sysdeps/x86_64/Versions: Removed.
7159         * configure.in: Define HAVE_PROTECTED if .protected is available.
7160         * config.h.in: Add entry for HAVE_PROTECTED.
7161
7162 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
7163
7164         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
7165         code in struct _rtld_global.  Export this struct, remove all
7166         exports for the signal variables.
7167         * sysdeps/arm/dl-machine: Likewise.
7168         * sysdeps/generic/dl-origin: Likewise.
7169         * sysdeps/generic/dl-sysdep: Likewise.
7170         * sysdeps/generic/dl-cache: Likewise.
7171         * sysdeps/hppa/dl-fptr: Likewise.
7172         * sysdeps/hppa/dl-machine: Likewise.
7173         * sysdeps/cris/dl-machine: Likewise.
7174         * sysdeps/i386/dl-machine: Likewise.
7175         * sysdeps/ia64/dl-machine: Likewise.
7176         * sysdeps/m68k/dl-machine: Likewise.
7177         * sysdeps/mach/hurd/dl-sysdep: Likewise.
7178         * sysdeps/mips/mips64/dl-machine: Likewise.
7179         * sysdeps/mips/dl-machine: Likewise.
7180         * sysdeps/powerpc/elf/libc-start: Likewise.
7181         * sysdeps/powerpc/dl-machine: Likewise.
7182         * sysdeps/powerpc/dl-start: Likewise.
7183         * sysdeps/sparc/sparc32/dl-machine: Likewise.
7184         * sysdeps/sparc/sparc64/dl-machine: Likewise.
7185         * sysdeps/sh/dl-machine: Likewise.
7186         * sysdeps/s390/s390-32/dl-machine: Likewise.
7187         * sysdeps/s390/s390-64/dl-machine: Likewise.
7188         * sysdeps/unix/sysv/aix/libc-start: Likewise.
7189         * sysdeps/unix/sysv/aix/start-libc: Likewise.
7190         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
7191         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
7192         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
7193         * sysdeps/x86_64/dl-machine: Likewise.
7194
7195 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7196
7197         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
7198         are too high.
7199
7200 2002-01-31  Andreas Schwab  <schwab@suse.de>
7201
7202         * sysdeps/posix/readv.c: Check for ssize_t overflow.
7203
7204 2002-01-31  Andreas Schwab  <schwab@suse.de>
7205
7206         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
7207         reference to _dl_pagesize.
7208
7209 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
7210
7211         * Versions.def [ld]: Add GLIBC_2.3.
7212         * elf/dl-addr.c: Move global variables for SHARED code in struct
7213         _rtld_global.  Export this struct, remove all exports for the
7214         signal variables.
7215         * elf/dl-close.c: Likewise.
7216         * elf/dl-conflict.c: Likewise.
7217         * elf/dl-debug.c: Likewise.
7218         * elf/dl-deps.c: Likewise.
7219         * elf/dl-dst.h: Likewise.
7220         * elf/dl-error.c: Likewise.
7221         * elf/dl-fini.c: Likewise.
7222         * elf/dl-init.c: Likewise.
7223         * elf/dl-iteratephdr.c: Likewise.
7224         * elf/dl-libc.c: Likewise.
7225         * elf/dl-load.c: Likewise.
7226         * elf/dl-lookup.c: Likewise.
7227         * elf/dl-minimal.c: Likewise.
7228         * elf/dl-object.c: Likewise.
7229         * elf/dl-open.c: Likewise.
7230         * elf/dl-profile.c: Likewise.
7231         * elf/dl-profstub.c: Likewise.
7232         * elf/dl-reloc.c: Likewise.
7233         * elf/dl-runtime.c: Likewise.
7234         * elf/dl-support.c: Likewise.
7235         * elf/dl-sym.c: Likewise.
7236         * elf/dl-version.c: Likewise.
7237         * elf/do-lookup.h: Likewise.
7238         * elf/do-rel.h: Likewise.
7239         * elf/dynamic-link.h: Likewise.
7240         * elf/rtld.c: Likewise.
7241         * sysdeps/generic/dl-cache.c: Likewise.
7242         * sysdeps/generic/dl-sysdep.c: Likewise.
7243         * sysdeps/generic/ldsodefs.h: Likewise.
7244         * sysdeps/generic/libc-start.c: Likewise.
7245         * sysdeps/i386/dl-machine.h: Likewise.
7246         * sysdeps/ia64/dl-fptr.c: Likewise.
7247         * sysdeps/ia64/dl-machine.h: Likewise.
7248         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
7249         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7250         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
7251         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
7252         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7253         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7254         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
7255         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7256
7257 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7258
7259         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
7260         to avoid warning
7261         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
7262
7263         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
7264         SHARED version.
7265         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
7266
7267         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
7268
7269 2002-01-29  Ben Collins  <bcollins@debian.org>
7270
7271         * string/bits/string2.h (__mempcpy): Protect size arg for
7272         addition when using __builtin_memcpy.
7273
7274 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7275
7276         * stdlib/Makefile (tests): Add tst-qsort.
7277         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
7278
7279         * manual/signal.texi (Process Signal Mask): Document that
7280         pthread_sigmask, not sigprocmask, must be used in MT programs.
7281         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7282
7283         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
7284         found.
7285         * misc/Makefile (tests): Add tst-hsearch.
7286         * misc/tst-hsearch.c: New file.
7287
7288 2002-01-18  Wolfram Gloger  <wg@malloc.de>
7289
7290         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
7291         * malloc/malloc.h: Likewise.
7292         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
7293         * malloc/arena.c: New file.
7294         * malloc/hooks.c: New file.
7295         * malloc/tst-mallocstate.c: New file.
7296         * malloc/Makefile: Add new testcase tst-mallocstate.
7297         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
7298
7299 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7300
7301         * stdlib/msort.c: Remove last patch.  The optimization violates the
7302         same rule which qsort.c had problems with.
7303
7304 2002-01-27  Paul Eggert  <eggert@twinsun.com>
7305
7306         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
7307         to a pivot element that lies outside the array to be sorted, as
7308         ISO C99 requires that the comparison function be called only with
7309         addresses of array elements [PR libc/2880].
7310
7311 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7312
7313         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
7314         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
7315
7316         * timezone/asia: Update from tzdata2002b.
7317         * timezone/australasia: Likewise.
7318         * timezone/backward: Likewise.
7319         * timezone/europe: Likewise.
7320         * timezone/leapseconds: Likewise.
7321         * timezone/iso3166.tab: Likewise.
7322         * timezone/zone.tab: Likewise.
7323
7324 2002-01-23  Richard Henderson  <rth@redhat.com>
7325
7326         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
7327
7328 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7329
7330         * string/strxfrm.c: Allocate one more byte for rulearr and clear
7331         this element [PR libc/2855].
7332
7333         * string/strcoll.c: Handle zero-length arguments specially
7334         [PR libc/2856].
7335
7336 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
7337
7338         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
7339         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
7340         short lengths and constant src.
7341         (strcpy): Don't optimize for gcc 3.0+.
7342         (__stpcpy): For gcc 3.0+, don't use
7343         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
7344         for short string literal src.
7345
7346 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7347
7348         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7349         Set for arm, too.
7350
7351 2001-01-22  Paul Eggert  <eggert@twinsun.com>
7352
7353         * manual/llio.texi (Linked Channels, Cleaning Streams):
7354         Make it clearer that a just-opened input stream might need cleaning.
7355
7356 2002-01-21  H.J. Lu  <hjl@gnu.org>
7357
7358         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7359         Don't use label at end of compound statement.
7360
7361 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
7362
7363         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
7364         Remove test for negative integer arg; sin_pi does it correctly.
7365
7366 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
7367
7368         * nscd/Makefile (distribute): Filter out xmalloc.c.
7369
7370 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
7371
7372         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
7373         Set offset if read end wasn't the buffer end.
7374         (_IO_file_seekoff_mmap): New function.
7375         (_IO_file_xsgetn_mmap): New function.
7376         (_IO_file_jumps_mmap): Use the two new functions.
7377         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
7378         != end buffer.
7379         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
7380         _IO_file_underflow_mmap.
7381         * libio/iofopen.c: Don't position file descriptor at end of file.
7382         * libio/tst-widetext.c: Improve error messages.
7383         * stdio-common/tst-rndseek.c: Likewise.
7384
7385 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
7386
7387         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
7388         end of enum for !_GNU_SOURCE.
7389         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
7390         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
7391         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
7392         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
7393         values unless _GNU_SOURCE.
7394
7395         * iconvdata/tcvn5712-1.c: Minor cleanups.
7396
7397 2002-01-18  Andreas Schwab  <schwab@suse.de>
7398
7399         * sysdeps/unix/sysv/linux/configure.in
7400         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
7401
7402 2002-01-16  Roger Sayle  <roger@eyesopen.com>
7403
7404         * stdlib/msort.c (msort_with_tmp): Replace implementation with
7405         more efficient "Towers of Hanoi" mergesort.
7406         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
7407         for generic, sizeof(int) and sizeof(long) variants respectively.
7408
7409 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
7410
7411         * manual/syslog.texi (openlog): Describe possible problems with
7412         first parameter.
7413         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7414
7415         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
7416         * nscd/connections.c (begin_drop_privileges): New function.
7417         (finish_drop_privileges): New function.
7418         (nscd_init): Call the new functions which also install all groups
7419         for the server user.
7420         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
7421         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7422
7423 2002-01-17  H.J. Lu  <hjl@gnu.org>
7424
7425         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
7426         `const' from `got'.
7427
7428 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7429
7430         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
7431         instructions for pointer operations.
7432         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7433
7434 2002-01-17  Andreas Jaeger  <aj@suse.de>
7435
7436         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
7437         __uint128_t build-in.
7438
7439         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7440         PowerPC, sync with 2.2 branch.
7441
7442 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7443
7444         * posix/getconf.c: Update copyright year.
7445         * nss/getent.c: Likewise.
7446         * nscd/nscd_nischeck.c: Likewise.
7447         * iconv/iconvconfig.c: Likewise.
7448         * iconv/iconv_prog.c: Likewise.
7449         * elf/ldconfig.c: Likewise.
7450         * catgets/gencat.c: Likewise.
7451         * csu/version.c: Likewise.
7452         * elf/ldd.bash.in: Likewise.
7453         * elf/sprof.c (print_version): Likewise.
7454         * locale/programs/locale.c: Likewise.
7455         * locale/programs/localedef.c: Likewise.
7456         * nscd/nscd.c (print_version): Likewise.
7457         * debug/xtrace.sh: Likewise.
7458         * malloc/memusage.sh: Likewise.
7459         * malloc/mtrace.pl: Likewise.
7460
7461 2002-01-16  Andreas Schwab  <schwab@suse.de>
7462
7463         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7464         reliably remove "-ia64" from rtld name.
7465
7466 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7467
7468         * iconvdata/gb18030.c: Bug fixes and support for more characters.
7469         Patch by Yu Shao <yshao@redhat.com>.
7470
7471 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7472
7473         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7474         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7475         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7476
7477 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7478
7479         * sysdeps/s390/fpu/libm-test-ulps: Update.
7480
7481 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
7482
7483         * elf/elf.h: Update x86 relocations.
7484
7485 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7486
7487         * locale/programs/charmap.c (new_width): Check whether byte
7488         sequences for both ends of range have the same length.
7489
7490 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7491
7492         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7493
7494 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7495
7496         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7497         string literals.
7498         (__full_ieee754_sqrt): Add __attribute_used__.
7499
7500 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7501
7502         * sysdeps/generic/group_member.c (__group_member): Also check
7503         groups[0] [PR libc/2781].
7504
7505 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
7506
7507         * Makefile (distribute): Add scripts/cpp.
7508         * elf/Makefile (distribute): Add reldep6mod[01234].c,
7509         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7510         unwind-dw2-fde.h, and dwarf2.h.
7511         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7512         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7513         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7514         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7515
7516 2002-01-07  Roland McGrath  <roland@frob.com>
7517
7518         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
7519         volatile on type of ARGC so the compiler doesn't get clever.
7520
7521 2002-01-07  Andreas Jaeger  <aj@suse.de>
7522
7523         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
7524         * sysdeps/i386/bits/byteswap.h: Likewise.
7525         * sysdeps/ia64/bits/byteswap.h: Likewise.
7526         * sysdeps/m68k/bits/byteswap.h: Likewise.
7527         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
7528         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
7529
7530 2002-01-02  Bruno Haible  <bruno@clisp.org>
7531
7532         * intl/plural.y: Fix %expect count.
7533
7534 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
7535
7536         * elf/Makefile (routines, shared-only-routines): Add
7537         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
7538         * elf/elf.h (PT_GNU_EH_FRAME): Define.
7539         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
7540         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
7541         Optimize if .eh_frame section contains no FDEs.
7542         (__register_frame, __deregister_frame_info_bases,
7543         __deregister_frame): Likewise.
7544         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
7545         DW_CFA_restore handling.
7546
7547 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
7548
7549         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
7550
7551         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
7552         for x < 0.25 and restore original range reduction method.
7553         (__ieee754_lgammal_r): Make sure signgam is set before returning.
7554
7555 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
7556
7557         * libio/fileops.c (_IO_file_underflow_mmap): New function.
7558         (_IO_file_close_mmap): New function.
7559         (_IO_file_jumps_mmap): New variable.
7560         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
7561         trying to convert rest of byte buffer.
7562         (_IO_wfile_underflow_mmap): New function.
7563         (_IO_wfile_jumps_mmap): New variable.
7564         * libio/iofopen.c (__fopen_maybe_mmap): New function.
7565         (__fopen_internal): New function.  Split out from _IO_new_fopen.
7566         (_IO_new_fopen): Call __fopen_internal.
7567         * libio/iofopen64.c: Just call __fopen_internal.
7568         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
7569         successfully.
7570         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
7571         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
7572         _IO_file_close_mmap.
7573
7574         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
7575         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
7576
7577         * stdio-common/Makefile (tests): Add tst-rndseek.
7578         * stdio-common/tst-rndseek.c: New file.
7579
7580 2002-01-05  Roland McGrath  <roland@frob.com>
7581
7582         * config.h.in (HAVE_MIG_RETCODE): New #undef.
7583         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
7584         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
7585         * sysdeps/mach/hurd/configure: Regenerated.
7586
7587 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
7588
7589         * elf/elf.h: Add more TLS definitions.
7590
7591 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
7592
7593         * include/features.h (__GLIBC_MINOR__): Bump to 3.
7594
7595 2002-01-02  Roland McGrath  <roland@frob.com>
7596
7597         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
7598         __sigisemptyset.  Don't use MASK uninitialized.
7599
7600         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
7601         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
7602         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
7603         __sigdelset, __sigaddset, __sigorset.
7604
7605         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
7606         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
7607
7608         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
7609         _hurd_ports is null.
7610
7611         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
7612         for old CMU and new OSF Mach interface flavors.
7613         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
7614         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7615
7616         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
7617
7618         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
7619         Pass extra arguments to task_create for OSF variant.
7620         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7621
7622         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
7623         conditional on [HAVE_AUX_VECTOR].
7624
7625         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
7626         mach_msg_timeout_t as type of final argument.
7627
7628         * hurd/privports.c (__get_privileged_ports):
7629         Change host_priv_t to mach_port_t in argument type.
7630         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
7631         Update decls.
7632
7633         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
7634         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
7635         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
7636         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
7637         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
7638         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
7639
7640 2002-01-01  Roland McGrath  <roland@frob.com>
7641
7642         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
7643
7644 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
7645
7646         * include/stdlib.h: Define inlines for the _l variants of the strto*
7647         functions.
7648
7649 2002-01-01  Roland McGrath  <roland@frob.com>
7650
7651         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
7652
7653         * mach/Machrules (MIG): Set CPP as well as CC.
7654
7655 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
7656
7657         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
7658         locale to parse /proc/loadavg [PR libc/2760].
7659
7660 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
7661
7662         * elf/dl-conflict.c: Include sys/param.h.
7663         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
7664         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
7665         warning.
7666         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
7667         literals to avoid warnings.
7668
7669 2001-12-31  Andreas Jaeger  <aj@suse.de>
7670
7671         * configure.in: Don't check for gsed since we do not use it anywhere.
7672
7673 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
7674
7675         * io/fts.c: Update from BSD to fix memory leaks.
7676
7677 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
7678
7679         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
7680         * elf/chroot_canon.c: Likewise.
7681         * elf/dl-object.c: Likewise.
7682         * iconv/iconv_charmap.c: Likewise.
7683         * iconv/iconv_prog.c: Likewise.
7684         * libio/iogetdelim.c: Likewise.
7685         * locale/lc-time.c: Likewise.
7686         * stdlib/canonicalize.c: Likewise.
7687         * sunrpc/svc.c: Likewise.
7688         * sysdeps/generic/glob.c: Likewise.
7689
7690 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7691
7692         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
7693         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
7694         remove high order bit from the program counter.
7695         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
7696
7697 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7698
7699         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
7700         unnecessary code and add missing reloc types.
7701         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
7702         case for reloc type R_390_NONE.
7703
7704 2001-12-28  Andreas Jaeger  <aj@suse.de>
7705
7706         * io/bug-ftw3.c: Include string.h for prototypes.
7707
7708         * crypt/md5test.c (main): Remove unused variable.
7709
7710         * dlfcn/modstatic.c: Add prototype to avoid warning.
7711
7712 2001-12-26  Roland McGrath  <roland@frob.com>
7713
7714         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
7715         check only (SS->pending & MASK) for the signal to return.
7716         From Jeroen Dekkers <jeroen@dekkers.cx>.
7717
7718 2001-12-22  Roland McGrath  <roland@frob.com>
7719
7720         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
7721         Use preprocessor #if conditionals instead of `if' to avoid
7722         warnings about divide by zero in dead code.
7723
7724         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
7725         _hurd_port_init, and __hurd_self_sigstate.
7726
7727         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
7728
7729 2001-12-21  Andreas Jaeger  <aj@suse.de>
7730
7731         * elf/dblloadmod1.c: Add prototype to avoid warning.
7732         * elf/dblloadmod2.c: Likewise.
7733         * elf/dblloadmod3.c: Likewise.
7734         * elf/reldepmod5.c: Likewise.
7735         * elf/reldepmod6.c: Likewise.
7736
7737         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
7738         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
7739         used on all architectures.
7740
7741         * sunrpc/svc_tcp.c: Add noreturn attribute for
7742         svctcp_rendezvous_abort.
7743         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
7744
7745         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
7746         to avoid warning.
7747
7748 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
7749
7750         * manual/llio.texi (aio_fsync): Fix a typo.
7751         Patch by Tammy Fox <tfox@redhat.com>.
7752
7753 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
7754
7755         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
7756         stack bias from child stack pointer before passing it to clone syscall.
7757
7758 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
7759
7760         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
7761         _SC_TZNAME_MAX.
7762         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
7763         Reported by Thorsten Kukuk <kukuk@suse.de>.
7764
7765         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
7766         add some casts.
7767
7768         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
7769
7770 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
7771
7772         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
7773         conforming: return EBADF if file descriptor is invalid and EINVAL
7774         if file descriptor is no valid tty.
7775         * login/tst-grantpt.c: New file.
7776         * login/Makefile (tests): Add tst-grantpt.
7777
7778 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
7779
7780         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
7781         different than implemented in last patch.
7782         * io/bug-ftw3.c: Adjust test for changed handling of
7783         inaccessibility of toplevel dir.
7784
7785 2001-12-16  Roland McGrath  <roland@frob.com>
7786
7787         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
7788         * grp/initgroups.c (internal_getgrouplist): Likewise.
7789
7790         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
7791         `default:' to silence new GCC warning.
7792         Rewrite cast of lvalue to silence new GCC warning.
7793
7794         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
7795
7796         * sysdeps/mach/hurd/spawni.c: New file, by me with a
7797         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
7798
7799 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
7800
7801         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
7802         Patch by Stephen R. van den Berg.
7803
7804         * crypt/md5.h: Define md5_uintptr.
7805
7806 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
7807
7808         * libio/tst_swprintf.c (main): Add test for string argument with
7809         zero precision.
7810         * stdio-common/Makefile (tests): Add tst-sprintf.
7811         * stdio-common/tst-sprintf.c: New file.
7812
7813 2001-12-13  Andreas Schwab  <schwab@suse.de>
7814
7815         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
7816         zero precision with wide character string format.
7817
7818 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
7819
7820         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
7821         but have a user supplied buffer, return the empty buffer, not NULL.
7822
7823 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
7824
7825         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
7826         Patch by Eric Sharkey <sharkey@netrics.com>.
7827
7828         * crypt/md5test.c (main): Add test for multiple calls to
7829         __md5_process_bytes to itererate over input string.
7830
7831 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
7832
7833         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
7834         from __nis_findfastest.  Take timeout value from parameter.
7835         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
7836         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
7837         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
7838
7839 2001-12-12  Andreas Jaeger  <aj@suse.de>
7840
7841         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
7842         combreloc test so that it works in this case.
7843
7844         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
7845
7846 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
7847
7848         * sysdeps/sh/Makefile: New file.
7849         * sysdeps/sh/_mcount.S: New file.
7850         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
7851         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
7852
7853 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
7854
7855         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
7856         limitation [PR libc/2564].
7857
7858 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
7859
7860         * elf/Makefile (dl-routines): Add conflict.
7861         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
7862         (ld.so): Add _begin local symbol.
7863         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
7864         Define.
7865         * elf/dl-deps.c (_dl_build_local_scope): New.
7866         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
7867         of all libraries.
7868         * elf/do-rel.h (VALIDX): Define.
7869         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
7870         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
7871         can be skipped.
7872         * elf/dl-conflict.c: New file.
7873         * elf/dl-lookup.c (_dl_debug_bindings): New.
7874         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
7875         non-NULL.
7876         (_dl_lookup_symbol_skip): Likewise.
7877         (_dl_lookup_versioned_symbol): Likewise.
7878         (_dl_lookup_versioned_symbol_skip): Likewise.
7879         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
7880         define to ElfW(Rel).
7881         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
7882         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
7883         ranges.
7884         Don't adjust address dynamic tags if l_addr is 0.
7885         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
7886         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
7887         (VALIDX, ADDRIDX): Define.
7888         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
7889         (dl_main): Print library list for LD_TRACE_PRELINKING.
7890         If prelinking information can be used, skip relocating libraries and
7891         call _dl_resolve_conflicts instead.
7892         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
7893         * elf/dl-load.c (_dl_map_object): Don't create fake libs
7894         if LD_TRACE_PRELINKING.
7895         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
7896         + DT_ADDRNUM.
7897         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
7898         (DL_DEBUG_PRELINK): Define.
7899         (_dl_resolve_conflicts): Add prototype.
7900
7901         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
7902         .plt for prelinked libraries where prelinking info cannot be used.
7903         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
7904         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
7905         * sysdeps/arm/bits/link.h: New file.
7906         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
7907         content of .got[1].
7908         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7909         (ELF_MACHINE_PLT_REL): Define.
7910         (elf_machine_rela, elf_machine_rela_relative): New.
7911         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
7912         of adjusting it if prelinked and prelinking cannot be used.
7913         * sysdeps/i386/bits/link.h: New file.
7914         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
7915         content of .got[1].
7916         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7917         (ELF_MACHINE_PLT_REL): Define.
7918         (elf_machine_rela, elf_machine_rela_relative): New.
7919         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
7920         of adjusting it if prelinked and prelinking cannot be used.
7921         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
7922         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
7923         to find out map for R_PPC_JMP_SLOT relocs.
7924         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
7925         (OPCODE_BA): Define.
7926         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7927         libraries where prelinking info cannot be used.
7928         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
7929         (elf_machine_fixup_plt): Call sparc_fixup_plt.
7930         (elf_machine_rela): Set value to 0 if relocating conflicts.
7931         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
7932         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
7933         (sparc64_fixup_plt): Fix a typo.
7934         (elf_machine_rela): Set value to 0 if relocating conflicts.
7935         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
7936         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7937         libraries where prelinking info cannot be used.
7938         * sysdeps/sh/bits/link.h: New file.
7939         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
7940         content of .got[1].
7941         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
7942         of adjusting it if prelinked and prelinking cannot be used.
7943         * sysdeps/s390/s390-32/bits/link.h: New file.
7944         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
7945         Save original content of .got[1].
7946         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7947         of adjusting it if prelinked and prelinking cannot be used.
7948         * sysdeps/s390/s390-64/bits/link.h: New file.
7949         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
7950         Save original content of .got[1].
7951         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
7952         of adjusting it if prelinked and prelinking cannot be used.
7953         * sysdeps/x86_64/bits/link.h: New file.
7954         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
7955         Save original content of .got[1].
7956         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
7957         of adjusting it if prelinked and prelinking cannot be used.
7958
7959 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
7960
7961         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
7962         where appropriate instead of numbers.  Little optimizations.
7963
7964 2001-12-10  Roland McGrath  <roland@frob.com>
7965
7966         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
7967         set it.
7968
7969         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
7970         set to GLIBC_2.2.5, not GLIBC_2.2.4.
7971
7972         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
7973         Fix conditionals so this is set by default for stdio and not for libio.
7974         * sysdeps/mach/hurd/configure: Regenerated.
7975
7976 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
7977
7978         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
7979
7980 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
7981
7982         * io/Makefile (tests): Add bug-ftw3.
7983         * io/bug-ftw3.c: New file.
7984
7985         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
7986         matches and GLOB_NOCHECK is set.
7987         * posix/globtest.sh: Correct expected result for NOCHECK test.
7988
7989         * po/ca.po: Update from translation team.
7990
7991 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
7992
7993         Implement transliteration of characters in strings of the locale
7994         definitions.
7995         * locale/programs/linereader.c: Adjust for additional parameter to
7996         lr_token.
7997         (get_string): If character <Uxxxx> is not found try to transliterate
7998         it.
7999         * locale/programs/ld-ctype.c: Adjust for additional parameter to
8000         lr_token.  Add const to charmap parameter of all functions.
8001         (find_translit, find_translit2): New functions.
8002         * locale/programs/charmap.c: Adjust for additional parameter to
8003         lr_token.
8004         * locale/programs/repertoire.c: Likewise.
8005         * locale/programs/linereader.h: Likewise.
8006         * locale/programs/ld-address.c: Likewise.  Add const to charmap
8007         parameter of all functions.
8008         * locale/programs/ld-collate.c: Likewise.
8009         * locale/programs/ld-identification.c: Likewise.
8010         * locale/programs/ld-measurement.c: Likewise.
8011         * locale/programs/ld-messages.c: Likewise.
8012         * locale/programs/ld-monetary.c: Likewise.
8013         * locale/programs/ld-name.c: Likewise.
8014         * locale/programs/ld-numeric.c: Likewise.
8015         * locale/programs/ld-paper.c: Likewise.
8016         * locale/programs/ld-paper.c: Likewise.
8017         * locale/programs/ld-telephone.c: Likewise.
8018         * locale/programs/ld-time.c: Likewise.
8019         * locale/programs/locfile.c: Likewise.
8020         * locale/programs/localedef.c: Likewise.
8021         * locale/programs/localedef.h: Likewise.
8022         * locale/programs/locfile.h: Likewise.  Add declaration for
8023         find_translit.
8024         * locale/programs/simple-hash.c: Add const to first parameter of
8025         find_entry, iterate_table, and lookup.
8026         * locale/programs/simple-hash.h: Likewise.
8027         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
8028         instead.
8029         * include/locale.h: Define __LC_LAST.
8030         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
8031
8032 2001-12-07  Geoff Keating  <geoffk@redhat.com>
8033
8034         * sysdeps/powerpc/Dist: Update for recent FP changes.
8035         * sysdeps/powerpc/fpu/Dist: Likewise.
8036
8037 2001-12-07  Andreas Schwab  <schwab@suse.de>
8038
8039         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
8040
8041 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8042
8043         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
8044         save/restore functions here.
8045         (libm-support): Don't define these functions here.
8046         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
8047         functions here.
8048         * sysdeps/powerpc/fe_nomask.c: Move to...
8049         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
8050         * sysdeps/powerpc/fprrest.S: Move to...
8051         * sysdeps/powerpc/fpu/fprrest.S: ... here.
8052         * sysdeps/powerpc/fprsave.S: Move to...
8053         * sysdeps/powerpc/fpu/fprsave.S: ... here.
8054
8055 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8056
8057         * sysdeps/unix/sysv/linux/opensock.c: New file.
8058
8059 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8060
8061         * config.make.in (with-fp): Define from configure.
8062         * configure.in: Substitute with_fp.
8063         * configure: Regenerate.
8064         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
8065         specified, and don't change FPU environment.
8066
8067 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8068
8069         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
8070         * assert/assert.c: Check result of __asprintf call and don't use
8071         string if it failed.
8072         * assert/assert-perr.c: Likewise.
8073         * inet/rcmd.c: Likewise.
8074         * locale/programs/localedef.c (main): Check result of
8075         construct_output_path and exit if it failed.
8076         (construct_output_path): Check result of asprintf and mkdir calls and
8077         fail if they failed.
8078         * posix/getopt.c: Check result of __asprintf calls and fail if
8079         they failed.
8080         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
8081
8082 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8083
8084         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
8085         patch.
8086         * sysdeps/generic/strncase.c: Likewise.
8087         * string/tester.c: Add tests for strcasecmp and strncasecmp.
8088
8089 2001-12-05  Geoff Keating  <geoffk@redhat.com>
8090
8091         * scripts/cpp: Test the exit status from 'type', not 'awk'.
8092
8093         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
8094         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
8095         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
8096         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
8097         * sysdeps/powerpc/fclrexcpt.c: Move to...
8098         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
8099         * sysdeps/powerpc/fpu_control.h: Move to...
8100         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
8101
8102 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8103
8104         * iconvdata/ibm1129.h: Remove duplicate mappings.
8105         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
8106         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
8107         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8108
8109         * timezone/zic.c: Fix handling of turnaround times.
8110         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
8111
8112 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
8113
8114         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
8115         overflow problem.
8116
8117 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8118
8119         * posix/regex.c: For use outside glibc defined bounded pointer
8120         macros here.  Patch by Jim Meyering <jim@meyering.net>.
8121
8122         * iconvdata/Makefile (modules): Add TCVN5712-1.
8123         * iconvdata/TESTS: Add TCVN5712-1.
8124         * iconvdata/gconv-modules: Likewise.
8125         * iconvdata/tcvn5712-1.c: New file.
8126         * iconvdata/testdata/TCVN-5712: New file.
8127         * iconvdata/testdata/TCVN-5712..UTF8: New file.
8128
8129 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
8130
8131         * iconvdata/cp1258.c: Optimize conversion from UCS4.
8132
8133 2001-12-02  Roland McGrath  <roland@frob.com>
8134
8135         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
8136
8137         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
8138         Reported by Jeff Bailey <jbailey@nisa.net>.
8139
8140         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
8141         Reported by Jeff Bailey <jbailey@nisa.net>.
8142
8143         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
8144         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
8145         Reported by Jeff Bailey <jbailey@nisa.net>.
8146
8147 2001-12-01  Roland McGrath  <roland@frob.com>
8148
8149         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
8150         missing backslash in test arguments.
8151         * sysdeps/mach/hurd/configure: Regenerated.
8152
8153 2001-11-26  Roland McGrath  <roland@frob.com>
8154
8155         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
8156         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
8157
8158 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
8159
8160         * iconvdata/Makefile (modules): Add ARMSCII-8.
8161         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
8162         * iconvdata/armscii-8.c: New file.
8163
8164 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
8165
8166         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
8167         don't match, fix {{a,b},c} globbing, clean up.
8168         Patch by Flavio Veloso <flaviovs@magnux.com>.
8169         * posix/globtest.sh: Add new tests.
8170
8171 2001-11-29  Andreas Jaeger  <aj@suse.de>
8172
8173         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
8174         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
8175
8176         * sysdeps/generic/abort.c: Include libioP.h for
8177         _IO_flush_all_lockp prototype.
8178
8179 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
8180
8181         * posix/regex.h: Define __restrict_arr correctly.
8182
8183 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8184
8185         * iconvdata/ibm1163.c: New file.
8186         * iconvdata/ibm1163.h: New file.
8187         * iconvdata/ibm1164.c: New file.
8188         * iconvdata/ibm1164.h: New file.
8189         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
8190         * iconvdata/Makefile: Likewise.
8191         * iconvdata/testdata/IBM1163: New file.
8192         * iconvdata/testdata/IBM1163..UTF8: New file.
8193         * iconvdata/testdata/IBM1164: New file.
8194         * iconvdata/testdata/IBM1164..UTF8: New file.
8195         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8196
8197         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
8198         * iconvdata/ibm1124.h: Likewise.
8199         * iconvdata/ibm1132.h: Likewise.
8200         * iconvdata/ibm1133.h: Likewise.
8201         * iconvdata/ibm1160.h: Likewise.
8202         * iconvdata/ibm1161.h: Likewise.
8203         * iconvdata/ibm1162.h: Likewise.
8204         * iconvdata/ibm856.h: Likewise.
8205         * iconvdata/ibm922.h: Likewise.
8206         * iconvdata/ibm930.h: Likewise.
8207         * iconvdata/ibm932.h: Likewise.
8208         * iconvdata/ibm933.h: Likewise.
8209         * iconvdata/ibm935.h: Likewise.
8210         * iconvdata/ibm937.h: Likewise.
8211         * iconvdata/ibm939.h: Likewise.
8212         * iconvdata/ibm943.h: Likewise.
8213         * iconvdata/ibm930.c: Pretty printing.
8214         * iconvdata/ibm937.c: Avoid access accross array boundary.
8215
8216         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
8217         the current locale's codeset.
8218         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
8219         empty input string.
8220         * iconv/iconv_prog.c: Pass empty strings as default value for to-
8221         and from-charset.  Don't determine locale's charset here.
8222
8223         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
8224         as the old _IO_flush_all but lock only if parameter is nonzero.
8225         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
8226         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
8227         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
8228         if libio is used [PR libc/2575].
8229
8230 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
8231
8232         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
8233         __signbitl): Only define for ISO C99.
8234
8235 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8236
8237         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
8238         herrnop to NETDB_INTERNAL if we run out of buffer space.
8239
8240 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8241
8242         * nss/nss_files/files-XXX.c (internal_getent): Correct input
8243         overflow test for platforms with signed char.
8244         Reported by Andrew Haley <aph@cambridge.redhat.com>.
8245
8246 2001-11-28  Bruno Haible  <bruno@clisp.org>
8247
8248         * locale/programs/simple-hash.c (lookup_2): Remove function.
8249         (insert_entry_2): Call lookup instead of lookup_2.
8250
8251 2001-03-04  Bruno Haible  <bruno@clisp.org>
8252
8253         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
8254
8255 2001-10-31  Bruno Haible  <bruno@clisp.org>
8256
8257         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
8258
8259 2001-03-21  Bruno Haible  <bruno@clisp.org>
8260
8261         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
8262         chokes on empty macro arguments.
8263         * intl/plural.y: Add #pragma for alloca on AIX 3.
8264
8265 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8266
8267         * intl/dcigettext.c (guess_category_value): Only implement for
8268         glibc.  Otherwise rely on function _nl_locale_name which isn't
8269         present in the glibc sources.
8270
8271 2001-09-24  Bruno Haible  <bruno@clisp.org>
8272
8273         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
8274         transliteration when building on a glibc system but outside glibc.
8275
8276 2001-09-22  Bruno Haible  <bruno@clisp.org>
8277
8278         * intl/plural-eval.c: New file, extracted from dcigettext.c.
8279         * intl/dcigettext.c (plural_eval): Remove function, moved to
8280         intl/plural-eval.c.
8281         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
8282         Include plural-eval.c.
8283
8284 2001-09-22  Bruno Haible  <bruno@clisp.org>
8285
8286         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
8287         don't start with a digit; nplurals must be positive.
8288
8289 2001-09-02  Bruno Haible  <bruno@clisp.org>
8290
8291         * intl/plural-exp.h: New file, extracted from gettextP.h.
8292         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
8293         * intl/gettextP.h (struct expression, struct parse_args,
8294         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
8295         * intl/loadmsgcat.c: Include plural-exp.h.
8296         (PLURAL_PARSE): Move macro to plural-exp.h.
8297         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
8298         plural-exp.c.
8299         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
8300         EXTRACT_PLURAL_EXPRESSION.
8301         (_nl_unload_domain): Update.
8302         * intl/dcigettext.c: Include plural-exp.h.
8303         * intl/plural.y: Include plural-exp.h, not gettextP.h.
8304         (FREE_EXPRESSION): Move macro to plural-exp.h.
8305         * intl/Makefile (routines): Add plural-exp.
8306         (distribute): Add plural-exp.h.
8307
8308 2001-07-28  Bruno Haible  <bruno@clisp.org>
8309
8310         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
8311         isdigit, tolower argument to 'unsigned char'.
8312         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
8313         'unsigned char'.
8314         * intl/localealias.c (read_alias_file): Cast isspace argument to
8315         'unsigned char'.
8316
8317 2001-10-20  Bruno Haible  <bruno@clisp.org>
8318
8319         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
8320         anyway.)
8321         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
8322         with the variable 'index' in plural_lookup.
8323         * intl/l10nflist.c (strchr): Likewise.
8324         * intl/localealias.c (strchr): Likewise.
8325
8326         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
8327         * intl/bindtextdom.c: Likewise.
8328         * intl/dcigettext.c: Likewise.
8329         * intl/dgettext.c: Likewise.
8330         * intl/dngettext.c: Likewise.
8331         * intl/explodename.c: Likewise.
8332         * intl/finddomain.c: Likewise.
8333         * intl/gettext.c: Likewise.
8334         * intl/l10nflist.c: Likewise.
8335         * intl/loadmsgcat.c: Likewise.
8336         * intl/localealias.c: Likewise.
8337         * intl/ngettext.c: Likewise.
8338         * intl/textdomain.c: Likewise.
8339         * intl/gettext.h: Assume <limits.h> exists.
8340
8341 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8342
8343         * stdio-common/Makefile (tests): Add scanf11.
8344         * stdio-common/scanf11.c: New file.
8345
8346 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8347
8348         * version.h (RELEASE): Define as development.
8349         (VERSION): Set to 2.2.90.
8350
8351 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8352
8353         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
8354         * nis/nss_nis/nis-grp.c: Likewise.
8355         * nis/nss_nisplus/nisplus-grp.c: Likewise.
8356
8357         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
8358         * nis/nss_nis/nis-pwd.c: Likewise.
8359         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
8360
8361         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
8362         * nis/nss_nisplus/nisplus-parser.c: Likewise.
8363         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8364
8365         * nscd/grpcache.c: Use strtoul instead of atol.
8366         * nscd/pwdcache.c: Likewise.
8367         * nss/getent.c: Likewise.
8368
8369 2001-11-27  Paul Eggert  <eggert@twinsun.com>
8370
8371         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8372         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8373
8374 2001-11-19  Bruno Haible  <bruno@clisp.org>
8375
8376         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
8377         90%.
8378         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
8379         improves the quality of the hash function, especially for short
8380         strings.
8381
8382 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8383
8384         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
8385         are found call conv_error and not input_error [PR libc/2669].
8386
8387         * math/bits/mathcalls.h: Mark ceil and floor as const.
8388         Reported by David Mosberger.
8389
8390 2001-11-21  Jim Meyering  <meyering@lucent.com>
8391
8392         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
8393         Define to be __-prefixed.
8394         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
8395
8396 2001-11-26  Andreas Jaeger  <aj@suse.de>
8397
8398         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
8399         avoid warning.
8400
8401 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
8402
8403         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
8404         initialization.
8405
8406         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
8407         unused variables.  Fix threshold for returning 1.0.
8408
8409         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
8410         argument.
8411
8412         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
8413         remove unused variables.
8414
8415         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
8416
8417         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
8418         include local math header files.
8419
8420 2001-11-22  Andreas Jaeger  <aj@suse.de>
8421
8422         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
8423         avoid warning.
8424
8425 2001-11-21  Andreas Jaeger  <aj@suse.de>
8426
8427         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
8428
8429         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
8430         sys/debugreg.h
8431
8432 2001-11-15  Andreas Jaeger  <aj@suse.de>
8433
8434         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
8435         compilers that support it.
8436
8437         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
8438         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
8439         * stdlib/stdlib.h: Likewise.
8440
8441 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
8442
8443         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
8444         statement with gotos.
8445         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
8446
8447 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
8448
8449         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
8450
8451 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
8452
8453         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8454
8455 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
8456             H.J. Lu  <hjl@gnu.org>
8457
8458         * Versions.def (libc): Add GCC_3.0.
8459         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8460         if gcc supports this flag.
8461         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8462         (gcc3): Allow glibc to be compiled with gcc 3.x.
8463         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8464         * config.make.in (static-libgcc, unwind-find-fde): Add.
8465         * Makerules (build-shlib-helper, build-module-helper): Use it.
8466         * scripts/versions.awk: Make sure GLIBC_ versions come first.
8467         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8468         necessary.
8469         (_fini): Call __deregister_frame_info_bases if
8470         __register_frame_info_bases was used to register.
8471         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8472         for GLIBC_2.0.
8473         (__register_frame_info_bases, __register_frame_info_table_bases,
8474         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8475         * elf/Makefile (routines): Add unwind-dw2-fde.
8476         (shared-only-routines): Add unwind-dw2-fde.
8477         * sysdeps/alpha/gccframe.h: New file.
8478         * sysdeps/arm/gccframe.h: New file.
8479         * sysdeps/generic/framestate.c: New file.
8480         * sysdeps/generic/dwarf2.h: New file.
8481         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8482         * sysdeps/generic/unwind-dw2-fde.c: New file.
8483         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8484         * sysdeps/generic/unwind-dw2-fde.h: New file.
8485         * sysdeps/generic/unwind-dw2.c: New file.
8486         * sysdeps/generic/unwind-pe.h: New file.
8487         * sysdeps/generic/unwind.h: New file.
8488         * sysdeps/hppa/gccframe.h: New file.
8489         * sysdeps/i386/gccframe.h: New file.
8490         * sysdeps/m68k/gccframe.h: New file.
8491         * sysdeps/mips/gccframe.h: New file.
8492         * sysdeps/powerpc/gccframe.h: New file.
8493         * sysdeps/s390/gccframe.h: New file.
8494         * sysdeps/sh/gccframe.h: New file.
8495         * sysdeps/sparc/gccframe.h: New file.
8496         * sysdeps/vax/gccframe.h: New file.
8497         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8498         Set on all architectures except ia64.
8499         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8500         for i386.
8501         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8502         __deregister_frame_info): Move to elf/Versions.
8503         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8504         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8505         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8506         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8507         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8508         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8509         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8510         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8511         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8512         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8513         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8514         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8515         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8516         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8517         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8518         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8519         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8520         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8521
8522 2001-11-15  Jeff Law  <law@redhat.com>
8523
8524         * posix/regex.c (uintptr_t): Do not provide a definition if the
8525         system provided one.
8526
8527 2001-11-13  Roland McGrath  <roland@frob.com>
8528
8529         * stdio-common/tmpfile.c: Moved to ...
8530         * sysdeps/generic/tmpfile.c: ... here.
8531         * sysdeps/mach/hurd/tmpfile.c: New file.
8532
8533         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
8534         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
8535         (fopenport): Define as weak alias.
8536
8537         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
8538         * libio/libioP.h: ... to here.
8539
8540 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
8541
8542         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
8543         program header twice.  Construct list with the needed information.
8544
8545 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
8546
8547         * po/ca.po: Update from translation team.
8548
8549         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
8550         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
8551         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
8552         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8553
8554 2001-11-10  Andreas Jaeger  <aj@suse.de>
8555
8556         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
8557         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8558         Contributed by Stephen L Moshier <moshier@mediaone.net>.
8559
8560 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
8561
8562         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
8563         correctly.
8564         * elf/dl-load.c (is_dst): New function.
8565         (_dl_dst_count): Use is_dst to check for DST variable.
8566         (_dl_dst_substitute): Likewise.
8567
8568 2001-11-09  Roland McGrath  <roland@frob.com>
8569
8570         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
8571         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
8572         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
8573         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
8574         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
8575         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
8576         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
8577         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
8578         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
8579         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
8580         * sysdeps/mach/hurd/powerpc/Dist: New file.
8581
8582         * hurd/privports.c (__get_privileged_ports):
8583         Only contact the proc server if necessary for this call.
8584         Suggested by Neal H Walfield <neal@cs.uml.edu>.
8585         Check error return for mach_port_mod_refs.
8586
8587 2001-11-09  Andreas Schwab  <schwab@suse.de>
8588
8589         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
8590
8591 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
8592
8593         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
8594         object is always the last in the list.
8595         (_dl_map_object_from_fd): Delete code to remove from object list
8596         when DF_1_NOOPEN is seen.  This is done in lose.
8597
8598 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
8599
8600         * elf/dl-object.c (_dl_new_object): Various small optimizations.
8601
8602 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
8603
8604         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
8605         HWCAP_CHECK macro code.
8606
8607         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
8608         Now returns MAP_FAILED on error.
8609         * elf/rtld.c: Adjust caller.
8610         * sysdeps/generic/dl-cache.c: Likewise.
8611         * sysdeps/generic/ldsodefs.h: Adjust description.
8612
8613         * elf/dl-version.c (match_symbol): Optimize error handling for size.
8614         (_dl_check_map_versions): Likewise.
8615
8616 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
8617
8618         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
8619         _dl_signal_error directly, always use lose.  Set fd to -1 after
8620         file is closed.
8621         (lose): Don't call close if fd == -1.
8622
8623 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
8624
8625         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
8626          Also fix typo @code {mbsinit} to @code{mbsinit}.
8627
8628 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
8629
8630         * elf/dl-profile.c: Replace state variable with simple flag named
8631         running.  Remove commented-out code.
8632
8633         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
8634         (_dl_init_paths): Likewise.
8635         (_dl_map_object_from_fd): Likewise.
8636         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8637
8638 2001-11-06  Roland McGrath  <roland@frob.com>
8639
8640         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
8641         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
8642
8643         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
8644         sysdeps/powerpc/elf/sysdep.h.
8645         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
8646
8647 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
8648
8649         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
8650         speed.
8651         (process_envvars): Some more optimizations.
8652         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
8653
8654         * elf/elf.h: Add dynamic tag definitions for prelinking.
8655
8656         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
8657         Rewrite code to remove environment varables for SUID binaries.
8658         Small optimization in LD_PROFILE handling.
8659         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
8660         changes.
8661         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8662
8663         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
8664
8665         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
8666         strings.  Change type of second parameter.
8667         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
8668         for last change.
8669
8670         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
8671
8672 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
8673
8674         * manual/string.texi: Fix typos.
8675         * manual/examples/argp-ex2.c: Likewise.
8676
8677 2001-11-05  Roland McGrath  <roland@frob.com>
8678
8679         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
8680         the more-specific unix/sysv/linux/powerpc file and breaks everything.
8681         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
8682         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
8683         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
8684         here, put under [__ELF__].
8685
8686 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
8687
8688         * manual/charset.texi: Extensive editing work.
8689         * manual/nss.texi: Likewise.
8690         Changes by Dennis Grace <dgrace@us.ibm.com>.
8691
8692 2001-11-04  Roland McGrath  <roland@frob.com>
8693
8694         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
8695         parameter to dir_mkfile.
8696
8697 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
8698
8699         * string/bits/string2.h (__strndup): If n is smaller than len, set
8700         len to n + 1.
8701         * string/tester.c (test_strndup): New function.
8702         (main): Call it.
8703
8704 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
8705
8706         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
8707
8708         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
8709         * scripts/cpp: New file.
8710
8711         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
8712         for rtld_search_dirs content.  Minor optimizations.
8713
8714 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
8715
8716         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
8717         avoiding unnecessary duplication.
8718
8719 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
8720
8721         * elf/dl-load.c (_dl_map_object): If library was found using
8722         LD_LIBRARY_PATH, don't try RUNPATH list.
8723
8724 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8725
8726         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
8727         Correct second argument of register_dump call.
8728         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
8729         Likewise.
8730
8731 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
8732
8733         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
8734         modules.
8735         * iconvdata/TESTS: Likewise.
8736         * iconvdata/gconv-modules: Likewise.
8737         * iconvdata/ibm1132.c: New file.
8738         * iconvdata/ibm1132.h: New file.
8739         * iconvdata/ibm1133.c: New file.
8740         * iconvdata/ibm1133.h: New file.
8741         * iconvdata/ibm1162.c: New file.
8742         * iconvdata/ibm1162.h: New file.
8743         * iconvdata/testdata/IBM1132: New file.
8744         * iconvdata/testdata/IBM1132..UTF8: New file.
8745         * iconvdata/testdata/IBM1133: New file.
8746         * iconvdata/testdata/IBM1133..UTF8: New file.
8747         * iconvdata/testdata/IBM1162: New file.
8748         * iconvdata/testdata/IBM1162..UTF8: New file.
8749         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
8750
8751         * string/string.h: Fix typo in comment.
8752         * wcsmbs/wchar.h: Likewise.
8753
8754 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
8755
8756         * manual/getopt.texi (getopt_long, getopt_long_only): Include
8757         const in type of longopts parameter.
8758
8759 2001-10-29  Andreas Jaeger  <aj@suse.de>
8760
8761         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
8762
8763 2001-10-29  Kevin Ryde  <user42@zip.com.au>
8764
8765         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
8766         output, clarify `#' behaviour on 0.
8767         (Floating-Point Conversions): Clarify that %g only uses %e when
8768         the exponent would be greater than 1.
8769
8770 2001-10-28  Roland McGrath  <roland@frob.com>
8771
8772         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
8773         * sysdeps/mach/powerpc/machine-sp.h: New file.
8774         * sysdeps/mach/powerpc/sysdep.h: New file.
8775         * sysdeps/mach/powerpc/thread_state.h: New file.
8776
8777         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
8778         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
8779         expect to need the same thing on every platform.
8780
8781         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
8782         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
8783
8784         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
8785         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
8786         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
8787         Move all these assembly-related definitions to ...
8788         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
8789
8790         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
8791         by Peter Bruin <pjbruin@dds.nl>.
8792
8793         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
8794         packing results for a `poll' call.
8795
8796 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
8797
8798         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
8799         correctly.
8800         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
8801         bracket expression.
8802
8803         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
8804         nrules value.
8805         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
8806
8807 2001-10-24  H.J. Lu  <hjl@gnu.org>
8808
8809         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
8810         Use __BEGIN_DECLS/__END_DECLS around prototypes.
8811         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
8812
8813 2001-10-21  Jim Meyering  <meyering@lucent.com>
8814
8815         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
8816         this code would end up calling gettext even in packages built
8817         with --disable-nls.
8818         * posix/getopt.c (_): Likewise.
8819         * posix/regex.c (_): Likewise.
8820
8821 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
8822
8823         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
8824         lookup not ip6.int.
8825         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
8826         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
8827
8828 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
8829
8830         * misc/sys/cdefs.h (__attribute_used__): Define.
8831         * elf/rtld.c (_dl_start): Add __attribute_used__.
8832         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
8833
8834 2001-10-25  Andreas Schwab  <schwab@suse.de>
8835
8836         * stdlib/a64l.c: Expect least significant digit first.
8837         * stdlib/l64a.c: Produce least significant digit first.
8838         * stdlib/Makefile (tests): Add test-a64l.
8839         * stdlib/test-a64l.c: New file.
8840         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
8841
8842 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
8843
8844         * po/sk.po: Update from translation team.
8845
8846 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
8847
8848         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
8849
8850 2001-10-18  Andreas Schwab  <schwab@suse.de>
8851
8852         * math/libm-test.inc (print_ulps): Print ulp values rounded to
8853         next whole number.
8854         (print_function_ulps): Likewise.
8855         (print_complex_function_ulps): Likewise.
8856         (print_max_error): Likewise.
8857         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
8858
8859 2001-10-16  Andreas Schwab  <schwab@suse.de>
8860
8861         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
8862         implementation.
8863
8864         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
8865         BSD_SETJMP or BSD__SETJMP is defined, resp.
8866         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
8867         a tail call to __sigsetjmp that would require extending the
8868         caller's frame.
8869         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
8870         * sysdeps/m68k/bsd-setjmp.S: Deleted.
8871         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
8872         Reported by Jes Sorensen <jes@trained-monkey.org>.
8873
8874 2001-10-16  Andreas Jaeger  <aj@suse.de>
8875
8876         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
8877         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
8878         close PR libc/2589.
8879
8880 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
8881
8882         * po/ca.po: New file.  Contributed by the translation team.
8883
8884 2001-10-15  Ralf Baechle  <ralf@gnu.org>
8885
8886         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
8887         a varargs prototype.  Remove dependency from kernel header files.
8888
8889         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
8890         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
8891
8892 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
8893
8894         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
8895         to generate hexadecimal identifier.
8896         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
8897
8898 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
8899
8900         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
8901
8902 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
8903
8904         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
8905         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
8906         Contributed by Stephen L Moshier <moshier@mediaone.net>.
8907
8908         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
8909         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8910         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
8911         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
8912         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
8913         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
8914
8915         * timezone/africa: Update from tzdata2001d.
8916         * timezone/asia: Likewise.
8917         * timezone/australasia: Likewise.
8918         * timezone/backward: Likewise.
8919         * timezone/europe: Likewise.
8920         * timezone/leapseconds: Likewise.
8921         * timezone/northamerica: Likewise.
8922         * timezone/southamerica: Likewise.
8923         * timezone/zone.tab: Likewise.
8924
8925 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8926
8927         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
8928         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
8929
8930 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
8931
8932         * elf/elf.h (PT_TLS): New definition.
8933
8934 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
8935
8936         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
8937         bits/errno.h
8938
8939 2001-10-07  Roland McGrath  <roland@frob.com>
8940
8941         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
8942
8943 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
8944
8945         * elf/elf.h: Add more ELFOSABI_* constants.
8946
8947 2001-10-04  Ben Collins  <bcollins@debian.org>
8948
8949         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
8950         decleration of __need_wchar_t.
8951
8952 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
8953
8954         * string/bits/string2.h (__strsep_g): Add prototype.
8955         (__strsep): Use it.
8956         * string/Versions (__strsep): Remove.
8957         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
8958
8959 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
8960
8961         * manua/llio.texi: Clarify file references added by mmap.
8962         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
8963
8964 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
8965
8966         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
8967         Add sc_loadrs and sc_rbs_bas to match current kernel.
8968
8969 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
8970
8971         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
8972
8973         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
8974
8975 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
8976
8977         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
8978         object has been bumped because of relocation dependency, avoid
8979         duplicates in l_scope.
8980         (show_scope): Fix typos.
8981         * elf/Makefile: Add rules to build and run reldep6.
8982         * elf/reldep6.c: New file.
8983         * elf/reldep6mod0.c: New file.
8984         * elf/reldep6mod1.c: New file.
8985         * elf/reldep6mod2.c: New file.
8986         * elf/reldep6mod3.c: New file.
8987         * elf/reldep6mod4.c: New file.
8988
8989 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
8990
8991         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
8992         sparc64_fixup_plt.
8993         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
8994         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
8995         for non-lazy binding. Fix .plt[32768+] handling.
8996         (elf_machine_plt_value): Don't add addend.
8997         (elf_machine_rela): Call sparc64_fixup_plt instead of
8998         elf_machine_fixup_plt.
8999         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
9000         dynamic linker at 0xfffff800XXXXXXXX.
9001
9002         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9003
9004 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
9005
9006         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
9007
9008 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
9009
9010         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
9011         declare __cmsg_data field if its size would be bigger than 0.
9012         (CMSG_DATA): Adjust accordingly.
9013         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9014         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
9015         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
9016         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
9017         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9018         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9019         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9020
9021 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
9022
9023         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
9024         * iconvdata/testdata/IBM1160: New file.
9025         * iconvdata/testdata/IBM1160..UTF8: New file.
9026         * iconvdata/testdata/IBM1161: New file.
9027         * iconvdata/testdata/IBM1161..UTF8: New file.
9028         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9029
9030 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9031
9032         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
9033         UL_SETFSIZE computations better.
9034
9035         * rt/Makefile: Remove use of filter for librt again.
9036
9037         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
9038         UL_SETFSIZE computations better.
9039
9040         * string/Versions: Export __strsep for GLIBC_2.2.5.
9041         * string/bits/string2.h: Define all __STRING_INLINE functions if
9042         _FORCE_INLINES is defined.
9043         Use int instead of char of parameter types.
9044         (__strsep): Don't use __strsep_g.  Don't define it.
9045         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
9046         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
9047         __strcpy_small.
9048         (__stpcpy_a_small): Renamed from __stpcpy_small.
9049         (__strcspn_c1): Don't define if _FORCE_INLINES.
9050         (__strspn_c1): Likewise.
9051
9052 2001-09-22  Ben Collins  <bcollins@debian.org>
9053
9054         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
9055         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
9056         * sysdeps/ia64/bits/sigaction.h: Likewise.
9057         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
9058
9059 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
9060
9061         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
9062
9063 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
9064
9065         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
9066
9067 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9068
9069         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
9070
9071 2001-09-20  H.J. Lu  <hjl@gnu.org>
9072
9073         * include/dlfcn.h (__RTLD_SPROF): New definiton.
9074         * elf/dl-open.c (dl_open_worker): Return immediately after loading
9075         for __RTLD_SPROF.
9076         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
9077         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9078
9079 2001-09-20  H.J. Lu  <hjl@gnu.org>
9080
9081         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
9082         don't add 1.
9083
9084 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9085
9086         * nss/getent.c: Accept -s parameter to overwrite rules in
9087         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
9088
9089         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
9090         with as many ".0" as necessary to form a complete address
9091         inet_network understands.
9092
9093         * nss/getent.c: Various cleanups.  Use simpler and fewer function
9094         calls.
9095
9096 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9097
9098         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
9099         _JMPBUF_UNWINDS.
9100         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
9101
9102 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9103
9104         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
9105         IBM1161.
9106         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
9107         * iconvdata/ibm1160.c: New file.
9108         * iconvdata/ibm1160.h: New file.
9109         * iconvdata/ibm1161.c: New file.
9110         * iconvdata/ibm1161.h: New file.
9111         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9112
9113 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
9114
9115         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
9116         difference between base address and first PT_LOAD's virtual address,
9117         not the base address.
9118
9119 2001-09-11  Tom Rix  <trix@redhat.com>
9120
9121         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
9122         ifdef for __getopt_clean_environment.
9123         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
9124
9125 2001-09-22  Andreas Jaeger  <aj@suse.de>
9126
9127         * elf/reldep4.c (main): Add proper prototype to fix warning.
9128
9129         * elf/reldep5.c (main): Remove unused variable.
9130
9131         * math/math_private.h: Add prototypes.
9132
9133 2001-09-21  Andreas Jaeger  <aj@suse.de>
9134
9135         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
9136         * sysdeps/x86_64/Dist: New file.
9137         * sysdeps/x86_64/soft-fp/Dist: New file.
9138
9139         * sysdeps/gnu/Dist: Remove eval.c.
9140
9141 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
9142
9143         * malloc/memusage.c (realloc): Don't count already allocated
9144         memory in the sums.
9145         (me): Always use dlsym() to find the real implementations.
9146
9147         * malloc/memusage.sh: Make -n option actually do something.
9148
9149 2001-09-20  Andreas Jaeger  <aj@suse.de>
9150
9151         * elf/elf.h (R_390_NUM): Correct value.
9152
9153         * Versions.def: Add missing versions 2.2.3 for libthread_db and
9154         libpthread.
9155
9156         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
9157         for x86-64, install x86-64 into */lib64.
9158
9159         * shlib-versions: Add x86-64.
9160
9161         * elf/elf.h: Add x86-64 relocations.
9162
9163 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
9164
9165         * po/fr.po: Update from translation team.
9166
9167 2001-09-19  Andreas Jaeger  <aj@suse.de>
9168
9169         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
9170         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9171         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
9172         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
9173         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
9174         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
9175         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
9176         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
9177         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
9178         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
9179         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
9180         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
9181         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
9182         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
9183         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
9184         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
9185         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
9186         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9187         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
9188         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
9189         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
9190         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
9191         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
9192         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
9193         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
9194         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
9195         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
9196         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
9197         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
9198         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
9199         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
9200         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
9201         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
9202         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
9203         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
9204         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
9205         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
9206         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
9207         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
9208         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
9209         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
9210         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
9211         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
9212         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
9213         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
9214         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
9215         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
9216         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
9217         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9218         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
9219         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
9220         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
9221         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
9222         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
9223         * sysdeps/unix/x86_64/sysdep.S: New file.
9224         * sysdeps/unix/x86_64/sysdep.h: New file.
9225         * sysdeps/x86_64/Implies: New file.
9226         * sysdeps/x86_64/Makefile: New file.
9227         * sysdeps/x86_64/Versions: New file.
9228         * sysdeps/x86_64/__longjmp.S: New file.
9229         * sysdeps/x86_64/abort-instr.h: New file.
9230         * sysdeps/x86_64/atomicity.h: New file.
9231         * sysdeps/x86_64/bits/endian.h: New file.
9232         * sysdeps/x86_64/bits/setjmp.h: New file.
9233         * sysdeps/x86_64/bits/string.h: New file.
9234         * sysdeps/x86_64/bp-asm.h: New file.
9235         * sysdeps/x86_64/bsd-_setjmp.S: New file.
9236         * sysdeps/x86_64/bsd-setjmp.S: New file.
9237         * sysdeps/x86_64/dl-machine.h: New file.
9238         * sysdeps/x86_64/elf/initfini.c: New file.
9239         * sysdeps/x86_64/elf/start.S: New file.
9240         * sysdeps/x86_64/ffs.c: New file.
9241         * sysdeps/x86_64/ffsll.c: New file.
9242         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
9243         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
9244         * sysdeps/x86_64/fpu/e_acosl.c: New file.
9245         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
9246         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
9247         * sysdeps/x86_64/fpu/e_expl.c: New file.
9248         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
9249         * sysdeps/x86_64/fpu/e_log10l.S: New file.
9250         * sysdeps/x86_64/fpu/e_log2l.S: New file.
9251         * sysdeps/x86_64/fpu/e_logl.S: New file.
9252         * sysdeps/x86_64/fpu/e_powl.S: New file.
9253         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
9254         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
9255         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
9256         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
9257         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
9258         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
9259         * sysdeps/x86_64/fpu/fegetenv.c: New file.
9260         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
9261         * sysdeps/x86_64/fpu/fegetround.c: New file.
9262         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
9263         * sysdeps/x86_64/fpu/fesetenv.c: New file.
9264         * sysdeps/x86_64/fpu/fesetround.c: New file.
9265         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
9266         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
9267         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
9268         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
9269         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
9270         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
9271         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
9272         * sysdeps/x86_64/fpu/s_atanl.c: New file.
9273         * sysdeps/x86_64/fpu/s_cosl.S: New file.
9274         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
9275         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
9276         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
9277         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
9278         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
9279         * sysdeps/x86_64/fpu/s_logbl.c: New file.
9280         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
9281         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
9282         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
9283         * sysdeps/x86_64/fpu/s_rintl.c: New file.
9284         * sysdeps/x86_64/fpu/s_significandl.c: New file.
9285         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
9286         * sysdeps/x86_64/fpu/s_sinl.S: New file.
9287         * sysdeps/x86_64/fpu/s_tanl.S: New file.
9288         * sysdeps/x86_64/gmp-mparam.h: New file.
9289         * sysdeps/x86_64/hp-timing.c: New file.
9290         * sysdeps/x86_64/hp-timing.h: New file.
9291         * sysdeps/x86_64/htonl.S: New file.
9292         * sysdeps/x86_64/memusage.h: New file.
9293         * sysdeps/x86_64/setjmp.S: New file.
9294         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
9295         * sysdeps/x86_64/stackinfo.h: New file.
9296         * sysdeps/x86_64/sysdep.h: New file.
9297         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
9298
9299         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
9300         L Moshier.
9301
9302 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9303
9304         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
9305         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
9306
9307 2001-09-18  Andreas Schwab  <schwab@suse.de>
9308
9309         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
9310         list, now that l_scope is a pointer.
9311
9312         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
9313         scope list.
9314
9315 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9316
9317         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
9318         (elf_machine_rela_relative): Add a missing declaration.
9319
9320 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
9321
9322         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
9323         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9324         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
9325         ldd-rewrite scripts.
9326
9327 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9328
9329         * elf/ldd.bash.in: Update copyright message.
9330
9331 2001-09-17  H.J. Lu  <hjl@gnu.org>
9332
9333         * hurd/hurdmalloc.c (bcopy): Removed.
9334         (realloc): Replace bcopy with memcpy.
9335         * hurd/path-lookup.c (file_name_path_scan): Likewise.
9336         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
9337         * sunrpc/rpcinfo.c (pmapdump): Likewise.
9338
9339         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
9340         (gethostbyaddr): Likewise.
9341         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
9342
9343 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9344
9345         * sysdeps/gnu/eval.c: Removed.
9346
9347 2001-09-18  Andreas Jaeger  <aj@suse.de>
9348
9349         * sysdeps/i386/fpu/s_logbl.S: Move to ...
9350         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
9351
9352         * sysdeps/i386/fpu/s_rintl.S: Move to ...
9353         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
9354
9355         * sysdeps/i386/fpu/s_significandl.S: Move to ...
9356         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
9357
9358 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
9359
9360         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9361         nrules value.
9362
9363 2001-09-14  H.J. Lu  <hjl@gnu.org>
9364
9365         * sysdeps/mips/fpu/libm-test-ulps: Updated.
9366
9367 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
9368
9369         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
9370         Patch by Florian La Roche <laroche@redhat.com>.
9371
9372         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
9373
9374         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
9375         ETHER_CRC_LEN.
9376
9377 2001-09-14  Andreas Schwab  <schwab@suse.de>
9378
9379         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
9380         Sumner <bls@sgi.com>.
9381         * posix/execlp.c: Likewise.
9382
9383 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
9384
9385         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
9386         is already found earlier in the search scope.
9387
9388 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9389
9390         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
9391         filter.
9392
9393 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
9394
9395         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
9396
9397 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
9398
9399         * config.h.in: Enforce optimization to be used.
9400         * Makeconfig (preprocess-versions): Define ASSEMBLER.
9401         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
9402         * posix/Makefile (annexc-CFLAGS): Define to -O.
9403         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9404
9405 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
9406
9407         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
9408         Patch by Stephan Kulow.
9409
9410 2001-09-08  Ben Collins  <bcollins@debian.org>
9411
9412         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
9413         usage of RESOLVE() (r_type, not reloc->r_type).
9414
9415 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9416
9417         * elf/dl-object.c: Avoid allocating extra memory block for name.
9418         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
9419         allocated separately.
9420         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9421
9422 2001-09-08  H.J. Lu  <hjl@gnu.org>
9423
9424         * po/zh_TW.po: Fix a typo.
9425
9426 2001-09-07  Tom Rix  <trix@redhat.com>
9427
9428         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9429
9430 2001-08-26  Tom Rix  <trix@redhat.com>
9431
9432         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
9433         command line options.
9434         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
9435         * sysdeps/unix/sysv/aix/start.c: Removed.
9436         * sysdeps/unix/sysv/aix/start-libc.c: New file.
9437         * sysdeps/unix/sysv/aix/init-first.c: New file.
9438         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
9439
9440 2001-09-08  Ben Collins  <bcollins@debian.org>
9441
9442         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
9443         * sysdeps/generic/dl-machine.h: Likewise.
9444         * sysdeps/hppa/dl-fptr.c: Likewise.
9445         * sysdeps/ia64/dl-fptr.c: Likewise.
9446         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9447         * sysdeps/mips/dl-machine.h: Likewise.
9448         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9449         * sysdeps/powerpc/dl-machine.c: Likewise.
9450
9451 2001-09-07  Ben Collins  <bcollins@debian.org>
9452
9453         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9454
9455         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9456
9457 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9458
9459         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9460         dependencies if necessary.
9461
9462         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9463         loaded directly) determine length if l_initfini list by iterating
9464         over its elements.  Minor optimizations.
9465         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9466         for dependency objects.
9467         If object was already loaded check whether any of the dependencies
9468         is already on the relocation dependency list.  If yes, remove the
9469         latter.  Minor optimizations.
9470         * elf/dl-lookup.c (add_dependency): Add check for self reference of
9471         maps here.  Search l_initfini list only if the object was loaded
9472         directly and not only as a dependency.
9473         (_dl_lookup_symbol): Add relocation dependency also if object
9474         is not in global scope.  Remove test for self-reference here.
9475         (_dl_lookup_versioned_symbol): Likewise.
9476         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
9477         element of first name record.
9478         * elf/loadtest.c: Add some more test to recognize early if an object
9479         wasn't unloaded.
9480         * elf/Makefile: Add rules to build and run reldep5.
9481         * elf/reldep5.c: New file.
9482         * elf/reldepmod5.c: New file.
9483         * elf/reldepmod6.c: New file.
9484
9485         * elf/reldep2.c: Fix typo.
9486
9487 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
9488
9489         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9490         elements.  Change l_scope to be a pointer only.
9491         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9492         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9493         here add searchlist of newly open file to the dependency's scope.
9494         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9495         only searchlist from its scope.  Free own scope array if necessary.
9496         * elf/Makefile (tests): Add dblload and dblunload now.
9497
9498 2001-09-06  Andreas Jaeger  <aj@suse.de>
9499
9500         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9501         Stephen L Moshier.
9502
9503 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
9504
9505         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
9506         they both fail.
9507         * elf/dblload.c: New file.
9508         * elf/dblloadmod1.c: New file.
9509         * elf/dblloadmod2.c: New file.
9510         * elf/dblloadmod3.c: New file.
9511         * elf/dblunload.c: New file.
9512
9513 2001-09-04  Richard Henderson  <rth@redhat.com>
9514
9515         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9516         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
9517
9518 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9519
9520         Correct very misleading message for error in failed runtime relocation.
9521         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
9522         place of the error.
9523         (_dl_signal_cerror): Likewise.
9524         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
9525         * elf/dl-close.c: Likewise.
9526         * elf/dl-deps.c: Likewise.
9527         * elf/dl-load.c: Likewise.
9528         * elf/dl-lookup.c: Likewise.
9529         * elf/dl-open.c: Likewise.
9530         * elf/dl-reloc.c: Likewise.
9531         * elf/dl-sym.c: Likewise.
9532         * elf/dl-version.c: Likewise.
9533         * sysdeps/generic/dl-sysdep.c: Likewise.
9534
9535 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9536
9537         * iconv/strtab.c (strtabinit): Initialize null Strent.
9538         (newstring): Move len == 0 handling...
9539         (strtabadd): ...here.
9540         If len == 1, return null Strent.
9541         When inserting a suffix of an existing string, check if
9542         it is not equal to some suffix already recorded.
9543         Copy left and right members over if adding longer string.
9544
9545 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9546
9547         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
9548
9549         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
9550         (__syscall_gethostname): Add prototype.
9551
9552 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9553
9554         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
9555
9556 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
9557
9558         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
9559
9560 2001-08-27  Roland McGrath  <roland@frob.com>
9561
9562         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
9563         short, copy that much into NAME anyway before returning error.
9564
9565 2001-09-01  Richard Henderson  <rth@redhat.com>
9566
9567         * sysdeps/alpha/elf/Dist: Remove file.
9568         * sysdeps/alpha/elf/Makefile: Remove file.
9569         * sysdeps/alpha/elf/crtbegin.S: Remove file.
9570         * sysdeps/alpha/elf/crtend.S: Remove file.
9571         * sysdeps/alpha/elf/initfini.c: New file.
9572
9573 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
9574
9575         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
9576         * iconv/tst-iconv3.c: Likewise.
9577
9578 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
9579
9580         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
9581
9582 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
9583
9584         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
9585         export it.
9586         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
9587         * iconv/iconv_prog.c (insert_cache): New function.
9588         (print_known_names): If cache is used call insert_cache to use the
9589         information from the cache [PR libc/2509].
9590
9591 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
9592
9593         * time/strptime.c (strptime_internal): Recognize 'l' format and
9594         handle it like 'I' for symmetry with strftime.
9595
9596 2001-08-31  Richard Henderson  <rth@redhat.com>
9597
9598         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
9599         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
9600         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
9601         (print_statistics): Make scalar unsigned long long.
9602         * sysdeps/alpha/hp-timing.h: New file.
9603
9604 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
9605
9606         * stdio-common/perror.c (perror): Save errno early, pass it
9607         down to perror_internal.
9608         (perror_internal): Add errnum argument.
9609
9610 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
9611
9612         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
9613         Don't add old memory content for R_ALPHA_REFQUAD.
9614
9615 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9616
9617         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
9618         memory correctly.
9619
9620         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
9621         instead of open, __close instead of close, __getpagesize instead
9622         of getpagesize.
9623
9624         * string/argz-stringify.c (__argz_stringify): Use __strnlen
9625         instead of strnlen.
9626         * include/string.h (strndupa): Redefine here to use __strnlen
9627         instead of strnlen.
9628         * string/strndup.c (__strndup): Use __strnlen not strnlen.
9629
9630         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
9631         connected).
9632
9633 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
9634
9635         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
9636         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
9637         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
9638         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
9639         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
9640         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
9641         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
9642
9643 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9644
9645         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
9646
9647 2001-08-30  Andreas Jaeger  <aj@suse.de>
9648
9649         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
9650         contributed Stephen L Moshier.
9651
9652 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
9653
9654         * sunrpc/etc.rpc (sgi_fam): Add.
9655
9656 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9657
9658         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
9659
9660 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
9661
9662         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
9663         first is from a previous call.
9664         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
9665
9666 2001-08-29  Andreas Schwab  <schwab@suse.de>
9667
9668         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
9669
9670 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9671
9672         * config.make.in (INSTALL_SCRIPT): Define.
9673         * Makeconfig (INSTALL_SCRIPT): Define.
9674         * Makerules (do-install-script): New macro to install scripts using
9675         INSTALL_SCRIPT.
9676         (install-bin-script): New rule to install scripts with
9677         do-install-script.
9678         (install-bin-script-nosubdir): New rule.
9679         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
9680         (distinfo-vars): Add $(install-bin-script).
9681         * Rules (others): Likewise.
9682         * Makefile (glibcbug): Install with install-bin-script.
9683         * debug/Makefile (xtrace): Likewise.
9684         (catchsegv): Likewise.
9685         * elf/Makefile (ldd): Likewise.
9686         * malloc/Makefile (mtrace): Likewise.
9687         * timezone/Makefile (tzselect): Likewise.
9688
9689 2001-08-29  H.J. Lu  <hjl@gnu.org>
9690
9691         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
9692         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
9693         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
9694
9695 2001-08-29  Andreas Schwab  <schwab@suse.de>
9696
9697         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
9698
9699 2001-08-28  H.J. Lu  <hjl@gnu.org>
9700
9701         * Makeconfig (combreloc-LDFLAGS): New variable.
9702         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
9703         * config.make.in (have-z-combreloc): New variable.
9704         * configure.in: Substitute libc_cv_z_combreloc.
9705
9706 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
9707
9708         * po/sv.po: Update from translation team.
9709         * po/fr.po: Likewise.
9710         * po/da.po: Likewise.
9711
9712 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9713
9714         * Makerules: Fix a typo: MD% -> MD5.
9715
9716 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
9717
9718         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
9719         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
9720
9721 2001-08-28  Andreas Jaeger  <aj@suse.de>
9722
9723         * manual/libc-texinfo.sh: Add entry about free manuals.
9724
9725         * manual/contrib.texi (Contributors): Fix cross reference.
9726
9727         * manual/libc.texinfo (Copying): Include freemanuals.
9728
9729         * manual/Makefile (appendices): Add freemanuals.
9730
9731         * manual/freemanuals.texi: New file.
9732         Patch by Brian Youmans <3diff@gnu.org>.
9733
9734         * manual/libm-err-tab.pl: Pretty print more platforms, print a
9735         smaller table.
9736
9737         * manual/math.texi (Errors in Math Functions): Fix grammar, start
9738         table on separate page.
9739         Patch by Brian Youmans <3diff@gnu.org>.
9740
9741 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
9742
9743         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
9744         the connection went down after we first used it try to connect
9745         again and resend the message before printing to the console.
9746         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
9747
9748 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
9749
9750         * string/tst-strlen.c (main): Test strnlen (, -1) too.
9751         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
9752         bit set.
9753
9754 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
9755
9756         * iconv/strtab.c (searchstring): Use correct length for comparison.
9757         (strtabadd): Account total size correct if new string has old string as
9758         substring.
9759
9760 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
9761
9762         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
9763
9764 2001-08-27  Andreas Jaeger  <aj@suse.de>
9765
9766         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
9767
9768         * math/libm-test.inc (j0_test): Add extra tests.
9769         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
9770         not x, in Hankel approximation.
9771         Patches by Stephen L Moshier.
9772
9773 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9774
9775         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
9776         link_map.
9777
9778         * configure.in: Fix test for .rela.dyn section.
9779
9780         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
9781
9782 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
9783
9784         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
9785         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
9786         Pass type_class to _dl_lookup_*.
9787         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
9788         Pass around just type_class instead of noexec, noplt pair.
9789         (_dl_lookup_versioned_symbol): Likewise.
9790         (_dl_lookup_symbol_skip): Pass around just type_class instead of
9791         noexec, noplt pair.
9792         (_dl_lookup_versioned_symbol_skip): Likewise.
9793         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
9794         * elf/do-lookup.h (do_lookup): Likewise.
9795         * include/link.h (struct link_map): Replace noexec and noplt fields
9796         in l_lookup_cache with type_class field.
9797         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
9798         ELF_RTYPE_CLASS_COPY): Define.
9799         Adjust prototypes for _dl_lookup_symbol and
9800         _dl_lookup_versioned_symbol.
9801         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
9802         elf_machine_lookup_noexec_p): Remove.
9803         (elf_machine_type_class): Define.
9804         * sysdeps/arm/dl-machine.h: Likewise.
9805         * sysdeps/hppa/dl-machine.h: Likewise.
9806         * sysdeps/cris/dl-machine.h: Likewise.
9807         * sysdeps/i386/dl-machine.h: Likewise.
9808         * sysdeps/ia64/dl-machine.h: Likewise.
9809         * sysdeps/m68k/dl-machine.h: Likewise.
9810         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9811         * sysdeps/mips/dl-machine.h: Likewise.
9812         * sysdeps/powerpc/dl-machine.h: Likewise.
9813         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9814         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9815         * sysdeps/sh/dl-machine.h: Likewise.
9816         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9817         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9818
9819 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9820
9821         * manual/message.texi (Advanced gettext functions): Change
9822         description of plural forms for Slovak.
9823         Reported by Marcel Telka <marcel@telka.sk>.
9824
9825         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
9826         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
9827
9828 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
9829
9830         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
9831         typo.  Patch by Florian La Roche <laroche@redhat.com>.
9832
9833 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9834
9835         * include/link.h (struct link_map): Add l_lookup_cache element.
9836         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
9837         (RESOLVE_MAP): Likewise.
9838         (_dl_relocate_object): Remove cache initialization.
9839         * elf/dl-lookup.c: Rip out cache handling code.
9840         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
9841         declarations.
9842
9843         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
9844         remove some __builtin_expect.
9845         (_dl_lookup_versioned_symbol): Likewise.
9846
9847         * config.h.in: Add HAVE_Z_COMBRELOC.
9848         * configure.in: Add test for -z combreloc.
9849
9850         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
9851         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
9852         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
9853         case to almost no code.
9854
9855 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
9856
9857         * po/tr.po: Update from translation team.
9858
9859 2001-08-24  Andreas Jaeger  <aj@suse.de>
9860
9861         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
9862         make clean works.
9863
9864 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9865
9866         * elf/rtld.c (print_statistics): Printf % after percent values.
9867         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
9868
9869         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
9870         don't have to compute the hash value and initialize current_value.
9871         Move reference_name variable to where it is needed.
9872         (_dl_lookup_versioned_symbol): Likewise.
9873
9874 2001-08-24  Roland McGrath  <roland@frob.com>
9875
9876         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
9877         Just test that strerror returns non-null for a few errno codes.
9878
9879 2001-08-23  Roland McGrath  <roland@frob.com>
9880
9881         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
9882         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
9883
9884         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
9885
9886         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
9887         __mach_reply_port.
9888
9889 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9890
9891         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
9892         returns NULL.
9893
9894         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
9895         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
9896         doesn't do it.
9897         * elf/rtld.c: Include <sys/param.h>.
9898         * elf/dl-reloc.c: Likewise.
9899
9900 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9901
9902         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
9903         empty to prevent junk from being generated.
9904         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
9905
9906 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
9907
9908         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
9909         records.  Rename endrel to relative, initialize it to r, and use it
9910         in elf_machine_rel_relative calls.  Point r after relative relocs.
9911
9912 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9913
9914         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
9915         of R_386_NONE.
9916
9917 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
9918
9919         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
9920         necessary.  Undefine newly defined macros at the end.
9921         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
9922         Rename from elf_machine_rel_relative.
9923         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
9924         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
9925         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
9926         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
9927         Likewise.
9928         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
9929         Likewise.
9930         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
9931         Fix argument types.
9932         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
9933         Fix argument types.
9934         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
9935         Likewise.  Fix argument types.
9936         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
9937         Likewise.  Fix argument types.
9938         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
9939         Fix argument types.
9940         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
9941         ElfW(Rel) in argument.
9942         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
9943         function.
9944
9945 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
9946
9947         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
9948
9949 2001-08-24  Andreas Jaeger  <aj@suse.de>
9950
9951         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
9952         Stephen L Moshier <moshier@mediaone.net>.
9953
9954 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9955
9956         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
9957         first if RELCOUNT is set.
9958
9959         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
9960         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
9961         elf_machine_rel_relative.
9962         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
9963         Minor optimizations.
9964         * sysdeps/arm/dl-machine.h: Likewise.
9965         * sysdeps/cris/dl-machine.h: Likewise.
9966         * sysdeps/hppa/dl-machine.h: Likewise.
9967         * sysdeps/i386/dl-machine.h: Likewise.
9968         * sysdeps/ia64/dl-machine.h: Likewise.
9969         * sysdeps/m68k/dl-machine.h: Likewise.
9970         * sysdeps/mips/dl-machine.h: Likewise.
9971         * sysdeps/powerpc/dl-machine.h: Likewise.
9972         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9973         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9974         * sysdeps/sh/dl-machine.h: Likewise.
9975         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9976         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9977
9978 2001-08-23  Roland McGrath  <roland@frob.com>
9979
9980         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
9981
9982         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
9983         sysdeps/mach version.  Implement counting ("recursive") mutexes
9984         on top of cthreads mutexes.
9985         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
9986
9987         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
9988         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
9989         (__libc_cleanup_region_start, __libc_cleanup_region_end,
9990         __libc_clean_end): Define these to call the cleanup function after
9991         normal exit when they're supposed to.
9992
9993         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
9994         Take new first arg DOIT, a boolean saying whether to really install
9995         any cleanup handler.
9996         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
9997         (__libc_cleanup_end): Likewise.
9998         * sysdeps/generic/bits/libc-lock.h: Same changes.
9999         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
10000         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
10001         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
10002         Likewise.
10003         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
10004         * sysdeps/generic/bits/stdio-lock.h
10005         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
10006
10007 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10008
10009         * elf/ldconfig.c (search_dir): Remove stale symlinks.
10010
10011 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10012
10013         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
10014         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
10015         lookups in cache.
10016         (_dl_lookup_versioned_symbol): Likewise.
10017         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
10018         relocation lookup.
10019         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
10020         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
10021         (lookup_cache, lookup_cache_versioned): Add declarations.
10022
10023 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10024
10025         * stdlib/tst-random.c (main): Swap parameters in fail call.
10026         Patch by Pete Bevin <pete@petebevin.com>.
10027
10028 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10029
10030         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
10031
10032 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10033
10034         * malloc/obstack.c: Indent preprocessor directives.
10035         Patch by Jim Meyering <meyering@ascend.com>.
10036
10037         * po/ja.po: Update from translation team.
10038
10039 2001-08-23  Roland McGrath  <roland@frob.com>
10040
10041         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
10042
10043         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
10044         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
10045
10046 2001-08-22  Roland McGrath  <roland@frob.com>
10047
10048         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
10049         __libc_lock_define_recursive.
10050         * elf/dl-open.c: Don't declare it here any more.
10051         * elf/dl-close.c: Likewise.
10052         * elf/dl-lookup.c: Likewise.
10053         * elf/dl-iteratephdr.c: Likewise.
10054         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
10055         __libc_lock_unlock_recursive.
10056         * elf/dl-close.c (_dl_close): Likewise
10057         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
10058         * elf/dl-open.c (_dl_open): Likewise
10059
10060         * sysdeps/generic/bits/libc-lock.h
10061         (__libc_lock_define_recursive): New macro.
10062         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
10063         (_IO_lock_lock): Use __libc_lock_lock_recursive.
10064         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
10065
10066         * conform/conformtest.pl (checknamespace): Sort the output list.
10067
10068         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
10069         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
10070         definitions conditional on [__USE_XOPEN].
10071
10072         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
10073         these unconditionally, not only use [__USE_BSD], so as to match
10074         the sysdeps/unix/sysv/linux files.
10075
10076 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10077
10078         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
10079         avoid warnings.
10080
10081         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
10082         DL_LOOKUP_ADDRESS.
10083
10084 2001-08-22  Roland McGrath  <roland@frob.com>
10085
10086         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
10087         conditionalization of sa_handler/sa_sigaction member types to
10088         match the sysdeps/unix/sysv/linux file.
10089
10090 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10091
10092         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
10093         symbol sizes a bit better.
10094
10095         * sysdeps/ia64/strncpy.S: Complete rewrite.
10096         Contributed by Jakub Jelinek <jakub@redhat.com>.
10097
10098         * string/stratcliff.c (main): Add strncpy test.
10099
10100 2001-08-22  Roland McGrath  <roland@frob.com>
10101
10102         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
10103         and don't declare unsetenv or _environ directly.
10104         (unsetenv): Return int, not void.  Use __environ instead of _environ.
10105
10106 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
10107
10108         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
10109         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
10110         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
10111         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
10112         test for cmsg struct size.
10113
10114 2001-04-23  Paul Eggert  <eggert@twinsun.com>
10115
10116         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
10117         Rename __argc to ___argc in prototypes to avoid compatibility
10118         problems with systems that reserve the identifier "__argc".
10119         Similarly for __argv.
10120
10121 2001-08-21  Roland McGrath  <roland@frob.com>
10122
10123         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
10124
10125         * mach/Makefile (tests): Removed.
10126         * mach/hello.c: File removed.
10127
10128 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10129
10130         * po/sv.po: Update from translation team.
10131
10132         * stdio-common/vfscanf.c: Fix handling of %l[].
10133         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
10134
10135         * libio/Makefile (tests): Add tst-sscanf.
10136         * libio/tst-sscanf.c: New file.
10137
10138         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
10139         * malloc/mtrace.c (tr_where): dli_sname always points to a
10140         non-empty string if != NULL.
10141         Reported by Tim Janik <timj@gtk.org>.
10142
10143 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
10144
10145         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
10146         buf.  Free resources on failure.
10147         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
10148         (makefd_xprt): Likewise.
10149         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
10150         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
10151         * sunrpc/auth_unix.c (authunix_create): Likewise.
10152
10153 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
10154
10155         * string/strnlen.c: Remove.
10156         * sysdeps/generic/strnlen.c: New file.
10157         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
10158
10159 2001-08-21  Roland McGrath  <roland@frob.com>
10160
10161         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
10162         as a macro, not an extern inline function.
10163
10164         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
10165         * Versions.def (libc): Add GLIBC_2.2.5 set.
10166         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
10167         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
10168
10169 2001-08-20  Roland McGrath  <roland@frob.com>
10170
10171         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
10172         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
10173
10174 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10175
10176         * string/bits/string2.h: Remove strnlen optimization here.
10177         * sysdeps/i386/i486/bits/string.h: Add it here.
10178
10179 2001-08-21  Wolfram Gloger  <wg@malloc.de>
10180
10181         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
10182
10183 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10184
10185         * po/gl.po: Update from translation team.
10186
10187 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10188
10189         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
10190         * misc/err.c (convert_and_print): Likewise.
10191
10192         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
10193         function calls.
10194
10195 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10196
10197         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
10198         change of the gregset_t type.
10199         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10200
10201 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10202
10203         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
10204
10205 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10206
10207         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
10208
10209         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
10210
10211 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
10212
10213         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
10214         before calling the cthreads initialization code.
10215
10216 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10217
10218         * argp/argp-help.c: Fix two problems introduced in last change.
10219
10220         * include/dirent.h: Include <dirstream.h> first.
10221
10222 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
10223
10224         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
10225
10226         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
10227         * sunrpc/xdr_rec.c: Likewise.
10228         * sunrpc/xdr_mem.c: Likewise.
10229         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
10230         * sunrpc/rpc_cmsg.c: Likewise.
10231         * sunrpc/getrpcport.c (getrpcport): Likewise.
10232         * sunrpc/clnt_simp.c (callrpc): Likewise.
10233         * sunrpc/clnt_gen.c (clnt_create): Likewise.
10234         * string/envz.c: Likewise.
10235
10236         * po/ko.po: Update from translation team.
10237
10238         * argp/argp-help.c: Handle wide oriented stderr stream.
10239
10240 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
10241
10242         * sysdeps/generic/strtol.c: Little optimizations.  Add some
10243         __builtin_expect.
10244
10245         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
10246
10247         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
10248         * wcsmbs/wcwidth.c (wcwdith): Likewise.
10249         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
10250
10251         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
10252
10253         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
10254
10255         * time/time.h (struct timespec): Use __time_t for tv_sec element.
10256
10257         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
10258         wchar_t for function declarations and defintions.
10259
10260         * misc/sys/select.h: Define __need_time_t before including <time.h>.
10261         Define suseconds_t if it hasn't happened yet.
10262
10263         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
10264
10265         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
10266
10267         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
10268         <stddef.h>.
10269
10270         * conform/data/stddef.h-data: Remove wint_t.
10271
10272         * conform/conformtest.pl: Change namespace test to take #undef
10273         lines into account.
10274
10275         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
10276
10277         * conform/data/sys/socket.h-data: Add sockatmark.
10278
10279 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10280
10281         * io/fts.c: Update from recent BSD source.
10282
10283 2001-08-17  Roland McGrath  <roland@frob.com>
10284
10285         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
10286         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
10287         Likewise.
10288
10289 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10290
10291         * locale/duplocale.c (__duplocale): Also initialize the special
10292         __ctype_* elements.
10293
10294         * conform/data/netdb.h-data: Adjust gai_strerror return type.
10295
10296 2001-08-17  Andreas Jaeger  <aj@suse.de>
10297
10298         * misc/getpass.c: Include wchar.h for prototypes.
10299         * malloc/obstack.c: Likewise.
10300
10301 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10302
10303         * sunrpc/svc_simple.c (universal): Use __write instead of write.
10304
10305         * wcsmbs/wcscoll.c: Also define __wcscoll.
10306         * include/wchar.h: Declare __wcscoll.
10307
10308         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
10309         * libio/vwprintf.c: Likewise.
10310         * libio/wprintf.c: Likewise.
10311
10312         * iconv/gconv_cache.c: Use __munmap instead of munmap.
10313
10314 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
10315
10316         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
10317         instead of mbrtowc.
10318         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10319         wcslen, and __wcscoll instead of wcscoll.
10320
10321         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
10322
10323         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
10324         __getuid instead of getuid.
10325
10326         * stdio-common/perror.c (perror): Use __close instead of close.
10327         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
10328         * libio/freopen.c (freopen): Likewise.
10329         * libio/freopen64.c (freopen64): Likewise.
10330
10331         * libio/tst-ungetwc2.c (main): Define str const.
10332
10333         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
10334         * libio/fwprintf.c: Also define __fwprintf.
10335         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
10336         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
10337         * assert/assert-perr.c: Likewise.
10338         * assert/assert.c: Likewise.
10339         * gmon/gmon.c: Likewise.
10340         * inet/rcmd.c: Likewise.
10341         * malloc/obstack.c: Likewise.
10342         * misc/err.c: Likewise.
10343         * misc/error.c: Likewise.
10344         * misc/getpass.c: Likewise.
10345         * posix/getopt.c: Likewise.
10346         * resolv/res_hconf.c: Likewise.
10347         * stdio-common/perror.c: Likewise.
10348         * stdio-common/psignal.c: Likewise.
10349         * stdlib/fmtmsg.c: Likewise.
10350         * sunrpc/auth_unix.c: Likewise.
10351         * sunrpc/clnt_perr.c: Likewise.
10352         * sunrpc/clnt_tcp.c: Likewise.
10353         * sunrpc/clnt_udp.c: Likewise.
10354         * sunrpc/clnt_unix.c: Likewise.
10355         * sunrpc/svc_simple.c: Likewise.
10356         * sunrpc/svc_tcp.c: Likewise.
10357         * sunrpc/svc_udp.c: Likewise.
10358         * sunrpc/svc_unix.c: Likewise.
10359         * sunrpc/xdr.c: Likewise.
10360         * sunrpc/xdr_array.c: Likewise.
10361         * sunrpc/xdr_rec.c: Likewise.
10362         * sunrpc/xdr_ref.c: Likewise.
10363         * sysdeps/generic/wordexp.c: Likewise.
10364
10365         * po/it.po: Update from translation team.
10366
10367         * misc/err.c: Handle wide oriented stderr stream.
10368
10369 2001-08-14  Tom Rix  <trix@redhat.com>
10370
10371         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
10372         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
10373
10374 2001-08-13  Tom Rix  <trix@redhat.com>
10375
10376         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
10377         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
10378         and __intptr_t.
10379
10380 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10381
10382         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
10383         Store the access registers to the ucontext structure.
10384         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
10385         Likewise.
10386
10387         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
10388         Load the access registers from the ucontext structure.
10389         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
10390         Likewise.
10391
10392         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
10393         offsets to the new ucontext layout.
10394         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
10395
10396         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
10397         of the ucontext structure.
10398         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10399
10400 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
10401
10402         * misc/error.c (error): Handle wide oriented stderr stream correctly.
10403         (error_at_line): Likewise.
10404
10405         * stdio-common/perror.c (perror): Implement according to standard.
10406         The stream orientation must not be changed if the stream was not
10407         oriented before the call.
10408         * stdio-common/Makefile (tests): Add tst-perror.
10409         * stdio-common/tst-perror.c: New file.
10410
10411
10412 See ChangeLog.12 for earlier changes.