8f327f99b755c9c289f2e7834317be59e2c9ab67
[kopensolaris-gnu/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.