Update.
[glibc.git] / ChangeLog
blob402ba95f6e34d0e84c036f441244d2d6b80406c0
1 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3         * include/unistd.h: Don't hide _exit.
5         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
6         (dl_main): Padd extra argument 0 to TLS_INIT_TP.
7         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
8         argument 1 to TLS_INIT_TP.
9         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
11         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
13         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
14         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
15         memory allocation to...
16         (allocate_dtv): ...here.  New function.
17         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
18         call allocate_dtv instead of _dl_allocate_tls_storage.
19         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
20         (_dl_get_tls_static_info): New function.
21         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
22         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
24 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
26         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
27         immediately if result == NULL.
29 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
31         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
33 2002-08-18  Roland McGrath  <roland@frob.com>
35         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
36         instead of __file_name_split.
37         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
39         * sysdeps/mach/hurd/dl-sysdep.c
40         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
41         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
43 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
45         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
46         in change before last: MAX -> MIN.
48 2002-08-15  Roland McGrath  <roland@redhat.com>
50         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
51         if seek would go past it.
52         (mmap_remap_check): If file position is at or past EOF after check,
53         leave read pointers at EOF and don't seek.
55         * libio/tst-mmap-offend.c: New file.
56         * libio/Makefile (tests): Add it.
58         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
59         the name as passed, rather than the name in the archive dictionary.
61 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
63         * csu/Makefile: Define elide-routines.os not static-only-routines.
65         * include/sched.h (__clone): Add varargs at the end.
67         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
68         case.
69         (TLS_INIT_HELPER): If defined, use it.
70         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
72 2002-08-15  Roland McGrath  <roland@redhat.com>
74         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
75         on L->l_prev; it can happen under rtld --verify too.
77         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
78         header separately, just map an initial window of 2MB from the file
79         and remap if that is not large enough to cover the whole header.
81 2002-08-15  Andreas Jaeger  <aj@suse.de>
83         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
84         version 2.3.
85         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
86         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
87         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
88         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
89         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
90         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
91         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
92         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
93         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
94         Patch by Andreas Gruenbacher <agruen@suse.de>.
96         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
98 2002-08-14  Roland McGrath  <roland@redhat.com>
100         * locale/locarchive.h (struct locale_category_data): Give this name to
101         the type of locale_data_t's elements.
102         * locale/programs/locarchive.c (cmpcategorysize): New static function.
103         (add_locale): Use that to sort the categories by size and put all
104         those that fit into two pages into the LC_ALL block, instead of
105         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
106         (show_archive_content): Detect categories inside LC_ALL block
107         directly, instead of hard-coding.
108         (oldlocrecentcmp): Compare just on file locations used.
110 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
112         * locale/programs/locarchive.c (struct oldlocrecent): New.
113         (oldlocrecentcmp): New.
114         (enlarge_archive): Re-add locales in the order they were added
115         to the archive.
116         (add_locale): Put all the small locale files together, if the small
117         locale file block would occupy less pages if page size aligned, align
118         it.
119         (show_archive_content): Adjust for locale archives optimized for speed.
121 2002-08-14  Roland McGrath  <roland@frob.com>
123         * configure.in: Use "MISSING" as not-found value for MIG.
124         * sysdeps/mach/configure.in: Fatal if mig not found.
125         * configure, sysdeps/mach/configure: Regenerated.
127 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
129         * locale/loadarchive.c (archfname): Add missing slash.
131         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
132         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
134 2002-08-12  Roland McGrath  <roland@redhat.com>
136         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
137         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
138         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
139         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
140         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
141         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
142         * sysdeps/generic/waitpid.c: Likewise.
144         * include/net/if.h: New file.  Use libc_hidden_proto
145         for if_nametoindex and if_indextoname.
146         * sysdeps/generic/if_index.c: Add libc_hidden_def.
147         * sysdeps/mach/hurd/if_index.c: Likewise.
148         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
150         * include/grp.h (setgroups): Add libc_hidden_proto.
151         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
152         * sysdeps/mach/hurd/setgroups.c: Likewise.
153         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
154         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
156 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
158         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
159         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
160         * sysdeps/generic/setegid.c (setegid): Likewise.
161         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
162         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
163         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
164         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
165         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
166         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
167         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
168         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
169         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
170         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
171         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
172         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
173         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
175         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
176         __lxstat_internal, __lxstat64_internal): Remove.
177         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
178         Add hidden_proto.
179         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
180         Remove INTDEF where present, remove #undef at the beginning.
181         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
182         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
183         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
184         * sysdeps/generic/xstat.c (__xstat): Likewise.
185         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
186         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
187         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
188         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
189         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
190         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
191         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
192         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
193         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
194         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
195         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
196         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
197         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
198         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
199         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
200         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
201         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
202         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
203         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
204         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
205         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
206         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
207         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
208         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
209         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
210         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
211         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
212         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
213         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
214         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
215         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
216         * sysdeps/unix/xstat.c (__xstat): Likewise.
218         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
219         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
220         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
221         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
222         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
223         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
224         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
226         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
227         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
228         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
229         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
230         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
231         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
232         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
233         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
234         Likewise.
235         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
236         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
237         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
238         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
239         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
240         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
241         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
242         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
244         * include/string.h (strcoll): Add libc_hidden_proto.
245         * string/strcoll.c (strcoll): Add libc_hidden_def.
247         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
249 2002-08-11  Philip Blundell  <philb@gnu.org>
251         * sysdeps/arm/Makefile: New file.
253 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
255         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
256         by another '|', end of regex or enclosing ')', clear branch.
257         * posix/bug-regex9.c: New test.
258         * posix/Makefile (tests): Add bug-regex9.
260 2002-08-12  Roland McGrath  <roland@redhat.com>
262         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
263         start count condition, use TOTAL instead of variable that was never
264         set.  Fix outer loop termination condition to TOTAL >= after update.
266         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
267         dl_tls_static_align and dl_tls_static_nelem.
269 2002-08-11  Roland McGrath  <roland@redhat.com>
271         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
272         of the TLS macros, otherwise the compiler might not have initialized
273         the PIC register yet when we use the PLT via asm.
274         * elf/tst-tlsmod3.c (in_dso2): Likewise.
275         * elf/tst-tlsmod2.c (in_dso): Likewise.
277         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
279         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
280         Evaluate argument exactly once.  Remove __volatile__ from asm's.
282         * include/unistd.h: Use libc_hidden_proto for getdomainname
283         and getlogin_r.
284         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
285         * sysdeps/mach/hurd/getdomain.c: Likewise.
286         * sysdeps/unix/getlogin_r.c: Likewise.
287         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
288         * sysdeps/generic/getlogin_r.c: Likewise.
290         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
291         * sunrpc/rtime.c: Add libc_hidden_def.
293         * include/string.h: Use libc_hidden_proto for basename.
294         * string/basename.c [_LIBC]: Add libc_hidden_def.
296         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
298         * locale/loadarchive.c: munmap -> __munmap throughout.
300         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
301         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
302         * sysdeps/generic/gai_strerror.c: Likewise.
304         * include/sys/errno.h: New file.
306         * include/signal.h: No libc_hidden_proto for raise,
307         __libc_current_sigrtmin, __libc_current_sigrtmax.
308         These need to be overridden by linuxthreads.
309         * sysdeps/posix/raise.c: Reverted.
310         * sysdeps/generic/raise.c: Reverted.
311         * signal/allocrtsig.c: Reverted.
313         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
315 2002-08-10  Roland McGrath  <roland@redhat.com>
317         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
318         * locale/localeinfo.h: Declare it.
319         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
320         current locale if it's not in the file list.
321         Call _nl_archive_subfreeres.
323 2002-08-10  Andreas Jaeger  <aj@suse.de>
325         * sysdeps/i386/strchr.S: Add comment.
327 2002-08-10  Roland McGrath  <roland@redhat.com>
329         * include/wchar.h (putwc): Use libc_hidden_proto.
330         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
331         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
332         * stdio-common/dprintf.c: Add libc_hidden_def.
333         * stdio-common/fprintf.c: Likewise.
334         * stdio-common/sprintf.c: Likewise.
335         * stdio-common/sscanf.c: Likewise.
336         * libio/iofwrite.c: Likewise.
337         * libio/memstream.c: Likewise.
338         * libio/putwc.c: Likewise.
339         * stdio-common/perror.c: Likewise.
340         * sysdeps/posix/remove.c: Likewise.
341         * sysdeps/generic/remove.c: Likewise.
342         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
343         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
345 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
347         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
348         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
349         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
350         towlower, towupper): Add libc_hidden_weak.
352         * include/bits/dlfcn.h: New file.
353         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
355         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
356         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
357         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
358         * include/pwd.h (_nss_files_parse_pwent): Likewise.
359         * include/shadow.h (_nss_files_parse_spent): Likewise.
360         * include/netdb.h (_nss_files_parse_protoent,
361         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
362         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
363         (LINE_PARSER): Use it.
364         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
365         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
367         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
368         #endif.
370         * manual/debug.texi (%MENU%): Remove trailing dot.
371         Reported by <hayastan132@hotmail.com>.
373         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
374         aliases.
375         (lseek): Dummy.
376         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
377         Likewise.
379 2002-08-09  Roland McGrath  <roland@redhat.com>
381         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
382         name to find codeset name (if any) and normalize it.  If the
383         normalized name differs, look up only that in the archive.
384         * locale/programs/locarchive.c (add_locale_to_archive): If the name
385         contains a codeset, normalize the codeset store only the normalized
386         name in the archive.  If not, add an alias containing the locale's
387         normalized codeset name.  Apply codeset name normalization when
388         matching entries in the alias file.
390         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
391         decrement HEAD->namehash_used here.
392         (add_locale): Only need to insert name string when name_offset != 0.
394         * locale/programs/localedef.c (options): Add -A/--alias-file.
395         (alias_file): New variable.
396         (parse_opt): Grok -A, set that.
397         * locale/programs/localedef.h: Declare it.
399         * locale/locarchive.h (struct locrecent): Add `refs' member.
400         * locale/programs/locarchive.c (insert_name): New function, broken out
401         of ...
402         (add_locale_to_archive): ... here.  Call that.
403         (add_alias): New function.
404         (add_locale): New static function, add_locale_to_archive renamed.
405         (add_locale_to_archive): Call that and use add_alias to add an alias
406         for the name with codeset if the given name lacks it.
407         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
409         * locale/Makefile (routines): Add loadarchive.
410         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
411         (_nl_load_locale_from_archive): New function.
412         * locale/localeinfo.h: Declare it.
413         * locale/findlocale.c (_nl_find_locale): If using default locale path,
414         try _nl_load_locale_from_archive first.
416         * locale/loadlocale.c (_nl_intern_locale_data): New function,
417         broken out of _nl_load_locale.
418         (_nl_load_locale): Call that.
419         * locale/localeinfo.h: Declare it.
420         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
421         (struct locale_data): Remove unused member `options'.
422         * locale/findlocale.c (_nl_remove_locale): Update uses.
423         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
424         * locale/C-collate.c: Update initializer.
425         * locale/C-identification.c: Likewise.
426         * locale/C-measurement.c: Likewise.
427         * locale/C-telephone.c: Likewise.
428         * locale/C-address.c: Likewise.
429         * locale/C-name.c: Likewise.
430         * locale/C-paper.c: Likewise.
431         * locale/C-time.c: Likewise.
432         * locale/C-numeric.c: Likewise.
433         * locale/C-monetary.c: Likewise.
434         * locale/C-messages.c : Likewise.
435         * locale/C-ctype.c: Likewise.
437         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
438         use CHAR_BIT instead of BITSPERBYTE.
440         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
441         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
442         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
443         (_nl_remove_locale): Likewise.
444         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
446         * locale/findlocale.c (_nl_default_locale_path): New variable.
447         (_nl_find_locale): If LOCALE_PATH is null, default to that.
448         * locale/localeinfo.h: Declare it.
449         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
450         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
451         * locale/newlocale.c (__newlocale): Likewise.
453         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
454         * inet/rexec.c (rexec_af): Add libc_hidden_def.
455         * sysdeps/generic/morecore.c: Likewise.
456         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
457         (__libc_current_sigrtmax): Likewise.
459 2002-08-08  Roland McGrath  <roland@redhat.com>
461         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
462         * catgets/open_catalog.c (__open_catalog): Likewise.
464         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
465         from typo INITIAL_NUM_NANES.
466         (create_archive): Update use.
468 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
470         * sysdeps/unix/sysv/linux/sigwait.c: New file.
472 2002-08-08  Roland McGrath  <roland@frob.com>
474         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
476 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
478         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
479         else and undefine after including wcstol_l.c.
480         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
482 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
484         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
486 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
488         * configure.in: Make the test for broken_alias_attribute stricter.
490 2002-05-24  Robert Love  <rml@tech9.net>
492         * posix/Makefile (routines): Add sched_getaffinity and
493         sched_setaffinity.
494         * posix/sched.h: Add declarations for sched_getaffinity and
495         sched_setaffinity.
496         * sysdeps/generic/sched_getaffinity.c: New file.
497         * sysdeps/generic/sched_setaffinity.c: New file.
498         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
499         sched_setaffinity.
501 2002-08-06  Andreas Schwab  <schwab@suse.de>
503         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
505 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
507         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
508         message.
510         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
511         It is known to be defined.
513         * include/string.h: Define index and rindex only if _ISOMAC is not
514         defined.
516         * elf/rtld.c: Include <errno.h>.
517         * sysdeps/generic/libc-tls.c: Likewise.
519 2002-08-07  Roland McGrath  <roland@redhat.com>
521         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
522         it internally.
523         (precsize_aton): Likewise.
525         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
526         the static symbols added in the last change (doofus is me).
528         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
529         loop to notice missing categories in a composite name.
531         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
532         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
533         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
534         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
536 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
538         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
540 2002-08-07  Roland McGrath  <roland@redhat.com>
542         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
543         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
544         Reported by Jakub Jelinek  <jakub@redhat.com>.
546 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
548         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
549         division.
551 2002-08-06  Roland McGrath  <roland@redhat.com>
553         * include/getopt.h: Put private decls inside [_GETOPT_H].
554         Use libc_hidden_proto for getopt_long, getopt_long_only.
555         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
556         Add libc_hidden_def.
558         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
559         Define as a macro for __dl_iterate_phdr.
561         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
562         made static.  Add __ name as a strong alias.
563         (internal_endnetgrent): Likewise.
564         (internal_getnetgrent_r): Likewise.
566         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
567         with no __ prefix.
568         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
569         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
570         all *_l functions with no __ prefix.
571         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
572         * ctype/ctype_l.c: Likewise.
573         * locale/nl_langinfo.c: Likewise.
574         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
575         * stdlib/stdlib.h [__USE_GNU]: Likewise.
576         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
577         * wctype/wctype.h [__USE_GNU]: Likewise.
578         * string/strcoll_l.c (strcoll_l): Define as weak alias.
579         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
580         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
581         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
582         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
583         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
584         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
585         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
586         (__wcscasecmp_l): Add libc_hidden_def.
587         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
588         (__wcsncasecmp_l): Add libc_hidden_def.
589         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
590         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
591         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
592         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
593         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
594         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
595         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
596         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
597         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
598         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
599         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
600         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
601         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
602         * wctype/wctype_l.c (wctype_l) Define as weak alias.
604 2002-08-05  Roland McGrath  <roland@redhat.com>
606         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
607         netname2user, host2netname, user2netname, key_gendes.
608         * sunrpc/netname.c: Add libc_hidden_def.
609         * sunrpc/key_call.c: Likewise.
611         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
612         freeaddrinfo.
613         * inet/getnameinfo.c: Add libc_hidden_def.
614         * sysdeps/generic/getaddrinfo.c: Likewise.
615         * sysdeps/posix/getaddrinfo.c: Likewise.
617         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
618         * wcsmbs/wmemchr.c: Add libc_hidden_def.
619         * wcsmbs/wmemset.c: Add libc_hidden_def.
621         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
622         (index, rindex): Define as macros for strchr, strrchr.
624         * string/envz.c (envz_strip): index -> strchr
626         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
627         * sunrpc/rpc_prot.c: Add libc_hidden_def.
629         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
630         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
632         * include/stdlib.h: Use libc_hidden_proto for wctomb.
633         * stdlib/wctomb.c: Add libc_hidden_def.
635         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
636         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
637         * resolv/herror.c: Likewise.
638         * inet/rcmd.c: Add libc_hidden_def.
639         * inet/ruserpass.c: Likewise.
640         * inet/getnetgrent_r.c: Likewise.
642         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
643         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
644         for svcerr_auth, svcerr_noprog, svcerr_progvers.
645         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
646         libc_hidden_def.
647         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
648         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
650         * sysdeps/posix/system.c (do_system): New function, guts broken out of
651         __libc_system.
652         (__libc_system): Call it, putting just the line == NULL test here.
654         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
655         variables work right.
657         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
658         * elf/dl-close.c (_dl_close): Likewise.
660         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
661         in6addr_any, in6addr_loopback.  Remove decls for
662         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
663         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
664         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
665         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
666         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
667         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
668         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
669         in6addr_loopback.
670         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
672         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
673         ether_aton_r.
674         * inet/ether_aton_r.c: Add libc_hidden_def.
675         * inet/ether_ntoa_r.c: Likewise.
677         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
678         xprt_unregister.
679         * sunrpc/svc.c: Add libc_hidden_def.
680         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
681         pmap_set, pmap_unset.
682         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
683         * sunrpc/pm_getport.c: Likewise.
684         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
685         * sunrpc/publickey.c: Add libc_hidden_def.
687 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
689         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
690         the other memset call in this function.
692         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
693         at correct index.  Clear BSS region now that memalign is used.
695 2002-08-05  Roland McGrath  <roland@redhat.com>
697         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
698         * sysdeps/generic/uname.c: Add libc_hidden_def.
699         * sysdeps/mach/hurd/uname.c: Likewise.
701 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
703         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
704         wcspbrk): Add libc_hidden_proto.
705         * time/strftime.c (my_strftime): Add libc_hidden_def.
706         (strftime): Remove libc_hidden_def.
707         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
708         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
709         * wcsmbs/wcsspn.c (wcsspn): Likewise.
710         * wcsmbs/wcscmp.c (wcscmp): Likewise.
711         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
712         * wcsmbs/wcscoll.c (wcscoll): Likewise.
714         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
715         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
716         __rpc_thread_createerr): Add libc_hidden_proto.
717         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
718         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
719         __rpc_thread_createerr): Add libc_hidden_def.
721         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
722         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
723         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
724         clnt_perror, clnt_sperror): Add libc_hidden_def.
725         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
727         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
728         libc_hidden_proto.
729         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
730         * sunrpc/des_soft.c (des_setparity): Likewise.
732         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
733         Add libc_hidden_proto.
734         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
735         Add libc_hidden_def.
737 2002-08-05  Roland McGrath  <roland@redhat.com>
739         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
740         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
741         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
742         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
743         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
744         old data, abandoning the original memory allocated by rtld at startup,
745         instead of calling realloc normally.
747 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
749         * po/fr.po: Update from translation team.
751 2002-08-04  Roland McGrath  <roland@redhat.com>
753         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
754         then generate a dummy module under the given name, obeying the
755         normal rules for the "caller" field.
757         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
758         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
760         * include/pthread.h: Don't declare __pthread_initialize_minimal as
761         weak here; we declare it weak or strong in the one place we use it.
762         * sysdeps/generic/libc-start.c: ... which is here.
763         Don't make the decl weak if [USE_TLS], since static programs need TLS
764         setup even when single-threaded.
766         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
768         * elf/Makefile (test-srcs): Add $(modules-names) to it.
769         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
770         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
771         all these variables.
773 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
775         * include/stdio.h: Don't define macro magic to redirect function
776         calls if _ISOMAC is defined.
778         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
779         ldouble asin tests.
781 2002-08-04  Roland McGrath  <roland@redhat.com>
783         * stdlib/lrand48_r.c: Add libc_hidden_def.
785         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
786         TCB with __libc_memalign instead of mmap.
787         (_dl_deallocate_tls): Free it with free instead of munmap.
789         * Makerules (cpp-srcs-left): When setting this to run
790         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
791         words.  Combine the two loops into one on the concatenated list,
792         including those as well as $(test-srcs).
794         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
795         since we align here with optimally minimal waste anyway.
796         (malloc): Just call that.
798         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
799         the right variable.
801         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
802         to compute memory location for l_tls_initimage.
803         * elf/rtld.c (_dl_start): Likewise.
804         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
806         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
807         because the .d file is generated in the non-shared case and
808         so fails to catch them otherwise.
810         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
811         split out of _dl_allocate_tls.
812         (_dl_allocate_tls_init): Likewise.
813         (_dl_allocate_tls): Call those.
814         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
815         * elf/rtld.c (dl_main): Call them separately instead of calling
816         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
817         is finished, so that the initializer data has been relocated before we
818         copy it into the main thread's TLS block.
820         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
821         loop conditions, prevented the last used module from being initialized.
823 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
825         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
826         if glob resp. globfree are not macros.
827         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
828         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
829         Add libc_hidden_ver.
830         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
831         libc_hidden_def.
832         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
833         instead of libc_hidden_weak.
834         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
835         libc_hidden_ver instead of libc_hidden_def.
836         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
837         libc_hidden_ver instead of libc_hidden_def.
838         (wcstoll, wcstoq): Remove libc_hidden_weak.
839         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
840         libc_hidden_ver.
841         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
842         libc_hidden_ver.
843         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
844         libc_hidden_ver.
845         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
846         libc_hidden_ver.
848 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
850         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
851         to access _sys_siglist.
852         * string/strsignal.c: Likewise.
853         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
854         * sysdeps/gnu/siglist.c: Likewise.
855         * sysdeps/unix/siglist.c: Likewise.
856         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
858         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
860         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
862         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
863         alias and use it.
864         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
866         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
867         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
868         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
870         * include/time.h: Add libc_hidden_proto for __gmtime_r.
871         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
873         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
874         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
875         and __gconv_get_cache respectively.
876         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
877         defined static.  Change all users.
878         (__gconv_get_cache): New function.
879         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
880         (__gconv_get_alias_db): New function.
881         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
882         (__conv_modules_db): Likewise.
883         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
884         and __gconv_get_alias_db.
885         * iconv/iconv_prog.c: Use the new functions instead of accessing the
886         variables.
888         * include/stdlib.h: Add prototype and libc_hidden_proto for
889         __default_morecore.
890         * sysdeps/generic/morecore.c: Include <stdlib.h>.
892         * malloc/obstack.c: Remove fputs macro.
894         * malloc/mtrace.c: Remove fopen macro.
896 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
898         * manual/debug.texi: Fix spelling to programmatically.
899         Reported by <hayastan132@hotmail.com>.
901 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
903         * include/libio.h: Add libc_hidden_proto for __uflow.
904         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
905         fgetpos to _IO_* names.
906         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
907         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
908         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
909         putwc_unlocked, vswscanf.
910         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
911         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
912         * libio/fseek.c: Likewise.
913         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
914         not fopencookie.
915         * libio/genops.c (__uflow): Add libc_hidden_def.
916         * libio/iofflush_u.c (fflush_unlocked): Likewise.
917         * libio/iofgets_u.c (fgets_unlocked): Likewise.
918         * libio/iofputs_u.c (fputs_unlocked): Likewise.
919         * libio/iofputws_u.c (fputws_unlocked): Likewise.
920         * libio/iofread_u.c (fread_unlocked): Likewise.
921         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
922         * libio/iovswscanf.c (vswscanf): Likewise.
923         * libio/putwc_u.c (putwc_unlocked): Likewise.
924         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
925         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
926         * malloc/mtrace.c: Likewise.
928         * sunrpc/clnt_perr.c: Remove fputs macro.
929         * sunrpc/svc_simple.c: Likewise.
930         * sunrpc/svc_tcp.c: Likewise.
931         * sunrpc/svc_udp.c: Likewise.
932         * sunrpc/xdr_rec.c: Likewise.
933         * sunrpc/xdr_ref.c: Likewise.
935         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
936         iconv_prog, linereader, and charmap-dir.
937         * locale/Makefile: Likewise for locale and charmap-dir.
938         * malloc/Makefile: Likewise for memusagestat.
939         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
940         * sunrpc/Makefile: Likewise for rpc_main.
941         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
942         * timezone/Makefile: Likewise for zic.
944         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
946         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
947         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
948         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
949         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
950         _dl_close.
952         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
953         __wunderflow.
954         * libio/genops.c (__underflow): Add libc_hidden_def.
955         * libio/wgenops.c (__wuflow): Likewise.
956         (__wunderflow): Likewise.
958         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
959         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
961         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
962         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
964         * include/string.h: Add libc_hidden_proto for __strverscmp.
965         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
967         * include/unistd.h: Add libc_hidden_proto for __sysconf.
968         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
969         * sysdeps/posix/sysconf.c: Likewise.
970         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
971         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
973         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
974         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
975         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
976         __iswxdigit_l, __towlower_l, __towupper_l.
977         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
978         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
980         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
981         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
982         * sysdeps/mach/hurd/xmknod.c: Likewise.
983         * sysdeps/unix/xmknod.c: Likewise.
984         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
985         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
986         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
988         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
990 2002-08-03  Roland McGrath  <roland@redhat.com>
992         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
993         setpriority.
994         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
995         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
996         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
997         * sysdeps/mach/hurd/setpriority.c: Likewise.
998         * sysdeps/mach/hurd/getpriority.c: Likewise.
999         * sysdeps/generic/setpriority.c: Likewise.
1000         * sysdeps/generic/getpriority.c: Likewise.
1002         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
1003         * malloc/mcheck.c: Add libc_hidden_def.
1005         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
1006         * misc/hsearch_r.c: Add libc_hidden_def.
1008         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
1009         * posix/fnmatch.c: Add libc_hidden_weak.
1011         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
1012         execl, execle, execlp, execvp, getpid, getsid.
1013         * sysdeps/generic/alarm.c: Add libc_hidden_def.
1014         * sysdeps/unix/alarm.c: Likewise.
1015         * posix/confstr.c: Likewise.
1016         * posix/execvp.c: Likewise.
1017         * posix/execlp.c: Likewise.
1018         * posix/execle.c: Likewise.
1019         * posix/execl.c: Likewise.
1020         * sysdeps/generic/getsid.c: Likewise.
1021         * sysdeps/mach/hurd/getsid.c: Likewise.
1022         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
1023         * sysdeps/mach/hurd/getpid.c: Likewise.
1025         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
1026         qecvt_r, qfcvt_r, lrand48_r.
1027         * misc/efgcvt_r.c: Add libc_hidden_def.
1029         * include/wordexp.h: Use libc_hidden_proto for wordfree.
1030         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
1032         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
1033         * locale/nl_langinfo.c: Add libc_hidden_def.
1035         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
1036         * sysdeps/generic/glob.c: Add libc_hidden_def.
1037         * sysdeps/generic/glob64.c: Likewise.
1038         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
1040         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
1042         * elf/Makefile (CFLAGS-vismod2.c): New variable.
1044         * locale/setlocale.c (_nl_current_names): Variable moved ...
1045         * locale/localename.c (_nl_current_names): ... here, new file.
1046         Make it global, with attribute_hidden.
1047         * locale/localeinfo.h: Declare it.
1048         * locale/Makefile (aux): Add localename.
1049         * locale/localename.c (__current_locale_name): New function.
1050         * include/locale.h (__current_locale_name): Declare it.
1051         * intl/dcigettext.c (guess_category_value): Use that instead of
1052         calling setlocale.
1054         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
1055         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
1056         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
1057         * locale/newlocale.c: Add alias to __ name.
1058         * locale/duplocale.c: Likewise.
1059         * locale/freelocale.c: Likewise.
1060         * locale/uselocale.c: New file.
1061         * locale/Makefile (routines): Add it.
1062         * locale/Versions (libc: GLIBC_2.3): New set.
1063         Add newlocale, duplocale, freelocale, uselocale.
1064         (libc: GLIBC_PRIVATE): Add __uselocale.
1066         * locale/localeinfo.h [SHARED]
1067         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
1068         (_NL_CURRENT_DATA): Define using that.
1069         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
1070         (_NL_CURRENT_DEFINE): Define to empty.
1071         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
1072         conditionalized on this.
1073         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
1074         taking initializer of _nl_C_locobj.
1075         [SHARED] (_nl_global_locale): New variable, using that initializer.
1076         (_nl_C_locobj): Use new macro for initialzier.
1077         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
1078         [! SHARED] (CATEGORY_USED): New macro.
1079         [SHARED] (CATEGORY_USED, _nl_C): New macros.
1080         (setdata, setlocale): Use that macro instead of examining _nl_current.
1081         (setdata): Set the slot in _nl_global_locale.
1082         Conditionalize setting of _nl_current on [! SHARED].
1083         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
1084         declaration as an extern.
1085         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
1087         * include/locale.h: Use libc_hidden_proto for setlocale.
1088         * locale/setlocale.c: Add libc_hidden_def.
1090         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
1092         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
1093         * misc/hsearch_r.c: Add libc_hidden_def.
1094         * misc/lsearch.c: Likewise.
1096         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
1097         endttyent.
1098         * misc/getttyent.c: Add libc_hidden_def.
1100         * include/mcheck.h: Use libc_hidden_proto for mcheck.
1101         * malloc/mcheck.c: Add libc_hidden_def.
1103         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
1104         * include/argz.h: Use libc_hidden_proto for argz_delete.
1105         * string/argz-delete.c: Add libc_hidden_def.
1106         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
1108         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
1109         HIDDEN_JUMPTARGET for _exit.
1110         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
1111         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
1112         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1113         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
1115         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
1116         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
1117         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
1118         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
1120         * include/stdlib.h: Use libc_hidden_proto for abort,
1121         __strtof_internal, __strtod_internal, __strtold_internal,
1122         __strtol_internal, __strtoll_internal, __strtoul_internal,
1123         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
1124         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
1125         __strtoul_l_internal, __strtoull_l_internal.
1126         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
1127         __wcstod_internal, __wcstold_internal, __wcstol_internal,
1128         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
1129         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
1130         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
1131         __wcsncasecmp_l.
1132         * sysdeps/generic/abort.c: Add libc_hidden_def.
1133         * stdlib/strtod.c: Likewise.
1134         * sysdeps/generic/strtol.c: Likewise.
1135         * sysdeps/wordsize-64/strtol.c: Likewise.
1136         * sysdeps/wordsize-64/wcstol.c: Likewise.
1137         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
1139         * include/stdlib.h: Use libc_hidden_proto for qsort.
1140         * stdlib/msort.c: Add libc_hidden_def.
1142         * include/utime.h: Use libc_hidden_proto for utime.
1143         * sysdeps/generic/utime.c: Add libc_hidden_def.
1144         * sysdeps/unix/utime.c: Likewise.
1146         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
1147         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
1148         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1149         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
1150         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
1152         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
1153         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
1154         and __libc_current_sigrtmax.
1155         * signal/sigismem.c: Add libc_hidden_def.
1156         * signal/sigfillset.c: Likewise.
1157         * signal/sigempty.c: Likewise.
1158         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
1159         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1160         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
1161         * sysdeps/posix/raise.c: Likewise.
1162         * sysdeps/generic/raise.c: Likewise.
1164 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1166         * include/string.h: Use libc_hidden_proto for __stpcpy.
1167         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
1168         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
1169         * sysdeps/generic/stpcpy.c: Likewise.
1170         * sysdeps/i386/stpcpy.S: Likewise.
1171         * sysdeps/i386/i586/stpcpy.S: Likewise.
1172         * sysdeps/powerpc/stpcpy.S: Likewise.
1173         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1174         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1176         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
1177         __strncasecmp_l, __strdup, __strndup, __strerror_r.
1178         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
1179         libc_hidden_def.
1180         * string/strdup.c (__strdup): Likewise.
1181         * string/strndup.c (__strndup): Likewise.
1182         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
1183         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
1185 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1187         * include/libio.h: New file.
1188         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
1189         * libio/iolibio.h: #include <libio.h>, not "libio.h".
1190         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
1191         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
1192         * sysdeps/unix/common/syscalls.list: Likewise.
1193         * sysdeps/unix/inet/syscalls.list: Likewise.
1194         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
1195         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1196         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1197         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1198         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1199         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1200         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1201         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1202         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1203         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
1204         * sysdeps/unix/syscalls.list: Likewise.
1206 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1207             Ulrich Drepper  <drepper@redhat.com>
1209         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
1210         the arguments is big enough to cause an overflow.
1212 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1214         * assert/assert.c: Use hidden_def not INTDEF.
1216 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1218         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
1219         not defined.
1221 2002-08-03  Roland McGrath  <roland@redhat.com>
1223         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
1224         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
1225         verr, verrx.
1226         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
1227         * misc/syslog.c: Add libc_hidden_def.
1228         * misc/err.c: Likewise.
1229         * stdlib/exit.c: Likewise.
1230         * stdlib/bsearch.c: Likewise.
1231         * sysdeps/generic/getenv.c: Likewise.
1233         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
1235         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
1236         libc_hidden_weak for every system call symbol defined.
1238         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
1239         timelocal, localtime, strftime.
1240         * time/asctime.c: Add libc_hidden_def.
1241         * time/mktime.c: Likewise.
1242         * time/localtime.c: Likewise.
1243         * time/strftime.c: Likewise.
1244         * time/strptime.c: Likewise.
1245         * sysdeps/generic/time.c: Likewise.
1246         * sysdeps/unix/time.c: Likewise.
1247         * sysdeps/unix/sysv/i386/time.S: Likewise.
1248         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1250         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
1251         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
1252         * resolv/inet_ntop.c: Likewise.
1253         * resolv/inet_pton.c: Likewise.
1254         * inet/inet_mkadr.c: Add libc_hidden_def.
1255         * inet/inet_netof.c: Likewise.
1256         * resolv/inet_addr.c: Likewise.
1258         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
1259         clauses from conditionals for now.  Will have to be fixed later
1260         for older compilers.
1262         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
1264 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1266         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
1267         broken alias attribute handling.
1268         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
1270 2002-08-02  Roland McGrath  <roland@frob.com>
1272         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
1273         since it sets the variables we use in a -D switch.
1275 2002-08-02  Roland McGrath  <roland@redhat.com>
1277         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
1278         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
1279         matches long int, not int.
1281         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
1282         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
1283         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1284         * wctype/wctrans.c (wctrans): Likewise.
1285         * wctype/wctype.c (__wctype): Likewise.
1286         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
1288 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1290         * assert/assert.c (__assert_fail): Fix typo in comment.
1292         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
1293         * sunrpc/rpc_thread.c: Define it without static.
1294         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
1296 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1298         * assert/assert.c (__assert_fail): Remove undef.
1299         Replace INTDEF with libc_hidden_def.
1300         * assert/__assert.c (__assert): Remove INTUSE.
1301         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
1302         libc_hidden_weak.
1303         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
1304         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
1305         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
1306         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
1307         libm_hiden_ver): Define.
1308         * include/assert.h (__assert_fail_internal): Remove.
1309         (__assert_fail): Add prototype.  Add hidden_proto.
1310         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
1311         libc_hidden_proto.
1312         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
1313         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
1314         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
1315         Add libc_hidden_proto.
1316         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
1317         __fcntl): Add libc_hidden_proto.  Remove macros.
1318         (__open_internal, __fcntl_internal): Remove.
1319         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
1320         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
1321         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
1322         libc_hiden_proto.
1323         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
1324         libc_hidden_def.
1325         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
1326         Add libc_hidden_def.
1327         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
1328         * sysdeps/generic/open.c (__open): Remove undef.
1329         Add libc_hidden_def.  Remove INTDEF.
1330         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
1331         Add libc_hidden_def.
1332         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
1333         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
1334         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
1335         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1336         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1337         (__libc_fcntl): Add libc_hidden_def.
1338         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
1339         (__open): Remove INTDEF2.  Add libc_hidden_weak.
1340         (__libc_open): Add libc_hidden_def.
1341         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
1342         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
1343         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1344         Add libc_hidden_def.
1345         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
1346         Add libc_hidden_def.
1347         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
1348         undef.
1349         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1350         (__libc_fcntl): Add libc_hidden_def.
1351         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
1352         __getpgid_internal, __chown_internal): Remove.
1353         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
1354         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
1355         __GI___chown): Add.
1356         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
1357         __getpid_internal, __open_internal, __write_internal): Remove.
1358         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
1359         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
1360         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
1361         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
1362         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
1363         Replace INTDEF with libc_hidden_def.
1364         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1365         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
1366         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
1367         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
1368         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
1369         Add libc_hidden_proto.
1370         * include/sys/poll.h (__poll): Add libc_hidden_proto.
1371         * include/sys/select.h (__select): Likewise.
1372         * include/sys/socket.h (__send): Likewise.
1373         * include/sys/statfs.h (__statfs): Likewise.
1374         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
1375         __getpid, __getpgid, __setpgid, __close, __read, __write,
1376         __getpagesize, __sbrk): Likewise.
1377         (__chown_internal, __dup2_internal, __getpid_internal,
1378         __getpgid_internal, __close_internal, __write_internal,
1379         __getpagesize_internal): Remove.
1380         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
1381         Remove macros.
1382         * include/printf.h (__printf_fp): Add libc_hidden_proto.
1383         * include/sched.h (__sched_setscheduler): Likewise.
1384         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
1385         * include/stdlib.h (__secure_getenv): Likewise.
1386         * include/signal.h (__sigaction, __sigsuspend): Likewise.
1387         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
1388         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
1389         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
1390         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
1391         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
1392         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
1393         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
1394         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
1395         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
1396         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
1397         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
1398         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
1399         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
1400         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
1401         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
1402         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1403         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1404         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1405         * libio/genops.c (__overflow): Add libc_hidden_def.
1406         * libio/iovdprintf.c: Remove libio.h include.
1407         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
1408         libc_hidden_weak): Define to nothing if not defined.
1409         (__overflow, __woverflow): Add libc_hidden_proto.
1410         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
1411         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
1412         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1413         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
1414         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1415         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
1416         and libc_hidden_def.
1417         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
1418         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
1419         (__getpgid): Add libc_hidden_proto.
1420         (__bsd_getpgrp): Remove INTUSE.
1421         * resolv/res_init.c (__res_ninit, __res_randomid): Add
1422         libc_hidden_def.
1423         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
1424         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
1425         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
1426         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
1427         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
1428         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
1429         __rpc_thread_createerr): Add libc_hidden_def.
1430         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
1431         libc_hidden_def.
1432         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
1433         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
1434         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
1435         * sysdeps/generic/chown.c (__chown): Likewise.
1436         * sysdeps/generic/close.c (__close): Likewise.
1437         * sysdeps/generic/dup2.c (__dup2): Likewise.
1438         * sysdeps/generic/pipe.c (__pipe): Likewise.
1439         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
1440         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
1441         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
1442         * sysdeps/generic/read.c (__libc_read): Likewise.
1443         (__read): Add libc_hidden_weak.
1444         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
1445         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
1446         * sysdeps/generic/select.c (__select): Likewise.
1447         * sysdeps/generic/send.c (__send): Likewise.
1448         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
1449         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
1450         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
1451         * sysdeps/generic/statfs.c (__statfs): Likewise.
1452         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
1453         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
1454         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
1455         Remove undef and INTDEF.
1456         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
1457         * sysdeps/generic/getpid.c (__getpid): Likewise.
1458         * sysdeps/generic/write.c (__libc_write): Likewise.
1459         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1460         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
1461         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1462         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
1463         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
1464         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
1465         Remove undef and INTDEF.
1466         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
1467         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
1468         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1469         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1470         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
1471         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1472         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
1473         (__pipe): Add libc_hidden_def.
1474         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
1475         libc_hidden_weak.
1476         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
1477         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
1478         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
1479         (__read): Add libc_hidden_weak.
1480         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
1481         (__libc_pwrite64): Add libc_hidden_def.
1482         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1483         * sysdeps/mach/hurd/select.c (__select): Likewise.
1484         * sysdeps/mach/hurd/send.c (__send): Likewise.
1485         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
1486         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1487         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
1488         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1489         * sysdeps/posix/dup2.c: Likewise.
1490         Remove undef and INTDEF.
1491         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
1492         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
1493         (__pwrite64): Add libc_hidden_weak.
1494         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
1495         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
1496         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
1497         * sysdeps/standalone/close.c (__close): Likewise.
1498         * sysdeps/standalone/write.c (__libc_write): Likewise.
1499         (__write): Add libc_hidden_weak.
1500         * sysdeps/standalone/read.c (__read): Likewise.
1501         (__libc_read): Add libc_hidden_def.
1502         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
1503         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
1504         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
1505         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
1506         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
1507         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
1508         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
1509         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
1510         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
1511         __GI___sigaction): Add.
1512         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1513         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1514         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1515         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1516         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1517         __GI___setpgid): Add.
1518         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1519         Remove undef and INTDEF.
1520         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1521         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1522         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1523         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1524         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1525         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1526         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1527         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1528         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1529         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1530         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1531         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1532         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1533         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1534         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1535         __GI___statfs, __GI___send): Add.
1536         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1537         libc_hidden_ver resp. libc_hidden_def.
1538         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1539         libc_hidden_def.
1540         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1541         Likewise.  Remove undef and INTDEF.
1542         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1543         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1544         __GI___statfs, __GI___send): Add.
1545         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1546         libc_hidden_def.
1547         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1548         Likewise.
1549         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1550         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1551         libc_hidden_ver resp. libc_hidden_def.
1552         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1553         __GI___send): Add.
1554         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1555         Add libc_hidden_weak.
1556         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1557         Add libc_hidden_def.
1558         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1559         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1560         libc_hidden_weak.
1561         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1562         resp. libc_hidden_def.
1563         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1564         libc_hidden_weak.
1565         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
1566         INTDEF.
1567         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1568         Likewise.  Remove undef.
1569         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1570         libc_hidden_weak.
1571         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1572         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1573         libc_hidden_weak.
1574         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1575         libc_hidden_def.
1576         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
1577         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1578         Likewise.  Remove undef and INTDEF.
1579         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
1580         libc_hidden_def.
1581         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
1582         libc_hidden_weak.
1583         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
1584         libc_hidden_def.
1585         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1586         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
1587         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
1588         libc_hidden_weak.
1589         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
1590         Add libc_hidden_def.
1591         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
1592         __GI___statfs): Add.
1593         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
1594         libc_hidden_weak.
1595         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
1596         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
1597         Remove undef and INTDEF.
1598         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
1599         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
1600         libc_hidden_def.
1601         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
1602         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
1603         libc_hidden_weak.
1604         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
1605         libc_hidden_def.
1606         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
1607         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
1608         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
1609         Add.
1610         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
1611         libc_hidden_def.  Remove undef and INTDEF.
1612         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
1613         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
1614         libc_hidden_def.
1615         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
1616         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
1617         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
1618         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
1619         Remove undef and INTDEF.
1620         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
1621         broken visibility attribute handling.
1622         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
1624 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1626         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
1627         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
1629         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
1630         previous patch.
1632 2002-06-29  Todd Fries  <todd@openbsd.org>
1634         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
1636 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1638         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
1640 2002-07-30  Roland McGrath  <roland@redhat.com>
1642         * resolv/resolv.h (_res): Define macro unconditionally.
1643         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
1644         * include/resolv.h: ... here.
1645         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
1646         as a __thread variable.
1647         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
1648         a __thread variable instead of a global.
1649         * resolv/res_data.c [_LIBC]: Don't #undef _res.
1651         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
1652         time we test it.
1654         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
1656         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
1657         decls of memset and memcpy.
1659         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
1660         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
1662         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
1664         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
1665         (__libc_tsd_define): Define using __thread.
1667         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
1668         (__rpc_thread_variables): Use __libc_tsd_get.
1669         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
1670         __rpc_thread_variables, which might allocate what we're about to free.
1672         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
1673         thread-local variable.
1674         * resolv/netdb.h (h_errno): Define macro unconditionally.
1675         [_LIBC] (__set_h_errno): Macro moved to ...
1676         * include/netdb.h: ... here.
1677         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1678         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1679         [! _LIBC_REENTRANT]: #undef h_errno here.
1681         * include/errno.h: Protect from multiple inclusion.
1683         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1684         before defining them, since Linux's <linux/posix_types.h> might have
1685         defined them.
1687 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1689         * malloc/malloc.c (public_cALLOc): Check for overflow on
1690         multiplication.
1691         * sunrpc/xdr_array.c (xdr_array): Likewise.
1692         * sunrpc/rpc/types.h (mem_free): Add comment.
1693         Patch by Solar Designer <solar@openwall.com>.
1695 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1697         * sysdeps/unix/sysv/linux/kernel-features.h
1698         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
1700 2002-08-01  Roland McGrath  <roland@redhat.com>
1702         * libio/fileops.c (_IO_file_sync_mmap): New function.
1703         (_IO_file_jumps_mmap): Use it.
1704         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
1705         repeat the stat check and resize the mapped buffer as necessary.
1707 2002-07-31  Roland McGrath  <roland@redhat.com>
1709         * libio/fileops.c (decide_maybe_mmap): New static function.
1710         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
1711         mmap the file contents.  Then switch the jump tables to the mmap
1712         tables if it worked, or the vanilla file tables if not.
1713         (_IO_file_underflow_maybe_mmap): New function.
1714         (_IO_file_seekoff_maybe_mmap): New function.
1715         (_IO_file_xsgetn_maybe_mmap): New function.
1716         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
1717         * libio/libioP.h: Declare those.
1718         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
1719         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
1720         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
1721         If the stream is read-only, set its jump tables to those new ones.
1722         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
1723         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
1724         We need the tables set before _IO_file_attach.
1726         * libio/tst-mmap-eofsync.c: New file.
1727         * libio/tst-mmap-fflushsync.c: New file.
1728         * libio/bug-mmap-fflush.c: New file.
1729         * libio/tst-mmap2-eofsync.c: New file.
1730         * libio/Makefile (tests): Add them.
1732         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
1733         _IO_file_underflow_mmap fails, it already set the appropriate bit.
1735 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
1737         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
1738         Declarations moved to <bits/sys_errlist.h>.  Include that file.
1739         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
1740         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
1741         declare sys_errlist and sys_nerr.
1742         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
1743         provide declarations.
1745 2002-07-31  Roland McGrath  <roland@redhat.com>
1747         * elf/rtld.c (dl_main): Fix typo in error message.
1749 2002-07-31  Roland McGrath  <roland@frob.com>
1751         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
1752         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
1753         sysdeps/mach/hurd/dl-sysdep.c change.
1755 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
1757         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
1758         -r`/build/include for kernel headers.
1760         * po/fi.po: New file.
1762 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
1764         * configure.in (static_nss): Set to `yes' if --disable-shared.
1766 2002-07-23  Bruno Haible  <bruno@clisp.org>
1768         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
1769         is set.
1771 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1773         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
1774         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
1775         arguments.
1777 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1779         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
1780         alias.
1782 2002-07-21  Bruno Haible  <bruno@clisp.org>
1784         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
1785         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
1786         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
1787         trans_sysdep_tab_offset.
1788         (struct sysdep_segment): New type.
1789         (struct sysdep_string): New type.
1790         (SEGMENTS_END): New macro.
1791         * intl/gettextP.h (struct sysdep_string_desc): New type.
1792         (struct loaded_domain): New fields malloced, n_sysdep_strings,
1793         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
1794         orig_tab, trans_tab, hash_tab to const pointers because they point
1795         into read-only memory.
1796         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
1797         (PRI*): Define fallback values.
1798         (get_sysdep_segment_value): New function.
1799         (_nl_load_domain): Distinguish major and minor revision parts. Add
1800         support for minor revision 1 with system dependent strings.
1801         (_nl_unload_domain): Also free the 'malloced' field.
1802         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
1803         now done in loadmsgcat.c. Add support for system dependent strings.
1805 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1807         * posix/bug-regex7.c: New file.
1808         * posix/bug-regex8.c: New file.
1809         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
1811 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1813         * posix/bug-regex4.c (main): Fix typos.
1814         * posix/bug-regex6.c (main): Likewise.
1816 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
1818         * posix/bug-regex6.c (main): Fix warnings.
1820         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
1822         * iconv/iconv_prog.c (main): Improve error message for the cases
1823         where -t and/or -f parameter are missing.
1825 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
1827         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
1828         (re_search): Likewise.
1829         (re_match_2): Likewise.
1830         (re_search_2): Likewise.
1831         (re_search_stub): New function.
1832         (re_search_2_stub): New function.
1833         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
1835 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1837         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
1838         (re_string_eoi): Use STOP instead of LEN.
1839         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
1840         (re_string_construct): Likewise.
1841         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
1842         * posix/regexec.c (re_search_internal): Add a new argument STOP
1843         so that it can handle the argument STOP of re_search_2 and re_match_2
1844         correctly.
1845         (regexec): Adapt to new I/F of re_search_internal.
1846         (re_search_stub): Likewise.
1848 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
1850         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
1852         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
1854         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
1855         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
1856         of __divdi3.
1858         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
1859         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
1860         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
1861         alias for adjtimex syscall.
1863         * elf/dl-minimal.c: Define __assert_fail_internal.
1864         * assert/assert.c: Likewise.
1865         * include/assert.h: Define __assert_file macro if !SHARED and not
1866         NOT_IN_libc.
1868         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
1869         programs.
1870         * locale/Makefile: Likewise.
1871         * nscd/Makefile: Likewise.
1872         * catgets/Makefile: Likewise.
1874 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1876         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
1877         compute current position.
1879         * stdio-common/tst-fseek.c (main): Improve error messages.
1881         * libio/tst-freopen.c (main): Remove unused variable.
1883         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
1884         succesful seek call.  Simplify error checking.
1886 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1888         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
1889         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1891 2002-07-19  Roland McGrath  <roland@frob.com>
1893         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
1894         __libc_enable_secure is set.
1896 2002-07-24  Roland McGrath  <roland@frob.com>
1898         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
1899         This implementation supports only IPv4.
1900         * inet/ifaddrs.h: New file.
1901         * sysdeps/generic/ifaddrs.c: New file.
1902         * sysdeps/gnu/ifaddrs.c: New file.
1903         * inet/test-ifaddrs.c: New file.
1904         * inet/Makefile (routines): Add ifaddrs.
1905         (headers): Add ifaddrs.h here.
1906         (tests): Add test-ifaddrs.
1907         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
1909         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
1910         socket call to get an AF_INET socket, instead of using __opensock.
1911         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
1913         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
1914         if not -1 use it instead of calling __opensock.
1915         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
1916         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
1917         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
1919         * sysdeps/mach/hurd/ifreq.h: New file.
1920         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
1921         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
1922         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
1924         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
1925         which gets moved around.  Calculate size of mmap'd buffer instead.
1927 2002-07-24  Philip Blundell  <philb@gnu.org>
1929         * sysdeps/unix/arm/brk.S: Improve schedule.
1930         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
1931         efficient instruction.
1932         (__socket): Optimize return sequence.
1934 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1936         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
1937         sockets on old kernels.
1939 2002-07-22  Philip Blundell  <philb@gnu.org>
1941         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
1942         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1943         alias.
1945 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1947         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
1948         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
1950         * locale/programs/locarchive.c (add_locale_to_archive): Correct
1951         test to detect duplicate locales.
1953         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
1954         position would be before beginning of file.
1955         (_IO_file_seekoff_mmap): Likewise.
1956         * libio/Makefile (tests): Add bug-fseek.
1957         * libio/bug-fseek.c: New file.
1959         * intl/explodename.c: Remove support for CEN-style locale variables.
1960         It was never used and shouldn't be since it's not portable.
1961         * intl/finddomain.c: Likewise.
1962         * intl/l10nflist.c: Likewise.
1963         * intl/loadinfo.h: Likewise.
1964         * locale/findlocale.c: Likewise.
1966 2002-07-24  Roland McGrath  <roland@frob.com>
1968         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
1969         position, calculate it to take into account an active pushback buffer.
1971         * libio/Makefile (tests): Add bug-ungetc.
1972         * libio/bug-ungetc.c: New file.
1974 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
1976         * sysdeps/generic/libc-tls.c: New file.
1977         * csu/Makefile (routines): Add libc-tls.
1978         (static-only-routines): Add libc-tls.
1979         * elf/dl-support.c (_dl_phdr): New variable.
1980         (_dl_phnum): New variable.
1981         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
1982         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
1983         for !SHARED.  First look through auxiliary vector.  If TLS always
1984         call __pthread_initialize_minimal.
1986         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
1987         in mmap call is never zero.
1989 2002-07-23  Andreas Jaeger  <aj@suse.de>
1991         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
1992         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1994 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
1996         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
1997         creation and removal of the temp file.
1999         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
2000         file creation.
2001         * test-skeleton.c (create_temp_file): New function.
2003 2002-07-22  Andreas Jaeger  <aj@suse.de>
2005         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
2006         local label.
2008 2002-07-21  Roland McGrath  <roland@frob.com>
2010         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
2011         put -I../include before -I../stdlib so we get the right errno.h et al.
2012         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
2013         (CFLAGS-wcstof.c): Likewise.
2014         (CFLAGS-wcstold.c): Likewise.
2015         (CFLAGS-wcstod_l.c): Likewise.
2016         (CFLAGS-wcstof_l.c): Likewise.
2017         (CFLAGS-wcstold_l.c): Likewise.
2019 2002-07-19  Roland McGrath  <roland@frob.com>
2021         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
2023 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
2025         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
2026         __ASSUME_AT_XID is defined.
2027         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
2028         for 2.4.1 and up.
2029         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
2030         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
2032         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
2033         (CFLAGS-wcstof.c): Likewise.
2034         (CFLAGS-wcstold.c): Likewise.
2035         (CFLAGS-wcstod_l.c): Likewise.
2036         (CFLAGS-wcstof_l.c): Likewise.
2037         (CFLAGS-wcstold_l.c): Likewise.
2039 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
2041         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
2042         __priority_which_t): Always typedef to int for C++.
2044 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
2046         * configure.in: Add test for __thread support in compiler.
2047         * config.h.in: Add HAVE___THREAD.
2048         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
2049         * include/sys/errno.h: Moved to...
2050         * stdlib/sys/errno.h: ...here.  New file.
2051         * stdlib/errno.h: New file.  Moved from...
2052         * include/errno.h: ...here.  Changed into an internal header defining
2053         libc-local things like __set_errno.
2054         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
2055         bits/errno.h.
2056         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
2057         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
2058         either.
2059         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
2060         from...
2061         (_dl_start_final): ...here.  Add code to initialize tls elements from
2062         bootstrap_map.
2063         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
2064         if USE_TLS && HAVE___THREAD.
2065         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
2066         * sysdeps/mach/hurd/bits/errno.h: Likewise.
2067         * sysdeps/standalone/arm/bits/errno.h: Likewise.
2068         * sysdeps/standalone/bits/errno.h: Likewise.
2069         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
2070         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
2071         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
2072         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
2073         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
2074         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
2075         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
2076         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
2077         use GL(dl_rtld_map), use map parameter.
2078         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2079         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
2080         USE_TLS && HAVE___THREAD.
2081         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
2082         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
2083         TLS code sequence.
2084         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2086         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
2087         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
2088         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2089         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2090         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2091         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2093 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
2095         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
2096         MS_INVALIDATE values.
2098 2002-07-17  Andreas Schwab  <schwab@suse.de>
2099             Ulrich Drepper  <drepper@redhat.com>
2101         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
2102         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2103         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2104         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2106 2002-07-01  H.J. Lu  <hjl@gnu.org>
2108         * elf/circleload1.c (load_dso): Call "circlemod1" and check
2109         return value.
2111         * elf/circlemod1.c (circlemod1): Return int.
2112         * elf/circlemod2.c (circlemod2): Likewise.
2113         * elf/circlemod2a.c (circlemod2): Likewise.
2114         * elf/circlemod3.c (circlemod3): Likewise.
2115         (circlemod3a): A new function.
2117 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
2119         * catgets/tst-catgets.c (main): Don't expect results for
2120         untranslated messages.
2122         * glibcbug.in: Fix little typo.  Remove STDIO.
2124         * config.h.in: Fail if __FAST_MATH__ is defined.
2125         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
2126         (CPPFLAGS-test-idouble.c): Likewise.
2127         (CPPFLAGS-test-ildouble.c): Likewise.
2129 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2131         * intl/tst-gettext.sh: Pass -f option to msgfmt.
2132         * intl/tst-gettext.c: Correctly handle untranslated messages in
2133         positive tests.
2135         * po/de.po: Update from translation team.
2137 2002-07-02  H.J. Lu  <hjl@gnu.org>
2139         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
2140         use ll/sc.
2141         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2143         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
2144         to 2.4.0 for mips.
2146 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2148         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
2149         TLS fail if USE_TLS is not defined.
2151         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
2152         and adjust state for seek position.  [PR libc/4070]
2153         * libio/Makefile (tests): Add bug-rewind.
2154         * libio/bug-rewind.c: New file.
2156 2002-07-12  Philip Blundell  <philb@gnu.org>
2158         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
2159         (__backtrace): Use it.
2160         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
2162 2002-07-12  Philip Blundell  <philb@gnu.org>
2164         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
2165         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2166         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2167         (elf_machine_rela): Remove unused variable.
2169         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
2170         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
2171         define.
2173 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
2175         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
2177 2002-07-14  Andreas Jaeger  <aj@suse.de>
2179         * sysdeps/x86_64/bits/link.h: Add biarch support.
2181 2002-07-13  Andreas Jaeger  <aj@suse.de>
2183         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
2184         Use correct indices.
2185         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
2187 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2189         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
2190         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
2191         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
2192         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
2193         * sysdeps/s390/s390-32/bits/link.h: Remove.
2194         * sysdeps/s390/s390-64/bits/link.h: Remove.
2195         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
2196         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
2197         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
2198         * sysdeps/s390/bits/wordsize.h: New file.
2199         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
2200         elfclass.h.
2201         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
2202         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
2203         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
2204         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
2205         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
2206         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
2207         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
2208         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
2209         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
2210         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
2211         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
2212         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
2213         resource.h.
2214         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
2215         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
2216         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
2217         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
2218         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
2219         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
2220         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
2221         sigaction.h.
2222         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
2223         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
2224         siginfo.h.
2225         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
2226         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
2227         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
2228         socket.h.
2229         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
2230         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
2231         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
2232         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
2233         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
2234         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
2235         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
2236         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
2237         procfs.h.
2238         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
2239         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
2240         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
2241         ucontext.h.
2242         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
2243         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
2245 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2247         * Versions.def (libc): Add GLIBC_2.3.
2248         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
2249         * stdlib/canonicalize.c: Add compatibility version for realpath
2250         and make new code available in GLIBC_2.3.
2252 2002-07-06  Bruno Haible  <bruno@clisp.org>
2254         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
2256 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2258         * resolv/res_hconf.c (_res_hconf_init): Move code into new
2259         function do_init.  Use __libc_once.
2260         (do_init): New function.
2262         * iconvdata/iso8859-11.h: Removed.
2263         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
2264         (distribute): Remove iso8859-11.h.
2265         * iconvdata/tst-tables.sh: Add ISO-8859-11.
2267         * stdio-common/vfscanf.c (inchar): Restore errno from previous
2268         underflow operation if c == (W)EOF.
2270 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2272         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
2273         non-zero, adjust exponent.
2274         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
2275         Remove NO_LONG_DOUBLE aliases.
2276         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
2277         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
2278         (__log1pl): Raise divide by zero and invalid exceptions when needed.
2279         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
2280         1**y and -1**+-Inf.
2281         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
2282         Fix BITS_PER_MP_LIMB 32 extraction.
2283         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
2284         exceptions for qNaNs.
2285         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2286         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
2287         Raise exceptions when needed.  Don't recurse unnecessarily.
2288         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
2289         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
2290         exceptions for qNaNs.
2291         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
2292         to fix *quo return value sign.
2293         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
2294         case -Inf argument.
2295         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
2297 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2299         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
2300         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
2301         -DNDEBUG.
2303 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2305         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
2306         the result.
2308         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
2309         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
2311         * Versions.def (libthread_db): Add GLIBC_2.3.
2313 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
2315         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
2316         new stream if possible.
2317         * libio/freopen64.c (freopen64): Likewise.
2318         * libio/Makefile (tests): Add tst-freopen.
2319         * libio/tst-freopen.c: New file.
2321 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2323         * libio/stdio.h (obstack_printf): Add format attribute.
2324         (obstack_vprintf): Likewise.
2326 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2328         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
2329         resp. 16 bytes on 32-bit resp. 64-bit platforms.
2330         (re_charset_t, re_string_t): Reorder structure members for 64-bit
2331         architectures.
2333 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2335         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
2336         (init_dfa): ...here.
2338 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2340         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
2341         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
2342         nodes in parse trees.
2343         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
2344         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
2345         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
2346         nodes which can epsilon transit.
2347         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
2348         to IS_EPSILON_NODE macro.
2349         * posix/regexec.c (update_regs): New function to update registers
2350         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
2351         (proceed_next_node): Use the entities of the nodes to determine
2352         whether the node can transit to.
2353         (set_regs): Use update_regs function to update registers.
2355 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2357         * posix/bug-regex4.c (main): Remove duplicate setlocale.
2358         * posix/bug-regex6.c: New file.
2359         * posix/Makefile (tests): Add bug-regex6.
2360         (bug-regex6-ENV): Set LOCPATH.
2362 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2364         * Versions.def [libpthread]: Add GLIBC_2.2.6.
2365         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
2367 2002-07-06  Bruno Haible  <bruno@clisp.org>
2369         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
2371 2002-07-06  Bruno Haible  <bruno@clisp.org>
2373         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
2374         declarations.
2376         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
2378         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
2380         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
2381         not _UTSNAME_H.
2382         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
2384         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
2385         * sysdeps/generic/bits/ustat.h: Likewise.
2387         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
2389 2002-07-08  Andreas Jaeger  <aj@suse.de>
2391         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
2393 2002-07-08  Andreas Jaeger  <aj@suse.de>
2395         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
2397 2002-07-06  Andreas Jaeger  <aj@suse.de>
2399         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
2400         * sysdeps/x86_64/fpu/s_copysign.S: New.
2401         * sysdeps/x86_64/fpu/s_copysignf.S: New.
2402         * sysdeps/x86_64/fpu/s_copysignl.S: New.
2403         * sysdeps/x86_64/fpu/s_finitel.S: New.
2404         * sysdeps/x86_64/fpu/s_fmax.S: New.
2405         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
2406         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
2407         * sysdeps/x86_64/fpu/s_fmin.S: New.
2408         * sysdeps/x86_64/fpu/s_fminf.S: New.
2409         * sysdeps/x86_64/fpu/s_fminl.S: New.
2411 2002-06-05  Brian Youmans <3diff@gnu.org>
2413         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
2414         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2415         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2416         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2417         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2418         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2419         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2420         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2421         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2422         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2423         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2424         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2425         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2426         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2427         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2428         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2429         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2430         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2431         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2432         * sysdeps/ia64/fpu/e_log.S: Likewise.
2433         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2434         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2435         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2436         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2437         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2438         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2439         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2440         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2441         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2442         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2443         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2444         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2445         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2446         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2447         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2448         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2449         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
2450         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2451         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
2452         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
2453         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2454         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2455         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2456         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2457         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2458         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2459         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2460         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2461         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2462         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2463         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2464         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2465         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2466         * sysdeps/ia64/fpu/s_modf.S: Likewise.
2467         * sysdeps/ia64/fpu/s_modff.S: Likewise.
2468         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2469         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2470         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2471         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2472         * sysdeps/ia64/fpu/s_rint.S: Likewise.
2473         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2474         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2475         * sysdeps/ia64/fpu/s_round.S: Likewise.
2476         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2477         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2478         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2479         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2480         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2481         * sysdeps/ia64/fpu/s_significand.S: Likewise.
2482         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2483         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2484         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2485         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2486         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2487         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2488         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2489         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2490         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
2491         reflect IBM donation of math library to FSF
2492         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2493         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2494         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2495         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2496         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2497         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2498         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2499         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2500         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2501         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2502         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2503         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2504         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2505         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2506         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2507         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2508         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2509         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2510         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2511         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2512         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2513         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2514         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2515         * sysdeps/vax/__longjmp.c: Likewise.
2516         * sysdeps/vax/setjmp.c: Likewise.
2517         * libio/filedoalloc.c: Fixed BSD copying permission notice to
2518         remove advertising clause
2519         * sysdeps/vax/htonl.s: Likewise.
2520         * sysdeps/vax/htons.s: Likewise.
2521         * libio/wfiledoalloc.c: Likewise.
2522         * stdlib/random.c: Likewise.
2523         * stdlib/random_r.c: Likewise.
2524         * sysdeps/mach/sys/reboot.h: Likewise.
2525         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2526         * sysdeps/posix/getaddrinfo.c: Likewise.
2527         * sunrpc/des_impl.c: Updated license permission notice to Lesser
2528         GPL and corrected pointer to point to the correct license.
2530 2002-07-04  Andreas Jaeger  <aj@suse.de>
2532         * scripts/config.guess: New upstream version.
2533         * scripts/config.sub: Likewise.
2535 2002-07-02  Andreas Schwab  <schwab@suse.de>
2537         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2538         in parallel to bumping up the buffer pointer.
2540 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2542         * math/libm-test.inc (acos_test): Add missing L suffix for
2543         expected result.
2544         (cpow_test): Likewise.
2545         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2546         error for acos (0.0625).
2548 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2550         * locale/iso-639.def: Add entry for Ganda.
2551         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2552         definition.
2553         (address_finish): Handle entries with two letter ISO 639 code.
2555         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2556         directory if it existed before.
2557         * iconv/iconvconfig.c: Implement --prefix option.
2559         * math/libm-test.inc (cexp_test): Add missing L suffix for
2560         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
2561         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2562         1.25 i).
2564 2002-05-29  H.J. Lu  <hjl@gnu.org>
2566         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2567         is turned on.
2569 2002-05-28  H.J. Lu  <hjl@gnu.org>
2571         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2572         are not dlopened on the dependency list of a dlopened object.
2574 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2576         * elf/dl-lookup.c (add_dependency): It is not necessary to add
2577         dependencies if they are created between objects which are created
2578         while processing RTLD_NOW for objects loaded as part of the same
2579         dlopen call.
2581 2002-06-14  H.J. Lu  <hjl@gnu.org>
2583         * elf/Makefile (tests): Add circleload1.
2584         (modules-names): Add circlemod1, circlemod2, circlemod3,
2585         circlemod1a, circlemod2a and circlemod3a.
2586         ($(objpfx)circleload1): New target.
2587         ($(objpfx)circleload1.out): Likewise.
2588         ($(objpfx)circlemod1.so): Likewise.
2589         ($(objpfx)circlemod2.so): Likewise.
2590         ($(objpfx)circlemod1a.so): Likewise.
2591         ($(objpfx)circlemod2a.so): Likewise.
2592         * elf/circleload1.c: New file.
2593         * elf/circlemod1.c: New file.
2594         * elf/circlemod1a.c: New file.
2595         * elf/circlemod2.c: New file.
2596         * elf/circlemod2a.c: New file.
2597         * elf/circlemod3.c: New file.
2598         * elf/circlemod3a.c: New file.
2600 2002-06-18  Amos Waterland  <apw@us.ibm.com>
2602         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
2603         file descriptor.
2604         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
2605         add check for fd not open for writing.
2607         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
2608         completed element(s) and do not suspend thread if so.  Patch
2609         heavily modified by drepper.
2611         * rt/tst-aio7.c: New file.  Regression test for problems which the
2612         above three changes fix.
2613         * rt/Makefile (tests): Add tst-aio7.
2615 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
2617         * rt/tst-aio6.c: Fix comment.
2619         * catgets/gencat.c (read_input_file): Handle more than one slash
2620         at end of line correctly [PR libc/3926].
2621         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
2623         * catgets/sample.SJIS: Add test case for above bug.
2624         * catgets/test-gencat.c: Adjust test code.
2625         * catgets/test-gencat.sh: Adjust expected results.
2627         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
2628         to skip relative relocations.
2629         Patch by Geoff Keating <geoffk@redhat.com>.
2631 2002-05-26  Bruno Haible  <bruno@clisp.org>
2633         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
2634         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
2635         All callers changed.
2636         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
2637         STANDARD_FROM_LOOP_ERR_HANDLER.
2638         (utf8_internal_loop): Likewise.
2639         (ucs2_internal_loop): Likewise.
2640         (internal_ucs2_loop): Perform error handling like in
2641         STANDARD_FROM_LOOP_ERR_HANDLER.
2642         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
2643         in STANDARD_FROM_LOOP_ERR_HANDLER.
2644         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2645         handling.
2646         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
2647         in STANDARD_FROM_LOOP_ERR_HANDLER.
2648         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2649         handling.
2650         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
2651         in STANDARD_FROM_LOOP_ERR_HANDLER.
2652         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2653         handling.
2654         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
2655         STANDARD_FROM_LOOP_ERR_HANDLER.
2656         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2657         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
2658         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
2659         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
2660         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
2661         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
2662         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
2663         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
2664         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
2665         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
2666         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
2667         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
2668         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
2669         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
2670         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
2671         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
2672         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
2673         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2674         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2675         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2676         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2677         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2678         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2679         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2680         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2681         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2682         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2683         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2684         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
2685         an error, still set result = __GCONV_ILLEGAL_INPUT.
2686         (BODY for TO_LOOP): Likewise.
2687         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2688         STANDARD_FROM_LOOP_ERR_HANDLER.
2689         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2690         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2691         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2692         handling.
2693         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2694         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2695         STANDARD_FROM_LOOP_ERR_HANDLER.
2696         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2697         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
2698         STANDARD_FROM_LOOP_ERR_HANDLER.
2699         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2700         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
2701         STANDARD_FROM_LOOP_ERR_HANDLER.
2702         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2703         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
2704         STANDARD_FROM_LOOP_ERR_HANDLER.
2705         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2706         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
2707         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2708         handling.
2709         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2710         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
2711         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
2712         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
2714 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2716         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
2717         labels in assembler instructions.
2719 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
2721         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
2722         not enough content is available.
2723         * libio/tst-eof.c: New file.
2724         * libio/Makefile (tests): Add tst-eof.
2726         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
2727         update atime.
2728         * libio/tst-atime.c: New file.
2729         * libio/Makefile (tests): Add tst-atime.
2731         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
2732         handling of overly long words.
2734 2002-06-25  Andreas Jaeger  <aj@suse.de>
2736         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
2737         to not use 32-bit pc relative relocations.
2738         (elf_machine_dynamic): Likewise.
2740 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
2742         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
2743         (__GETDENTS): Check for failed getdents64 syscall.
2744         * dirent/Makefile (tests): Add bug-readdir1.
2745         * dirent/bug-readdir1.c: New file.
2747 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
2749         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
2750         lookups.
2751         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
2752         code.  Print TLS modid and offset for modules containing PT_TLS
2753         segments.
2755 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2757         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2758         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2759         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2760         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2762 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2764         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
2765         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
2766         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
2767         * nss/getXXent_r.c (NEW, NEW1): Define.
2768         (NEW (REENTRANT_GETNAME)): Strong alias to
2769         INTERNAL (REENTRANT_GETNAME).
2770         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
2772 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
2774         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
2775         (_IO_file_jumps_mmap): Use it.
2776         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
2777         * libio/libioP.h: Remove _IO_wdefault_setbuf and
2778         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
2779         prototype.
2780         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
2781         (_IO_wfile_jumps_mmap): Don't use it anymore.
2782         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
2783         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
2784         _IO_wdefault_setbuf.
2785         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
2786         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
2787         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
2789 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
2791         * libio/Makefile (tests): Add tst-mmap-setvbuf.
2792         * libio/tst-mmap-setvbuf.c: New test.
2794 2002-06-21  Andreas Jaeger  <aj@suse.de>
2796         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
2798 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
2800         * include/unistd.h (__fork_internal): Remove.
2801         (__fork): Don't define to __fork_internal.
2802         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
2803         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
2804         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
2805         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
2806         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
2808 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2810         * po/hr.po: New file.
2812 2002-06-11  Wolfram Gloger  <wg@malloc.de>
2814         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
2815         Reported by Michael Meissner <meissner@redhat.com>.
2817 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2819         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
2820         Patch by Hans Boehm <hans_boehm@hp.com>.
2822 2002-06-20  Andreas Jaeger  <aj@suse.de>
2824         * math/libm-test.inc: Use exact values as input parameters,
2825         compute output parameters with 36 digits for 128-bit long doubles.
2826         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2827         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
2828         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2830 2002-06-13  Stephen L Moshier  <steve@moshier.net>
2832         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
2833         argument or result is subnormal.
2835 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
2837         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
2838         quotient.
2839         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2840         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2842         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
2844 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
2846         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
2847         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
2848         Reported by Peter A. Buhr.
2850 2002-06-15  Roland McGrath  <roland@frob.com>
2852         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
2853         warning.
2855         * sysdeps/mach/hurd/getcwd.c
2856         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
2858         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
2859         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
2861         * sysdeps/alpha/divrem.h: Use local label instead of global one for
2862         jump to local subroutine.
2864 2002-06-14  Roland McGrath  <roland@frob.com>
2866         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
2867         * sysdeps/mach/hurd/Makeconfig: ... here.
2869 2002-06-13  Andreas Schwab  <schwab@suse.de>
2871         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
2872         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2873         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2875 2002-06-13  Roland McGrath  <roland@frob.com>
2877         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
2878         * hurd/hurdstartup.c (_hurd_startup): Likewise.
2879         Use intptr_t instead of int for argc in stack layout.
2880         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
2881         (_dl_init_first): Likewise.
2882         (_hurd_stack_setup): Likewise.
2883         (init1): Add a cast.
2884         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
2886         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
2887         argument to pfinet_siocgifconf RPC.
2889 2002-06-13  Andreas Schwab  <schwab@suse.de>
2891         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
2892         expansion order.
2894 2002-06-12  Roland McGrath  <roland@frob.com>
2896         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
2897         if already defined.
2898         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
2899         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
2901 2002-06-11  Roland McGrath  <roland@frob.com>
2903         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
2904         file on [!RTLD_STAT64].
2905         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2907         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
2908         (__fdopen): Use INTUSE.
2909         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
2911         * stdio-common/tmpfile64.c: File removed.
2912         * sysdeps/generic/tmpfile64.c: New file.
2913         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
2914         if not already defined.
2915         (tmpfile): Use it in place of __GT_FILE.
2917         * include/unistd.h: Declare __chown_internal.
2919         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
2920         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
2922 2002-06-09  Roland McGrath  <roland@frob.com>
2924         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
2925         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
2926         value of HURD_INTERFACE_VERSION >= 20020609.
2927         * sysdeps/mach/hurd/configure: Regenerated.
2928         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
2929         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
2930         convert a struct stat64 into a struct stat and return 0 or -1
2931         with errno set to EOVERFLOW.
2932         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
2933         for struct statfs64 to struct statfs.
2934         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
2935         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
2936         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2937         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2938         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2939         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2940         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2941         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
2942         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
2943         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
2944         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
2945         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
2946         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
2947         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
2948         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
2949         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
2950         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
2951         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
2952         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
2953         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
2954         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
2955         Use struct stat64 for io_stat argument.
2956         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
2957         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
2958         to io_seek.
2959         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
2960         * hurd/fd-write.c (_hurd_fd_write): Likewise.
2961         * hurd/hurd/fd.h: Update decls.
2962         * sysdeps/mach/hurd/getcwd.c
2963         (_hurd_canonicalize_directory_name_internal): Use ino64_t
2964         and struct dirent64.
2965         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
2966         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
2967         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
2968         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
2970 2002-06-08  Roland McGrath  <roland@frob.com>
2972         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
2973         instead of unsigned long int for __allocation and __size members.
2975 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2977         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2978         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2979         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2980         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2982 2002-06-07  Roland McGrath  <roland@frob.com>
2984         * sysdeps/mach/hurd/bits/environments.h: File removed.
2986 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2988         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
2989         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
2990         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
2991         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
2992         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
2993         (sendfile64): Likewise.
2994         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
2995         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
2996         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
2997         Likewise.
2998         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
3000         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
3001         already defined.
3003 2002-06-04  Bruno Haible  <bruno@clisp.org>
3005         * sysdeps/cris/stackinfo.h: New file.
3007         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
3008         to an integer type before performing bit operations on it.
3010 2002-06-05  Roland McGrath  <roland@frob.com>
3012         * sysdeps/generic/sendfile.c: Include <errno.h>.
3013         * sysdeps/generic/sendfile64.c: Likewise.
3015         * io/Makefile (routines): Add sendfile and sendfile64.
3016         (headers): Add sys/sendfile.h to the list.
3017         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
3018         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
3019         * io/sys/sendfile.h: ... here.
3020         * sysdeps/generic/sendfile.c: New file.
3021         * sysdeps/generic/sendfile64.c: New file.
3023         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
3024         Move sendfile, sendfile64 to ...
3025         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
3026         * sysdeps/mach/hurd/sendfile.c: New file.
3027         * sysdeps/mach/hurd/sendfile64.c: New file.
3029         * sysdeps/mach/nanosleep.c: New file.
3031 2002-06-04  Roland McGrath  <roland@frob.com>
3033         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
3034         * sysdeps/alpha/elf/configure: New file (generated).
3036 2002-06-02  Roland McGrath  <roland@frob.com>
3038         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
3040 2002-06-01  Roland McGrath  <roland@frob.com>
3042         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
3043         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
3045 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3047         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
3048         Add nsmap.
3049         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
3050         Remove nstimes setting.
3051         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
3052         * resolv/res_send.c (res_nsend): Don't close unconditionally if
3053         there is mix of IPv6 and IPv4 nameservers.
3054         Use nsmap array to find free slots and preserve nameserver ordering.
3055         Fix RES_ROTATE.
3057 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3059         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
3060         use this header with LFS.
3062         * po/sk.po: Update from translation team.
3064 2002-05-28  Andreas Schwab  <schwab@suse.de>
3066         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
3067         message when finding object of wrong class.
3069 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
3071         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
3072         Patch by <radu@netsoft.ro>.
3074 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3076         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
3077         Add readahead.
3078         * sysdeps/unix/sysv/linux/readahead.c: New file.
3079         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
3080         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
3081         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
3082         Add sendfile64 alias to sendfile syscall.
3083         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3084         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3085         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3086         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
3087         syscall.
3089         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
3090         special section for PIC register loading.
3091         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3093         * config.h.in: Define HAVE_HIDDEN.
3094         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
3096         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
3098 2002-05-28  Roland McGrath  <roland@frob.com>
3100         * sysdeps/mach/alpha/setfpucw.c: New file.
3102 2002-05-26  Roland McGrath  <roland@frob.com>
3104         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
3105         Use integer_t instead of int for IOC_VOID case.
3107 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
3109         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
3111 2002-05-26  Bruno Haible  <bruno@clisp.org>
3113         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
3114         end of the ISO-8859-7 from idx table.
3116 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
3118         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
3120 2002-05-24  David S. Miller  <davem@redhat.com>
3122         * string/bits/string2.h (memset): Do not try to optimize when
3123         not _STRING_ARCH_unaligned if GCC will do the right thing.
3125 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
3127         * posix/regex.c: Define `inline' as a macro into nothing for the
3128         compilers which lack the keyword.
3129         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
3130         for the compatibility of gawk.
3131         * posix/regcomp.c: Add fake implementation of isblank() for the
3132         environments which lack the function.
3133         Don't use free_charset() in case of non-i18n envs.
3134         (build_range_exp): Don't use i18n related code in case of non-i18n
3135         envs.
3136         (build_collating_symbol): Likewise.
3137         (build_equiv_class): Likewise.
3138         (build_charclass): Likewise.
3139         (re_compile_fastmap_iter): Likewise.
3140         (parse_bracket_exp): Likewise.
3141         (build_word_op): Likewise.
3142         (regfree): Don't use free_charset() in case of non-i18n envs.
3143         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
3144         re_token_type_t in case of non-i18n envs.
3145         Don't define re_charset_t in case of non-i18n envs.
3146         Change the type of wcs of re_string_t from wchar_t to wint_t,
3147         since we store also WEOF.
3148         * posix/regex_internal.c: (re_string_realloc_buffers): Change
3149         the type of wcs of re_string_t from wchar_t to wint_t.
3150         (re_string_reconstruct): Likewise.
3151         (create_ci_newstate): Don't use i18n related code in case of
3152         non-i18n envs.
3153         (create_cd_newstate): Likewise.
3155 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
3157         * iconv/loop.c: Fix typo.
3159 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3161         * inet/ether_line.c (ether_line): Fix a typo causing only
3162         lower 4 bits of each ethernet address byte being assigned.
3163         Don't modify what line points to.
3164         * inet/tst-ether_aton.c (main): Add ether_line tests.
3166 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
3168         * manual/filesys.texi: Don't make readlink example leak memory
3169         when readlink fails.
3171 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
3173         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
3174         some more security checks.
3176 2002-05-17  David S. Miller  <davem@redhat.com>
3178         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
3180 2002-05-16  David S. Miller  <davem@redhat.com>
3182         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
3183         (elf_machine_dynamic): Use it to force PIC register to be loaded.
3184         (elf_machine_load_address): Likewise.
3185         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
3187         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
3188         is unaligned, do not forget to fully initialize %g1 magic value.
3190         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
3191         register definitions and provide 32-bit variants of structures
3192         during 64-bit builds.
3194         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
3195         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
3196         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
3197         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
3198         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
3199         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
3200         Do not clear implicit one bit here, it must be done post-rounding.
3201         Only pad to the left using left shift if value uses less than the
3202         available fractional bits.
3204 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3206         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
3207         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
3208         (shared-only-routines): Likewise.
3209         * sysdeps/powerpc/libgcc-compat.c: New file.
3210         * sysdeps/wordsize-32/cmpdi2.c: Removed.
3211         * sysdeps/wordsize-32/fixdfdi.c: Removed.
3212         * sysdeps/wordsize-32/fixsfdi.c: Removed.
3213         * sysdeps/wordsize-32/shdi3.c: Removed.
3215 2002-05-16  Bruno Haible  <bruno@clisp.org>
3217         * MakeTAGS (libc.pot): Don't sort the output.
3218         * po/header.pot: Update to match xgettext 0.11 output.
3220 2002-05-16  Bruno Haible  <bruno@clisp.org>
3222         * MakeTAGS (subdirs): Remove duplicates.
3224 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3226         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
3227         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
3228         alias.
3230 2002-05-19  Andreas Jaeger  <aj@suse.de>
3232         * sysdeps/unix/sysv/linux/configure.in: Warn against an
3233         installation in /usr/local.
3235 2002-05-16  Bruno Haible  <bruno@clisp.org>
3237         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
3238         string as argument of #error.
3240 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
3242         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
3243         don't define static.  Remove old __realpath function.  TC1 of
3244         POSIX 2001 will allow the second parameter to be NULL.
3245         * stdlib/test-canon.c: Comment out test for NULL as second
3246         parameter of realpath.
3248         * time/offtime.c (__offtime): Set errno if overflow is detected.
3250         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
3251         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
3252         dl-brk and dl-sbrk.
3254         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
3255         (fdimf): Likewise.
3257 2002-05-15  Roland McGrath  <roland@frob.com>
3259         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
3261 2002-05-12  Bruno Haible  <bruno@clisp.org>
3263         * iconvdata/testdata/EUC-JISX0213: New file.
3264         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
3265         * iconvdata/testdata/SHIFT_JISX0213: New file.
3266         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
3267         * iconvdata/testdata/ISO-2022-JP-3: New file.
3268         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
3269         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
3270         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
3271         contains comments indicating precomposed characters.
3273 2002-04-21  Bruno Haible  <bruno@clisp.org>
3275         * iconvdata/iso-2022-jp-3.c: New file.
3276         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
3277         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
3278         (LDFLAGS-ISO-2022-JP-3.so): New variable.
3279         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
3280         (distribute): Add iso-2022-jp-3.c.
3282 2002-05-12  Bruno Haible  <bruno@clisp.org>
3284         * iconvdata/tst-table-to.c (main): Restore handling of
3285         transliterations, broken by last patch.
3287 2002-05-12  Bruno Haible  <bruno@clisp.org>
3289         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
3291 2002-05-12  Bruno Haible  <bruno@clisp.org>
3293         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
3294         when there is not enough room in the output buffer.
3295         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3297 2002-04-20  Bruno Haible  <bruno@clisp.org>
3299         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
3300         macros.
3301         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3302         Also make this macro work if FROM_DIRECTION evaluates to 0.
3303         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3304         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
3305         of consume_incomplete.
3306         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3307         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
3308         4, not 8.
3309         * iconvdata/cp1258.c: Likewise.
3310         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3311         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
3312         not 2.
3313         * iconvdata/ibm933.c: Likewise.
3314         * iconvdata/ibm935.c: Likewise.
3315         * iconvdata/ibm937.c: Likewise.
3316         * iconvdata/ibm939.c: Likewise.
3317         * iconvdata/iso-2022-cn.c: Define
3318         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3319         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
3320         * iconvdata/iso-2022-cn-ext.c: Likewise.
3321         * iconvdata/iso-2022-jp.c: Define
3322         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3323         {MIN,MAX}_NEEDED_{FROM,TO}.
3324         * iconvdata/tcvn5712-1.c: Define
3325         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3326         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
3327         * iconvdata/euc-jisx0213.c: Define
3328         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3329         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
3330         * iconvdata/shift_jisx0213.c: Likewise.
3332 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3334         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
3335         shdi3, fixdfdi, fixsfdi in csu dir.
3336         (shared-only-routines): Likewise.
3337         * sysdeps/wordsize-32/cmpdi2.c: New file.
3338         * sysdeps/wordsize-32/shdi3.c: New file.
3339         * sysdeps/wordsize-32/fixdfdi.c: New file.
3340         * sysdeps/wordsize-32/fixsfdi.c: New file.
3341         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
3342         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
3343         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
3345         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
3346         Only use va_arg if the argument will be used [PR libc/3259].
3348 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
3350         * catgets/catgets.c (catopen): Free buffer if internal catalog
3351         open fails.
3353 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3355         * debug/xtrace.sh: Make more robust.  For realtime tracking use
3356         non-buffering methods.
3357         * debug/pcprofiledump.c: Implement -u option.
3358         Patch by Roger Luethi <rl@hellgate.ch>.
3360 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
3362         * include/netinet/in.h (bindresvport_internal): Add prototype.
3363         * include/rpc/auth.h  (authunix_create_internal,
3364         authunix_create_default_internal, authnone_create_internal,
3365         authdes_pk_create_internal): Add prototypes.
3366         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
3367         clntudp_create_internal, clntudp_bufcreate_internal,
3368         clntunix_create_internal): Add prototypes.
3369         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
3370         svc_getreq_internal, svc_getreq_common_internal,
3371         svc_getreqset_internal, svc_getreq_poll_internal,
3372         svc_register_internal, svc_unregister_internal,
3373         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
3374         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
3375         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
3376         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
3377         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
3378         * inet/rcmd.c (rcmd_af): Use __listen.
3379         (rresvport_af): Use __bind.
3380         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
3381         authunix_create, authunix_create_default, authnone_create,
3382         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
3383         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
3384         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
3385         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
3386         _authenticate, add INTDEF after such function definitions.
3387         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
3388         __setsockopt, __getsockname instead of non-__ variants.
3389         * sunrpc/pmap_rmt.c: Likewise.
3390         * sunrpc/rtime.c: Likewise.
3391         * sunrpc/svc_udp.c: Likewise.
3392         * sunrpc/clnt_unix.c: Likewise.
3393         * sunrpc/svc_unix.c: Likewise.
3394         * sunrpc/bindrsvprt.c: Likewise.
3395         * sunrpc/svc_tcp.c: Likewise.
3396         * sunrpc/auth_none.c: Likewise.
3397         * sunrpc/clnt_raw.c: Likewise.
3398         * sunrpc/clnt_tcp.c: Likewise.
3399         * sunrpc/auth_unix.c: Likewise.
3400         * sunrpc/key_call.c: Likewise.
3401         * sunrpc/clnt_gen.c: Likewise.
3402         * sunrpc/pm_getmaps.c: Likewise.
3403         * sunrpc/clnt_simp.c: Likewise.
3404         * sunrpc/pmap_clnt.c: Likewise.
3405         * sunrpc/svc_run.c: Likewise.
3406         * sunrpc/svc.c: Likewise.
3407         * sunrpc/svc_simple.c: Likewise.
3408         * sunrpc/pm_getport.c: Likewise.
3409         * sunrpc/auth_des.c: Likewise.
3410         * sunrpc/svc_auth.c: Likewise.
3411         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
3412         __register_frame_info_table_bases, __deregister_frame_info_bases):
3413         Add INTDEF.
3414         (__register_frame_info_bases_internal,
3415         __register_frame_info_table_bases_internal,
3416         __deregister_frame_info_bases_internal): Add prototypes.
3417         (__register_frame_info, __register_frame): Use INTUSE in call to
3418         __register_frame_info_bases.
3419         (__register_frame_info_table): Similarly.
3420         (__deregister_frame_info, __deregister_frame): Similarly.
3421         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
3422         sendto as weak alias.
3423         * sysdeps/mach/hurd/sendto.c: Likewise.
3424         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
3425         recvfrom as weak alias.
3426         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3427         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
3428         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
3429         recvmsg as weak alias.
3430         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
3431         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
3432         sendmsg as weak alias.
3433         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
3434         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
3435         setsockopt, add setsockopt as weak alias.
3436         * sysdeps/mach/hurd/setsockopt.c: Likewise.
3437         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
3438         weak alias.
3439         * sysdeps/mach/hurd/bind.c: Likewise.
3440         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
3441         as weak alias.
3442         * sysdeps/mach/hurd/listen.c: Likewise.
3443         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
3444         getsockname, add getsockname as weak alias.
3445         * sysdeps/mach/hurd/getsockname.c: Likewise.
3446         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
3447         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
3448         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
3449         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
3450         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
3451         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
3452         Add aliases.
3453         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3454         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3455         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3456         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3457         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
3458         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
3459         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
3460         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
3461         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
3462         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
3463         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
3464         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
3466 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3468         * locale/programs/localedef.h (show_archive_content): Add verbose
3469         argument.
3470         * locale/programs/localedef.c (main): Adjust caller.
3471         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
3472         (nameentcmp, dataentcmp): New functions.
3473         (xstrcmp): Remove.
3474         (show_archive_content): Print verbose listing with --list-archive -v.
3476 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3478         * locale/programs/locarchive.c (open_archive): Take extra argument
3479         readonly.  If true open file with O_RDONLY and don't create the
3480         archive if it doesn't exist.
3481         Adapt all callers.
3482         (close_archive): Don't do anything if fd element is -1.
3483         * locale/programs/localedef.h (open_archive): Adjust prototype.
3484         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
3485         call.
3487         * malloc/malloc.c (__posix_memalign): Correct check for size of
3488         alignment value [PR libc/3444].
3490         * include/stdio.h: Remove references to old stdio implementation.
3492         * libio/Makefile (bug-ungetwc2-ENV): Define.
3494 2002-05-13  Roland McGrath  <roland@frob.com>
3496         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
3498         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
3500 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
3502         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3503         Allocate three, not two, more than LEN when appending '/.'.
3504         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
3505         if NAME ends with '/.' if it is shorter than 2 chars.
3507 2002-05-12  Roland McGrath  <roland@frob.com>
3509         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
3510         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
3512         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3513         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3515 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3517         * sysdeps/ia64/Makefile: Remove extra endif.
3518         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3520 2002-05-10  Andreas Schwab  <schwab@suse.de>
3522         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3524 2002-05-09  Andreas Jaeger  <aj@suse.de>
3526         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3527         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3528         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3530         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3531         * sysdeps/wordsize-64/glob.c: ...here.
3532         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3533         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3534         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3536 2002-05-08  Roland McGrath  <roland@frob.com>
3538         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3539         O_NOTRANS flag in "." lookup.
3541 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
3543         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3545 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
3547         * locale/duplocale.c (__duplocale): Update special members only
3548         when allocation succeeded.
3550 2002-05-03  Roland McGrath  <roland@frob.com>
3552         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3553         we can only build libc.so.0.3(GLIBC_2.2.6) now.
3555 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
3557         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3558         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3559         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3560         * sysdeps/ia64/ia64libgcc.S: New file.
3562 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
3564         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3566         * malloc/memusage.c: Distinguish anonymous mmap.
3568 2002-05-01  Roland McGrath  <roland@frob.com>
3570         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3571         and use INTDEF on it.
3572         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3574         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3576         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
3578 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
3580         * malloc/memusage.c: Add support for tracking mmap & friends.
3581         * malloc/memusage.sh: Implement -m/--mmap option.
3583 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3585         * locale/programs/locarchive.c (create_archive): Add archivefname
3586         argument, create fname from it.
3587         (enlarge_archive): Honour output_prefix.
3588         (open_archive): Likewise.
3590 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3592         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
3593         too many stpcpy macros.
3595 2002-04-26  Bruno Haible  <bruno@clisp.org>
3597         * locale/programs/ld-collate.c (collate_read): Cast first argument
3598         for "%.*s" to int.
3600 2002-04-26  Bruno Haible  <bruno@clisp.org>
3602         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
3603         __dcngettext_internal): New declarations.
3604         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
3605         attribute declarations.
3607 2002-04-30  Roland McGrath  <roland@frob.com>
3609         Removed old GNU stdio implementation; GNU libio is now the only option.
3610         * configure.in: Removed --enable-libio option and @stdio@ subst var.
3611         Define USE_IN_LIBIO unconditionally.
3612         * configure: Regenerated.
3613         * Makeconfig (stdio): Set to libio by default.
3614         * config.make.in (stdio): Variable removed.
3615         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
3616         * sysdeps/unix/sysv/linux/configure: Regenerated.
3617         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
3618         * sysdeps/mach/hurd/configure: Regenerated.
3619         * stdio/.cvsignore: File removed.
3620         * stdio/Makefile: File removed.
3621         * stdio/Versions: File removed.
3622         * stdio/__fbufsize.c: File removed.
3623         * stdio/__flbf.c: File removed.
3624         * stdio/__fpending.c: File removed.
3625         * stdio/__fpurge.c: File removed.
3626         * stdio/__freadable.c: File removed.
3627         * stdio/__freading.c: File removed.
3628         * stdio/__fsetlocking.c: File removed.
3629         * stdio/__fwritable.c: File removed.
3630         * stdio/__fwriting.c: File removed.
3631         * stdio/clearerr.c: File removed.
3632         * stdio/fclose.c: File removed.
3633         * stdio/fcloseall.c: File removed.
3634         * stdio/feof.c: File removed.
3635         * stdio/ferror.c: File removed.
3636         * stdio/fflush.c: File removed.
3637         * stdio/fgetc.c: File removed.
3638         * stdio/fgetpos.c: File removed.
3639         * stdio/fgets.c: File removed.
3640         * stdio/fileno.c: File removed.
3641         * stdio/fmemopen.c: File removed.
3642         * stdio/fopen.c: File removed.
3643         * stdio/fopncook.c: File removed.
3644         * stdio/fputc.c: File removed.
3645         * stdio/fputs.c: File removed.
3646         * stdio/fread.c: File removed.
3647         * stdio/freopen.c: File removed.
3648         * stdio/fseek.c: File removed.
3649         * stdio/fsetpos.c: File removed.
3650         * stdio/ftell.c: File removed.
3651         * stdio/fwrite.c: File removed.
3652         * stdio/getc.c: File removed.
3653         * stdio/getchar.c: File removed.
3654         * stdio/getdelim.c: File removed.
3655         * stdio/gets.c: File removed.
3656         * stdio/glue.c: File removed.
3657         * stdio/internals.c: File removed.
3658         * stdio/linewrap.c: File removed.
3659         * stdio/linewrap.h: File removed.
3660         * stdio/memstream.c: File removed.
3661         * stdio/newstream.c: File removed.
3662         * stdio/obstream.c: File removed.
3663         * stdio/putc.c: File removed.
3664         * stdio/putchar.c: File removed.
3665         * stdio/puts.c: File removed.
3666         * stdio/rewind.c: File removed.
3667         * stdio/setbuf.c: File removed.
3668         * stdio/setbuffer.c: File removed.
3669         * stdio/setlinebuf.c: File removed.
3670         * stdio/setvbuf.c: File removed.
3671         * stdio/stdio.h: File removed.
3672         * stdio/ungetc.c: File removed.
3673         * stdio/vasprintf.c: File removed.
3674         * stdio/vscanf.c: File removed.
3675         * stdio/vsnprintf.c: File removed.
3676         * stdio/vsprintf.c: File removed.
3677         * stdio/vsscanf.c: File removed.
3678         * sysdeps/generic/defs.c: File removed.
3679         * sysdeps/generic/fdopen.c: File removed.
3680         * sysdeps/generic/pipestream.c: File removed.
3681         * sysdeps/generic/stdio_init.c: File removed.
3682         * sysdeps/generic/sysd-stdio.c: File removed.
3683         * sysdeps/generic/vdprintf.c: File removed.
3684         * sysdeps/mach/hurd/defs.c: File removed.
3685         * sysdeps/mach/hurd/fdopen.c: File removed.
3686         * sysdeps/mach/hurd/pipestream.c: File removed.
3687         * sysdeps/mach/hurd/stdio_init.c: File removed.
3688         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3689         * sysdeps/mach/hurd/vdprintf.c: File removed.
3690         * sysdeps/posix/defs.c: File removed.
3691         * sysdeps/posix/fdopen.c: File removed.
3692         * sysdeps/posix/pipestream.c: File removed.
3693         * sysdeps/posix/stdio_init.c: File removed.
3694         * sysdeps/posix/vdprintf.c: File removed.
3695         * sysdeps/unix/pipestream.c: File removed.
3696         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3697         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
3698         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
3700 2002-04-29  Roland McGrath  <roland@frob.com>
3702         * include/libc-symbols.h (link_warning): Use `unused' attribute.
3704 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
3706         * sysdeps/generic/tls.h: Describe what must be defined.
3708         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
3709         glob_in_dir [PR libc/3385].
3710         * posix/globtest.sh: Add test case.
3712         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
3713         //TRANSLIT twice.
3715 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
3717         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
3718         _internal symbol handling.
3719         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3721 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
3723         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
3724         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3726 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
3728         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
3729         not _LIBC and RE_ENABLE_I18N.
3730         (build_range_exp): Implement for not _LIBC.
3731         (build_collating_symbol): Likewise.
3732         (parse_bracket_exp): Unify redundant error handlings.
3733         Don't erase mbcset for non matching list in multibyte envs.
3734         (build_word_op): Add '_' to matching list for \w operator.
3735         * posix/regex_internal.c (re_string_construct): Invoke
3736         build_upper_buffer in case of not RE_ENABLE_I18N.
3737         (re_string_reconstruct): Don't touch cur_state in case of not
3738         RE_ENABLE_I18N.
3739         * posix/regex_internal.h (attribute_hidden): New macro in case of
3740         not _LIBC.
3741         (re_charset_t): Define range_starts/ends in case of not _LIBC.
3742         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
3743         RE_ENABLE_I18N.
3744         (transit_state_mb): Likewise.
3745         (check_node_accept_bytes): Implement the code evaluating range
3746         expression in case of not _LIBC.
3747         (find_collation_sequence_value): Hide in case of not _LIBC.
3749 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
3751         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
3752         i386/semctl.c.
3753         (__old_semctl, __new_semctl): Only use va_arg if the argument will
3754         be used.
3756 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
3758         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
3760         * sysdeps/ia64/strncpy.S: Fix recovery code.
3761         Patch by David Mosberger <davidm@hpl.hp.com>.
3763 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3765         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
3766         GLIBC_2.2.6.
3768 2002-04-14  Bruno Haible  <bruno@clisp.org>
3770         * posix/regex.c (re_max_failures): Add back symbol for binary
3771         compatibility.
3773 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
3775         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
3776         of buffer building functions.
3777         * posix/regex_internal.c (re_string_allocate): New function.
3778         (re_string_realloc_buffers): New function.
3779         (re_string_skip_chars): New function.
3780         (re_string_reconstruct): New function.
3781         (re_string_construct): Adapt it to new interface of buffer building
3782         functions.
3783         (re_string_construct_common): Likewise.
3784         (build_wcs_buffer): Likewise.
3785         (build_wcs_upper_buffer): Likewise.
3786         (build_upper_buffer): Likewise.
3787         (re_string_translate_buffer): Likewise.
3788         (re_string_context_at): Adapt it to variable length buffers.
3789         * posix/regex_internal.h (re_string_t): Add new fields to handle
3790         variable length buffers.
3791         (re_match_context_t): Likewise.
3792         * posix/regexec.c (re_search_internal): Adapt it to new interface
3793         of re_string_t and re_match_context_t.
3794         (acquire_init_state_context): Likewise.
3795         (check_matching): Likewise.
3796         (check_halt_state_context): Likewise.
3797         (proceed_next_node): Likewise.
3798         (set_regs): Likewise.
3799         (sift_states_backward): Likewise.
3800         (clean_state_log_if_need): Likewise.
3801         (sift_states_iter_mb): Likewise.
3802         (sift_states_iter_bkref): Likewise.
3803         (add_epsilon_backreference): Likewise.
3804         (transit_state): Likewise.
3805         (transit_state_sb): Likewise.
3806         (transit_state_mb): Likewise.
3807         (transit_state_bkref): Likewise.
3808         (transit_state_bkref_loop): Likewise.
3809         (check_node_accept): Likewise.
3810         (match_ctx_init): Likewise.
3811         (extend_buffers): New function.
3813 2002-04-21  Bruno Haible  <bruno@clisp.org>
3815         * iconvdata/tst-table.sh: For the second check, use the truncated
3816         GB18030 charmap table, like for the first check.
3818 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3820         * elf/dl-load.c (open_verify): Correct __lseek parameters.
3821         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
3823 2002-04-23  H.J. Lu  <hjl@gnu.org>
3825         * include/math.h (isfinite): Fix a typo.
3827 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3829         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
3830         which is created by the test suite.
3832 2002-04-20  Bruno Haible  <bruno@clisp.org>
3834         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
3835         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
3837 2002-04-20  Bruno Haible  <bruno@clisp.org>
3839         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
3840         to avoid gcc warning.
3842 2002-04-20  Bruno Haible  <bruno@clisp.org>
3844         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
3845         of data->__statep->__count.
3847 2002-04-20  Bruno Haible  <bruno@clisp.org>
3849         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
3850         tag characters.
3851         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
3853 2002-04-24  Roland McGrath  <roland@frob.com>
3855         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
3856         use END macro instead of our own .end directive.
3857         Use `callsys' insn mnemonic instead of `call_pal'.
3859         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
3861         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
3862         macro; we need this for Hurd.
3864         Log entry was missing for 2002/03/24 commit of rev 1.8,
3865         goes with 2002-03-17 changes.
3866         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
3867         (sysdep_routines): Append ioperm here.
3868         (sysdep_headers): Append sys/io.h here.
3870 2002-04-23  Roland McGrath  <roland@frob.com>
3872         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
3873         * sysdeps/mach/hurd/sendto.c: Likewise.
3874         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
3875         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
3876         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
3878 2002-04-22  Roland McGrath  <roland@frob.com>
3880         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
3881         failure from i386_io_perm_* RPCs to ENOSYS.
3883 2002-04-22  Andreas Jaeger  <aj@suse.de>
3885         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
3887         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
3889         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
3890         register instead of destroying %rbx.
3892 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
3894         * string/string.h: Declare strerror_r also for XPG6.
3896 2002-04-19  Roland McGrath  <roland@frob.com>
3898         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
3900 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
3902         * Makefile: Add handling of xtests and xcheck targets.
3903         * MakeTAGS: Likewise.
3904         * Makeconfig: Likewise.
3905         * Makerules: Likewise.
3906         * Rules: Likewise.
3907         * manual/Makefile: Likewise.
3908         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
3909         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
3911 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
3913         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
3914         authnone_private_s.
3915         * sunrpc/auth_none.c: Include bits/libc-lock.h.
3916         Delete #ifdef _RPC_THREAD_SAFE_ block.
3917         (authnone_private): Make a struct, not a pointer to struct.
3918         (authnone_private_guard): New once-control variable.
3919         (authnone_create_once): New function, split out of
3920         authnone_create.  No need to allocate memory.
3921         (authnone_create): Just call authnone_create_once via
3922         __libc_once, then return &authnone_private->no_client.
3923         (authnone_marshal): Access private data via CLIENT argument,
3924         not authnone_private pointer.
3925         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
3926         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
3927         authnone_private_s.
3929 2002-04-12  H.J. Lu  <hjl@gnu.org>
3931         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
3933 2002-04-18  Bruno Haible  <bruno@clisp.org>
3935         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3936         FROM_DIRECTION): Make the FROM direction stateless.
3937         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3938         FROM_DIRECTION): Likewise.
3940 2002-04-15  Bruno Haible  <bruno@clisp.org>
3942         * iconvdata/JISX0213.TXT: New file.
3943         * iconvdata/jisx0213.h: New file.
3944         * iconvdata/jisx0213.c: New file.
3945         * iconvdata/euc-jisx0213.c: New file.
3946         * iconvdata/shift_jisx0213.c: New file.
3947         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
3948         * iconvdata/EUC-JISX0213.precomposed: New file.
3949         * iconvdata/SHIFT_JISX0213.precomposed: New file.
3950         * iconvdata/SHIFT_JISX0213.irreversible: New file.
3951         * iconvdata/tst-table-to.c (main): Make it work for encodings for
3952         which the "to" direction is stateful.
3953         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
3954         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
3955         SHIFT_JISX0213.
3956         (libJISX0213-routines): New variable.
3957         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
3958         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
3959         (LDFLAGS-libJISX0213.so): New variable.
3960         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
3961         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
3962         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
3964 2002-04-15  Bruno Haible  <bruno@clisp.org>
3966         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
3967         uint32_t.  Update to Unicode 3.2.
3968         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
3969         (BODY for TO_LOOP): Handle the ASCII range specially.
3970         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
3971         * iconvdata/testdata/BIG5HKSCS: Remove a character.
3972         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
3974 2002-04-15  Bruno Haible  <bruno@clisp.org>
3976         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
3977         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
3979 2002-04-15  Bruno Haible  <bruno@clisp.org>
3981         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
3982         (ucs4_to_cns11643): Update.
3983         * iconvdata/cns11643.c: Update to Unicode 3.2.
3984         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
3985         __cns11643_from_ucs4p2_tab): Regenerated.
3986         (__cns11643_from_ucs4p2c_tab): New array.
3987         * iconvdata/cvs11643l1.c: Update comments.
3988         * iconvdata/EUC-TW.irreversible: Remove two entries.
3990 2002-04-15  Bruno Haible  <bruno@clisp.org>
3992         * locale/C-translit.h.in: Update to Unicode 3.2.
3993         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
3994         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
3996 2002-04-15  Bruno Haible  <bruno@clisp.org>
3998         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
3999         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
4001 2002-04-15  Bruno Haible  <bruno@clisp.org>
4003         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
4004         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
4005         always one byte, not 0 bytes in some cases and 2 bytes in others.
4007         * iconvdata/tst-table-from.c (main): Correct the usage message.
4009 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
4011         * posix/regcomp.c (parse_expression): Fix incorrect error code.
4012         (parse_dup_op): Fix error handling like "a{}".
4013         (parse_bracket_exp): Add error handling.
4014         (fetch_number): Add error handling for "a{<very_large_number>}".
4016 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
4018         * posix/regcomp.c (parse_bracket_symbol): Add error handling
4019         in case that the symbol name is too long.
4020         (build_charclass): Handle [:lower:]/[:uppper:] correctly
4021         in case of REG_ICASE.
4023 2002-04-19  Andreas Jaeger  <aj@suse.de>
4025         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
4026         <hartvige@mips.com>.
4028 2002-04-15  H.J. Lu  <hjl@gnu.org>
4030         * include/math.h (__finitel_internal): Declare only if
4031         __NO_LONG_DOUBLE_MATH is not defined.
4032         (__isinfl_internal): Likewise.
4033         (__isnanl_internal): Likewise.
4035         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
4036         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4037         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4038         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4039         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4040         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4041         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4043         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
4044         __fcntl_internal.
4046         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
4047         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
4049 2002-04-15  Bruno Haible  <bruno@clisp.org>
4051         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
4052         (BODY for TO_LOOP): Likewise.
4053         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
4054         * iconvdata/tst-table.sh: Add support for encodings which contain
4055         precomposed Unicode characters, known to the iconv converter in both
4056         directions but not listed in the charmap.
4057         * iconvdata/IBM856.irreversible: New file.
4058         * iconvdata/IBM922.irreversible: New file.
4059         * iconvdata/IBM1132.irreversible: New file.
4060         * iconvdata/IBM1133.irreversible: New file.
4061         * iconvdata/IBM1160.irreversible: New file.
4062         * iconvdata/IBM1161.irreversible: New file.
4063         * iconvdata/IBM1163.irreversible: New file.
4064         * iconvdata/IBM1164.irreversible: New file.
4065         * iconvdata/ARMSCII-8.irreversible: New file.
4066         * iconvdata/TCVN5712-1.precomposed: New file.
4067         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
4068         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
4069         ARMSCII-8, TCVN5712-1.
4070         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
4071         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
4072         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
4073         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
4075 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4077         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
4078         for EVENING69.  Include offsets in TZ environment variable.
4080 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
4082         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
4083         avoid compiler warnings.
4085         * locale/programs/localedef.c (main): Always call
4086         construct_output_path.
4088         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
4090         * locale/programs/locfile.c (to_archive): New variable.  To collect
4091         data which has to be added to the locale archive.
4092         (write_all_categories): Take new third parameter with locale name.
4093         Unless no_archive flag set add new locale data to the archive
4094         (write_locale_data): Unless no-archive flag set store generated data
4095         in to_archive data structure instead of generation output file.
4096         Add new parameter with locale category index.
4097         * locale/programs/locfile.h: Add new parameters in declaractions of
4098         write_all_categories and write_locale_data.
4099         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
4100         --add-to-archive, and --delete-from-archive options.  Pass extra
4101         parameter to write_all_categories.
4102         * locale/programs/localedef.h: Add prototypes for functions in
4103         locarchive.c.
4104         * locale/locarchive.h: New file.
4105         * locale/programs/locarchive.c: New file.
4106         * locale/Makefile (distribute): Add programs/locarchive.c and
4107         locarchive.h.
4108         (localedef-modules): Add md5 and locarchive.
4109         Add vpath to crypt subdir for md5.c.
4111         * locale/programs/ld-address.c: Pass locale category ID as new second
4112         parameter to write_locale_data.
4113         * locale/programs/ld-collate.c: Likewise.
4114         * locale/programs/ld-ctype.c: Likewise.
4115         * locale/programs/ld-identification.c: Likewise.
4116         * locale/programs/ld-measurement.c: Likewise.
4117         * locale/programs/ld-messages.c: Likewise.
4118         * locale/programs/ld-monetary.c: Likewise.
4119         * locale/programs/ld-name.c: Likewise.
4120         * locale/programs/ld-numeric.c: Likewise.
4121         * locale/programs/ld-paper.c: Likewise.
4122         * locale/programs/ld-telephone.c: Likewise.
4123         * locale/programs/ld-time.c: Likewise.
4125         * locale/simple-hash.c: Move compute_hashval function from here...
4126         * locale/hashval.h: ...to here.  New file.
4127         * locale/simple-hash.h: Add prototype for compute_hashval.
4129         * include/libintl.h: Minor cleanups.
4131 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
4133         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
4135 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
4137         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
4139 2002-04-14  Bruno Haible  <bruno@clisp.org>
4141         * locale/programs/charmap.c (charmap_read): Don't access result if
4142         result == NULL.
4144 2002-02-17  Andreas Schwab  <schwab@suse.de>
4146         * elf/reldep7.c: New file.
4147         * elf/reldep7mod1.c: New file.
4148         * elf/reldep7mod2.c: New file.
4149         * elf/Makefile: Add rules to build and run reldep7.
4151 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
4153         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
4154         the end of the function.  Pass original flags to recursive call if
4155         add_dependency failed.
4156         (_dl_lookup_versioned_symbol): Likewise.
4158 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
4160         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
4161         early, but check whether it overflowed afterwards.
4162         * time/tst-mktime.c (main): Add new tests.
4164 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
4166         * debug/xtrace.sh: Fix program name in help message.
4167         Patch by Roger Luethi <rl@hellgate.ch>.
4169         * include/sys/stat.h: Add prototypes for __lxstat_internal and
4170         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
4171         NOT_IN_libc.
4172         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
4173         * sysdeps/mach/hurd/lxstat.c: Likewise.
4174         * sysdeps/unix/common/lxstat.c: Likewise.
4175         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
4176         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4177         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4178         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4179         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4180         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
4181         * sysdeps/mach/hurd/lxstat64.c: Likewise.
4182         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
4183         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4185         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
4186         prototypes.  Add __mbrlen and __mbrtowc macros.
4187         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
4188         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
4190         * include/unistd.h: Add prototype for __write_internal and add
4191         __libc_write macro is SHARED.
4192         * sysdeps/generic/write.c: Use INTDEF for __write.
4193         * sysdeps/mach/hurd/write.c: Likewise.
4194         * sysdeps/unix/sysv/aix/write.c: Likewise.
4195         * sysdeps/unix/syscalls.list: Add __libc_write alias.
4197         * assert/assert.c: Replace STR_N_SIZE with something usable in
4198         macro arguments.
4199         * assert/assert-perr.c: Likewise.
4201         * include/sys/socket.h: Declare __libc_sa_len_internal and define
4202         SA_LEN macro to use it if not NOT_IN_libc.
4203         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
4205         * include/fcntl.h: Declare __open_internal and define __open and
4206         __libc_open macros if not NOT_IN_libc.
4207         * sysdeps/generic/open.c: Use INTDEF for __open.
4208         * sysdeps/mach/hurd/open.c: Likewise.
4209         * sysdeps/unix/sysv/aix/open.c: Likewise.
4210         * sysdeps/unix/syscalls.list: Add __open_internal alias.
4212         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
4213         has correct number.
4215         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
4216         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
4217         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4218         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4220         * include/wctype.h: Declare __iswalpha_l_internal,
4221         __iswdigit_l_internal, __iswspace_l_internal,
4222         __iswxdigit_l_internal, and __iswctype_internal.  Define
4223         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
4224         __iswxdigit_l macros if not NOT_IN_libc.
4225         * wctype/iswctype.c: Use INTDEF for __iswctype.
4226         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
4228         * include/math.h: Declare __isinf_internal, __isinfl_internal,
4229         __isnan_internal, and __isnanl_internal.
4230         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
4231         __isnan, and __isnanl.
4232         * stdio-common/printf_size.c: Likewise.
4233         * sysdeps/generic/printf_fphex.c: Likewise.
4234         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
4235         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4236         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
4237         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
4238         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4239         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4240         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4241         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4242         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4243         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4244         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4245         * sysdeps/m68k/s_isinfl.c: Likewise.
4246         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
4247         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4249         * include/sys/time.h: Declare __gettimeofday_internal and define
4250         __gettimeofday macro if not NOT_IN_libc.
4251         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
4252         * sysdeps/mach/gettimeofday.c: Likewise.
4253         * sysdeps/posix/gettimeofday.c: Likewise.
4254         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
4255         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
4256         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4257         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
4259         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
4260         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
4261         Remove __lstat and __fstat inline functions.
4262         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
4263         * sysdeps/mach/hurd/fxstat.c: Likewise.
4264         * sysdeps/unix/fxstat.c: Likewise.
4265         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
4266         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4267         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4268         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4269         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4270         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
4271         * sysdeps/mach/hurd/fxstat64.c: Likewise.
4272         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
4273         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4275         * include/unistd.h: Declare __getpid_internal and define
4276         __getpid macro if not NOT_IN_libc.
4277         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
4278         * sysdeps/generic/getpid.c: Likewise.
4279         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
4280         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
4282         * include/unistd.h: Declare __getpgid_internal and define
4283         __getpgid macro if not NOT_IN_libc.
4284         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
4285         * sysdeps/mach/hurd/getpgid.c: Likewise.
4286         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
4287         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
4288         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4289         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
4291         * include/unistd.h: Declare __getpagesize_internal and define
4292         __getpagesize macro if not NOT_IN_libc.
4293         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
4294         __getpagesize.
4295         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
4296         * sysdeps/mach/getpagesize.c: Likewise.
4297         * sysdeps/posix/getpagesize.c: Likewise.
4298         * sysdeps/unix/getpagesize.c: Likewise.
4299         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4300         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4301         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
4302         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
4304 2002-04-13  Andreas Jaeger  <aj@suse.de>
4306         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
4307         as clobber to reduce register pressure.
4308         (__strpbrk_cg): Likewise.
4309         (__mempcpy_by4): Likewise.
4310         (__strstr_cg): Likewise.
4311         Add prototype for __memrchr.
4313 2002-04-13  Andreas Schwab  <schwab@suse.de>
4315         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
4316         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4317         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4319 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
4321         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
4322         check whether the caller prefers getting the most recent version of
4323         a symbol of the earliest version.
4324         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
4325         _dl_do_lookup to also take the new parameter and pass it on.
4326         Change 'explicit' parameter of _dl_lookup_symbol and
4327         _dl_lookup_versioned_symbol to flags.  Adjust tests.
4328         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4329         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
4330         _dl_lookup_versioned_symbol.
4331         * elf/dl-reloc.c: Likewise.
4332         * elf/dl-runtime.c: Likewise.
4333         * elf/dl-sym.c: Likewise.
4334         * sysdeps/mips/dl-machine.h: Likewise.
4336 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4338         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
4339         in a token.
4340         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
4342 2002-04-10  Andreas Jaeger  <aj@suse.de>
4344         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
4346         * include/argz.h: Remove extra char from last patch.
4348 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
4350         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
4351         * sysdeps/unix/sysv/aix/chown.c: Likewise.
4352         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
4353         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4354         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4355         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
4356         __chown_internal.
4357         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4359         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
4360         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
4361         * intl/ngettext.c: Likewise.
4363         * include/sys/socket.h: Declare __connect_internal and define
4364         __connect macro if not NOT_IN_libc.
4365         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
4366         * sysdeps/unix/sysv/aix/connect.c: Likewise.
4367         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
4369         * include/unistd.h: Declare __close_internal and define __close macro
4370         if not NOT_IN_libc.
4371         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
4372         WJUMP3): Add extra parenthesis to avoid expanding element names with
4373         macors like __close.
4374         * sysdeps/unix/syscalls.list: Add __close_internal alias.
4376         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
4377         if not NOT_IN_libc.
4378         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
4379         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
4380         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
4382         * include/unistd.h: Declare __fork_internal and define __fork macro
4383         if not NOT_IN_libc.
4384         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
4385         * sysdeps/unix/sysv/aix/fork.c: Likewise.
4386         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
4388         * include/stdio_ext.h: Declare __fsetlocking_internal and define
4389         __fsetlocking macro to use it if not NOT_IN_libc.
4390         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
4392         * libio/__fbufsize.c: Correct copyright.
4393         * libio/__flbf.c: Likewise.
4394         * libio/__fpending.c: Likewise.
4395         * libio/__fpurge.c: Likewise.
4396         * libio/__freadable.c: Likewise.
4397         * libio/__freading.c: Likewise.
4398         * libio/__fsetlocking.c: Likewise.
4399         * libio/__fwritable.c: Likewise.
4400         * libio/__fwriting.c: Likewise.
4402         * include/stdio.h: Declare __asprintf_internal and define __asprintf
4403         macro to use it if not NOT_IN_libc.
4404         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
4406         * include/mntent.h: Declare __setmntent_internal,
4407         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
4408         __getmntent_r, and __endmntent macros to use these functions if not
4409         NOT_IN_libc.
4410         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
4411         __endmntent.
4413         * include/math.h: Declare __finite_internal, __finitef_internal, and
4414         __finitel_internal.  Redefine isfinite macro if in libc or libm using
4415         these functions.
4416         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
4417         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
4418         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
4419         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
4420         * sysdeps/i386/fpu/s_finitef.S: Likewise.
4421         * sysdeps/i386/fpu/s_finitel.S: Likewise.
4422         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4423         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4424         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4425         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4427         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
4428         to use this function if not NOT_IN_libc.
4429         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
4430         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
4431         * sysdeps/mach/hurd/fcntl.c: Likewise.
4432         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4433         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4435         * include/argz.h: Declare __argz_count_internal and
4436         __argz_stringify_internal.
4437         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
4438         __argz_stringify.
4439         * string/argz-count.c: Use INTDEF for __argz_count.
4440         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
4442         * include/stdlib.h: Declare __cxa_atexit_internal and define
4443         __cxa_atexit macro if not NOT_IN_libc.
4444         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
4445         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
4447         * assert/assert.c: Use INTDEF for __assert_fail.
4448         * assert/__assert.c: Use INTUSE for call to __assert_fail.
4449         * include/assert.h: Declare __assert_fail_internal.
4451         * extra-lib.mk: Mark assignment to lib with override.
4453 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4455         * Makerules: Use cppflags-iterator.mk to add defines for all test
4456         source files.
4458 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4460         * elf/elf.h: Define R_SH_TLS_xxx macros.
4461         * elf/rtld.c: Remove an extra parenthesis.
4462         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
4463         TLS_GD macros.
4464         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
4465         * sysdeps/sh/dl-lookupcfg.h: New file.
4466         * sysdeps/sh/dl-tls.h: New file.
4467         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
4468         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
4469         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
4470         R_SH_TLS_TPOFF32 relocations.
4472 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4474         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4475         of NOT_IN_LIBC.
4476         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
4477         * include/stdlib.h: Likewise.
4479 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
4481         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
4482         instead of _RTLD_LOCAL.
4483         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
4484         * include/unistd.h: Likewise.
4485         * sysdeps/generic/ldsodefs.h: Likewise.
4487         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
4488         if in libc or ld.so.
4490 2002-04-08  Andreas Jaeger  <aj@suse.de>
4492         * elf/cache.c (print_entry): Support x86-64.
4494 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4496         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
4497         with one accessing the locale data structures directly.
4498         * stdio-common/printf-prs.c: Include localeinfo.h for new
4499         MB_CUR_MAX definition.
4501         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
4502         is the name of the source file without extension.
4503         * Makefile (distribute): Add cppflags-iterator.mk.
4504         * cppflags-iterator.mk: New file.
4505         * extra-lib.mk: For the sources of the library run
4506         cppflags-iterator.mk.
4508         * include/libintl.h: Declare __dcgettext_internal and
4509         _libc_intl_domainname_internal.  Define __dcgettext using these
4510         two symbols if used in libc itself.
4511         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
4512         _libc_intl_domainname_internal.
4513         * argp/argp-parse.c: Likewise.
4514         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4515         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4516         * intl/gettext.c: Likewise.
4517         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4518         alias.
4519         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4520         __dcgettext.
4521         * posix/regex_internal.c (gettext): Likewise.
4523 2002-04-08  Andreas Jaeger  <aj@suse.de>
4525         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4527         * sysdeps/x86_64/fpu/s_llrint.S: New.
4528         * sysdeps/x86_64/fpu/s_llrintf.S: New.
4529         * sysdeps/x86_64/fpu/s_llrintl.S: New.
4530         * sysdeps/x86_64/fpu/s_lrint.S: New.
4531         * sysdeps/x86_64/fpu/s_lrintf.S: New
4532         * sysdeps/x86_64/fpu/s_lrintl.S: New.
4534 2002-04-08  Roland McGrath  <roland@frob.com>
4536         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4537         widening __hurd_fail value.
4539 2002-04-07  Roland McGrath  <roland@frob.com>
4541         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4542         <mach/machine/alpha_instruction.h>.
4543         (_hurd_setup_sighandler): Take proper arguments for current decls.
4544         Update code to use _hurdsig_catch_fault.
4545         Use `callsys' instruction instead of `call_pal'.
4546         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4548         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4549         (ALIGN, at, AT, fp): New macros.
4551 2002-04-06  Roland McGrath  <roland@frob.com>
4553         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4555         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4556         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4558         * sysdeps/mach/hurd/bind.c: Use prototype definition.
4559         * sysdeps/mach/hurd/connect.c: Likewise.
4560         * sysdeps/mach/hurd/getsockopt.c: Likewise.
4561         * sysdeps/mach/hurd/setsockopt.c: Likewise.
4563         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4564         __msg_sig_post RPC.
4566         * hurd/catch-exc.c: Use integer_t instead of int.
4567         * hurd/hurdfault.c: Likewise.
4569         * sysdeps/mach/hurd/alpha/exc2signal.c
4570         (_hurd_exception2signal): Rewritten.
4571         * sysdeps/mach/hurd/alpha/longjmp-ts.c
4572         (_hurd_longjmp_thread_state): Rewritten.
4574 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
4576         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
4577         DB_LOOKUP_FCT prototype.
4578         * nss/getXXent_r.c: Likewise.
4579         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
4580         * inet/getaliasname_r.c: Likewise.
4581         * inet/getnetbyad_r.c: Likewise.
4582         * inet/getnetbynm_r.c: Likewise.
4583         * inet/getnetent_r.c: Likewise.
4584         * inet/getproto_r.c: Likewise.
4585         * inet/getprtent_r.c: Likewise.
4586         * inet/getprtname_r.c: Likewise.
4587         * inet/getrpcbyname_r.c: Likewise.
4588         * inet/getrpcbynumber_r.c: Likewise.
4589         * inet/getrpcent_r.c: Likewise.
4590         * inet/getservent_r.c: Likewise.
4591         * inet/getsrvbynm_r.c: Likewise.
4592         * inet/getsrvbypt_r.c: Likewise.
4593         * shadow/getspent_r.c: Likewise.
4594         * shadow/getspnam_r.c: Likewise.
4596         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
4598         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
4599         Use i686-friendly PIC code.
4600         * sysdeps/i386/elf/setjmp.S: Likewise.
4602         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
4604         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
4605         list.
4606         * elf/Versions: Remove it here.
4608 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
4610         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
4611         direction.  Reported by H . J . Lu <hjl@lucon.org>.
4613 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
4615         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
4616         test just before the test runs.
4617         * intl/tst-translit.sh: Likewise.
4618         * intl/tst-codeset.sh: Likewise.
4620         * timezone/zic.c: Update from tzcode2002c.
4621         * timezone/asia: Update from tzdata2002c.
4622         * timezone/backward: Likewise.
4623         * timezone/europe: Likewise.
4624         * timezone/northamerica: Likewise.
4625         * timezone/northamerica: Likewise.
4626         * timezone/northamerica: Likewise.
4627         * timezone/southamerica: Likewise.
4628         * timezone/zone.tab: Likewise.
4630 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
4632         * sysdeps/generic/brk.c (__curbrk): Declare.
4633         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
4634         * sysdeps/generic/dl-sbrk.c: Likewise.
4635         * sysdeps/unix/arm/dl-brk.S: New file.
4636         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
4637         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
4638         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
4639         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
4640         * sysdeps/unix/i386/dl-brk.S: New file.
4641         * sysdeps/unix/mips/dl-brk.S: New file.
4642         * sysdeps/unix/sparc/dl-brk.S: New file.
4643         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
4644         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
4645         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
4646         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
4648 2002-04-03  Andreas Schwab  <schwab@suse.de>
4650         * Makefile (headers): Add gnu/lib-names.h here instead of
4651         install-others.
4652         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
4653         installation rule.
4654         (install-headers): Add dependency on install-headers-nosubdir.
4655         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
4656         instead of install-others.
4657         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
4658         installation rule.
4660 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
4662         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
4663         Reported by Sam Roberts <sroberts@uniserve.com>.
4665 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
4667         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
4668         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
4669         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4670         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4672 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
4674         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
4675         (RTLD_START): Ditto.
4676         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
4677         dependency violation.
4679 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4681         * time/mktime.c (__mktime_internal): Move check for year < 70 below
4682         all variable declarations.
4684 2002-04-04  Andreas Schwab  <schwab@suse.de>
4686         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
4688 2002-04-04  Andreas Jaeger  <aj@suse.de>
4690         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
4691         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
4693         * sysdeps/x86_64/fpu/s_fabs.c: New file.
4694         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
4695         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
4697         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
4699         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
4701         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
4702         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
4704         * configure.in: Handle all mips entries the same.
4706         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
4707         * sysdeps/mips/mips3/*: Likewise.
4708         * sysdeps/mips/p40/bits/endian.h: Likewise.
4710 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
4712         * misc/dirname.c (dirname): Ignore trailing slashes at end of
4713         non-null result [PR libc/2600].
4715         * misc/tst-dirname.c: Add more tests.
4717 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
4719         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
4720         define a code_set_name provide one based on the filename.
4722         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
4724 2001-12-28  Andreas Jaeger  <aj@suse.de>
4726         * time/mktime.c (__mktime_internal): Check for year < 70
4727         [PR libc/2738].
4729 2002-04-03  Andreas Jaeger  <aj@suse.de>
4731         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
4732         shmat.
4733         Reported by Andi Kleen <ak@suse.de>.
4735 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
4737         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
4738         * sysdeps/generic/w_lgammaf.c: Likewise.
4739         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
4741         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
4742         Adjust for new output format of the backtrace functions.
4744         * misc/syslog.c (vsyslog): Only use cleanup handler if
4745         _LIBC_REENTRANT is defined [PR libc/2924].
4747         * libio/Makefile (tests): Add bug-ungetwc2.
4748         * libio/bug-ungetwc2.c: New file.
4750         * manual/install.texi: Typographical and grammatical cleanup.
4751         Patch by Dennis Grace <dgrace@us.ibm.com>.
4753         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
4754         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
4756         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
4757         always "&".  Adjust callers.
4758         Add "_" prefix to several generated definitions.
4759         Patch by paul@serice.net [PR libc/3158].
4761 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4763         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
4764         size of _dl_arm_cap_flags.
4765         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
4767         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
4768         Define as 8.
4770 2002-03-22  H.J. Lu  <hjl@gnu.org>
4772         * scripts/firstversions.awk: Check the first version.
4774 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4776         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
4777         dependencies must be stable to work correctly.
4778         Reported by martin.lubich@datacon.at.
4780         * libio/bug-ungetwc1.c: New file.
4781         * libio/Makefile (tests): Add bug-ungetwc1.
4783         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
4784         if stream was last used for writing.
4786         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
4787         number [PR libc/3111].
4789         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
4790         to ...
4791         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
4793 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
4795         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
4796         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
4797         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
4798         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
4799         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
4801 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
4803         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
4804         dynamic tags.
4806 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
4808         * sysdeps/i386/fpu/s_fabs.S: New file.
4809         * sysdeps/i386/fpu/s_fabsf.S: New file.
4810         * sysdeps/i386/fpu/s_fabsl.S: New file.
4811         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
4812         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
4813         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
4815 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4817         * rt/tst-shm.c (do_test): Add one more test for size of shared
4818         memory object.
4820 2002-03-29  Wolfram Gloger  <wg@malloc.de>
4822         * malloc/malloc.c: Add short description and prototypes for
4823         malloc_get_state, malloc_set_state and posix_memalign, for
4824         consistency and to avoid warnings with -Wstrict-prototypes.
4825         Reported by Andreas Jaeger <aj@suse.de>.
4827 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
4829         * po/gl.po: Update from translation team.
4831 2002-03-31  Roland McGrath  <roland@frob.com>
4833         * hurd/hurdselect.c (_hurd_select): Fix
4834         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
4835         Use a union rather than casts to compare mach_msg_type_t as int.
4837 2002-03-25  Roland McGrath  <roland@frob.com>
4839         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
4840         check off the end of NAME when it's shorter than 2 chars.
4841         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
4843 2002-03-17  Roland McGrath  <roland@frob.com>
4845         * sysdeps/mach/hurd/i386/sys/io.h: New file.
4846         * sysdeps/mach/hurd/i386/ioperm.c: New file.
4847         * sysdeps/mach/hurd/i386/Dist: Add them.
4848         * sysdeps/mach/hurd/i386/Versions
4849         (libc: GLIBC_2.2.6): New set, add ioperm.
4850         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
4851         (mach_interface_list): Check for mach_i386.defs.
4852         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
4853         * sysdeps/mach/configure: Regenerated.
4855 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
4857         * po/fr.po: Update from translation team.
4859 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4861         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
4862         getpriority from syscalls list.
4864 2002-03-28  Andreas Jaeger  <aj@suse.de>
4866         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
4867         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
4868         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
4869         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
4871 2002-03-27  Andreas Jaeger  <aj@suse.de>
4873         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4874         sigcontext): Follow further kernel change.
4876         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
4877         kernel change.
4879         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
4880         Change for struct sigcontext change.
4882         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4883         Follow changes in struct sigcontext.
4885         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
4886         sysycall, use wrapper instead.
4888 2002-03-26  Andreas Jaeger  <aj@suse.de>
4890         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
4891         read and write accesses as detailed as possible.
4892         (__memcpy_by2): Likewise.
4893         (__memcpy_g): Likewise.
4894         (memmove): Likewise.
4895         (memcmp): Likewise.
4896         (__memset_ccn_by4): Likewise.
4897         (__memset_ccn_by2): Likewise.
4898         (__memset_gcn_by4): Likewise.
4899         (__memset_gcn_by2): Likewise.
4900         (memchr): Likewise.
4901         (__memrchr): Likewise.
4902         (rawmemchr): Likewise.
4903         (__strlen_g): Likewise.
4904         (__strcpy_g): Likewise.
4905         (__mempcpy_by4): Likewise.
4906         (__mempcpy_by2): Likewise.
4907         (__mempcpy_byn): Likewise.
4908         (__stpcpy_g): Likewise.
4909         (__strncpy_by4): Likewise.
4910         (__strncpy_by2): Likewise.
4911         (__strncpy_byn): Likewise.
4912         (__strncpy_gg): Likewise.
4913         (__strcat_c): Likewise.
4914         (__strcat_g): Likewise.
4915         (__strncat_g): Likewise.
4916         (__strcmp_gg): Likewise.
4917         (__strncmp_g): Likewise.
4918         (__strchr_c): Likewise.
4919         (__strchr_g): Likewise.
4920         (__strchrnul_c): Likewise.
4921         (__strchrnul_g): Likewise.
4922         (__strrchr_c): Likewise.
4923         (__strrchr_g): Likewise.
4924         (__strrchr_c): Likewise.
4925         (__strrchr_g): Likewise.
4926         (__strcspn_c1): Likewise.
4927         (__strcspn_cg): Likewise.
4928         (__strcspn_g): Likewise.
4929         (__strcspn_g): Likewise.
4930         (__strspn_c1): Likewise.
4931         (__strspn_cg): Likewise.
4932         (__strspn_g): Likewise.
4933         (__strspn_g): Likewise.
4934         (__strpbrk_cg): Likewise.
4935         (__strpbrk_g): Likewise.
4936         (__strstr_cg): Likewise.
4937         (__strstr_g): Likewise.
4939         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
4940         Michal Ludvig <mludvig@suse.cz>.
4942         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
4943         compatibilty, adjust for kernel changes.
4945         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
4946         sigcontext): Adjust for kernel changes.
4948 2002-03-25  Andreas Jaeger  <aj@suse.de>
4950         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
4951         little endian.
4952         Reported by Artur Zaprzala <zybi@talex.com.pl>.
4954 2002-03-24  Andreas Jaeger  <aj@suse.de>
4956         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
4958         * stdio-common/tst-fdopen.c (main): Remove unused variable.
4960         * iconv/tst-iconv3.c (main): Use correct printf strings.
4962 2002-03-18  Roland McGrath  <roland@frob.com>
4964         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
4965         (CMGROUP_MAX): New macro.
4967 2002-03-23  Roland McGrath  <roland@frob.com>
4969         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
4970         * sysdeps/posix/shm_unlink.c: Likewise.
4972 2002-03-22  Roland McGrath  <roland@frob.com>
4974         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
4975         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
4976         under --enable-libio.
4977         * sysdeps/mach/hurd/configure: Regenerated.
4979 2002-03-23  Roland McGrath  <roland@frob.com>
4981         * sysdeps/mach/hurd/i386/Makefile
4982         (sysdep_routines, shared-only-routines): Don't add framestate,
4983         reverting 2001-10-02 change.
4984         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4985         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4986         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4987         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4988         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4989         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4990         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4991         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4992         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
4993         Do it here instead, only if [$(unwind-find-fde) = yes].
4995 2002-03-23  Andreas Jaeger  <aj@suse.de>
4997         * signal/signal.h: Fix typo. Patch by Steve Kemp
4998         <skx@tardis.ed.ac.uk>.
5000 2002-03-22  Andreas Jaeger  <aj@suse.de>
5002         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
5003         getresuid.
5005         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5006         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
5007         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5008         user_fpregs_struct): Rename fwd.
5010         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5011         Follow sigcontext changes.
5013 2002-03-22  Andreas Jaeger  <aj@suse.de>
5015         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
5016         changes for NaNs on MIPS.
5017         Patch by Hartvig Ekner <hartvige@mips.com>.
5019 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
5021         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
5022         Use realloc if too large.
5023         (addgrbyid): Likewise.
5024         * nscd/hstcache.c (addhstbyname): Likewise.
5025         (addhstbyaddr): Likewise.
5026         (addhstbynamev6): Likewise.
5027         (addhstbyaddrv6): Likewise.
5028         * nscd/pwdcache.c (addpwbyname): Likewise.
5029         (addpwbyuid): Likewise.
5031 2002-03-21  Andreas Jaeger  <aj@suse.de>
5033         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5034         _fpstate): Add separate struct for x86-64.
5036         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5037         user_fpregs_struct): Change member names to follow kernel.
5039 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
5041         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
5042         Correctly close the UDP connection right away [PR libc/3120].
5044 2002-03-20  Andreas Jaeger  <aj@suse.de>
5046         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5047         user_fpregs_struct): Fix for changed kernel struct.
5048         (struct user_regs_struct): Likewise.
5049         (struct user): Likewise.
5050         Add 32-bit x86 compatibility.
5052         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
5054 2002-03-19  Andreas Jaeger  <aj@suse.de>
5056         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
5058 2002-03-18  Andreas Jaeger  <aj@suse.de>
5060         * iconvdata/Makefile: Only run tests when shared libs are
5061         available.
5063 2002-03-17  Andreas Jaeger  <aj@suse.de>
5065         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
5067         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
5069         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
5070         bits.
5072         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
5073         (CAUSE_SHIFT): New.
5074         Patch by Hartvig Ekner <hartvige@mips.com>.
5076         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
5077         * sysdeps/generic/unwind-pe.h: Likewise.
5079         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
5080         type to _IO_setb.
5082         * libio/stdio.c (AL2): Define variant when visibility attribute is
5083         not supported.
5085         * include/libc-symbols.h (_INTVARDEF): Define variant when
5086         visibility attribute is not supported.
5088 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
5090         * po/fr.po: Update from translation team.
5092 2002-02-25  Bruno Haible  <bruno@clisp.org>
5094         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
5096 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5098         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
5099         buffers if _IO_file_attach failed.
5101         * libio/fileops.c (_IO_file_open): Close file descriptor if
5102         _IO_SEEKOFF call failed.
5104 2002-03-15  H.J. Lu  <hjl@gnu.org>
5105             Ulrich Drepper  <drepper@redhat.com>
5107         * configure.in: Check for availability of
5108         init_array/fini_array/preinit_array handling in binutils.
5109         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
5110         * config.make.in (have-initfini-array): New variable.
5112 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5114         * stdio-common/tst-printf.c (main): Comment out one test which
5115         checked the compiler's ability to fold floating-point constants
5116         but not really printf.
5117         (rfg3): Make s const.
5118         * stdio-common/tst-printf.sh: Adjust for removed test.
5120         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
5121         internal function.  Adjust for internal_function calling convention.
5122         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
5123         as internal_function.
5125         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
5126         hidden.
5128         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
5129         declaration and definition.
5130         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
5131         declaration.
5132         * nss/getXXent_r.c: Likewise.
5133         * nss/nsswitch.h (db_lookup_function): Add internal_function to
5134         definition.
5136         * include/time.h: Declare __localtime_r as hidden.
5138         * include/aliases.h: Declare __getaliasent_r as hidden.
5139         * include/grp.h: Declare __getgrent_r as hidden.
5140         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
5141         __getservent_r, and __getprotoent_r as hidden.
5142         * include/pwd.h: Declare __getpwent_r as hidden.
5143         * include/shadow.h: Declare __getspent_r as hidden.
5144         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
5146         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
5147         and __gconv_transliterate as hidden.
5148         Add internal_function to __gconv_get_path declaration.
5149         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
5150         definition.  Add attribute_hidden to __gconv_read_conf definition.
5152 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
5154         * elf/rtld.c: Declare _environ as hidden.
5155         * sysdeps/generic/dl-environ.c: Likewise.
5156         * sysdeps/generic/dl-sysdep.c: Likewise.
5158         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
5159         _dl_mcount_internal as hidden.
5161         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
5162         * sysdeps/generic/dl-brk.c: New file.
5163         * sysdeps/generic/dl-sbrk.c: New file.
5164         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
5165         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
5167         * elf/dl-minimal.c (malloc): Declare _end as hidden.
5168         (__errno_location): New function.  Declare errno as hidden.
5169         * elf/rtld.c (_dl_argc): Define as hidden.
5170         (_dl_skip_args): Define as hidden.
5171         (_begin, _end): Declare as hidden.
5172         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
5173         * sysdeps/generic/entry.h (_start): Declare as hidden.
5174         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
5175         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
5176         _dl_runtime_resolve and _dl_runtime_profile as hidden.
5177         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
5179 2002-03-14  Roland McGrath  <roland@frob.com>
5181         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
5183         * Makeconfig (%.v.i, %.v): New implicit rules.
5184         (preprocess-versions): Variable removed.
5185         ($(common-objpfx)shlib-versions.v.i): New target giving just the
5186         shlib-versions input files as dependencies.
5187         ($(common-objpfx)soversions.i): Depend on that instead of the input
5188         files.  Use it as input instead of using a pipeline.
5189         (postclean-generated): Append soversions.i, shlib-versions.v, and
5190         shlib-versions.v.i here.
5191         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
5192         the Versions.def input files as dependencies.
5193         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
5194         ($(common-objpfx)Versions.all): Depend on that instead of the input
5195         files.  Use it as input instead of using a pipeline.
5196         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
5197         (postclean-generated): Append those .v and .v.i files here.
5199 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5201         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
5202         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
5203         Remove.
5205 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5207         * sysdeps/generic/mp_clz_tab.c: New file.
5208         * sysdeps/i386/mp_clz_tab.c: New file.
5209         * sysdeps/hppa/mp_clz_tab.c: New file.
5210         * sysdeps/powerpc/mp_clz_tab.c: New file.
5211         * stdlib/Makefile (aux): Revert last patch.
5212         * math/Makefile (gmp-objs): Likewise.
5214 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5216         * time/strftime.c: Comment fixes for references to obsolescent
5217         standards, In most cases the simplest fix is to remove the
5218         confusing comments.  Cross-referencing all the standards properly
5219         is a bit of a pain, and it should be enough to put that info in
5220         the documentation as I did in my recent time.texi patch.
5222 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5224         * manual/time.texi (Formatting Calendar Time):
5225         ISO C99 also specifies the E and O modifiers.
5226         %P is a GNU extension, and is not in ISO C99.
5227         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
5228         %T is also in ISO C99.
5229         The RFC 822 example is not valid in arbitrary locales.
5230         Reword the POSIX.2 wording slightly, to make it a bit clearer
5231         that POSIX.2 formats are also supported by later POSIX versions.
5232         If a format was introduced in ISO C99 it is also required by
5233         POSIX.1-2001.
5235 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5237         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
5238         _sys_nerr_internal with INTVARDEF2.
5239         * include/libc-symbols.h (INTVARDEF2): New macro.
5240         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
5241         (_sys_nerr_internal): Library.
5243         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
5244         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
5246         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
5248 2002-03-13  Wolfram Gloger  <wg@malloc.de>
5250         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
5252 2002-03-02  Andreas Schwab  <schwab@suse.de>
5254         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
5255         'h' flag and positional arg.
5256         * stdio-common/tst-printf.c (rfg3): New function to test
5257         positional arguments.
5258         (main): Fix some warnings.
5260 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5262         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
5263         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5265 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5267         * grp/initgroups.c (__nss_group_data): Declare as hidden.
5269         * include/locale.h (_nl_C_locobj): Declare as hidden.
5271         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
5272         * time/strptime.c (_nl_C_LC_TIME): Likewise.
5274         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
5276         * include/sys/gmon.h: Declare _gmonparam as hidden.
5278         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
5279         (__ctype32_wctrans): Likewise.
5280         (__ctype32_width): Likewise.
5282         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
5283         use of __ttyname.
5285         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
5286         Define as hidden.
5287         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
5288         hidden.  Change all users of these variables.
5290         * posix/regex_internal.h (__re_error_msgid): Renamed from
5291         re_error_msgid.  Declare as hidden.
5292         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
5293         hidden.
5295         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
5296         (__printf_function_table): Likewise.
5297         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
5298         hidden.
5299         (__printf_function_table): Likewise.
5301         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
5302         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
5304         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
5305         * nss/nsswitch.c: Declare _nss_*_database as hidden.
5307         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
5308         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
5310 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
5312         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
5313         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5314         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5315         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5316         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5317         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5318         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5319         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5320         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
5321         _nl_C_LC_CTYPE_width: Declare as hidden.
5322         * include/locale.h: Declare _nl_locale_file_list.
5323         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
5324         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
5325         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
5326         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
5327         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
5328         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
5329         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
5330         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
5331         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
5332         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
5333         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
5334         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
5335         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5336         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5337         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5338         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5339         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5340         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5341         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5342         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
5343         _nl_C_LC_CTYPE_width, and as hidden.
5344         * locale/findlocale.c: Declare _nl_C as hidden.
5345         * locale/newlocale.c: Likewise.
5346         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
5347         _nl_locale_file_list.
5348         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
5349         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
5350         Define _nl_C_locobj as hidden.
5352         * malloc/mtrace.c (_mtrace_file): Define as hidden.
5353         (_mtrace_line): Likewise.
5355         * include/time.h: Declare __mon_yday as hidden.
5356         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
5358         * libio/libioP.h: Declare __libio_codecvt as hidden.
5359         * libio/fileops.c: Declare __libio_translit as hidden.
5360         * libio/iofwide.c: Define __libio_translit as hidden.
5362         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
5363         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
5364         * login/getutline_r.c: Likewise.
5365         * login/utmpname.c: Likewise.
5367         * login/utmp-private.h: Declare __libc_utmp_file_functions,
5368         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
5369         __libc_utmp_file_name as hidden.
5371         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
5372         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
5373         * locale/freelocale.c: Likewise.
5374         * locale/lc-time.c: Likewise.
5376         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
5377         (__libc_ptyname2): Likewise.
5378         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
5379         hidden.
5380         (__libc_ptyname2): Likewise.
5382         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
5383         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
5384         * sysdeps/generic/init-first.c: Likewise.
5385         * sysdeps/i386/init-first.c: Likewise.
5386         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5387         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5388         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5389         * sysdeps/sh/init-first.c: Likewise.
5390         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5391         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5393         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
5394         (_itowa_upper_digits): Likewise.
5396         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
5397         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
5398         as hidden.
5400         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
5401         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
5402         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
5403         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
5405         * gmon/gmon.c (__bb_head): Define as hidden.
5406         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
5408         * argp/argp-parse.c (_argp_hang): Define as static.
5410         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
5411         handling in latest compilers.
5413         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
5414         define alias.
5415         * libio/fileops.c (_IO_file_jumps): Likewise.
5416         * libio/stdfiles.c (_IO_list_all): Likewise.
5417         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
5419         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
5420         include/malloc.h.
5421         * include/malloc.h: Add __libc_malloc_initialized declaration
5422         here.  Mark variable hidden.
5423         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
5425         * elf/dl-open.c (__libc_argc): Declare as hidden.
5426         (__libc_argv): Likewise.
5427         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
5428         (__libc_argv): Likewise.
5429         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
5430         __libc_argv as hidden.
5431         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5432         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5433         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5434         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5436         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
5437         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
5438         * stdlib/erand48.c: Likewise.
5439         * stdlib/jrand48.c: Likewise.
5440         * stdlib/lcong48.c: Likewise.
5441         * stdlib/lrand48.c: Likewise.
5442         * stdlib/mrand48.c: Likewise.
5443         * stdlib/nrand48.c: Likewise.
5444         * stdlib/seed48.c: Likewise.
5445         * stdlib/srand48.c: Likewise.
5447         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
5448         (_itoa_lower_digits_internal): New declaration.
5449         (_itoa_upper_digits_internal): New declaration.
5450         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
5451         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
5452         (_itoa_upper_digits_internal): New declaration.
5453         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
5454         _itoa_lower_digits.
5455         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
5456         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
5458         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
5459         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5461         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
5462         (_itowa_lower_digits): Likewise.
5463         (_itowa_upper_digits): Likewise.
5464         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
5465         (_itowa_upper_digits): Likewise.
5467         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
5468         not already defined.
5469         (GERMANIC_PLURAL): Declare as hidden.
5471         * posix/getopt.c (__getopt_initialized): Declare as hidden.
5472         (attribute_hidden): Define as empty macro if not already defined.
5474         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
5475         (__gconv_max_path_elem_len): Likewise.
5476         (__gconv_path_envvar): Likewise.
5478         * math/Makefile (gmp-objs): Remove mp_clz_tab.
5479         * stdlib/Makefile (aux): Remove mp_clz_tab.
5480         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
5482         * stdlib/exit.h (__exit_funcs): Declare as hidden.
5484         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
5486         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
5487         _nl_category_names, _nl_category_name_sizes, _nl_current,
5488         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
5490         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
5491         (_nl_current_default_domain): Likewise
5492         (_nl_state_lock): Likewise.
5493         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
5494         (_nl_current_default_domain): Likewise
5495         (_nl_state_lock): Likewise.
5496         * intl/bindtextdom.c (_nl_state_lock): Likewise.
5498         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
5499         (_fpioconst_pow10): Likewise.
5501         * include/time.h (_tmbuf): Add attribute_hidden.
5503         * time/tzset.c (tzstring_list): Define as static.
5505         * include/time.h: Add attribute_hidden to __tzname_cur_max and
5506         __use_tzfile declaration.
5508         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
5509         and __wcsmbs_last_locale declaration.
5511 2002-02-25  Paul Eggert  <eggert@twinsun.com>
5513         * timezone/Makefile (tzbases): Move systemv from here...
5514         (tzlinks): to here, since the entries in systemv were all changed
5515         from Zone to Link lines in tz-2001a.  Bug reported (and patch
5516         tested) by Peter Breitenlohner.
5518 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
5520         * time/tst-posixtz.c (tests): Add new tests.
5521         (main): Test whether tzset() sets daylight properly.
5523 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5525         * time/tzset.c (tz_compute): Move __daylight, __tzname and
5526         __tzname_cur_max setting...
5527         (tzset_internal): ...here.
5529 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5531         * time/tzset.c (compute_change): Don't return any value.
5532         (tz_compute): Likewise.  Don't handle southern hemisphere here.
5533         (__tz_convert): But here.
5535 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5537         * manual/examples/mkfsock.c: Include <string.h> as well.
5538         Patch by Alain De Carolis <alaind@wseurope.com>.
5540 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
5542         * posix/regexec.c (re_match): Fix incorrect register sizes.
5543         (re_search): Likewise.
5545 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5547         * posix/regcomp.c (regfree): Remove a disused condition.
5548         * posix/regex_internal.c (re_acquire_state): Likewise.
5549         (re_acquire_state_context): Likewise.
5550         (register_state): Remove a redundant malloc invocation.
5551         * posix/regex_internal.h: (re_state_table_entry): Simplify
5552         the structure.
5554 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5556         * posix/regcomp.c (regcomp): Add __builtin_expect to error
5557         handling conditions.
5558         (regerror): Likewise.
5559         (regfree): Likewise.
5560         (re_compile_internal): Likewise.
5561         (init_dfa): Likewise.
5562         (init_word_char): Likewise.
5563         (create_initial_state): Likewise.
5564         (analyze): Likewise.
5565         (analyze_tree): Likewise.
5566         (duplicate_node): Likewise.
5567         (calc_eclosure): Likewise.
5568         (calc_eclosure_iter): Likewise.
5569         (parse): Likewise.
5570         (parse_reg_exp): Likewise.
5571         (parse_branch): Likewise.
5572         (parse_expression): Likewise.
5573         (parse_subexp): Likewise.
5574         (parse_dup_op): Likewise.
5575         (parse_bracket_exp): Likewise.
5576         (build_equiv_class): Likewise.
5577         (build_charclass): Likewise.
5578         (build_word_op): Likewise.
5579         (fetch_number): Likewise.
5580         (create_tree): Likewise.
5581         (duplicate_tree): Likewise.
5582         * posix/regex.c (BE): New macro.
5583         * posix/regexec.c (re_match): Add __builtin_expect to error
5584         handling conditions.
5585         (re_match_2): Likewise.
5586         (re_search): Likewise.
5587         (re_search_internal): Likewise.
5588         (check_matching): Likewise.
5589         (proceed_next_node): Likewise.
5590         (set_regs): Likewise.
5591         (sift_states_backward): Likewise.
5592         (add_epsilon_backreference): Likewise.
5593         (transit_state): Likewise.
5594         (transit_state_sb): Likewise.
5595         (transit_state_mb): Likewise.
5596         (transit_state_bkref): Likewise.
5597         (transit_state_bkref_loop): Likewise.
5598         (build_trtable): Likewise.
5599         (group_nodes_into_DFAstates): Likewise.
5600         (match_ctx_init): Likewise.
5601         (match_ctx_add_entry): Likewise.
5602         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
5603         to error handling conditions.
5604         (re_string_construct_toupper): Likewise.
5605         (build_wcs_buffer): Likewise.
5606         (build_wcs_upper_buffer): Likewise.
5607         (build_upper_buffer): Likewise.
5608         (re_string_translate_buffer): Likewise.
5609         (re_node_set_alloc): Likewise.
5610         (re_node_set_init_1): Likewise.
5611         (re_node_set_init_2): Likewise.
5612         (re_node_set_init_copy): Likewise.
5613         (re_node_set_intersect): Likewise.
5614         (re_node_set_init_union): Likewise.
5615         (re_node_set_merge): Likewise.
5616         (re_node_set_insert): Likewise.
5617         (re_dfa_add_node): Likewise.
5618         (re_acquire_state): Likewise.
5619         (re_acquire_state_context): Likewise.
5620         (create_new_state_common): Likewise.
5621         (register_state): Likewise.
5622         (create_ci_new_state): Likewise.
5623         (create_cd_new_state): Likewise.
5624         (re_string_context_at): Remove redundant condition.
5626 2002-01-16  Roger Sayle  <roger@eyesopen.com>
5628         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
5630         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
5632 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
5634         * sysdeps/i386/elf/configure.in: Fix comment.
5636         * sysdeps/sparc/sparc64/configure.in: New.
5637         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
5638         if .dynamic comes before .got.
5639         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
5641         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
5642         HP_TIMING_ACCUM): Fix typos.
5644 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5646         * string/strfry.c: Add some more randomness to the seed.
5647         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
5649         * po/es.po: Update from translation team.
5650         * po/fr.po: Likewise.
5652         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
5654         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
5655         when determining type of format.
5656         Patch by James Antill <james@anqd.org> [PR libc/2787].
5658 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
5660         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
5662 2002-03-11  Roland McGrath  <roland@frob.com>
5664         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
5666         * Versions.def (libc): Add GLIBC_2.2.6.
5667         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
5668         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
5669         __errno_location instead of __hurd_errno_location, and don't inline it.
5670         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5671         * hurd/errno.c: New file.
5672         * hurd/Makefile (routines): Add errno.
5674 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5676         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
5677         ridiculously large widths and precisions [PR libc/3026].
5679 2002-03-11  Andreas Jaeger  <aj@suse.de>
5681         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
5682         support.
5683         Patch by Susanne Oberhauser <froh@SuSE.de>.
5685 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5687         * inet/rexec.c (ahostbuf): Define as static.
5689         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
5690         (__ctype32_wctrans): Likewise.
5691         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
5692         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
5693         (__ctype32_wctrans): Likewise.
5694         (__ctype32_width): Likewise.
5696         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
5697         They were never exported anyway.
5699         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
5700         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
5701         exported.
5702         * include/sys/gmon.h: Declare _gmonparam.
5704         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
5705         symbols for getdents64.  They were never exported.
5707 2002-03-09  Roland McGrath  <roland@frob.com>
5709         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
5710         Reported by Jon Arney <jarney1@cox.net>.
5712 2002-02-23  Roland McGrath  <roland@frob.com>
5714         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
5715         declaration.
5716         (__hurd_errno_location): Function removed.
5718 2002-03-06  Andreas Jaeger  <aj@suse.de>
5720         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
5721         32-bit.
5723 2002-03-04  Andreas Jaeger  <aj@suse.de>
5725         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
5727         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
5728         x86-64.
5730         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
5732         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
5734         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
5736         * sysdeps/x86_64/bits/setjmp.h: New.
5738         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
5740         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
5742         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
5743         for x86.
5744         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
5745         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
5747 2002-02-28  Bo Thorsen  <bo@suse.de>
5749         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
5750         version.
5752 2002-03-03  Andreas Jaeger  <aj@suse.de>
5754         * sysdeps/x86_64/bits/wordsize.h: New file.
5756         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
5757         * elf/tst-tlsmod1.c: Likewise.
5759         * posix/regcomp.c: Get regex.h from include dir for internal
5760         prototypes.
5762         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
5763         to libc-internal.h and include it.
5764         * include/libc-internal.h: Add __init_misc.
5766         * misc/init-misc.c: Include libc-internal.h for prototypes.
5768         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
5770         * misc/error.c [_LIBC]: Include libioP.h for prototype of
5771         _IO_putc_internal.
5773 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
5775         * posix/regcomp.c: Compatibility changes to allow using the code
5776         outside glibc.
5778 2002-02-28  Hartvig Ekner <hartvige@mips.com>
5780         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
5781         compiled non-PIC.
5783 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
5785         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
5786         of .str elements in the returned data structure.
5788         * elf/elf.h: Add Alpha TLS bits.
5790 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5792         * sysdeps/unix/sysv/linux/nice.c: New file.
5794 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
5796         * elf/Makefile (dl-routines): Add dl-origin.
5797         (elide-routines.os): Add dl-origin.
5798         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
5799         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
5800         _dl_debug_state.
5801         * include/libc-symbols.c: Define attribute_hidden depending on
5802         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
5804         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
5805         * elf/dl-load.c: Likewise.
5806         * elf/rtld.c: Likewise.
5807         * include/unistd.h: Declare __libc_enable_secure_internal.
5808         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
5809         Use INTUSE with __libc_enable_secure.
5810         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5812         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
5813         * elf/dl-error.c: Likewise,
5814         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
5816         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
5817         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
5818         function definition.  Use INTDEF with _dl_get_origin.
5819         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
5821         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
5822         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
5824         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
5825         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
5826         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
5828         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
5829         * elf/dl-deps.c: Likewise.
5830         * elf/dl-error.c: Likewise.
5831         * elf/dl-fini.c: Likewise.
5832         * elf/dl-init.c: Likewise.
5833         * elf/dl-load.c: Likewise.
5834         * elf/dl-lookup.c: Likewise.
5835         * elf/dl-reloc.c: Likewise.
5836         * elf/dl-version.c: Likewise.
5837         * elf/do-lookup.h: Likewise.
5838         * sysdeps/arm/dl-machine.h: Likewise.
5839         * sysdeps/cris/dl-machine.h: Likewise.
5840         * sysdeps/hppa/dl-machine.h: Likewise.
5841         * sysdeps/i386/dl-machine.h: Likewise.
5842         * sysdeps/m68k/dl-machine.h: Likewise.
5843         * sysdeps/powerpc/dl-machine.h: Likewise.
5844         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5845         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5846         * sysdeps/sh/dl-machine.h: Likewise.
5847         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
5848         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
5849         * sysdeps/x86_64/dl-machine.h: Likewise.
5850         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
5851         _dl_argv[0].  Use INTUSE with _dl_argv.
5852         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
5853         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
5855 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5857         * elf/rtld.c (_rtld_global): Remove .protected.
5858         (_rtld_local): Strong alias to _rtld_global.
5859         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
5860         only .os object.
5861         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
5862         _rtld_local instead of _rtld_global.
5863         (_rtld_local): Add hidden extern, possibly in .sdata section.
5864         * configure.in: Add tests for visibility attribute and .sdata.
5865         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
5866         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
5867         * sysdeps/arm/dl-machine.h: Likewise.
5868         * sysdeps/generic/ldsodefs.h: Likewise.
5869         * sysdeps/hppa/dl-machine.h: Likewise.
5870         * sysdeps/cris/dl-machine.h: Likewise.
5871         * sysdeps/i386/dl-machine.h: Likewise.
5872         * sysdeps/ia64/dl-machine.h: Likewise.
5873         * sysdeps/m68k/dl-machine.h: Likewise.
5874         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5875         * sysdeps/mips/dl-machine.h: Likewise.
5876         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5877         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5878         * sysdeps/sh/dl-machine.h: Likewise.
5879         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5880         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5881         * sysdeps/x86_64/dl-machine.h: Likewise.
5883 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
5885         * login/login.c (login): Always initialize ut_line field
5886         [PR libc/2991].
5888 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5890         * sysdeps/i386/Makefile (sysdep_routines): Add
5891         divdi3 in csu dir.
5892         (shared-only-routines): Likewise.
5893         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
5894         (shared-only-routines): Likewise.
5895         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
5896         (shared-only-routines): Likewise.
5897         * sysdeps/wordsize-32/divdi3.c: New file.
5899 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
5901         * locale/iso-4217.def: Remove obsolete currencies for countries
5902         with Euro.
5904 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
5906         * posix/regcomp.c (regcomp): Remove a redundant condition.
5907         (init_word_char): Add a check on malloc failure.
5908         (create_initial_state): Likewise.
5909         (duplicate_node): Likewise.
5910         (calc_eclosure): Likewise.
5911         (calc_eclosure_iter): Likewise.
5912         (parse_expression): Likewise.
5913         (parse_bracket_exp): Remove unnecessary malloc invocations.
5914         (build_equiv_class): Likewise.
5915         (build_charclass): Likewise.
5916         * posix/regex_internal.c (re_node_set_intersect): Add a check
5917         on malloc failure.
5918         (re_node_set_add_intersect): Likewise.
5919         (re_node_set_merge): Likewise.
5920         (re_acquire_state): Likewise.
5921         (re_acquire_state_context): Likewise.
5922         (create_newstate_common): Likewise.
5923         (register_state): Likewise.
5924         (create_ci_newstate): Likewise.
5925         (create_cd_newstate): Likewise.
5926         * posix/regex_internal.h: Fix prototypes of re_acquire_state
5927         and re_acquire_state_context.
5928         * posix/regexec.c (regexec): Suit it to the error handling of
5929         re_search_internal.
5930         (re_match): Likewise.
5931         (re_search): Likewise.
5932         (re_search_internal): Add a check on malloc failure.
5933         (acquire_init_state_context): Likewise.
5934         (check_matching): Likewise.
5935         (proceed_next_node): Likewise.
5936         (set_regs): Likewise.
5937         (sift_states_backward): Likewise.
5938         (sift_states_iter_bkref): Likewise.
5939         (add_epsilon_backreference): Likewise.
5940         (transit_state): Likewise.
5941         (transit_state_sb): Likewise.
5942         (transit_state_mb): Likewise.
5943         (transit_state_bkref_loop): Likewise.
5944         (build_trtable): Likewise.
5945         (group_nodes_into_DFAstates): Likewise.
5946         (match_ctx_init): Likewise.
5947         (match_ctx_add_entry): Likewise.
5949 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
5951         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
5952         l_libname if profiling is enabled [PR libc/2916].
5954         * sysdeps/ia64/dl-tls.h: New file.
5956 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
5958         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
5959         Work around an Alpha gas bug.
5961 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
5963         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
5964         uses read to load the catalog.
5965         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
5967 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
5969         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
5970         regex_internal.c, and regex_internal.h.
5971         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
5972         * posix/regex.c: Complete rewrite.
5973         * posix/regexec.c: New file.
5974         * posix/regcomp.c: New file.
5975         * posix/regex_internal.c: New file.
5976         * posix/regex_internal.h: New file.
5977         * posix/regex.h (RE_ICASE): New macro.
5978         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
5980         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
5981         ungetwc.  It's a macro.
5982         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
5983         implementation.
5984         Reported by Jason Merrill <jason@redhat.com>.
5986 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5988         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
5989         position to fp->_offset if it is set.
5990         * stdio-common/Makefile (tests): Add tst-fdopen.
5991         * stdio-common/tst-fdopen.c: New test.
5993 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5995         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
5996         * stdio-common/tst-ungetc.c (main): Add another test.
5998 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
6000         * assert/assert-perr.c: Use INTUSE to reference functions and variables
6001         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
6002         aliases.  Add prototypes for the new aliases.
6003         * assert/assert.c: Likewise.
6004         * include/libc-symbols.h: Likewise.
6005         * include/stdio.h: Likewise.
6006         * include/netinet/in.h: Likewise.
6007         * include/rpc/auth.h: Likewise.
6008         * include/rpc/auth_unix.h: Likewise.
6009         * include/rpc/key_prot.h: Likewise.
6010         * include/rpc/pmap_prot.h: Likewise.
6011         * include/rpc/pmap_rmt.h: Likewise.
6012         * include/rpc/rpc_msg.h: Likewise.
6013         * include/rpc/xdr.h: Likewise.
6014         * inet/gethstbyad_r.c: Likewise.
6015         * inet/gethstbynm2_r.c: Likewise.
6016         * inet/gethstbynm_r.c: Likewise.
6017         * inet/gethstent_r.c: Likewise.
6018         * inet/in6_addr.c: Likewise.
6019         * libio/__fpurge.c: Likewise.
6020         * libio/filedoalloc.c: Likewise.
6021         * libio/fileops.c: Likewise.
6022         * libio/ftello.c: Likewise.
6023         * libio/ftello64.c: Likewise.
6024         * libio/genops.c: Likewise.
6025         * libio/iofclose.c: Likewise.
6026         * libio/iofdopen.c: Likewise.
6027         * libio/iofflush.c: Likewise.
6028         * libio/iofflush_u.c: Likewise.
6029         * libio/iofgetpos.c: Likewise.
6030         * libio/iofgetpos64.c: Likewise.
6031         * libio/iofgets.c: Likewise.
6032         * libio/iofgets_u.c: Likewise.
6033         * libio/iofopen.c: Likewise.
6034         * libio/iofopncook.c: Likewise.
6035         * libio/iofputs.c: Likewise.
6036         * libio/iofread.c: Likewise.
6037         * libio/iofread_u.c: Likewise.
6038         * libio/iofsetpos.c: Likewise.
6039         * libio/iofsetpos64.c: Likewise.
6040         * libio/ioftell.c: Likewise.
6041         * libio/iofwrite.c: Likewise.
6042         * libio/iogetline.c: Likewise.
6043         * libio/iogets.c: Likewise.
6044         * libio/iogetwline.c: Likewise.
6045         * libio/iolibio.h: Likewise.
6046         * libio/iopadn.c: Likewise.
6047         * libio/iopopen.c: Likewise.
6048         * libio/ioseekoff.c: Likewise.
6049         * libio/ioseekpos.c: Likewise.
6050         * libio/iosetbuffer.c: Likewise.
6051         * libio/iosetvbuf.c: Likewise.
6052         * libio/ioungetc.c: Likewise.
6053         * libio/ioungetwc.c: Likewise.
6054         * libio/iovdprintf.c: Likewise.
6055         * libio/iovsprintf.c: Likewise.
6056         * libio/iovsscanf.c: Likewise.
6057         * libio/libioP.h: Likewise.
6058         * libio/memstream.c: Likewise.
6059         * libio/obprintf.c: Likewise.
6060         * libio/oldfileops.c: Likewise.
6061         * libio/oldiofclose.c: Likewise.
6062         * libio/oldiofdopen.c: Likewise.
6063         * libio/oldiofgetpos.c: Likewise.
6064         * libio/oldiofgetpos64.c: Likewise.
6065         * libio/oldiofopen.c: Likewise.
6066         * libio/oldiofsetpos.c: Likewise.
6067         * libio/oldiofsetpos64.c: Likewise.
6068         * libio/oldiopopen.c: Likewise.
6069         * libio/oldstdfiles.c: Likewise.
6070         * libio/putc.c: Likewise.
6071         * libio/setbuf.c: Likewise.
6072         * libio/setlinebuf.c: Likewise.
6073         * libio/stdfiles.c: Likewise.
6074         * libio/stdio.c: Likewise.
6075         * libio/strops.c: Likewise.
6076         * libio/vasprintf.c: Likewise.
6077         * libio/vscanf.c: Likewise.
6078         * libio/vsnprintf.c: Likewise.
6079         * libio/vswprintf.c: Likewise.
6080         * libio/wfiledoalloc.c: Likewise.
6081         * libio/wfileops.c: Likewise.
6082         * libio/wgenops.c: Likewise.
6083         * libio/wstrops.c: Likewise.
6084         * malloc/mtrace.c: Likewise.
6085         * misc/error.c: Likewise.
6086         * misc/syslog.c: Likewise.
6087         * nss/getXXbyYY_r.c: Likewise.
6088         * nss/getXXent_r.c: Likewise.
6089         * nss/hosts-lookup.c: Likewise.
6090         * stdio-common/getw.c
6091         * stdio-common/printf-prs.c: Likewise.
6092         * stdio-common/printf_fp.c: Likewise.
6093         * stdio-common/printf_size.c: Likewise.
6094         * stdio-common/putw.c: Likewise.
6095         * stdio-common/scanf.c: Likewise.
6096         * stdio-common/sprintf.c: Likewise.
6097         * stdio-common/tmpfile64.c: Likewise.
6098         * stdio-common/vfprintf.c: Likewise.
6099         * stdio-common/vfscanf.c: Likewise.
6100         * stdlib/strfmon.c: Likewise.
6101         * sunrpc/auth_des.c: Likewise.
6102         * sunrpc/auth_none.c: Likewise.
6103         * sunrpc/auth_unix.c: Likewise.
6104         * sunrpc/authdes_prot.c: Likewise.
6105         * sunrpc/authuxprot.c: Likewise.
6106         * sunrpc/clnt_perr.c: Likewise.
6107         * sunrpc/clnt_raw.c: Likewise.
6108         * sunrpc/clnt_tcp.c: Likewise.
6109         * sunrpc/clnt_udp.c: Likewise.
6110         * sunrpc/clnt_unix.c: Likewise.
6111         * sunrpc/key_call.c: Likewise.
6112         * sunrpc/key_prot.c: Likewise.
6113         * sunrpc/openchild.c: Likewise.
6114         * sunrpc/pm_getmaps.c: Likewise.
6115         * sunrpc/pm_getport.c: Likewise.
6116         * sunrpc/pmap_clnt.c: Likewise.
6117         * sunrpc/pmap_prot.c: Likewise.
6118         * sunrpc/pmap_prot2.c: Likewise.
6119         * sunrpc/pmap_rmt.c: Likewise.
6120         * sunrpc/rpc_cmsg.c: Likewise.
6121         * sunrpc/rpc_prot.c: Likewise.
6122         * sunrpc/svc_authux.c: Likewise.
6123         * sunrpc/svc_raw.c: Likewise.
6124         * sunrpc/svc_simple.c: Likewise.
6125         * sunrpc/svc_tcp.c: Likewise.
6126         * sunrpc/svc_udp.c: Likewise.
6127         * sunrpc/svc_unix.c: Likewise.
6128         * sunrpc/xdr.c: Likewise.
6129         * sunrpc/xdr_array.c: Likewise.
6130         * sunrpc/xdr_mem.c: Likewise.
6131         * sunrpc/xdr_rec.c: Likewise.
6132         * sunrpc/xdr_ref.c: Likewise.
6133         * sunrpc/xdr_stdio.c: Likewise.
6134         * sysdeps/generic/_strerror.c: Likewise.
6135         * sysdeps/generic/printf_fphex.c: Likewise.
6136         * sysdeps/generic/tmpfile.c: Likewise.
6137         * sysdeps/gnu/errlist.awk: Likewise.
6138         * sysdeps/gnu/errlist.c: Likewise.
6140         * libio/Makefile (routines): Remove iosprint.
6141         * libio/iosprintf.c: Removed
6144 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
6146         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
6147         non_dynamic_init and exported now.
6148         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
6149         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
6150         !SHARED.
6151         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6152         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6153         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6155 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
6157         * elf/dl-close.c (free_slotinfo): Check for end of list and return
6158         true in this case.
6160         * locale/iso-639.def: Add language codes for Walloon.
6162         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
6163         total number of relocations performed.
6165         * elf/sprof.c (load_profdata): If do_test provide information as
6166         to why loading failed.
6167         * elf/dl-profile.c (_dl_start_profile): Initialize all of
6168         hist_hdr.dimen.
6170         * csu/set-init.c: Moved to...
6171         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
6172         * csu/Makefile: Don't compile set-init.
6173         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
6174         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
6175         to __libc_init.
6176         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6177         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6178         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
6179         __libc_init.
6180         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
6181         __libc_subinit.
6183 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
6185         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
6186         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
6187         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
6188         (_dl_deallocate_tls): New function.
6189         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
6190         _dl_deallocate_tls.
6192 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6194         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
6195         * stdio-common/tst-fseek.c (main): Add test for this.
6197 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
6199         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
6201 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
6203         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
6204         pointer before dereferencing.
6206 2002-02-18  Roland McGrath  <roland@frob.com>
6208         * sysdeps/mach/hurd/times.c: Fix typo in last change.
6210         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
6211         Use task_policy in place of task_priority.
6213         * sysdeps/generic/bits/mman.h
6214         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
6215         * sysdeps/mach/msync.c: New file.
6217         * sysdeps/mach/powerpc/syscall.S: New file.
6219         * mach/msg.c [MACH_MSG_OVERWRITE]
6220         (__mach_msg_trap, __mach_msg_overwrite): New functions.
6221         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
6223         * sysdeps/mach/configure.in: Check for clock.defs to put into
6224         mach_interface_list.
6225         * sysdeps/mach/configure: Regenerated.
6227         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
6228         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
6229         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
6230         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
6231         (mach-shortcuts): Add device_read_overwrite_request,
6232         device_read_overwrite, vm_read_overwrite, thread_switch.
6234         * configure.in (base_machine): Set to $machine by default.
6235         * configure: Regenerated.
6237         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
6238         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
6239         * sysdeps/mach/configure: Regenerated.
6240         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
6242         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
6244         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
6246         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
6247         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
6249 2002-02-17  Roland McGrath  <roland@frob.com>
6251         * sysdeps/mach/hurd/times.c
6252         [NO_CREATION_TIME] (startup_time): New static variable.
6253         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
6254         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
6255         creation_time from task_basic_info.
6256         (__times): Use __gettimeofday instead of __host_get_time.
6258         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
6259         Use untyped Mach IPC message format.
6261         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
6263         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
6264         _S_catch_exception_raise_state_identity,
6265         _hurdsig_fault_catch_exception_raise_state,
6266         _hurdsig_fault_catch_exception_raise_state_identity.
6268         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
6270         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
6271         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
6273         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
6274         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
6276         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
6277         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
6278         them as no-op macros.
6279         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
6280         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
6282         * sysdeps/powerpc/dl-machine.h
6283         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
6285         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
6286         Use untyped Mach IPC message format.
6288         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
6289         Handle untyped Mach IPC message formats.
6291         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
6292         Expect different argument conventions when this is defined.
6293         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
6294         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
6295         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
6296         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
6297         for OSF Mach variant.
6298         (faulted): Use mig_reply_error_t for REPLY.
6299         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
6300         in __thread_set_exception_ports call.
6301         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
6302         __mach_port_set_attributes in place of __mach_port_set_qlimit.
6304         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
6305         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
6306         on Darwin, which includes bogons.
6308         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
6309         variable LOADBASE so it's not declared when it's not used.
6311 2002-02-16  Roland McGrath  <roland@frob.com>
6313         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
6314         to use BI.creation_time.
6316         * mach/Machrules (MIG): Add -x c to CPP value passed down.
6318         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
6319         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
6320         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
6321         host_page_size instead of vm_statistics.
6323         * sysdeps/mach/Makefile (mach-before-compile): Don't include
6324         mach_interface.h here, since not all variants use that name.
6326         * sysdeps/mach/configure.in: Add some checks for Mach headers
6327         to ensure a sane installation.
6328         (mach_interface_list): Define this variable by checking for .defs
6329         files found in various variants.
6330         * configure.in (mach_interface_list): AC_SUBST this.
6331         * config.make.in (mach-interface-list): New substituted variable.
6332         * mach/Makefile (user-interfaces): Define this using the value
6333         of $(mach-interface-list) instead of mach, mach4.
6334         Updated other references to mach_interface to use it as well.
6336         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
6338         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
6339         mig_reply_error_t for OSF Mach variant.
6341         * mach/Makefile (routines): Remove bootprivport.
6342         * mach/bootprivport.c: File removed.  It has never been used.
6344         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
6345         Grok the OSF flavor of message format.
6346         (mach_msg_destroy_port): For MAKE_SEND and
6347         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
6348         no-senders notification.
6350 2002-02-06  Roland McGrath  <roland@frob.com>
6352         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
6353         to here if 2.0 compatibility enabled ...
6354         (libc: GLIBC_2.1.3): ... from here.
6356 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
6358         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
6359         generation counter.
6360         * elf/dl-close.c (_dl_close): Likewise.
6362 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
6364         * elf/Makefile: Add rules to build and run tst-tls8.
6365         * elf/tst-tls8.c: New file.
6366         * elf/tst-tlsmod4.c: New file.
6368         * stdlib/test-a64l.c (tests): Add more test cases.
6370         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
6371         Reported by Walter Harms <WHarms@bfs.de>.
6373 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
6375         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
6376         definitions for struct sigcontext.
6377         Suggested by David Mosberger-Tang.
6379 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6381         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
6382         for removing reference of module in slotinfo list.
6383         (_dl_close): Use remove_slotinfo.
6384         * sysdeps/generic/dl-tls.c: General pretty printing.
6385         (oom): Define only if SHARED.
6386         (_dl_next_tls_modid): Correct starting point for the case we assume
6387         there is a gap.  Add missing instruction grouping (doh!).  Correct
6388         tests for reaching maximum index.
6389         * elf/Makefile: Add rules to build and run tst-tls7.
6390         * elf/tst-tls7.c: New file.
6391         * elf/tst-tlsmod3.c: New file.
6393         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
6394         USE_TLS.
6395         * elf/tst-tlsmod2.c: Likewise.
6397         * elf/dl-close.c (_dl_close): When closing an object using TLS
6398         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
6399         true.  Increment dl_tls_generation only if we closed any TLS-using
6400         object.
6401         * elf/tst-tls6.c: New file.
6402         * elf/Makefile: Add rules to build and run tst-tls6.
6404         * po/da.po: Update from translation team.
6406         * locale/categories.def: Fix typo [PR libc/2948].
6407         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
6408         [PR libc/2949].
6409         * locale/iso-4217.def: Update from official version [PR libc/2950].
6410         * glibcbug.in: Honor TMPDIR [PR libc/2951].
6411         * locale/programs/ld-collate.c (collate_finish): Bail out with a
6412         message if input is too confusion instead of using assert.
6413         (collate_read): Don't crash on unknown symbol [PR libc/2952].
6414         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
6416         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
6417         * elf/tst-tls2.c: Likewise.
6418         * elf/tst-tls3.c: Likewise.
6420 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6422         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
6424 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6426         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
6427         if this is really necessary.
6429         * elf/dl-close.c (_dl_close): Implement freeing entries in the
6430         slotinfo array.
6431         (free_mem): Free memory for the slotinfo array if possible.
6433 2002-02-12  Andreas Schwab  <schwab@suse.de>
6435         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
6437 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
6439         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
6440         TLS_DTV_UNALLOCATE.
6441         (oom): New function.
6442         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
6443         (_dl_determine_tlsoffset): Likewise.
6444         (_dl_allocate_tls): Likewise.
6445         (__TLS_GET_ADDR): Define if not already defined.
6446         (_dl_tls_symaddr): New function.
6447         (allocate_and_init): New function.
6448         (__tls_get_addr): Actually implement handling of generation counter
6449         and deferred allocation.
6450         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
6451         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6452         _dl_tls_generation.
6453         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
6454         Declare _dl_tls_symaddr.
6455         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
6456         SHARED.
6457         * include/link.h (struct link_map):  Remove l_tls_nextimage and
6458         l_tls_previmage.
6459         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
6460         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
6461         (_dl_vsym): Likewise.
6462         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
6463         layout.
6464         (dl_main): Allow PT_TLS be present for empty segment.  Remove
6465         nextimage list handling.  Instead add all modules using TLS to
6466         dl_tls_dtv_slotinfo_list.
6467         * elf/dl-open.c (dl_open_worker): After successfully loading all
6468         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
6469         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
6470         empty segment don't do anything.  Remove handling of initimage list.
6471         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
6472         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
6473         * elf/dl-minimal.c: Define __libc_memalign.
6474         * elf/dl-support.c: Remove _dl_initimage_list.  Add
6475         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6476         _dl_tls_generation.
6477         * include/stdlib.h: Declare __libc_memalign.
6479         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
6480         * elf/tst-tls4.c: New file.
6481         * elf/tst-tls5.c: New file.
6482         * elf/tst-tlsmod2.c: New file.
6484         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
6486         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
6488         * elf/tst-tls1.c: Use test-skeleton.c.
6489         * elf/tst-tls2.c: Likewise.
6490         * elf/tst-tls3.c: Likewise.
6492         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
6494 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
6496         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
6498 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
6500         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
6502         * elf/tst-tls3.c: New file.
6503         * elf/tst-tlsmod1.c: New file.
6504         * elf/Makefile: Add rules to build and run tst-tls3.
6506         * sysdeps/i386/dl-machine.h: Include <tls.h>.
6507         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
6508         TLS relocations.
6510         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
6512         * po/fr.po: Update from translation team.
6514         * elf/tls-macros.h: Add alternative macros for use in PIC.
6516         * elf/dl-lookup.c: Include <tls.h>.
6517         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6519         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6520         required by passing pointer to last element of the list.
6522         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6523         l_tls_initimage to a place where it actually is performed.
6525         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6526         after globfree() calls.
6528         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6529         (openaux): Pass open_mode as new last argument to _dl_map_object.
6530         (_dl_map_object_deps): Add new argument open_mode.  Initialize
6531         open_mode element of args variable with it.
6532         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6533         _dl_map_object_deps.
6534         * elf/rtld.c (dl_main): Add zero as last parameter to
6535         _dl_map_object_deps call.
6536         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6537         * elf/nodlopen2.c: New file.
6538         * elf/nodlopenmod2.c: New file.
6539         * elf/Makefile: Add rules to build and run nodlopen2.
6541         * elf/tst-tls1.c: Move TLS helper macros to...
6542         * elf/tls-macros.h: ...here.  New file.
6543         * elf/tst-tls2.c: New file.
6544         * elf/Makefile (tests): Add tst-tls2.
6545         (distribute): Add tls-macros.h.
6547         * po/sv.po: Update from translation team.
6549         * elf/tst-tls1.c (main): Add complete set of tests.  Split
6550         architecture specific definitions from the actual test code.
6552         * po/tr.po: Update from translation team.
6554 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
6556         * elf/Makefile (tests): Add tst-tls1.
6557         * elf/tst-tls1.c: New file.
6559         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6560         alignment of TCB for now.
6562         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6563         initialization image for the application itself.
6565         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6566         loop to initialize TLS block.
6568 2002-02-08  Richard Henderson  <rth@redhat.com>
6570         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6571         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6573         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6575 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
6577         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
6579 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
6581         * po/ca.po: Update from translation team.
6582         * po/sk.po: Likewise.
6584         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
6585         (dl_main): Move dtv/static TLS handling before relocation.
6586         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
6587         TLS_INIT_TP to allocate and install the dtv/static TLS block.
6588         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
6589         so far uses TLS initialize GL(dl_tls_static_size) and
6590         GL(dl_tls_static_align) to account for the TCB.
6591         (_dl_allocate_tls): New function.
6592         * sysdeps/generic/ldsodefs.h (rtld_global): Add
6593         _dl_initial_dtv_malloced.
6595         * configure.in: Test for __builtin_memset more realistically.
6597         * csu/version.c (banner): If TLS support is available say so.
6599 2002-02-04  H.J. Lu  <hjl@gnu.org>
6601         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
6602         __attribute_used__.
6603         (__dl_runtime_resolve): Likewise.
6605         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
6606         declaration.
6608 2001-11-15  H.J. Lu  <hjl@gnu.org>
6610         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
6611         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
6613         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
6615 2002-02-07  H.J. Lu  <hjl@gnu.org>
6617         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
6618         ".set noreorder".
6619         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
6620         Likewise.
6622 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6624         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
6626         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
6627         ___tls_get_addr_internal.
6628         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
6630         * po/ko.po: Update from translation team.
6632 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
6634         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
6635         attribute, change __pad{1,2} type to unsigned int.
6636         (struct stat64): Remove packed attribute.
6638 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6640         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
6642 2002-02-07  Andreas Schwab  <schwab@suse.de>
6644         * configure.in: Fix check for -zcombreloc.
6646 2002-02-06  H.J. Lu  <hjl@gnu.org>
6648         * config.h.in (HAVE_BUILTIN_MEMSET): New.
6649         * configure.in: Check if __builtin_memset really works.
6650         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
6651         __GNUC_PREREQ (2, 96) before using __builtin_memset.
6653 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
6655         * io/bug-ftw3.c (main): Don't try the test if root.
6657 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6659         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
6660         constraints.
6661         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
6662         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
6663         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
6664         Likewise.
6665         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
6666         a weak alias for __clone.
6667         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
6668         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
6669         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
6670         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
6671         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
6672         a weak alias for __mmap64.
6674 2002-02-05  H.J. Lu  <hjl@gnu.org>
6676         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
6677         (atomic_add): Likewise.
6678         (compare_and_swap): Likewise.
6679         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
6681 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6683         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
6685         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
6686         alignment of the TCB and store total size and alignment of static
6687         TLS block in _dl_tls_static_size and _dl_tls_static_align.
6688         tls_index is a typedef.
6689         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
6690         _dl_tls_static_align.
6691         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
6692         * elf/dl-support.c: Define _dl_tls_static_size and
6693         _dl_tls_static_align.
6695 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6697         * configure.in: Add --without-tls option.
6698         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
6699         --without-tls is given.
6701         * sysdeps/generic/dl-tls.c: Include <tls.h>.
6703         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
6705 2002-02-06  Roland McGrath  <roland@frob.com>
6707         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
6708         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
6710         * scripts/versions.awk: Improve error message for missing version.
6711         Each version inherits from the last one only if they have the same
6712         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
6713         but not GLIBC_x and FOO_y.
6715         * scripts/firstversions.awk: Handle libraries that don't have each
6716         particular version named in the third column of shlib-versions.
6718         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
6720 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6722         * Versions.def [ld]: Add GLIBC_2.3.
6723         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
6724         * elf/Makefile (dl-routines): Add dl-tls.
6725         (distribute): Add dl-tls.h.
6726         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6727         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6728         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
6729         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
6730         along with the other info in the link map.  Change queueing of init
6731         images for double linked list.  Use _dl_next_tls_modid to compute
6732         l_tls_modid.
6733         * elf/rtld.c (_dl_start_final): Store alignment requirement
6734         along with the other info in rtld map and executable map.
6735         (dl_main): Add ld.so to the init image list if necessary.  Compute
6736         final module ID with _dl_next_tls_modid.
6737         * include/link.h (struct link_map): Add l_tls_previmage and
6738         l_tls_align.
6739         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
6740         * sysdeps/i386/elf/Versions: New file.
6741         * sysdeps/generic/dl-tls.c: New file.
6742         * sysdeps/generic/dl-tls.h: New file.
6743         * sysdeps/i386/dl-tls.h: New file.
6745 2002-02-06  Roland McGrath  <roland@frob.com>
6747         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
6748         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
6750 2002-01-05  Roland McGrath  <roland@frob.com>
6752         * sysdeps/mach/configure.in: New file.
6753         * sysdeps/mach/configure: New generated file.
6755         * mach/Makefile (user-interfaces): Remove default_pager_helper.
6756         It has never been used by anything.
6758 2002-02-06  H.J. Lu  <hjl@gnu.org>
6760         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
6761         is included.
6763 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6765         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
6766         attribute((packed)) to counter stupid people misusing gcc options.
6767         (struct stat64): Likewise.
6769 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6771         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
6772         the variables which are used as booleans.
6774 2002-02-06  Andreas Jaeger  <aj@suse.de>
6776         * include/libc-symbols.h (INTUSE): Renamed from INT.
6777         * elf/dl-deps.c: Change users.
6778         * sysdeps/generic/dl-sysdep.c: Likewise.
6779         * sysdeps/generic/dl-cache.c: Likewise.
6780         * elf/dl-reloc.c: Likewise.
6781         * elf/rtld.c: Likewise.
6782         * elf/dl-version.c: Likewise.
6783         * elf/dl-load.c: Likewise.
6784         * elf/dl-dst.h: Likewise.
6785         * elf/dl-init.c: Likewise.
6786         * elf/dl-error.c: Likewise.
6787         * elf/dl-fini.c: Likewise.
6788         * elf/dl-runtime.c: Likewise.
6789         * elf/do-lookup.h: Likewise.
6791         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
6792         definition.
6793         * stdio-common/_itowa.h: Likewise.
6795 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6797         * elf/dl-minimal.c: Define _itoa_lower_digits.
6799         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
6800         DT_FLAGS set.
6802         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
6803         loading modules with the DF_STATIC_TLS flag set.
6804         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
6805         element.
6806         * include/link.h (struct link_map): Add l_flags field.
6807         * elf/elf.h (DF_STATIC_TLS): New definition.
6809         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
6810         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
6812         * elf/rtld.c (process_dl_debug): Correct printing help message.
6813         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
6814         for %s.
6816         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
6817         definition and pass &errno in use of this variable.
6818         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
6820 2002-02-04  Andreas Schwab  <schwab@suse.de>
6822         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
6823         * locale/programs/charmap-dir.c: Wrap calls that output messages
6824         with WITH_CUR_LOCALE.  Include "localedef.h" first.
6825         * locale/programs/charmap.c: Likewise.
6826         * locale/programs/ld-address.c: Likewise.
6827         * locale/programs/ld-collate.c: Likewise.
6828         * locale/programs/ld-ctype.c: Likewise.
6829         * locale/programs/ld-identification.c: Likewise.
6830         * locale/programs/ld-measurement.c: Likewise.
6831         * locale/programs/ld-messages.c: Likewise.
6832         * locale/programs/ld-monetary.c: Likewise.
6833         * locale/programs/ld-name.c: Likewise.
6834         * locale/programs/ld-numeric.c: Likewise.
6835         * locale/programs/ld-paper.c: Likewise.
6836         * locale/programs/ld-telephone.c: Likewise.
6837         * locale/programs/ld-time.c: Likewise.
6838         * locale/programs/linereader.c: Likewise.
6839         * locale/programs/linereader.h: Likewise.
6840         * locale/programs/localedef.c: Likewise.
6841         * locale/programs/locfile.c: Likewise.
6842         * locale/programs/repertoire.c: Likewise.
6844 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
6846         * elf/rtld.c (_dl_start_final): Determine load address to locate
6847         ehdr with GL(dl_rtld_map).l_map_start.
6849         * po/ca.po: Update from translation team.
6851         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
6852         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
6853         header entry.
6854         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6855         _dl_tls_module_cnt.
6856         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
6858 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
6860         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
6861         * include/link.h (struct link_map): Add various members for TLS
6862         information.
6863         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6864         _rtld_tlsoffset, add _dl_initimage_list.
6865         * sysdeps/i386/dl-lookupcfg.h: New file.
6866         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
6867         TLS relocation.  When using TLS we now use RESOLVE_MAP.
6868         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
6869         is used.
6871         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
6872         unused.
6874         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
6875         thread-pointer as soon as possible.
6876         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
6877         elements in rtld_global.
6878         * sysdeps/generic/tls.h: New file.
6879         * elf/Makefile (distribute): Add tls.h.
6880         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
6881         relocations.  Not complete yet.
6883         * resolv/resolv.h: Allow user to define __need_res_state and only
6884         define __res_start structure then.
6885         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
6887         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
6888         dl_cpuclock_offset initialization to _dl_start_final.
6889         (_dl_show_auxv): Avoid unnecessary sign extension.
6890         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
6892 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
6894         * config.h.in: Add HAVE_TLS_SUPPORT.
6895         * sysdeps/i386/elf/configure.in: New file.
6897 2002-02-03  Andreas Schwab  <schwab@suse.de>
6899         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
6900         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
6902 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
6904         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
6905         alloca if the memory reqirements are too high.
6907 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
6909         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
6910         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
6911         the former is available anyway and speed isn't important here.
6912         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
6913         * elf/dl-version.c (match_symbol): Likewise.
6914         (_dl_check_map_versions): Likewise.
6915         * elf/rtld.c (process_envvars): Likewise.
6916         (print_statistics): Likewise.
6917         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
6918         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
6919         bases.  Add assert to catch uses of unimplemented features.
6920         (__strsep): Add assert to catch uses of unimplemented features.
6921         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
6922         and avoid inline optimization.
6923         * elf/rtld.c (process_envvars): Likewise.
6924         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
6925         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
6926         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
6928 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6930         * stdio-common/_itoa.h: Minor simplifications of the code.
6931         * stdio-common/_itoa.c: Likewise.
6933         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
6934         instead of _dl_printf for debugging info output.
6936         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
6937         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
6939 2002-02-01  H.J. Lu  <hjl@gnu.org>
6941         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
6942         (atomic_add): Likewise.
6943         (compare_and_swap): Return 0 only when failed to compare. Use
6944         branch likely.
6946         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
6947         branch likely.
6949 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6951         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
6953 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6955         * elf/dl-minimal.c (__strsep): New minimal implementation.
6957 2002-02-02  Paul Eggert  <eggert@twinsun.com>
6959         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
6960         (__mktime_internal): If no tm_isdst is requested, prefer solutions
6961         with tm_isdst > 0 when the requested time falls within a
6962         spring-forward gap [PR libc/2894].
6964 2002-02-03  Andreas Schwab  <schwab@suse.de>
6966         * stdio-common/tst-rndseek.c: Increase timeout.
6968 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
6970         Change ld.so to not use functions which are exported.  One cannot
6971         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
6972         definitions.
6973         * include/libc-symbols.h: Define INT and INTDEF.
6974         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
6975         _dl_signal_error_internal, _dl_map_object_internal,
6976         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
6977         _dl_lookup_versioned_symbol_internal,
6978         _dl_relocate_object_internal, _dl_debug_state_internal,
6979         _dl_start_profile_internal, and _dl_unload_cache_internal.
6980         * include/dlfcn.h: Declare _dl_catch_error_internal.
6981         * elf/rtld.c: Use INT for calls to any of the *_internal functions
6982         above.  Add INTDEF to function definitions.
6983         * elf/dl-debug.c: Likewise.
6984         * elf/dl-deps.c: Likewise.
6985         * elf/dl-dst.h: Likewise.
6986         * elf/dl-error.c: Likewise.
6987         * elf/dl-fini.c: Likewise.
6988         * elf/dl-init.c: Likewise.
6989         * elf/dl-load.c: Likewise.
6990         * elf/dl-lookup.c: Likewise.
6991         * elf/dl-misc.c: Likewise.
6992         * elf/dl-open.c: Likewise.
6993         * elf/dl-profile.c: Likewise.
6994         * elf/dl-reloc.c: Likewise.
6995         * elf/dl-runtime.c: Likewise.
6996         * elf/dl-version.c: Likewise.
6997         * elf/do-lookup.h: Likewise.
6998         * sysdeps/generic/dl-cache.c: Likewise.
6999         * sysdeps/generic/dl-sysdep.c: Likewise.
7000         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
7001         instead of _dl_init.
7002         * sysdeps/arm/dl-machine.h: Likewise.
7003         * sysdeps/cris/dl-machine.h: Likewise.
7004         * sysdeps/hppa/dl-machine.h: Likewise.
7005         * sysdeps/i386/dl-machine.h: Likewise.
7006         * sysdeps/ia64/dl-machine.h: Likewise.
7007         * sysdeps/m68k/dl-machine.h: Likewise.
7008         * sysdeps/mips/dl-machine.h: Likewise.
7009         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7010         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7011         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7012         * sysdeps/sh/dl-machine.h: Likewise.
7013         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7014         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7015         * sysdeps/x86_64/dl-machine.h: Likewise.
7016         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
7018         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
7019         and _dl_debug_initialize.
7021         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
7022         more information.
7023         * elf/rtld.c (dl_main): Avoid strrchr.
7024         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
7025         result of readlink.  Search from the back for '/'.
7027         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
7028         strncpy if possible.
7030         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
7031         strncmp.
7032         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
7033         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
7034         strspn, and strcspn.
7035         (process_envvars): Don't use strcspn.
7037         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
7038         (_dl_dst_substitute): Likewise.
7040 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7042         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
7043         code which is never used when relocating ld.so itself.
7045         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
7046         starting ld.so itself.  Move l_addr variable initialization closer
7047         to use.
7048         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
7050 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7052         * Versions.def (libc): Add GLIBC_PRIVATE.
7053         (libdb, libnss_db, libdb1): Remove.
7054         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
7055         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
7056         (libpthread): Add GLIBC_PRIVATE.
7057         (libresolv): Likewise, remove GLIBC_2.1.
7058         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
7059         GLIBC_2.2.3, GLIBC_2.3.
7060         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
7061         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
7062         _dl_sym, _dl_vsym): Likewise.
7063         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
7064         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
7065         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
7066         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
7067         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
7068         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
7069         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
7070         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
7071         Likewise.
7072         (_dl_object_relocation_scope): Remove.
7073         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
7074         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
7075         __gconv_cache): Move to GLIBC_PRIVATE.
7076         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
7077         __internal_setnetgrent): Likewise.
7078         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
7079         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
7080         * locale/Versions (__collate_element_hash, __collate_element_strings,
7081         __collate_symbol_classes, __collate_symbol_hash,
7082         __collate_symbol_strings, _nl_current_LC_COLLATE,
7083         _nl_current_LC_CTYPE): Likewise.
7084         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
7085         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
7086         (libnss_nis, libnss_nisplus): Likewise.
7087         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
7088         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
7089         (libnss_files): Move all symbols to GLIBC_PRIVATE.
7090         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
7091         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
7092         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
7093         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
7094         __ns_get16, __ns_samename): Likewise.
7095         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
7096         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
7097         GLIBC_PRIVATE.
7098         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
7099         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
7100         __libc_connect): Likewise.
7101         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
7102         Likewise.
7103         * stdlib/Versions (__libc_system): Likewise.
7104         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
7105         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
7106         * sysdeps/ia64/fpu/Versions: Likewise.
7107         * sysdeps/ia64/Versions: Likewise.
7108         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
7109         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
7110         to GLIBC_PRIVATE.
7111         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
7112         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
7113         __libc_sigaction): Likewise.
7114         * termios/Versions (__libc_tcdrain): Likewise.
7116         * misc/sys/cdefs (__attribute_noinline__): Define.
7117         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
7118         __attribute_noinline__.
7120         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
7121         * elf/dl-xstat64.c: New file.
7122         * elf/dl-fxstat64.c: New file.
7123         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
7124         don't export __fxstat64 at multiple versions.
7125         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
7126         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
7128 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
7130         * locale/program/ld-collate.c (collate_finish): Assign a wide
7131         char collation sequence value to multi character collating
7132         elements, and avoid over writing by non-character elements.
7134 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7136         * elf/Makefile (distribute): Add dl-procinfo.c.
7137         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
7138         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
7140 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7142         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
7143         definition.
7144         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
7145         _rtld_global struct.
7146         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7147         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
7148         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7149         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
7150         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
7151         _dl_fpu_control_set): Remove unused externs.
7152         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
7153         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
7154         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
7155         related variables in _rtld_global struct.
7156         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
7157         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
7158         unused extern.
7160 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7162         * sysdeps/generic/dl-procinfo.c: New file.
7164 2002-02-01  Andreas Schwab  <schwab@suse.de>
7166         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
7168 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7170         * elf/rtld.c (_dl_start): Mark as internal_function.
7171         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
7172         in register.
7173         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
7174         General pretty printing.
7176 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7178         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
7179         * elf/dl-reloc.c: Pretty printing.
7180         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
7181         procinfo-related variables in rtld_global struct.
7182         * elf/dl-support.c: Likewise.
7183         * elf/rtld.c: Likewise.
7184         * sysdeps/i386/i686/Makefile: Likewise.
7185         * sysdeps/i386/i686/hp-timing.c: Likewise.
7186         * sysdeps/i386/i686/hp-timing.h: Likewise.
7187         * sysdeps/ia64/Makefile: Likewise.
7188         * sysdeps/ia64/hp-timing.c: Likewise.
7189         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
7190         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
7191         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
7192         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
7193         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7194         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
7195         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7196         * sysdeps/x86_64/Makefile: Likewise.
7198         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
7199         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
7200         _dl_debug_fd to rtld_global.
7201         * elf/Versions: Likewise.
7202         * elf/dl-close.c: Likewise.
7203         * elf/dl-iteratephdr.c: Likewise.
7204         * elf/dl-lookup.c: Likewise.
7205         * elf/dl-misc.c: Likewise.
7206         * elf/dl-open.c: Likewise.
7207         * elf/dl-support.c: Likewise.
7208         * elf/do-lookup.h: Likewise.
7209         * elf/rtld.c: Likewise.
7210         * sysdeps/generic/dl-cache.c: Likewise.
7211         * sysdeps/generic/dl-sysdep.c: Likewise.
7212         * sysdeps/ia64/Versions: Likewise.
7213         * sysdeps/unix/clock_gettime.c: Likewise.
7214         * sysdeps/unix/clock_settime.c: Likewise.
7215         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7216         * sysdeps/sparc/Versions: Removed.
7217         * sysdeps/i386/i686/Versions : Removed.
7218         * sysdeps/x86_64/Versions: Removed.
7219         * configure.in: Define HAVE_PROTECTED if .protected is available.
7220         * config.h.in: Add entry for HAVE_PROTECTED.
7222 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
7224         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
7225         code in struct _rtld_global.  Export this struct, remove all
7226         exports for the signal variables.
7227         * sysdeps/arm/dl-machine: Likewise.
7228         * sysdeps/generic/dl-origin: Likewise.
7229         * sysdeps/generic/dl-sysdep: Likewise.
7230         * sysdeps/generic/dl-cache: Likewise.
7231         * sysdeps/hppa/dl-fptr: Likewise.
7232         * sysdeps/hppa/dl-machine: Likewise.
7233         * sysdeps/cris/dl-machine: Likewise.
7234         * sysdeps/i386/dl-machine: Likewise.
7235         * sysdeps/ia64/dl-machine: Likewise.
7236         * sysdeps/m68k/dl-machine: Likewise.
7237         * sysdeps/mach/hurd/dl-sysdep: Likewise.
7238         * sysdeps/mips/mips64/dl-machine: Likewise.
7239         * sysdeps/mips/dl-machine: Likewise.
7240         * sysdeps/powerpc/elf/libc-start: Likewise.
7241         * sysdeps/powerpc/dl-machine: Likewise.
7242         * sysdeps/powerpc/dl-start: Likewise.
7243         * sysdeps/sparc/sparc32/dl-machine: Likewise.
7244         * sysdeps/sparc/sparc64/dl-machine: Likewise.
7245         * sysdeps/sh/dl-machine: Likewise.
7246         * sysdeps/s390/s390-32/dl-machine: Likewise.
7247         * sysdeps/s390/s390-64/dl-machine: Likewise.
7248         * sysdeps/unix/sysv/aix/libc-start: Likewise.
7249         * sysdeps/unix/sysv/aix/start-libc: Likewise.
7250         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
7251         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
7252         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
7253         * sysdeps/x86_64/dl-machine: Likewise.
7255 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7257         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
7258         are too high.
7260 2002-01-31  Andreas Schwab  <schwab@suse.de>
7262         * sysdeps/posix/readv.c: Check for ssize_t overflow.
7264 2002-01-31  Andreas Schwab  <schwab@suse.de>
7266         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
7267         reference to _dl_pagesize.
7269 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
7271         * Versions.def [ld]: Add GLIBC_2.3.
7272         * elf/dl-addr.c: Move global variables for SHARED code in struct
7273         _rtld_global.  Export this struct, remove all exports for the
7274         signal variables.
7275         * elf/dl-close.c: Likewise.
7276         * elf/dl-conflict.c: Likewise.
7277         * elf/dl-debug.c: Likewise.
7278         * elf/dl-deps.c: Likewise.
7279         * elf/dl-dst.h: Likewise.
7280         * elf/dl-error.c: Likewise.
7281         * elf/dl-fini.c: Likewise.
7282         * elf/dl-init.c: Likewise.
7283         * elf/dl-iteratephdr.c: Likewise.
7284         * elf/dl-libc.c: Likewise.
7285         * elf/dl-load.c: Likewise.
7286         * elf/dl-lookup.c: Likewise.
7287         * elf/dl-minimal.c: Likewise.
7288         * elf/dl-object.c: Likewise.
7289         * elf/dl-open.c: Likewise.
7290         * elf/dl-profile.c: Likewise.
7291         * elf/dl-profstub.c: Likewise.
7292         * elf/dl-reloc.c: Likewise.
7293         * elf/dl-runtime.c: Likewise.
7294         * elf/dl-support.c: Likewise.
7295         * elf/dl-sym.c: Likewise.
7296         * elf/dl-version.c: Likewise.
7297         * elf/do-lookup.h: Likewise.
7298         * elf/do-rel.h: Likewise.
7299         * elf/dynamic-link.h: Likewise.
7300         * elf/rtld.c: Likewise.
7301         * sysdeps/generic/dl-cache.c: Likewise.
7302         * sysdeps/generic/dl-sysdep.c: Likewise.
7303         * sysdeps/generic/ldsodefs.h: Likewise.
7304         * sysdeps/generic/libc-start.c: Likewise.
7305         * sysdeps/i386/dl-machine.h: Likewise.
7306         * sysdeps/ia64/dl-fptr.c: Likewise.
7307         * sysdeps/ia64/dl-machine.h: Likewise.
7308         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
7309         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7310         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
7311         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
7312         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7313         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7314         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
7315         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7317 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7319         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
7320         to avoid warning
7321         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
7323         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
7324         SHARED version.
7325         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
7327         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
7329 2002-01-29  Ben Collins  <bcollins@debian.org>
7331         * string/bits/string2.h (__mempcpy): Protect size arg for
7332         addition when using __builtin_memcpy.
7334 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7336         * stdlib/Makefile (tests): Add tst-qsort.
7337         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
7339         * manual/signal.texi (Process Signal Mask): Document that
7340         pthread_sigmask, not sigprocmask, must be used in MT programs.
7341         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7343         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
7344         found.
7345         * misc/Makefile (tests): Add tst-hsearch.
7346         * misc/tst-hsearch.c: New file.
7348 2002-01-18  Wolfram Gloger  <wg@malloc.de>
7350         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
7351         * malloc/malloc.h: Likewise.
7352         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
7353         * malloc/arena.c: New file.
7354         * malloc/hooks.c: New file.
7355         * malloc/tst-mallocstate.c: New file.
7356         * malloc/Makefile: Add new testcase tst-mallocstate.
7357         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
7359 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7361         * stdlib/msort.c: Remove last patch.  The optimization violates the
7362         same rule which qsort.c had problems with.
7364 2002-01-27  Paul Eggert  <eggert@twinsun.com>
7366         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
7367         to a pivot element that lies outside the array to be sorted, as
7368         ISO C99 requires that the comparison function be called only with
7369         addresses of array elements [PR libc/2880].
7371 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7373         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
7374         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
7376         * timezone/asia: Update from tzdata2002b.
7377         * timezone/australasia: Likewise.
7378         * timezone/backward: Likewise.
7379         * timezone/europe: Likewise.
7380         * timezone/leapseconds: Likewise.
7381         * timezone/iso3166.tab: Likewise.
7382         * timezone/zone.tab: Likewise.
7384 2002-01-23  Richard Henderson  <rth@redhat.com>
7386         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
7388 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7390         * string/strxfrm.c: Allocate one more byte for rulearr and clear
7391         this element [PR libc/2855].
7393         * string/strcoll.c: Handle zero-length arguments specially
7394         [PR libc/2856].
7396 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
7398         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
7399         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
7400         short lengths and constant src.
7401         (strcpy): Don't optimize for gcc 3.0+.
7402         (__stpcpy): For gcc 3.0+, don't use
7403         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
7404         for short string literal src.
7406 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7408         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7409         Set for arm, too.
7411 2001-01-22  Paul Eggert  <eggert@twinsun.com>
7413         * manual/llio.texi (Linked Channels, Cleaning Streams):
7414         Make it clearer that a just-opened input stream might need cleaning.
7416 2002-01-21  H.J. Lu  <hjl@gnu.org>
7418         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7419         Don't use label at end of compound statement.
7421 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
7423         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
7424         Remove test for negative integer arg; sin_pi does it correctly.
7426 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
7428         * nscd/Makefile (distribute): Filter out xmalloc.c.
7430 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
7432         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
7433         Set offset if read end wasn't the buffer end.
7434         (_IO_file_seekoff_mmap): New function.
7435         (_IO_file_xsgetn_mmap): New function.
7436         (_IO_file_jumps_mmap): Use the two new functions.
7437         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
7438         != end buffer.
7439         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
7440         _IO_file_underflow_mmap.
7441         * libio/iofopen.c: Don't position file descriptor at end of file.
7442         * libio/tst-widetext.c: Improve error messages.
7443         * stdio-common/tst-rndseek.c: Likewise.
7445 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
7447         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
7448         end of enum for !_GNU_SOURCE.
7449         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
7450         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
7451         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
7452         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
7453         values unless _GNU_SOURCE.
7455         * iconvdata/tcvn5712-1.c: Minor cleanups.
7457 2002-01-18  Andreas Schwab  <schwab@suse.de>
7459         * sysdeps/unix/sysv/linux/configure.in
7460         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
7462 2002-01-16  Roger Sayle  <roger@eyesopen.com>
7464         * stdlib/msort.c (msort_with_tmp): Replace implementation with
7465         more efficient "Towers of Hanoi" mergesort.
7466         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
7467         for generic, sizeof(int) and sizeof(long) variants respectively.
7469 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
7471         * manual/syslog.texi (openlog): Describe possible problems with
7472         first parameter.
7473         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7475         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
7476         * nscd/connections.c (begin_drop_privileges): New function.
7477         (finish_drop_privileges): New function.
7478         (nscd_init): Call the new functions which also install all groups
7479         for the server user.
7480         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
7481         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7483 2002-01-17  H.J. Lu  <hjl@gnu.org>
7485         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
7486         `const' from `got'.
7488 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7490         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
7491         instructions for pointer operations.
7492         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7494 2002-01-17  Andreas Jaeger  <aj@suse.de>
7496         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
7497         __uint128_t build-in.
7499         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7500         PowerPC, sync with 2.2 branch.
7502 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7504         * posix/getconf.c: Update copyright year.
7505         * nss/getent.c: Likewise.
7506         * nscd/nscd_nischeck.c: Likewise.
7507         * iconv/iconvconfig.c: Likewise.
7508         * iconv/iconv_prog.c: Likewise.
7509         * elf/ldconfig.c: Likewise.
7510         * catgets/gencat.c: Likewise.
7511         * csu/version.c: Likewise.
7512         * elf/ldd.bash.in: Likewise.
7513         * elf/sprof.c (print_version): Likewise.
7514         * locale/programs/locale.c: Likewise.
7515         * locale/programs/localedef.c: Likewise.
7516         * nscd/nscd.c (print_version): Likewise.
7517         * debug/xtrace.sh: Likewise.
7518         * malloc/memusage.sh: Likewise.
7519         * malloc/mtrace.pl: Likewise.
7521 2002-01-16  Andreas Schwab  <schwab@suse.de>
7523         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7524         reliably remove "-ia64" from rtld name.
7526 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7528         * iconvdata/gb18030.c: Bug fixes and support for more characters.
7529         Patch by Yu Shao <yshao@redhat.com>.
7531 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7533         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7534         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7535         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7537 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7539         * sysdeps/s390/fpu/libm-test-ulps: Update.
7541 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
7543         * elf/elf.h: Update x86 relocations.
7545 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7547         * locale/programs/charmap.c (new_width): Check whether byte
7548         sequences for both ends of range have the same length.
7550 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7552         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7554 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7556         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7557         string literals.
7558         (__full_ieee754_sqrt): Add __attribute_used__.
7560 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7562         * sysdeps/generic/group_member.c (__group_member): Also check
7563         groups[0] [PR libc/2781].
7565 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
7567         * Makefile (distribute): Add scripts/cpp.
7568         * elf/Makefile (distribute): Add reldep6mod[01234].c,
7569         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7570         unwind-dw2-fde.h, and dwarf2.h.
7571         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7572         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7573         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7574         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7576 2002-01-07  Roland McGrath  <roland@frob.com>
7578         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
7579         volatile on type of ARGC so the compiler doesn't get clever.
7581 2002-01-07  Andreas Jaeger  <aj@suse.de>
7583         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
7584         * sysdeps/i386/bits/byteswap.h: Likewise.
7585         * sysdeps/ia64/bits/byteswap.h: Likewise.
7586         * sysdeps/m68k/bits/byteswap.h: Likewise.
7587         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
7588         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
7590 2002-01-02  Bruno Haible  <bruno@clisp.org>
7592         * intl/plural.y: Fix %expect count.
7594 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
7596         * elf/Makefile (routines, shared-only-routines): Add
7597         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
7598         * elf/elf.h (PT_GNU_EH_FRAME): Define.
7599         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
7600         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
7601         Optimize if .eh_frame section contains no FDEs.
7602         (__register_frame, __deregister_frame_info_bases,
7603         __deregister_frame): Likewise.
7604         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
7605         DW_CFA_restore handling.
7607 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
7609         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
7611         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
7612         for x < 0.25 and restore original range reduction method.
7613         (__ieee754_lgammal_r): Make sure signgam is set before returning.
7615 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
7617         * libio/fileops.c (_IO_file_underflow_mmap): New function.
7618         (_IO_file_close_mmap): New function.
7619         (_IO_file_jumps_mmap): New variable.
7620         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
7621         trying to convert rest of byte buffer.
7622         (_IO_wfile_underflow_mmap): New function.
7623         (_IO_wfile_jumps_mmap): New variable.
7624         * libio/iofopen.c (__fopen_maybe_mmap): New function.
7625         (__fopen_internal): New function.  Split out from _IO_new_fopen.
7626         (_IO_new_fopen): Call __fopen_internal.
7627         * libio/iofopen64.c: Just call __fopen_internal.
7628         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
7629         successfully.
7630         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
7631         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
7632         _IO_file_close_mmap.
7634         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
7635         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
7637         * stdio-common/Makefile (tests): Add tst-rndseek.
7638         * stdio-common/tst-rndseek.c: New file.
7640 2002-01-05  Roland McGrath  <roland@frob.com>
7642         * config.h.in (HAVE_MIG_RETCODE): New #undef.
7643         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
7644         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
7645         * sysdeps/mach/hurd/configure: Regenerated.
7647 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
7649         * elf/elf.h: Add more TLS definitions.
7651 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
7653         * include/features.h (__GLIBC_MINOR__): Bump to 3.
7655 2002-01-02  Roland McGrath  <roland@frob.com>
7657         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
7658         __sigisemptyset.  Don't use MASK uninitialized.
7660         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
7661         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
7662         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
7663         __sigdelset, __sigaddset, __sigorset.
7665         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
7666         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
7668         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
7669         _hurd_ports is null.
7671         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
7672         for old CMU and new OSF Mach interface flavors.
7673         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
7674         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7676         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
7678         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
7679         Pass extra arguments to task_create for OSF variant.
7680         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7682         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
7683         conditional on [HAVE_AUX_VECTOR].
7685         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
7686         mach_msg_timeout_t as type of final argument.
7688         * hurd/privports.c (__get_privileged_ports):
7689         Change host_priv_t to mach_port_t in argument type.
7690         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
7691         Update decls.
7693         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
7694         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
7695         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
7696         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
7697         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
7698         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
7700 2002-01-01  Roland McGrath  <roland@frob.com>
7702         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
7704 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
7706         * include/stdlib.h: Define inlines for the _l variants of the strto*
7707         functions.
7709 2002-01-01  Roland McGrath  <roland@frob.com>
7711         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
7713         * mach/Machrules (MIG): Set CPP as well as CC.
7715 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
7717         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
7718         locale to parse /proc/loadavg [PR libc/2760].
7720 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
7722         * elf/dl-conflict.c: Include sys/param.h.
7723         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
7724         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
7725         warning.
7726         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
7727         literals to avoid warnings.
7729 2001-12-31  Andreas Jaeger  <aj@suse.de>
7731         * configure.in: Don't check for gsed since we do not use it anywhere.
7733 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
7735         * io/fts.c: Update from BSD to fix memory leaks.
7737 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
7739         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
7740         * elf/chroot_canon.c: Likewise.
7741         * elf/dl-object.c: Likewise.
7742         * iconv/iconv_charmap.c: Likewise.
7743         * iconv/iconv_prog.c: Likewise.
7744         * libio/iogetdelim.c: Likewise.
7745         * locale/lc-time.c: Likewise.
7746         * stdlib/canonicalize.c: Likewise.
7747         * sunrpc/svc.c: Likewise.
7748         * sysdeps/generic/glob.c: Likewise.
7750 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7752         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
7753         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
7754         remove high order bit from the program counter.
7755         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
7757 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7759         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
7760         unnecessary code and add missing reloc types.
7761         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
7762         case for reloc type R_390_NONE.
7764 2001-12-28  Andreas Jaeger  <aj@suse.de>
7766         * io/bug-ftw3.c: Include string.h for prototypes.
7768         * crypt/md5test.c (main): Remove unused variable.
7770         * dlfcn/modstatic.c: Add prototype to avoid warning.
7772 2001-12-26  Roland McGrath  <roland@frob.com>
7774         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
7775         check only (SS->pending & MASK) for the signal to return.
7776         From Jeroen Dekkers <jeroen@dekkers.cx>.
7778 2001-12-22  Roland McGrath  <roland@frob.com>
7780         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
7781         Use preprocessor #if conditionals instead of `if' to avoid
7782         warnings about divide by zero in dead code.
7784         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
7785         _hurd_port_init, and __hurd_self_sigstate.
7787         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
7789 2001-12-21  Andreas Jaeger  <aj@suse.de>
7791         * elf/dblloadmod1.c: Add prototype to avoid warning.
7792         * elf/dblloadmod2.c: Likewise.
7793         * elf/dblloadmod3.c: Likewise.
7794         * elf/reldepmod5.c: Likewise.
7795         * elf/reldepmod6.c: Likewise.
7797         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
7798         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
7799         used on all architectures.
7801         * sunrpc/svc_tcp.c: Add noreturn attribute for
7802         svctcp_rendezvous_abort.
7803         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
7805         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
7806         to avoid warning.
7808 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
7810         * manual/llio.texi (aio_fsync): Fix a typo.
7811         Patch by Tammy Fox <tfox@redhat.com>.
7813 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
7815         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
7816         stack bias from child stack pointer before passing it to clone syscall.
7818 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
7820         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
7821         _SC_TZNAME_MAX.
7822         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
7823         Reported by Thorsten Kukuk <kukuk@suse.de>.
7825         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
7826         add some casts.
7828         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
7830 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
7832         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
7833         conforming: return EBADF if file descriptor is invalid and EINVAL
7834         if file descriptor is no valid tty.
7835         * login/tst-grantpt.c: New file.
7836         * login/Makefile (tests): Add tst-grantpt.
7838 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
7840         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
7841         different than implemented in last patch.
7842         * io/bug-ftw3.c: Adjust test for changed handling of
7843         inaccessibility of toplevel dir.
7845 2001-12-16  Roland McGrath  <roland@frob.com>
7847         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
7848         * grp/initgroups.c (internal_getgrouplist): Likewise.
7850         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
7851         `default:' to silence new GCC warning.
7852         Rewrite cast of lvalue to silence new GCC warning.
7854         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
7856         * sysdeps/mach/hurd/spawni.c: New file, by me with a
7857         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
7859 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
7861         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
7862         Patch by Stephen R. van den Berg.
7864         * crypt/md5.h: Define md5_uintptr.
7866 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
7868         * libio/tst_swprintf.c (main): Add test for string argument with
7869         zero precision.
7870         * stdio-common/Makefile (tests): Add tst-sprintf.
7871         * stdio-common/tst-sprintf.c: New file.
7873 2001-12-13  Andreas Schwab  <schwab@suse.de>
7875         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
7876         zero precision with wide character string format.
7878 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
7880         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
7881         but have a user supplied buffer, return the empty buffer, not NULL.
7883 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
7885         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
7886         Patch by Eric Sharkey <sharkey@netrics.com>.
7888         * crypt/md5test.c (main): Add test for multiple calls to
7889         __md5_process_bytes to itererate over input string.
7891 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
7893         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
7894         from __nis_findfastest.  Take timeout value from parameter.
7895         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
7896         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
7897         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
7899 2001-12-12  Andreas Jaeger  <aj@suse.de>
7901         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
7902         combreloc test so that it works in this case.
7904         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
7906 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
7908         * sysdeps/sh/Makefile: New file.
7909         * sysdeps/sh/_mcount.S: New file.
7910         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
7911         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
7913 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
7915         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
7916         limitation [PR libc/2564].
7918 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
7920         * elf/Makefile (dl-routines): Add conflict.
7921         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
7922         (ld.so): Add _begin local symbol.
7923         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
7924         Define.
7925         * elf/dl-deps.c (_dl_build_local_scope): New.
7926         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
7927         of all libraries.
7928         * elf/do-rel.h (VALIDX): Define.
7929         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
7930         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
7931         can be skipped.
7932         * elf/dl-conflict.c: New file.
7933         * elf/dl-lookup.c (_dl_debug_bindings): New.
7934         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
7935         non-NULL.
7936         (_dl_lookup_symbol_skip): Likewise.
7937         (_dl_lookup_versioned_symbol): Likewise.
7938         (_dl_lookup_versioned_symbol_skip): Likewise.
7939         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
7940         define to ElfW(Rel).
7941         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
7942         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
7943         ranges.
7944         Don't adjust address dynamic tags if l_addr is 0.
7945         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
7946         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
7947         (VALIDX, ADDRIDX): Define.
7948         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
7949         (dl_main): Print library list for LD_TRACE_PRELINKING.
7950         If prelinking information can be used, skip relocating libraries and
7951         call _dl_resolve_conflicts instead.
7952         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
7953         * elf/dl-load.c (_dl_map_object): Don't create fake libs
7954         if LD_TRACE_PRELINKING.
7955         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
7956         + DT_ADDRNUM.
7957         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
7958         (DL_DEBUG_PRELINK): Define.
7959         (_dl_resolve_conflicts): Add prototype.
7961         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
7962         .plt for prelinked libraries where prelinking info cannot be used.
7963         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
7964         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
7965         * sysdeps/arm/bits/link.h: New file.
7966         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
7967         content of .got[1].
7968         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7969         (ELF_MACHINE_PLT_REL): Define.
7970         (elf_machine_rela, elf_machine_rela_relative): New.
7971         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
7972         of adjusting it if prelinked and prelinking cannot be used.
7973         * sysdeps/i386/bits/link.h: New file.
7974         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
7975         content of .got[1].
7976         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
7977         (ELF_MACHINE_PLT_REL): Define.
7978         (elf_machine_rela, elf_machine_rela_relative): New.
7979         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
7980         of adjusting it if prelinked and prelinking cannot be used.
7981         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
7982         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
7983         to find out map for R_PPC_JMP_SLOT relocs.
7984         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
7985         (OPCODE_BA): Define.
7986         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7987         libraries where prelinking info cannot be used.
7988         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
7989         (elf_machine_fixup_plt): Call sparc_fixup_plt.
7990         (elf_machine_rela): Set value to 0 if relocating conflicts.
7991         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
7992         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
7993         (sparc64_fixup_plt): Fix a typo.
7994         (elf_machine_rela): Set value to 0 if relocating conflicts.
7995         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
7996         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
7997         libraries where prelinking info cannot be used.
7998         * sysdeps/sh/bits/link.h: New file.
7999         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
8000         content of .got[1].
8001         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
8002         of adjusting it if prelinked and prelinking cannot be used.
8003         * sysdeps/s390/s390-32/bits/link.h: New file.
8004         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
8005         Save original content of .got[1].
8006         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8007         of adjusting it if prelinked and prelinking cannot be used.
8008         * sysdeps/s390/s390-64/bits/link.h: New file.
8009         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
8010         Save original content of .got[1].
8011         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8012         of adjusting it if prelinked and prelinking cannot be used.
8013         * sysdeps/x86_64/bits/link.h: New file.
8014         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
8015         Save original content of .got[1].
8016         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
8017         of adjusting it if prelinked and prelinking cannot be used.
8019 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
8021         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
8022         where appropriate instead of numbers.  Little optimizations.
8024 2001-12-10  Roland McGrath  <roland@frob.com>
8026         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
8027         set it.
8029         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
8030         set to GLIBC_2.2.5, not GLIBC_2.2.4.
8032         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
8033         Fix conditionals so this is set by default for stdio and not for libio.
8034         * sysdeps/mach/hurd/configure: Regenerated.
8036 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
8038         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
8040 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
8042         * io/Makefile (tests): Add bug-ftw3.
8043         * io/bug-ftw3.c: New file.
8045         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
8046         matches and GLOB_NOCHECK is set.
8047         * posix/globtest.sh: Correct expected result for NOCHECK test.
8049         * po/ca.po: Update from translation team.
8051 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
8053         Implement transliteration of characters in strings of the locale
8054         definitions.
8055         * locale/programs/linereader.c: Adjust for additional parameter to
8056         lr_token.
8057         (get_string): If character <Uxxxx> is not found try to transliterate
8058         it.
8059         * locale/programs/ld-ctype.c: Adjust for additional parameter to
8060         lr_token.  Add const to charmap parameter of all functions.
8061         (find_translit, find_translit2): New functions.
8062         * locale/programs/charmap.c: Adjust for additional parameter to
8063         lr_token.
8064         * locale/programs/repertoire.c: Likewise.
8065         * locale/programs/linereader.h: Likewise.
8066         * locale/programs/ld-address.c: Likewise.  Add const to charmap
8067         parameter of all functions.
8068         * locale/programs/ld-collate.c: Likewise.
8069         * locale/programs/ld-identification.c: Likewise.
8070         * locale/programs/ld-measurement.c: Likewise.
8071         * locale/programs/ld-messages.c: Likewise.
8072         * locale/programs/ld-monetary.c: Likewise.
8073         * locale/programs/ld-name.c: Likewise.
8074         * locale/programs/ld-numeric.c: Likewise.
8075         * locale/programs/ld-paper.c: Likewise.
8076         * locale/programs/ld-paper.c: Likewise.
8077         * locale/programs/ld-telephone.c: Likewise.
8078         * locale/programs/ld-time.c: Likewise.
8079         * locale/programs/locfile.c: Likewise.
8080         * locale/programs/localedef.c: Likewise.
8081         * locale/programs/localedef.h: Likewise.
8082         * locale/programs/locfile.h: Likewise.  Add declaration for
8083         find_translit.
8084         * locale/programs/simple-hash.c: Add const to first parameter of
8085         find_entry, iterate_table, and lookup.
8086         * locale/programs/simple-hash.h: Likewise.
8087         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
8088         instead.
8089         * include/locale.h: Define __LC_LAST.
8090         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
8092 2001-12-07  Geoff Keating  <geoffk@redhat.com>
8094         * sysdeps/powerpc/Dist: Update for recent FP changes.
8095         * sysdeps/powerpc/fpu/Dist: Likewise.
8097 2001-12-07  Andreas Schwab  <schwab@suse.de>
8099         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
8101 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8103         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
8104         save/restore functions here.
8105         (libm-support): Don't define these functions here.
8106         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
8107         functions here.
8108         * sysdeps/powerpc/fe_nomask.c: Move to...
8109         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
8110         * sysdeps/powerpc/fprrest.S: Move to...
8111         * sysdeps/powerpc/fpu/fprrest.S: ... here.
8112         * sysdeps/powerpc/fprsave.S: Move to...
8113         * sysdeps/powerpc/fpu/fprsave.S: ... here.
8115 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8117         * sysdeps/unix/sysv/linux/opensock.c: New file.
8119 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8121         * config.make.in (with-fp): Define from configure.
8122         * configure.in: Substitute with_fp.
8123         * configure: Regenerate.
8124         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
8125         specified, and don't change FPU environment.
8127 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8129         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
8130         * assert/assert.c: Check result of __asprintf call and don't use
8131         string if it failed.
8132         * assert/assert-perr.c: Likewise.
8133         * inet/rcmd.c: Likewise.
8134         * locale/programs/localedef.c (main): Check result of
8135         construct_output_path and exit if it failed.
8136         (construct_output_path): Check result of asprintf and mkdir calls and
8137         fail if they failed.
8138         * posix/getopt.c: Check result of __asprintf calls and fail if
8139         they failed.
8140         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
8142 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8144         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
8145         patch.
8146         * sysdeps/generic/strncase.c: Likewise.
8147         * string/tester.c: Add tests for strcasecmp and strncasecmp.
8149 2001-12-05  Geoff Keating  <geoffk@redhat.com>
8151         * scripts/cpp: Test the exit status from 'type', not 'awk'.
8153         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
8154         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
8155         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
8156         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
8157         * sysdeps/powerpc/fclrexcpt.c: Move to...
8158         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
8159         * sysdeps/powerpc/fpu_control.h: Move to...
8160         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
8162 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8164         * iconvdata/ibm1129.h: Remove duplicate mappings.
8165         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
8166         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
8167         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8169         * timezone/zic.c: Fix handling of turnaround times.
8170         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
8172 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
8174         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
8175         overflow problem.
8177 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8179         * posix/regex.c: For use outside glibc defined bounded pointer
8180         macros here.  Patch by Jim Meyering <jim@meyering.net>.
8182         * iconvdata/Makefile (modules): Add TCVN5712-1.
8183         * iconvdata/TESTS: Add TCVN5712-1.
8184         * iconvdata/gconv-modules: Likewise.
8185         * iconvdata/tcvn5712-1.c: New file.
8186         * iconvdata/testdata/TCVN-5712: New file.
8187         * iconvdata/testdata/TCVN-5712..UTF8: New file.
8189 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
8191         * iconvdata/cp1258.c: Optimize conversion from UCS4.
8193 2001-12-02  Roland McGrath  <roland@frob.com>
8195         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
8197         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
8198         Reported by Jeff Bailey <jbailey@nisa.net>.
8200         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
8201         Reported by Jeff Bailey <jbailey@nisa.net>.
8203         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
8204         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
8205         Reported by Jeff Bailey <jbailey@nisa.net>.
8207 2001-12-01  Roland McGrath  <roland@frob.com>
8209         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
8210         missing backslash in test arguments.
8211         * sysdeps/mach/hurd/configure: Regenerated.
8213 2001-11-26  Roland McGrath  <roland@frob.com>
8215         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
8216         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
8218 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
8220         * iconvdata/Makefile (modules): Add ARMSCII-8.
8221         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
8222         * iconvdata/armscii-8.c: New file.
8224 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
8226         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
8227         don't match, fix {{a,b},c} globbing, clean up.
8228         Patch by Flavio Veloso <flaviovs@magnux.com>.
8229         * posix/globtest.sh: Add new tests.
8231 2001-11-29  Andreas Jaeger  <aj@suse.de>
8233         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
8234         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
8236         * sysdeps/generic/abort.c: Include libioP.h for
8237         _IO_flush_all_lockp prototype.
8239 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
8241         * posix/regex.h: Define __restrict_arr correctly.
8243 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8245         * iconvdata/ibm1163.c: New file.
8246         * iconvdata/ibm1163.h: New file.
8247         * iconvdata/ibm1164.c: New file.
8248         * iconvdata/ibm1164.h: New file.
8249         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
8250         * iconvdata/Makefile: Likewise.
8251         * iconvdata/testdata/IBM1163: New file.
8252         * iconvdata/testdata/IBM1163..UTF8: New file.
8253         * iconvdata/testdata/IBM1164: New file.
8254         * iconvdata/testdata/IBM1164..UTF8: New file.
8255         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8257         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
8258         * iconvdata/ibm1124.h: Likewise.
8259         * iconvdata/ibm1132.h: Likewise.
8260         * iconvdata/ibm1133.h: Likewise.
8261         * iconvdata/ibm1160.h: Likewise.
8262         * iconvdata/ibm1161.h: Likewise.
8263         * iconvdata/ibm1162.h: Likewise.
8264         * iconvdata/ibm856.h: Likewise.
8265         * iconvdata/ibm922.h: Likewise.
8266         * iconvdata/ibm930.h: Likewise.
8267         * iconvdata/ibm932.h: Likewise.
8268         * iconvdata/ibm933.h: Likewise.
8269         * iconvdata/ibm935.h: Likewise.
8270         * iconvdata/ibm937.h: Likewise.
8271         * iconvdata/ibm939.h: Likewise.
8272         * iconvdata/ibm943.h: Likewise.
8273         * iconvdata/ibm930.c: Pretty printing.
8274         * iconvdata/ibm937.c: Avoid access accross array boundary.
8276         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
8277         the current locale's codeset.
8278         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
8279         empty input string.
8280         * iconv/iconv_prog.c: Pass empty strings as default value for to-
8281         and from-charset.  Don't determine locale's charset here.
8283         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
8284         as the old _IO_flush_all but lock only if parameter is nonzero.
8285         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
8286         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
8287         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
8288         if libio is used [PR libc/2575].
8290 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
8292         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
8293         __signbitl): Only define for ISO C99.
8295 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8297         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
8298         herrnop to NETDB_INTERNAL if we run out of buffer space.
8300 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8302         * nss/nss_files/files-XXX.c (internal_getent): Correct input
8303         overflow test for platforms with signed char.
8304         Reported by Andrew Haley <aph@cambridge.redhat.com>.
8306 2001-11-28  Bruno Haible  <bruno@clisp.org>
8308         * locale/programs/simple-hash.c (lookup_2): Remove function.
8309         (insert_entry_2): Call lookup instead of lookup_2.
8311 2001-03-04  Bruno Haible  <bruno@clisp.org>
8313         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
8315 2001-10-31  Bruno Haible  <bruno@clisp.org>
8317         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
8319 2001-03-21  Bruno Haible  <bruno@clisp.org>
8321         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
8322         chokes on empty macro arguments.
8323         * intl/plural.y: Add #pragma for alloca on AIX 3.
8325 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8327         * intl/dcigettext.c (guess_category_value): Only implement for
8328         glibc.  Otherwise rely on function _nl_locale_name which isn't
8329         present in the glibc sources.
8331 2001-09-24  Bruno Haible  <bruno@clisp.org>
8333         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
8334         transliteration when building on a glibc system but outside glibc.
8336 2001-09-22  Bruno Haible  <bruno@clisp.org>
8338         * intl/plural-eval.c: New file, extracted from dcigettext.c.
8339         * intl/dcigettext.c (plural_eval): Remove function, moved to
8340         intl/plural-eval.c.
8341         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
8342         Include plural-eval.c.
8344 2001-09-22  Bruno Haible  <bruno@clisp.org>
8346         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
8347         don't start with a digit; nplurals must be positive.
8349 2001-09-02  Bruno Haible  <bruno@clisp.org>
8351         * intl/plural-exp.h: New file, extracted from gettextP.h.
8352         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
8353         * intl/gettextP.h (struct expression, struct parse_args,
8354         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
8355         * intl/loadmsgcat.c: Include plural-exp.h.
8356         (PLURAL_PARSE): Move macro to plural-exp.h.
8357         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
8358         plural-exp.c.
8359         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
8360         EXTRACT_PLURAL_EXPRESSION.
8361         (_nl_unload_domain): Update.
8362         * intl/dcigettext.c: Include plural-exp.h.
8363         * intl/plural.y: Include plural-exp.h, not gettextP.h.
8364         (FREE_EXPRESSION): Move macro to plural-exp.h.
8365         * intl/Makefile (routines): Add plural-exp.
8366         (distribute): Add plural-exp.h.
8368 2001-07-28  Bruno Haible  <bruno@clisp.org>
8370         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
8371         isdigit, tolower argument to 'unsigned char'.
8372         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
8373         'unsigned char'.
8374         * intl/localealias.c (read_alias_file): Cast isspace argument to
8375         'unsigned char'.
8377 2001-10-20  Bruno Haible  <bruno@clisp.org>
8379         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
8380         anyway.)
8381         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
8382         with the variable 'index' in plural_lookup.
8383         * intl/l10nflist.c (strchr): Likewise.
8384         * intl/localealias.c (strchr): Likewise.
8386         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
8387         * intl/bindtextdom.c: Likewise.
8388         * intl/dcigettext.c: Likewise.
8389         * intl/dgettext.c: Likewise.
8390         * intl/dngettext.c: Likewise.
8391         * intl/explodename.c: Likewise.
8392         * intl/finddomain.c: Likewise.
8393         * intl/gettext.c: Likewise.
8394         * intl/l10nflist.c: Likewise.
8395         * intl/loadmsgcat.c: Likewise.
8396         * intl/localealias.c: Likewise.
8397         * intl/ngettext.c: Likewise.
8398         * intl/textdomain.c: Likewise.
8399         * intl/gettext.h: Assume <limits.h> exists.
8401 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8403         * stdio-common/Makefile (tests): Add scanf11.
8404         * stdio-common/scanf11.c: New file.
8406 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8408         * version.h (RELEASE): Define as development.
8409         (VERSION): Set to 2.2.90.
8411 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8413         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
8414         * nis/nss_nis/nis-grp.c: Likewise.
8415         * nis/nss_nisplus/nisplus-grp.c: Likewise.
8417         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
8418         * nis/nss_nis/nis-pwd.c: Likewise.
8419         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
8421         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
8422         * nis/nss_nisplus/nisplus-parser.c: Likewise.
8423         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8425         * nscd/grpcache.c: Use strtoul instead of atol.
8426         * nscd/pwdcache.c: Likewise.
8427         * nss/getent.c: Likewise.
8429 2001-11-27  Paul Eggert  <eggert@twinsun.com>
8431         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8432         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8434 2001-11-19  Bruno Haible  <bruno@clisp.org>
8436         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
8437         90%.
8438         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
8439         improves the quality of the hash function, especially for short
8440         strings.
8442 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8444         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
8445         are found call conv_error and not input_error [PR libc/2669].
8447         * math/bits/mathcalls.h: Mark ceil and floor as const.
8448         Reported by David Mosberger.
8450 2001-11-21  Jim Meyering  <meyering@lucent.com>
8452         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
8453         Define to be __-prefixed.
8454         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
8456 2001-11-26  Andreas Jaeger  <aj@suse.de>
8458         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
8459         avoid warning.
8461 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
8463         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
8464         initialization.
8466         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
8467         unused variables.  Fix threshold for returning 1.0.
8469         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
8470         argument.
8472         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
8473         remove unused variables.
8475         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
8477         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
8478         include local math header files.
8480 2001-11-22  Andreas Jaeger  <aj@suse.de>
8482         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
8483         avoid warning.
8485 2001-11-21  Andreas Jaeger  <aj@suse.de>
8487         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
8489         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
8490         sys/debugreg.h
8492 2001-11-15  Andreas Jaeger  <aj@suse.de>
8494         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
8495         compilers that support it.
8497         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
8498         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
8499         * stdlib/stdlib.h: Likewise.
8501 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
8503         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
8504         statement with gotos.
8505         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
8507 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
8509         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
8511 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
8513         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8515 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
8516             H.J. Lu  <hjl@gnu.org>
8518         * Versions.def (libc): Add GCC_3.0.
8519         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8520         if gcc supports this flag.
8521         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8522         (gcc3): Allow glibc to be compiled with gcc 3.x.
8523         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8524         * config.make.in (static-libgcc, unwind-find-fde): Add.
8525         * Makerules (build-shlib-helper, build-module-helper): Use it.
8526         * scripts/versions.awk: Make sure GLIBC_ versions come first.
8527         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8528         necessary.
8529         (_fini): Call __deregister_frame_info_bases if
8530         __register_frame_info_bases was used to register.
8531         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8532         for GLIBC_2.0.
8533         (__register_frame_info_bases, __register_frame_info_table_bases,
8534         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8535         * elf/Makefile (routines): Add unwind-dw2-fde.
8536         (shared-only-routines): Add unwind-dw2-fde.
8537         * sysdeps/alpha/gccframe.h: New file.
8538         * sysdeps/arm/gccframe.h: New file.
8539         * sysdeps/generic/framestate.c: New file.
8540         * sysdeps/generic/dwarf2.h: New file.
8541         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8542         * sysdeps/generic/unwind-dw2-fde.c: New file.
8543         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8544         * sysdeps/generic/unwind-dw2-fde.h: New file.
8545         * sysdeps/generic/unwind-dw2.c: New file.
8546         * sysdeps/generic/unwind-pe.h: New file.
8547         * sysdeps/generic/unwind.h: New file.
8548         * sysdeps/hppa/gccframe.h: New file.
8549         * sysdeps/i386/gccframe.h: New file.
8550         * sysdeps/m68k/gccframe.h: New file.
8551         * sysdeps/mips/gccframe.h: New file.
8552         * sysdeps/powerpc/gccframe.h: New file.
8553         * sysdeps/s390/gccframe.h: New file.
8554         * sysdeps/sh/gccframe.h: New file.
8555         * sysdeps/sparc/gccframe.h: New file.
8556         * sysdeps/vax/gccframe.h: New file.
8557         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8558         Set on all architectures except ia64.
8559         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8560         for i386.
8561         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8562         __deregister_frame_info): Move to elf/Versions.
8563         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8564         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8565         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8566         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8567         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8568         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8569         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8570         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8571         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8572         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8573         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8574         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8575         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8576         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8577         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8578         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8579         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8580         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8582 2001-11-15  Jeff Law  <law@redhat.com>
8584         * posix/regex.c (uintptr_t): Do not provide a definition if the
8585         system provided one.
8587 2001-11-13  Roland McGrath  <roland@frob.com>
8589         * stdio-common/tmpfile.c: Moved to ...
8590         * sysdeps/generic/tmpfile.c: ... here.
8591         * sysdeps/mach/hurd/tmpfile.c: New file.
8593         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
8594         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
8595         (fopenport): Define as weak alias.
8597         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
8598         * libio/libioP.h: ... to here.
8600 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
8602         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
8603         program header twice.  Construct list with the needed information.
8605 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
8607         * po/ca.po: Update from translation team.
8609         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
8610         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
8611         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
8612         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8614 2001-11-10  Andreas Jaeger  <aj@suse.de>
8616         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
8617         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8618         Contributed by Stephen L Moshier <moshier@mediaone.net>.
8620 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
8622         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
8623         correctly.
8624         * elf/dl-load.c (is_dst): New function.
8625         (_dl_dst_count): Use is_dst to check for DST variable.
8626         (_dl_dst_substitute): Likewise.
8628 2001-11-09  Roland McGrath  <roland@frob.com>
8630         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
8631         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
8632         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
8633         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
8634         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
8635         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
8636         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
8637         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
8638         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
8639         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
8640         * sysdeps/mach/hurd/powerpc/Dist: New file.
8642         * hurd/privports.c (__get_privileged_ports):
8643         Only contact the proc server if necessary for this call.
8644         Suggested by Neal H Walfield <neal@cs.uml.edu>.
8645         Check error return for mach_port_mod_refs.
8647 2001-11-09  Andreas Schwab  <schwab@suse.de>
8649         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
8651 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
8653         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
8654         object is always the last in the list.
8655         (_dl_map_object_from_fd): Delete code to remove from object list
8656         when DF_1_NOOPEN is seen.  This is done in lose.
8658 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
8660         * elf/dl-object.c (_dl_new_object): Various small optimizations.
8662 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
8664         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
8665         HWCAP_CHECK macro code.
8667         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
8668         Now returns MAP_FAILED on error.
8669         * elf/rtld.c: Adjust caller.
8670         * sysdeps/generic/dl-cache.c: Likewise.
8671         * sysdeps/generic/ldsodefs.h: Adjust description.
8673         * elf/dl-version.c (match_symbol): Optimize error handling for size.
8674         (_dl_check_map_versions): Likewise.
8676 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
8678         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
8679         _dl_signal_error directly, always use lose.  Set fd to -1 after
8680         file is closed.
8681         (lose): Don't call close if fd == -1.
8683 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
8685         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
8686          Also fix typo @code {mbsinit} to @code{mbsinit}.
8688 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
8690         * elf/dl-profile.c: Replace state variable with simple flag named
8691         running.  Remove commented-out code.
8693         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
8694         (_dl_init_paths): Likewise.
8695         (_dl_map_object_from_fd): Likewise.
8696         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8698 2001-11-06  Roland McGrath  <roland@frob.com>
8700         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
8701         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
8703         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
8704         sysdeps/powerpc/elf/sysdep.h.
8705         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
8707 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
8709         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
8710         speed.
8711         (process_envvars): Some more optimizations.
8712         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
8714         * elf/elf.h: Add dynamic tag definitions for prelinking.
8716         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
8717         Rewrite code to remove environment varables for SUID binaries.
8718         Small optimization in LD_PROFILE handling.
8719         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
8720         changes.
8721         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8723         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
8725         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
8726         strings.  Change type of second parameter.
8727         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
8728         for last change.
8730         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
8732 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
8734         * manual/string.texi: Fix typos.
8735         * manual/examples/argp-ex2.c: Likewise.
8737 2001-11-05  Roland McGrath  <roland@frob.com>
8739         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
8740         the more-specific unix/sysv/linux/powerpc file and breaks everything.
8741         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
8742         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
8743         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
8744         here, put under [__ELF__].
8746 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
8748         * manual/charset.texi: Extensive editing work.
8749         * manual/nss.texi: Likewise.
8750         Changes by Dennis Grace <dgrace@us.ibm.com>.
8752 2001-11-04  Roland McGrath  <roland@frob.com>
8754         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
8755         parameter to dir_mkfile.
8757 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
8759         * string/bits/string2.h (__strndup): If n is smaller than len, set
8760         len to n + 1.
8761         * string/tester.c (test_strndup): New function.
8762         (main): Call it.
8764 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
8766         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
8768         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
8769         * scripts/cpp: New file.
8771         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
8772         for rtld_search_dirs content.  Minor optimizations.
8774 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
8776         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
8777         avoiding unnecessary duplication.
8779 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
8781         * elf/dl-load.c (_dl_map_object): If library was found using
8782         LD_LIBRARY_PATH, don't try RUNPATH list.
8784 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8786         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
8787         Correct second argument of register_dump call.
8788         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
8789         Likewise.
8791 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
8793         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
8794         modules.
8795         * iconvdata/TESTS: Likewise.
8796         * iconvdata/gconv-modules: Likewise.
8797         * iconvdata/ibm1132.c: New file.
8798         * iconvdata/ibm1132.h: New file.
8799         * iconvdata/ibm1133.c: New file.
8800         * iconvdata/ibm1133.h: New file.
8801         * iconvdata/ibm1162.c: New file.
8802         * iconvdata/ibm1162.h: New file.
8803         * iconvdata/testdata/IBM1132: New file.
8804         * iconvdata/testdata/IBM1132..UTF8: New file.
8805         * iconvdata/testdata/IBM1133: New file.
8806         * iconvdata/testdata/IBM1133..UTF8: New file.
8807         * iconvdata/testdata/IBM1162: New file.
8808         * iconvdata/testdata/IBM1162..UTF8: New file.
8809         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
8811         * string/string.h: Fix typo in comment.
8812         * wcsmbs/wchar.h: Likewise.
8814 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
8816         * manual/getopt.texi (getopt_long, getopt_long_only): Include
8817         const in type of longopts parameter.
8819 2001-10-29  Andreas Jaeger  <aj@suse.de>
8821         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
8823 2001-10-29  Kevin Ryde  <user42@zip.com.au>
8825         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
8826         output, clarify `#' behaviour on 0.
8827         (Floating-Point Conversions): Clarify that %g only uses %e when
8828         the exponent would be greater than 1.
8830 2001-10-28  Roland McGrath  <roland@frob.com>
8832         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
8833         * sysdeps/mach/powerpc/machine-sp.h: New file.
8834         * sysdeps/mach/powerpc/sysdep.h: New file.
8835         * sysdeps/mach/powerpc/thread_state.h: New file.
8837         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
8838         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
8839         expect to need the same thing on every platform.
8841         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
8842         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
8844         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
8845         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
8846         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
8847         Move all these assembly-related definitions to ...
8848         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
8850         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
8851         by Peter Bruin <pjbruin@dds.nl>.
8853         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
8854         packing results for a `poll' call.
8856 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
8858         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
8859         correctly.
8860         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
8861         bracket expression.
8863         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
8864         nrules value.
8865         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
8867 2001-10-24  H.J. Lu  <hjl@gnu.org>
8869         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
8870         Use __BEGIN_DECLS/__END_DECLS around prototypes.
8871         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
8873 2001-10-21  Jim Meyering  <meyering@lucent.com>
8875         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
8876         this code would end up calling gettext even in packages built
8877         with --disable-nls.
8878         * posix/getopt.c (_): Likewise.
8879         * posix/regex.c (_): Likewise.
8881 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
8883         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
8884         lookup not ip6.int.
8885         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
8886         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
8888 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
8890         * misc/sys/cdefs.h (__attribute_used__): Define.
8891         * elf/rtld.c (_dl_start): Add __attribute_used__.
8892         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
8894 2001-10-25  Andreas Schwab  <schwab@suse.de>
8896         * stdlib/a64l.c: Expect least significant digit first.
8897         * stdlib/l64a.c: Produce least significant digit first.
8898         * stdlib/Makefile (tests): Add test-a64l.
8899         * stdlib/test-a64l.c: New file.
8900         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
8902 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
8904         * po/sk.po: Update from translation team.
8906 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
8908         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
8910 2001-10-18  Andreas Schwab  <schwab@suse.de>
8912         * math/libm-test.inc (print_ulps): Print ulp values rounded to
8913         next whole number.
8914         (print_function_ulps): Likewise.
8915         (print_complex_function_ulps): Likewise.
8916         (print_max_error): Likewise.
8917         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
8919 2001-10-16  Andreas Schwab  <schwab@suse.de>
8921         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
8922         implementation.
8924         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
8925         BSD_SETJMP or BSD__SETJMP is defined, resp.
8926         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
8927         a tail call to __sigsetjmp that would require extending the
8928         caller's frame.
8929         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
8930         * sysdeps/m68k/bsd-setjmp.S: Deleted.
8931         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
8932         Reported by Jes Sorensen <jes@trained-monkey.org>.
8934 2001-10-16  Andreas Jaeger  <aj@suse.de>
8936         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
8937         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
8938         close PR libc/2589.
8940 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
8942         * po/ca.po: New file.  Contributed by the translation team.
8944 2001-10-15  Ralf Baechle  <ralf@gnu.org>
8946         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
8947         a varargs prototype.  Remove dependency from kernel header files.
8949         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
8950         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
8952 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
8954         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
8955         to generate hexadecimal identifier.
8956         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
8958 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
8960         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
8962 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
8964         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
8965         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
8966         Contributed by Stephen L Moshier <moshier@mediaone.net>.
8968         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
8969         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8970         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
8971         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
8972         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
8973         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
8975         * timezone/africa: Update from tzdata2001d.
8976         * timezone/asia: Likewise.
8977         * timezone/australasia: Likewise.
8978         * timezone/backward: Likewise.
8979         * timezone/europe: Likewise.
8980         * timezone/leapseconds: Likewise.
8981         * timezone/northamerica: Likewise.
8982         * timezone/southamerica: Likewise.
8983         * timezone/zone.tab: Likewise.
8985 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8987         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
8988         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
8990 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
8992         * elf/elf.h (PT_TLS): New definition.
8994 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
8996         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
8997         bits/errno.h
8999 2001-10-07  Roland McGrath  <roland@frob.com>
9001         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
9003 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
9005         * elf/elf.h: Add more ELFOSABI_* constants.
9007 2001-10-04  Ben Collins  <bcollins@debian.org>
9009         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
9010         decleration of __need_wchar_t.
9012 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
9014         * string/bits/string2.h (__strsep_g): Add prototype.
9015         (__strsep): Use it.
9016         * string/Versions (__strsep): Remove.
9017         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
9019 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
9021         * manua/llio.texi: Clarify file references added by mmap.
9022         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9024 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
9026         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
9027         Add sc_loadrs and sc_rbs_bas to match current kernel.
9029 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
9031         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9033         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
9035 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
9037         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
9038         object has been bumped because of relocation dependency, avoid
9039         duplicates in l_scope.
9040         (show_scope): Fix typos.
9041         * elf/Makefile: Add rules to build and run reldep6.
9042         * elf/reldep6.c: New file.
9043         * elf/reldep6mod0.c: New file.
9044         * elf/reldep6mod1.c: New file.
9045         * elf/reldep6mod2.c: New file.
9046         * elf/reldep6mod3.c: New file.
9047         * elf/reldep6mod4.c: New file.
9049 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
9051         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
9052         sparc64_fixup_plt.
9053         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
9054         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
9055         for non-lazy binding. Fix .plt[32768+] handling.
9056         (elf_machine_plt_value): Don't add addend.
9057         (elf_machine_rela): Call sparc64_fixup_plt instead of
9058         elf_machine_fixup_plt.
9059         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
9060         dynamic linker at 0xfffff800XXXXXXXX.
9062         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9064 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
9066         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
9068 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
9070         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
9071         declare __cmsg_data field if its size would be bigger than 0.
9072         (CMSG_DATA): Adjust accordingly.
9073         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9074         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
9075         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
9076         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
9077         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9078         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9079         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9081 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
9083         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
9084         * iconvdata/testdata/IBM1160: New file.
9085         * iconvdata/testdata/IBM1160..UTF8: New file.
9086         * iconvdata/testdata/IBM1161: New file.
9087         * iconvdata/testdata/IBM1161..UTF8: New file.
9088         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9090 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9092         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
9093         UL_SETFSIZE computations better.
9095         * rt/Makefile: Remove use of filter for librt again.
9097         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
9098         UL_SETFSIZE computations better.
9100         * string/Versions: Export __strsep for GLIBC_2.2.5.
9101         * string/bits/string2.h: Define all __STRING_INLINE functions if
9102         _FORCE_INLINES is defined.
9103         Use int instead of char of parameter types.
9104         (__strsep): Don't use __strsep_g.  Don't define it.
9105         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
9106         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
9107         __strcpy_small.
9108         (__stpcpy_a_small): Renamed from __stpcpy_small.
9109         (__strcspn_c1): Don't define if _FORCE_INLINES.
9110         (__strspn_c1): Likewise.
9112 2001-09-22  Ben Collins  <bcollins@debian.org>
9114         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
9115         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
9116         * sysdeps/ia64/bits/sigaction.h: Likewise.
9117         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
9119 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
9121         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
9123 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
9125         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
9127 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9129         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
9131 2001-09-20  H.J. Lu  <hjl@gnu.org>
9133         * include/dlfcn.h (__RTLD_SPROF): New definiton.
9134         * elf/dl-open.c (dl_open_worker): Return immediately after loading
9135         for __RTLD_SPROF.
9136         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
9137         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9139 2001-09-20  H.J. Lu  <hjl@gnu.org>
9141         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
9142         don't add 1.
9144 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9146         * nss/getent.c: Accept -s parameter to overwrite rules in
9147         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
9149         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
9150         with as many ".0" as necessary to form a complete address
9151         inet_network understands.
9153         * nss/getent.c: Various cleanups.  Use simpler and fewer function
9154         calls.
9156 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9158         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
9159         _JMPBUF_UNWINDS.
9160         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
9162 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9164         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
9165         IBM1161.
9166         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
9167         * iconvdata/ibm1160.c: New file.
9168         * iconvdata/ibm1160.h: New file.
9169         * iconvdata/ibm1161.c: New file.
9170         * iconvdata/ibm1161.h: New file.
9171         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9173 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
9175         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
9176         difference between base address and first PT_LOAD's virtual address,
9177         not the base address.
9179 2001-09-11  Tom Rix  <trix@redhat.com>
9181         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
9182         ifdef for __getopt_clean_environment.
9183         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
9185 2001-09-22  Andreas Jaeger  <aj@suse.de>
9187         * elf/reldep4.c (main): Add proper prototype to fix warning.
9189         * elf/reldep5.c (main): Remove unused variable.
9191         * math/math_private.h: Add prototypes.
9193 2001-09-21  Andreas Jaeger  <aj@suse.de>
9195         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
9196         * sysdeps/x86_64/Dist: New file.
9197         * sysdeps/x86_64/soft-fp/Dist: New file.
9199         * sysdeps/gnu/Dist: Remove eval.c.
9201 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
9203         * malloc/memusage.c (realloc): Don't count already allocated
9204         memory in the sums.
9205         (me): Always use dlsym() to find the real implementations.
9207         * malloc/memusage.sh: Make -n option actually do something.
9209 2001-09-20  Andreas Jaeger  <aj@suse.de>
9211         * elf/elf.h (R_390_NUM): Correct value.
9213         * Versions.def: Add missing versions 2.2.3 for libthread_db and
9214         libpthread.
9216         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
9217         for x86-64, install x86-64 into */lib64.
9219         * shlib-versions: Add x86-64.
9221         * elf/elf.h: Add x86-64 relocations.
9223 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
9225         * po/fr.po: Update from translation team.
9227 2001-09-19  Andreas Jaeger  <aj@suse.de>
9229         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
9230         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9231         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
9232         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
9233         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
9234         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
9235         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
9236         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
9237         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
9238         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
9239         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
9240         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
9241         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
9242         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
9243         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
9244         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
9245         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
9246         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9247         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
9248         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
9249         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
9250         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
9251         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
9252         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
9253         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
9254         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
9255         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
9256         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
9257         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
9258         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
9259         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
9260         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
9261         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
9262         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
9263         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
9264         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
9265         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
9266         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
9267         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
9268         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
9269         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
9270         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
9271         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
9272         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
9273         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
9274         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
9275         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
9276         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
9277         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9278         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
9279         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
9280         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
9281         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
9282         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
9283         * sysdeps/unix/x86_64/sysdep.S: New file.
9284         * sysdeps/unix/x86_64/sysdep.h: New file.
9285         * sysdeps/x86_64/Implies: New file.
9286         * sysdeps/x86_64/Makefile: New file.
9287         * sysdeps/x86_64/Versions: New file.
9288         * sysdeps/x86_64/__longjmp.S: New file.
9289         * sysdeps/x86_64/abort-instr.h: New file.
9290         * sysdeps/x86_64/atomicity.h: New file.
9291         * sysdeps/x86_64/bits/endian.h: New file.
9292         * sysdeps/x86_64/bits/setjmp.h: New file.
9293         * sysdeps/x86_64/bits/string.h: New file.
9294         * sysdeps/x86_64/bp-asm.h: New file.
9295         * sysdeps/x86_64/bsd-_setjmp.S: New file.
9296         * sysdeps/x86_64/bsd-setjmp.S: New file.
9297         * sysdeps/x86_64/dl-machine.h: New file.
9298         * sysdeps/x86_64/elf/initfini.c: New file.
9299         * sysdeps/x86_64/elf/start.S: New file.
9300         * sysdeps/x86_64/ffs.c: New file.
9301         * sysdeps/x86_64/ffsll.c: New file.
9302         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
9303         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
9304         * sysdeps/x86_64/fpu/e_acosl.c: New file.
9305         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
9306         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
9307         * sysdeps/x86_64/fpu/e_expl.c: New file.
9308         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
9309         * sysdeps/x86_64/fpu/e_log10l.S: New file.
9310         * sysdeps/x86_64/fpu/e_log2l.S: New file.
9311         * sysdeps/x86_64/fpu/e_logl.S: New file.
9312         * sysdeps/x86_64/fpu/e_powl.S: New file.
9313         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
9314         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
9315         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
9316         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
9317         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
9318         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
9319         * sysdeps/x86_64/fpu/fegetenv.c: New file.
9320         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
9321         * sysdeps/x86_64/fpu/fegetround.c: New file.
9322         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
9323         * sysdeps/x86_64/fpu/fesetenv.c: New file.
9324         * sysdeps/x86_64/fpu/fesetround.c: New file.
9325         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
9326         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
9327         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
9328         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
9329         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
9330         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
9331         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
9332         * sysdeps/x86_64/fpu/s_atanl.c: New file.
9333         * sysdeps/x86_64/fpu/s_cosl.S: New file.
9334         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
9335         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
9336         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
9337         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
9338         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
9339         * sysdeps/x86_64/fpu/s_logbl.c: New file.
9340         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
9341         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
9342         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
9343         * sysdeps/x86_64/fpu/s_rintl.c: New file.
9344         * sysdeps/x86_64/fpu/s_significandl.c: New file.
9345         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
9346         * sysdeps/x86_64/fpu/s_sinl.S: New file.
9347         * sysdeps/x86_64/fpu/s_tanl.S: New file.
9348         * sysdeps/x86_64/gmp-mparam.h: New file.
9349         * sysdeps/x86_64/hp-timing.c: New file.
9350         * sysdeps/x86_64/hp-timing.h: New file.
9351         * sysdeps/x86_64/htonl.S: New file.
9352         * sysdeps/x86_64/memusage.h: New file.
9353         * sysdeps/x86_64/setjmp.S: New file.
9354         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
9355         * sysdeps/x86_64/stackinfo.h: New file.
9356         * sysdeps/x86_64/sysdep.h: New file.
9357         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
9359         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
9360         L Moshier.
9362 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9364         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
9365         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
9367 2001-09-18  Andreas Schwab  <schwab@suse.de>
9369         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
9370         list, now that l_scope is a pointer.
9372         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
9373         scope list.
9375 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9377         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
9378         (elf_machine_rela_relative): Add a missing declaration.
9380 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
9382         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
9383         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9384         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
9385         ldd-rewrite scripts.
9387 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9389         * elf/ldd.bash.in: Update copyright message.
9391 2001-09-17  H.J. Lu  <hjl@gnu.org>
9393         * hurd/hurdmalloc.c (bcopy): Removed.
9394         (realloc): Replace bcopy with memcpy.
9395         * hurd/path-lookup.c (file_name_path_scan): Likewise.
9396         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
9397         * sunrpc/rpcinfo.c (pmapdump): Likewise.
9399         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
9400         (gethostbyaddr): Likewise.
9401         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
9403 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9405         * sysdeps/gnu/eval.c: Removed.
9407 2001-09-18  Andreas Jaeger  <aj@suse.de>
9409         * sysdeps/i386/fpu/s_logbl.S: Move to ...
9410         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
9412         * sysdeps/i386/fpu/s_rintl.S: Move to ...
9413         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
9415         * sysdeps/i386/fpu/s_significandl.S: Move to ...
9416         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
9418 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
9420         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9421         nrules value.
9423 2001-09-14  H.J. Lu  <hjl@gnu.org>
9425         * sysdeps/mips/fpu/libm-test-ulps: Updated.
9427 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
9429         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
9430         Patch by Florian La Roche <laroche@redhat.com>.
9432         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
9434         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
9435         ETHER_CRC_LEN.
9437 2001-09-14  Andreas Schwab  <schwab@suse.de>
9439         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
9440         Sumner <bls@sgi.com>.
9441         * posix/execlp.c: Likewise.
9443 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
9445         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
9446         is already found earlier in the search scope.
9448 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9450         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
9451         filter.
9453 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
9455         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
9457 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
9459         * config.h.in: Enforce optimization to be used.
9460         * Makeconfig (preprocess-versions): Define ASSEMBLER.
9461         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
9462         * posix/Makefile (annexc-CFLAGS): Define to -O.
9463         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9465 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
9467         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
9468         Patch by Stephan Kulow.
9470 2001-09-08  Ben Collins  <bcollins@debian.org>
9472         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
9473         usage of RESOLVE() (r_type, not reloc->r_type).
9475 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9477         * elf/dl-object.c: Avoid allocating extra memory block for name.
9478         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
9479         allocated separately.
9480         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9482 2001-09-08  H.J. Lu  <hjl@gnu.org>
9484         * po/zh_TW.po: Fix a typo.
9486 2001-09-07  Tom Rix  <trix@redhat.com>
9488         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9490 2001-08-26  Tom Rix  <trix@redhat.com>
9492         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
9493         command line options.
9494         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
9495         * sysdeps/unix/sysv/aix/start.c: Removed.
9496         * sysdeps/unix/sysv/aix/start-libc.c: New file.
9497         * sysdeps/unix/sysv/aix/init-first.c: New file.
9498         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
9500 2001-09-08  Ben Collins  <bcollins@debian.org>
9502         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
9503         * sysdeps/generic/dl-machine.h: Likewise.
9504         * sysdeps/hppa/dl-fptr.c: Likewise.
9505         * sysdeps/ia64/dl-fptr.c: Likewise.
9506         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9507         * sysdeps/mips/dl-machine.h: Likewise.
9508         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9509         * sysdeps/powerpc/dl-machine.c: Likewise.
9511 2001-09-07  Ben Collins  <bcollins@debian.org>
9513         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9515         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9517 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9519         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9520         dependencies if necessary.
9522         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9523         loaded directly) determine length if l_initfini list by iterating
9524         over its elements.  Minor optimizations.
9525         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9526         for dependency objects.
9527         If object was already loaded check whether any of the dependencies
9528         is already on the relocation dependency list.  If yes, remove the
9529         latter.  Minor optimizations.
9530         * elf/dl-lookup.c (add_dependency): Add check for self reference of
9531         maps here.  Search l_initfini list only if the object was loaded
9532         directly and not only as a dependency.
9533         (_dl_lookup_symbol): Add relocation dependency also if object
9534         is not in global scope.  Remove test for self-reference here.
9535         (_dl_lookup_versioned_symbol): Likewise.
9536         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
9537         element of first name record.
9538         * elf/loadtest.c: Add some more test to recognize early if an object
9539         wasn't unloaded.
9540         * elf/Makefile: Add rules to build and run reldep5.
9541         * elf/reldep5.c: New file.
9542         * elf/reldepmod5.c: New file.
9543         * elf/reldepmod6.c: New file.
9545         * elf/reldep2.c: Fix typo.
9547 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
9549         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9550         elements.  Change l_scope to be a pointer only.
9551         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9552         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9553         here add searchlist of newly open file to the dependency's scope.
9554         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9555         only searchlist from its scope.  Free own scope array if necessary.
9556         * elf/Makefile (tests): Add dblload and dblunload now.
9558 2001-09-06  Andreas Jaeger  <aj@suse.de>
9560         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9561         Stephen L Moshier.
9563 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
9565         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
9566         they both fail.
9567         * elf/dblload.c: New file.
9568         * elf/dblloadmod1.c: New file.
9569         * elf/dblloadmod2.c: New file.
9570         * elf/dblloadmod3.c: New file.
9571         * elf/dblunload.c: New file.
9573 2001-09-04  Richard Henderson  <rth@redhat.com>
9575         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9576         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
9578 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9580         Correct very misleading message for error in failed runtime relocation.
9581         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
9582         place of the error.
9583         (_dl_signal_cerror): Likewise.
9584         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
9585         * elf/dl-close.c: Likewise.
9586         * elf/dl-deps.c: Likewise.
9587         * elf/dl-load.c: Likewise.
9588         * elf/dl-lookup.c: Likewise.
9589         * elf/dl-open.c: Likewise.
9590         * elf/dl-reloc.c: Likewise.
9591         * elf/dl-sym.c: Likewise.
9592         * elf/dl-version.c: Likewise.
9593         * sysdeps/generic/dl-sysdep.c: Likewise.
9595 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9597         * iconv/strtab.c (strtabinit): Initialize null Strent.
9598         (newstring): Move len == 0 handling...
9599         (strtabadd): ...here.
9600         If len == 1, return null Strent.
9601         When inserting a suffix of an existing string, check if
9602         it is not equal to some suffix already recorded.
9603         Copy left and right members over if adding longer string.
9605 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9607         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
9609         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
9610         (__syscall_gethostname): Add prototype.
9612 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9614         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
9616 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
9618         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
9620 2001-08-27  Roland McGrath  <roland@frob.com>
9622         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
9623         short, copy that much into NAME anyway before returning error.
9625 2001-09-01  Richard Henderson  <rth@redhat.com>
9627         * sysdeps/alpha/elf/Dist: Remove file.
9628         * sysdeps/alpha/elf/Makefile: Remove file.
9629         * sysdeps/alpha/elf/crtbegin.S: Remove file.
9630         * sysdeps/alpha/elf/crtend.S: Remove file.
9631         * sysdeps/alpha/elf/initfini.c: New file.
9633 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
9635         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
9636         * iconv/tst-iconv3.c: Likewise.
9638 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
9640         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
9642 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
9644         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
9645         export it.
9646         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
9647         * iconv/iconv_prog.c (insert_cache): New function.
9648         (print_known_names): If cache is used call insert_cache to use the
9649         information from the cache [PR libc/2509].
9651 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
9653         * time/strptime.c (strptime_internal): Recognize 'l' format and
9654         handle it like 'I' for symmetry with strftime.
9656 2001-08-31  Richard Henderson  <rth@redhat.com>
9658         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
9659         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
9660         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
9661         (print_statistics): Make scalar unsigned long long.
9662         * sysdeps/alpha/hp-timing.h: New file.
9664 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
9666         * stdio-common/perror.c (perror): Save errno early, pass it
9667         down to perror_internal.
9668         (perror_internal): Add errnum argument.
9670 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
9672         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
9673         Don't add old memory content for R_ALPHA_REFQUAD.
9675 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9677         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
9678         memory correctly.
9680         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
9681         instead of open, __close instead of close, __getpagesize instead
9682         of getpagesize.
9684         * string/argz-stringify.c (__argz_stringify): Use __strnlen
9685         instead of strnlen.
9686         * include/string.h (strndupa): Redefine here to use __strnlen
9687         instead of strnlen.
9688         * string/strndup.c (__strndup): Use __strnlen not strnlen.
9690         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
9691         connected).
9693 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
9695         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
9696         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
9697         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
9698         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
9699         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
9700         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
9701         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
9703 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9705         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
9707 2001-08-30  Andreas Jaeger  <aj@suse.de>
9709         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
9710         contributed Stephen L Moshier.
9712 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
9714         * sunrpc/etc.rpc (sgi_fam): Add.
9716 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9718         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
9720 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
9722         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
9723         first is from a previous call.
9724         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
9726 2001-08-29  Andreas Schwab  <schwab@suse.de>
9728         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
9730 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9732         * config.make.in (INSTALL_SCRIPT): Define.
9733         * Makeconfig (INSTALL_SCRIPT): Define.
9734         * Makerules (do-install-script): New macro to install scripts using
9735         INSTALL_SCRIPT.
9736         (install-bin-script): New rule to install scripts with
9737         do-install-script.
9738         (install-bin-script-nosubdir): New rule.
9739         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
9740         (distinfo-vars): Add $(install-bin-script).
9741         * Rules (others): Likewise.
9742         * Makefile (glibcbug): Install with install-bin-script.
9743         * debug/Makefile (xtrace): Likewise.
9744         (catchsegv): Likewise.
9745         * elf/Makefile (ldd): Likewise.
9746         * malloc/Makefile (mtrace): Likewise.
9747         * timezone/Makefile (tzselect): Likewise.
9749 2001-08-29  H.J. Lu  <hjl@gnu.org>
9751         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
9752         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
9753         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
9755 2001-08-29  Andreas Schwab  <schwab@suse.de>
9757         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
9759 2001-08-28  H.J. Lu  <hjl@gnu.org>
9761         * Makeconfig (combreloc-LDFLAGS): New variable.
9762         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
9763         * config.make.in (have-z-combreloc): New variable.
9764         * configure.in: Substitute libc_cv_z_combreloc.
9766 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
9768         * po/sv.po: Update from translation team.
9769         * po/fr.po: Likewise.
9770         * po/da.po: Likewise.
9772 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9774         * Makerules: Fix a typo: MD% -> MD5.
9776 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
9778         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
9779         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
9781 2001-08-28  Andreas Jaeger  <aj@suse.de>
9783         * manual/libc-texinfo.sh: Add entry about free manuals.
9785         * manual/contrib.texi (Contributors): Fix cross reference.
9787         * manual/libc.texinfo (Copying): Include freemanuals.
9789         * manual/Makefile (appendices): Add freemanuals.
9791         * manual/freemanuals.texi: New file.
9792         Patch by Brian Youmans <3diff@gnu.org>.
9794         * manual/libm-err-tab.pl: Pretty print more platforms, print a
9795         smaller table.
9797         * manual/math.texi (Errors in Math Functions): Fix grammar, start
9798         table on separate page.
9799         Patch by Brian Youmans <3diff@gnu.org>.
9801 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
9803         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
9804         the connection went down after we first used it try to connect
9805         again and resend the message before printing to the console.
9806         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
9808 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
9810         * string/tst-strlen.c (main): Test strnlen (, -1) too.
9811         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
9812         bit set.
9814 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
9816         * iconv/strtab.c (searchstring): Use correct length for comparison.
9817         (strtabadd): Account total size correct if new string has old string as
9818         substring.
9820 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
9822         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
9824 2001-08-27  Andreas Jaeger  <aj@suse.de>
9826         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
9828         * math/libm-test.inc (j0_test): Add extra tests.
9829         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
9830         not x, in Hankel approximation.
9831         Patches by Stephen L Moshier.
9833 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9835         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
9836         link_map.
9838         * configure.in: Fix test for .rela.dyn section.
9840         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
9842 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
9844         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
9845         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
9846         Pass type_class to _dl_lookup_*.
9847         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
9848         Pass around just type_class instead of noexec, noplt pair.
9849         (_dl_lookup_versioned_symbol): Likewise.
9850         (_dl_lookup_symbol_skip): Pass around just type_class instead of
9851         noexec, noplt pair.
9852         (_dl_lookup_versioned_symbol_skip): Likewise.
9853         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
9854         * elf/do-lookup.h (do_lookup): Likewise.
9855         * include/link.h (struct link_map): Replace noexec and noplt fields
9856         in l_lookup_cache with type_class field.
9857         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
9858         ELF_RTYPE_CLASS_COPY): Define.
9859         Adjust prototypes for _dl_lookup_symbol and
9860         _dl_lookup_versioned_symbol.
9861         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
9862         elf_machine_lookup_noexec_p): Remove.
9863         (elf_machine_type_class): Define.
9864         * sysdeps/arm/dl-machine.h: Likewise.
9865         * sysdeps/hppa/dl-machine.h: Likewise.
9866         * sysdeps/cris/dl-machine.h: Likewise.
9867         * sysdeps/i386/dl-machine.h: Likewise.
9868         * sysdeps/ia64/dl-machine.h: Likewise.
9869         * sysdeps/m68k/dl-machine.h: Likewise.
9870         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9871         * sysdeps/mips/dl-machine.h: Likewise.
9872         * sysdeps/powerpc/dl-machine.h: Likewise.
9873         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9874         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9875         * sysdeps/sh/dl-machine.h: Likewise.
9876         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9877         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9879 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9881         * manual/message.texi (Advanced gettext functions): Change
9882         description of plural forms for Slovak.
9883         Reported by Marcel Telka <marcel@telka.sk>.
9885         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
9886         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
9888 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
9890         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
9891         typo.  Patch by Florian La Roche <laroche@redhat.com>.
9893 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
9895         * include/link.h (struct link_map): Add l_lookup_cache element.
9896         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
9897         (RESOLVE_MAP): Likewise.
9898         (_dl_relocate_object): Remove cache initialization.
9899         * elf/dl-lookup.c: Rip out cache handling code.
9900         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
9901         declarations.
9903         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
9904         remove some __builtin_expect.
9905         (_dl_lookup_versioned_symbol): Likewise.
9907         * config.h.in: Add HAVE_Z_COMBRELOC.
9908         * configure.in: Add test for -z combreloc.
9910         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
9911         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
9912         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
9913         case to almost no code.
9915 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
9917         * po/tr.po: Update from translation team.
9919 2001-08-24  Andreas Jaeger  <aj@suse.de>
9921         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
9922         make clean works.
9924 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9926         * elf/rtld.c (print_statistics): Printf % after percent values.
9927         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
9929         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
9930         don't have to compute the hash value and initialize current_value.
9931         Move reference_name variable to where it is needed.
9932         (_dl_lookup_versioned_symbol): Likewise.
9934 2001-08-24  Roland McGrath  <roland@frob.com>
9936         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
9937         Just test that strerror returns non-null for a few errno codes.
9939 2001-08-23  Roland McGrath  <roland@frob.com>
9941         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
9942         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
9944         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
9946         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
9947         __mach_reply_port.
9949 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9951         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
9952         returns NULL.
9954         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
9955         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
9956         doesn't do it.
9957         * elf/rtld.c: Include <sys/param.h>.
9958         * elf/dl-reloc.c: Likewise.
9960 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9962         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
9963         empty to prevent junk from being generated.
9964         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
9966 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
9968         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
9969         records.  Rename endrel to relative, initialize it to r, and use it
9970         in elf_machine_rel_relative calls.  Point r after relative relocs.
9972 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
9974         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
9975         of R_386_NONE.
9977 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
9979         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
9980         necessary.  Undefine newly defined macros at the end.
9981         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
9982         Rename from elf_machine_rel_relative.
9983         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
9984         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
9985         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
9986         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
9987         Likewise.
9988         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
9989         Likewise.
9990         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
9991         Fix argument types.
9992         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
9993         Fix argument types.
9994         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
9995         Likewise.  Fix argument types.
9996         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
9997         Likewise.  Fix argument types.
9998         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
9999         Fix argument types.
10000         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
10001         ElfW(Rel) in argument.
10002         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
10003         function.
10005 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
10007         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
10009 2001-08-24  Andreas Jaeger  <aj@suse.de>
10011         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
10012         Stephen L Moshier <moshier@mediaone.net>.
10014 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10016         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
10017         first if RELCOUNT is set.
10019         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
10020         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
10021         elf_machine_rel_relative.
10022         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
10023         Minor optimizations.
10024         * sysdeps/arm/dl-machine.h: Likewise.
10025         * sysdeps/cris/dl-machine.h: Likewise.
10026         * sysdeps/hppa/dl-machine.h: Likewise.
10027         * sysdeps/i386/dl-machine.h: Likewise.
10028         * sysdeps/ia64/dl-machine.h: Likewise.
10029         * sysdeps/m68k/dl-machine.h: Likewise.
10030         * sysdeps/mips/dl-machine.h: Likewise.
10031         * sysdeps/powerpc/dl-machine.h: Likewise.
10032         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10033         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10034         * sysdeps/sh/dl-machine.h: Likewise.
10035         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10036         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10038 2001-08-23  Roland McGrath  <roland@frob.com>
10040         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
10042         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
10043         sysdeps/mach version.  Implement counting ("recursive") mutexes
10044         on top of cthreads mutexes.
10045         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
10047         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
10048         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
10049         (__libc_cleanup_region_start, __libc_cleanup_region_end,
10050         __libc_clean_end): Define these to call the cleanup function after
10051         normal exit when they're supposed to.
10053         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
10054         Take new first arg DOIT, a boolean saying whether to really install
10055         any cleanup handler.
10056         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
10057         (__libc_cleanup_end): Likewise.
10058         * sysdeps/generic/bits/libc-lock.h: Same changes.
10059         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
10060         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
10061         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
10062         Likewise.
10063         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
10064         * sysdeps/generic/bits/stdio-lock.h
10065         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
10067 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10069         * elf/ldconfig.c (search_dir): Remove stale symlinks.
10071 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10073         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
10074         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
10075         lookups in cache.
10076         (_dl_lookup_versioned_symbol): Likewise.
10077         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
10078         relocation lookup.
10079         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
10080         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
10081         (lookup_cache, lookup_cache_versioned): Add declarations.
10083 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10085         * stdlib/tst-random.c (main): Swap parameters in fail call.
10086         Patch by Pete Bevin <pete@petebevin.com>.
10088 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10090         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
10092 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10094         * malloc/obstack.c: Indent preprocessor directives.
10095         Patch by Jim Meyering <meyering@ascend.com>.
10097         * po/ja.po: Update from translation team.
10099 2001-08-23  Roland McGrath  <roland@frob.com>
10101         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
10103         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
10104         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
10106 2001-08-22  Roland McGrath  <roland@frob.com>
10108         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
10109         __libc_lock_define_recursive.
10110         * elf/dl-open.c: Don't declare it here any more.
10111         * elf/dl-close.c: Likewise.
10112         * elf/dl-lookup.c: Likewise.
10113         * elf/dl-iteratephdr.c: Likewise.
10114         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
10115         __libc_lock_unlock_recursive.
10116         * elf/dl-close.c (_dl_close): Likewise
10117         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
10118         * elf/dl-open.c (_dl_open): Likewise
10120         * sysdeps/generic/bits/libc-lock.h
10121         (__libc_lock_define_recursive): New macro.
10122         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
10123         (_IO_lock_lock): Use __libc_lock_lock_recursive.
10124         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
10126         * conform/conformtest.pl (checknamespace): Sort the output list.
10128         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
10129         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
10130         definitions conditional on [__USE_XOPEN].
10132         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
10133         these unconditionally, not only use [__USE_BSD], so as to match
10134         the sysdeps/unix/sysv/linux files.
10136 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10138         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
10139         avoid warnings.
10141         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
10142         DL_LOOKUP_ADDRESS.
10144 2001-08-22  Roland McGrath  <roland@frob.com>
10146         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
10147         conditionalization of sa_handler/sa_sigaction member types to
10148         match the sysdeps/unix/sysv/linux file.
10150 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10152         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
10153         symbol sizes a bit better.
10155         * sysdeps/ia64/strncpy.S: Complete rewrite.
10156         Contributed by Jakub Jelinek <jakub@redhat.com>.
10158         * string/stratcliff.c (main): Add strncpy test.
10160 2001-08-22  Roland McGrath  <roland@frob.com>
10162         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
10163         and don't declare unsetenv or _environ directly.
10164         (unsetenv): Return int, not void.  Use __environ instead of _environ.
10166 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
10168         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
10169         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
10170         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
10171         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
10172         test for cmsg struct size.
10174 2001-04-23  Paul Eggert  <eggert@twinsun.com>
10176         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
10177         Rename __argc to ___argc in prototypes to avoid compatibility
10178         problems with systems that reserve the identifier "__argc".
10179         Similarly for __argv.
10181 2001-08-21  Roland McGrath  <roland@frob.com>
10183         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
10185         * mach/Makefile (tests): Removed.
10186         * mach/hello.c: File removed.
10188 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10190         * po/sv.po: Update from translation team.
10192         * stdio-common/vfscanf.c: Fix handling of %l[].
10193         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
10195         * libio/Makefile (tests): Add tst-sscanf.
10196         * libio/tst-sscanf.c: New file.
10198         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
10199         * malloc/mtrace.c (tr_where): dli_sname always points to a
10200         non-empty string if != NULL.
10201         Reported by Tim Janik <timj@gtk.org>.
10203 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
10205         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
10206         buf.  Free resources on failure.
10207         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
10208         (makefd_xprt): Likewise.
10209         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
10210         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
10211         * sunrpc/auth_unix.c (authunix_create): Likewise.
10213 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
10215         * string/strnlen.c: Remove.
10216         * sysdeps/generic/strnlen.c: New file.
10217         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
10219 2001-08-21  Roland McGrath  <roland@frob.com>
10221         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
10222         as a macro, not an extern inline function.
10224         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
10225         * Versions.def (libc): Add GLIBC_2.2.5 set.
10226         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
10227         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
10229 2001-08-20  Roland McGrath  <roland@frob.com>
10231         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
10232         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
10234 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10236         * string/bits/string2.h: Remove strnlen optimization here.
10237         * sysdeps/i386/i486/bits/string.h: Add it here.
10239 2001-08-21  Wolfram Gloger  <wg@malloc.de>
10241         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
10243 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10245         * po/gl.po: Update from translation team.
10247 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10249         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
10250         * misc/err.c (convert_and_print): Likewise.
10252         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
10253         function calls.
10255 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10257         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
10258         change of the gregset_t type.
10259         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10261 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10263         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
10265 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10267         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
10269         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
10271 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
10273         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
10274         before calling the cthreads initialization code.
10276 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10278         * argp/argp-help.c: Fix two problems introduced in last change.
10280         * include/dirent.h: Include <dirstream.h> first.
10282 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
10284         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
10286         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
10287         * sunrpc/xdr_rec.c: Likewise.
10288         * sunrpc/xdr_mem.c: Likewise.
10289         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
10290         * sunrpc/rpc_cmsg.c: Likewise.
10291         * sunrpc/getrpcport.c (getrpcport): Likewise.
10292         * sunrpc/clnt_simp.c (callrpc): Likewise.
10293         * sunrpc/clnt_gen.c (clnt_create): Likewise.
10294         * string/envz.c: Likewise.
10296         * po/ko.po: Update from translation team.
10298         * argp/argp-help.c: Handle wide oriented stderr stream.
10300 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
10302         * sysdeps/generic/strtol.c: Little optimizations.  Add some
10303         __builtin_expect.
10305         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
10307         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
10308         * wcsmbs/wcwidth.c (wcwdith): Likewise.
10309         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
10311         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
10313         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
10315         * time/time.h (struct timespec): Use __time_t for tv_sec element.
10317         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
10318         wchar_t for function declarations and defintions.
10320         * misc/sys/select.h: Define __need_time_t before including <time.h>.
10321         Define suseconds_t if it hasn't happened yet.
10323         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
10325         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
10327         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
10328         <stddef.h>.
10330         * conform/data/stddef.h-data: Remove wint_t.
10332         * conform/conformtest.pl: Change namespace test to take #undef
10333         lines into account.
10335         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
10337         * conform/data/sys/socket.h-data: Add sockatmark.
10339 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10341         * io/fts.c: Update from recent BSD source.
10343 2001-08-17  Roland McGrath  <roland@frob.com>
10345         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
10346         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
10347         Likewise.
10349 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10351         * locale/duplocale.c (__duplocale): Also initialize the special
10352         __ctype_* elements.
10354         * conform/data/netdb.h-data: Adjust gai_strerror return type.
10356 2001-08-17  Andreas Jaeger  <aj@suse.de>
10358         * misc/getpass.c: Include wchar.h for prototypes.
10359         * malloc/obstack.c: Likewise.
10361 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10363         * sunrpc/svc_simple.c (universal): Use __write instead of write.
10365         * wcsmbs/wcscoll.c: Also define __wcscoll.
10366         * include/wchar.h: Declare __wcscoll.
10368         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
10369         * libio/vwprintf.c: Likewise.
10370         * libio/wprintf.c: Likewise.
10372         * iconv/gconv_cache.c: Use __munmap instead of munmap.
10374 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
10376         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
10377         instead of mbrtowc.
10378         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10379         wcslen, and __wcscoll instead of wcscoll.
10381         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
10383         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
10384         __getuid instead of getuid.
10386         * stdio-common/perror.c (perror): Use __close instead of close.
10387         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
10388         * libio/freopen.c (freopen): Likewise.
10389         * libio/freopen64.c (freopen64): Likewise.
10391         * libio/tst-ungetwc2.c (main): Define str const.
10393         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
10394         * libio/fwprintf.c: Also define __fwprintf.
10395         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
10396         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
10397         * assert/assert-perr.c: Likewise.
10398         * assert/assert.c: Likewise.
10399         * gmon/gmon.c: Likewise.
10400         * inet/rcmd.c: Likewise.
10401         * malloc/obstack.c: Likewise.
10402         * misc/err.c: Likewise.
10403         * misc/error.c: Likewise.
10404         * misc/getpass.c: Likewise.
10405         * posix/getopt.c: Likewise.
10406         * resolv/res_hconf.c: Likewise.
10407         * stdio-common/perror.c: Likewise.
10408         * stdio-common/psignal.c: Likewise.
10409         * stdlib/fmtmsg.c: Likewise.
10410         * sunrpc/auth_unix.c: Likewise.
10411         * sunrpc/clnt_perr.c: Likewise.
10412         * sunrpc/clnt_tcp.c: Likewise.
10413         * sunrpc/clnt_udp.c: Likewise.
10414         * sunrpc/clnt_unix.c: Likewise.
10415         * sunrpc/svc_simple.c: Likewise.
10416         * sunrpc/svc_tcp.c: Likewise.
10417         * sunrpc/svc_udp.c: Likewise.
10418         * sunrpc/svc_unix.c: Likewise.
10419         * sunrpc/xdr.c: Likewise.
10420         * sunrpc/xdr_array.c: Likewise.
10421         * sunrpc/xdr_rec.c: Likewise.
10422         * sunrpc/xdr_ref.c: Likewise.
10423         * sysdeps/generic/wordexp.c: Likewise.
10425         * po/it.po: Update from translation team.
10427         * misc/err.c: Handle wide oriented stderr stream.
10429 2001-08-14  Tom Rix  <trix@redhat.com>
10431         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
10432         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
10434 2001-08-13  Tom Rix  <trix@redhat.com>
10436         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
10437         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
10438         and __intptr_t.
10440 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10442         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
10443         Store the access registers to the ucontext structure.
10444         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
10445         Likewise.
10447         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
10448         Load the access registers from the ucontext structure.
10449         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
10450         Likewise.
10452         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
10453         offsets to the new ucontext layout.
10454         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
10456         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
10457         of the ucontext structure.
10458         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10460 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
10462         * misc/error.c (error): Handle wide oriented stderr stream correctly.
10463         (error_at_line): Likewise.
10465         * stdio-common/perror.c (perror): Implement according to standard.
10466         The stream orientation must not be changed if the stream was not
10467         oriented before the call.
10468         * stdio-common/Makefile (tests): Add tst-perror.
10469         * stdio-common/tst-perror.c: New file.
10472 See ChangeLog.12 for earlier changes.