* iconv/skeleton.c: Eliminate DEFINE_DIRECTION_OBJECTS macro use,
[platform/upstream/glibc.git] / ChangeLog
1 2005-09-04  Ulrich Drepper  <drepper@redhat.com>
2
3         * iconv/skeleton.c: Eliminate DEFINE_DIRECTION_OBJECTS macro use,
4         it wasn't used.  Remove use of from_object and to_object variable,
5         replace with some constants.  Adjust users.
6
7         * sysdeps/i386/bits/string.h: Removed.
8
9         * stdio-common/Makefile (tests): Add tst-put-error.
10         * stdio-common/tst-put-error.c: New file.
11         * libio/fileops.c (_IO_new_file_xsputn): If overflow fails and no more
12         data would have to be written signal error.
13         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
14
15         * libio/fileops.c (_IO_new_file_overflow): Use NULL not 0.
16
17 2005-09-02  Ulrich Drepper  <drepper@redhat.com>
18
19         * elf/dl-load.c (_dl_map_object_from_fd): No need to change
20         protection of memory used for the last segment.
21
22 2005-08-22  Robert Millan  <robertmh@gnu.org>
23
24         * sysdeps/mach/hurd/nfs/nfs.h: Move to ...
25         * sysdeps/generic/nfs/nfs.h: ... here.
26
27 2005-09-01  Ulrich Drepper  <drepper@redhat.com>
28
29         * libio/stdio.h: Remove __wur from ungetc, sscanf, and vsscanf.
30         Add __wur to feof{,_unlocked}, ferror{,_unlocked},
31         fileno{,_unlocked}, and popen.
32
33 2005-08-30  Ulrich Drepper  <drepper@redhat.com>
34
35         * sysdeps/ieee754/flt-32/e_hypotf.c [!__STDC__]: Fix function name.
36
37 2005-08-01  Bob Wilson  <bob.wilson@acm.org>
38             Richard Sandiford  <richard@codesourcery.com>
39
40         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Add missing
41         exponent bias to the value for 2^126.
42
43 2005-08-30  Jakub Jelinek  <jakub@redhat.com>
44             Alan Modra  <amodra@bigpond.net.au>
45
46         * elf/dl-addr.c (_dl_addr): Use DL_ADDR_SYM_MATCH macro.
47         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): Define.
48         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h: New file.
49
50 2005-08-23  Ulrich Drepper  <drepper@redhat.com>
51
52         * nscd/nscd.c (main): Use error while process isn't running in the
53         background, not dbg_log.
54         * nscd/nscd_conf.c (nscd_parse_file): Likewise.
55         Mark messages with _().  Unify testing for database name.
56
57         * nscd/connection.c (DEFAULT_DATASIZE_PER_BUCKET): Move to nscd.h.
58         (dbs): Initialize max_db_size fields.
59         (nscd_init): When mapping the database, use max_db_size as the
60         mapping size even if it is bigger than the file size.
61         * nscd/mem.c (mempool_alloc): When resizing the file make sure the
62         limit in max_db_size is not exceeded.  Don't use mremap, just
63         posix_fallocate is enough (according to Linus).  Use posix_fallocate
64         correctly.
65         * nscd/nscd.conf: Add max-db-size parameters.
66         * nscd/nscd.h (struct database_dyn): Add max_db_size field.
67         Define DEFAULT_MAX_DB_SIZE and DEFAULT_DATASIZE_PER_BUCKET.
68         Temporarily define TEMP_FAILURE_RETRY_VAL here.
69         * nscd/nscd_conf.c (nscd_parse_file): Parse max-db-size parameter
70         and add sanity checks for it.
71
72         * nscd/aicache.c (addhstaiX): Use send with MSG_NOSIGNAL not write to
73         send reply.
74         * nscd/connection.c (writeall): Likewise.
75         (handle_request): Likewise.
76         * nscd/grpcache.c (cache_addgr): Likewise.
77         * nscd/hstcache.c (cache_addhst): Likewise.
78         * nscd/initgrcache.c (addinitgroupsX): Likewise.
79         * nscd/nscd.c (parse_opt): Likewise.
80         * nscd/nscd_stat.c (send_stats): Likewise.
81         (receive_print_stats): Likewise.
82         * nscd/pwdcache.c (cache_addpw): Likewise.
83
84         * sysdeps/unix/sysv/linux/Versions: Export inotify_* syscalls.
85
86 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
87
88         * stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
89         sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t).
90         Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine.
91         * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise.
92         * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply
93         len by sizeof (wchar_t).
94         * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise.
95         * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise.
96         Fix type of SRC argument.  Pass &SRC rather than SRC to
97         __mbsrtowcs.
98         * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC
99         to __wcsrtombs.
100         * debug/tst-chk1.c: Include assert.h.
101         (do_test): Change enough array from VLA into a fixed size array.
102         Assert that MB_CUR_MAX is <= sizeof (enough).  Use FAIL () macro
103         instead of print error details.  Add several new tests.
104         Kill some unused variable warnings.
105
106 2005-08-21  Ulrich Drepper  <drepper@redhat.com>
107
108         * resolv/res_send.c (Aerror): Fix printing IP address.
109
110         * resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.
111
112 2005-08-19  H.J. Lu  <hongjiu.lu@intel.com>
113
114         * sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.
115
116 2005-08-17  Robert Love  <rml@novell.com>
117
118         * sysdeps/unix/sysv/linux/sys/inotify.h: Add IN_MOVE_SELF event.
119
120 2005-08-19  Bruno Haible  <bruno@clisp.org>
121
122         * intl/localealias.c (read_alias_file): In case of failure, close the
123         file descriptor and sort the array before returning.
124
125 2005-08-19  Ulrich Drepper  <drepper@redhat.com>
126
127         * malloc/Makefile: Link libmemusage.so with ld.so.
128         * malloc/memusage.c: Use atomic operations for all counter and size
129          computations.  Handle thread stacks.
130         * sysdeps/generic/memusage.h: Define memusage_cntr_t and
131         memusage_size_t.
132         * sysdeps/i386/i686/memusage.h: New file.
133         * include/atomic.h: Define atomic_max and atomic_min.
134
135         * debug/tst-chk1.c: Add tests for mbstowcs and wcstombs.
136
137 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
138
139         [BZ #1207]
140         * posix/regex.h: Remove spurious space-before-tab.  From gnulib.
141
142 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
143
144         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
145         sys/inotify.h.
146         * sysdeps/unix/sysv/linux/sys/inotify.h: New file.
147         * sysdeps/unix/sysv/linux/syscalls.list: Add inotify syscalls.
148
149         * nscd/cache.c (prune_cache): Add more debug output.  Only for
150         debug level 3 and higher and very verbose.
151
152         * nscd/cache.c (prune_cache): Use stat64 not stat.
153         * nscd/connections.c (nscd_init): Likewise.
154
155 2005-08-10  Sergio Gelato  <Sergio.Gelato@astro.su.se>
156
157         [BZ #1188]
158         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
159         from (len > 0) to (len >= 0).
160
161 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
162
163         * nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
164         Reported by Thomas Schwinge.
165
166 2005-08-15  Jakub Jelinek  <jakub@redhat.com>
167
168         * nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.
169
170 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
171
172         * nss/getent.c (more_help): Use open_memstream instead of handling
173         memory allocation ourselves.
174
175 2005-08-16  Jay Fenlason  <fenlason@redhat.com>
176
177         * nss/getent.c (parse_options): change the -s option to support
178         {database}:{search} to override /etc/resolv.conf for only the
179         specified database.
180
181 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
182
183         * nscd/connections.c (main_loop_epoll): Pass NULL as event
184         argument for epoll_ctl(EPOLL_CTL_DEL) calls.
185
186         * nscd/nscd_stat.c (receive_print_stats): Really print values of
187         thread number, paranoia, and restart interval the server is using.
188
189         * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
190         * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
191         * debug/vfprintf_chk.c: Add libc_hidden_def.
192
193 2005-08-08  Roland McGrath  <roland@redhat.com>
194
195         * argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
196         (__argp_failure): Likewise.
197
198 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
199
200         * nscd/cache.c (cache_add): Commit hash table and header to disk.
201
202         * nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.
203         * nscd/connections.c (nscd_init): Likewise.
204
205 2005-08-08  Jakub Jelinek  <jakub@redhat.com>
206
207         * stdio-common/fxprintf.c: Include libioP.h.
208
209         * posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,
210         getdomainname): Add __NTH.
211         * stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs):
212         Likewise.
213         (realpath): Likewise.  Use __const instead of const.  Add __restrict
214         keywords.
215         * socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf.
216         * wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset,
217         wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb,
218         mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH.
219         * string/bits/string3.h (__memset_ichk): Likewise.
220         (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk,
221         __stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk,
222         __strncat_ichk): Likewise.  Use __const instead of const.
223         (__stpncpy_chk): Use __const instead of const.
224         (__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT.
225
226 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
227             Jakub Jelinek  <jakub@redhat.com>
228
229         * nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move
230         definitions to...
231         * nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here.
232         * nscd/connections.c (usekey): New enum.
233         (check_use, verify_persistent_db): New functions.
234         (nscd_init): If persistent database is corrupted, unlink it and
235         recreate rather than falling back to non-persistent database.
236         Call verify_persistent_db.  Avoid overflows in total computation.
237
238 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
239
240         * iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code
241         better readable.  Avoid passing var to loop function, it's not
242         necessary at all.
243
244 2005-08-07  Ulrich Drepper  <drepper@redhat.com>
245
246         * elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO
247         definition.
248
249 2005-08-05  Ulrich Drepper  <drepper@redhat.com>
250
251         * timezone/checktab.awk: Update from tzcode2005k.
252         * timezone/private.h: Likewise.
253         * timezone/scheck.c: Likewise.
254         * timezone/tzselect.ksh: Likewise.
255         * timezone/zdump.c: Likewise.
256         * timezone/zic.c: Likewise.
257         * timezone/africa: Update from tzdata2005k.
258         * timezone/antarctica: Likewise.
259         * timezone/asia: Likewise.
260         * timezone/australasia: Likewise.
261         * timezone/europe: Likewise.
262         * timezone/iso3166.tab: Likewise.
263         * timezone/leapseconds: Likewise.
264         * timezone/northamerica: Likewise.
265         * timezone/solar87: Likewise.
266         * timezone/solar88: Likewise.
267         * timezone/solar89: Likewise.
268         * timezone/southamerica: Likewise.
269         * timezone/zone.tab: Likewise.
270
271 2005-08-05  Roland McGrath  <roland@redhat.com>
272
273         * mach/shortcut.awk: Ignore `weak_alias' lines.
274         Reported by Alfred M. Szmidt <ams@gnu.org>.
275
276         * sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
277         Reported by Alfred M. Szmidt <ams@gnu.org>.
278
279 2005-08-03  Dwayne Grant McConnell  <dgm69@us.ibm.com>
280
281         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
282         Use +=, not =, to append.  Remove duplicate flags.
283         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
284         Likewise.  Fix comments.
285
286 2005-08-01  Ulrich Drepper  <drepper@redhat.com>
287
288         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Restart system
289         call if it returned EINTR.
290
291 2005-07-31  Ulrich Drepper  <drepper@redhat.com>
292
293         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Move
294         helper variable into .data.rel.ro.  Simplify the code.  Extend
295         comment to explain prelinking.
296
297 2005-07-31  Andreas Jaeger  <aj@suse.de>
298
299         * include/bits/syslog.h: New file.
300
301 2005-07-30  Ulrich Drepper  <drepper@redhat.com>
302
303         * elf/dl-load.c [__WORDSIZE==64] (FILEBUF_SIZE): Adjust the value
304         up.  We have more program header entries now and the note section
305         was normally not loaded.
306
307         * nis/nis_subr.c: Some minor code cleanups.
308
309 2005-07-29  Ulrich Drepper  <drepper@redhat.com>
310
311         * misc/bits/syslog.h: New file.
312         * misc/sys/syslog.h: Include <bits/syslog.h> for fortification.
313         * misc/Makefile (headers): Add bits/syslog.h.
314         * include/sys/syslog.h: Add __vsyslog_chk prototype and hidden_proto.
315         * sysdeps/generic/syslog.c: Change vsyslog function to __vsyslog_chk.
316         Call __vfprintf_chk if necessary.  Make vsyslog a wrapper.  Add
317         __syslog_chk.
318         * misc/Versions: Export __syslog_chk and __vsyslog_chk.
319
320 2005-07-28  Thomas Schwinge  <schwinge@nic-nac-project.de>
321
322         [BZ #1137]
323         * misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>.
324
325 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
326
327         * nis/nis_xdr.c: Help gcc to avoid generating unnecessary wrapper
328         functions.
329
330 2005-07-28  Jakub Jelinek  <jakub@redhat.com>
331
332         * stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf
333         call.
334         * gmon/gmon.c (write_gmon): Use __snprintf rather than snprintf.
335
336 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
337
338         * nis/nis_file.c: Rewrite the two pairs of functions into wrappers
339         around a pair of new, generalized functions.  22% size reduction.
340
341 2005-07-27  Ulrich Drepper  <drepper@redhat.com>
342
343         * nis/nis_xdr.c: Remove unnecessary cast which might hide bugs.
344         Rearrange code.  This reduces the code size 10%.
345
346 2005-07-26  Jakub Jelinek  <jakub@redhat.com>
347
348         * misc/error.c (error_tail): Fix a comment typo.
349
350 2005-07-25  Ulrich Drepper  <drepper@redhat.com>
351
352         * po/zh_TW.po: Update from translation team.
353
354         * debug/mbstowcs_chk.c: New file.
355         * debug/wcstombs_chk.c: New file.
356         * debug/Makefile (routines): Add mbstowcs_chk and wcstombs_chk.
357         * debug/Versions: Add __mbstowcs_chk and __wcstombs_chk.
358         * stdlib/bits/stdlib.h: Add definitions for mbstowcs and wcstombs.
359
360         * wcsmbs/bits/wchar2.h (mbsrtowcs): Pretty printing.
361
362 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
363
364         * string/test-memset.c (test_main): Use negative byte value in
365         test.
366
367         * string/test-memset.c (do_one_test): Compare effect of call, not
368         only return value.
369         Add a few casts to avoid warnings.
370
371 2005-07-24  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
372
373         * sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
374
375 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
376
377         [BZ #1125]
378         * posix/Makefile (tests): Add tst-execvp4.
379         * posix/tst-execvp4.c: New file.
380
381 2005-07-24  Jakub Jelinek  <jakub@redhat.com>
382
383         [BZ #1125]
384         * posix/execvp.c (execvp): Change path_malloc to
385         char *, free that pointer on failure.
386
387 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
388
389         * wcsmbs/bits/wchar2.h: Use __FILE not FILE.
390         * wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
391         * wcsmbs/tst-wchar-h.c: New file.
392
393 2005-07-22  Ulrich Drepper  <drepper@redhat.com>
394
395         * stdio-common/fxprintf.c (__fxprintf): Define variable more local.
396
397 2005-07-22  Jakub Jelinek  <jakub@redhat.com>
398
399         * wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
400         __gnuc_va_list rather than _G_va_list.
401
402 2005-07-22  Roland McGrath  <roland@redhat.com>
403
404         [BZ #869]
405         * Makerules ($(objpfx)stubs): Fix last change.
406
407 2005-07-21  Roland McGrath  <roland@redhat.com>
408
409         * nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).
410
411         * stdlib/Makefile (headers): Move bits/wchar.h to ...
412         * wcsmbs/Makefile (headers): ... here.  Add bits/wchar2.h too.
413
414 2005-07-21  Jakub Jelinek  <jakub@redhat.com>
415
416         * wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
417         * debug/tst-chk1.c (do_test): Add test for swprintf with format
418         being the last argument.
419
420 2005-07-21  Thorsten Kukuk  <kukuk@suse.de>
421
422         * debug/getgroups_chk.c (__getgroups_chk): Fix return value.
423
424         * stdio-common/fxprintf.c: Include string.h.
425
426 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
427
428         [BZ #1138]
429         * sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results.
430         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
431         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
432
433 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
434             Darin Petkov  <darin@tensilica.com>
435
436         [BZ #1138]
437         * sysdeps/ieee754/flt-32/e_atan2f.c (pi_lo): Correct exponent value.
438
439 2005-07-20  Jakub Jelinek  <jakub@redhat.com>
440
441         * include/stdio.h (__fxprintf): Remove wfmt argument.
442         * stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h.
443         (__fxprintf): Remove wfmt argument, create wfmt format string on
444         the fly from fmt.
445         * argp/argp-fmtstream.c: Adjust all __fxprintf callers.
446         * argp/argp-help.c: Likewise.
447         * assert/assert-perr.c: Likewise.
448         * assert/assert.c: Likewise.
449         * gmon/gmon.c: Likewise.
450         * inet/rcmd.c: Likewise.
451         * malloc/obstack.c: Likewise.
452         * misc/error.c: Likewise.
453         * misc/getpass.c: Likewise.
454         * posix/getopt.c: Likewise.
455         * resolv/res_hconf.c: Likewise.
456         * stdio-common/perror.c: Likewise.
457         * stdio-common/psignal.c: Likewise.
458         * stdlib/fmtmsg.c: Likewise.
459         * sunrpc/auth_unix.c: Likewise.
460         * sunrpc/clnt_perr.c: Likewise.
461         * sunrpc/clnt_tcp.c: Likewise.
462         * sunrpc/clnt_udp.c: Likewise.
463         * sunrpc/clnt_unix.c: Likewise.
464         * sunrpc/svc_simple.c: Likewise.
465         * sunrpc/svc_tcp.c: Likewise.
466         * sunrpc/svc_udp.c: Likewise.
467         * sunrpc/svc_unix.c: Likewise.
468         * sunrpc/xdr.c: Likewise.
469         * sunrpc/xdr_array.c: Likewise.
470         * sunrpc/xdr_rec.c: Likewise.
471         * sunrpc/xdr_ref.c: Likewise.
472         * sysdeps/generic/wordexp.c: Likewise.
473
474 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
475
476         * wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,
477         wcsrtombs, mbsnrtowcs, and wcsnrtombs.
478         * debug/Makefile (routines): Add wcrtomb_chk, mbsrtowcs_chk,
479         wcsrtombs_chk, mbsnrtowcs_chk, and wcsnrtombs_chk.
480         * debug/Versions: Add __wcrtomb_chk, __mbsrtowcs_chk,
481         __wcsrtombs_chk, __mbsnrtowcs_chk, and __wcsnrtombs_chk.
482         * debug/tst-chk1.c: Add tests for new functions.
483         * debug/mbsnrtowcs_chk.c: New file.
484         * debug/mbsrtowcs_chk.c: New file.
485         * debug/wcrtomb_chk.c: New file.
486         * debug/wcsnrtombs_chk.c: New file.
487         * debug/wcsrtombs_chk.c: New file.
488
489 2005-07-19  Ulrich Drepper  <drepper@redhat.com>
490
491         * stdio-common/Makefile (aux): Add fxprintf.
492         * stdio-common/fxprintf.c: New file.
493         * include/stdio.h: Add declaration for __fxprintf.
494         * argp/argp-fmtstream.c: Use __fxprintf instead of inline stream
495         orientation test and two separate function calls.
496         * argp/argp-help.c: Likewise.
497         * assert/assert-perr.c: Likewise.
498         * assert/assert.c: Likewise.
499         * gmon/gmon.c: Likewise.
500         * inet/rcmd.c: Likewise.
501         * malloc/obstack.c: Likewise.
502         * misc/error.c: Likewise.
503         * misc/getpass.c: Likewise.
504         * posix/getopt.c: Likewise.
505         * resolv/res_hconf.c: Likewise.
506         * stdio-common/perror.c: Likewise.
507         * stdio-common/psignal.c: Likewise.
508         * stdlib/fmtmsg.c: Likewise.
509         * sunrpc/auth_unix.c: Likewise.
510         * sunrpc/clnt_perr.c: Likewise.
511         * sunrpc/clnt_tcp.c: Likewise.
512         * sunrpc/clnt_udp.c: Likewise.
513         * sunrpc/clnt_unix.c: Likewise.
514         * sunrpc/svc_simple.c: Likewise.
515         * sunrpc/svc_tcp.c: Likewise.
516         * sunrpc/svc_udp.c: Likewise.
517         * sunrpc/svc_unix.c: Likewise.
518         * sunrpc/xdr.c: Likewise.
519         * sunrpc/xdr_array.c: Likewise.
520         * sunrpc/xdr_rec.c: Likewise.
521         * sunrpc/xdr_ref.c: Likewise.
522         * sysdeps/generic/wordexp.c: Likewise.
523
524         [BZ #1137]
525         * misc/Makefile: Add rules to build and run tst-error1.
526         * misc/tst-error1.c: New file.
527         * misc/error.c: Fix memory leak and possibly endless loop.
528
529         * configure.in: Check for -fstack-protector gcc option.
530         * config.make.in (have-ssp): Add template.
531         * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported.
532
533         * nscd/nscd.c (main): Don't ignore result of chdir call.
534
535 2005-07-18  Roland McGrath  <roland@redhat.com>
536
537         [BZ #869]
538         * Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
539         objdump command line.
540
541 2005-07-18  Ulrich Drepper  <drepper@redhat.com>
542
543         * nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.
544
545         * nscd/connections.c: Fix a few wur warnings.
546
547         [BZ #1113]
548         * nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
549         length.  Patch by Ivan Gyurdiev <ivg2@cornell.edu>.
550
551         * debug/confstr_chk.c: New file.
552         * debug/getdomainname_chk.c: New file.
553         * debug/getgroups_chk.c: New file.
554         * debug/gethostname_chk.c: New file.
555         * debug/getlogin_r_chk.c: New file.
556         * debug/ttyname_r_chk.c: New file.
557         * posix/bits/unistd.h: Add definitions for new debug versions.
558         * debug/tst-chk1.c: Add tests for new functions.
559         * debug/Versions: Export new functions.
560         * debug/Makefile (routines): Add new files.
561
562         * stdlib/bits/stdlib.h: Fix typo.
563
564 2005-07-13  Thorsten Kukuk  <kukuk@suse.de>
565
566         * manual/Makefile (libc/index.html): Depend on dir-add.texi.
567
568 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
569
570         * stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT
571         where necessary.
572         * wcsmbs/bits/wchar2.h: Likewise.
573
574 2005-07-15  Andreas Jaeger  <aj@suse.de>
575
576         * debug/Makefile (tst-lfschk3-ENV): New, set locale.
577         (tst-lfschk2-ENV): New.
578         (tst-lfschk1-ENV): New.
579         (tst-chk3-ENV): New.
580         (tst-chk2-ENV): New.
581         (tst-chk1-ENV): New.
582
583         [BZ #1079]
584         * include/stdlib.h: Remove malloc attribute from __posix_memalign.
585         * stdlib/stdlib.h: Likewise.
586
587 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
588
589         * wcsmbs/bits/wchar2.h: New file.
590         * include/bits/wchar2.h: New file.
591         * wcsmbs/wchar.h: Include <bits/wchar2.h> if fortification is
592         requested.
593         * wcsmbs/wcsncpy.c: Add __wcsncpy alias.
594         * string/bits/string3.h: Add fortified stpncpy definitions.
595         * sysdeps/generic/stpncpy_chk.c: New file.
596         * libio/vswprintf.c: Move _IO_wstrnfile definition to strfile.h.
597         Export _IO_wstrn_jumps.
598         * libio/strfile.h: Define _IO_wstrnfile and declare _IO_wstrn_jumps.
599         * include/wchar.h: Declare __wcsncpy and __vswprintf_chk.
600         * debug/fgetws_chk.c: New file.
601         * debug/fgetws_u_chk.c: New file.
602         * debug/fwprintf_chk.c: New file.
603         * debug/swprintf_chk.c: New file.
604         * debug/vfwprintf_chk.c: New file.
605         * debug/vswprintf_chk.c: New file.
606         * debug/vwprintf_chk.c: New file.
607         * debug/wcpcpy_chk.c: New file.
608         * debug/wcpncpy_chk.c: New file.
609         * debug/wcscat_chk.c: New file.
610         * debug/wcscpy_chk.c: New file.
611         * debug/wcsncat_chk.c: New file.
612         * debug/wcsncpy_chk.c: New file.
613         * debug/wmemcpy_chk.c: New file.
614         * debug/wmemmove_chk.c: New file.
615         * debug/wmempcpy_chk.c: New file.
616         * debug/wmemset_chk.c: New file.
617         * debug/wprintf_chk.c: New file.
618         * debug/tst-chk1.c: Add tests for new functions.
619         * debug/Versions: Export new functions.
620         * debug/Makefile (routines): Add new functions.
621
622 2005-07-13  Ulrich Drepper  <drepper@redhat.com>
623
624         * nscd/nscd_helper.c: Add a few __builtin_expect.
625
626         [BZ #1080]
627         * nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
628         * nscd/nscd_helper.c (wait_on_socket): New function.
629         (get_mapping): Use wait_on_socket instead of poll.  The former handles
630         EINTR of poll correctly.
631         (__nscd_open_socket): Likewise.
632         (get_mapping): Make sure BUF is aligned correctly.
633         (get_mapping): Use munmap on correct pointer.
634
635 2005-07-12  Ulrich Drepper  <drepper@redhat.com>
636
637         * include/libc-symbols.h: Define macros for librt hidden symbols.
638         * include/time.h: Add librt_hidden_proto definition for clock_gettime.
639         * sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
640         * sysdeps/unix/clock_gettime.c: Likewise.
641
642         * stdlib/bits/stdlib.h: New file.
643         * stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
644         requested.
645         * Makefile (headers): Add bits/stdlib.h.
646         * include/bits/stdlib.h: New file.
647         * debug/Depend: New file.
648         * debug/ptsname_r_chk.c: New file.
649         * debug/realpath_chk.c: New file.
650         * debug/wctomb_chk.c: New file.
651         * debug/Makefile (routines): Add ptsname_r_chk, realpath_chk, and
652         wctomb_chk.
653         * debug/Versions: Export __ptsname_r_chk, __realpath_chk, and
654         __wctomb_chk.
655         * debug/tst-chk1.c: Add tests for __ptsname_r_chk, __realpath_chk, and
656         __wctomb_chk.
657
658 2005-07-12  Jakub Jelinek  <jakub@redhat.com>
659
660         [BZ #1106]
661         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Include not-cancel.h.
662         (has_cpuclock): Use open_not_cancel_2 instead of open, read_not_cancel
663         instead of read and close_not_cancel_no_status instead of close.
664
665         [BZ #1106]
666         * sysdeps/s390/s390-64/bcopy.S (__bcopy): Use
667         HIDDEN_BUILTIN_JUMPTARGET to jump to memmove.
668
669 2005-06-27  Carlos O'Donell  <carlos@systemhalted.org>
670
671         * posix/regcomp.c (re_compile_internal): Call __libc_lock_init
672         after init_dfa.
673
674 2005-07-08  Ulrich Drepper  <drepper@redhat.com>
675
676         * sysdeps/x86_64/fpu/s_sincosl.S: Use retq not ret.  Remove
677         alignment.
678         * sysdeps/x86_64/fpu/s_sincos.S: New file.
679
680         * include/fenv.h: Add libm_hidden_proto for fesetround and
681         feholdexcept.
682         * sysdeps/alpha/fpu/feholdexcpt.c: Add libm_hidden_def.
683         * sysdeps/alpha/fpu/fesetround.c: Likewise.
684         * sysdeps/generic/feholdexcpt.c: Likewise.
685         * sysdeps/generic/fesetround.c: Likewise.
686         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
687         * sysdeps/i386/fpu/fesetround.c: Likewise.
688         * sysdeps/ia64/fpu/feholdexcpt.c: Likewise.
689         * sysdeps/ia64/fpu/fesetround.c: Likewise.
690         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
691         * sysdeps/powerpc/fpu/fesetround.c: Likewise.
692         * sysdeps/s390/fpu/feholdexcpt.c: Likewise.
693         * sysdeps/s390/fpu/fesetround.c: Likewise.
694         * sysdeps/sh/sh4/fpu/feholdexcpt.c: Likewise.
695         * sysdeps/sh/sh4/fpu/fesetround.c: Likewise.
696         * sysdeps/sparc/fpu/feholdexcpt.c: Likewise.
697         * sysdeps/sparc/fpu/fesetround.c: Likewise.
698         * sysdeps/x86_64/fpu/feholdexcpt.c: Likewise.
699         * sysdeps/x86_64/fpu/fesetround.c: Likewise.
700         * sysdeps/generic/s_significand.c (__significand): Use __ilogb not
701         ilogb.
702         * sysdeps/generic/s_significandf.c (__significandf): Use __ilogbf
703         not ilogbf.
704         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use __sin and
705         __cos, not sin and cos.
706
707 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
708
709         * resolv/res_send.c (send_dg): Recognize referral results and
710         treat them as server errors.
711         Based on a patch by Jason Vas Dias <jvdias@redhat.com>.
712
713 2005-07-08  Carlos O'Donell  <carlos@systemhalted.org>
714
715         * sysdeps/hppa/setjmp.S (__sigsetjmp): Use %r1 not %r19.
716
717         * sysdeps/hppa/add_n.s (__mpn_add_n): Use sr0 or r0, not 0.
718         * sysdeps/hppa/lshift.s (__mpn_lshift): Likewise.
719         * sysdeps/hppa/rshift.s (__mpn_rshift): Likewise.
720         * sysdeps/hppa/sub_n.s (__mpn_sub_n): Likewise.
721         * sysdeps/hppa/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
722         * sysdeps/hppa/hppa1.1/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
723
724 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
725
726         * sysdeps/generic/s_ctanh.c (__ctanh): Handle case of zero den better.
727         * sysdeps/generic/s_ctanhf.c (__ctanhf): Likewise.
728         * sysdeps/generic/s_ctanhl.c (__ctanhl): Likewise.
729         * sysdeps/generic/s_ctan.c (__ctan): Likewise.
730         * sysdeps/generic/s_ctanf.c (__ctanf): Likewise.
731         * sysdeps/generic/s_ctanl.c (__ctanl): Likewise.
732
733 2005-04-13  H.J. Lu  <hongjiu.lu@intel.com>
734
735         [BZ #974]
736         * csu/elf-init.c (__preinit_array_start): Take int, char **, char **.
737         (__preinit_array_end): Likewise.
738         (__init_array_start): Likewise.
739         (__init_array_end): Likewise.
740         (__libc_csu_init): Take int argc, char **argv, char **envp.
741         Call preinit_array and init_array with argc, argv, envp.
742         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Remove
743         INIT_MAIN_ARGS.
744         * sysdeps/powerpc/elf/libc-start.c (INIT_MAIN_ARGS): Removed.
745         * elf/Makefile (distribute): Add tst-array5.c, tst-array5-static.c,
746         tst-array5dep.c, and tst-array5.exp.
747         (tests): Add tst-array5.
748         (tests-static): Add tst-array5-static.
749         ($(objpfx)tst-array5): New target.
750         ($(objpfx)tst-array5.out): Likewise.
751         ($(objpfx)tst-array5-static.out): Likewise.
752         * elf/tst-array5-static.c: New file.
753         * elf/tst-array5-static.exp: Likewise.
754         * elf/tst-array5.c: Likewise.
755         * elf/tst-array5.exp: Likewise.
756         * elf/tst-array5dep.c: Likewise.
757
758 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
759
760         * sysdeps/unix/sysv/linux/bits/sched.h: Adjust clone prototype.
761
762 2005-07-05  Jakub Jelinek  <jakub@redhat.com>
763
764         * elf/stackguard-macros.h (STACK_CHK_GUARD): Fix s390/s390x definition.
765         Reported by Ulrich Weigand <uweigand@de.ibm.com>.
766
767         * elf/stackguard-macros.h (STACK_CHK_GUARD): Add ia64 definition.
768
769 2005-07-06  Ulrich Drepper  <drepper@redhat.com>
770
771         * elf/dl-error.c (_dl_signal_error): When testing for executable
772         being relocated, take into account that nothing might even be loaded.
773
774         * elf/dl-reloc.c [PROF] (_dl_relocate_object): Define
775         consider_profiling always to zero.  Don't count of compiler to
776         remove unreached if block.
777         * sysdeps/x86_64/dl-trampoline.S [PROF] (_dl_runtime_profile):
778         Don't compile.
779         * sysdeps/i386/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
780         * sysdeps/ia64/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
781         * sysdeps/s390/s390-64/dl-trampoline.S [PROF] (_dl_runtime_profile):
782         Likewise.
783         * sysdeps/s390/s390-32/dl-trampoline.S [PROF] (_dl_runtime_profile):
784         Likewise.
785         * sysdeps/powerpc/powerpc64/dl-trampoline.S [PROF]
786         (_dl_profile_resolve): Likewise.
787         * sysdeps/powerpc/powerpc32/dl-trampoline.S [PROF]
788         (_dl_profile_resolve): Likewise.
789         * gmon/Makefile: Add rules to build and run tst-profile-static.
790         * gmon/tst-profile-static.c: New file.
791         * Makeconfig (+link-static): Allow passing program-specific flags.
792
793 2005-07-05  Thorsten Kukuk  <kukuk@suse.de>
794
795         [BZ #1111]
796         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
797         module provides getgrgid_r.
798         (getgrnam_plusgroup): Preserve original return value.
799         * nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
800         original return value.
801         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.
802
803 2005-07-05  Ulrich Drepper  <drepper@redhat.com>
804
805         [BZ #1101]
806         * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not
807         MB_CUR_MAX.
808         (build_wcs_upper_buffer): Likewise.
809
810         * csu/elf-init.c (__libc_csu_fini): Pretty printing.
811
812 2005-07-02  Roland McGrath  <roland@redhat.com>
813
814         * NEWS: Note LinuxThreads removal.
815         * manual/install.texi (Installation): Don't mention linuxthreads.
816         (Configuring and compiling): Don't use linuxthreads as example.
817
818         * sysdeps/unix/sysv/linux/configure.in: Check for nptl add-on only,
819         not linuxthreads.
820         * sysdeps/unix/sysv/linux/configure: Regenerated.
821         * resolv/Depend: Add nptl.
822         * rt/Depend: Likewise.
823
824         * linuxthreads, linuxthreads_db: Directories removed (preserved in
825         ports repository).
826
827 2005-06-27  Jakub Jelinek  <jj@ultra.linux.cz>
828
829         [BZ #1037]
830         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated,
831         use -mcpu=v8.
832
833 2005-06-16  Jakub Jelinek  <jakub@redhat.com>
834
835         [BZ #1016]
836         * sysdeps/ia64/strlen.S (strlen): Change l2 into a local label.
837
838 2005-06-23  Thorsten Kukuk  <kukuk@suse.de>
839
840         [BZ #1109]
841         * nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTR
842         with own translation.
843
844 2005-06-25  Jakub Jelinek  <jakub@redhat.com>
845
846         [BZ #1097]
847         * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast
848         t2 to uint32_t instead of ulong.
849         * sunrpc/Makefile (tests): Add tst-xdrmem.
850         * sunrpc/tst-xdrmem.c: New test.
851
852         * Versions.def (ld): Add GLIBC_2.4.
853         * configure.in: Add --enable-stackguard-randomization option.
854         (ENABLE_STACKGUARD_RANDOMIZE): New define.
855         * config.h.in (ENABLE_STACKGUARD_RANDOMIZE): Add.
856         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include stdint.h.
857         (_dl_setup_stack_chk_guard): New inline function.
858         * sysdeps/generic/dl-osinfo.h: Include stdint.h.
859         (_dl_setup_stack_chk_guard): New inline function.
860         * elf/rtld.c (__stack_chk_guard): New variable.
861         (dl_main): Remove all traces of TLS_INIT_TP_EXPENSIVE.
862         Set __stack_chk_guard to _dl_setup_stack_chk_guard (),
863         use THREAD_SET_STACK_GUARD if defined.
864         * elf/Versions (ld): Export __stack_chk_guard@@GLIBC_2.4.
865         * sysdeps/generic/libc-start.c (__stack_chk_guard): New variable.
866         (__libc_start_main): Set __stack_chk_guard to
867         _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined.
868         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Remove all
869         traces of TLS_INIT_TP_EXPENSIVE.
870         * debug/Versions (libc): Export __stack_chk_fail@@GLIBC_2.4.
871         * debug/Makefile (routines): Add stack_chk_fail.
872         (static-only-routines): Add stack_chk_fail_local.
873         * debug/stack_chk_fail_local.c: New file.
874         * debug/stack_chk_fail.c: New file.
875         * elf/Makefile: Add rules to build and run tst-stackguard1{,-static}
876         tests.
877         * elf/tst-stackguard1.c: New file.
878         * elf/tst-stackguard1-static.c: New file.
879         * elf/stackguard-macros.h: New file.
880
881 2005-06-21  Ulrich Drepper  <drepper@redhat.com>
882
883         * resource/Makefile (tests): Add tst-getrlimit.
884         * resource/tst-getrlimit.c: New file.
885
886         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTPRIO): Fix typo.
887         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
888         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
889
890 2005-06-20  Ulrich Drepper  <drepper@redhat.com>
891
892         * nscd/nscd.init: Get more in line with lsb3.
893         * nscd/nscd.c: Adjust some error codes to fit in better with lsb3.
894         * nscd/connections.c: Likewise.
895
896 2005-06-20  Jakub Jelinek  <jakub@redhat.com>
897
898         [BZ #653]
899         * sysdeps/unix/sysv/linux/sys/quota.h: Add definitions and types for
900         _LINUX_QUOTA_VERSION >= 2.
901         (_LINUX_QUOTA_VERSION): Define if not yet defined.
902
903         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_NICE,
904         RLIMIT_RTPRIO): Add.
905         (RLIMIT_NLIMITS): Adjust.
906         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_NICE,
907         RLIMIT_RTPRIO): Add.
908         (RLIMIT_NLIMITS): Adjust.
909         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_NICE,
910         RLIMIT_RTPRIO): Add.
911         (RLIMIT_NLIMITS): Adjust.
912         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_NICE,
913         RLIMIT_RTPRIO): Add.
914         (RLIMIT_NLIMITS): Adjust.
915
916 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
917
918         [BZ #1106]
919         * time/mktime.c: Always include <string.h> for prototype of
920         implicitly used memcpy.
921
922         [BZ #1104]
923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
924         (truncate64): Use __truncate, not truncate.
925         (__have_no_truncate64): Renamed from have_no_truncate64.
926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
927         (__have_no_truncate64): Renamed from have_no_truncate64.
928
929         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ulps for complex
930         float functions for gcc 4.
931
932 2005-06-10  Jakub Jelinek  <jakub@redhat.com>
933
934         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):
935         Handle prelinked libraries and binaries with new style PLT.
936
937 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
938
939         * elf/elf.h (R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI,
940         R_PPC_REL16_HA): Define.
941
942 2005-06-14  Alan Modra  <amodra@bigpond.net.au>
943
944         * config.h.in (HAVE_ASM_PPC_REL16): Add.
945         * elf/elf.h (DT_PPC_GOT, DT_PPC_NUM): Define.
946         * elf/tls-macros.h (PowerPC32): Include config.h.  Add variants of
947         TLS_IE, TLS_LD and TLS_GD for new PLT/GOT layout.
948         * sysdeps/powerpc/powerpc32/configure.in: New file,
949         * sysdeps/powerpc/powerpc32/dl-dtprocnum.h: New file.
950         * sysdeps/powerpc/powerpc32/dl-machine.h (DT_PPC): Define.
951         (ppc_got): New inline function.
952         (elf_machine_dynamic): Use ppc_got.  Add attribute const.
953         (elf_machine_load_address): Add attribute const.  Don't use int vars.
954         Use bcl rather than bl to save trashing branch target stack.  Use
955         elf_machine_dynamic rather than duplicating code here.
956         (elf_machine_runtime_setup): New inline function replacing define.
957         Handle new PLT.
958         (elf_machine_fixup_plt): Handle new PLT.
959         (elf_machine_rela): Likewise.
960         * sysdeps/powerpc/powerpc32/sysdep.h: Include config.h.
961         (CALL_MCOUNT): Don't set up counter vars.
962         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Correct comment.
963         * sysdeps/powerpc/powerpc32/elf/start.S (start_addressesp): Don't
964         define when HAVE_ASM_PPC_REL16.
965         (_start): Add HAVE_ASM_PPC_REL16 code.
966         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Don't bl
967         into the GOT when HAVE_ASM_PPC_REL16.
968         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
969         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Ditto.
970         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Likewise.
971         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
972         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
973         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
974         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Likewise.
975         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
976         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
977         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
978         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
979         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
980         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
981         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp):
982         Likewise.
983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S (__brk): Likewise.
984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
985         (__getcontext): Likewise.
986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
987         (__setcontext): Likewise.
988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
989         (__swapcontext): Likewise.
990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (stackblock):
991         Comment.
992         (__socket): Bomb if NARGS >= 7.  Invoke CGOTSETUP and CGOTRESTORE.
993
994 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
995
996         [BZ #1106]
997         * sysdeps/posix/sigignore.c: Include <string.h> to tell the compiler
998         to use __GI_memset.
999         * sysdeps/posix/signal.c: Likewise.
1000         * sysdeps/posix/sigset.c: Likewise.
1001         * sysdeps/posix/sysv_signal.c: Likewise.
1002         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1003         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1004         * sysdeps/unix/sysv/linux/system.c: Likewise.
1005
1006 2005-06-15  Jakub Jelinek  <jakub@redhat.com>
1007
1008         [BZ #1088]
1009         * hesiod/hesiod.c (hesiod_init): Don't check for ctx->classes[0] == 0
1010         or both classes equal here.
1011         (parse_config_file): If both classes are equal, clear the second one.
1012
1013 2005-06-08  Karl Kelley  <kekelley@iastate.edu>
1014
1015         [BZ #1088]
1016         * hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
1017         * hesiod/hesiod.c (hesiod_init): Initialize classes.  Fail if no
1018         valid classes were given or if both are equal.
1019         (hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
1020         and C_HS order.
1021         (parse_config_file): Handle classes keyword.
1022         * hesiod/README.hesiod: Mention addition of the classes keyword.
1023
1024 2005-06-14  Ulrich Drepper  <drepper@redhat.com>
1025
1026         [BZ #1085]
1027         * configure.in: Add test for availability of libaudit.
1028         * config.h.in: Define HAVE_LIBAUDIT.
1029         * config.make.in: Define have-libaudit.
1030         * nscd/Makefile: If libaudit is available, link nscd with it.
1031         * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
1032         Patch by Steve Grubb <sgrubb@redhat.com>.
1033
1034         * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64.
1035         * sysdeps/posix/posix_fallocate64.c: Likewise.
1036         * include/string.h: Use libc_hidden_proto for strnlen.
1037         * sysdeps/generic/strnlen.c: Add libc_hidden_def.
1038         * include/libintl.h: Use libc_hidden_proto for __dcgettext.
1039         * intl/dcgettext.c: Add libc_hidden_def.
1040         * include/execinfo.h: Add libc_hidden_proto for __backtrace and
1041         __backtrace_symbols_fd.
1042         * sysdeps/generic/backtrace.c: Add libc_hidden_def.
1043         * sysdeps/generic/backtracesymsfd.c: Likewise.
1044         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1045         * sysdeps/i386/backtrace.c: Likewise.
1046         * sysdeps/ia64/backtrace.c: Likewise.
1047         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
1048         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
1049         * sysdeps/s390/s390-32/backtrace.c: Likewise.
1050         * sysdeps/s390/s390-64/backtrace.c: Likewise.
1051
1052 2005-06-13  Ulrich Drepper  <drepper@redhat.com>
1053
1054         * sysdeps/unix/clock_gettime.c (clock_gettime): Implement case
1055         where HANDLED_REALTIME is not defined.  [BZ #966]
1056
1057 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
1058
1059         [BZ #1096]
1060         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq,
1061         __netlink_receive): Remove prototypes.
1062         (__netlink_request): New prototype.
1063         * sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and
1064         <stdint.h>.
1065         (__netlink_sendreq): Make static.
1066         (__netlink_receive): Rename to...
1067         (__netlink_request): ... this.  Add type argument, call
1068         __netlink_sendreq.  If MSG_TRUNC is set after recvmsg, retry
1069         with a bigger buffer.  Don't record buffers that contain no
1070         messages we are expecting.
1071         (getifaddrs): Use __netlink_request instead of __netlink_sendreq
1072         and __netlink_receive pairs.  Formatting.
1073         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use
1074         __netlink_request instead of __netlink_sendreq and __netlink_receive
1075         pair.
1076
1077 2005-06-13  Thorsten Kukuk  <kukuk@suse.de>
1078
1079         * sysdeps/unix/sysv/linux/netinet/if_tr.h: Don't include kernel
1080         headers, instead copy important structs/defines.
1081
1082 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
1083
1084         * elf/rtld.c (dl_main): Move DT_DEBUG setup before first
1085         _dl_debug_state call.
1086
1087 2005-06-12  Ulrich Drepper  <drepper@redhat.com>
1088
1089         * elf/dl-error.c (_dl_signal_error): Store information about use of
1090         real malloc in the catch object.
1091         (_dl_catch_error): Forward information about malloc use to caller
1092         in new parameter.
1093         (_dl_out_of_memory): Make static.
1094         * elf/dl-deps.c: Adjust callers of _dl_catch_error.
1095         * elf/dl-libc.c: Likewise.
1096         * elf/dl-open.c: Likewise.
1097         * elf/rtld.c: Likewise.
1098         Add new --audit option.
1099         * sysdeps/generic/ldsodefs.h: Remove _dl_out_of_memory declaration.
1100         (rtld_global_ro._dl_signal_error): Add new parameter.
1101         * include/dlfcn.h (_dl_catch_error): Add new parameter.
1102         * dlfcn/dlfcn.c (_dlerror_run): Pass additional parameter to
1103         _dl_catch_error.  Only free if the returned newly value says so.
1104
1105 2005-06-01  Roland McGrath  <roland@redhat.com>
1106
1107         [BZ #959]
1108         * posix/tst-mmap.c (main): Fill the test file with enough data for the
1109         page size.
1110
1111 2005-05-30  Jakub Jelinek  <jakub@redhat.com>
1112
1113         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): If
1114         GLRO(dl_osversion) has been already set to a value smaller than
1115         _dl_discover_osversion (), don't overwrite it here.
1116
1117 2005-05-24  Thomas Schwinge  <schwinge@nic-nac-project.de>
1118
1119         * sysdeps/mach/i386/syscall.S (syscall): Call END.
1120
1121 2005-05-28  Richard Henderson  <rth@redhat.com>
1122
1123         * elf/elf.h (DT_ALPHA_PLTRO, DT_ALPHA_NUM): New.
1124         * sysdeps/alpha/dl-dtprocnum.h: New file.
1125         * sysdeps/alpha/dl-machine.h (DT_ALPHA): New.
1126         (elf_machine_load_address): Simplify to rely on gprel relocations.
1127         (elf_machine_runtime_setup): Handle DT_ALPHA_PLTRO plt format.
1128         Remove thread safety workaround for binutils 2.6.
1129         (elf_machine_fixup_plt): Handle DT_ALPHA_PLTRO plt format.
1130         * sysdeps/alpha/dl-trampoline.S (_dl_runtime_resolve_new): New.
1131         (_dl_runtime_profile_new): New.
1132         (_dl_runtime_resolve_old): Rename from _dl_runtime_resolve.
1133         (_dl_runtime_profile_old): Rename from _dl_runtime_profile.  Fix
1134         typo in _dl_call_pltexit argument loading.
1135
1136         * sysdeps/alpha/div_libc.h (funcnoplt): New.
1137         * sysdeps/alpha/divl.S: Use it.
1138         * sysdeps/alpha/divq.S: Likewise
1139         * sysdeps/alpha/divqu.S: Likewise.
1140         * sysdeps/alpha/reml.S: Likewise.
1141         * sysdeps/alpha/remq.S: Likewise.
1142         * sysdeps/alpha/remqu.S: Likewise.
1143
1144 2005-05-26  Andreas Schwab  <schwab@suse.de>
1145
1146         * locale/Makefile (CFLAGS-loadlocale.c): Don't define.
1147
1148 2005-05-26  Ulrich Drepper  <drepper@redhat.com>
1149
1150         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_DIRECT): Fix value.
1151         Reported by Colin Gibbs <colin@gibbsonline.net>.  [BZ #954]
1152
1153 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
1154
1155         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Corrent
1156         _dl_hwcap access in PIC && !SHARED case.
1157         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1158
1159 2005-05-25  Dwayne Grant McConnell  <dgm69@us.ibm.com>
1160
1161         * gmon/gmon.c: Add space in weak_alias use.
1162         * linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1163         * sysdeps/alpha/htonl.S: Likewise.
1164         * sysdeps/alpha/htons.S: Likewise.
1165         * sysdeps/alpha/elf/start.S: Likewise.
1166         * sysdeps/i386/i386-mcount.S: Likewise.
1167         * sysdeps/ia64/strchr.S: Likewise.
1168         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
1169         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
1170         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1171         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1172         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1173         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1174         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1175         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1176         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1177         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1178         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1179         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1180         * sysdeps/mach/hurd/readdir64_r.c: Likewise.
1181         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
1182         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1183         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1184         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1185         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
1186         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1187         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1188         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1189         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
1190         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1191         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1192         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1193         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
1194         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1195         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1196         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1197         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1198         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1199         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1200         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1201         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1202         * sysdeps/sparc/sparc32/memset.S: Likewise.
1203         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1204         * sysdeps/sparc/sparc32/strchr.S: Likewise.
1205         * sysdeps/sparc/sparc32/strchr.S: Likewise.
1206         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
1207         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1208         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1209         * sysdeps/sparc/sparc64/memset.S: Likewise.
1210         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1211         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1212         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1213         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1214         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1215         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1216         * sysdeps/unix/sysv/linux/alpha/getcontext.S: Likewise.
1217         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1218         * sysdeps/unix/sysv/linux/alpha/setcontext.S: Likewise.
1219         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
1220         * sysdeps/unix/sysv/linux/alpha/swapcontext.S: Likewise.
1221         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
1222         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1223         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1224         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
1225         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1226         * sysdeps/unix/sysv/linux/i386/makecontext.S: Likewise.
1227         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1228         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1229         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1230         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1231         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1232         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1234         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
1235         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
1236         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1237         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
1238         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1239         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1240         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
1241         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1242         * sysdeps/unix/sysv/linux/sparc/sparc64/getcontext.S: Likewise.
1243         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1244         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1245         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
1246         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
1247         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1248         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Likewise.
1249         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1250         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1251         * sysdeps/x86_64/_mcount.S: Likewise.
1252
1253 2005-05-24  Roland McGrath  <roland@redhat.com>
1254
1255         * sysdeps/unix/sysv/linux/i386/sysdep.h
1256         (SETUP_PIC_REG, LOAD_PIC_REG): Move these macros ...
1257         * sysdeps/i386/sysdep.h [PIC]: ... to here.
1258
1259 2005-05-23  Roland McGrath  <roland@redhat.com>
1260
1261         * sysdeps/arm, sysdeps/unix/arm, sysdeps/unix/sysv/linux/arm:
1262         Subdirectories moved to ports repository.
1263         * configure.in (base_machine): Remove arm* and thumb* patterns.
1264         * shlib-versions (arm.*-.*-linux.*): Remove this pattern.
1265
1266 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
1267
1268         [BZ #1086]
1269         * sunrpc/bindrsvprt.c (LOWPORT): Apparently some mountd
1270         implementations are broken and don't accept ports < 512.
1271
1272 2005-05-22  Dmitry V. Levin  <ldv@altlinux.org>
1273
1274         [BZ #961]
1275         * io/sys/sendfile.h: Remove __nonnull from sendfile and sendfile64
1276         declarations.
1277
1278 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
1279
1280         [BZ #1086]
1281         * sunrpc/pm_getport.c (__get_socket): New function.
1282         (pmap_getport): Use it to open a non-reserved socket to the portmapper
1283         for TCP.
1284         * include/rpc/pmap_clnt.h (__get_socket): Declare.
1285         * sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
1286         non-reserved socket for the portmapper.
1287         Based on a patch by Steve Dickson <steved@redhat.com>.
1288
1289         [BZ #1086]
1290         * sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
1291         If we tried looking at the usual range without success extend the
1292         range to even lower ports.
1293
1294         * sysdeps/unix/clock_gettime.c (clock_gettime): Revert last patch.
1295
1296 2005-05-22  Andreas Schwab  <schwab@suse.de>
1297
1298         * elf/rtld.c: Include <dl-osinfo.h>.
1299
1300 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
1301
1302         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Don't use
1303         JUMPTARGET.  Instead append @local to __syscall_error.
1304         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Delete all occurrences
1305         of JUMPTARGET.  Instead append @local to labels.
1306         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
1307         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1308         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Likewise.
1309         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
1310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
1311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
1314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1317
1318         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Use float constants.
1319         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
1320         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
1321         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
1322         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.  Use one GOT
1323         slot to access both constants.
1324         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
1325         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1326
1327         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
1328         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
1329         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
1330         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
1331         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
1332         (NEGZERO.0, POINTFIVE.0): Delete.
1333         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
1334         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
1335         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
1336         (TWO52.0, POINTFIVE.0): Delete.
1337         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
1338         (TWO23.0, POINTFIVE.0): Delete.
1339         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
1340         (TWO52.0): Delete.
1341         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
1342         (TWO23.0): Delete.
1343         * sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.
1344
1345 2005-05-19  Richard Henderson  <rth@redhat.com>
1346
1347         * sysdeps/unix/clock_gettime.c (clock_gettime): Fix typo around
1348         CLOCK_REALTIME.
1349
1350         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_bool_32_acq,
1351         __arch_compare_and_exchange_bool_64_acq,
1352         __arch_compare_and_exchange_val_32_acq,
1353         __arch_compare_and_exchange_val_64_acq, atomic_exchange_and_add):
1354         Use __sync builtin without _si or _di suffix.
1355
1356 2005-05-19  Jakub Jelinek  <jakub@redhat.com>
1357
1358         [BZ #955]
1359         * iconvdata/ibm939.c (BODY): Avoid segfaults with input characters
1360         <UFFFF> and above.
1361
1362 2005-05-17  Andreas Schwab  <schwab@suse.de>
1363
1364         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1365         (clock_getcpuclockid): Always return a defined value.
1366
1367 2005-05-17  Neal H. Walfield  <neal@gnu.org>
1368
1369         * sysdeps/posix/getaddrinfo.c (gaih_local): Check [_HAVE_SA_LEN]
1370         instead of [SALEN].
1371         (gaih_inet): Likewise.
1372
1373 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
1374
1375         * elf/elf.h (Elf32_auxv_t): Make cross-compile safe.
1376         (Elf64_auxv_t): Likewise.
1377         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1378         removal of a_ptr element in ElfXX_auxv_t.
1379         * elf/dl-support.c (_dl_aux_init): Likewise.
1380
1381 2005-05-09  Daniel Jacobowitz  <dan@codesourcery.com>
1382
1383         * sysdeps/unix/sysv/linux/clock_getres.c: Include <time.h>.
1384         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
1385
1386 2005-05-09  Alan Modra  <amodra@bigpond.net.au>
1387
1388         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
1389         .pushsection/.popsection in place of .section/.previous.
1390
1391 2005-05-08  Ulrich Drepper  <drepper@redhat.com>
1392
1393         * MakeTAGS: Make xgettext not look into test cases.
1394
1395         * MakeTAGS: Make sure translations in error calls are marked with
1396         c-format by xgettext.
1397
1398 2005-05-07  Ulrich Drepper  <drepper@redhat.com>
1399
1400         * intl/libintl.h: Always use __attribute_format_arg__ for gettext
1401         functions since gcc sometimes forgets the attribute for the
1402         standard functions.
1403
1404 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
1405
1406         [BZ #934]
1407         * posix/regex_internal.h: Include bits/libc-lock.h or define dummy
1408         __libc_lock_* macros if not _LIBC.
1409         (struct re_dfa_t): Add lock.
1410         * posix/regcomp.c (re_compile_internal): Add __libc_lock_init.
1411         * posix/regexec.c (regexec, re_search_stub): Add locking.
1412
1413 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
1414
1415         * intl/Makefile (tst-gettext[45].out): Pass also $(run-program-prefix)
1416         as argument to the scripts.
1417         * intl/tst-gettext2.sh: Use mkdir -p instead of test -d + mkdir.
1418         * intl/tst-gettext4.sh: Likewise.  Use run_program_prefix argument.
1419         * intl/tst-gettext5.sh: Likewise.
1420
1421         * intl/tst-translit.sh: Add mkdir -p.
1422
1423         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Use
1424         .ifndef/.endif to allow use of this macro more than once per .S
1425         file.
1426         (LOAD_PIC_REG): New macro.
1427         * sysdeps/unix/sysv/linux/i386/makecontext.S: Add call frame
1428         information.
1429         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1430         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1431         * sysdeps/i386/fpu/s_asinh.S: Use LOAD_PIC_REG macro.  Add call frame
1432         information.
1433         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1434         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1435         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1436         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1437         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
1438         * sysdeps/i386/fpu/s_lrint.S: Likewise.
1439         * sysdeps/i386/fpu/s_llrint.S: Likewise.
1440         * sysdeps/i386/fpu/s_ilogbf.S: Likewise.
1441         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1442         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1443         * sysdeps/i386/fpu/e_log.S: Likewise.
1444         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1445         * sysdeps/i386/fpu/s_lrintl.S: Likewise.
1446         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1447         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1448         * sysdeps/i386/fpu/s_log1p.S: Likewise.
1449         * sysdeps/i386/fpu/s_nearbyintl.S: Likewise.
1450         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1451         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
1452         * sysdeps/i386/fpu/s_nearbyintf.S: Likewise.
1453         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1454         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
1455         * sysdeps/i386/fpu/s_lrintf.S: Likewise.
1456         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1457         * sysdeps/i386/fpu/s_cexp.S: Likewise.
1458         * sysdeps/i386/fpu/s_ilogbl.S: Likewise.
1459         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1460         * sysdeps/i386/fpu/e_powl.S: Likewise.
1461         * sysdeps/i386/fpu/e_powf.S: Likewise.
1462         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1463         * sysdeps/i386/fpu/e_logl.S: Likewise.
1464         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1465         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1466         * sysdeps/i386/fpu/e_pow.S: Likewise.
1467         * sysdeps/i386/fpu/e_logf.S: Likewise.
1468         * sysdeps/i386/fpu/e_log2.S: Likewise.
1469         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1470         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1471         * sysdeps/i386/fpu/s_llrintf.S: Likewise.
1472         * sysdeps/i386/fpu/s_ilogb.S: Likewise.
1473         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1474         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1475         * sysdeps/i386/fpu/e_log10.S: Likewise.
1476         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1477         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1478         * sysdeps/i386/fpu/s_llrintl.S: Likewise.
1479         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1480         * sysdeps/i386/fpu/s_nearbyint.S: Likewise.
1481         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1482         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1483         * sysdeps/i386/addmul_1.S: Various fixes to cfi handling.
1484         * sysdeps/i386/mul_1.S: Likewise.
1485         * sysdeps/i386/strtok.S: Likewise.
1486         * sysdeps/i386/sub_n.S: Likewise.
1487         * sysdeps/i386/submul_1.S: Likewise.
1488         * sysdeps/i386/i586/addmul_1.S: Likewise.
1489         * sysdeps/i386/i586/memcpy.S: Likewise.
1490         * sysdeps/i386/i586/mul_1.S: Likewise.
1491         * sysdeps/i386/i586/rshift.S: Likewise.
1492         * sysdeps/i386/i586/sub_n.S: Likewise.
1493         * sysdeps/i386/i586/submul_1.S: Likewise.
1494         * sysdeps/i386/i686/memcmp.S: Likewise.
1495         * sysdeps/i386/i686/memmove.S: Likewise.
1496         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1497         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1498         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1499         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1500
1501 2005-05-03  Ulrich Drepper  <drepper@redhat.com>
1502
1503         * sysdeps/i386/add_n.S: Add call frame information.
1504         * sysdeps/i386/addmul_1.S: Likewise.
1505         * sysdeps/i386/bsd-setjmp.S: Likewise.
1506         * sysdeps/i386/lshift.S: Likewise.
1507         * sysdeps/i386/memchr.S: Likewise.
1508         * sysdeps/i386/memcmp.S: Likewise.
1509         * sysdeps/i386/mul_1.S: Likewise.
1510         * sysdeps/i386/rawmemchr.S: Likewise.
1511         * sysdeps/i386/rshift.S: Likewise.
1512         * sysdeps/i386/stpncpy.S: Likewise.
1513         * sysdeps/i386/strchr.S: Likewise.
1514         * sysdeps/i386/strchrnul.S: Likewise.
1515         * sysdeps/i386/strcspn.S: Likewise.
1516         * sysdeps/i386/strpbrk.S: Likewise.
1517         * sysdeps/i386/strrchr.S: Likewise.
1518         * sysdeps/i386/strspn.S: Likewise.
1519         * sysdeps/i386/strtok.S: Likewise.
1520         * sysdeps/i386/sub_n.S: Likewise.
1521         * sysdeps/i386/submul_1.S: Likewise.
1522         * sysdeps/i386/elf/bsd-setjmp.S: Likewise.
1523         * sysdeps/i386/i486/strcat.S: Likewise.
1524         * sysdeps/i386/i586/add_n.S: Likewise.
1525         * sysdeps/i386/i586/addmul_1.S: Likewise.
1526         * sysdeps/i386/i586/lshift.S: Likewise.
1527         * sysdeps/i386/i586/memcpy.S: Likewise.
1528         * sysdeps/i386/i586/memset.S: Likewise.
1529         * sysdeps/i386/i586/mul_1.S: Likewise.
1530         * sysdeps/i386/i586/rshift.S: Likewise.
1531         * sysdeps/i386/i586/strchr.S: Likewise.
1532         * sysdeps/i386/i586/strcpy.S: Likewise.
1533         * sysdeps/i386/i586/sub_n.S: Likewise.
1534         * sysdeps/i386/i586/submul_1.S: Likewise.
1535         * sysdeps/i386/i686/add_n.S: Likewise.
1536         * sysdeps/i386/i686/memcmp.S: Likewise.
1537         * sysdeps/i386/i686/memmove.S: Likewise.
1538         * sysdeps/i386/i686/mempcpy.S: Likewise.
1539         * sysdeps/i386/i686/memset.S: Likewise.
1540         * sysdeps/i386/i686/strtok.S: Likewise.
1541         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1542         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1543         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1544         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
1545         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1546         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1547
1548         * sysdeps/i386/fpu/libm-test-ulps: Adjust for gcc 4.
1549
1550         * sysdeps/unix/sysv/linux/kernel-features.h: waitid is available
1551         on ppc in 2.6.12.
1552
1553 2005-04-29  Jakub Jelinek  <jakub@redhat.com>
1554
1555         [BZ #1083]
1556         * sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
1557         call ftruncate if offset is bigger than current size.  Make sure
1558         the file is offset + len bytes long if that is more than current size.
1559         Don't overwrite previous content of the file.
1560         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
1561         Likewise.
1562
1563 2005-05-02  Roland McGrath  <roland@redhat.com>
1564
1565         [BZ #924]
1566         * crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.
1567
1568 2005-04-29  Roland McGrath  <roland@redhat.com>
1569
1570         * timezone/africa: Update from tzdata2005i.
1571         * timezone/asia: Likewise.
1572         * timezone/northamerica: Likewise.
1573         * timezone/yearistype: Likewise.
1574
1575         * sysdeps/i386/sysdep.h (CALL_MCOUNT): Fix typo in last change.
1576
1577 2005-04-29  Ulrich Drepper  <drepper@redhat.com>
1578
1579         [BZ #1093]
1580         * nis/nis_table.c: Fix realloc handling.
1581         * nis/nis_removemember.c: Likewise.
1582
1583 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
1584
1585         [BZ #798]
1586         * nscd/Makefile: Help losers who use --with-headers.
1587
1588 2005-04-28  Roland McGrath  <roland@redhat.com>
1589
1590         [BZ #796]
1591         * sysdeps/unix/sysv/linux/dl-sysdep.h: New file.
1592         Define NEED_DL_SYSINFO_DSO for all platforms.
1593
1594         * sysdeps/generic/dl-sysdep.h: Remove multiple inclusion protection.
1595         * sysdeps/alpha/dl-sysdep.h: Likewise.
1596         Use #include_next instead of duplicating generic file's contents.
1597         * sysdeps/ia64/dl-sysdep.h: Likewise.
1598         * sysdeps/sparc/dl-sysdep.h: Likewise.
1599
1600 2005-03-22  Steven Munroe  <sjmunroe@us.ibm.com>
1601
1602         * sysdeps/powerpc/powerpc64/memset.S (memset): Make ___memset local.
1603
1604 2005-03-07  Steven Munroe  <sjmunroe@us.ibm.com>
1605
1606         [BZ #781]
1607         * sysdeps/unix/sysv/linux/kernel-features.h
1608         (__ASSUME_TGKILL): Define for powerpc32/64 starting with 2.6.1.
1609         (__ASSUME_UTIMES): Define for powerpc32/64 starting with 2.6.1.
1610         (__ASSUME_FADVISE64_64_SYSCALL): Define for powerpc32 only starting
1611         with 2.6.1.
1612         (__ASSUME_WAITID_SYSCALL): Don't define for powerpc32/64.
1613
1614 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
1615
1616         * sysdeps/i386/sysdep.h: Add cfi instrumentation to asm fragments.
1617         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1618         * sysdeps/unix/sysv/linux/i386/socket.S: Remove now duplicate
1619         cfi_startproc and cfi_endproc.
1620
1621         * configure.in: Remove ultrasparc names.
1622
1623         * sysdeps/i386/i686/memcmp.S: Move misplaced END.
1624
1625 2005-03-27  Bruno Haible  <bruno@clisp.org>
1626
1627         Make it possible for multiple threads to use gettext() in different
1628         locales.
1629         * intl/dcigettext.c (HAVE_PER_THREAD_LOCALE): New macro.
1630         (struct known_translation_t): If HAVE_PER_THREAD_LOCALE, add localename
1631         field.
1632         (transcmp): If HAVE_PER_THREAD_LOCALE, compare localename fields.
1633         (DCIGETTEXT): If HAVE_PER_THREAD_LOCALE, fill the localename field in
1634         search and newp.
1635
1636         * intl/tst-gettext4.c: New file.
1637         * intl/tst-gettext4.sh: New file.
1638         * intl/tst-gettext4-de.po: New file.
1639         * intl/tst-gettext4-fr.po: New file.
1640         * intl/tst-gettext5.c: New file.
1641         * intl/tst-gettext5.sh: New file.
1642         * intl/Makefile (distribute): Add tst-gettext4.sh, tst-gettext4-de.po,
1643         tst-gettext4-fr.po, tst-gettext5.sh.
1644         (multithread-test-srcs): New variable.
1645         (test-srcs): Add its contents.
1646         (tests): Depend on tst-gettext4.out, tst-gettext5.out.
1647         (tst-gettext4.out, tst-gettext5.out): New rules.
1648         (CFLAGS-tst-gettext4.c, CFLAGS-tst-gettext5.c): New variables.
1649         Add rule for linking the multithread-test-srcs with the appropriate
1650         thread-library.
1651
1652 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
1653
1654         * po/rw.po: New file.  From translation team.
1655
1656         * scripts/config.guess: Update from upstream.
1657         * scripts/config.sub: Likewise.
1658
1659 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
1660
1661         [BZ #1094]
1662         * nscd/connections.c (nscd_run): Use time() value in prune_cache
1663         call, not timeout value, since the latter might be from another clock.
1664
1665 2005-04-27  Roland McGrath  <roland@redhat.com>
1666
1667         [BZ #877]
1668         * posix/unistd.h: Remove __nonnull from acct decl.
1669
1670         * rt/tst-cpuclock1.c: New file.
1671         * rt/tst-cpuclock2.c: New file.
1672         * rt/tst-cputimer1.c: New file.
1673         * rt/tst-cputimer2.c: New file.
1674         * rt/tst-cputimer3.c: New file.
1675         * rt/Makefile (tests): Add them.
1676
1677         * sysdeps/unix/sysv/linux/kernel-posix-cpu-timers.h: New file.
1678         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: New file.
1679         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
1680         (HAS_CPUCLOCK): New macro.
1681         (clock_getcpuclockid): Function removed.
1682         #include the new linux file to define it instead.
1683         * sysdeps/unix/clock_gettime.c [HP_TIMING_AVAIL] (hp_timing_gettime):
1684         New function, broken out of ...
1685         (clock_gettime) [HP_TIMING_AVAIL]: ... here.  Call it.
1686         (realtime_gettime): New function, broken out of ...
1687         (clock_gettime) [! HANDLED_REALTIME]: ... here.  Call it.
1688         (clock_gettime) [SYSDEP_GETTIME_CPU]: Use new macro in default case.
1689         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): New macro.
1690         (SYSDEP_GETTIME_CPUTIME): New macro.
1691         (SYSDEP_GETTIME): Use both.
1692         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_gettime): New function, broken
1693         out of ...
1694         (SYSDEP_GETTIME): ... here.  Use it.
1695         [__NR_clock_gettime] (HANDLED_CPUTIME): Define it.
1696         (SYSDEP_GETTIME_CPUTIME): New macro.  Handle CPU timers by trying
1697         kernel support and falling back to hp-timing code.
1698         * sysdeps/posix/clock_getres.c
1699         [HP_TIMING_AVAIL] (hp_timing_getres): New function, broken out of ...
1700         (clock_getres) [HP_TIMING_AVAIL]: ... here.  Call it.
1701         (realtime_getres): New function, broken out of ...
1702         (clock_getres) [! HANDLED_REALTIME]: ... here.  Call it.
1703         (clock_getres) [SYSDEP_GETRES_CPU]: Use new macro in default case.
1704         * sysdeps/unix/sysv/linux/clock_getres.c (SYSCALL_GETRES): New macro.
1705         (SYSDEP_GETRES_CPUTIME): New macro.
1706         (SYSDEP_GETRES): Use both.
1707         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_getres): New function, broken
1708         out of ...
1709         (SYSDEP_GETRES): ... here.  Use it.
1710         [__NR_clock_getres] (HANDLED_CPUTIME): Define it.
1711         (SYSDEP_GETRES_CPUTIME): New macro.  Handle CPU timers by trying
1712         kernel support and falling back to hp-timing code.
1713         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Handle
1714         CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
1715         translating to the kernel clockid_t for our own process/thread clock.
1716
1717 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
1718
1719         * stdlib/test-canon.c: Make doesExist a directory and add more tests
1720         for the new error case.
1721
1722 2004-06-02  Dmitry V. Levin  <ldv@altlinux.org>
1723             Ranjani Murthy <ranmur@gmail.com>
1724
1725         * stdlib/canonicalize.c (__realpath): Change realpath(3) to
1726         return NULL and set errno to ENOTDIR for such pathnames like
1727         "/path/to/existing-non-directory/".
1728
1729 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
1730
1731         [BZ #1105]
1732         * time/strptime_l.c (__strptime_internal): Handle 'z' to set
1733         tm_gmtoff.
1734         * time/Makefile (tests): Add tst-strptime2.
1735         * time/tst-strptime2.c: New file.
1736
1737 2005-04-26  Jakub Jelinek  <jakub@redhat.com>
1738
1739         [BZ #1081]
1740         * elf/dl-close.c: Include stddef.h.
1741         (_dl_close): If called recursively, just remember GC needs to be rerun
1742         and decrease l_direct_opencount.  Avoid GC if l_direct_opencount
1743         decreased to 1.  Rerun GC at the end if any destructor unloaded some
1744         additional libraries.
1745         * elf/Makefile: Add rules to build and run unload6 test.
1746         * elf/unload6.c: New test.
1747         * elf/unload6mod1.c: New file.
1748         * elf/unload6mod2.c: New file.
1749         * elf/unload6mod3.c: New file.
1750
1751         * malloc/hooks.c (mem2chunk_check): Add magic_p argument, set *magic_p
1752         if magic_p is not NULL.
1753         (top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
1754         (malloc_check): Fail if sz == -1.
1755         (free_check): Adjust mem2chunk_check caller.
1756         (realloc_check): Likewise.  Fail if bytes == -1.  If bytes == 0 and
1757         oldmem != NULL, call free_check and return NULL.  If reallocating
1758         and returning NULL, invert magic byte again to make oldmem valid
1759         region for further checking.
1760         (memalign_check): Fail if bytes == -1.
1761         * malloc/Makefile: Add rules to build and run tst-mcheck.
1762         * malloc/tst-mcheck.c: New test.
1763
1764 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
1765
1766         [BZ #1110]
1767         * stdio-common/vfscanf.c: Correctly account for characters of
1768         decimal points right after +-.
1769
1770 2005-04-26  Roland McGrath  <roland@redhat.com>
1771
1772         * elf/rtld-Rules (rtld-all): Test ifndef rtld-modules instead of
1773         ifeq ($(subdir),elf) to distinguish main driver from subdir runs.
1774
1775 2005-04-25  Roland McGrath  <roland@redhat.com>
1776
1777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1778         (INTERNAL_SYSCALL_ERROR_P): Fix typo in last change.
1779
1780         * sunrpc/xdr.c (xdr_u_int): Use `long' for L and cast where needed.
1781
1782         * elf/dl-load.c: Revert last change.
1783
1784 2005-04-24  Ulrich Drepper  <drepper@redhat.com>
1785
1786         [BZ #1110]
1787         * stdio-common/vfscanf.c: Fix parsing of decimal point after +-.
1788         Patch by Hamed Malek <hamed@bamdad.org>.
1789
1790 2005-04-21  Roland McGrath  <roland@redhat.com>
1791
1792         * elf/dl-load.c (_dl_map_object_from_fd): Don't use MAP_DENYWRITE,
1793         since Linux ignores it in user mmap calls.
1794
1795 2005-04-17  David S. Miller  <davem@davemloft.net>
1796
1797         * sysdeps/sparc/sparc32/elf/start.S: Define __data_start.
1798         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1799
1800 2005-04-15  Roland McGrath  <roland@redhat.com>
1801
1802         * timezone/Makefile (zic-deps): New variable.
1803         ($(testdata)/America/New_York): Use it instead of explicit deps.
1804         ($(testdata)/Etc/UTC, $(testdata)/Australia/Melbourne): Likewise.
1805         ($(testdata)/America/Sao_Paulo, $(testdata)/Asia/Tokyo): Likewise.
1806         (%/UTC %/Universal): New pattern rule, replaces ...
1807         ($(testdata)/UTC, $(testdata)/Universal): ... these removed targets.
1808         ($(testdata)/%/Berlin $(testdata)/%/London): New pattern rule.
1809         ($(testdata)/Europe/London, $(testdata)/Europe/Berlin): Removed.
1810
1811 2005-04-14  Roland McGrath  <roland@redhat.com>
1812
1813         * MakeTAGS ($P/$(domain).pot): Depend on distinfo file as well.
1814         (extract): Filter-out distinfo file name.
1815
1816         [BZ #253]
1817         * MakeTAGS (text-srcs): Match %.bash.in files too.
1818
1819         [BZ #253]
1820         * nscd/Makefile (all-nscd-modules): New variable, include selinux
1821         module regardless of configuration.
1822         (distribute): Use that instead of $(nscd-modules).
1823
1824 2005-04-13  David S. Miller  <davem@davemloft.net>
1825
1826         Add sparc64 TLS and NPTL support.
1827         * elf/tls-macros.h: Add Sparc64 defines.
1828         * sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
1829         always_inline.
1830         (elf_machine_fixup_plt): Likewise.
1831         (elf_machine_rela): Handle TLS relocations.
1832         (elf_machine_type_cleaa): Likewise.
1833         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1834         (SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
1835         It does not always fit in R_SPARC_GOT13 when building -fPIC.
1836         Also, add TLS handling.
1837         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1838         Increase it to 2.4.21 for sparc64.
1839         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
1840         backtrace by zero'ing out %fp.  Store away flags, func_ptr,
1841         and func_arg in global registers not local registers.
1842         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
1843         and CTID arguments properly.  Add RESET_PID handling.
1844         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
1845         do not invoke __sigprocmask().  We can always assume rt signals
1846         are present on sparc64, so just do an inline syscall.
1847
1848 2005-04-13  Jakub Jelinek  <jakub@redhat.com>
1849
1850         * sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
1851         inclusion guard for the first half of the header.
1852         (elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
1853         ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
1854         elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
1855         #ifndef dl_machine_h guarded part of the header.
1856
1857 2005-04-14  Ulrich Drepper  <drepper@redhat.com>
1858
1859         [BZ #851]
1860         * posix/execvp.c (execvp): Use file name including path when
1861         trying to run it with shell.
1862         * posix/Makefile: Add rules to build and run tst-execvp3.
1863         * posix/tst-execvp3.c: New file.
1864
1865 2005-04-12  Ulrich Drepper  <drepper@redhat.com>
1866
1867         [BZ #1090]
1868         * stdlib/random_r.c (__initstate_r): Don't use non-existing state.
1869         * string/tst-strfry.c: New file.
1870         * string/Makefile (tests): Add tst-strfry.
1871
1872 2005-04-11  James A. Morrison  <ja2morri@uwaterloo.ca>
1873
1874         * manual/string.texi: Fix typo in wmemcpy decl.
1875
1876 2005-04-10  David S. Miller  <davem@davemloft.net>
1877
1878         * sysdeps/sparc/sparc32/dl-trampoline.S: Use std not stx.
1879
1880 2005-04-08  Carlos O'Donell <carlos@baldric.uwo.ca>
1881
1882         * FAQ.in: Explain why `make' might fail running rpcgen.
1883         * FAQ: Regenerated.
1884
1885 2005-04-07  Roland McGrath  <roland@redhat.com>
1886
1887         * po/libc.pot: Regenerated.
1888
1889 2005-04-07  Roland McGrath  <roland@redhat.com>
1890
1891         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion)
1892         [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
1893         GLRO(dl_sysinfo_map) for PT_NOTE giving Linux kernel version,
1894         we can skip the uname call if it's there.
1895         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't use
1896         DL_SYSDEP_OSCHECK here.
1897         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]: Do it here instead.
1898
1899         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro):
1900         Add _dl_sysinfo_map.
1901         * elf/rtld.c (dl_main): Don't call _dl_init_paths early in the
1902         rtld_is_main case.  Call it unconditionally later.
1903         Move GLRO(dl_sysinfo_dso) handling earlier, before _dl_init_paths call.
1904         Initialize GLRO(dl_sysinfo_map).
1905         * elf/dl-load.c (open_path): Bail out if _dl_init_paths wasn't called.
1906         * sysdeps/generic/dl-sysdep.c (_DL_FIRST_EXTRA): New macro.
1907         (_dl_important_hwcaps)
1908         [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
1909         GLRO(dl_sysinfo_map) for PT_NOTE giving synthetic hwcap names
1910         and bit values.
1911         * elf/ldconfig.c (_DL_FIRST_EXTRA): New macro.
1912         (hwcap_extra): New static variable.
1913         (is_hwcap_platform): Check hwcap_extra for a matching name.
1914         Remove tls special case.
1915         (path_hwcap): Likewise.
1916         (parse_conf): Parse "hwcap" directive to define synthetic hwcap bits
1917         and their names, stored in hwcap_extra.
1918         (main) [USE_TLS]: Initialize final synthetic hwcap bit as "tls".
1919
1920         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Use uint64_t for
1921         _dl_hwcap and _dl_hwcap_mask.
1922         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Cast a_val for
1923         AT_HWCAP to unsigned long int.
1924         * elf/dl-support.c (_dl_aux_init): Likewise.
1925         (_dl_hwcap): Update defn.
1926
1927         * elf/cache.c (print_entry): Pad hwcap value with 0s in diagnostic.
1928         * elf/ldconfig.c (search_dir): Likewise.
1929
1930 2005-04-05  Roland McGrath  <roland@redhat.com>
1931
1932         * NEWS: Copy 2.3.5 section from 2.3 branch.
1933
1934         * intl/tst-codeset.sh: Use mkdir -p.  Put msgfmt output in temporary
1935         file and mv it into place.
1936         * intl/tst-gettext3.sh: Likewise.
1937
1938         * Makefile (glibc-%.tar rule): Use make -q to ensure configure scripts
1939         are up to date in srcdir.  Touch all configure scripts after export.
1940
1941         * iconv/gconv_int.h: Include <ctype.h> and <string.h>.
1942
1943 2005-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1944
1945         [BZ #592]
1946         * sysdeps/ia64/fpu/e_acosh.S: Update from Intel libm 2005-04-05
1947         (comment changes only).
1948         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
1949         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
1950         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1951         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1952         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1953         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
1954         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
1955         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1956         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
1957         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1958         * sysdeps/ia64/fpu/e_log.S: Likewise.
1959         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1960         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1961         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1962         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1963         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1964         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1965         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
1966         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
1967         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
1968         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
1969         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
1970         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
1971         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
1972         * sysdeps/ia64/fpu/s_cos.S: Likewise.
1973         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
1974         * sysdeps/ia64/fpu/s_erf.S: Likewise.
1975         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
1976         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
1977         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
1978         * sysdeps/ia64/fpu/s_erff.S: Likewise.
1979         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
1980         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
1981         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1982         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1983         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
1984         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
1985         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
1986         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
1987         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
1988
1989 2005-04-05  Roland McGrath  <roland@redhat.com>
1990
1991         * scripts/config.guess: Update from master, timestamp='2005-03-24'.
1992         * scripts/config.sub: Update from master, timestamp='2005-02-10'.
1993
1994 2005-04-04  David S. Miller  <davem@davemloft.net>
1995
1996         * sysdeps/sparc/sparc32/dl-trampoline.S: New file.
1997         * sysdeps/sparc/sparc32/dl-machine.h: Move PLT trampolines there.
1998         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
1999         (elf_machine_runtime_setup): Test for dl_profile non-null.
2000         * sysdeps/sparc/sparc64/dl-trampoline.S: New file.
2001         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
2002         * sysdeps/sparc/sparc64/dl-machine.h: Move PLT trampolines there.
2003         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
2004         (elf_machine_runtime_setup): Test for dl_profile non-null.
2005         * sysdeps/sparc/bits/link.h: New file.
2006         * sysdeps/generic/ldsodefs.h (La_sparc32_regs, La_sparc32_retval,
2007         La_sparc64_regs, La_sparc64_retval): New.
2008         (struct audit_ifaces): Add sparc entries.
2009         * elf/tst-auditmod1.c: Add sparc entries.
2010
2011 2005-03-27  Bruno Haible  <bruno@clisp.org>
2012
2013         * intl/tst-gettext3.c: New file.
2014         * intl/tst-gettext3.sh: New file.
2015         * intl/Makefile (distribute): Add tst-gettext3.sh.
2016         (test-srcs): Add tst-gettext3.
2017         (tests): Depend on tst-gettext3.out.
2018         (tst-gettext3.out): New rule.
2019         (CFLAGS-tst-gettext3.c): New variable.
2020
2021         Fix bug exposed by tst-gettext3.
2022         * intl/gettextP.h (struct converted_domain): New type.
2023         (struct loaded_domain): Remove the conv, conv_tab fields. Add
2024         conversions, nconversions fields.
2025         (_nl_init_domain_conv): Remove declaration.
2026         (_nl_free_domain_conv): Remove declaration.
2027         (_nl_find_msg): Add convert argument.
2028         * intl/dcigettext.c (DCIGETTEXT): Call _nl_find_msg with convert=1.
2029         (_nl_find_msg): Add convert argument. When a conversion to a different
2030         charset is needed, create a new converted_domain element, instead of
2031         throwing away the old converted translations.
2032         (get_output_charset): New function.
2033         * intl/loadmsgcat.c (_nl_init_domain_conv): Remove function.
2034         (_nl_free_domain_conv): Remove function.
2035         (_nl_load_domain): Initialize the conversions array to empty. Use
2036         _nl_find_msg instead of _nl_init_domain_conv to retrieve the header
2037         entry.
2038         (_nl_unload_domain): Free the conversions array and its contents.
2039
2040         * intl/gettextP.h (struct loaded_domain): Remove codeset_cntr field.
2041         (struct binding): Likewise.
2042         * intl/bindtextdom.c (set_binding_values): Drop codeset_cntr
2043         modifications.
2044
2045 2005-04-04  Jakub Jelinek  <jakub@redhat.com>
2046
2047         [BZ #1082]
2048         * sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead
2049         of trying to encode uninitialized arglen.
2050
2051 2005-04-04  Ulrich Drepper  <drepper@redhat.com>
2052
2053         [BZ #825]
2054         * timezone/scheck.c: Update from tzcode2005h.
2055         * timezone/tzfile.h: Likewise.
2056         * timezone/zdump.c: Likewise.
2057         * timezone/zic.c: Likewise.
2058
2059         [BZ #825]
2060         * timezone/antarctica: Update from tzdata2005h.
2061         * timezone/asia: Likewise.
2062         * timezone/australasia: Likewise.
2063         * timezone/etcetera: Likewise.
2064         * timezone/europe: Likewise.
2065         * timezone/northamerica: Likewise.
2066         * timezone/southamerica: Likewise.
2067         * timezone/leapseconds: Likewise.
2068         * timezone/iso3166.tab: Likewise.
2069
2070 2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>
2071
2072         [BZ #592]
2073         * sysdeps/ia64/fpu/libm_cpu_defs.h: Update copyright.
2074
2075 2005-04-01  Ulrich Drepper  <drepper@redhat.com>
2076
2077         * wcsmbs/btowc.c (__btowc): Optimize parameters in ASCII range.
2078         * wcsmbs/wctob.c (wctob): Likewise.
2079         * wcsmbs/wchar.h (btowc): Add optimized inline function.
2080         (wctob): Likewise.
2081
2082 2005-03-31  Jakub Jelinek  <jakub@redhat.com>
2083
2084         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Use functionally
2085         equivalent, but shorter instructions.
2086         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2087         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2088         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2089         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2090         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2091         * sysdeps/x86_64/strchr.S: Likewise.
2092         * sysdeps/x86_64/memset.S: Likewise.
2093         * sysdeps/x86_64/strcspn.S: Likewise.
2094         * sysdeps/x86_64/strcmp.S: Likewise.
2095         * sysdeps/x86_64/elf/start.S: Likewise.
2096         * sysdeps/x86_64/strspn.S: Likewise.
2097         * sysdeps/x86_64/dl-machine.h: Likewise.
2098         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
2099         * sysdeps/x86_64/bsd-setjmp.S: Likewise.
2100         * sysdeps/x86_64/strtok.S: Likewise.
2101
2102 2005-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2103
2104         [BZ #592]
2105         * sysdeps/ia64/fpu/e_acosf.S: Update from Intel libm 2005-03-21.
2106         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
2107         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
2108         * sysdeps/ia64/fpu/e_acosh.S: Likewise.
2109         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2110         * sysdeps/ia64/fpu/e_acos.S: Likewise.
2111         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2112         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2113         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2114         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2115         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2116         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
2117         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
2118         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
2119         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2120         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2121         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2122         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
2123         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
2124         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
2125         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
2126         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
2127         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
2128         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2129         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2130         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2131         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2132         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2133         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2134         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2135         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2136         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2137         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2138         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
2139         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
2140         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
2141         * sysdeps/ia64/fpu/e_log2.S: Likewise.
2142         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2143         * sysdeps/ia64/fpu/e_logl.S: Likewise.
2144         * sysdeps/ia64/fpu/e_log.S: Likewise.
2145         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2146         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2147         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2148         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2149         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2150         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2151         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2152         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2153         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2154         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2155         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2156         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2157         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2158         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2159         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2160         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2161         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
2162         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
2163         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
2164         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
2165         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
2166         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2167         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2168         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
2169         * sysdeps/ia64/fpu/libm_support.h: Likewise.
2170         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
2171         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
2172         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
2173         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
2174         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
2175         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
2176         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
2177         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2178         * sysdeps/ia64/fpu/s_cos.S: Likewise.
2179         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
2180         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
2181         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
2182         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
2183         * sysdeps/ia64/fpu/s_erf.S: Likewise.
2184         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
2185         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
2186         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
2187         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
2188         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
2189         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
2190         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
2191         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
2192         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2193         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2194         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2195         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2196         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
2197         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
2198         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
2199         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
2200         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
2201         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
2202         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
2203         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
2204         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
2205         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2206         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2207         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2208         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2209         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2210         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2211         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2212         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2213         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2214         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
2215         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
2216         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
2217         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
2218         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
2219         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
2220         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2221         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2222         * sysdeps/ia64/fpu/s_round.S: Likewise.
2223         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
2224         * sysdeps/ia64/fpu/s_scalbn.c: Likewise.
2225         * sysdeps/ia64/fpu/s_scalbnf.c: Likewise.
2226         * sysdeps/ia64/fpu/s_scalbnl.c: Likewise.
2227         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2228         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
2229         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
2230         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2231         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2232         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2233         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2234         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2235         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
2236         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
2237         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
2238
2239         [BZ #592]
2240         * sysdeps/ia64/fpu/libm_cpu_defs.h: New file.
2241         * sysdeps/ia64/fpu/libm_error_codes.h: New file.
2242
2243         [BZ #592]
2244         * sysdeps/ia64/fpu/gen_import_file_list: Updated for Intel libm
2245         2005-03-21.
2246         * sysdeps/ia64/fpu/import_file.awk: Likewise.
2247         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
2248         * sysdeps/ia64/fpu/Makefile: Likewise.
2249
2250 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
2251
2252         [BZ #1087]
2253         * posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
2254         avoid calling mbsrtowcs twice.
2255
2256 2005-03-29  Roland McGrath  <roland@redhat.com>
2257
2258         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): New
2259         function, inline broken out of ...
2260         (DL_SYSDEP_OSCHECK): ... here.  Use that.
2261         Do the discovery and set GLRO(dl_osversion) if successful,
2262         if __LINUX_KERNEL_VERSION <= 0.
2263         * elf/dl-load.c: Don't include dl-osinfo.h here.
2264
2265 2005-03-29  Alfred M. Szmidt  <ams@gnu.org>
2266
2267         * manual/install.texi (Tools for Compilation): GNU binutils 2.15
2268         is now needed.
2269
2270 2005-03-19  Bruno Haible  <bruno@clisp.org>
2271
2272         * intl/dcigettext.c (struct known_translation_t): Change type of
2273         domainname field to 'const char *'.
2274         (DCIGETTEXT): Remove const-cast.
2275
2276 2005-03-29  Thorsten Kukuk  <kukuk@suse.de>
2277
2278         [BZ #661]
2279         * grp/initgroups.c (internal_getgrouplist): Check if we have
2280         enough space before adding the primary group to the list.
2281
2282         * posix/tst-execle1.c (do_test): Fix execle arguments.
2283         * posix/tst-execle2.c (do_test): Likewise.
2284
2285 2005-03-28  Roland McGrath  <roland@redhat.com>
2286
2287         * sysdeps/generic/w_exp2.c [NO_LONG_DOUBLE]: Fix typos in alias names.
2288         Reported by Mark Mitchell <mark@codesourcery.com>.
2289         * Versions.def (libm): Define GLIBC_2.4 set.
2290         * math/Versions (libm: GLIBC_2.4): Add this set, with exp2l.
2291         * sysdeps/i386/Versions (libm: GLIBC_2.1): Add this set, with exp2l.
2292         * sysdeps/ia64/Versions: Likewise.
2293         * sysdeps/m68k/Versions: Likewise.
2294         * sysdeps/sparc/sparc64/Versions: Likewise.
2295         * sysdeps/x86_64/Versions: New file.
2296         * sysdeps/mips/mips64/Versions: New file.
2297
2298         * locale/langinfo.h (_NL_LOCALE_NAME): New macro.
2299         [__USE_GNU] (NL_LOCALE_NAME): New macro.
2300         * locale/nl_langinfo.c: Grok special item value for _NL_LOCALE_NAME,
2301         return locale name string for the category.
2302
2303 2005-03-25  Jakub Jelinek  <jakub@redhat.com>
2304
2305         * sysdeps/generic/wcstoul_l.c: Include "wcstol_l.c" rather than
2306         <wcstol_l.c>.
2307
2308 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
2309
2310         * sysdeps/mips/atomicity.h: Remove unused file.
2311         * sysdeps/mips/dl-machine.h (elf_machine_rel): Add TLS relocations.
2312         * sysdeps/mips/dl-tls.h: New file.
2313         * sysdeps/mips/libc-tls.c: New file.
2314         * sysdeps/mips/tls-macros.h: New file.
2315         * sysdeps/mips/bits/atomic.h: New file.
2316         * sysdeps/mips/bits/setjmp.h: Protect against multiple inclusion.
2317         * sysdeps/mips/elf/configure.in: New file.
2318         * sysdeps/mips/elf/configure: Generated.
2319         * sysdeps/mips/sys/asm.h: New file.
2320         * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
2321         * sysdeps/unix/sysv/linux/mips/clone.S: Add NPTL and five-argument
2322         clone support.
2323         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2324         (INTERNAL_SYSCALL_NCS): New.
2325         (INTERNAL_SYSCALL): Update for non-constant support.
2326         (internal_syscall0): Likewise.
2327         (internal_syscall1): Likewise.
2328         (internal_syscall2): Likewise.
2329         (internal_syscall3): Likewise.
2330         (internal_syscall4): Likewise.
2331         (internal_syscall5): Likewise.
2332         (internal_syscall6): Likewise.
2333         (internal_syscall7): Likewise.
2334         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (SIGEV_THREAD):
2335         Update to match the kernel.
2336         (SIGEV_CALLBACK): Likewise.
2337         (SIGEV_THREAD_ID): Likewise.
2338
2339 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
2340
2341         [BZ #783]
2342         * elf/tst-auditmod1.c: Add MIPS support.
2343         * sysdeps/generic/ldsodefs.h (La_mips_32_regs): New.
2344         (La_mips_32_retval): New.
2345         (La_mips_64_regs): New.
2346         (La_mips_64_retval): New.
2347         (struct audit_ifaces): Add MIPS entries.
2348         * sysdeps/mips/dl-machine.h: Check RESOLVE_MAP instead of RESOLVE.
2349         (elf_machine_runtime_link_map, ELF_DL_FRAME_SIZE,
2350         ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS,
2351         ELF_MACHINE_RUNTIME_TRAMPOLINE): Move to dl-trampoline.c.
2352         (RTLD_START): Align the stack before calling _dl_init_internal.
2353         Use .ent for _dl_start_user.
2354         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): Define.
2355         (elf_machine_rel, elf_machine_rel_relative, elf_machine_lazy_rel)
2356         (elf_machine_runtime_setup): Use "auto inline".
2357         (elf_machine_rela, elf_machine_rela_relative): Provide empty versions.
2358         (elf_machine_got_rel): Likewise.  Use RESOLVE_MAP.
2359         * sysdeps/mips/dl-trampoline.c: New file.
2360         * sysdeps/mips/bits/link.h: New file.
2361         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2362         (internal_syscall5): Use register operands instead of non-lvalue
2363         memory operands.
2364         (internal_syscall6): Likewise.
2365         (internal_syscall7): Likewise.
2366
2367 2005-03-27  Andreas Jaeger  <aj@suse.de>
2368
2369         * debug/warning-nop.c (__builtin___memcpy_chk): Define away to
2370         avoid warnings with older compiler.
2371         (__builtin___memcpy_chk): Likewise.
2372         (__builtin___memmove_chk: Likewise.
2373         (__builtin___mempcpy_chk): Likewise.
2374         (__builtin___memset_chk): Likewise.
2375         (__builtin___stpcpy_chk): Likewise.
2376         (__builtin___strcat_chk): Likewise.
2377         (__builtin___strcpy_chk): Likewise.
2378         (__builtin___strncat_chk): Likewise.
2379         (__builtin___strncpy_chk): Likewise.
2380         (__builtin_object_size): Likewise.
2381
2382 2005-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
2383
2384         * elf/tls-macros.h: Correct typo.
2385
2386 2005-03-23  Jakub Jelinek  <jakub@redhat.com>
2387
2388         [BZ #822]
2389         * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch.
2390         (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
2391
2392 2005-03-22  Roland McGrath  <roland@redhat.com>
2393
2394         * locale/setlocale.c: Comment typo.
2395
2396         * scripts/versions.awk: No errors for GLIBC_PRIVATE.
2397
2398         * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
2399
2400         * scripts/versions.awk: Print all errors and die at the end.
2401         Use library name in versions array keys.
2402
2403 2005-03-22  Daniel Jacobowitz  <dan@codesourcery.com>
2404
2405         * elf/elf.h (PT_ARM_EXIDX): New macro.
2406
2407 2005-03-21  Thorsten Kukuk  <kukuk@suse.de>
2408
2409         [BZ #1098]
2410         * sunrpc/xdr_stdio.c (xdrstdio_getlong, xdrstdio_putlong):
2411         Convert correctly between long/int on 64bit big-endian.
2412
2413 2005-03-21  David Mosberger  <davidm@hpl.hp.com>
2414
2415         * sysdeps/ia64/_mcount.S: Newer kernels don't like register-frames
2416         with more than 8 output registers.  Fix this by passing original
2417         ar.pfs to _mcount_ret_helper via r3.
2418
2419 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2420
2421         [BZ #786]
2422         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle
2423         GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx).
2424         * elf/Makefile: Add rules to build and run tst-tls15.
2425         * elf/tst-tls15.c: New test.
2426         * elf/tst-tlsmod15a.c: New file.
2427         * elf/tst-tlsmod15b.c: New file.
2428
2429 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
2430
2431         * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
2432
2433 2005-03-20  Alfred M. Szmidt  <ams@gnu.org>
2434
2435         * elf/dl-open.c (dl_open_worker): Fix typo.
2436
2437 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
2438
2439         * malloc/malloc.c (public_cALLOc): We cannot skip the memory
2440         clearing if perturb_byte != 0.
2441
2442 2005-03-20  Jakub Jelinek  <jakub@redhat.com>
2443
2444         * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
2445         instead of __off_t for last argument.
2446         * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
2447         * debug/tst-lfschk1.c: New test.
2448         * debug/tst-lfschk2.c: New test.
2449         * debug/tst-lfschk3.c: New test.
2450
2451 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
2452
2453         * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
2454         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
2455         and __USE_XOPEN guards to match linux/bits/termios.h.
2456         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2457         (CMSPAR): Define.
2458         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2459
2460 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
2461
2462         * sysdeps/ia64/elf/initfini.c: Add local _init and _fini labels.
2463
2464 2005-02-27  Denis Barbier  <barbier@debian.org>
2465
2466         [BZ #549]
2467         * locale/iso-4217.def: Add CSD currency.
2468
2469 2005-03-19  Ulrich Drepper  <drepper@redhat.com>
2470
2471         * inet/test-ifaddrs.c: Use test-skeleton.
2472         * inet/test_ifindex.c: Likewise.
2473
2474         [BZ #821]
2475         * elf/dl-lookup.c (add_dependency): Always search l_initfini if
2476         the list exists.
2477
2478         [BZ #821]
2479         * elf/Makefile: Add rules to build and run order2.
2480         * elf/order2.c: New file.
2481         * elf/order2mod1.c: New file.
2482         * elf/order2mod2.c: New file.
2483         * elf/order2mod3.c: New file.
2484         * elf/order2mod4.c: New file.
2485
2486 2005-03-19  Jakub Jelinek  <jakub@redhat.com>
2487
2488         [BZ #821]
2489         * elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
2490         it has been incremented before.
2491
2492 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
2493
2494         [BZ #821]
2495         * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
2496         function _dl_sort_fini.
2497         (_dl_sort_fini): New function.
2498         * sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
2499         * elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
2500         destructors to call them in the right order.
2501
2502 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
2503
2504         * sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
2505         (La_ppc64_retval): Correct size of lrc_fp.
2506         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
2507         Fix up ABI problems and complete function.
2508
2509 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
2510
2511         * math/test-misc.c (main): Add some more tests.
2512
2513 2005-03-17  Jakub Jelinek  <jakub@redhat.com>
2514
2515         * posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
2516         __wcrtomb.  Check return values of other __wcrtomb calls.
2517         * posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
2518         Change mbclen type to size_t.
2519         (build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
2520         Handle mb chars whose upper case doesn't have multibyte representation
2521         in locale's charset.
2522
2523 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2524
2525         * malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
2526         public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
2527         #ifndef _LIBC.
2528
2529         [BZ #779]
2530         * malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
2531         initialized.
2532
2533 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
2534
2535         * misc/sys/cdefs.h (__always_inline): Define.
2536         * posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
2537         Use __always_inline instead of __inline.
2538         * socket/bits/socket2.h (recv, recvfrom): Likewise.
2539         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
2540         * string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
2541         __memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
2542         __strcat_ichk, __strncat_ichk): Use __always_inline instead of
2543         __inline__ __attribute__ ((__always_inline__)).
2544
2545 2005-03-09  Jakub Jelinek  <jakub@redhat.com>
2546
2547         * debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
2548         (do_test): Add new tests for recv, recvfrom, getcwd, getwd and
2549         readlink.  Add some more tests for read, pread, pread64, fgets and
2550         fgets_unlocked.
2551
2552         * posix/bits/unistd.h (read, pread, pread64, readlink,
2553         getcwd, getwd): Change macros into extern inline functions.
2554         (__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
2555         __getcwd_alias, __getwd_alias): New prototypes.
2556         * socket/bits/socket2.h (recv, recvfrom): Change macros into
2557         extern inline functions.
2558         (__recv_alias, __recvfrom_alias): New prototypes.
2559         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
2560         into extern inline functions.
2561         (__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.
2562
2563         * debug/pread_chk.c (__pread_chk): Fix order of arguments passed
2564         to __pread.
2565         * debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
2566         to __pread64.
2567
2568 2005-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
2569
2570         * configure.in: Use %function instead of @function.
2571
2572 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
2573
2574         [BZ #821]
2575         * include/link.h (struct link_map): Remove l_opencount.  Add l_removed.
2576         Change type of l_idx to int.
2577         * elf/dl-close.c: Basically rewrite.  Do not use l_opencount to
2578         determine whether a DSO has to be unloaded.  Instead compute this
2579         in this function.
2580         * elf/dl-deps.c: No need to manipulate l_opencount anymore.
2581         * elf/dl-lookup.c: Likewise.
2582         * elf/rtld.c: Likewise
2583         * elf/dl-open.c: Likewise.  Use l_init_called to determine whether
2584         object was just loaded.
2585         * elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
2586         * elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
2587         is about to be unloaded as a match.
2588         (_dl_map_object): Likewise.
2589         * elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
2590         to be unloaded.
2591         * elf/circleload1.c: Don't use l_opencount anymore.
2592         * elf/neededtest.c: Likewise.
2593         * elf/neededtest2.c: Likewise.
2594         * elf/neededtest3.c: Likewise.
2595         * elf/neededtest4.c: Likewise.
2596         * elf/unload.c: Likewise.
2597         * elf/unload2.c: Likewise.
2598         * elf/loadtest.c: Likewise.
2599
2600         [BZ #821]
2601         * elf/rtld.c: Preloading errors are now never fatal.
2602
2603 2005-03-08  Jakub Jelinek  <jakub@redhat.com>
2604
2605         [BZ #821]
2606         * elf/Makefile: Add rules to build and run unload5 test.
2607         * elf/unload5.c: New file.
2608
2609         [BZ #821]
2610         * elf/Makefile: Add rules to build and run unload4 test.
2611         * elf/unload4.c: New file.
2612         * elf/unload4mod1.c: New file.
2613         * elf/unload4mod2.c: New file.
2614         * elf/unload4mod3.c: New file.
2615         * elf/unload4mod4.c: New file.
2616
2617 2005-03-17  Roland McGrath  <roland@redhat.com>
2618
2619         * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
2620
2621 2005-03-16  Richard Henderson  <rth@redhat.com>
2622
2623         * include/libc-symbols.h (__hidden_proto): Remove bogus declaration
2624         of internal.
2625         (__hidden_def1, __hidden_dot_def1): Remove.
2626         (__hidden_def2, __hidden_def3): Remove.
2627         (__hidden_ver1): New.
2628         (hidden_ver, hidden_def, hidden_weak): Use it.
2629         (hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
2630         version of the macro.
2631
2632         * include/wchar.h (__wcscoll): Remove.
2633         * wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
2634         * string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.
2635
2636 2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
2637
2638         * elf/elf.h: Define MIPS TLS relocations.
2639
2640 2005-03-16  Ulrich Drepper  <drepper@redhat.com>
2641
2642         * elf/circleload1.c (main): Pretty printing.
2643
2644 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2645
2646         * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
2647         Patch by Dan Kegel <dank@kegel.com>.
2648
2649         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
2650         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
2651         Add inline keyword.
2652         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
2653         elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
2654         attribute.
2655         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
2656         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.  Change
2657         static inline into auto inline.
2658         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
2659         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
2660         * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
2661         Likewise.
2662         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
2663         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
2664         Likewise.
2665
2666 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2667
2668         [BZ #789]
2669         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
2670         Remove memory clobber.
2671
2672         * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
2673         thread-safe.  Subtract GLRO(dl_hp_timing_overhead) from Diff.
2674
2675 2005-03-14  Jakub Jelinek  <jakub@redhat.com>
2676
2677         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
2678         asm/types.h.
2679
2680 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
2681
2682         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
2683         MAP_NONBLOCK.
2684         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2685         Correct MAP_GROWSDOWN value.
2686
2687 2005-03-13  Roland McGrath  <roland@redhat.com>
2688
2689         * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
2690         version if there is one.  Only #error if macros are then undefined.
2691         * sysdeps/generic/tls-macros.h: New file.
2692
2693 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
2694
2695         * sysdeps/hppa/configure.in: Remove old Makefile leftovers.
2696         * sysdeps/hppa/configure: Regenerated.
2697
2698 2005-03-08  Roland McGrath  <roland@redhat.com>
2699
2700         * sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
2701         array types match exactly in C alias decls.
2702
2703 2005-03-07  Ulrich Drepper  <drepper@redhat.com>
2704
2705         * malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
2706         mallopt appropriately.
2707         * malloc/malloc.h: Define M_PERTURB.
2708         * malloc/malloc.c (perturb_byte): New variable.
2709         (alloc_perturb, free_perturb): New macros.
2710         (_int_malloc): Before returning, overwrite the memory if this is
2711         requested.
2712         (_int_free): Overwrite freed memory if requested.
2713         (mALLOPt): Handle M_PERTURB.
2714         * test-skeleton.c: Add call to mallopt with M_PERTURB command.
2715
2716         * elf/dl-close.c (_dl_close): Decrement l_opencount before
2717         printing debug message.
2718         * elf/dl-open.c (dl_open_worker): Always print the new opencount
2719         in debug messages.
2720
2721 2005-03-06  Ulrich Drepper  <drepper@redhat.com>
2722
2723         * elf/dl-close.c (_dl_close): Unify debug message format.
2724
2725         * elf/dl-close.c (_dl_close): Print debug message just before
2726         destroying a link map.
2727
2728         * elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
2729         * elf/dl-version.c (match_symbol): Likewise.
2730
2731         * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
2732
2733         * debug/recv_chk.c (__recv_chk): Always fail if request could
2734         overflow the buffer.
2735         * debug/recvfrom_chk.c (__recvfrom_chk): Likewise.
2736         * socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
2737         we know the call succeeds.
2738         (recvfrom): Likewise.
2739
2740 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
2741
2742         * posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
2743         warning.
2744         * posix/regex_internal.c (re_string_reconstruct): Add cast to
2745         avoid warning.
2746         (build_wcs_upper_buffer): Change type of bug to plain char.
2747         * locale/weightwc.h (findidx): Add casts to avoid warnings.
2748         * time/mktime.c (ranged_convert): Initialize tm to make the
2749         compiler happy.
2750         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
2751         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
2752         * wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
2753         * wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
2754         * wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
2755         * wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
2756         * wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
2757         * sysdeps/generic/strchrnul.c: Add cast to avoid warning.
2758         * libio/iofwide.c: Add casts to avoid warnings.
2759         * stdio-common/printf-prs.c (parse_printf_format): Introduce new
2760         variable f to avoid warnings.
2761         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2762         Fix a few casts to avoid warnings.
2763         * iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
2764         to avoid warning.
2765
2766         [BZ #1101]
2767         * posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
2768         dynamically sized array.
2769         (build_wcs_upper_buffer): Likewise.
2770
2771 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
2772
2773         * include/bits/unistd.h: New file.
2774         * include/bits/socket2.h: New file.
2775
2776 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
2777
2778         * sunrpc/key_call.c: Remove doors support.
2779         * sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
2780         * configure.in: Remove test for doors support which never existed.
2781         * config.make.in: Remove have_doors entry.
2782
2783         * configure.in: Make sure at least gcc 3.4 is used.  Undo last change.
2784         * config.make.in: Undo last change.
2785
2786         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use
2787         -mtune.
2788
2789 2005-03-05  Roland McGrath  <roland@redhat.com>
2790
2791         * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
2792         (_dl_out_of_memory): Use rtld_hidden_proto.
2793         * elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
2794         (_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
2795         * elf/dl-open.c (_dl_open): Likewise.
2796         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2797
2798         * sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.
2799
2800         * elf/dl-addr.c (_dl_addr): Add a cast.
2801
2802         [BZ #821]
2803         * elf/unload3mod4.c: Declare foo.
2804         * elf/testobj2.c: Include <stdio.h>.
2805
2806         * sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
2807         value constant, and use it in the defn.
2808         * sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
2809         Use actual size for compat array decls.
2810
2811         * config.make.in (cc-mtune): New substituted variable.
2812         * configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
2813         done only if libc_mtune_example is defined.
2814         * sysdeps/i386/configure.in (libc_mtune_example): Set it.
2815         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).
2816
2817 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
2818
2819         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
2820         unconditionally to (defined RTLD_BOOTSTRAP).
2821         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
2822
2823 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
2824
2825         * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
2826         $(inst_slibdir) in AS_NEEDED directive.
2827
2828 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
2829
2830         * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
2831
2832 2005-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2833
2834         [BZ #776]
2835         * iconv/iconvconfig.c: Fix comment for the output file.
2836         (write_output): Clear padding in header.
2837
2838 2005-03-03  Ulrich Drepper  <drepper@redhat.com>
2839
2840         [BZ #821]
2841         * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
2842         loader is closed.  Fixes unload3.
2843         * elf/tst-global1.c: New file.
2844         * elf/Makefile (tests): Add tst-global1.
2845         * elf/testobj2.c (p): New function.
2846
2847 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
2848
2849         [BZ #821]
2850         * elf/Makefile: Add rules to build and run unload3 test.
2851         * elf/unload3.c: New test.
2852         * elf/unload3mod1.c: New file.
2853         * elf/unload3mod2.c: New file.
2854         * elf/unload3mod3.c: New file.
2855         * elf/unload3mod4.c: New file.
2856
2857 2005-02-21  Alan Modra <amodra@bigpond.net.au>
2858
2859         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
2860         use __uint128_t.
2861
2862 2005-03-01  Jakub Jelinek  <jakub@redhat.com>
2863
2864         * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
2865         of __bos.
2866         * socket/bits/socket2.h (recv, recvfrom): Likewise.
2867
2868 2005-03-01  Roland McGrath  <roland@redhat.com>
2869
2870         [BZ #721]
2871         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
2872         of [RESOLVE_MAP].
2873
2874 2005-03-01  Alfred M. Szmidt  <ams@gnu.org>
2875
2876         [BZ #777]
2877         * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
2878         Add missing initializer.
2879
2880         [BZ #777]
2881         * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
2882         USE_TLS && !USE___THREAD].
2883
2884 2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
2885
2886         * csu/Makefile: Use printf instead of echo for some shells.
2887
2888 2005-02-28  Roland McGrath  <roland@redhat.com>
2889
2890         * debug/warning-nop.c (__nop): Rename to nop, make it static.
2891         (__warndecl): Use alias attribute directly, instead of strong_alias
2892         macro.  Add attribute_hidden.
2893
2894 2005-02-28  Ulrich Drepper  <drepper@redhat.com>
2895
2896         * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
2897         determine the call will never trigger a failure.
2898         * debug/read_chk.c (__read_chk): Always fail if the buffer is too
2899         small.
2900         * debug/readlink_chk.c (__readlink_chk): Likewise.
2901         * debug/pread64_chk.c (__pread64_chk): Likewise.
2902         * debug/pread_chk.c (__pread_chk): Likewise.
2903
2904         * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
2905         * sysdeps/x86_64/memset_chk.S: Likewise.
2906
2907 2005-02-24  Roland McGrath  <roland@redhat.com>
2908
2909         * debug/Versions (libc: GLIBC_2.4): Remove
2910         __memset_zero_constant_len_parameter.
2911         * sysdeps/generic/memset_chk.c: Remove alias and warning.
2912         * misc/sys/cdefs.h (__warndecl): New macro.
2913         * debug/warning-nop.c: New file.
2914         * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
2915         arguments, instead of calling __memset_zero_constant_len_parameter.
2916         Use __warndecl for __warn_memset_zero_len.
2917         * debug/Makefile (routines): Add $(static-only-routines).
2918         (static-only-routines): New variable.
2919
2920 2005-02-27  Ulrich Drepper  <drepper@redhat.com>
2921
2922         * po/tr.po: Update from translation team.
2923
2924 2005-02-26  Ulrich Drepper  <drepper@redhat.com>
2925
2926         * elf/dl-addr.c: Cleanups.  Move declaration next to first use.
2927
2928         * dlfcn/dlerror.c (check_free): New function.  Extract common code
2929         from fini and free_key_mem.  Check whether this is libdl in the
2930         base namespace.
2931
2932 2005-02-25  Ulrich Drepper  <drepper@redhat.com>
2933
2934         * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
2935         to debug output.
2936
2937 2004-11-11  Richard Sandiford  <rsandifo@redhat.com>
2938
2939         [BZ #758]
2940         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
2941         preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
2942         like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
2943         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
2944         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
2945         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
2946         standard __NR prefix.
2947         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
2948         * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
2949         the output file is compatible with both pre-2.6 and 2.6 kernel headers.
2950         Extract separate syscall lists for each ABI.
2951
2952 2005-02-23  Ulrich Drepper  <drepper@redhat.com>
2953
2954         * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
2955
2956         [BZ #719]
2957         * elf/Makefile: Run tst-tls9-static again.
2958
2959 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
2960
2961         [BZ #719]
2962         * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
2963         slotinfo array.
2964         (__libc_setup_tls): Initialize length of DTV based on array length.
2965         * elf/dl-load.c: Revert last change.
2966         * sysdeps/generic/dl-tls.c: Revert last change.
2967
2968         * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
2969         tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
2970         tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
2971         * posix/tst-execl1.c: New file.
2972         * posix/tst-execl2.c: New file.
2973         * posix/tst-execle1.c: New file.
2974         * posix/tst-execle2.c: New file.
2975         * posix/tst-execlp1.c: New file.
2976         * posix/tst-execlp2.c: New file.
2977         * posix/tst-execv1.c: New file.
2978         * posix/tst-execv2.c: New file.
2979         * posix/tst-execve1.c: New file.
2980         * posix/tst-execve2.c: New file.
2981         * posix/tst-execvp1.c: New file.
2982         * posix/tst-execvp2.c: New file.
2983
2984 2005-02-22  Roland McGrath  <roland@redhat.com>
2985
2986         * include/signal.h: Revert last change.
2987         (__sigemptyset): Use __builtin_memset instead of memset.
2988
2989 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
2990
2991         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
2992         non-cancelable I/O functions.
2993
2994 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
2995
2996         [BZ #769]
2997         * nscd/nscd-client.h: Include sys/uio.h.
2998         (__readall, __readvall, writeall): New prototypes.
2999         * nscd/connections.c (writeall): New function.
3000         (handle_request): Use it.
3001         * nscd/aicache.c (addhstaiX): Likewise.
3002         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3003         * nscd/hstcache.c (cache_addhst): Likewise.
3004         * nscd/grpcache.c (cache_addgr): Likewise.
3005         * nscd/pwdcache.c (cache_addpw): Likewise.
3006         * nscd/nscd_helper.c (__readall, __readvall): New functions.
3007         * nscd/nscd_getai.c (__nscd_getai): Use them.
3008         * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
3009         * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
3010         * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
3011         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3012
3013 2005-02-22  Roland McGrath  <roland@redhat.com>
3014
3015         * include/sys/socket.h: Declare __recv.
3016         * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
3017         * sysdeps/mach/hurd/recv.c: Likewise.
3018
3019         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
3020         __backtrace_* decls.
3021
3022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3023         (INTERNAL_SYSCALL_ERROR_P): Evalute VAL.  Parenthesize ERR.
3024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3025
3026         * include/signal.h: Include <string.h> for memset decl.
3027
3028 2005-02-22  Andreas Schwab  <schwab@suse.de>
3029
3030         * posix/execvp.c (execvp): Fix invalid free.
3031
3032 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
3033
3034         [BZ #1095]
3035         * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
3036         * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
3037         librpcsvc.a objects.
3038
3039 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
3040
3041         [BZ #1107]
3042         * iconvdata/ibm930.h: Correct Yen mapping.
3043         * iconvdata/ibm939.h: Likewise.
3044         * iconvdata/testdata/IBM930..UTF8: Adjust test data.
3045         * iconvdata/testdata/IBM939..UTF8: Likewise.
3046         Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
3047
3048         * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
3049         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
3050         (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
3051         ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
3052         ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
3053         ibm1158.c, and ibm1158.h.
3054         * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
3055         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
3056         * iconvdata/gconv-modules: Likewise.
3057         * iconvdata/ibm1025.c: New file.
3058         * iconvdata/ibm1025.h: New file.
3059         * iconvdata/ibm1122.c: New file.
3060         * iconvdata/ibm1122.h: New file.
3061         * iconvdata/ibm1137.c: New file.
3062         * iconvdata/ibm1137.h: New file.
3063         * iconvdata/ibm1153.c: New file.
3064         * iconvdata/ibm1153.h: New file.
3065         * iconvdata/ibm1154.c: New file.
3066         * iconvdata/ibm1154.h: New file.
3067         * iconvdata/ibm1155.c: New file.
3068         * iconvdata/ibm1155.h: New file.
3069         * iconvdata/ibm1156.c: New file.
3070         * iconvdata/ibm1156.h: New file.
3071         * iconvdata/ibm1157.c: New file.
3072         * iconvdata/ibm1157.h: New file.
3073         * iconvdata/ibm1158.c: New file.
3074         * iconvdata/ibm1158.h: New file.
3075         * iconvdata/testdata/IBM1025: New file.
3076         * iconvdata/testdata/IBM1025..UTF8: New file.
3077         * iconvdata/testdata/IBM1122: New file.
3078         * iconvdata/testdata/IBM1122..UTF8: New file.
3079         * iconvdata/testdata/IBM1137: New file.
3080         * iconvdata/testdata/IBM1137..UTF8: New file.
3081         * iconvdata/testdata/IBM1153: New file.
3082         * iconvdata/testdata/IBM1153..UTF8: New file.
3083         * iconvdata/testdata/IBM1154: New file.
3084         * iconvdata/testdata/IBM1154..UTF8: New file.
3085         * iconvdata/testdata/IBM1155: New file.
3086         * iconvdata/testdata/IBM1155..UTF8: New file.
3087         * iconvdata/testdata/IBM1156: New file.
3088         * iconvdata/testdata/IBM1156..UTF8: New file.
3089         * iconvdata/testdata/IBM1157: New file.
3090         * iconvdata/testdata/IBM1157..UTF8: New file.
3091         * iconvdata/testdata/IBM1158: New file.
3092         * iconvdata/testdata/IBM1158..UTF8: New file.
3093         Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
3094
3095 2005-02-10  Paolo Bonzini  <bonzini@gnu.org>
3096
3097         * posix/regcomp.c (lower_subexp): Do not optimize empty
3098         subexpressions even with REG_NOSUB.
3099         * posix/rxspencer/tests: Add a previously failing testcase.
3100
3101 2005-02-21  Alan Modra <amodra@bigpond.net.au>
3102
3103         [BZ #719]
3104         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
3105         array index is within bounds.
3106
3107 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
3108
3109         [BZ #719]
3110         * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
3111         linked code.
3112         * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
3113         * elf/Makefile: Remove rules to build and run tst-tls9-static.
3114
3115         [BZ #719]
3116         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
3117         THREAD_DTV multiple times, this minimally reduces code size on
3118         some archs.
3119
3120 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
3121
3122         [BZ #768]
3123         * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
3124         NETDB_INTERNAL if buffer is too small.
3125
3126         [BZ #768]
3127         * nscd/hstcache.c (INCR): Remove.
3128         (addhstbyX): Double buflen in each iteration rather than add INCR.
3129         * nscd/grpcache.c: Likewise.
3130         * nscd/pwdcache.c: Likewise.
3131
3132 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
3133
3134         * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
3135         map if requested.
3136         * debug/chk_fail.c: Request backtrace and memory map dump.
3137
3138         * Versions.def: Add GLIBC_2.4 for libc.
3139         * debug/fgets_chk.c: New file.
3140         * debug/fgets_u_chk.c: New file.
3141         * debug/getcwd_chk.c: New file.
3142         * debug/getwd_chk.c: New file.
3143         * debug/readlink_chk.c: New file.
3144         * debug/read_chk.c: New file.
3145         * debug/pread_chk.c: New file.
3146         * debug/pread64_chk.c: New file.
3147         * debug/recv_chk.c: New file.
3148         * debug/recvfrom_chk.c: New file.
3149         * debug/Versions: Add all new functions with version GLIBC_2.4.
3150         * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
3151         pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
3152         getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
3153         * debug/tst-chk1.c: Add more tests.
3154         * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
3155         * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
3156         * posix/unistd.h: Include <bits/unistd.h> for fortification.
3157         * posix/bits/unistd.h: New file.
3158         * posix/Makefile (headers): Add bits/unistd.h.
3159         * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
3160         * socket/bits/socket2.h: New file.
3161         * socket/Makefile (headers): Add bits/socket2.h.
3162
3163         * string/bits/string3.h: Extend memset macro to check for zero 3rd
3164         parameter and use __memset_zero_constant_len_parameter in that case.
3165         * sysdeps/generic/memset_chk.c: Add
3166         __memset_zero_constant_len_parameter alias and linker warning.
3167         * debug/Versions: Add __memset_zero_constant_len_parameter to libc
3168         with version GLIBC_2.4.
3169
3170         * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
3171         in __STD_TYPE definition.
3172
3173 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
3174
3175         * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
3176         the error message rather than program name.
3177
3178 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
3179
3180         [BZ #767]
3181         * posix/unistd.h: symlink and readlink are unconditionally
3182         available in the 2001 spec.
3183
3184 2005-02-16  Roland McGrath  <roland@redhat.com>
3185
3186         * intl/dcigettext.c (_nl_find_msg): Add a cast.
3187
3188         * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
3189         * nis/nis_clone_obj.c (nis_clone_object): Likewise.
3190         * nis/nis_clone_res.c (nis_clone_result): Likewise.
3191
3192         * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
3193         for END_OF_MESSAGE and CP.
3194
3195         * resolv/res_send.c (send_dg): Add else branch for case impossible
3196         unless `poll' is buggy.
3197
3198         * crypt/crypt_util.c (__setkey_r): Add a cast.
3199
3200         * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
3201         NBYTES, and unsigned char * for BYTES.
3202
3203         * locale/programs/charmap.c (charmap_new_char): Use size_t and
3204         unsighed char * for NBYTES, BYTES parameters.
3205
3206         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
3207         and cast it.
3208         * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
3209
3210         * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
3211
3212         * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
3213
3214         * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
3215         (authdes_marshal): Don't use unsigned int for LEN.
3216         * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
3217         (xdr_u_hyper): Likewise.
3218         (xdr_u_short): Don't use u_long for L.
3219         * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
3220
3221         * inet/rexec.c (rexec_af): Use socklen_t.
3222         * sunrpc/key_call.c (getkeyserv_handle): Likewise.
3223         * sunrpc/rtime.c (rtime): Likewise.
3224         * resolv/res_send.c (send_vc, send_dg): Likewise.
3225         * nis/nis_callback.c (__nis_create_callback): Likewise.
3226
3227         * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
3228
3229         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
3230
3231         * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
3232
3233         * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
3234         (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
3235         (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
3236         * intl/bindtextdom.c (INTUSE): Macro removed.
3237         (_nl_default_dirname): Use libc_hidden_proto.
3238         (set_binding_values): Don't use INTUSE.
3239         * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
3240         (_libc_intl_domainname): Use libc_hidden_proto.
3241         * posix/regex_internal.h (gettext): Remove INTUSE on it.
3242         * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
3243         rather than INTDEF.
3244         * include/libintl.h (_): Don't use *_internal name.
3245
3246         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
3247         not uint32_t.
3248         * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
3249
3250         * iconv/gconv_open.c (__gconv_open): Remove useless cast.
3251
3252         [BZ #721]
3253         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
3254         of [RESOLVE_MAP].
3255         * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
3256         * sysdeps/powerpc/powerpc32/dl-machine.h
3257         (elf_machine_rel, elf_machine_rel_relative): Removed.
3258         * sysdeps/powerpc/powerpc64/dl-machine.h
3259         (elf_machine_rel, elf_machine_rel_relative): Removed.
3260
3261 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
3262
3263         [BZ #721]
3264         * elf/dynamic-link.h: Don't declare nested auto functions that are
3265         not going to be defined.
3266
3267 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
3268
3269         [BZ #284]
3270         * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
3271         if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
3272
3273 2005-02-16  Roland McGrath  <roland@redhat.com>
3274
3275         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
3276         inside [! SHARED] where it's used.
3277
3278 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
3279
3280         * sysdeps/generic/bits/byteswap.h: Make sure result of all the
3281         functions and macros is unsigned.
3282
3283 2005-02-11  Barry deFrese  <bddebian@comcast.net>
3284
3285         [BZ #722]
3286         * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
3287         * sysdeps/mach/hurd/setresuid.c: Likewise.
3288
3289 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
3290
3291         * misc/sys/syslog.h: Fix typo in comment.
3292
3293 2005-02-14  Roland McGrath  <roland@redhat.com>
3294
3295         [BZ #720]
3296         * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
3297         if it wasn't originally.
3298
3299 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
3300
3301         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
3302         getpeername entry.
3303         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3304         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3305
3306 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
3307
3308         * scripts/soversions.awk: Only record first WORDSIZE{32,64}
3309         matching line.
3310
3311 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
3312
3313         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
3314         with auto inline, and attribute always_inline.
3315         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
3316         (elf_machine_rel, elf_machine_rel_relative): Likewise.
3317         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3318         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
3319         (elf_machine_rel, elf_machine_rel_relative): Likewise.
3320         (elf_machine_tprel): Likewise.
3321
3322 2005-02-14  Andreas Schwab  <schwab@suse.de>
3323
3324         * manual/filesys.texi (Random Access Directory): Fix type of file
3325         position value for telldir and seekdir.
3326         (Attribute Meanings): Fix typo.
3327
3328 2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
3329
3330         * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
3331         isn't defined.
3332         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
3333         if SHARED isn't defined.
3334         * elf/Makefile (tests-static): Add tst-array1-static.
3335         ($(objpfx)tst-array1-static.out): New target.
3336         * elf/tst-array1-static.c: New file.
3337
3338 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
3339
3340         [BZ #1100]
3341         * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
3342         __libc_message to kill GCC warning about noreturn function returning.
3343
3344         * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
3345         before relocating ld.so again.
3346
3347         * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
3348         for already prelinked ld.so.
3349
3350 2005-02-11  Roland McGrath  <roland@redhat.com>
3351
3352         [BZ #715]
3353         * Makefile (installed-stubs): New variable.
3354         Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
3355         or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
3356         [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
3357         ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
3358         rule's target.
3359         ($(inst_includedir)/gnu/stubs.h): New target, install from ...
3360         * include/stubs-biarch.h: New file.
3361
3362         * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
3363
3364         * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
3365         Emit defn for variable `biarch'.
3366
3367         * include/stub-tag.h: Update comment.
3368
3369         * scripts/soversions.awk: Fix default version set handling.
3370
3371 2005-02-10  Roland McGrath  <roland@redhat.com>
3372
3373         [BZ #157]
3374         * include/libc-symbols.h (stub_warning): Emit a marker section called
3375         .gnu.glibc-stub.NAME.
3376         * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
3377         Use objdump to collect those marker section names.
3378         ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
3379
3380         * Rules (subdir_objs, subdir_stubs): New phony targets.
3381         * Makefile (+subdir_targets): Add them.
3382
3383         * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
3384         soversions.i.
3385
3386         * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
3387         Reported by H.J. Lu <hongjiu.lu@intel.com>.
3388
3389         * scripts/lib-names.awk: Always print WORDSIZE32 section first when
3390         doing two.
3391
3392 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
3393
3394         * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
3395         * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
3396         * sysdeps/powerpc/bits/link.h: ... here.  New file.
3397
3398 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
3399
3400         [BZ #710]
3401         * stdlib/random_r.c (__initstate_r): Save old state.
3402         * stdlib/Makefile (tests): Add tst-random2.
3403         * stdlib/tst-random2.c: New test.
3404         Reported by Peter Bergner <bergner@vnet.ibm.com>.
3405
3406 2005-01-25  H.J. Lu  <hongjiu.lu@intel.com>
3407
3408         * dlfcn/dlfcn.c (init): Put it in .init_array section.
3409
3410 2005-02-10  Roland McGrath  <roland@redhat.com>
3411
3412         [BZ #632]
3413         * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
3414         from command line.
3415         Grok shlib-versions lines with WORDSIZE* in second column.
3416         Add new leading column to output, DEFAULT for existing output lines.
3417         Also emit lines with WORDSIZE* for alternate configurations.
3418         * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
3419         ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
3420         ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
3421         of soversions.mk; replace inline shell script with use of ...
3422         * scripts/lib-names.awk: New file.  If input has non-DEFAULT lines,
3423         emit multiple sets of macros under #if.
3424         * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
3425         (s390x-.*-.*): Likewise for s390.
3426         (powerpc64-.*-.*): Likewise for powerpc.
3427         (sparc64-.*-.*): Likewise for sparc.
3428         (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
3429         for these mapping back to the above.
3430
3431 2005-02-08  Jakub Jelinek  <jakub@redhat.com>
3432
3433         * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
3434
3435 2005-02-08  Andreas Schwab  <schwab@suse.de>
3436
3437         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
3438         RESOLVE.
3439
3440 2005-02-07  Richard Henderson  <rth@redhat.com>
3441
3442         * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
3443
3444 2005-02-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3445
3446         * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
3447         RESOLVE.
3448
3449 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
3450
3451         * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
3452         set correctly.
3453
3454 2005-01-07  Richard Henderson  <rth@redhat.com>
3455
3456         * math/math_private.h (__copysign): Define as builtin for gcc 4.
3457         (__copysignf, __copysignl): Likewise.
3458         * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
3459         for gcc 4.0.
3460         (copysignf, copysignl, fabsf, fabs): Likewise.
3461         (__copysign, __copysignf, __copysignl): Remove.
3462         (__fabs, __fabsf): Remove.
3463
3464 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
3465
3466         [BZ #738]
3467         * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
3468         avoid writing to it if none of the standard search directories exist.
3469
3470 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
3471
3472         [BZ #700]
3473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3474         (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
3475         Load MSR as a doubleword.
3476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3477         (__novec_swapcontext, __swapcontext): Likewise.
3478
3479 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
3480
3481         * iconv/iconv_prog.c (main): Provide more help in case on an error.
3482
3483         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
3484
3485 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
3486
3487         [BZ #741]
3488         * nscd/nscd.c (termination_handler): Avoid segfault if some database
3489         is not enabled.
3490
3491         [BZ #741]
3492         * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
3493         __nss_not_use_nscd_hosts and return -1.
3494         * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
3495         initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
3496         Avoid leaking sockets.
3497
3498 2005-01-28  Andreas Schwab  <schwab@suse.de>
3499             H.J. Lu  <hongjiu.lu@intel.com>
3500
3501         [BZ #677]
3502         * elf/dl-runtime.c (fixup): Change return type to
3503         DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
3504         DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
3505         values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
3506         store and retrieve relocation values.
3507         (profile_fixup): Likewise.
3508         * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
3509         l_reloc_result.
3510         * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
3511         * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
3512         (DL_FIXUP_MAKE_VALUE): Likewise.
3513         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
3514         (DL_FIXUP_VALUE_ADDR): Likewise.
3515         (DL_FIXUP_ADDR_VALUE): Likewise.
3516         * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
3517         (DL_FIXUP_VALUE_TYPE): New.
3518         (DL_FIXUP_MAKE_VALUE): Likewise.
3519         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
3520         (DL_FIXUP_VALUE_ADDR): Likewise.
3521         (DL_FIXUP_ADDR_VALUE): Likewise.
3522         * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
3523         (elf_machine_profile_plt): Removed.
3524         (elf_machine_fixup_plt): Change return type and type of value
3525         parameter to struct fdesc.
3526         (elf_machine_plt_value): Likewise.
3527         (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
3528         argument for elf_machine_fixup_plt.
3529
3530 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
3531
3532         [BZ #742]
3533         * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
3534         after the status string printed by killproc.
3535
3536 2004-11-18  Alexandre Oliva  <aoliva@redhat.com>
3537
3538         * manual/.cvsignore: Add dir-add.texi.
3539
3540 2005-02-06  Richard Henderson  <rth@redhat.com>
3541
3542         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
3543         all the time.
3544
3545 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
3546
3547         * configure.in (sysnames): Append sysdeps/generic for each add-on.
3548         * configure: Regenerated.
3549
3550 2005-02-02  Alfred M. Szmidt  <ams@gnu.org>
3551
3552         * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
3553         (dtv_t): Change pointer type to be a struct which also contains
3554         information whether the memory pointed to is static TLS or not.
3555
3556         * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
3557
3558         * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
3559         (FALSEP): ... this.  Updated all references.
3560
3561         [BZ #765]
3562         * libio/fmemopen.c: Include <stdint.h>.
3563
3564 2005-01-30  Ulrich Drepper  <drepper@redhat.com>
3565
3566         [BZ #1103]
3567         * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
3568         * nscd/connections.c (send_ro_fd): Likewise.
3569
3570 2005-01-28  H.J. Lu  <hongjiu.lu@intel.com>
3571
3572         * elf/tst-auditmod1.c: Add ia64 entries.
3573         * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
3574         (La_ia64_retval): New.
3575         (audit_ifaces): Add ia64 entries.
3576         * sysdeps/ia64/bits/link.h: New file.
3577         * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
3578         for dl_profile non-null.
3579         (ARCH_LA_PLTENTER): New.
3580         (ARCH_LA_PLTEXIT): New.
3581         * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
3582         only 2 output registers. Allocate stack to save/restore
3583         8 incoming fp registers. Call _dl_fixup instead of fixup.
3584         (_dl_runtime_profile): Rewrite.
3585
3586 2005-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3587
3588         * sysdeps/s390/bits/link.h: New file.
3589         * sysdeps/s390/s390-32/dl-trampoline.S: New file.
3590         * sysdeps/s390/s390-64/dl-trampoline.S: New file.
3591         * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
3592         dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
3593         relocation code.
3594         (elf_machine_runtime_setup): Test for dl_profile non-null.
3595         (elf_machine_rela): Remove code using RESOLVE.
3596         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
3597         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3598         * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
3599         La_s390_64_regs, La_s390_64_retval): New.
3600         * elf/tst-auditmod1.c: Add s390 entries.
3601
3602         [BZ #743]
3603         * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
3604         strncat, memchr, strcmp): Add missing memory clobber.
3605
3606 2005-01-27  Ulrich Drepper  <drepper@redhat.com>
3607
3608         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
3609         copy gl_offs.  Patch by Sergey Tikhonov <tsv@solvo.ru>.
3610
3611 2005-01-27  Paolo Bonzini  <bonzini@gnu.org>
3612
3613         [BZ #558]
3614         * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
3615         Initialize the node sets in dfa->inveclosures.
3616         (analyze): Initialize inveclosures only if it is needed.
3617         Check errors from calc_inveclosure.
3618         * posix/regex_internal.c (re_dfa_add_node): Do not initialize
3619         the inveclosure node set.
3620         * posix/regexec.c (re_search_internal): If nmatch includes unused
3621         subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
3622
3623         * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
3624         Do build a SIMPLE_BRACKET token.
3625
3626         * posix/regexec.c (transit_state_mb): Do not examine nodes
3627         where ACCEPT_MB is not set.
3628
3629 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
3630
3631         * stdlib/tst-fmtmsg.c: Include stdlib.h.
3632         * stdio-common/tst-fmemopen2.c: Include string.h.
3633         * posix/execvp.c: Include stdbool.h.
3634
3635 2004-12-13  Paolo Bonzini  <bonzini@gnu.org>
3636
3637         Separate parsing and creation of the NFA.  Avoided recursion on
3638         the (very unbalanced) parse tree.
3639         [BZ #611]
3640         * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
3641         re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
3642         (optimize_subexps, duplicate_tree, calc_first, calc_next,
3643         mark_opt_subexp): Rewritten.
3644         (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
3645         create_token_tree, free_tree, free_token): New.
3646         (analyze): Accept a regex_t *.  Invoke the passes via the preorder and
3647         postorder generic visitors.  Do not initialize the fields in the
3648         re_dfa_t that represent the transitions.
3649         (free_dfa_content): Use free_token.
3650         (re_compile_internal): Analyze before UTF-8 optimizations.  Do not
3651         include optimization of subexpressions.
3652         (create_initial_state): Fetch the DFA node index from the first node's
3653         bin_tree_t *.
3654         (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
3655         Return on COMPLEX_BRACKET.
3656         (duplicate_node_closure): Fix comment.
3657         (duplicate_node): Do not initialize the fields in the
3658         re_dfa_t that represent the transitions.
3659         (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
3660         (create_tree): Remove final argument.  All callers adjusted.  Rewritten
3661         to use create_token_tree.
3662         (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
3663         build_charclass_op): Use create_tree or create_token_tree instead
3664         of re_dfa_add_tree_node.
3665         (parse_dup_op): Likewise.  Also free the tree using free_tree for
3666         "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
3667         to "a|".  Adjust invocation of mark_opt_subexp.
3668         (parse_sub_exp): Create a single SUBEXP node.
3669         * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
3670         always perform as if it was 1.  Do not initialize OPT_SUBEXP and
3671         DUPLICATED, and initialize the DFA fields representing the transitions.
3672         * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
3673         (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
3674         section.  Add a tree-only code SUBEXP.  Remove OP_DELETED_SUBEXP.
3675         (bin_tree_t): Include a full re_token_t for TOKEN.  Turn FIRST and
3676         NEXT into pointers to trees.  Remove ECLOSURE.
3677
3678 2004-12-28  Paolo Bonzini  <bonzini@gnu.org >
3679
3680         [BZ #605]
3681         * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
3682         that were already created.
3683         * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
3684         in the token if needed.
3685         (create_ci_newstate, create_cd_newstate): Set accept_mb field
3686         from the tokens' field.
3687         * posix/regex_internal.h (re_token_t): Add accept_mb field.
3688         (ACCEPT_MB_NODE): Removed.
3689         * posix/regexec.c (proceed_next_node, transit_states_mb,
3690         build_sifted_states, check_arrival_add_next_nodes): Use
3691         accept_mb instead of ACCEPT_MB_NODE.
3692
3693 2005-01-26  Ulrich Drepper  <drepper@redhat.com>
3694
3695         [BZ #1100]
3696         * debug/chk_fail.c (__chk_fail): Print program name in final message.
3697
3698         * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
3699         MSG_NOSIGNAL being in 2.2 kernels.
3700
3701 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
3702
3703         * sysdeps/unix/sysv/linux/i386/sysdep.h
3704         (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
3705
3706         [BZ #693]
3707         * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
3708         (WORD_DELIM_CONSTRAINT): ...this.
3709         (NOT_WORD_DELIM_CONSTRAINT): Define.
3710         (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
3711         change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
3712         * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
3713         anchor instead of INSIDE_WORD.
3714         (parse_expression): Handle NOT_WORD_DELIM constraint.
3715         * posix/bug-regex19.c (tests): Adjust tests that relied on \B
3716         being inside word instead of not word delim.
3717         * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
3718         characters.
3719         * posix/rxspencer/tests: Add some new tests.
3720
3721 2005-01-14  GOTO Masanori  <gotom@debian.or.jp>
3722
3723         [BZ #1108]
3724         * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
3725         irrespective of Cflag.
3726
3727         * manual/memory.texi (sbrk): Fix definition.
3728         * manual/string.texi (strcasestr): Fix example typo.
3729
3730 2005-01-25  Roland McGrath  <roland@redhat.com>
3731
3732         * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
3733
3734 2005-01-23  Roland McGrath  <roland@redhat.com>
3735
3736         [BZ #737]
3737         * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
3738         in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
3739         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
3740         (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
3741         from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
3742         * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
3743
3744 2005-01-25  Jakub Jelinek  <jakub@redhat.com>
3745
3746         [BZ #731]
3747         * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
3748         (free_mem): Don't free string.
3749         * stdlib/tst-fmtmsg.c: Include string.h.
3750         (main): Add some more tests.
3751
3752 2005-01-25  Andreas Schwab  <schwab@suse.de>
3753
3754         [BZ #736]
3755         * timezone/asia: Update from tzdata2005c.
3756         * timezone/backward: Likewise.
3757         * timezone/europe: Likewise.
3758         * timezone/leapseconds: Likewise.
3759         * timezone/northamerica: Likewise.
3760         * timezone/southamerica: Likewise.
3761
3762         [BZ #736]
3763         * timezone/private.h: Update from tzcode2005c.
3764         * timezone/tzfile.h: Likewise.
3765         * timezone/zdump.c: Likewise.
3766         * timezone/zic.c: Likewise.
3767
3768 2005-01-25  Ulrich Drepper  <drepper@redhat.com>
3769
3770         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
3771         RESOLVE.
3772         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
3773         using RESOLVE.
3774         * elf/rtld.c (_dl_start): Remove RESOLVE definition.
3775
3776 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
3777
3778         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
3779         sym_map, not sym, against zero.
3780
3781 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
3782
3783         [BZ #671]
3784         * misc/syslog.c: Moved to...
3785         * sysdeps/generic/syslog.c: ...here.
3786         [NO_SIGIPE]: Don't install SIGPIPE handler.
3787         * sysdeps/unix/sysv/linux/syslog.c: New file.
3788         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3789         __ASSUME_MSG_NOSIGNAL.
3790
3791 2005-01-22  Richard Henderson  <rth@redhat.com>
3792
3793         * sysdeps/alpha/dl-trampoline.S: New file.
3794         * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
3795         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
3796         (elf_machine_runtime_setup): Test for dl_profile non-null.
3797         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
3798         * sysdeps/alpha/bits/link.h: New file.
3799         * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
3800         (struct audit_ifaces): Add alpha entries.
3801         * elf/tst-auditmod1.c: Add alpha entries.
3802
3803 2005-01-22  Ulrich Drepper  <drepper@redhat.com>
3804
3805         * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
3806         * sysdeps/ia64/dl-trampoline.S: New file.
3807
3808         * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
3809         La_x86_64_xmm definition.
3810
3811         * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
3812         pointer option.
3813         * stdlib/Makefile (CFLAGS-system.os): Use this instead of
3814         CFLAGS-system.c for frame pointer option.
3815
3816 2005-01-21  Roland McGrath  <roland@redhat.com>
3817
3818         * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
3819         * sysdeps/i386/dl-machine.h: Update decl.
3820
3821 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
3822
3823         [BZ #735]
3824         * elf/Makefile: Add rules to build and run tst-align2.
3825         * elf/tst-align2.c: New test.
3826         * elf/tst-alignmod2.c: New file.
3827         * sysdeps/powerpc/tst-stack-align.h: New file.
3828         * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
3829         pointer before calling _dl_init.
3830         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
3831
3832 2005-01-20  Ulrich Drepper  <drepper@redhat.com>
3833
3834         * posix/execl.c: Do not allocate potentially large buffers on the
3835         stack.
3836         * posix/execle.c: Likewise.
3837         * posix/execlp.c: Likewise.
3838         * posix/execvp.c: Likewise.
3839         (script_execute): Removed.
3840         (allocate_scripts_argv): New function.  Called at most once to
3841         allocate memory, not every time a script is run.  Adjust caller.
3842
3843         * sysdeps/generic/wordexp.c (exec_comm): Add a few
3844         TEMP_FAILURE_RETRY.  Reorganize code to avoid multiple calls to
3845         exec_comm_child.
3846         (exec_comm_child): Can now be inlined.
3847
3848         * posix/Makefile: Add -fomit-frame-pointer for a few more files.
3849         * stdlib/Makefile: Likewise.
3850
3851 2005-01-19  Roland McGrath  <roland@redhat.com>
3852
3853         [BZ #681]
3854         * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
3855         argument to execlp.
3856         Reported by Marcus Meissner <meissner@suse.de>.
3857
3858 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
3859
3860         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
3861         in assert.
3862         * iconv/strtab.c (strtabfinalize): Likewise.
3863
3864         * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
3865
3866 2005-01-17  Roland McGrath  <roland@redhat.com>
3867
3868         [BZ #745]
3869         * nscd/Makefile (LDLIBS-nscd): New variable.
3870         ($(objpfx)nscd): Use that instead of selinux-LIBS.
3871
3872         * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
3873         (link-extra-libs-static): Define to $(link-extra-libs).
3874         (link-extra-libs-bounded): Likewise.
3875
3876 2005-01-17  Ulrich Drepper  <drepper@redhat.com>
3877
3878         * include/link.h: Remove stray definition of pltenter.
3879
3880 2005-01-16  GOTO Masanori  <gotom@debian.or.jp>
3881
3882         [BZ #734]
3883         * sysdeps/unix/rewinddir.c: Reset filepos.
3884         * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
3885
3886 2005-01-15  Ulrich Drepper  <drepper@redhat.com>
3887
3888         * elf/tst-auditmod1.c: Reduce duplication.
3889
3890 2005-01-16  Andreas Schwab  <schwab@suse.de>
3891
3892         * sysdeps/m68k/dl-machine.h: Remove trampoline code.  Define
3893         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
3894         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
3895         GLRO(dl_profile) != NULL.
3896         * sysdeps/m68k/dl-trampoline.S: New file.
3897         * sysdeps/m68k/bits/link.h: New file.
3898         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
3899         variants.
3900         * elf/tst-auditmod1.c: Add m68k support.
3901
3902 2005-01-14  Ulrich Drepper  <drepper@redhat.com>
3903
3904         * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
3905         LC_* variable.  Patch by Aharon Robbins <arnold@skeeve.com>.
3906
3907         [BZ #731]
3908         * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
3909         * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
3910
3911 2005-01-12  Ulrich Drepper  <drepper@redhat.com>
3912
3913         * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
3914         callers from libc anymore.
3915
3916         * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
3917         to _dl_map_object_deps.
3918         * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
3919         protections when loading auditing modules.
3920
3921         * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
3922
3923         * posix/getconf.c: Update copyright year.
3924         * nss/getent.c: Likewise.
3925         * nscd/nscd_nischeck.c: Likewise.
3926         * iconv/iconvconfig.c: Likewise.
3927         * iconv/iconv_prog.c: Likewise.
3928         * elf/ldconfig.c: Likewise.
3929         * catgets/gencat.c: Likewise.
3930         * csu/version.c: Likewise.
3931         * elf/ldd.bash.in: Likewise.
3932         * elf/sprof.c (print_version): Likewise.
3933         * locale/programs/locale.c: Likewise.
3934         * locale/programs/localedef.c: Likewise.
3935         * nscd/nscd.c (print_version): Likewise.
3936         * debug/xtrace.sh: Likewise.
3937         * malloc/memusage.sh: Likewise.
3938         * malloc/mtrace.pl: Likewise.
3939         * debug/catchsegv.sh: Likewise.
3940
3941 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
3942
3943         [BZ #733]
3944         * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
3945         as backlog.
3946         * sunrpc/svc_unix.c (svcunix_create): Likewise.
3947
3948         [BZ #1099]
3949         * grp/putgrent.c (putgrent): Don't write 0 as group
3950         ID if groupname starts with + or -.
3951         * pwd/putpwent.c (putpwent): Don't write 0 as user or
3952         group ID if user name starts with + or -.
3953
3954 2005-01-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3955
3956         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
3957         * sysdeps/elf/tst-auditmod1.c: Add sh support.
3958         * sysdeps/sh/bits/link.h: New.
3959         * sysdeps/sh/dl-machine.h: Remove trampoline code here.  Define
3960         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.  Remove obsolete comments.
3961         (RTLD_START): Define __fpscr_values.
3962         * sysdeps/sh/dl-trampoline.S: New file.
3963         * sysdeps/sh/sh4/dl-trampoline.S: New file.
3964         * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
3965         * sysdeps/sh/sh4/dl-machine.h: Remove.
3966
3967 2005-01-10  Jakub Jelinek  <jakub@redhat.com>
3968
3969         [BZ #732]
3970         * time/tst-strptime.c (day_tests): Add 2 new tests.
3971         (test_tm, main): Issue an error instead of segfaulting if
3972         strptime returns NULL.
3973
3974 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
3975
3976         * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
3977         * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
3978
3979 2005-01-11  Ulrich Drepper  <drepper@redhat.com>
3980
3981         * malloc/malloc.h: Remove no-glibc support.
3982
3983 2005-01-12  GOTO Masanori  <gotom@debian.or.jp>
3984
3985         [BZ #650]
3986         * malloc/malloc.h: Always include features.h.
3987
3988 2005-01-10  Roland McGrath  <roland@redhat.com>
3989
3990         * sysdeps/ia64/fpu/e_logl.c: File removed.
3991
3992         * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
3993
3994 2005-01-10  Ulrich Drepper  <drepper@redhat.com>
3995
3996         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
3997         recognition of last entry.
3998
3999 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
4000
4001         * elf/dl-runtime.c: Include <sys/param.h>.
4002
4003         * elf/Makefile (headers): Add bits/link.h.
4004
4005 2005-01-09  Andreas Schwab  <schwab@suse.de>
4006
4007         * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
4008
4009 2005-01-09  Andreas Jaeger  <aj@suse.de>
4010
4011         [BZ #732]
4012         * time/strptime_l.c (__strptime_internal): Add braces to avoid
4013         warning.
4014
4015         * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
4016
4017         * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
4018
4019 2005-01-08  Jakub Jelinek  <jakub@redhat.com>
4020
4021         * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
4022
4023 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
4024
4025         * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
4026         those of all the regular objects.
4027
4028         * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
4029         use it to select the r_debug structure for that namespace.
4030         * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
4031         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4032         * elf/dl-open.c (_dl_open): Likewise.
4033         * elf/rtld.c (dl_main): Likewise.
4034         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
4035         member.
4036         (_dl_debug_initialize): Add new parameter in declaration.
4037
4038         * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
4039         called for the auditing objects themselves.
4040         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
4041
4042 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
4043
4044         * sysdeps/powerpc/powerpc64/dl-machine.h
4045         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
4046         GLRO(dl_profile) != NULL.
4047         * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
4048         padding.
4049         * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
4050         Extend _dl_prof_resolve to add pass extra parameters to
4051         _dl_profile_fixup and set up structure with register content.
4052
4053         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
4054         If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
4055         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
4056         Extend _dl_prof_resolve to add pass extra parameters to
4057         _dl_profile_fixup and set up structure with register content.
4058         * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
4059         the register and result structures.
4060         * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
4061         in the 32-bit register and result structures.
4062
4063         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
4064
4065         * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
4066         * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
4067         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
4068         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
4069         * elf/tst-auditmod1.c: Add ppc32 support.
4070         * sysdeps/powerpc/powerpc32/bits/link.h: New file.
4071         * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
4072
4073         * malloc/malloc.c (malloc_printerr): Print program name as part of
4074         error message.
4075
4076         * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
4077         * stdlib/stdlib.h: Make realloc with
4078         __attribute_warn_unused_result__ instead of __wur.
4079         * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
4080         markers as in <stdlib.h>.
4081
4082         * libio/stdio.h: Remove __wur from rename and remove.
4083         * posix/unistd.h: Remove __wur from dup2.
4084
4085 2005-01-03  Andreas Jaeger  <aj@suse.de>
4086
4087         * elf/Makefile (tests): Revert patch from 2005-01-03.
4088
4089 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
4090
4091         * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
4092         make __libc_init_first hidden.
4093
4094         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
4095         l_relocated of rtld map.
4096         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
4097         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
4098         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
4099         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
4100         * elf/tst-auditmod1.c: Add ppc64 support.
4101         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
4102
4103 2005-01-06  Roland McGrath  <roland@redhat.com>
4104
4105         [BZ #633]
4106         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
4107         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
4108
4109 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
4110
4111         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
4112         * sysdeps/generic/libc-start.c: Don't register program destructor here.
4113
4114         * dlfcn/Makefile: Add rules to build dlfcn.c.
4115         (LDFLAGS-dl.so): Removed.
4116         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
4117         table.
4118         * dlfcn/dlmopen.c: Likewise for _dl_open.
4119         * dlfcn/dlopen.c: Likewise.
4120         * dlfcn/dlopenold.c: Likewise.
4121         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
4122         * elf/Makefile (routines): Remove dl-open and dl-close.
4123         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
4124         Add rules to build and run tst-audit1.
4125         * elf/tst-audit1.c: New file.
4126         * elf/tst-auditmod1.c: New file.
4127         * elf/Versions [libc]: Remove _dl_open and _dl_close.
4128         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
4129         * elf/dl-open.c: Likewise.
4130         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
4131         signaled by nonzero parameter.
4132         * elf/dl-init.c: Fix use of r_state.
4133         * elf/dl-load.c: Likewise.
4134
4135         * elf/dl-close.c: Add auditing checkpoints.
4136         * elf/dl-open.c: Likewise.
4137         * elf/dl-fini.c: Likewise.
4138         * elf/dl-load.c: Likewise.
4139         * elf/dl-sym.c: Likewise.
4140         * sysdeps/generic/libc-start.c: Likewise.
4141         * elf/dl-object.c: Allocate memory for auditing information.
4142         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
4143         Correctly initialize slotinfo.
4144         * elf/dynamic-link.h: Adjust after removal of RESOLV.
4145         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
4146         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
4147         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
4148         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
4149         (_dl_profile_fixup): New parameters to point to register struct and
4150         variable for frame size.
4151         Add auditing checkpoints.
4152         (_dl_call_pltexit): New function.
4153         Don't define trampoline code here.
4154         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
4155         Remove all the functions from _rtld_global_ro which only _dl_open
4156         and _dl_close needed.
4157         Add auditing checkpoints.
4158         * elf/link.h: Define symbols for auditing interfaces.
4159         * include/link.h: Likewise.
4160         * include/dlfcn.h: Define __RTLD_AUDIT.
4161         Remove prototypes for _dl_open and _dl_close.
4162         Adjust access to argc and argv in libdl.
4163         * dlfcn/dlfcn.c: New file.
4164         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
4165         is gone.
4166         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
4167         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
4168         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
4169         Adjust for removal of RESOLVE.
4170         * sysdeps/x86_64/dl-machine.h: Likewise.
4171         * sysdeps/generic/dl-trampoline.c: New file.
4172         * sysdeps/i386/dl-trampoline.c: New file.
4173         * sysdeps/x86_64/dl-trampoline.c: New file.
4174
4175         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
4176         Fix updating of DTV.
4177         * sysdeps/generic/libc-tls.c: Likewise.
4178
4179         * sysdeps/arm/bits/link.h: Renamed to ...
4180         * sysdeps/arm/bits/linkmap.h: ...this.
4181         * sysdeps/generic/bits/link.h: Renamed to...
4182         * sysdeps/generic/bits/linkmap.h: ...this.
4183         * sysdeps/hppa/bits/link.h: Renamed to...
4184         * sysdeps/hppa/bits/linkmap.h: ...this.
4185         * sysdeps/i386/bits/link.h: Renamed to...
4186         * sysdeps/i386/bits/linkmap.h: ...this.
4187         * sysdeps/ia64/bits/link.h: Renamed to...
4188         * sysdeps/ia64/bits/linkmap.h: ...this.
4189         * sysdeps/s390/bits/link.h: Renamed to...
4190         * sysdeps/s390/bits/linkmap.h: ...this.
4191         * sysdeps/sh/bits/link.h: Renamed to...
4192         * sysdeps/sh/bits/linkmap.h: ...this.
4193         * sysdeps/x86_64/bits/link.h: Renamed to...
4194         * sysdeps/x86_64/bits/linkmap.h: ...this.
4195
4196         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
4197
4198 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
4199
4200         [BZ #602]
4201         * math/libm-test.inc (rint_test_tonearest): New test.
4202         (rint_test_towardzero): New test.
4203         (rint_test_downward): New test.
4204         (rint_test_upward): New test.
4205         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
4206         Remove redundant const values.
4207         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
4208         Remove redundant const values.  Use float const.
4209         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
4210         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
4211         Use float const.
4212         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
4213         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
4214         Use float const.
4215         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
4216         Remove redundant const values.
4217         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
4218         Remove redundant const values.  Use float const.
4219         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
4220         Remove redundant const values.
4221         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
4222         Remove redundant const values.  Use float const.
4223         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
4224         alignment.  Fix -0.0 case.  Remove redundant const values.
4225         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
4226         alignment.  Fix -0.0 case.  Remove redundant const values.
4227         Use float const.
4228         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
4229         alignment.  Fix -0.0 case.
4230         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
4231         alignment.  Fix -0.0 case.  Use float const.
4232         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
4233         alignment.  Fix -0.0 case.
4234         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
4235         alignment.  Fix -0.0 case.  Use float const.
4236         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
4237         alignment.  Fix -0.0 case.  Remove redundant const values.
4238         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
4239         alignment.  Fix -0.0 case.  Remove redundant const values.
4240         Use float const.
4241         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
4242         alignment.  Fix -0.0 case.
4243         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
4244         alignment.  Fix -0.0 case.  Remove redundant const values.
4245         Use float const.
4246
4247 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
4248
4249         * misc/sys/cdefs.h: Define __wur.
4250         * libio/stdio.h: Use __wur for a number of interfaces.
4251         * posix/unistd.h: Likewise.
4252         * stdlib/stdlib.h: Likewise.
4253
4254 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
4255
4256         [BZ #592]
4257         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
4258         libc_hidden_proto instead of HIDDEN_PROTO.
4259         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
4260         (__libm_error_support): If ASSEMBLER and in libc, define to
4261         HIDDEN_JUMPTARGET(__libm_error_support).
4262
4263 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
4264
4265         [BZ #592]
4266         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
4267         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
4268         with $(duplicated-routines).
4269         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
4270         "m_" prefix.
4271
4272 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
4273
4274         [BZ #592]
4275         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
4276         undefine "ret" macro.  Add __libm_error_support hidden definitions.
4277
4278         [BZ #592]
4279         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
4280         missing portion of copyright statement.
4281         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
4282         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
4283
4284         [BZ #592]
4285         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
4286         missing portion of copyright statement.
4287         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
4288         (__ieee754_gamma): Likewise.
4289         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
4290         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
4291
4292 2004-12-09  H.J. Lu <hjl@lucon.org>
4293
4294         [BZ #592]
4295         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
4296         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
4297         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
4298         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
4299         * sysdeps/ia64/fpu/e_expl.S: Likewise.
4300         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
4301
4302 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
4303
4304         [BZ #592]
4305         * sysdeps/ia64/fpu/README: New file.
4306         * sysdeps/ia64/fpu/gen_import_file_list: New file.
4307         * sysdeps/ia64/fpu/import_check: Likewise.
4308         * sysdeps/ia64/fpu/import_diffs: Likewise.
4309         * sysdeps/ia64/fpu/import_file.awk: Likewise.
4310         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
4311         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
4312
4313         [BZ #592]
4314         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
4315         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4316         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4317         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4318         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4319         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4320         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4321         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4322         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4323         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4324         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4325         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4326         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4327         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4328         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4329         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4330         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4331         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4332         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4333         * sysdeps/ia64/fpu/e_log.S: Likewise.
4334         * sysdeps/ia64/fpu/e_log2.S: Likewise.
4335         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
4336         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
4337         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4338         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4339         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4340         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4341         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4342         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4343         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4344         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4345         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4346         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4347         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4348         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4349         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4350         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4351         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4352         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4353         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4354         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
4355         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4356         * sysdeps/ia64/fpu/s_atan.S: Likewise.
4357         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
4358         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
4359         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
4360         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
4361         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
4362         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
4363         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
4364         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
4365         * sysdeps/ia64/fpu/s_cos.S: Likewise.
4366         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
4367         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4368         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
4369         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
4370         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
4371         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
4372         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
4373         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
4374         * sysdeps/ia64/fpu/s_floor.S: Likewise.
4375         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
4376         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
4377         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
4378         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
4379         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4380         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4381         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4382         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4383         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4384         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4385         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4386         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4387         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4388         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4389         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4390         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4391         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4392         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4393         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4394         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4395         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4396         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4397         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4398         * sysdeps/ia64/fpu/s_round.S: Likewise.
4399         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4400         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4401         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4402         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4403         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4404         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4405         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4406         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4407         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4408         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4409         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4410
4411         [BZ #592]
4412         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
4413         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
4414         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
4415         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
4416         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
4417         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
4418         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
4419         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
4420         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
4421         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4422         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
4423         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
4424         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
4425         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
4426         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
4427         * sysdeps/ia64/fpu/e_logl.S: Likewise.
4428         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
4429         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
4430         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
4431         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
4432         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
4433         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
4434         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
4435         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
4436         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
4437         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
4438         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
4439         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
4440         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
4441         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4442         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
4443         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4444         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
4445         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
4446         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
4447         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
4448         * sysdeps/ia64/fpu/s_erf.S: Likewise.
4449         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
4450         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
4451         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
4452         * sysdeps/ia64/fpu/s_erff.S: Likewise.
4453         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
4454         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
4455         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
4456         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
4457         * sysdeps/ia64/fpu/s_fma.S: Likewise.
4458         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
4459         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
4460         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
4461         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
4462         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
4463         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
4464         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
4465         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
4466         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
4467         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
4468         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
4469         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
4470         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
4471         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
4472         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
4473         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
4474         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
4475         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
4476         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
4477         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
4478         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
4479         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
4480         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
4481         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
4482
4483         [BZ #592]
4484         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
4485         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
4486         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
4487         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
4488         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
4489         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
4490         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
4491         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
4492         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
4493         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
4494         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
4495         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
4496         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
4497         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
4498         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
4499         * sysdeps/ia64/fpu/w_expl.c: Likewise.
4500         * sysdeps/ia64/fpu/e_expl.S: Likewise.
4501         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
4502         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
4503         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
4504         * sysdeps/ia64/fpu/w_log2.c: Likewise.
4505         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
4506         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
4507         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
4508         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
4509         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
4510
4511         [BZ #592]
4512         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
4513         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4514         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4515         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4516         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4517         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4518         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4519
4520         [BZ #592]
4521         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
4522         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
4523         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
4524
4525         [BZ #592]
4526         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
4527
4528         [BZ #592]
4529         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
4530         alias for use by libm_error.c
4531
4532         [BZ #592]
4533         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
4534         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
4535         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
4536         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
4537         libm_scalbn{,f,l}, libm_scalblnf.
4538         (sysdep_routines): Remove libm_frexp4{,f,l}.
4539         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
4540         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
4541         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
4542         -DSIZE_LONG_LONG_INT_64.
4543
4544 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
4545
4546         [BZ #729]
4547         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
4548         l_text_end are set for a VDSO with a single PT_LOAD entry.
4549
4550 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
4551
4552         [BZ #730]
4553         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
4554         invalid to disable optimizations in fileops which won't work here.
4555         (_IO_cookie_jumps): Use it.
4556         (_IO_old_cookie_jumps): Likewise.
4557         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
4558         not the return value.
4559         * stdio-common/Makefile (tests): Add tst-fmemopen2.
4560         * stdio-common/tst-fmemopen2.c: New file.
4561
4562         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
4563
4564 2005-01-05  Roland McGrath  <roland@redhat.com>
4565
4566         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
4567         * sysdeps/i386/configure.in: ... here.  New file.
4568
4569 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
4570
4571         [BZ #727]
4572         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
4573         initialize __environ again.
4574         * stdlib/Makefile: Add rules to build and run tst-putenv.
4575         * stdlib/tst-putenv.c: New file.
4576         * stdlib/tst-putenvmod.c: New file.
4577
4578         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
4579         define unnecessary wrappers or aliases of static functions.
4580
4581 2005-01-03  Andreas Jaeger  <aj@suse.de>
4582
4583         * csu/Makefile (generated): Add start.os and start.ob.
4584
4585         * elf/Makefile (tests): Change rule for tst-pie1 so that make
4586         clean works.
4587
4588 2004-12-29  Roland McGrath  <roland@redhat.com>
4589
4590         [BZ #626]
4591         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
4592         than always up; when nearest is zero, round up to one.
4593
4594 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
4595
4596         * po/es.po: Update from translation team.
4597
4598         [BZ #726]
4599         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
4600
4601 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
4602
4603         [BZ #744]
4604         * include/signal.h: Define __sigemptyset.
4605
4606 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
4607
4608         * posix/regex_internal.h (struct re_dfastate_t): Make
4609         word_trtable a pointer to the 512-item transition table.
4610         * posix/regexec.c (build_trtable): Fill in either state->trtable
4611         or state->word_trtable.  Return a boolean indicating success.
4612         (transit_state): Expect state->trtable to be a 256-item
4613         transition table.  Reorganize code to have less tests in
4614         the common case, and to save an indentation level.
4615         * posix/regex_internal.c (free_state): Free word_trtable.
4616
4617 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
4618
4619         [BZ #723]
4620         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
4621         calling fn is 16 byte aligned.
4622         * sysdeps/i386/tst-stack-align.h: New file.
4623
4624         [BZ #725]
4625         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
4626         (ecvt_r): Special case denormals.
4627         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
4628         * misc/tst-efgcvt.c: Include float.h.
4629         (ecvt_tests): Add 2 new tests.
4630
4631 2004-12-20  Roland McGrath  <roland@frob.com>
4632
4633         * version.h (RELEASE, VERSION): development, 2.3.90
4634         * include/features.h (__GLIBC_MINOR__): Now 4.
4635
4636
4637 See ChangeLog.15 for earlier changes.