Update.
[platform/upstream/glibc.git] / ChangeLog
1 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
2
3         * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
4         * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
5         decided < 0.
6         * intl/finddomain.c (_nl_find_domain): Likewise.
7         * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
8         are done.  First set to -1 to signal initialization is ongoing.
9         Protect against concurrent callers with recursive lock.
10         * intl/finddomain.c (_nl_find_domain): Protect calls to
11         _nl_make_l10nflist.
12         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
13         source address fails, initialized source_addr_len field so that
14         duplicate address recognition does not copy junk.  [BZ #322]
15
16 2004-09-25  Jakub Jelinek  <jakub@redhat.com>
17
18         * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
19         result declaration.
20
21 2004-09-22  Andreas Schwab  <schwab@suse.de>
22
23         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
24
25 2004-09-24  Ulrich Drepper  <drepper@redhat.com>
26
27         * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
28         opened.
29
30         * nis/ypclnt.c (do_ypcall): Add one missing unlock.  Simplify the
31         code a bit.
32
33         * misc/daemon.c (daemon): Define errno in case /dev/null is not
34         the correct device.
35
36         * nis/ypclnt.c (yp_bind_file): Optimize a bit.  Minimal cleanups.
37
38 2004-09-23  Andreas Jaeger  <aj@suse.de>
39
40         * locale/weight.h (findidx): Remove static, it's not supported
41         anymore with GCC 4.0 in a block scope.
42         * locale/weightwc.h (findidx): Likewise.
43         * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
44         (lookup_collation_sequence_value): Likewise.
45         (build_range_exp): Likewise.
46         (build_collating_symbol): Likewise.
47         * iconv/iconvconfig.c (write_output): Likewise.
48         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
49
50         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
51         static, add always_inline attribute.
52         (elf_machine_rela): Likewise.
53         (elf_machine_lazy_rel): Likewise.
54
55         * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
56         on !RESOLVE so that it's not defined in local scope.
57
58 2004-09-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59
60         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
61
62 2004-09-23  Thorsten Kukuk  <kukuk@suse.de>
63
64         * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
65         and BLK* ioctls with linux kernel headers.
66
67 2004-09-23  Ulrich Drepper  <drepper@redhat.com>
68
69         * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
70         * elf/dl-object.c (_dl_new_object): Add new parameter mode.  If mode
71         has RTLD_DEEPBIND set add local searchlist before global scope.
72         * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
73         * elf/rtld.c: Adjust callers of _dl_new_object.
74         * elf/dl-load.c: Likewise.
75         (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
76         for DF_SYMBOLIC.
77         * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
78         _dl_map_object_deps.
79         * elf/tst-deep1.c: New file.
80         * elf/tst-deep1mod1.c: New file.
81         * elf/tst-deep1mod2.c: New file.
82         * elf/tst-deep1mod3.c: New file.
83         * elf/Makefile: Add rules to build and run new tests.
84
85         * elf/dl-deps.c: Pretty printing.
86
87 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
88
89         * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
90         argument to numbers from syscall names.
91         (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
92         (INTERNAL_SYSCALL_NCS): Renamed from...
93         (INTERNAL_SYSCALL_1): ... this.  Use INTERNAL_SYSCALL_NCS.
94         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
95         (INTERNAL_SYSCALL_NCS): Define.
96         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
97         (INTERNAL_SYSCALL_NCS): Likewise.
98         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
99         Change name argument to numbers from syscall names.
100         (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
101         (INTERNAL_SYSCALL_NCS): Define.
102
103 2004-09-22  Ulrich Drepper  <drepper@redhat.com>
104
105         * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
106
107         * string/string.h: Add __nonnull annotations.
108         * stdlib/stdlib.h: Likewise.
109
110 2004-09-20  H.J. Lu  <hongjiu.lu@intel.com>
111
112         * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
113         Renamed to ...
114         (DO_INLINE_SYSCALL_NCS): This.
115         (DO_INLINE_SYSCALL): New.
116         (INLINE_SYSCALL): Updated.
117         (INTERNAL_SYSCALL_NCS): Updated.
118
119 2004-09-21  Ulrich Drepper  <drepper@redhat.com>
120
121         * elf/sprof.c (load_shobj): Add support for reading symbol table
122         from debuginfo file.
123
124         * elf/ldd.bash.in: Fix syntax errors.
125
126 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
127
128         * sysdeps/unix/sysv/linux/dl-execstack.c
129         (_dl_make_stack_executable): Remove some duplication.
130
131         * nscd/nscd.c (options): Mark S option as hidden.
132         (parse_opt): When S option is used, print warning message.
133         * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
134         * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
135         * nscd/aicache.c (addhstaiX): Don't handle secure mode.
136         * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
137
138 2004-09-20  Roland McGrath  <roland@frob.com>
139
140         * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
141         in initializer #if defined.
142
143 2004-09-18  Paul Eggert  <eggert@cs.ucla.edu>
144
145         [BZ #391]
146         * stdlib/getsubopt.c: Merge fixes from gnulib.
147         (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
148         (getsubopt): Use prototypes, not K&R style.
149         Fix bug: memcmp(A,B,N) was being invoked on a memory block B
150         whose size might be smaller than N.  Use strncmp to avoid the bug.
151
152 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
153
154         * configure.in: If selinux has not explictly been requested, don't
155         comment on it missing.
156
157         * elf/dl-load.c: Define __stack_prot.
158         * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
159         __stack_prot here, just declare it.
160
161 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
162
163         * configure.in (libc_cv_z_relro): Only set to yes if linker script
164         contains DATA_SEGMENT_RELRO_END.
165
166 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
167
168         * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
169         Reorder code slightly.
170         * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
171         is non-null, _dl_setup_hash will do that.
172
173 2004-09-19  Ulrich Drepper  <drepper@redhat.com>
174
175         * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
176         callback to set IDs in all other threads as well.
177         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
178         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
179         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
180         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
181         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
182         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
183         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
184         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
185         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
186         * sysdeps/unix/sysv/linux/setuid.c: New file.
187         * sysdeps/unix/sysv/linux/setgid.c: New file.
188         * sysdeps/unix/sysv/linux/setreuid.c: New file.
189         * sysdeps/unix/sysv/linux/setregid.c: New file.
190         * sysdeps/unix/sysv/linux/setresuid.c: New file.
191         * sysdeps/unix/sysv/linux/setresgid.c: New file.
192         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
193         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
196         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
197         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
198         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
199         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
200         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
201         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
202         and setresuid.
203         * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
204         * nscd/grpcache.c: Likewise.
205         * nscd/hstcache.c: Likewise.
206         * nscd/pwdcache.c: Likewise.
207
208         * resolv/res_mkquery.c (res_nmkquery): Fix typo.
209
210 2004-09-18  Ulrich Drepper  <drepper@redhat.com>
211
212         * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
213         from memory.
214         * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
215         __stack_flags.
216
217         * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
218         gethostbyname3_r if we are not looking for the canonical name.
219
220         * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
221         time.
222
223 2004-09-18  Roland McGrath  <roland@redhat.com>
224
225         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
226         system call.
227
228 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
229
230         * include/link.h (struct link_map): Add l_used element.
231         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
232         * elf/rtld.c (process_dl_debug): Recognize unused.
233         (dl_main): When unused debug flag is set check for unused direct
234         dependencies.
235         When printing dependencies and SONAME starts with /, omit the SONAME =>
236         part.
237         * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
238         symbol has been found as used.
239         * elf/ldd.bash.in: Add -u option.
240
241 2004-09-18  Jakub Jelinek  <jakub@redhat.com>
242
243         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
244         Do nothing if __NR_set_tid_address is not defined.  [BZ #390]
245
246 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
247
248         * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
249         in case it is available.
250
251 2004-09-17  Jakub Jelinek  <jakub@redhat.com>
252
253         * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
254         key to the socket.
255
256 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
257
258         * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
259         for gcc 3.3 and higher.
260         * io/fcntl.h: Add __nonnull where appropriate.
261         * io/ftw.h: Likewise.
262         * io/utime.h: Likewise.
263         * io/sys/poll.h: Likewise.
264         * io/sys/sendfile.h: Likewise.
265         * io/sys/stat.h: Likewise.
266         * io/sys/statfs.h: Likewise.
267         * io/sys/statvfs.h: Likewise.
268         * posix/unistd.h: Likewise.
269         * catgets/nl_types.h: Likewise.
270         * crypt/crypt.h: Likewise.
271         * debug/execinfo.h: Likewise.
272
273 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
274
275         * posix/glob.h: Remove cruft to make header usable outside glibc.
276         The maintenance headache is too big.
277
278         * configure.in: Add test for required SELinux features.
279         * config.make.in: Add have-selinux entry.
280         * config.h.in: Add HAVE_SELINUX entry.
281         * nscd/Makefile (nscd-modules): Add selinux.
282         (CFLAGS-selinux.c): Add -fpie.
283         Define selinux-LIBS and use in link line.
284         * nscd/connections.c (handle_request): Check access SELinux permissions
285         before processing request.
286         * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
287         * nscd/nscd_stat.c: Transmit and print AVC statistics.
288         * nscd/selinux.c: New file.
289         * nscd/selinux.h: New file.
290         Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
291
292 2004-09-16  Jakub Jelinek  <jakub@redhat.com>
293
294         * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
295         instead of munmap.
296
297         * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
298
299 2004-09-16  Thorsten Kukuk  <kukuk@suse.de>
300
301         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
302         __nss_not_use_nscd_hosts variable if nscd should be used or not.
303
304 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
305
306         * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
307         Add __nscd_getai prototype.
308         * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
309         * nscd/nscd-client.h: Remove __nscd_getai prototype.
310         * nscd/nscd_getai.c: Include nscd_proto.h.
311
312         * elf/ldd.bash.in: Add support for SELinux environments.
313         Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
314
315 2004-09-16  Roland McGrath  <roland@redhat.com>
316
317         * configure.in (--with-headers): Let argument contain a : separated
318         list of directories to use, not just one.
319         * configure: Regenerated.
320
321 2004-09-15  Richard Henderson  <rth@redhat.com>
322
323         * sysdeps/alpha/fpu/libm-test-ulps: Update.
324         * scripts/data/c++-types-alpha-linux-gnu.data: New file.
325
326 2004-09-15  Ulrich Drepper  <drepper@redhat.com>
327
328         * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
329         get ttl and canonical name.  Use these two values.
330         * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
331         * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
332         If nonnull fill with TTL and pointer to canonical name respectively.
333         (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
334         (_nss_dns_gethostbyname2_r): Just wrapper around
335         _nss_dns_gethostbyname3_r.
336         (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
337         Take two new parameters which as passed to getanswer_r.
338
339         * nscd/Makefile (rountines): Add nscd_getai.
340         (nscd-modules): Add aicache.
341         * nscd/aicache.c: New file.
342         * nscd/nscd_getai.c: New file.
343         * nscd/cache.c (prune_cache): Handle GETAI request type.
344         * nscd/connections.c: Add GETAI support in request handling.
345         * nscd/nscd-client.h (request_type): Add GETAI.
346         Define ai_response_header and struct nscd_ai_result types.
347         (struct datahead): Add aidata field.
348         Declare __nscd_getai.
349         * nscd/nscd.c: Add getaddrinfo definition to catch problems.
350         * nscd/nscd.h: Declare addhstai and readdhstai.
351
352         * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
353         * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
354
355         * nscd/nscd-client.h  (struct datahead): Use uint8_t instead of bool.
356
357 2004-09-14  Ulrich Drepper  <drepper@redhat.com>
358
359         * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
360
361 2004-09-13  Ulrich Drepper  <drepper@redhat.com>
362
363         * misc/sys/cdefs.h: Restore old definition of __P.
364         * csu/munch.awk: Remove uses of __P and __PMT.
365         * gmon/gmon.c: Likewise.
366         * hesiod/hesiod.h: Likewise.
367         * include/stdio.h: Likewise.
368         * io/fts.c: Likewise.
369         * libio/genops.c: Likewise.
370         * libio/libioP.h: Likewise.
371         * libio/fileops.c: Likewise.
372         * libio/iolibio.h: Likewise.
373         * libio/libio.h: Likewise.
374         * libio/memstream.c: Likewise.
375         * libio/oldfileops.c: Likewise.
376         * libio/oldstdfiles.c: Likewise.
377         * libio/iopopen.c: Likewise.
378         * libio/vsnprintf.c: Likewise.
379         * libio/vswprintf.c: Likewise.
380         * libio/wgenops.c: Likewise.
381         * libio/oldiopopen.c: Likewise.
382         * locale/programs/xmalloc.c: Likewise.
383         * locale/programs/xstrdup.c: Likewise.
384         * malloc/mtrace.c: Likewise.
385         * misc/getttyent.c: Likewise.
386         * misc/getusershell.c: Likewise.
387         * nis/rpcsvc/ypupd.h: Likewise.
388         * posix/fnmatch.h: Likewise.
389         * posix/glob.h: Likewise.
390         * resolv/arpa/nameser.h: Likewise.
391         * resolv/gethnamaddr.c: Likewise.
392         * resolv/resolv.h: Likewise.
393         * resolv/inet_net_ntop.c: Likewise.
394         * resolv/inet_net_pton.c: Likewise.
395         * resolv/res_init.c: Likewise.
396         * resolv/nss_dns/dns-network.c: Likewise.
397         * stdio-common/vfprintf.c: Likewise.
398         * stdio-common/reg-printf.c: Likewise.
399         * sysdeps/generic/chflags.c: Likewise.
400         * sysdeps/generic/fchflags.c: Likewise.
401         * sysdeps/generic/glob.c: Likewise.
402         * sysdeps/generic/printf_fphex.c: Likewise.
403         * sysdeps/generic/memcmp.c: Likewise.
404         * sysdeps/generic/memcopy.h: Likewise.
405         * sysdeps/generic/morecore.c: Likewise.
406         * sysdeps/generic/sstk.c: Likewise.
407         * sysdeps/posix/sigvec.c: Likewise.
408         * sysdeps/posix/ttyname_r.c: Likewise.
409         * sysdeps/standalone/arm/bits/errno.h: Likewise.
410         * sysdeps/standalone/standalone.h: Likewise.
411         * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
412         * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
413         * sysdeps/unix/arm/start.c: Likewise.
414         * sysdeps/unix/bsd/sigaction.c: Likewise.
415         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
416         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
417         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
418         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
419         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
420         * sysdeps/unix/sparc/start.c: Likewise.
421         * sysdeps/unix/sysv/getdents.c: Likewise.
422         * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
423         * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
424         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
425         * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
426         * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
427         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
428         * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
429         * sysdeps/unix/sysv/irix4/start.c: Likewise.
430         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
431         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
432         * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
433         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
434         * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
435         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
436         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
437         * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
438         * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
439         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
440         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
441         * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
442         * time/tzset.c: Likewise.
443         * time/strftime_l.c: Likewise.
444         * time/strptime_l.c: Likewise.
445         * crypt/md5.h: Likewise.
446
447 2004-09-13  Andreas Jaeger  <aj@suse.de>
448
449         * configure.in: Support GCC 4.x.
450         * configure: Regenerated.
451
452 2004-09-13  Thorsten Kukuk  <kukuk@suse.de>
453
454         * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
455
456         * nscd/nscd.init: Fix path to socket.
457
458 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
459
460         * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
461         Avoid file descriptor leak in case of size mismatch.
462
463         * nscd/nscd-client.h: Fix database structure layout for biarch.
464         * nscd/mem.c (gc): Add casts to avoid warnings.
465
466         * nss/getent.c: Don't preconstruct help message.  Do it only when
467         needed.
468
469         * locale/programs/locale.c: Simplify help message printing.
470
471 2004-09-12  Roland McGrath  <roland@frob.com>
472
473         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
474         missing in last change.
475
476 2004-09-11  Thorsten Kukuk  <kukuk@suse.de>
477
478         * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
479         before writing data into the buffer with negative offset.
480         * nis/nss_compat/compat-initgroups.c: Likewise.
481         * nis/nss_compat/compat-pwd.c: Likewise.
482         * nis/nss_compat/compat-spwd.c Likewise.
483
484 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
485
486         * misc/syslog.c (vsyslog): Fix copying of PID in case of
487         out-of-memory situation.  [BZ #365].
488
489         * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
490         __THROW in inline function definitions.
491
492         * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
493         * posix/spawnattr_setflags.c: Check whether any unknown bit is set
494         in FLAGS parameter and fail if this is the case.
495         * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
496         set.
497
498         * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
499         * nscd/grpcache.c (cache_addgr): Likewise.
500         * nscd/hstcache.c (cache_addhst): Likewise.
501
502 2004-09-11  Roland McGrath  <roland@frob.com>
503
504         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
505         Set _dl_phdr and _dl_phnum.
506         (init1): When bootstrap task, bail early and never examine *D.
507
508 2004-09-11  Alfred M. Szmidt  <ams@kemisten.nu>
509
510         * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
511         Cast THR, SEL and DESC to `void'.
512
513 2004-09-11  Ulrich Drepper  <drepper@redhat.com>
514
515         * nscd/connections.c (nscd_run): Call setup_thread only for enabled
516         databases.
517
518         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
519
520 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
521
522         * nscd/nscd.c (pagesize_m1): New variable.
523         (main): Initialize it.
524         * nscd/nscd.h: Declare pagesize_m1.
525         * nscd/hstcache.c: Pass correctly aligned address to msync.
526         * nscd/grpcache.c: Likewise.
527         * nscd/pwdcache.c: Likewise.
528
529 2004-09-10  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
530
531         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
532         __nwaiters.  If pthread_cond_destroy has been called and this is
533         the last waiter, signal pthread_cond_destroy caller and avoid
534         using the pthread_cond_t structure after unlock.
535         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
536
537 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
538
539         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
540         __ASSUME_CLONE_STOPPED.
541
542 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
543
544         * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
545         __asm__ for C++.  [BZ #377]
546
547 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
548
549         * nscd/nscd_stat.c: Improve output by also printing .shared and
550         .persistent.
551
552         * nscd/connections.c: Allow cache sharing to be really disabled.
553
554 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
555
556         * malloc/malloc.c (_int_free): Only do arena boundary check for
557         contiguous arenas.
558
559 2004-09-10  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
560
561         * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
562         instruct operands.
563         * elf/elf.h: Add R_M32R_* relocs.
564
565 2004-09-09  Ulrich Drepper  <drepper@redhat.com>
566
567         * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
568         seems not to support the nothrow attribute.  Use it only for gcc
569         3.3 and higher.
570
571         * malloc/hooks.c (top_check): Print top chunk corruption as normal
572         error message.
573
574         * malloc/malloc.c (malloc_printerr): Don't make informational
575         message look like error message.
576
577 2004-09-09  Andreas Jaeger  <aj@suse.de>
578
579         * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
580
581 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
582
583         * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
584
585         * malloc/malloc.c (_int_free): Add inexpensive double free and
586         memory corruption tests.
587         (malloc_printf_nc): Renamed to malloc_printerr.  Second parameter
588         is no format string anymore.  Don't use stdio.  Adjust all callers.
589         * malloc/hooks.c: Adjust malloc_printf_nc callers.
590
591 2004-09-08  Roland McGrath  <roland@redhat.com>
592
593         * malloc/mcheck.c: Don't use __P.
594         Use prototypes definitions for static functions.
595
596 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
597
598         * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
599
600 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
601             Jakub Jelinek  <jakub@redhat.com>
602
603         * nscd/nscd-client.h: Add a few #includes.
604
605         * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
606         * nscd/connections.c (nscd_run): Call setup_thread for maintenance
607         threads.
608         * nscd/nscd-client.h (struct database_pers_head): Add
609         nscd_certainly_running field.
610         * nscd/nscd.h: Declare setup_thread.
611         * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
612         nscd_certainly_running is nonzero.
613         * sysdeps/generic/nscd_setup_thread.c: New file.
614         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
615
616 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
617
618         * nscd/connections.c: Implement r/o sharing of nscd's cache with client
619         processes via shared memory.
620         * nscd/nscd-client.h: Likewise.
621         * nscd/nscd.h: Likewise.
622         * nscd/nscd_conf.c: Likewise.
623         * nscd/nscd_getgr_r.c: Likewise.
624         * nscd/nscd_getpw_r.c: Likewise.
625         * nscd/nscd_gethst_r.c: Likewise.
626         * nscd/nscd.conf: Add new config parameters.
627         * nscd/Makefile (aux): Add nscd_helper.
628         * nscd/nscd_helper.c: New file.
629         * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
630
631         * nscd/hstcache.c: Simplify a lot.  We cache only the request itself,
632         no derived information.
633         * connections.c (nscd_init): Fix bug in testing size of the persistent.
634
635         * nis/Makefile (aux): Add nis_hash.
636         * nis/nis_hash.c: New file.  Split out from nis_util.c.
637         * nis/nis_util.c: Move __nis_hash code in separate file.
638
639         * csu/tst-atomic.c: Improve atomic_increment_val test which would
640         not have found a ppc bug.
641
642         * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
643
644         * malloc/arena.c: Remove __MALLOC_P uses.
645         * malloc/malloc.c: Likewise.
646
647         * malloc/mtrace.c: Remove __P uses.
648         * malloc/mcheck-init.c: Likewise.
649
650 2004-09-07  Jakub Jelinek  <jakub@redhat.com>
651
652         * sysdeps/powerpc/powerpc64/configure.in: New file.
653         * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
654         * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
655         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
656         (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
657         BODY_PREFIX): Define.
658         (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
659         HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
660         USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
661         * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
662         (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
663
664 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
665
666         * malloc/malloc.h: Don't define __THROW if it is already defined.
667
668         * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
669         (atomic_decrement): Define.
670
671         * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
672         atomic_decrement_val.
673         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
674         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
675
676         * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
677         and atomic_decrement_val.
678
679         * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
680         and atomic_delay is not already defined.
681         * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
682         * sysdeps/x86_64/bits/atomic.h: Likewise.
683
684         * miscd/sys/cdefs.h (__NTH): New macro.
685         (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
686         (__REDIRECT_NTH): New macro.
687         * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
688         * ctype/ctype.h: Likewise.
689         * dirent/dirent.h: Likewise.
690         * io/fcntl.h: Likewise.
691         * io/sys/sendfile.h: Likewise.
692         * io/sys/stat.h: Likewise.
693         * io/sys/statfs.h: Likewise.
694         * io/sys/statvfs.h: Likewise.
695         * libio/bits/stdio.h: Likewise.
696         * misc/sys/mman.h: Likewise.
697         * posix/unistd.h: Likewise.
698         * resource/sys/resource.h: Likewise.
699         * rt/aio.h: Likewise.
700         * signal/signal.h: Likewise.
701         * stdlib/stdlib.h: Likewise.
702         * string/argz.h: Likewise.
703         * string/string.h: Likewise.
704         * sysdeps/generic/inttypes.h: Likewise.
705         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
706         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
707         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
708         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
709         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
710         * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
711         * wcsmbs/wchar.h: Likewise.
712
713         * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
714
715         * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
716         definition.
717
718         * io/sys/poll.h: Remove __THROW from poll prototype, it's a
719         cancellation point.
720
721         * io/fts.c (fts_open): Remove uses of __P.
722
723         * include/stdlib.h: No need to use __THROW in this header.
724
725 2004-09-06  Roland McGrath  <roland@frob.com>
726
727         * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
728         validity, since __assert_fail gets to here anyway.  Just fail.
729
730 2004-09-06  Ulrich Drepper  <drepper@redhat.com>
731
732         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
733         AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
734         addresses.
735
736 2004-09-05  Richard Henderson  <rth@redhat.com>
737
738         * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
739         * sysdeps/unix/sysv/linux/kernel-features.h
740         (__ASSUME_IEEE_RAISE_EXCEPTION): New.
741         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
742         * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
743         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
744         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
745
746 2004-09-05  Richard Henderson  <rth@redhat.com>
747
748         * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
749         * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
750         sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
751         sysdeps/alpha/remqu.S: Likewise.
752         * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
753
754 2004-09-05  Ulrich Drepper  <drepper@redhat.com>
755
756         * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
757         GETHOSTBYADDRv6 requests.
758
759 2004-09-04  Ulrich Drepper  <drepper@redhat.com>
760
761         * nscd/pwdcache.c (cache_addpw): Use correct key length in
762         cache_add calls.
763         * nscd/grpcache.c (cache_addgr): Likewise.
764
765 2004-09-03  Alfred M. Szmidt  <ams@kemisten.nu>
766
767         * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
768         to `dtv_t *'.
769
770 2004-09-03  Ulrich Drepper  <drepper@redhat.com>
771
772         * nscd/nscd.c (parse_opt): Use writev instead of two write for
773         invalidate command.
774
775 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
776
777         * nscd/connections.c (nscd_run): Check early for invalid request types.
778
779 2004-09-02  Roland McGrath  <roland@frob.com>
780
781         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
782         (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
783         (THREAD_SELF): New macro.
784
785 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
786
787         [BZ #357]
788         * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
789         (main): Call test_stack.
790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
791         (__getcontext): Push stack frame then save parms in local frame.
792         Improve instruction scheduling.
793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
794         (__swapcontext): Likewise.
795
796 2004-09-01  Andreas Schwab  <schwab@suse.de>
797
798         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
799         __builtin_offsetof.
800
801 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
802
803         [BZ #361]
804         * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
805         to normal_bracket after fetching the next character.
806         * posix/tst-fnmatch.input: Add 25 new tests.
807         Reported by Markus Oberhumer <markus@oberhumer.com>.
808
809 2004-09-01  Ulrich Drepper  <drepper@redhat.com>
810
811         * elf/rtld.c (dl_main): First check existence of ld.so.preload
812         with access.
813
814 2004-09-01  Roland McGrath  <roland@redhat.com>
815
816         * sysdeps/unix/sysv/linux/bits/waitflags.h
817         (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
818         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
819         New macro.
820         * sysdeps/unix/sysv/linux/waitid.c: New file.  Use new syscall when
821         available, or fall back to the waitpid-based generic code.
822
823 2004-08-14  Alfred M. Szmidt  <ams@kemisten.nu>
824
825         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
826         clobber the `ebp' register.
827         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
828         Reverts change from 2004-05-07 by Jeroen Dekkers.
829
830         * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
831         NEWSP from `void *' to `int *'.  Changed all casts accordingly.
832
833 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
834
835         * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
836         before return type.
837         * locale/localename.c (__current_locale_name): Likewise.
838
839 2004-08-30  Roland McGrath  <roland@frob.com>
840
841         * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
842         later sets from output.
843         * Makerules (check-abi): Pass option to set that with value of
844         LIB-abi-frozen variable if one is set.
845
846         * abilist/libcidn.abilist: New file (empty).
847
848 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
849
850         * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
851         not __USE_XOPEN2K, use the Unix98 mandated values.
852
853 2004-08-27  Roland McGrath  <roland@redhat.com>
854
855         * configure.in (usetls): Default to yes.
856         * configure: Regenerated.
857
858 2004-08-26  Roland McGrath  <roland@redhat.com>
859
860         * configure.in (add_ons_automatic): New variable, set to yes or no
861         indicating --enable-add-ons with no explicit list.
862         (running add-on fragments): Allow a fragment to modify $libc_add_on
863         and have that affect its place in the list of add-ons to use.
864         * configure: Regenerated.
865
866 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
867
868         * nscd/cache.c: Major rewrite.  The data is now optionally kept in
869         a mmaped memory region which is automatically mirrored on disk.
870         This implements persistent data storage.  The Memory handled
871         needed to be completely revamped, it now uses a garbage collection
872         mechanism instead of malloc.
873         * nscd/connections.c: Likewise.
874         * nscd/nscd.c: Likewise.
875         * nscd/nscd.h: Likewise.
876         * nscd/nscd_conf.c: Likewise.
877         * nscd/nscd_stat.c: Likewise.
878         * nscd/grpcache.c: Likewise.
879         * nscd/hstcache.c:: Likewise.
880         * nscd/pwdcache.c:: Likewise.
881         * nscd/Makefile: Add rules to build mem.c.
882         * nscd/mem.c: New file.
883         * nscd/nscd.conf: Describe new configuration options.
884
885 2004-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
886
887         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
888         NO_SGIDEFS_H isn't defined.
889         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
890         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
891
892         * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
893         _MIPS_SIM.
894         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
895         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
896         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
897
898 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
899
900         * nscd/connections.c (nscd_run): atomic_increment was not missing.
901
902         * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
903         Patch by Greg Schafer.
904
905 2004-08-25  Richard Henderson  <rth@redhat.com>
906
907         * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
908         instead of $31.  Zero $15.
909         * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
910
911 2004-08-25  Ulrich Drepper  <drepper@redhat.com>
912
913         * sysdeps/powerpc/powerpc64/bits/atomic.h
914         (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
915         is negative.
916         (__arch_compare_and_exchange_bool_32_rel): Likewise.
917
918         * nscd/connections.c: Make socket nonblocking so that threads
919         don't get stuck on accept.  Fix locking.
920
921         * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
922         entry with alternative key.
923         * nscd/pwdcache.c (cache_addpw): Likewise.
924
925 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
926
927         * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
928         __libc_stack_end.
929
930 2004-08-23  Ulrich Drepper  <drepper@redhat.com>
931
932         * sysdeps/gnu/netinet/udp.h: Cosmetic changes.  Remove unnecessary
933         __BEGIN_DECLS/__END_DECLS.
934
935 2004-08-23  Andreas Jaeger  <aj@suse.de>
936
937         [BZ #341]
938         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
939         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
940         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
941         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
942         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
943         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
944         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
945         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
946         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
947         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
948         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
949         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
950         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
951
952 2004-08-21  Ulrich Drepper  <drepper@redhat.com>
953
954         * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
955         (check_action): Likewise.
956         When printing error messages, use malloc_printf_nc now instead of
957         fiddling with the streams cancellation flag in every place.
958         * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition.  Change
959         default to 3.
960         (check_action): New variable.
961         (unlink): Print error message and eventually terminate in case list
962         is corrupted.
963         (malloc_printf_nc): New function.  Use it in _int_free.
964         Change proposed by Arjan van de Ven.
965
966         * dlfcn/Makefile: Don't build eval.c anymore.
967
968 2004-08-20  Roland McGrath  <roland@frob.com>
969
970         * csu/Makefile ($(objpfx)version-info.h): Use printf in place
971         of echo -e for POSIX.2 portability.
972         Reported by Paul Jarc <prj@po.cwru.edu>.
973
974 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
975
976         * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
977         list generation.
978
979         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
980         getcanonname_r function if AI_CANONNAME flag is not set in
981         request.
982
983         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
984         Initialize mysize with limits only if latter is >= 0.  Use mysize
985         in malloc call.
986
987 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
988
989         * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
990         to avoid warning.
991
992         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
993         status to NSS_STATUS_UNAVAIL.
994
995 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
996
997         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
998         cannoname lookup since it has the FQDN even if the original NAME
999         value has not.
1000
1001 2004-08-18  Ulrich Drepper  <drepper@redhat.com>
1002
1003         * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
1004         pointer in new variable ORIG_NAME and use this pointer when
1005         determination of canonical name failed, not the possibly IDN
1006         translated value of NAME.
1007
1008 2004-08-17  Ulrich Drepper  <drepper@redhat.com>
1009
1010         * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
1011         * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
1012         Reset RES_NOIP6DOTINT flag in this case..
1013
1014         * sysdeps/posix/getaddrinfo.c: Fix memory handling of
1015         ai_canonname.
1016
1017 2004-08-16  Ulrich Drepper  <drepper@redhat.com>
1018
1019         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
1020         CNAME records, we better follow the chain of CNAME records which
1021         can be accomplished with A/AAAA lookups.
1022
1023 2004-08-15  Roland McGrath  <roland@redhat.com>
1024
1025         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
1026         Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
1027         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1028         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1029         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1030
1031 2004-08-15  Roland McGrath  <roland@frob.com>
1032
1033         * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
1034         this, not ...
1035         (static-only-routines): ... this.
1036         * sysdeps/ia64/Makefile: Likewise.
1037         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
1038         * sysdeps/sparc/sparc64/Makefile: Likewise.
1039         * sysdeps/x86_64/Makefile: Likewise.
1040         * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
1041         * sysdeps/ia64/hp-timing.c: Likewise.
1042         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1043         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1044
1045         * csu/elf-init.c: Update copyright terms including special exception
1046         for these trivial files, which are statically linked into executables
1047         that use dynamic linking for the significant library code.
1048         * io/fstat.c: Likewise.
1049         * io/fstat64.c: Likewise.
1050         * io/lstat.c: Likewise.
1051         * io/lstat64.c: Likewise.
1052         * io/stat.c: Likewise.
1053         * io/stat64.c: Likewise.
1054         * stdlib/atexit.c: Likewise.
1055         * sysdeps/alpha/elf/initfini.c: Likewise.
1056         * sysdeps/alpha/elf/start.S: Likewise.
1057         * sysdeps/arm/elf/start.S: Likewise.
1058         * sysdeps/cris/elf/start.S: Likewise.
1059         * sysdeps/generic/initfini.c: Likewise.
1060         * sysdeps/generic/mknod.c: Likewise.
1061         * sysdeps/hppa/elf/initfini.c: Likewise.
1062         * sysdeps/hppa/elf/start.S: Likewise.
1063         * sysdeps/i386/elf/start.S: Likewise.
1064         * sysdeps/i386/i686/hp-timing.c: Likewise.
1065         * sysdeps/ia64/elf/initfini.c: Likewise.
1066         * sysdeps/ia64/elf/start.S: Likewise.
1067         * sysdeps/ia64/hp-timing.c: Likewise.
1068         * sysdeps/m68k/elf/start.S: Likewise.
1069         * sysdeps/mach/start.c: Likewise.
1070         * sysdeps/mips/elf/start.S: Likewise.
1071         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1072         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1073         * sysdeps/s390/s390-32/elf/start.S: Likewise.
1074         * sysdeps/s390/s390-32/initfini.c: Likewise.
1075         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1076         * sysdeps/s390/s390-64/initfini.c: Likewise.
1077         * sysdeps/sh/elf/initfini.c: Likewise.
1078         * sysdeps/sh/elf/start.S: Likewise.
1079         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1080         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1081         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1082         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1083         * sysdeps/standalone/i386/start.S: Likewise.
1084         * sysdeps/standalone/i960/start.S: Likewise.
1085         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
1086         * sysdeps/unix/arm/start.c: Likewise.
1087         * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
1088         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1089         * sysdeps/unix/sparc/start.c: Likewise.
1090         * sysdeps/unix/start.c: Likewise.
1091         * sysdeps/unix/sysv/aix/start.s: Likewise.
1092         * sysdeps/unix/sysv/irix4/start.c: Likewise.
1093         * sysdeps/x86_64/elf/initfini.c: Likewise.
1094         * sysdeps/x86_64/elf/start.S: Likewise.
1095
1096 2004-08-15  Roland McGrath  <roland@redhat.com>
1097
1098         [BZ #227]
1099         * sysdeps/unix/sysv/linux/kernel-features.h
1100         (__ASSUME_BRK_PAGE_ROUNDED): New macro.
1101         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1102         [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
1103         the partial page after the dynamic linker's own data segment.
1104
1105 2004-08-15  Ulrich Drepper  <drepper@redhat.com>
1106
1107         * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
1108         v4-mapped addresses a bit.
1109         (gethosts): Move alloca out of macro, so that it is done only once.
1110
1111         * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
1112         addr to avoid casts.
1113         (gethosts): Removed.
1114         (gethosts2): Renamed to gethosts.  Make it usable for family !=
1115         AF_UNSPEC.  Fix AI_V4MAPPED.
1116         (gaih_inet): Remove use of old gethosts.  Always use what used to be
1117         gethosts2.  If entry is found, try to use the same NSS module's
1118         getcanonname_r function.  Use gethostbyaddr for AI_CANONNAME only
1119         if getcanonname_r was not available.  Fix filtering of AI_V4MAPPED
1120         addresses.  Numerous cleanups.
1121         * resolv/nss_dns/dns-canon.c: New file.
1122         * resolv/Makefile (libnss_dns-routines): Add dns-canon.
1123         * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
1124
1125         * elf/Makefile: Add rules to build and run tst-dlopenrpath.
1126         * elf/tst-dlopenrpath.c: New file.
1127         * elf/tst-dlopenrpathmod.c: New file.
1128
1129         * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
1130         * intl/tst-gettext.c: Likewise.
1131
1132         * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
1133
1134         * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
1135         AF_INET6.
1136
1137 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1138
1139         * po/de.po: Update from translation team.
1140
1141 2004-08-14  Roland McGrath  <roland@frob.com>
1142
1143         * sysdeps/mach/configure: Regenerated.
1144         * sysdeps/mach/hurd/configure: Regenerated.
1145
1146 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1147
1148         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
1149         performed, make sure it is still the first entry after sorting
1150         that has the ai_canonname information.
1151
1152         * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
1153         only in one entry.
1154
1155 2004-08-13  Daniel Jacobowitz  <dan@debian.org>
1156
1157         * scripts/output-format.sed: Handle default case of three-argument
1158         OUTPUT_FORMAT.
1159
1160         * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
1161         __attribute_used__.
1162
1163 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
1164
1165         * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
1166         first returned entry.  Print name only if not NULL.
1167
1168         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
1169         __netgrent object passed in instead of global variables.
1170         Optimize.
1171         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
1172         in struct __netgrent object passed in instead of global variables.
1173         * inet/netgroup.h (struct __netgrent): Add service_user field.
1174         Move cursor in anonymous union, add new field location to that
1175         union.
1176         * inet/getnetgrent_r.c: Extensive rewrite to really enable
1177         concurrent uset of set/get/endnetgrent and innetgr.
1178         Reported by Chuck Simmons.
1179
1180         * inet/netgroup.h (struct name_list): Replace name pointer with
1181         zero-sized array.
1182         * inet/getnetgrent_r.c: Adjust code for change in name_list
1183         layout.  Numerous strdup and free calls removed.
1184
1185         * elf/sprof.c (read_symbols): When comparing aliases, prefer
1186         non-hidden over hidden symbols and strong over weak symbols
1187         if both don't start with '_'.
1188
1189         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
1190         possible.
1191
1192 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1193
1194         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1195         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
1196         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1197         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1198         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1199         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
1200         accordingly.
1201
1202 2004-08-11  Andreas Schwab  <schwab@suse.de>
1203
1204         * resolv/res_libc.c: Move definition of __res_initstamp ...
1205         * resolv/res_init.c: ... here.
1206
1207 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
1208
1209         * locale/C-time.c: Change default ERA value from NULL to "".
1210         * locale/tst-C-locale.c: Add test case for ERA keywords.
1211
1212 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1213
1214         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1215         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
1216         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1217         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1218
1219 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1220
1221         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
1222         RLIMIT_MSGQUEUE): Add.
1223         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
1224         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
1225         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1226         (RLIM_NLIMITS): Adjust.
1227         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
1228         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1229         (RLIM_NLIMITS): Adjust.
1230         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
1231         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1232         (RLIM_NLIMITS): Adjust.
1233
1234 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1235
1236         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
1237         printf with #ifdef DEBUG and RES_DEBUG check.
1238
1239         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
1240         __USE_MISC #endif.
1241         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
1242         declaration.
1243         * sysdeps/gnu/bits/shm.h: Likewise.
1244         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1245         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1246         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1247         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1248         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1249
1250 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * po/ca.po: Update from translation team.
1253
1254 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1255
1256         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
1257         __getpagesize declaration.
1258
1259 2004-08-11  Roland McGrath  <roland@redhat.com>
1260
1261         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
1262         commands inside &&.
1263         Reported by Andreas Schwab <schwab@suse.de>.
1264         * configure: Regenerated.
1265
1266         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
1267
1268 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1269
1270         * time/tzset.c (tzset_internal): Add new parameter which is
1271         nonzero if called through tzset.  Use TZDEFAULT name including
1272         name comparison if the new parameter is zero.  This means implicit
1273         tzset calls will not cause files to be opened and read by tzfile.c
1274         all the time.
1275
1276 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
1277
1278         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
1279         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
1280         return 1 immediately.
1281
1282         * time/tzfile.c (__tzfile_read): Free transitions only if it will
1283         not be reused.
1284
1285         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
1286         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
1287
1288         * stdio-common/tst-popen.c: Include <string.h>.
1289
1290         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
1291
1292         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
1293         attribute.  Return NULL instead of calling pthread_exit at the end.
1294
1295 2004-08-11  Roland McGrath  <roland@redhat.com>
1296
1297         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
1298
1299 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
1300
1301         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
1302
1303 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
1304
1305         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
1306         (fwrite_unlocked): When checking if size * n is <= 8, cast each
1307         argument to size_t individually.  Cast n to (void) instead of
1308         (size_t), surround with (), return (size_t) 0 if one of n or size
1309         is 0.  [BZ #316]
1310         * stdio-common/Makefile (tests): Add tst-unlockedio.
1311         * stdio-common/tst-unlockedio.c: New test.
1312
1313 2004-08-09  Roland McGrath  <roland@frob.com>
1314
1315         * manual/install.texi (Supported Configurations): Replace bug-glibc
1316         mention with web URL.
1317         * INSTALL: Regenerated.
1318         * locale/iso-3166.def: Likewise, in comment.
1319         * locale/iso-4217.def: Likewise.
1320         * locale/iso-639.def: Likewise.
1321         * posix/cpio.h: Remove bug reporting comment.
1322
1323 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
1324
1325         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
1326         casts to handle funny calls with floating point argument values
1327         and signed values correctly and without warning.
1328         (fwrite_unlocked): Likewise.  [BZ #309]
1329
1330         * malloc/memusage.c (me): Use creat64, not creat.
1331         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
1332         Patch by Guy Maor <guymaor@yahoo.com>.
1333
1334         * elf/ldconfig.c (options): Mark parameter option names as
1335         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
1336
1337         * iconv/gconv_charset.h (strip): Also allow comma which is what is
1338         used to separate options.  [BZ #194]
1339
1340 2004-08-09  Roland McGrath  <roland@redhat.com>
1341
1342         * FAQ.in: Refer to web pages instead of bug-glibc.
1343         * FAQ: Regenerated.
1344
1345         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
1346
1347 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
1348
1349         * time/tzset.c (tzset_internal): If TZ is not set do not compare
1350         old and new tz value since it might be /etc/localtime in both
1351         cases although the file changed.  [BZ #154]
1352         Patch by Christian Franke <franke@computer.org>.
1353
1354         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
1355         Compare with values of previously opened file.  Don't do anything
1356         is they match.
1357
1358 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
1359
1360         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
1361         reset loader before the actual loading.
1362         * elf/dl-open.c (dl_open_worker): If file name contains no path
1363         element determine map of caller.  Pass caller map in this case to
1364         _dl_map_object.  Set __RTLD_CALLMAP in mode.
1365         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
1366         Patch by Greg Wolodkin <greg@mathworks.com>.
1367
1368         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
1369         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
1370
1371         * configure.in: Also recognize i786. [BZ #106]
1372         Patch by <pluto@pld-linux.org>.
1373
1374         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
1375         name contains any dots. [BZ #95]
1376
1377         * resolv/res_send.c: Compiling with DEBUG defined works again.
1378         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
1379         callers.
1380
1381         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
1382         available the process is not killed. [BZ #41]
1383
1384         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
1385
1386         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
1387         [BZ #28]
1388
1389         * po/sv.po: Update from translation team.
1390
1391 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
1392
1393         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
1394         getsourcefilter, and setsourcefilter parameter list.
1395         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
1396         * sysdeps/generic/getsourcefilter.c: Likewise.
1397         * sysdeps/generic/setsourcefilter.c: Likewise.
1398         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
1399         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
1400         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
1401
1402         * po/tr.po: Update from translation team.
1403
1404 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
1405
1406         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
1407         Reported by Paolo Bonzini.
1408
1409 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
1410
1411         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
1412         always_inline.
1413         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
1414         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
1415
1416         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
1417         before including linux/atalk.h.
1418
1419         * resolv/res_libc.c: Include atomic.h.
1420
1421         * intl/finddomain.c (free_mem): Rename to...
1422         (_nl_finddomain_subfreeres): ... this.  Add
1423         __libc_freeres_fn_section.
1424         * intl/loadmsgcat.c (_nl_unload_domain): Add
1425         __libc_freeres_fn_section.
1426         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
1427         Add attribute_hidden.
1428         (_nl_findomain_subfreeres): New prototype.
1429         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
1430
1431 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
1432
1433         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
1434         test if the key is numeric or not.
1435         (group_keys): Likewise.
1436
1437 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1438
1439         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
1440         struct group_filter, and GROUP_FILTER_SIZE.
1441         * include/sys/socket.h: Declare __getsockopt.
1442         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
1443         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
1444         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
1445         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
1446
1447         * po/ko.po: Update from translation team.
1448
1449 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1450
1451         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
1452         memset.
1453         (__hesiod_res_set): Free nsaddrs.
1454
1455         * include/resolv.h (__res_maybe_init): Add prototype.
1456         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
1457         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
1458         * resolv/res_libc.c (__res_initstamp, lock): New variables.
1459         (res_init): Increase __res_initstamp.
1460         (__res_maybe_init): New function.
1461         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
1462         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
1463         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
1464         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1465         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1466         _nss_dns_gethostbyaddr_r): Likewise.
1467         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1468         _nss_dns_getnetbyaddr_r): Likewise.
1469         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
1470         gethostbyaddr): Likewise.
1471         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
1472         res_isourserver, res_sendsigned, res_update, res_search,
1473         res_querydomain): Likewise.
1474         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
1475         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
1476         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
1477         Likewise.
1478
1479 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1480
1481         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
1482         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
1483         Reported by A. Guru <a.guru@sympatico.ca>.
1484
1485         * po/sv.po: Update from translation team.
1486         * po/sk.po: Likewise.
1487         * po/pl.po: Likewise.
1488
1489 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1490             Ulrich Drepper  <drepper@redhat.com>
1491
1492         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
1493         characters than necessary.
1494
1495 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1496
1497         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
1498         * wcsmbs/tst-mbsrtowcs.c: New file.
1499
1500         * po/fr.po: Update from translation team.
1501
1502 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1503
1504         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
1505         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
1506
1507 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1508
1509         * po/nl.po: Update from translation team.
1510
1511         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
1512         numeric address formats inet_addr knows.
1513         (getaddrinfo): Allow AI_NUMERICSERV flag.
1514         If neither IPv4 nor IPv6 interface is present we cannot make any
1515         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
1516         string is not just a number.  Remove useless freeaddrinfo call.
1517         * resolv/netdb.h (AI_NUMERICSERV): Define.
1518         Based on a patch by a.guru@sympatico.ca.
1519
1520 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1521
1522         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
1523         instead of trying to initialize some, but not all, fields one by
1524         one.
1525         * stdio-common/printf_size.c (printf_size): Initialize fb_info
1526         structure with *info instead of trying to initialize some, but not
1527         all, fields from it.
1528
1529         * nscd/connections.c (handle_request): Check if req->type is in
1530         LASTDBREQ .. LASTREQ range instead of req.
1531
1532         * locale/programs/linereader.c (lr_create): Initialize
1533         lr->return_widestr to 0.
1534
1535         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
1536         (free_mem): Call free_slotinfo just once.
1537
1538         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
1539         of NULL.
1540
1541         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
1542         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
1543         (free_mem): Rename to _nl_locale_subfreeres.
1544         * iconv/gconv_db.c: Include locale/localeinfo.h.
1545         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
1546         (free_mem): Call _nl_locale_subfreeres.
1547         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
1548
1549 2004-08-04  Roland McGrath  <roland@frob.com>
1550
1551         * Makeconfig ($(common-objpfx)config.status):
1552         Fix typo: $(add_ons) -> $(add-ons).
1553         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
1554         include, use black magic to get it set to an add-on's name during the
1555         include of the add-on's Makeconfig.
1556
1557         * configure.in: Use variable name `libc_add_on' when sourcing add-on
1558         configure fragments, so they can refer to this.
1559         * configure: Regenerated.
1560
1561 2004-08-04  Roland McGrath  <roland@redhat.com>
1562
1563         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
1564         (do_test): Bump sleep to three seconds.
1565         (sigchld, check_sigchld): New functions.
1566         (do_test): Handle SIGCHLD and check for getting the right details.
1567
1568         * posix/tst-waitid.c (do_test): Kill the child process when bailing
1569         out early on some failure.
1570         [WCONTINUED]: Test WCONTINUED functionality.
1571
1572 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
1573
1574         * nscd/connections.c (handle_request): Print more descriptive
1575         message for invalid request types.
1576
1577 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
1578
1579         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
1580         Always treat high as highest number in range + 1.
1581         * iconvdata/ibm943.c (BODY): Likewise.
1582
1583 2004-07-31  Bruno Haible  <bruno@clisp.org>
1584
1585         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
1586         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
1587         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
1588         __jisx0213_from_ucs_level2): Regenerated.
1589         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
1590         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
1591         JISX0213_1_set.
1592         (JISX0213_1_2004_set): New enum value.
1593         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
1594         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
1595         when possible, ESC $ ( Q when needed.
1596         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
1597         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
1598         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
1599         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
1600         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
1601         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
1602
1603 2004-07-22  Bruno Haible  <bruno@clisp.org>
1604
1605         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
1606
1607 2004-07-29  David S. Miller  <davem@redhat.com>
1608
1609         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
1610         better for smaller than 256 byte copies.  Also, use only one
1611         unrolled loop instead of two for the large copy case.
1612
1613 2004-07-30  Richard Henderson  <rth@redhat.com>
1614
1615         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
1616         * sysdeps/alpha/remq.S: Likewise.
1617         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
1618         new division algorithms in divl.S and divq.S respectively.
1619
1620 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
1621
1622         * timezone/asia: Update from tzdata2004b.
1623         * timezone/backward: Likewise.
1624         * timezone/europe: Likewise.
1625         * timezone/iso3166.tab: Likewise.
1626         * timezone/leapseconds: Likewise.
1627         * timezone/northamerica: Likewise.
1628         * timezone/southamerica: Likewise.
1629         * timezone/zone.tab: Likewise.
1630
1631         * timezone/private.h: Update from tzcode2004b.
1632         * timezone/zic.c: Likewise.
1633
1634 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
1635
1636         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
1637         under the name the user provided.
1638         * nscd/pwdcache.c (cache_addpw): Likewise.
1639
1640 2004-07-26  Roland McGrath  <roland@redhat.com>
1641
1642         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
1643         call to __waitpid.
1644
1645 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
1646
1647         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
1648         memory leaks.
1649
1650         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
1651         new buffer at the right time.
1652         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
1653
1654 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
1655
1656         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
1657         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
1658         * inet/Makefile (routines): Likewise.
1659         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
1660         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
1661         * sysdeps/generic/getipv4sourcefilter.c: New file.
1662         * sysdeps/generic/setipv4sourcefilter.c: New file.
1663         * sysdeps/generic/getsourcefilter.c: New file.
1664         * sysdeps/generic/setsourcefilter.c: New file.
1665
1666 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
1667
1668         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
1669         for POWER4 machines.
1670
1671 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1672
1673         [BZ #274]
1674         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
1675         BITS_PER_MP_LIMB shifting up.
1676         * stdlib/tst-strtod.c (main): Add new tests.
1677
1678 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
1679
1680         [BZ #282]
1681         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
1682         _IO_no_init.  Remove wd from struct locked_FILE.
1683         (_IO_wproc_jumps): Remove.
1684         Reported by Andrew Josey <a.josey@opengroup.org>.
1685         * stdio-common/Makefile (tests): Add tst-popen.
1686         * stdio-common/tst-popen.c: New test.
1687
1688 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
1689
1690         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
1691         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
1692         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
1693         Reported by Andrew Josey.
1694
1695         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
1696
1697         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
1698         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
1699         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
1700         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
1701         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
1702         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
1703         useconds_t if __USE_XOPEN2K is defined.
1704         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
1705         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
1706
1707 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
1708
1709         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
1710         allocate memory for large temporary variables with alloca.
1711
1712 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
1713
1714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
1715         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
1716
1717         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
1718         pointer and zero length.
1719
1720 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1721
1722         * nscd/cache.c (prune_cache): Print correct list when debugging.
1723
1724 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1725
1726         * resolv/res_libc.c (res_init): If RES_INIT is set and
1727         _res.nscount > 0, call __res_nclose and free nsaddrs.
1728         * resolv/Makefile: Add rules to build and run tst-leaks2.
1729         * resolv/tst-leaks2.c: New test.
1730
1731 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1732
1733         * intl/libintl.h: Don't define macros for C++.
1734         Patch by Goto Masanori.
1735
1736 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
1737
1738         [BZ #276]
1739         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
1740         * inet/arpa/inet.h: Likewise.
1741         * resolv/inet_addr.c: Likewise.
1742
1743 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
1744
1745         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
1746
1747 2004-07-20  Roland McGrath  <roland@redhat.com>
1748
1749         * configure.in (add_ons): Substitute this.  Move $add_ons handling
1750         after AC_CANONICAL_HOST and default setting of $machine et al.
1751         Don't set $subdirs from $add_ons.
1752         Instead, source add-on/configure fragments early on.
1753         (base_machine): If it's already set, don't set it based on $machine.
1754         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
1755         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
1756         (sysnames): Try appending add-on names after machine as well.
1757         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
1758         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
1759         files in $(add_ons) dirs.
1760
1761         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
1762         definition, now in netinet/in.h proper.
1763
1764 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
1765
1766         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
1767         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
1768         the build tree before just-installed ones.
1769
1770         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
1771         include sgidefs.h where appropriate.
1772         * sysdeps/mips/dl-machine.h: Likewise.
1773         * sysdeps/mips/machine-gmon.h: Likewise.
1774         * sysdeps/mips/bits/setjmp.h: Likewise.
1775         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
1776         * sysdeps/mips/mips64/__longjmp.c: Likewise.
1777         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
1778         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
1779         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1780         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1781         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
1782         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1783         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1784         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1785         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1786         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1787         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
1788         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
1789         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
1790         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
1791         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1792         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
1793         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
1794         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
1795         Likewise.
1796         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
1797         Likewise.
1798
1799         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
1800         _dl_lookup_symbol_x.
1801         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
1802
1803 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
1804
1805         * inet/netinet/in.h: Define struct ip_mreq and struct
1806         ip_mreq_source.
1807         Define struct group_req and struct group_source_req.
1808         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
1809         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
1810         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
1811         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
1812         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
1813         MCAST_MSFILTER.
1814         Define MCAST_INCLUDE and MCAST_EXCLUDE.
1815
1816         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
1817
1818 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
1819
1820         [BZ #258]
1821         * math/libm-test.inc (max_value, min_value): New variables.
1822         (initialize): Initialize them.
1823         (pow_test): Add a couple of new tests.
1824         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
1825         exception if |y| >= 1U<<31.
1826         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
1827         exception if |y| >= 1L<<63.
1828         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1829         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
1830         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1831
1832 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
1833
1834         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
1835         lookup a bit.
1836         * nscd/grpcache.c (cache_addgr): Likewise.
1837         * nscd/hstcache.c (cache_addhst): Likewise.
1838
1839 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
1840
1841         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
1842         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1843
1844 2004-04-16  Andreas Schwab  <schwab@suse.de>
1845
1846         * sysdeps/ia64/bits/atomic.h: Cast first argument of
1847         __sync_bool_compare_and_swap_si correct to void*.
1848
1849 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
1850
1851         * iconv/iconv_prog.c (print_known_names): Make machine-readable
1852         output even less cluttered.
1853
1854 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
1855
1856         [BZ #269]
1857         * setjmp/Makefile (tests): Add bug269-setjmp.
1858         * setjmp/bug269-setjmp.c: New file.
1859         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
1860         Store R2 from jmpbuf in callers TOC save area.
1861         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
1862         Store R2 in TOC save area.
1863         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
1864         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
1865
1866 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
1867
1868         * locale/newlocale.c: Include bits/libc-lock.h.
1869         (__libc_setlocale_lock): Extern decl.
1870         (__newlocale): Use it.
1871         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
1872
1873 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
1874
1875         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
1876         static inline __attribute ((always_inline)).  Don't define if
1877         NO_CANCELLATION.
1878         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
1879         __fcntl_nocancel.
1880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
1881         Remove static inline __attribute ((always_inline)).  Don't define
1882         if NO_CANCELLATION.
1883         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
1884         __fcntl_nocancel.
1885         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
1886         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
1887         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
1888         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
1889
1890         [BZ #262]
1891         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
1892         for main.
1893         * elf/Makefile: Add rules to build and run tst-pie1.
1894         * elf/tst-pie1.c: New test.
1895         * elf/tst-piemod1.c: New file.
1896
1897 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
1898
1899         [BZ #266]
1900         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
1901         long.  Rewrite example code so that it takes into account l64a output
1902         shorter than 6 characters.
1903         Reported by Julian Graham <julian.graham@aya.yale.edu>.
1904
1905 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
1906
1907         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
1908         (elf_machine_rela_relative): Remove unused valiable.
1909
1910 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1911
1912         [BZ #263]
1913         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
1914         outside the buffer if the read returns 0.  __strtod_l can't set
1915         endp to NULL, so remove a test for that case.
1916
1917 2004-07-12  Roland McGrath  <roland@redhat.com>
1918
1919         * manual/signal.texi (Interrupted Primitives): Make clear that
1920         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
1921         it to -1 to define "failure".
1922
1923 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
1924
1925         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
1926         ldsodefs.h.
1927         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
1928         already defined.
1929         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
1930         already defined.
1931
1932         * elf/rtld.c (print_statistics): Mark with noinline attribute.
1933         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
1934         attribute.
1935         (elf_machine_rel_relative): Likewise.
1936
1937         * include/string.h: Add libc_hidden_proto for __strtok_r and
1938         __strsep_g.
1939         * sysdeps/generic/strsep.c: Add libc_hidden_def.
1940         * sysdeps/generic/strtok_r.c: Likewise.
1941         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
1942         * sysdeps/i386/i686/strtok_r.S: Likewise.
1943         * sysdeps/x86_64/strtok_r.S: Likewise.
1944
1945 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
1946
1947         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
1948         instead of internal-linkage, such that we can alias to it.
1949         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
1950
1951 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
1952
1953         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
1954         to the front for gcc 3.5+.
1955         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
1957         * include/fcntl.h: Don't declare __fcntl_nocancel here if
1958         NO_CANCELLATION is defined.
1959
1960 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
1961
1962         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
1963         GL(dl_nloaded) into it while still in critical section.
1964
1965 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
1966
1967         * nss/getent.c (print_group, print_passwd): Use %lu format for
1968         `unsigned long int' values.
1969
1970         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
1971         error typos in goto statements.
1972
1973 2004-07-07  Roland McGrath  <roland@frob.com>
1974
1975         * Makefile (dist-separate): New variable.
1976         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
1977         Depend on their configure files.
1978         (dist-do-separate-dirs): New canned sequence to do that.
1979         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
1980         (dist): Depend on add-on tar files based on $(dist-separate).
1981         (dist-version): New variable, default to $(version).
1982         (tag-for-dist, dist): Use that in place of $(version) in deps.
1983
1984 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
1985
1986         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
1987         before the loop running the destructors.
1988
1989 2004-05-18  Andreas Schwab  <schwab@suse.de>
1990
1991         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
1992         the first segment for mprotect, not l_text_end.
1993
1994 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
1995
1996         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
1997         Remove hashfraction variable.  Make kcount and kcountsize local
1998         variables.
1999
2000         * elf/dl-init.c: Don't define and use _dl_starting_up if
2001         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
2002         * elf/dl-support.c: Likewise.
2003         * elf/rtld.c: Likewise.
2004         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
2005         if HAVE_INLINED_SYSCALLS is defined.
2006         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
2007         here.
2008         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2009         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
2010         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
2011
2012         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
2013         is needed to stop profiling.
2014         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
2015         profile make sure it cannot be unloaded.
2016
2017         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
2018
2019         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
2020         support, make sure the helper function is inlined.
2021         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2022         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2023         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2025
2026 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
2027
2028         * include/string.h (ffs): Add libc_hidden_builtin_proto.
2029         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
2030         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
2031         * sysdeps/alpha/ffs.S (ffs): Likewise.
2032         * sysdeps/s390/ffs.c (ffs): Likewise.
2033         * sysdeps/powerpc/ffs.c (ffs): Likewise.
2034         * sysdeps/i386/ffs.c (ffs): Likewise.
2035         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
2036         * sysdeps/m68k/ffs.c (ffs): Likewise.
2037         * sysdeps/generic/ffs.c (ffs): Likewise.
2038         * sysdeps/m88k/ffs.c (ffs): Likewise.
2039         * sysdeps/am29k/ffs.c (ffs): Likewise.
2040         * sysdeps/i960/ffs.c (ffs): Likewise.
2041         * sysdeps/x86_64/ffs.c (ffs): Likewise.
2042
2043         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
2044
2045         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
2046         __libc_siglongjmp): Remove symbol_version.
2047         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
2048         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
2049         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
2050         unconditionally.
2051         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
2052         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
2053         strong_alias instead of default_symbol_version, remove
2054         symbol_version.
2055         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
2056         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
2057         into strong_alias to __novmxsetjmp.
2058         (__vmx__setjmp): Similarly with __vmxsetjmp.
2059         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2060         default_symbol_version and symbol_version.
2061         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
2062         into strong_alias to __novmxsetjmp.
2063         (__vmx__setjmp): Similarly with __vmxsetjmp.
2064         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2065         default_symbol_version and symbol_version.
2066
2067         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
2068
2069 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2070
2071         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
2072
2073 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
2074
2075         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
2076         instead of libc_hidden_def.
2077
2078 2004-07-01  Roland McGrath  <roland@redhat.com>
2079
2080         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
2081
2082         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
2083         $(..)shlib-versions file to last in deps list.  This lets add-ons give
2084         more-specific matches that override defaults in the top-level file.
2085
2086         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
2087         already set, don't set it or libc_cv_gcc_unwind_find_fde.
2088         * sysdeps/unix/sysv/linux/configure: Regenerated.
2089
2090 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2091
2092         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
2093         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
2094         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
2095         * sysdeps/s390/fpu/e_sqrt.c: New file.
2096         * sysdeps/s390/fpu/e_sqrtf.c: New file.
2097         * sysdeps/s390/Implies: New file.
2098         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
2099         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
2100         * sysdeps/s390/s390-64/Implies: Likewise.
2101
2102 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
2103
2104         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
2105         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2106
2107         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
2108         DO_CALL (exit, 1) instead of branching to _exit.
2109         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
2110         Likewise.
2111
2112         * sysdeps/s390/fpu/bits/mathinline.h: New file.
2113
2114         * include/glob.h (glob64): Add libc_hidden_proto.
2115         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
2116         * sysdeps/gnu/glob64.c (glob64): Likewise.
2117         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
2118
2119 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2120
2121         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
2122         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2123
2124 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
2125
2126         * sysdeps/powerpc/fpu/s_lround.c: Removed.
2127         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
2128         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
2129         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
2130         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
2131         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
2132         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
2133         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
2134         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
2135         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
2136         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
2137         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
2138         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
2139         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
2140         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
2141         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
2142
2143 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
2144
2145         * include/net/if.h: Handle if_nameindex and if_freenameindex with
2146         libc_proto_hidden.
2147         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
2148         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
2149         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
2150         netlink if possible.  Fall back on ioctl method if necessary.
2151         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
2152
2153         * include/unistd.h: Declare __truncate.
2154         * sysdeps/generic/truncate.c: Also define __truncate.
2155         * sysdeps/mach/hurd/truncate.c: Likewise.
2156         * sysdeps/unix/common/syscalls.list: Likewise.
2157         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
2158
2159 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
2160
2161         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
2162         info.extra.  Patch by Marcus Meissner.
2163
2164 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2165
2166         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2167         Fix branch offset for a PLT entry.
2168
2169 2004-06-20  Jim Meyering  <jim@meyering.net>
2170
2171         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
2172         documentation.
2173
2174 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
2175
2176         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
2177         Workaround for [BZ #232].
2178
2179         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
2180
2181 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
2182
2183         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
2184         in ucs2/ucs2reverse when unaligned memory access is attempted.
2185         * iconv/tst-iconv5.c: New file.
2186         * iconv/Makefile (tests): Add tst-iconv5.
2187
2188 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2189
2190         * inet/bug-if1.c: Include <string.h>.
2191
2192 2004-06-19  Roland McGrath  <roland@redhat.com>
2193
2194         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
2195         under this macro name instead.
2196         [NO_DO_WAITID]: Don't define it at all.
2197         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
2198         defined, then return ENOTSUP for combinations of selection bits other
2199         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
2200
2201         * posix/tst-waitid.c: New file.
2202         * posix/Makefile (tests): Add it.
2203
2204 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2205
2206         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
2207
2208         [BZ #231]
2209         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
2210         relocation in librt.so.
2211
2212         [BZ #230]
2213         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
2214         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2215
2216 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
2217
2218         * elf/ldconfig.c (add_dir): Take chroot into account.
2219         Based on changes by HJ Lu and Hideki Iwamoto.
2220
2221         * nscd/connections.c (invalidate_cache): If the host cache has to
2222         be invalidated, re-read resolv.conf.
2223
2224         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
2225         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
2226         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
2227         if RES_NOIP6DOTINT flag is set.
2228         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2229
2230 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
2231
2232         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
2233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
2234         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
2236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
2237
2238         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
2239         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
2240
2241 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
2242
2243         [BZ #231]
2244         * sysdeps/unix/alpha/Makefile: New file.
2245         * sysdeps/unix/alpha/rt-sysdep.S: New file.
2246         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2247
2248 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
2249
2250         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
2251         determine the canonical name only for the first returned entry.
2252
2253         * inet/bug-if1.c: New file.
2254         * inet/Makefile (tests): Add bug-if1.
2255
2256 2004-06-18  Roland McGrath  <roland@frob.com>
2257
2258         * Makerules (compile-mkdep-flags): Add -MT $@.
2259
2260         * Makefile (dist, tag-for-dist): New targets.
2261         (files-for-dist, tag-of-stem): New variables.
2262         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
2263         Make tar files using cvs export.
2264         (%.bz2, %.gz, tag-%): New pattern rules.
2265         (distribute): Variable removed.
2266         (+subdir_targets): Remove distinfo targets.
2267         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
2268         (rpm/%): Pattern rule removed.
2269         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
2270         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
2271         Targets removed.
2272         * Makerules (dist, subdir_distinfo): Targets removed.
2273         ($(objpfx)distinfo): Depend on $(distribute).
2274         * Make-dist: File removed.
2275
2276         * NEWS: Fix a typo.  Update bug-reporting instructions.
2277
2278 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
2279
2280         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2281         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
2282         cpuset is wrongly set.
2283
2284 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2285
2286         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2287         for POWER4 machines.
2288
2289 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2290
2291         [BZ #218]
2292         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
2293         in a local variable, point rp to that local variable afterwards.
2294
2295 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2296
2297         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
2298         cases properly.
2299
2300 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
2301
2302         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
2303         error value for unknown interface. [BZ #198]
2304
2305 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
2306
2307         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
2308         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
2309         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
2310         the asm uses as its input, either of size __n where __n is known or
2311         0xfffffff.
2312         (strstr): Add "memory" clobber.
2313
2314 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2315
2316         [BZ #219]
2317         * nss/nsswitch.c (free_mem): Don't try to close a library handle
2318         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
2319
2320 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
2321
2322         [BZ #217]
2323         * debug/xtrace.sh: Fix typo in error diagnostics.
2324
2325 2004-06-14  Andreas Schwab  <schwab@suse.de>
2326
2327         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
2328         failed.
2329
2330 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2331
2332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
2333         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
2334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
2335         that clobbers r19.
2336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
2337         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
2338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
2339         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
2340         Fix pasto that overflowed sigcontext.v_reserve.
2341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
2342         Fix pasto that clobbers r19.
2343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
2344         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
2345         overflowed sigcontext.v_reserve.
2346
2347 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2348
2349         [BZ #150]
2350         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
2351         instead of ".gnu.linkonce.ro." as the prefix for linkonce
2352         read-only section name.
2353
2354 2004-06-14  Richard Henderson  <rth@redhat.com>
2355
2356         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
2357         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
2358
2359 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
2360
2361         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
2362         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2363         (__backtrace): Don't call init #ifndef SHARED.
2364         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
2365         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2366         (__backtrace): Don't call init #ifndef SHARED.
2367         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
2368         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2369         (__backtrace): Don't call init #ifndef SHARED.
2370
2371 2004-06-11  Roland McGrath  <roland@redhat.com>
2372
2373         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
2374         From Krzysztof Halasa <khc@pm.waw.pl>.
2375
2376 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
2377
2378         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
2379
2380 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
2381
2382         [BZ #199]
2383         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
2384         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
2385
2386         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
2387         fails.  Avoid memory leak if realloc fails.
2388
2389 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
2390
2391         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
2392         NULL, "" or contains '=' character in it.  Reported by
2393         Michael T Kerrisk <mtk-lists@gmx.net>.
2394         * stdlib/tst-environ.c: Include errno.h.
2395         (main): Add tests for these arguments to setenv/unsetenv.
2396
2397 2004-06-07  Roland McGrath  <roland@frob.com>
2398
2399         * NEWS: Update bug reporting instructions.  Fix some typos.
2400
2401 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
2402
2403         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
2404         * stdio-common/_itoa.c: Add _itoa implementation.
2405
2406         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
2407         to also send request.  Add parameter to allow this.
2408         Change callers.
2409         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
2410         * nscd/nscd_getpw_r.c: Likewise.
2411         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
2412
2413 2004-06-05  Andreas Jaeger  <aj@suse.de>
2414
2415         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2416         Handle more than 6 args correctly.  Based on a patch by Masahide
2417         Washizawa <washi@jp.ibm.com>.
2418
2419 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
2420
2421         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
2422         in all places, not __nss_not_use_nscd_group.
2423         Reported by Philippe Gregoire.
2424
2425 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
2426
2427         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
2428
2429 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
2430
2431         * argp/argp-help.c (__argp_error, __argp_failure): Check result
2432         of __asprintf call and don't use string if it failed.
2433         * stdio-common/psignal.c (psignal): Likewise.
2434         * locale/programs/localedef.c (more_help): Likewise.
2435         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
2436         arg_bool, parse_line): Check result of __asprintf calls and
2437         don't use string if they failed.
2438         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
2439         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
2440         call and exit if it failed.
2441
2442 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
2443
2444         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
2445         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
2446         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
2447         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
2448         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
2449         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
2450         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
2451         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
2452         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
2453         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2454         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
2455
2456 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
2457
2458         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
2459         -momit-leaf-frame-pointer.
2460
2461         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
2462         #ifdef AF_PACKET.
2463
2464         * sysdeps/mach/hurd/getcwd.c
2465         (_hurd_canonicalize_directory_name_intern): Only realloc when
2466         size is <= 0.
2467
2468         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
2469         isn't page aligned.
2470
2471         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
2472         new size.
2473
2474         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
2475         __libc_write and __libc_lseek64.
2476
2477 2004-05-29  Roland McGrath  <roland@redhat.com>
2478
2479         * elf/Makefile (shared-only-routines): Add dl-caller.
2480
2481 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
2482
2483         * sysdeps/powerpc/configure.in: New file.
2484
2485 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
2486
2487         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
2488         "altivec" to enable VMX instructions.
2489         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2490         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2491         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
2493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2498
2499 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
2500
2501         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
2502         __builtin_expm1l for GCC 3.5+.
2503         (__expl): Define using __builtin_expl for GCC 3.4+.
2504         (exp, expf, expl): Don't define for GCC 3.4+.
2505         (tan, tanf, tanl): Don't define for GCC 3.5+.
2506         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
2507         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
2508         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
2509         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
2510         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
2511         for GCC 3.4+.
2512         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
2513         Don't define for GCC 3.5+.
2514         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
2515         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
2516         define for GCC 3.5+.
2517         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
2518         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
2519         define for GCC 3.2+.
2520
2521 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
2522
2523         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
2524         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
2525         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
2526         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
2527         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
2528         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
2529         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
2530         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
2531         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
2532         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
2533         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
2534         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
2535         libc_hidden_builtin_def if MEMPCPY_P.
2536         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2537         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
2538         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
2539         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
2540         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
2541
2542 2004-05-26  Roland McGrath  <roland@frob.com>
2543
2544         * sysdeps/generic/bits/in.h
2545         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
2546         These are long obsolete in BSD systems where they originated.
2547         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
2548
2549 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
2550
2551         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
2552         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
2553         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
2554         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
2555         constant '\0' and first argument is not constant.
2556         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
2557         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
2558         For GCC 3.2+ use __builtin_strncpy.
2559         (strncat): For GCC 3.2+ use __builtin_strncat.
2560         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
2561         constant.
2562         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
2563         if both arguments are constant.
2564
2565 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
2566
2567         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
2568         mapped addresses in gethostbyaddr.
2569
2570 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
2571
2572         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
2573         flags parameter, convert afp to simple int parameter.  Adjust code.
2574         typep was never != NULL and flags therefore also unused.  *afp is
2575         never modified.
2576         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
2577         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
2578         handling for __nss_hostname_digits_dots calls.
2579         * nss/getXXbyYY_r.c: Likewise.
2580
2581         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
2582
2583 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
2584
2585         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
2586         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
2587         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
2588         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
2589         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
2590         implementation from w_sqrt.c.
2591         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
2592         implementation from w_sqrtf.c.
2593         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
2594         using inline __ieee754_sqrt().
2595         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
2596         using inline __ieee754_sqrtf().
2597         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
2598         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2599         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
2600         PPC_FEATURE_*  independent of __ASSEMBLER__.
2601
2602 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
2603
2604         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
2605         include.
2606         (aio_start_notify_thread): Define if not defined.
2607         (notify_func_wrapper): Use it.
2608         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
2609         include.
2610         (aio_create_helper_thread): Define if not defined.
2611         (__aio_create_helper_thread): New function.
2612         (__aio_enqueue_request): Use aio_create_helper_thread.
2613
2614         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
2615         (struct ypresp_all_data): New type.
2616         (__xdr_ypresp_all): Change second argument to
2617         struct ypresp_all_data *.  Replace ypall_foreach and
2618         ypall_data with objp->foreach and objp->data.
2619         (yp_all): Remove status variable, add data.  Replace
2620         all uses of status with data.status.  Initialize data.foreach
2621         and data.data instead of ypall_foreach and ypall_data.
2622
2623 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
2624
2625         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
2626         in l_flags_1, not in l_flags.
2627
2628 2004-04-10  Robert Millan  <robertmh@gnu.org>
2629
2630         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
2631         with sysdeps/generic/bits/in.h.
2632
2633 2004-05-25  Roland McGrath  <roland@frob.com>
2634
2635         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
2636         GCC GPL to standard glibc LGPL.
2637
2638 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
2639
2640         * manual/string.texi (Copying and Concatenation): Fixed second
2641         concat example.
2642         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
2643
2644 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
2645
2646         * malloc/obstack.c: Don't allow linking with _obstack.
2647
2648 2004-05-23  Andreas Schwab  <schwab@suse.de>
2649
2650         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
2651         of separate "m" constraints.
2652
2653 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
2654
2655         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
2656         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
2657         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
2658
2659 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2660
2661         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
2662         Add comment explaining why libc still defines it.
2663
2664 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2665
2666         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
2667         obstack_alignment_mask, obstack_alloc, obstack_base,
2668         obstack_blank, obstack_blank_fast, obstack_chunk_size,
2669         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
2670         obstack_grow0, obstack_init, obstack_int_grow,
2671         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
2672         obstack_next_free, obstack_object_size, obstack_ptr_grow,
2673         obstack_ptr_grow_fast, obstack_room): Remove declarations of
2674         nonexistent functions.
2675
2676 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
2677
2678         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
2679         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2680         [PIC]: Redundent for powerpc64, removed.
2681         (ENTRY): Generate size and alignment for opd entry.
2682         (EALIGN): Generate size and alignment for opd entry.
2683         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2684         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2685
2686 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
2687
2688         * misc/regexp.h: Say the functions have been withdrawn.
2689
2690         * wcsmbs/tst-wcpncpy.c: Add more tests.
2691
2692 2004-05-18  Roland McGrath  <roland@frob.com>
2693
2694         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
2695         standard glibc LGPL.
2696         * sysdeps/generic/unwind-dw2.c: Likewise.
2697         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
2698         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
2699         * sysdeps/generic/unwind-pe.h: Likewise.
2700
2701 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
2702
2703         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
2704         MONTENEGRO" which have taken over the code 819.  Patch from
2705         Danilo Segan. [BZ #40]
2706
2707 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
2708
2709         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2710         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
2711         __sparc_get_pic_l7.
2712
2713 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2714
2715         * catgets/gencat.c: Update bug reporting instructions.
2716         * csu/version.c: Likewise.
2717         * debug/catchsegv.sh: Likewise.
2718         * debug/pcprofiledump.c: Likewise.
2719         * debug/xtrace.sh: Likewise.
2720         * elf/ldd.bash.in: Likewise.
2721         * iconv/iconv_prog.c: Likewise.
2722         * iconv/iconvconfig.c: Likewise.
2723         * locale/programs/locale.c: Likewise.
2724         * locale/programs/localedef.c: Likewise.
2725         * login/programs/pt_chown.c: Likewise.
2726         * malloc/memusage.sh: Likewise.
2727         * malloc/memusagestat.c: Likewise.
2728         * malloc/mtrace.pl: Likewise.
2729         * manual/crypt.texi: Likewise.
2730         * manual/install.texi: Likewise.
2731         * nss/makedb.c: Likewise.
2732
2733 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
2734
2735         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
2736         CHECK_STATIC_TLS if sym != NULL.
2737         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2738         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2739
2740 2004-05-12  Andreas Schwab  <schwab@suse.de>
2741
2742         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
2743         when translating.
2744
2745 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2746
2747         * Rules (xtests): Depend on tests.
2748
2749 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
2750
2751         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
2752         count is negative, yet write_ptr < write_end.
2753         (_IO_default_xsgetn): Avoid one underflow per char if count is
2754         negative, yet read_ptr < read_end.
2755
2756 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
2757
2758         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
2759         equal to TAB3.
2760
2761 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
2762
2763         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
2764         call.
2765
2766 2004-05-10  Roland McGrath  <roland@frob.com>
2767
2768         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
2769         (__hurd_directory_name_split): Likewise.
2770
2771 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
2772
2773         * po/fr.po: Update from translation team.
2774
2775 2004-05-10  Andreas Jaeger  <aj@suse.de>
2776
2777         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2778         Correctly compute alignment.
2779         Patch by Michael Matz <matz@suse.de>.
2780
2781 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
2782
2783         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
2784         * sysdeps/posix/sigpause.c: Likewise.
2785         * signal/signal.h: Don't define sigpause macro unless needed.
2786
2787 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
2788
2789         * configure.in (libc_cv_libgcc_s_suffix): New check.
2790         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
2791         * config.make.in (libgcc_s_suffix): Set.
2792         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
2793
2794 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
2795
2796         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
2797
2798 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
2799
2800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
2801         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
2802         Load argument values into temporary variables.
2803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
2804         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
2805         Likewise.
2806
2807 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
2808
2809         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
2810         need to be compiled with exceptions.
2811
2812 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
2813
2814         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
2815         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
2816
2817         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
2818         realloc cannot fail.
2819
2820         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
2821         be expanded.
2822
2823         * nis/nis_table.c: Clean up memory handling.
2824         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
2825         * nis/nis_removemember.c (nis_removemember): Add comment
2826         explaining use of realloc.
2827
2828         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
2829         (carg): Likewise.
2830         Patch by Lev S Bishop <lev.bishop@yale.edu>.
2831
2832         * math/bug-tgmath1.c (main): Test fabs and carg as well.
2833
2834 2004-05-06  Richard Henderson  <rth@redhat.com>
2835
2836         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
2837         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
2838         * sysdeps/unix/sysv/linux/alpha/Versions: Export
2839         __libc_alpha_cache_shape as a private symbol.
2840         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
2841         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
2842
2843 2004-05-06  Richard Henderson  <rth@redhat.com>
2844
2845         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
2846         * sysdeps/alpha/divl.S: Use them.
2847         * sysdeps/alpha/divq.S: Likewise.
2848         * sysdeps/alpha/divqu.S: Likewise.
2849         * sysdeps/alpha/reml.S: Likewise.
2850         * sysdeps/alpha/remq.S: Likewise.
2851         * sysdeps/alpha/remqu.S: Likewise.
2852
2853 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
2854
2855         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
2856         (cimag): Use it.
2857         (creal): Likewise.
2858         * math/Makefile (tests): Add bug-tgmath1.
2859         * math/bug-tgmath1.c: New file.
2860
2861 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
2862
2863         * sysdeps/alpha/atomicity.h: Remove.
2864         * sysdeps/generic/atomicity.h: Remove.
2865
2866 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2867
2868         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
2869         char *.
2870
2871 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
2872
2873         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
2874           rt-sysdep.
2875         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
2876
2877         * sysdeps/ia64/strcat.c: New file.
2878         * sysdeps/ia64/strcat.S: Delete.
2879
2880 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
2881
2882         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
2883         defined.
2884
2885 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
2886
2887         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
2888         libc_hidden_proto.  Define to __GI___libm_error_support for
2889         assembly going into libc.so.
2890         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
2891         libc_hidden_def.
2892
2893         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
2894         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
2895
2896         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
2897         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
2898         if USE___THREAD.
2899
2900 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
2901
2902         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
2903         __USE_BSD or __USE_UNIX98.
2904         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2905         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2906         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
2907         Likewise.
2908         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2909         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2910         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2911         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
2912         Likewise.
2913         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
2914         Likewise.
2915         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
2916         Likewise.
2917         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
2918         Likewise.
2919         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
2920         Likewise.
2921         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
2922         Likewise.
2923         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
2924         Likewise.
2925         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
2926         Likewise.
2927         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
2928         Likewise.
2929         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
2930         Likewise.
2931         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
2932         Likewise.
2933         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
2934         Likewise.
2935         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
2936         Likewise.
2937         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2938         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2939         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
2940
2941 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
2942
2943         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
2944         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
2945         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
2946         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
2947         * sysdeps/unix/sysv/linux/Versions (libc): Remove
2948         __libc_sigaction@@GLIBC_PRIVATE.
2949         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
2950         __modify_ldt@@GLIBC_PRIVATE.
2951         * socket/Versions (libc): Remove __libc_accept, __libc_send,
2952         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
2953         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
2954         * stdio-common/Versions (libc): Remove
2955         _itoa_upper_digits@@GLIBC_PRIVATE.
2956         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
2957         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
2958         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
2959         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
2960         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
2961         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
2962         __libc_lseek64 @@GLIBC_PRIVATE.
2963
2964 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
2965
2966         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
2967         check.
2968
2969 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
2970
2971         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
2972         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
2973         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
2974         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
2975         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
2976         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
2977         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
2978         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
2979         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
2980         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
2981         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
2982         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
2983         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
2984         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
2985         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
2986         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
2987         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
2988         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
2989
2990         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
2991         mantissa for AIX long double format.
2992         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
2993         long double format.
2994         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
2995         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
2996         (_fpioconst_pow10): AIX long double format has same exponent range as
2997         double.
2998         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
2999         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
3000         as double.
3001
3002 2004-04-23  Art Haas  <ahaas@airmail.net>
3003
3004         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
3005
3006 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
3007
3008         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
3009         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
3010         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
3011         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
3012         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
3013
3014 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
3015
3016         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
3017         entries.
3018
3019 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
3020
3021         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
3022         prototypes and description [BZ #131].
3023
3024         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
3025         Patch by Ed Catmur <ed@catmur.co.uk>.
3026         * string/tst-inlcall.c (main): Add test for strpbrk.
3027
3028         [BZ #140]
3029         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
3030         include.
3031         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
3032         yet defined, #undef back after including linux/sysctl.h if defined
3033         here.
3034         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
3035         back after including linux/sysctl.h if defined here.
3036
3037         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
3038         for single precision register, add it to __asm clobbers [BZ #139].
3039         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
3040         for single precision register, add it to __asm clobbers.
3041         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
3042         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
3043         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
3044         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
3045
3046 2004-04-23  Andreas Schwab  <schwab@suse.de>
3047
3048         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
3049         __attribute_used__.
3050
3051 2004-04-22  Philip Blundell  <philb@gnu.org>
3052
3053         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
3054         when calling _dl_signal_error.
3055         (elf_machine_rel): Likewise.
3056
3057 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
3058
3059         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
3060         and use it internally instead of __sigsetjmp.
3061         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
3062         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
3063         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
3064         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
3065         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
3066         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
3067         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
3068         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
3069         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
3070         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
3071         HIDDEN_JUMPTARGET for exit call.
3072         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
3073         _exit call.
3074         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
3075         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
3076         strcpy calls.
3077
3078 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
3079
3080         * posix/tst-chmod.c (do_test): Fix a typo.
3081
3082         * elf/lateglobal.c (main): Fix error checks.
3083         Patch by Stephen Clarke <stephen.clarke@st.com>.
3084
3085         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
3086         mention they have been added in ISO C99.
3087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3088
3089 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
3090
3091         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
3092
3093 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3094
3095         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
3096         EACCES.
3097
3098 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3099
3100         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
3101         handling change.
3102         * stdio-common/tst-sscanf.c (int_tests): Adjust.
3103
3104         * nis/nss-nis.c: Include stdlib.h.
3105
3106         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
3107         warning.
3108         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
3109         libc_hidden_builtin_def.
3110
3111 2004-04-20  Jim Meyering  <jim@meyering.net>
3112
3113         * misc/error.c (error_tail): Don't leak upon realloc failure.
3114
3115 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3116
3117         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
3118         Use RETURN_ADDRESS instead of __builtin_return_address.
3119
3120 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
3121
3122         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
3123         compact code.
3124
3125 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3126
3127         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
3128         do input_error () instead of conv_error () and don't look at errno.
3129         Don't eat any whitespace before %% if skip_space == 0.
3130         * stdio-common/tst-sscanf.c (int_tests): New array.
3131         (main): Run int_tests.
3132
3133
3134 See ChangeLog.14 for earlier changes.