1 2002-07-10 Ulrich Drepper <drepper@redhat.com>
3 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
6 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
7 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
9 * Versions.def (libthread_db): Add GLIBC_2.3.
11 2002-07-09 Jakub Jelinek <jakub@redhat.com>
13 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
14 new stream if possible.
15 * libio/freopen64.c (freopen64): Likewise.
16 * libio/Makefile (tests): Add tst-freopen.
17 * libio/tst-freopen.c: New file.
19 2002-07-03 Jakub Jelinek <jakub@redhat.com>
21 * libio/stdio.h (obstack_printf): Add format attribute.
22 (obstack_vprintf): Likewise.
24 2002-07-04 Jakub Jelinek <jakub@redhat.com>
26 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
27 resp. 16 bytes on 32-bit resp. 64-bit platforms.
28 (re_charset_t, re_string_t): Reorder structure members for 64-bit
31 2002-07-04 Jakub Jelinek <jakub@redhat.com>
33 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
36 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
38 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
39 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
41 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
42 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
43 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
44 nodes which can epsilon transit.
45 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
46 to IS_EPSILON_NODE macro.
47 * posix/regexec.c (update_regs): New function to update registers
48 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
49 (proceed_next_node): Use the entities of the nodes to determine
50 whether the node can transit to.
51 (set_regs): Use update_regs function to update registers.
53 2002-07-03 Jakub Jelinek <jakub@redhat.com>
55 * posix/bug-regex4.c (main): Remove duplicate setlocale.
56 * posix/bug-regex6.c: New file.
57 * posix/Makefile (tests): Add bug-regex6.
58 (bug-regex6-ENV): Set LOCPATH.
60 2002-07-10 Ulrich Drepper <drepper@redhat.com>
62 * Versions.def [libpthread]: Add GLIBC_2.2.6.
63 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
65 2002-07-06 Bruno Haible <bruno@clisp.org>
67 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
69 2002-07-06 Bruno Haible <bruno@clisp.org>
71 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
74 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
76 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
78 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
80 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
82 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
83 * sysdeps/generic/bits/ustat.h: Likewise.
85 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
87 2002-07-08 Andreas Jaeger <aj@suse.de>
89 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
91 2002-07-08 Andreas Jaeger <aj@suse.de>
93 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
95 2002-07-06 Andreas Jaeger <aj@suse.de>
97 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
98 * sysdeps/x86_64/fpu/s_copysign.S: New.
99 * sysdeps/x86_64/fpu/s_copysignf.S: New.
100 * sysdeps/x86_64/fpu/s_copysignl.S: New.
101 * sysdeps/x86_64/fpu/s_finitel.S: New.
102 * sysdeps/x86_64/fpu/s_fmax.S: New.
103 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
104 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
105 * sysdeps/x86_64/fpu/s_fmin.S: New.
106 * sysdeps/x86_64/fpu/s_fminf.S: New.
107 * sysdeps/x86_64/fpu/s_fminl.S: New.
109 2002-06-05 Brian Youmans <3diff@gnu.org>
111 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
112 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
113 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
114 * sysdeps/ia64/fpu/e_asin.S: Likewise.
115 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
116 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
117 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
118 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
119 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
120 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
121 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
122 * sysdeps/ia64/fpu/e_exp.S: Likewise.
123 * sysdeps/ia64/fpu/e_expf.S: Likewise.
124 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
125 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
126 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
127 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
128 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
129 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
130 * sysdeps/ia64/fpu/e_log.S: Likewise.
131 * sysdeps/ia64/fpu/e_logf.S: Likewise.
132 * sysdeps/ia64/fpu/e_pow.S: Likewise.
133 * sysdeps/ia64/fpu/e_powf.S: Likewise.
134 * sysdeps/ia64/fpu/e_powl.S: Likewise.
135 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
136 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
137 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
138 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
139 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
140 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
141 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
142 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
143 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
144 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
145 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
146 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
147 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
148 * sysdeps/ia64/fpu/libm_error.c: Likewise.
149 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
150 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
151 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
152 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
153 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
154 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
155 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
156 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
157 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
158 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
159 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
160 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
161 * sysdeps/ia64/fpu/s_logb.S: Likewise.
162 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
163 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
164 * sysdeps/ia64/fpu/s_modf.S: Likewise.
165 * sysdeps/ia64/fpu/s_modff.S: Likewise.
166 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
167 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
168 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
169 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
170 * sysdeps/ia64/fpu/s_rint.S: Likewise.
171 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
172 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
173 * sysdeps/ia64/fpu/s_round.S: Likewise.
174 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
175 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
176 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
177 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
178 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
179 * sysdeps/ia64/fpu/s_significand.S: Likewise.
180 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
181 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
182 * sysdeps/ia64/fpu/s_tan.S: Likewise.
183 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
184 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
185 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
186 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
187 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
188 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
189 reflect IBM donation of math library to FSF
190 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
191 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
192 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
193 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
194 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
195 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
196 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
197 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
198 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
199 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
200 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
201 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
202 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
203 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
204 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
205 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
206 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
207 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
208 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
209 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
210 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
211 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
212 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
213 * sysdeps/vax/__longjmp.c: Likewise.
214 * sysdeps/vax/setjmp.c: Likewise.
215 * libio/filedoalloc.c: Fixed BSD copying permission notice to
216 remove advertising clause
217 * sysdeps/vax/htonl.s: Likewise.
218 * sysdeps/vax/htons.s: Likewise.
219 * libio/wfiledoalloc.c: Likewise.
220 * stdlib/random.c: Likewise.
221 * stdlib/random_r.c: Likewise.
222 * sysdeps/mach/sys/reboot.h: Likewise.
223 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
224 * sysdeps/posix/getaddrinfo.c: Likewise.
225 * sunrpc/des_impl.c: Updated license permission notice to Lesser
226 GPL and corrected pointer to point to the correct license.
228 2002-07-04 Andreas Jaeger <aj@suse.de>
230 * scripts/config.guess: New upstream version.
231 * scripts/config.sub: Likewise.
233 2002-07-02 Andreas Schwab <schwab@suse.de>
235 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
236 in parallel to bumping up the buffer pointer.
238 2002-07-01 Jakub Jelinek <jakub@redhat.com>
240 * math/libm-test.inc (acos_test): Add missing L suffix for
242 (cpow_test): Likewise.
243 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
244 error for acos (0.0625).
246 2002-06-30 Ulrich Drepper <drepper@redhat.com>
248 * locale/iso-639.def: Add entry for Ganda.
249 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
251 (address_finish): Handle entries with two letter ISO 639 code.
253 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
254 directory if it existed before.
255 * iconv/iconvconfig.c: Implement --prefix option.
257 * math/libm-test.inc (cexp_test): Add missing L suffix for
258 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
259 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
262 2002-05-29 H.J. Lu <hjl@gnu.org>
264 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
267 2002-05-28 H.J. Lu <hjl@gnu.org>
269 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
270 are not dlopened on the dependency list of a dlopened object.
272 2002-06-30 Ulrich Drepper <drepper@redhat.com>
274 * elf/dl-lookup.c (add_dependency): It is not necessary to add
275 dependencies if they are created between objects which are created
276 while processing RTLD_NOW for objects loaded as part of the same
279 2002-06-14 H.J. Lu <hjl@gnu.org>
281 * elf/Makefile (tests): Add circleload1.
282 (modules-names): Add circlemod1, circlemod2, circlemod3,
283 circlemod1a, circlemod2a and circlemod3a.
284 ($(objpfx)circleload1): New target.
285 ($(objpfx)circleload1.out): Likewise.
286 ($(objpfx)circlemod1.so): Likewise.
287 ($(objpfx)circlemod2.so): Likewise.
288 ($(objpfx)circlemod1a.so): Likewise.
289 ($(objpfx)circlemod2a.so): Likewise.
290 * elf/circleload1.c: New file.
291 * elf/circlemod1.c: New file.
292 * elf/circlemod1a.c: New file.
293 * elf/circlemod2.c: New file.
294 * elf/circlemod2a.c: New file.
295 * elf/circlemod3.c: New file.
296 * elf/circlemod3a.c: New file.
298 2002-06-18 Amos Waterland <apw@us.ibm.com>
300 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
302 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
303 add check for fd not open for writing.
305 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
306 completed element(s) and do not suspend thread if so. Patch
307 heavily modified by drepper.
309 * rt/tst-aio7.c: New file. Regression test for problems which the
310 above three changes fix.
311 * rt/Makefile (tests): Add tst-aio7.
313 2002-06-29 Ulrich Drepper <drepper@redhat.com>
315 * rt/tst-aio6.c: Fix comment.
317 * catgets/gencat.c (read_input_file): Handle more than one slash
318 at end of line correctly [PR libc/3926].
319 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
321 * catgets/sample.SJIS: Add test case for above bug.
322 * catgets/test-gencat.c: Adjust test code.
323 * catgets/test-gencat.sh: Adjust expected results.
325 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
326 to skip relative relocations.
327 Patch by Geoff Keating <geoffk@redhat.com>.
329 2002-05-26 Bruno Haible <bruno@clisp.org>
331 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
332 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
334 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
335 STANDARD_FROM_LOOP_ERR_HANDLER.
336 (utf8_internal_loop): Likewise.
337 (ucs2_internal_loop): Likewise.
338 (internal_ucs2_loop): Perform error handling like in
339 STANDARD_FROM_LOOP_ERR_HANDLER.
340 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
341 in STANDARD_FROM_LOOP_ERR_HANDLER.
342 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
344 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
345 in STANDARD_FROM_LOOP_ERR_HANDLER.
346 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
348 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
349 in STANDARD_FROM_LOOP_ERR_HANDLER.
350 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
352 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
353 STANDARD_FROM_LOOP_ERR_HANDLER.
354 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
355 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
356 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
357 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
358 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
359 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
360 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
361 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
362 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
363 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
364 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
365 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
366 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
367 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
368 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
369 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
370 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
371 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
372 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
373 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
374 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
375 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
376 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
377 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
378 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
379 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
380 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
381 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
382 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
383 an error, still set result = __GCONV_ILLEGAL_INPUT.
384 (BODY for TO_LOOP): Likewise.
385 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
386 STANDARD_FROM_LOOP_ERR_HANDLER.
387 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
388 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
389 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
391 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
392 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
393 STANDARD_FROM_LOOP_ERR_HANDLER.
394 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
395 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
396 STANDARD_FROM_LOOP_ERR_HANDLER.
397 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
398 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
399 STANDARD_FROM_LOOP_ERR_HANDLER.
400 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
401 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
402 STANDARD_FROM_LOOP_ERR_HANDLER.
403 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
404 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
405 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
407 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
408 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
409 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
410 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
412 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
414 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
415 labels in assembler instructions.
417 2002-06-25 Ulrich Drepper <drepper@redhat.com>
419 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
420 not enough content is available.
421 * libio/tst-eof.c: New file.
422 * libio/Makefile (tests): Add tst-eof.
424 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
426 * libio/tst-atime.c: New file.
427 * libio/Makefile (tests): Add tst-atime.
429 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
430 handling of overly long words.
432 2002-06-25 Andreas Jaeger <aj@suse.de>
434 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
435 to not use 32-bit pc relative relocations.
436 (elf_machine_dynamic): Likewise.
438 2002-06-21 Ulrich Drepper <drepper@redhat.com>
440 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
441 (__GETDENTS): Check for failed getdents64 syscall.
442 * dirent/Makefile (tests): Add bug-readdir1.
443 * dirent/bug-readdir1.c: New file.
445 2002-06-17 Jakub Jelinek <jakub@redhat.com>
447 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
449 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
450 code. Print TLS modid and offset for modules containing PT_TLS
453 2002-06-09 Jakub Jelinek <jakub@redhat.com>
455 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
456 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
457 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
458 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
460 2002-06-07 Jakub Jelinek <jakub@redhat.com>
462 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
463 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
464 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
465 * nss/getXXent_r.c (NEW, NEW1): Define.
466 (NEW (REENTRANT_GETNAME)): Strong alias to
467 INTERNAL (REENTRANT_GETNAME).
468 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
470 2002-06-21 Ulrich Drepper <drepper@redhat.com>
472 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
473 (_IO_file_jumps_mmap): Use it.
474 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
475 * libio/libioP.h: Remove _IO_wdefault_setbuf and
476 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
478 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
479 (_IO_wfile_jumps_mmap): Don't use it anymore.
480 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
481 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
483 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
484 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
485 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
487 2002-06-05 Jakub Jelinek <jakub@redhat.com>
489 * libio/Makefile (tests): Add tst-mmap-setvbuf.
490 * libio/tst-mmap-setvbuf.c: New test.
492 2002-06-21 Andreas Jaeger <aj@suse.de>
494 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
496 2002-06-18 Jakub Jelinek <jakub@redhat.com>
498 * include/unistd.h (__fork_internal): Remove.
499 (__fork): Don't define to __fork_internal.
500 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
501 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
502 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
503 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
504 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
506 2002-06-20 Ulrich Drepper <drepper@redhat.com>
508 * po/hr.po: New file.
510 2002-06-11 Wolfram Gloger <wg@malloc.de>
512 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
513 Reported by Michael Meissner <meissner@redhat.com>.
515 2002-06-20 Ulrich Drepper <drepper@redhat.com>
517 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
518 Patch by Hans Boehm <hans_boehm@hp.com>.
520 2002-06-20 Andreas Jaeger <aj@suse.de>
522 * math/libm-test.inc: Use exact values as input parameters,
523 compute output parameters with 36 digits for 128-bit long doubles.
524 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
525 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
526 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
528 2002-06-13 Stephen L Moshier <steve@moshier.net>
530 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
531 argument or result is subnormal.
533 2002-06-19 Ulrich Drepper <drepper@redhat.com>
535 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
537 * sysdeps/i386/fpu/s_remquof.S: Likewise.
538 * sysdeps/i386/fpu/s_remquol.S: Likewise.
540 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
542 2002-06-17 David Mosberger <davidm@hpl.hp.com>
544 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
545 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
546 Reported by Peter A. Buhr.
548 2002-06-15 Roland McGrath <roland@frob.com>
550 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
553 * sysdeps/mach/hurd/getcwd.c
554 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
556 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
557 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
559 * sysdeps/alpha/divrem.h: Use local label instead of global one for
560 jump to local subroutine.
562 2002-06-14 Roland McGrath <roland@frob.com>
564 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
565 * sysdeps/mach/hurd/Makeconfig: ... here.
567 2002-06-13 Andreas Schwab <schwab@suse.de>
569 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
570 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
571 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
573 2002-06-13 Roland McGrath <roland@frob.com>
575 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
576 * hurd/hurdstartup.c (_hurd_startup): Likewise.
577 Use intptr_t instead of int for argc in stack layout.
578 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
579 (_dl_init_first): Likewise.
580 (_hurd_stack_setup): Likewise.
582 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
584 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
585 argument to pfinet_siocgifconf RPC.
587 2002-06-13 Andreas Schwab <schwab@suse.de>
589 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
592 2002-06-12 Roland McGrath <roland@frob.com>
594 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
596 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
597 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
599 2002-06-11 Roland McGrath <roland@frob.com>
601 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
602 file on [!RTLD_STAT64].
603 * sysdeps/mach/hurd/fxstat64.c: Likewise.
605 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
606 (__fdopen): Use INTUSE.
607 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
609 * stdio-common/tmpfile64.c: File removed.
610 * sysdeps/generic/tmpfile64.c: New file.
611 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
612 if not already defined.
613 (tmpfile): Use it in place of __GT_FILE.
615 * include/unistd.h: Declare __chown_internal.
617 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
618 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
620 2002-06-09 Roland McGrath <roland@frob.com>
622 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
623 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
624 value of HURD_INTERFACE_VERSION >= 20020609.
625 * sysdeps/mach/hurd/configure: Regenerated.
626 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
627 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
628 convert a struct stat64 into a struct stat and return 0 or -1
629 with errno set to EOVERFLOW.
630 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
631 for struct statfs64 to struct statfs.
632 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
633 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
634 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
635 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
636 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
637 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
638 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
639 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
640 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
641 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
642 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
643 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
644 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
645 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
646 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
647 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
648 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
649 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
650 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
651 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
652 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
653 Use struct stat64 for io_stat argument.
654 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
655 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
657 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
658 * hurd/fd-write.c (_hurd_fd_write): Likewise.
659 * hurd/hurd/fd.h: Update decls.
660 * sysdeps/mach/hurd/getcwd.c
661 (_hurd_canonicalize_directory_name_internal): Use ino64_t
663 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
664 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
665 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
666 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
668 2002-06-08 Roland McGrath <roland@frob.com>
670 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
671 instead of unsigned long int for __allocation and __size members.
673 2002-06-09 Jakub Jelinek <jakub@redhat.com>
675 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
676 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
677 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
678 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
680 2002-06-07 Roland McGrath <roland@frob.com>
682 * sysdeps/mach/hurd/bits/environments.h: File removed.
684 2002-06-07 Jakub Jelinek <jakub@redhat.com>
686 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
687 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
688 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
689 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
690 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
691 (sendfile64): Likewise.
692 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
693 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
694 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
696 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
698 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
701 2002-06-04 Bruno Haible <bruno@clisp.org>
703 * sysdeps/cris/stackinfo.h: New file.
705 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
706 to an integer type before performing bit operations on it.
708 2002-06-05 Roland McGrath <roland@frob.com>
710 * sysdeps/generic/sendfile.c: Include <errno.h>.
711 * sysdeps/generic/sendfile64.c: Likewise.
713 * io/Makefile (routines): Add sendfile and sendfile64.
714 (headers): Add sys/sendfile.h to the list.
715 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
716 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
717 * io/sys/sendfile.h: ... here.
718 * sysdeps/generic/sendfile.c: New file.
719 * sysdeps/generic/sendfile64.c: New file.
721 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
722 Move sendfile, sendfile64 to ...
723 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
724 * sysdeps/mach/hurd/sendfile.c: New file.
725 * sysdeps/mach/hurd/sendfile64.c: New file.
727 * sysdeps/mach/nanosleep.c: New file.
729 2002-06-04 Roland McGrath <roland@frob.com>
731 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
732 * sysdeps/alpha/elf/configure: New file (generated).
734 2002-06-02 Roland McGrath <roland@frob.com>
736 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
738 2002-06-01 Roland McGrath <roland@frob.com>
740 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
741 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
743 2002-05-19 Ulrich Drepper <drepper@redhat.com>
745 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
747 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
748 Remove nstimes setting.
749 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
750 * resolv/res_send.c (res_nsend): Don't close unconditionally if
751 there is mix of IPv6 and IPv4 nameservers.
752 Use nsmap array to find free slots and preserve nameserver ordering.
755 2002-05-30 Ulrich Drepper <drepper@redhat.com>
757 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
758 use this header with LFS.
760 * po/sk.po: Update from translation team.
762 2002-05-28 Andreas Schwab <schwab@suse.de>
764 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
765 message when finding object of wrong class.
767 2002-05-28 Jakub Jelinek <jakub@redhat.com>
769 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
770 Patch by <radu@netsoft.ro>.
772 2002-05-30 Ulrich Drepper <drepper@redhat.com>
774 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
776 * sysdeps/unix/sysv/linux/readahead.c: New file.
777 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
778 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
779 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
780 Add sendfile64 alias to sendfile syscall.
781 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
782 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
783 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
784 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
787 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
788 special section for PIC register loading.
789 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
791 * config.h.in: Define HAVE_HIDDEN.
792 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
794 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
796 2002-05-28 Roland McGrath <roland@frob.com>
798 * sysdeps/mach/alpha/setfpucw.c: New file.
800 2002-05-26 Roland McGrath <roland@frob.com>
802 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
803 Use integer_t instead of int for IOC_VOID case.
805 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
807 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
809 2002-05-26 Bruno Haible <bruno@clisp.org>
811 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
812 end of the ISO-8859-7 from idx table.
814 2002-05-27 Ulrich Drepper <drepper@redhat.com>
816 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
818 2002-05-24 David S. Miller <davem@redhat.com>
820 * string/bits/string2.h (memset): Do not try to optimize when
821 not _STRING_ARCH_unaligned if GCC will do the right thing.
823 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
825 * posix/regex.c: Define `inline' as a macro into nothing for the
826 compilers which lack the keyword.
827 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
828 for the compatibility of gawk.
829 * posix/regcomp.c: Add fake implementation of isblank() for the
830 environments which lack the function.
831 Don't use free_charset() in case of non-i18n envs.
832 (build_range_exp): Don't use i18n related code in case of non-i18n
834 (build_collating_symbol): Likewise.
835 (build_equiv_class): Likewise.
836 (build_charclass): Likewise.
837 (re_compile_fastmap_iter): Likewise.
838 (parse_bracket_exp): Likewise.
839 (build_word_op): Likewise.
840 (regfree): Don't use free_charset() in case of non-i18n envs.
841 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
842 re_token_type_t in case of non-i18n envs.
843 Don't define re_charset_t in case of non-i18n envs.
844 Change the type of wcs of re_string_t from wchar_t to wint_t,
845 since we store also WEOF.
846 * posix/regex_internal.c: (re_string_realloc_buffers): Change
847 the type of wcs of re_string_t from wchar_t to wint_t.
848 (re_string_reconstruct): Likewise.
849 (create_ci_newstate): Don't use i18n related code in case of
851 (create_cd_newstate): Likewise.
853 2002-05-24 Ulrich Drepper <drepper@redhat.com>
855 * iconv/loop.c: Fix typo.
857 2002-05-23 Jakub Jelinek <jakub@redhat.com>
859 * inet/ether_line.c (ether_line): Fix a typo causing only
860 lower 4 bits of each ethernet address byte being assigned.
861 Don't modify what line points to.
862 * inet/tst-ether_aton.c (main): Add ether_line tests.
864 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
866 * manual/filesys.texi: Don't make readlink example leak memory
869 2002-05-20 Ulrich Drepper <drepper@redhat.com>
871 * iconv/loop.c: Fix condition for defining unaligned loop. Add
872 some more security checks.
874 2002-05-17 David S. Miller <davem@redhat.com>
876 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
878 2002-05-16 David S. Miller <davem@redhat.com>
880 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
881 (elf_machine_dynamic): Use it to force PIC register to be loaded.
882 (elf_machine_load_address): Likewise.
883 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
885 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
886 is unaligned, do not forget to fully initialize %g1 magic value.
888 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
889 register definitions and provide 32-bit variants of structures
890 during 64-bit builds.
892 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
893 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
894 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
895 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
896 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
897 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
898 Do not clear implicit one bit here, it must be done post-rounding.
899 Only pad to the left using left shift if value uses less than the
900 available fractional bits.
902 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
904 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
905 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
906 (shared-only-routines): Likewise.
907 * sysdeps/powerpc/libgcc-compat.c: New file.
908 * sysdeps/wordsize-32/cmpdi2.c: Removed.
909 * sysdeps/wordsize-32/fixdfdi.c: Removed.
910 * sysdeps/wordsize-32/fixsfdi.c: Removed.
911 * sysdeps/wordsize-32/shdi3.c: Removed.
913 2002-05-16 Bruno Haible <bruno@clisp.org>
915 * MakeTAGS (libc.pot): Don't sort the output.
916 * po/header.pot: Update to match xgettext 0.11 output.
918 2002-05-16 Bruno Haible <bruno@clisp.org>
920 * MakeTAGS (subdirs): Remove duplicates.
922 2002-05-19 Ulrich Drepper <drepper@redhat.com>
924 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
925 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
928 2002-05-19 Andreas Jaeger <aj@suse.de>
930 * sysdeps/unix/sysv/linux/configure.in: Warn against an
931 installation in /usr/local.
933 2002-05-16 Bruno Haible <bruno@clisp.org>
935 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
936 string as argument of #error.
938 2002-05-15 Ulrich Drepper <drepper@redhat.com>
940 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
941 don't define static. Remove old __realpath function. TC1 of
942 POSIX 2001 will allow the second parameter to be NULL.
943 * stdlib/test-canon.c: Comment out test for NULL as second
944 parameter of realpath.
946 * time/offtime.c (__offtime): Set errno if overflow is detected.
948 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
949 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
952 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
955 2002-05-15 Roland McGrath <roland@frob.com>
957 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
959 2002-05-12 Bruno Haible <bruno@clisp.org>
961 * iconvdata/testdata/EUC-JISX0213: New file.
962 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
963 * iconvdata/testdata/SHIFT_JISX0213: New file.
964 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
965 * iconvdata/testdata/ISO-2022-JP-3: New file.
966 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
967 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
968 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
969 contains comments indicating precomposed characters.
971 2002-04-21 Bruno Haible <bruno@clisp.org>
973 * iconvdata/iso-2022-jp-3.c: New file.
974 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
975 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
976 (LDFLAGS-ISO-2022-JP-3.so): New variable.
977 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
978 (distribute): Add iso-2022-jp-3.c.
980 2002-05-12 Bruno Haible <bruno@clisp.org>
982 * iconvdata/tst-table-to.c (main): Restore handling of
983 transliterations, broken by last patch.
985 2002-05-12 Bruno Haible <bruno@clisp.org>
987 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
989 2002-05-12 Bruno Haible <bruno@clisp.org>
991 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
992 when there is not enough room in the output buffer.
993 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
995 2002-04-20 Bruno Haible <bruno@clisp.org>
997 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
999 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1000 Also make this macro work if FROM_DIRECTION evaluates to 0.
1001 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1002 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
1003 of consume_incomplete.
1004 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1005 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
1007 * iconvdata/cp1258.c: Likewise.
1008 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1009 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
1011 * iconvdata/ibm933.c: Likewise.
1012 * iconvdata/ibm935.c: Likewise.
1013 * iconvdata/ibm937.c: Likewise.
1014 * iconvdata/ibm939.c: Likewise.
1015 * iconvdata/iso-2022-cn.c: Define
1016 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1017 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
1018 * iconvdata/iso-2022-cn-ext.c: Likewise.
1019 * iconvdata/iso-2022-jp.c: Define
1020 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1021 {MIN,MAX}_NEEDED_{FROM,TO}.
1022 * iconvdata/tcvn5712-1.c: Define
1023 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1024 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
1025 * iconvdata/euc-jisx0213.c: Define
1026 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1027 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
1028 * iconvdata/shift_jisx0213.c: Likewise.
1030 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1032 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
1033 shdi3, fixdfdi, fixsfdi in csu dir.
1034 (shared-only-routines): Likewise.
1035 * sysdeps/wordsize-32/cmpdi2.c: New file.
1036 * sysdeps/wordsize-32/shdi3.c: New file.
1037 * sysdeps/wordsize-32/fixdfdi.c: New file.
1038 * sysdeps/wordsize-32/fixsfdi.c: New file.
1039 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
1040 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
1041 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
1043 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
1044 Only use va_arg if the argument will be used [PR libc/3259].
1046 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
1048 * catgets/catgets.c (catopen): Free buffer if internal catalog
1051 2002-05-14 Ulrich Drepper <drepper@redhat.com>
1053 * debug/xtrace.sh: Make more robust. For realtime tracking use
1054 non-buffering methods.
1055 * debug/pcprofiledump.c: Implement -u option.
1056 Patch by Roger Luethi <rl@hellgate.ch>.
1058 2002-05-11 Jakub Jelinek <jakub@redhat.com>
1060 * include/netinet/in.h (bindresvport_internal): Add prototype.
1061 * include/rpc/auth.h (authunix_create_internal,
1062 authunix_create_default_internal, authnone_create_internal,
1063 authdes_pk_create_internal): Add prototypes.
1064 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
1065 clntudp_create_internal, clntudp_bufcreate_internal,
1066 clntunix_create_internal): Add prototypes.
1067 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
1068 svc_getreq_internal, svc_getreq_common_internal,
1069 svc_getreqset_internal, svc_getreq_poll_internal,
1070 svc_register_internal, svc_unregister_internal,
1071 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
1072 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
1073 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
1074 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
1075 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
1076 * inet/rcmd.c (rcmd_af): Use __listen.
1077 (rresvport_af): Use __bind.
1078 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
1079 authunix_create, authunix_create_default, authnone_create,
1080 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
1081 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
1082 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
1083 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
1084 _authenticate, add INTDEF after such function definitions.
1085 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
1086 __setsockopt, __getsockname instead of non-__ variants.
1087 * sunrpc/pmap_rmt.c: Likewise.
1088 * sunrpc/rtime.c: Likewise.
1089 * sunrpc/svc_udp.c: Likewise.
1090 * sunrpc/clnt_unix.c: Likewise.
1091 * sunrpc/svc_unix.c: Likewise.
1092 * sunrpc/bindrsvprt.c: Likewise.
1093 * sunrpc/svc_tcp.c: Likewise.
1094 * sunrpc/auth_none.c: Likewise.
1095 * sunrpc/clnt_raw.c: Likewise.
1096 * sunrpc/clnt_tcp.c: Likewise.
1097 * sunrpc/auth_unix.c: Likewise.
1098 * sunrpc/key_call.c: Likewise.
1099 * sunrpc/clnt_gen.c: Likewise.
1100 * sunrpc/pm_getmaps.c: Likewise.
1101 * sunrpc/clnt_simp.c: Likewise.
1102 * sunrpc/pmap_clnt.c: Likewise.
1103 * sunrpc/svc_run.c: Likewise.
1104 * sunrpc/svc.c: Likewise.
1105 * sunrpc/svc_simple.c: Likewise.
1106 * sunrpc/pm_getport.c: Likewise.
1107 * sunrpc/auth_des.c: Likewise.
1108 * sunrpc/svc_auth.c: Likewise.
1109 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
1110 __register_frame_info_table_bases, __deregister_frame_info_bases):
1112 (__register_frame_info_bases_internal,
1113 __register_frame_info_table_bases_internal,
1114 __deregister_frame_info_bases_internal): Add prototypes.
1115 (__register_frame_info, __register_frame): Use INTUSE in call to
1116 __register_frame_info_bases.
1117 (__register_frame_info_table): Similarly.
1118 (__deregister_frame_info, __deregister_frame): Similarly.
1119 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
1120 sendto as weak alias.
1121 * sysdeps/mach/hurd/sendto.c: Likewise.
1122 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
1123 recvfrom as weak alias.
1124 * sysdeps/mach/hurd/recvfrom.c: Likewise.
1125 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
1126 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
1127 recvmsg as weak alias.
1128 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
1129 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
1130 sendmsg as weak alias.
1131 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
1132 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
1133 setsockopt, add setsockopt as weak alias.
1134 * sysdeps/mach/hurd/setsockopt.c: Likewise.
1135 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
1137 * sysdeps/mach/hurd/bind.c: Likewise.
1138 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
1140 * sysdeps/mach/hurd/listen.c: Likewise.
1141 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
1142 getsockname, add getsockname as weak alias.
1143 * sysdeps/mach/hurd/getsockname.c: Likewise.
1144 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
1145 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
1146 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
1147 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
1148 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
1149 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
1151 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1152 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1153 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1154 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1155 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
1156 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
1157 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
1158 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
1159 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
1160 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
1161 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
1162 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
1164 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1166 * locale/programs/localedef.h (show_archive_content): Add verbose
1168 * locale/programs/localedef.c (main): Adjust caller.
1169 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
1170 (nameentcmp, dataentcmp): New functions.
1172 (show_archive_content): Print verbose listing with --list-archive -v.
1174 2002-05-14 Ulrich Drepper <drepper@redhat.com>
1176 * locale/programs/locarchive.c (open_archive): Take extra argument
1177 readonly. If true open file with O_RDONLY and don't create the
1178 archive if it doesn't exist.
1180 (close_archive): Don't do anything if fd element is -1.
1181 * locale/programs/localedef.h (open_archive): Adjust prototype.
1182 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
1185 * malloc/malloc.c (__posix_memalign): Correct check for size of
1186 alignment value [PR libc/3444].
1188 * include/stdio.h: Remove references to old stdio implementation.
1190 * libio/Makefile (bug-ungetwc2-ENV): Define.
1192 2002-05-13 Roland McGrath <roland@frob.com>
1194 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
1196 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
1198 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
1200 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1201 Allocate three, not two, more than LEN when appending '/.'.
1202 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
1203 if NAME ends with '/.' if it is shorter than 2 chars.
1205 2002-05-12 Roland McGrath <roland@frob.com>
1207 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
1208 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
1210 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
1211 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
1213 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1215 * sysdeps/ia64/Makefile: Remove extra endif.
1216 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
1218 2002-05-10 Andreas Schwab <schwab@suse.de>
1220 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
1222 2002-05-09 Andreas Jaeger <aj@suse.de>
1224 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
1225 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
1226 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
1228 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
1229 * sysdeps/wordsize-64/glob.c: ...here.
1230 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
1231 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
1232 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
1234 2002-05-08 Roland McGrath <roland@frob.com>
1236 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
1237 O_NOTRANS flag in "." lookup.
1239 2002-05-05 Ulrich Drepper <drepper@redhat.com>
1241 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
1243 2002-05-04 Ulrich Drepper <drepper@redhat.com>
1245 * locale/duplocale.c (__duplocale): Update special members only
1246 when allocation succeeded.
1248 2002-05-03 Roland McGrath <roland@frob.com>
1250 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
1251 we can only build libc.so.0.3(GLIBC_2.2.6) now.
1253 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1255 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
1256 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
1257 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
1258 * sysdeps/ia64/ia64libgcc.S: New file.
1260 2002-05-02 Ulrich Drepper <drepper@redhat.com>
1262 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
1264 * malloc/memusage.c: Distinguish anonymous mmap.
1266 2002-05-01 Roland McGrath <roland@frob.com>
1268 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
1269 and use INTDEF on it.
1270 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
1272 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
1274 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
1276 2002-05-01 Ulrich Drepper <drepper@redhat.com>
1278 * malloc/memusage.c: Add support for tracking mmap & friends.
1279 * malloc/memusage.sh: Implement -m/--mmap option.
1281 2002-04-30 Jakub Jelinek <jakub@redhat.com>
1283 * locale/programs/locarchive.c (create_archive): Add archivefname
1284 argument, create fname from it.
1285 (enlarge_archive): Honour output_prefix.
1286 (open_archive): Likewise.
1288 2002-04-30 Jakub Jelinek <jakub@redhat.com>
1290 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
1291 too many stpcpy macros.
1293 2002-04-26 Bruno Haible <bruno@clisp.org>
1295 * locale/programs/ld-collate.c (collate_read): Cast first argument
1298 2002-04-26 Bruno Haible <bruno@clisp.org>
1300 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
1301 __dcngettext_internal): New declarations.
1302 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
1303 attribute declarations.
1305 2002-04-30 Roland McGrath <roland@frob.com>
1307 Removed old GNU stdio implementation; GNU libio is now the only option.
1308 * configure.in: Removed --enable-libio option and @stdio@ subst var.
1309 Define USE_IN_LIBIO unconditionally.
1310 * configure: Regenerated.
1311 * Makeconfig (stdio): Set to libio by default.
1312 * config.make.in (stdio): Variable removed.
1313 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
1314 * sysdeps/unix/sysv/linux/configure: Regenerated.
1315 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
1316 * sysdeps/mach/hurd/configure: Regenerated.
1317 * stdio/.cvsignore: File removed.
1318 * stdio/Makefile: File removed.
1319 * stdio/Versions: File removed.
1320 * stdio/__fbufsize.c: File removed.
1321 * stdio/__flbf.c: File removed.
1322 * stdio/__fpending.c: File removed.
1323 * stdio/__fpurge.c: File removed.
1324 * stdio/__freadable.c: File removed.
1325 * stdio/__freading.c: File removed.
1326 * stdio/__fsetlocking.c: File removed.
1327 * stdio/__fwritable.c: File removed.
1328 * stdio/__fwriting.c: File removed.
1329 * stdio/clearerr.c: File removed.
1330 * stdio/fclose.c: File removed.
1331 * stdio/fcloseall.c: File removed.
1332 * stdio/feof.c: File removed.
1333 * stdio/ferror.c: File removed.
1334 * stdio/fflush.c: File removed.
1335 * stdio/fgetc.c: File removed.
1336 * stdio/fgetpos.c: File removed.
1337 * stdio/fgets.c: File removed.
1338 * stdio/fileno.c: File removed.
1339 * stdio/fmemopen.c: File removed.
1340 * stdio/fopen.c: File removed.
1341 * stdio/fopncook.c: File removed.
1342 * stdio/fputc.c: File removed.
1343 * stdio/fputs.c: File removed.
1344 * stdio/fread.c: File removed.
1345 * stdio/freopen.c: File removed.
1346 * stdio/fseek.c: File removed.
1347 * stdio/fsetpos.c: File removed.
1348 * stdio/ftell.c: File removed.
1349 * stdio/fwrite.c: File removed.
1350 * stdio/getc.c: File removed.
1351 * stdio/getchar.c: File removed.
1352 * stdio/getdelim.c: File removed.
1353 * stdio/gets.c: File removed.
1354 * stdio/glue.c: File removed.
1355 * stdio/internals.c: File removed.
1356 * stdio/linewrap.c: File removed.
1357 * stdio/linewrap.h: File removed.
1358 * stdio/memstream.c: File removed.
1359 * stdio/newstream.c: File removed.
1360 * stdio/obstream.c: File removed.
1361 * stdio/putc.c: File removed.
1362 * stdio/putchar.c: File removed.
1363 * stdio/puts.c: File removed.
1364 * stdio/rewind.c: File removed.
1365 * stdio/setbuf.c: File removed.
1366 * stdio/setbuffer.c: File removed.
1367 * stdio/setlinebuf.c: File removed.
1368 * stdio/setvbuf.c: File removed.
1369 * stdio/stdio.h: File removed.
1370 * stdio/ungetc.c: File removed.
1371 * stdio/vasprintf.c: File removed.
1372 * stdio/vscanf.c: File removed.
1373 * stdio/vsnprintf.c: File removed.
1374 * stdio/vsprintf.c: File removed.
1375 * stdio/vsscanf.c: File removed.
1376 * sysdeps/generic/defs.c: File removed.
1377 * sysdeps/generic/fdopen.c: File removed.
1378 * sysdeps/generic/pipestream.c: File removed.
1379 * sysdeps/generic/stdio_init.c: File removed.
1380 * sysdeps/generic/sysd-stdio.c: File removed.
1381 * sysdeps/generic/vdprintf.c: File removed.
1382 * sysdeps/mach/hurd/defs.c: File removed.
1383 * sysdeps/mach/hurd/fdopen.c: File removed.
1384 * sysdeps/mach/hurd/pipestream.c: File removed.
1385 * sysdeps/mach/hurd/stdio_init.c: File removed.
1386 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
1387 * sysdeps/mach/hurd/vdprintf.c: File removed.
1388 * sysdeps/posix/defs.c: File removed.
1389 * sysdeps/posix/fdopen.c: File removed.
1390 * sysdeps/posix/pipestream.c: File removed.
1391 * sysdeps/posix/stdio_init.c: File removed.
1392 * sysdeps/posix/vdprintf.c: File removed.
1393 * sysdeps/unix/pipestream.c: File removed.
1394 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
1395 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
1396 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
1398 2002-04-29 Roland McGrath <roland@frob.com>
1400 * include/libc-symbols.h (link_warning): Use `unused' attribute.
1402 2002-04-28 Ulrich Drepper <drepper@redhat.com>
1404 * sysdeps/generic/tls.h: Describe what must be defined.
1406 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
1407 glob_in_dir [PR libc/3385].
1408 * posix/globtest.sh: Add test case.
1410 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
1413 2002-04-27 Ulrich Drepper <drepper@redhat.com>
1415 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
1416 _internal symbol handling.
1417 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1419 2002-04-26 Ulrich Drepper <drepper@redhat.com>
1421 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
1422 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
1424 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
1426 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
1427 not _LIBC and RE_ENABLE_I18N.
1428 (build_range_exp): Implement for not _LIBC.
1429 (build_collating_symbol): Likewise.
1430 (parse_bracket_exp): Unify redundant error handlings.
1431 Don't erase mbcset for non matching list in multibyte envs.
1432 (build_word_op): Add '_' to matching list for \w operator.
1433 * posix/regex_internal.c (re_string_construct): Invoke
1434 build_upper_buffer in case of not RE_ENABLE_I18N.
1435 (re_string_reconstruct): Don't touch cur_state in case of not
1437 * posix/regex_internal.h (attribute_hidden): New macro in case of
1439 (re_charset_t): Define range_starts/ends in case of not _LIBC.
1440 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
1442 (transit_state_mb): Likewise.
1443 (check_node_accept_bytes): Implement the code evaluating range
1444 expression in case of not _LIBC.
1445 (find_collation_sequence_value): Hide in case of not _LIBC.
1447 2002-04-26 Jakub Jelinek <jakub@redhat.com>
1449 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
1451 (__old_semctl, __new_semctl): Only use va_arg if the argument will
1454 2002-04-26 Ulrich Drepper <drepper@redhat.com>
1456 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
1458 * sysdeps/ia64/strncpy.S: Fix recovery code.
1459 Patch by David Mosberger <davidm@hpl.hp.com>.
1461 2002-04-24 Ulrich Drepper <drepper@redhat.com>
1463 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
1466 2002-04-14 Bruno Haible <bruno@clisp.org>
1468 * posix/regex.c (re_max_failures): Add back symbol for binary
1471 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
1473 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
1474 of buffer building functions.
1475 * posix/regex_internal.c (re_string_allocate): New function.
1476 (re_string_realloc_buffers): New function.
1477 (re_string_skip_chars): New function.
1478 (re_string_reconstruct): New function.
1479 (re_string_construct): Adapt it to new interface of buffer building
1481 (re_string_construct_common): Likewise.
1482 (build_wcs_buffer): Likewise.
1483 (build_wcs_upper_buffer): Likewise.
1484 (build_upper_buffer): Likewise.
1485 (re_string_translate_buffer): Likewise.
1486 (re_string_context_at): Adapt it to variable length buffers.
1487 * posix/regex_internal.h (re_string_t): Add new fields to handle
1488 variable length buffers.
1489 (re_match_context_t): Likewise.
1490 * posix/regexec.c (re_search_internal): Adapt it to new interface
1491 of re_string_t and re_match_context_t.
1492 (acquire_init_state_context): Likewise.
1493 (check_matching): Likewise.
1494 (check_halt_state_context): Likewise.
1495 (proceed_next_node): Likewise.
1496 (set_regs): Likewise.
1497 (sift_states_backward): Likewise.
1498 (clean_state_log_if_need): Likewise.
1499 (sift_states_iter_mb): Likewise.
1500 (sift_states_iter_bkref): Likewise.
1501 (add_epsilon_backreference): Likewise.
1502 (transit_state): Likewise.
1503 (transit_state_sb): Likewise.
1504 (transit_state_mb): Likewise.
1505 (transit_state_bkref): Likewise.
1506 (transit_state_bkref_loop): Likewise.
1507 (check_node_accept): Likewise.
1508 (match_ctx_init): Likewise.
1509 (extend_buffers): New function.
1511 2002-04-21 Bruno Haible <bruno@clisp.org>
1513 * iconvdata/tst-table.sh: For the second check, use the truncated
1514 GB18030 charmap table, like for the first check.
1516 2002-04-24 Ulrich Drepper <drepper@redhat.com>
1518 * elf/dl-load.c (open_verify): Correct __lseek parameters.
1519 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
1521 2002-04-23 H.J. Lu <hjl@gnu.org>
1523 * include/math.h (isfinite): Fix a typo.
1525 2002-04-24 Ulrich Drepper <drepper@redhat.com>
1527 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
1528 which is created by the test suite.
1530 2002-04-20 Bruno Haible <bruno@clisp.org>
1532 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
1533 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
1535 2002-04-20 Bruno Haible <bruno@clisp.org>
1537 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
1538 to avoid gcc warning.
1540 2002-04-20 Bruno Haible <bruno@clisp.org>
1542 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
1543 of data->__statep->__count.
1545 2002-04-20 Bruno Haible <bruno@clisp.org>
1547 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
1549 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
1551 2002-04-24 Roland McGrath <roland@frob.com>
1553 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
1554 use END macro instead of our own .end directive.
1555 Use `callsys' insn mnemonic instead of `call_pal'.
1557 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1559 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
1560 macro; we need this for Hurd.
1562 Log entry was missing for 2002/03/24 commit of rev 1.8,
1563 goes with 2002-03-17 changes.
1564 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
1565 (sysdep_routines): Append ioperm here.
1566 (sysdep_headers): Append sys/io.h here.
1568 2002-04-23 Roland McGrath <roland@frob.com>
1570 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
1571 * sysdeps/mach/hurd/sendto.c: Likewise.
1572 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1573 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1574 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1576 2002-04-22 Roland McGrath <roland@frob.com>
1578 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1579 failure from i386_io_perm_* RPCs to ENOSYS.
1581 2002-04-22 Andreas Jaeger <aj@suse.de>
1583 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
1585 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1587 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1588 register instead of destroying %rbx.
1590 2002-04-21 Ulrich Drepper <drepper@redhat.com>
1592 * string/string.h: Declare strerror_r also for XPG6.
1594 2002-04-19 Roland McGrath <roland@frob.com>
1596 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1598 2002-04-20 Ulrich Drepper <drepper@redhat.com>
1600 * Makefile: Add handling of xtests and xcheck targets.
1601 * MakeTAGS: Likewise.
1602 * Makeconfig: Likewise.
1603 * Makerules: Likewise.
1605 * manual/Makefile: Likewise.
1606 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1607 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
1609 2002-04-11 Zack Weinberg <zack@codesourcery.com>
1611 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1613 * sunrpc/auth_none.c: Include bits/libc-lock.h.
1614 Delete #ifdef _RPC_THREAD_SAFE_ block.
1615 (authnone_private): Make a struct, not a pointer to struct.
1616 (authnone_private_guard): New once-control variable.
1617 (authnone_create_once): New function, split out of
1618 authnone_create. No need to allocate memory.
1619 (authnone_create): Just call authnone_create_once via
1620 __libc_once, then return &authnone_private->no_client.
1621 (authnone_marshal): Access private data via CLIENT argument,
1622 not authnone_private pointer.
1623 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1624 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1627 2002-04-12 H.J. Lu <hjl@gnu.org>
1629 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1631 2002-04-18 Bruno Haible <bruno@clisp.org>
1633 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1634 FROM_DIRECTION): Make the FROM direction stateless.
1635 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1636 FROM_DIRECTION): Likewise.
1638 2002-04-15 Bruno Haible <bruno@clisp.org>
1640 * iconvdata/JISX0213.TXT: New file.
1641 * iconvdata/jisx0213.h: New file.
1642 * iconvdata/jisx0213.c: New file.
1643 * iconvdata/euc-jisx0213.c: New file.
1644 * iconvdata/shift_jisx0213.c: New file.
1645 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1646 * iconvdata/EUC-JISX0213.precomposed: New file.
1647 * iconvdata/SHIFT_JISX0213.precomposed: New file.
1648 * iconvdata/SHIFT_JISX0213.irreversible: New file.
1649 * iconvdata/tst-table-to.c (main): Make it work for encodings for
1650 which the "to" direction is stateful.
1651 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1652 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1654 (libJISX0213-routines): New variable.
1655 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1656 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1657 (LDFLAGS-libJISX0213.so): New variable.
1658 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1659 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1660 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1662 2002-04-15 Bruno Haible <bruno@clisp.org>
1664 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1665 uint32_t. Update to Unicode 3.2.
1666 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1667 (BODY for TO_LOOP): Handle the ASCII range specially.
1668 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1669 * iconvdata/testdata/BIG5HKSCS: Remove a character.
1670 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1672 2002-04-15 Bruno Haible <bruno@clisp.org>
1674 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1675 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1677 2002-04-15 Bruno Haible <bruno@clisp.org>
1679 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1680 (ucs4_to_cns11643): Update.
1681 * iconvdata/cns11643.c: Update to Unicode 3.2.
1682 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1683 __cns11643_from_ucs4p2_tab): Regenerated.
1684 (__cns11643_from_ucs4p2c_tab): New array.
1685 * iconvdata/cvs11643l1.c: Update comments.
1686 * iconvdata/EUC-TW.irreversible: Remove two entries.
1688 2002-04-15 Bruno Haible <bruno@clisp.org>
1690 * locale/C-translit.h.in: Update to Unicode 3.2.
1691 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1692 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1694 2002-04-15 Bruno Haible <bruno@clisp.org>
1696 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1697 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1699 2002-04-15 Bruno Haible <bruno@clisp.org>
1701 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1702 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1703 always one byte, not 0 bytes in some cases and 2 bytes in others.
1705 * iconvdata/tst-table-from.c (main): Correct the usage message.
1707 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1709 * posix/regcomp.c (parse_expression): Fix incorrect error code.
1710 (parse_dup_op): Fix error handling like "a{}".
1711 (parse_bracket_exp): Add error handling.
1712 (fetch_number): Add error handling for "a{<very_large_number>}".
1714 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1716 * posix/regcomp.c (parse_bracket_symbol): Add error handling
1717 in case that the symbol name is too long.
1718 (build_charclass): Handle [:lower:]/[:uppper:] correctly
1719 in case of REG_ICASE.
1721 2002-04-19 Andreas Jaeger <aj@suse.de>
1723 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1724 <hartvige@mips.com>.
1726 2002-04-15 H.J. Lu <hjl@gnu.org>
1728 * include/math.h (__finitel_internal): Declare only if
1729 __NO_LONG_DOUBLE_MATH is not defined.
1730 (__isinfl_internal): Likewise.
1731 (__isnanl_internal): Likewise.
1733 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1734 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1735 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1736 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1737 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1738 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1739 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1741 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1744 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1745 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1747 2002-04-15 Bruno Haible <bruno@clisp.org>
1749 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1750 (BODY for TO_LOOP): Likewise.
1751 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1752 * iconvdata/tst-table.sh: Add support for encodings which contain
1753 precomposed Unicode characters, known to the iconv converter in both
1754 directions but not listed in the charmap.
1755 * iconvdata/IBM856.irreversible: New file.
1756 * iconvdata/IBM922.irreversible: New file.
1757 * iconvdata/IBM1132.irreversible: New file.
1758 * iconvdata/IBM1133.irreversible: New file.
1759 * iconvdata/IBM1160.irreversible: New file.
1760 * iconvdata/IBM1161.irreversible: New file.
1761 * iconvdata/IBM1163.irreversible: New file.
1762 * iconvdata/IBM1164.irreversible: New file.
1763 * iconvdata/ARMSCII-8.irreversible: New file.
1764 * iconvdata/TCVN5712-1.precomposed: New file.
1765 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1766 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1767 ARMSCII-8, TCVN5712-1.
1768 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1769 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1770 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1771 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1773 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1775 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
1776 for EVENING69. Include offsets in TZ environment variable.
1778 2002-04-18 Ulrich Drepper <drepper@redhat.com>
1780 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1781 avoid compiler warnings.
1783 * locale/programs/localedef.c (main): Always call
1784 construct_output_path.
1786 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1788 * locale/programs/locfile.c (to_archive): New variable. To collect
1789 data which has to be added to the locale archive.
1790 (write_all_categories): Take new third parameter with locale name.
1791 Unless no_archive flag set add new locale data to the archive
1792 (write_locale_data): Unless no-archive flag set store generated data
1793 in to_archive data structure instead of generation output file.
1794 Add new parameter with locale category index.
1795 * locale/programs/locfile.h: Add new parameters in declaractions of
1796 write_all_categories and write_locale_data.
1797 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
1798 --add-to-archive, and --delete-from-archive options. Pass extra
1799 parameter to write_all_categories.
1800 * locale/programs/localedef.h: Add prototypes for functions in
1802 * locale/locarchive.h: New file.
1803 * locale/programs/locarchive.c: New file.
1804 * locale/Makefile (distribute): Add programs/locarchive.c and
1806 (localedef-modules): Add md5 and locarchive.
1807 Add vpath to crypt subdir for md5.c.
1809 * locale/programs/ld-address.c: Pass locale category ID as new second
1810 parameter to write_locale_data.
1811 * locale/programs/ld-collate.c: Likewise.
1812 * locale/programs/ld-ctype.c: Likewise.
1813 * locale/programs/ld-identification.c: Likewise.
1814 * locale/programs/ld-measurement.c: Likewise.
1815 * locale/programs/ld-messages.c: Likewise.
1816 * locale/programs/ld-monetary.c: Likewise.
1817 * locale/programs/ld-name.c: Likewise.
1818 * locale/programs/ld-numeric.c: Likewise.
1819 * locale/programs/ld-paper.c: Likewise.
1820 * locale/programs/ld-telephone.c: Likewise.
1821 * locale/programs/ld-time.c: Likewise.
1823 * locale/simple-hash.c: Move compute_hashval function from here...
1824 * locale/hashval.h: ...to here. New file.
1825 * locale/simple-hash.h: Add prototype for compute_hashval.
1827 * include/libintl.h: Minor cleanups.
1829 2002-04-16 Ulrich Drepper <drepper@redhat.com>
1831 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
1833 2002-04-15 Ulrich Drepper <drepper@redhat.com>
1835 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
1837 2002-04-14 Bruno Haible <bruno@clisp.org>
1839 * locale/programs/charmap.c (charmap_read): Don't access result if
1842 2002-02-17 Andreas Schwab <schwab@suse.de>
1844 * elf/reldep7.c: New file.
1845 * elf/reldep7mod1.c: New file.
1846 * elf/reldep7mod2.c: New file.
1847 * elf/Makefile: Add rules to build and run reldep7.
1849 2002-04-14 Jakub Jelinek <jakub@redhat.com>
1851 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
1852 the end of the function. Pass original flags to recursive call if
1853 add_dependency failed.
1854 (_dl_lookup_versioned_symbol): Likewise.
1856 2002-04-13 Jakub Jelinek <jakub@redhat.com>
1858 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
1859 early, but check whether it overflowed afterwards.
1860 * time/tst-mktime.c (main): Add new tests.
1862 2002-04-14 Ulrich Drepper <drepper@redhat.com>
1864 * debug/xtrace.sh: Fix program name in help message.
1865 Patch by Roger Luethi <rl@hellgate.ch>.
1867 * include/sys/stat.h: Add prototypes for __lxstat_internal and
1868 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
1870 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
1871 * sysdeps/mach/hurd/lxstat.c: Likewise.
1872 * sysdeps/unix/common/lxstat.c: Likewise.
1873 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
1874 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1875 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1876 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1877 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1878 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
1879 * sysdeps/mach/hurd/lxstat64.c: Likewise.
1880 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
1881 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1883 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
1884 prototypes. Add __mbrlen and __mbrtowc macros.
1885 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
1886 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
1888 * include/unistd.h: Add prototype for __write_internal and add
1889 __libc_write macro is SHARED.
1890 * sysdeps/generic/write.c: Use INTDEF for __write.
1891 * sysdeps/mach/hurd/write.c: Likewise.
1892 * sysdeps/unix/sysv/aix/write.c: Likewise.
1893 * sysdeps/unix/syscalls.list: Add __libc_write alias.
1895 * assert/assert.c: Replace STR_N_SIZE with something usable in
1897 * assert/assert-perr.c: Likewise.
1899 * include/sys/socket.h: Declare __libc_sa_len_internal and define
1900 SA_LEN macro to use it if not NOT_IN_libc.
1901 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
1903 * include/fcntl.h: Declare __open_internal and define __open and
1904 __libc_open macros if not NOT_IN_libc.
1905 * sysdeps/generic/open.c: Use INTDEF for __open.
1906 * sysdeps/mach/hurd/open.c: Likewise.
1907 * sysdeps/unix/sysv/aix/open.c: Likewise.
1908 * sysdeps/unix/syscalls.list: Add __open_internal alias.
1910 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
1913 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
1914 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
1915 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1916 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1918 * include/wctype.h: Declare __iswalpha_l_internal,
1919 __iswdigit_l_internal, __iswspace_l_internal,
1920 __iswxdigit_l_internal, and __iswctype_internal. Define
1921 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
1922 __iswxdigit_l macros if not NOT_IN_libc.
1923 * wctype/iswctype.c: Use INTDEF for __iswctype.
1924 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
1926 * include/math.h: Declare __isinf_internal, __isinfl_internal,
1927 __isnan_internal, and __isnanl_internal.
1928 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
1929 __isnan, and __isnanl.
1930 * stdio-common/printf_size.c: Likewise.
1931 * sysdeps/generic/printf_fphex.c: Likewise.
1932 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
1933 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1934 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
1935 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
1936 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1937 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1938 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1939 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1940 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1941 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1942 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1943 * sysdeps/m68k/s_isinfl.c: Likewise.
1944 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1945 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1947 * include/sys/time.h: Declare __gettimeofday_internal and define
1948 __gettimeofday macro if not NOT_IN_libc.
1949 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
1950 * sysdeps/mach/gettimeofday.c: Likewise.
1951 * sysdeps/posix/gettimeofday.c: Likewise.
1952 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1953 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
1954 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1955 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
1957 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
1958 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
1959 Remove __lstat and __fstat inline functions.
1960 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
1961 * sysdeps/mach/hurd/fxstat.c: Likewise.
1962 * sysdeps/unix/fxstat.c: Likewise.
1963 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
1964 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1965 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1966 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1967 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1968 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
1969 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1970 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
1971 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1973 * include/unistd.h: Declare __getpid_internal and define
1974 __getpid macro if not NOT_IN_libc.
1975 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
1976 * sysdeps/generic/getpid.c: Likewise.
1977 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
1978 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
1980 * include/unistd.h: Declare __getpgid_internal and define
1981 __getpgid macro if not NOT_IN_libc.
1982 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
1983 * sysdeps/mach/hurd/getpgid.c: Likewise.
1984 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
1985 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1986 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1987 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
1989 * include/unistd.h: Declare __getpagesize_internal and define
1990 __getpagesize macro if not NOT_IN_libc.
1991 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
1993 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
1994 * sysdeps/mach/getpagesize.c: Likewise.
1995 * sysdeps/posix/getpagesize.c: Likewise.
1996 * sysdeps/unix/getpagesize.c: Likewise.
1997 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1998 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1999 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
2000 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
2002 2002-04-13 Andreas Jaeger <aj@suse.de>
2004 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
2005 as clobber to reduce register pressure.
2006 (__strpbrk_cg): Likewise.
2007 (__mempcpy_by4): Likewise.
2008 (__strstr_cg): Likewise.
2009 Add prototype for __memrchr.
2011 2002-04-13 Andreas Schwab <schwab@suse.de>
2013 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
2014 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2015 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2017 2002-04-13 Ulrich Drepper <drepper@redhat.com>
2019 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
2020 check whether the caller prefers getting the most recent version of
2021 a symbol of the earliest version.
2022 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
2023 _dl_do_lookup to also take the new parameter and pass it on.
2024 Change 'explicit' parameter of _dl_lookup_symbol and
2025 _dl_lookup_versioned_symbol to flags. Adjust tests.
2026 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2027 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
2028 _dl_lookup_versioned_symbol.
2029 * elf/dl-reloc.c: Likewise.
2030 * elf/dl-runtime.c: Likewise.
2031 * elf/dl-sym.c: Likewise.
2032 * sysdeps/mips/dl-machine.h: Likewise.
2034 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2036 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
2038 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
2040 2002-04-10 Andreas Jaeger <aj@suse.de>
2042 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
2044 * include/argz.h: Remove extra char from last patch.
2046 2002-04-09 Ulrich Drepper <drepper@redhat.com>
2048 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
2049 * sysdeps/unix/sysv/aix/chown.c: Likewise.
2050 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
2051 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2052 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2053 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
2055 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2057 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
2058 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
2059 * intl/ngettext.c: Likewise.
2061 * include/sys/socket.h: Declare __connect_internal and define
2062 __connect macro if not NOT_IN_libc.
2063 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
2064 * sysdeps/unix/sysv/aix/connect.c: Likewise.
2065 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
2067 * include/unistd.h: Declare __close_internal and define __close macro
2069 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
2070 WJUMP3): Add extra parenthesis to avoid expanding element names with
2071 macors like __close.
2072 * sysdeps/unix/syscalls.list: Add __close_internal alias.
2074 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
2076 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
2077 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
2078 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
2080 * include/unistd.h: Declare __fork_internal and define __fork macro
2082 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
2083 * sysdeps/unix/sysv/aix/fork.c: Likewise.
2084 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
2086 * include/stdio_ext.h: Declare __fsetlocking_internal and define
2087 __fsetlocking macro to use it if not NOT_IN_libc.
2088 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
2090 * libio/__fbufsize.c: Correct copyright.
2091 * libio/__flbf.c: Likewise.
2092 * libio/__fpending.c: Likewise.
2093 * libio/__fpurge.c: Likewise.
2094 * libio/__freadable.c: Likewise.
2095 * libio/__freading.c: Likewise.
2096 * libio/__fsetlocking.c: Likewise.
2097 * libio/__fwritable.c: Likewise.
2098 * libio/__fwriting.c: Likewise.
2100 * include/stdio.h: Declare __asprintf_internal and define __asprintf
2101 macro to use it if not NOT_IN_libc.
2102 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
2104 * include/mntent.h: Declare __setmntent_internal,
2105 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
2106 __getmntent_r, and __endmntent macros to use these functions if not
2108 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
2111 * include/math.h: Declare __finite_internal, __finitef_internal, and
2112 __finitel_internal. Redefine isfinite macro if in libc or libm using
2114 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
2115 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
2116 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
2117 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
2118 * sysdeps/i386/fpu/s_finitef.S: Likewise.
2119 * sysdeps/i386/fpu/s_finitel.S: Likewise.
2120 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2121 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2122 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2123 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2125 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
2126 to use this function if not NOT_IN_libc.
2127 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
2128 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
2129 * sysdeps/mach/hurd/fcntl.c: Likewise.
2130 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2131 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2133 * include/argz.h: Declare __argz_count_internal and
2134 __argz_stringify_internal.
2135 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
2137 * string/argz-count.c: Use INTDEF for __argz_count.
2138 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
2140 * include/stdlib.h: Declare __cxa_atexit_internal and define
2141 __cxa_atexit macro if not NOT_IN_libc.
2142 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
2143 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
2145 * assert/assert.c: Use INTDEF for __assert_fail.
2146 * assert/__assert.c: Use INTUSE for call to __assert_fail.
2147 * include/assert.h: Declare __assert_fail_internal.
2149 * extra-lib.mk: Mark assignment to lib with override.
2151 2002-04-08 Ulrich Drepper <drepper@redhat.com>
2153 * Makerules: Use cppflags-iterator.mk to add defines for all test
2156 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
2158 * elf/elf.h: Define R_SH_TLS_xxx macros.
2159 * elf/rtld.c: Remove an extra parenthesis.
2160 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
2162 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
2163 * sysdeps/sh/dl-lookupcfg.h: New file.
2164 * sysdeps/sh/dl-tls.h: New file.
2165 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
2166 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
2167 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
2168 R_SH_TLS_TPOFF32 relocations.
2170 2002-04-08 Ulrich Drepper <drepper@redhat.com>
2172 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
2174 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
2175 * include/stdlib.h: Likewise.
2177 2002-04-08 Jakub Jelinek <jakub@redhat.com>
2179 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
2180 instead of _RTLD_LOCAL.
2181 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
2182 * include/unistd.h: Likewise.
2183 * sysdeps/generic/ldsodefs.h: Likewise.
2185 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
2186 if in libc or ld.so.
2188 2002-04-08 Andreas Jaeger <aj@suse.de>
2190 * elf/cache.c (print_entry): Support x86-64.
2192 2002-04-08 Ulrich Drepper <drepper@redhat.com>
2194 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
2195 with one accessing the locale data structures directly.
2196 * stdio-common/printf-prs.c: Include localeinfo.h for new
2197 MB_CUR_MAX definition.
2199 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
2200 is the name of the source file without extension.
2201 * Makefile (distribute): Add cppflags-iterator.mk.
2202 * cppflags-iterator.mk: New file.
2203 * extra-lib.mk: For the sources of the library run
2204 cppflags-iterator.mk.
2206 * include/libintl.h: Declare __dcgettext_internal and
2207 _libc_intl_domainname_internal. Define __dcgettext using these
2208 two symbols if used in libc itself.
2209 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
2210 _libc_intl_domainname_internal.
2211 * argp/argp-parse.c: Likewise.
2212 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
2213 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
2214 * intl/gettext.c: Likewise.
2215 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
2217 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
2219 * posix/regex_internal.c (gettext): Likewise.
2221 2002-04-08 Andreas Jaeger <aj@suse.de>
2223 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
2225 * sysdeps/x86_64/fpu/s_llrint.S: New.
2226 * sysdeps/x86_64/fpu/s_llrintf.S: New.
2227 * sysdeps/x86_64/fpu/s_llrintl.S: New.
2228 * sysdeps/x86_64/fpu/s_lrint.S: New.
2229 * sysdeps/x86_64/fpu/s_lrintf.S: New
2230 * sysdeps/x86_64/fpu/s_lrintl.S: New.
2232 2002-04-08 Roland McGrath <roland@frob.com>
2234 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
2235 widening __hurd_fail value.
2237 2002-04-07 Roland McGrath <roland@frob.com>
2239 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
2240 <mach/machine/alpha_instruction.h>.
2241 (_hurd_setup_sighandler): Take proper arguments for current decls.
2242 Update code to use _hurdsig_catch_fault.
2243 Use `callsys' instruction instead of `call_pal'.
2244 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
2246 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
2247 (ALIGN, at, AT, fp): New macros.
2249 2002-04-06 Roland McGrath <roland@frob.com>
2251 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
2253 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
2254 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
2256 * sysdeps/mach/hurd/bind.c: Use prototype definition.
2257 * sysdeps/mach/hurd/connect.c: Likewise.
2258 * sysdeps/mach/hurd/getsockopt.c: Likewise.
2259 * sysdeps/mach/hurd/setsockopt.c: Likewise.
2261 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
2264 * hurd/catch-exc.c: Use integer_t instead of int.
2265 * hurd/hurdfault.c: Likewise.
2267 * sysdeps/mach/hurd/alpha/exc2signal.c
2268 (_hurd_exception2signal): Rewritten.
2269 * sysdeps/mach/hurd/alpha/longjmp-ts.c
2270 (_hurd_longjmp_thread_state): Rewritten.
2272 2002-04-07 Ulrich Drepper <drepper@redhat.com>
2274 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
2275 DB_LOOKUP_FCT prototype.
2276 * nss/getXXent_r.c: Likewise.
2277 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
2278 * inet/getaliasname_r.c: Likewise.
2279 * inet/getnetbyad_r.c: Likewise.
2280 * inet/getnetbynm_r.c: Likewise.
2281 * inet/getnetent_r.c: Likewise.
2282 * inet/getproto_r.c: Likewise.
2283 * inet/getprtent_r.c: Likewise.
2284 * inet/getprtname_r.c: Likewise.
2285 * inet/getrpcbyname_r.c: Likewise.
2286 * inet/getrpcbynumber_r.c: Likewise.
2287 * inet/getrpcent_r.c: Likewise.
2288 * inet/getservent_r.c: Likewise.
2289 * inet/getsrvbynm_r.c: Likewise.
2290 * inet/getsrvbypt_r.c: Likewise.
2291 * shadow/getspent_r.c: Likewise.
2292 * shadow/getspnam_r.c: Likewise.
2294 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
2296 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
2297 Use i686-friendly PIC code.
2298 * sysdeps/i386/elf/setjmp.S: Likewise.
2300 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
2302 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
2304 * elf/Versions: Remove it here.
2306 2002-04-06 Ulrich Drepper <drepper@redhat.com>
2308 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
2309 direction. Reported by H . J . Lu <hjl@lucon.org>.
2311 2002-04-05 Ulrich Drepper <drepper@redhat.com>
2313 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
2314 test just before the test runs.
2315 * intl/tst-translit.sh: Likewise.
2316 * intl/tst-codeset.sh: Likewise.
2318 * timezone/zic.c: Update from tzcode2002c.
2319 * timezone/asia: Update from tzdata2002c.
2320 * timezone/backward: Likewise.
2321 * timezone/europe: Likewise.
2322 * timezone/northamerica: Likewise.
2323 * timezone/northamerica: Likewise.
2324 * timezone/northamerica: Likewise.
2325 * timezone/southamerica: Likewise.
2326 * timezone/zone.tab: Likewise.
2328 2002-03-23 Jakub Jelinek <jakub@redhat.com>
2330 * sysdeps/generic/brk.c (__curbrk): Declare.
2331 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
2332 * sysdeps/generic/dl-sbrk.c: Likewise.
2333 * sysdeps/unix/arm/dl-brk.S: New file.
2334 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
2335 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
2336 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
2337 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
2338 * sysdeps/unix/i386/dl-brk.S: New file.
2339 * sysdeps/unix/mips/dl-brk.S: New file.
2340 * sysdeps/unix/sparc/dl-brk.S: New file.
2341 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
2342 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
2343 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
2344 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
2346 2002-04-03 Andreas Schwab <schwab@suse.de>
2348 * Makefile (headers): Add gnu/lib-names.h here instead of
2350 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
2352 (install-headers): Add dependency on install-headers-nosubdir.
2353 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
2354 instead of install-others.
2355 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
2358 2002-04-05 Ulrich Drepper <drepper@redhat.com>
2360 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
2361 Reported by Sam Roberts <sroberts@uniserve.com>.
2363 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2365 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
2366 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
2367 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2368 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2370 2002-04-03 David Mosberger <davidm@hpl.hp.com>
2372 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
2373 (RTLD_START): Ditto.
2374 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
2375 dependency violation.
2377 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2379 * time/mktime.c (__mktime_internal): Move check for year < 70 below
2380 all variable declarations.
2382 2002-04-04 Andreas Schwab <schwab@suse.de>
2384 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
2386 2002-04-04 Andreas Jaeger <aj@suse.de>
2388 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
2389 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
2391 * sysdeps/x86_64/fpu/s_fabs.c: New file.
2392 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
2393 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
2395 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
2397 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
2399 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
2400 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
2402 * configure.in: Handle all mips entries the same.
2404 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
2405 * sysdeps/mips/mips3/*: Likewise.
2406 * sysdeps/mips/p40/bits/endian.h: Likewise.
2408 2002-04-04 Ulrich Drepper <drepper@redhat.com>
2410 * misc/dirname.c (dirname): Ignore trailing slashes at end of
2411 non-null result [PR libc/2600].
2413 * misc/tst-dirname.c: Add more tests.
2415 2002-04-03 Ulrich Drepper <drepper@redhat.com>
2417 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
2418 define a code_set_name provide one based on the filename.
2420 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
2422 2001-12-28 Andreas Jaeger <aj@suse.de>
2424 * time/mktime.c (__mktime_internal): Check for year < 70
2427 2002-04-03 Andreas Jaeger <aj@suse.de>
2429 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
2431 Reported by Andi Kleen <ak@suse.de>.
2433 2002-04-03 Ulrich Drepper <drepper@redhat.com>
2435 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
2436 * sysdeps/generic/w_lgammaf.c: Likewise.
2437 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
2439 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
2440 Adjust for new output format of the backtrace functions.
2442 * misc/syslog.c (vsyslog): Only use cleanup handler if
2443 _LIBC_REENTRANT is defined [PR libc/2924].
2445 * libio/Makefile (tests): Add bug-ungetwc2.
2446 * libio/bug-ungetwc2.c: New file.
2448 * manual/install.texi: Typographical and grammatical cleanup.
2449 Patch by Dennis Grace <dgrace@us.ibm.com>.
2451 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
2452 parameter if mtflag. Patch by <jeongyun@innovay.com>.
2454 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
2455 always "&". Adjust callers.
2456 Add "_" prefix to several generated definitions.
2457 Patch by paul@serice.net [PR libc/3158].
2459 2002-04-02 Ulrich Drepper <drepper@redhat.com>
2461 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
2462 size of _dl_arm_cap_flags.
2463 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
2465 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
2468 2002-03-22 H.J. Lu <hjl@gnu.org>
2470 * scripts/firstversions.awk: Check the first version.
2472 2002-04-02 Ulrich Drepper <drepper@redhat.com>
2474 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
2475 dependencies must be stable to work correctly.
2476 Reported by martin.lubich@datacon.at.
2478 * libio/bug-ungetwc1.c: New file.
2479 * libio/Makefile (tests): Add bug-ungetwc1.
2481 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
2482 if stream was last used for writing.
2484 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
2485 number [PR libc/3111].
2487 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
2489 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
2491 2002-04-02 Jakub Jelinek <jakub@redhat.com>
2493 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
2494 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2495 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
2496 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
2497 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
2499 2002-03-30 Jakub Jelinek <jakub@redhat.com>
2501 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
2504 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2506 * sysdeps/i386/fpu/s_fabs.S: New file.
2507 * sysdeps/i386/fpu/s_fabsf.S: New file.
2508 * sysdeps/i386/fpu/s_fabsl.S: New file.
2509 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
2510 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
2511 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
2513 2002-04-02 Ulrich Drepper <drepper@redhat.com>
2515 * rt/tst-shm.c (do_test): Add one more test for size of shared
2518 2002-03-29 Wolfram Gloger <wg@malloc.de>
2520 * malloc/malloc.c: Add short description and prototypes for
2521 malloc_get_state, malloc_set_state and posix_memalign, for
2522 consistency and to avoid warnings with -Wstrict-prototypes.
2523 Reported by Andreas Jaeger <aj@suse.de>.
2525 2002-04-02 Ulrich Drepper <drepper@redhat.com>
2527 * po/gl.po: Update from translation team.
2529 2002-03-31 Roland McGrath <roland@frob.com>
2531 * hurd/hurdselect.c (_hurd_select): Fix
2532 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
2533 Use a union rather than casts to compare mach_msg_type_t as int.
2535 2002-03-25 Roland McGrath <roland@frob.com>
2537 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
2538 check off the end of NAME when it's shorter than 2 chars.
2539 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
2541 2002-03-17 Roland McGrath <roland@frob.com>
2543 * sysdeps/mach/hurd/i386/sys/io.h: New file.
2544 * sysdeps/mach/hurd/i386/ioperm.c: New file.
2545 * sysdeps/mach/hurd/i386/Dist: Add them.
2546 * sysdeps/mach/hurd/i386/Versions
2547 (libc: GLIBC_2.2.6): New set, add ioperm.
2548 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
2549 (mach_interface_list): Check for mach_i386.defs.
2550 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
2551 * sysdeps/mach/configure: Regenerated.
2553 2002-03-22 Ulrich Drepper <drepper@redhat.com>
2555 * po/fr.po: Update from translation team.
2557 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
2559 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
2560 getpriority from syscalls list.
2562 2002-03-28 Andreas Jaeger <aj@suse.de>
2564 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
2565 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
2566 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
2567 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
2569 2002-03-27 Andreas Jaeger <aj@suse.de>
2571 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2572 sigcontext): Follow further kernel change.
2574 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2577 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2578 Change for struct sigcontext change.
2580 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2581 Follow changes in struct sigcontext.
2583 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2584 sysycall, use wrapper instead.
2586 2002-03-26 Andreas Jaeger <aj@suse.de>
2588 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2589 read and write accesses as detailed as possible.
2590 (__memcpy_by2): Likewise.
2591 (__memcpy_g): Likewise.
2592 (memmove): Likewise.
2594 (__memset_ccn_by4): Likewise.
2595 (__memset_ccn_by2): Likewise.
2596 (__memset_gcn_by4): Likewise.
2597 (__memset_gcn_by2): Likewise.
2599 (__memrchr): Likewise.
2600 (rawmemchr): Likewise.
2601 (__strlen_g): Likewise.
2602 (__strcpy_g): Likewise.
2603 (__mempcpy_by4): Likewise.
2604 (__mempcpy_by2): Likewise.
2605 (__mempcpy_byn): Likewise.
2606 (__stpcpy_g): Likewise.
2607 (__strncpy_by4): Likewise.
2608 (__strncpy_by2): Likewise.
2609 (__strncpy_byn): Likewise.
2610 (__strncpy_gg): Likewise.
2611 (__strcat_c): Likewise.
2612 (__strcat_g): Likewise.
2613 (__strncat_g): Likewise.
2614 (__strcmp_gg): Likewise.
2615 (__strncmp_g): Likewise.
2616 (__strchr_c): Likewise.
2617 (__strchr_g): Likewise.
2618 (__strchrnul_c): Likewise.
2619 (__strchrnul_g): Likewise.
2620 (__strrchr_c): Likewise.
2621 (__strrchr_g): Likewise.
2622 (__strrchr_c): Likewise.
2623 (__strrchr_g): Likewise.
2624 (__strcspn_c1): Likewise.
2625 (__strcspn_cg): Likewise.
2626 (__strcspn_g): Likewise.
2627 (__strcspn_g): Likewise.
2628 (__strspn_c1): Likewise.
2629 (__strspn_cg): Likewise.
2630 (__strspn_g): Likewise.
2631 (__strspn_g): Likewise.
2632 (__strpbrk_cg): Likewise.
2633 (__strpbrk_g): Likewise.
2634 (__strstr_cg): Likewise.
2635 (__strstr_g): Likewise.
2637 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
2638 Michal Ludvig <mludvig@suse.cz>.
2640 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2641 compatibilty, adjust for kernel changes.
2643 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2644 sigcontext): Adjust for kernel changes.
2646 2002-03-25 Andreas Jaeger <aj@suse.de>
2648 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2650 Reported by Artur Zaprzala <zybi@talex.com.pl>.
2652 2002-03-24 Andreas Jaeger <aj@suse.de>
2654 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2656 * stdio-common/tst-fdopen.c (main): Remove unused variable.
2658 * iconv/tst-iconv3.c (main): Use correct printf strings.
2660 2002-03-18 Roland McGrath <roland@frob.com>
2662 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2663 (CMGROUP_MAX): New macro.
2665 2002-03-23 Roland McGrath <roland@frob.com>
2667 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2668 * sysdeps/posix/shm_unlink.c: Likewise.
2670 2002-03-22 Roland McGrath <roland@frob.com>
2672 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2673 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2674 under --enable-libio.
2675 * sysdeps/mach/hurd/configure: Regenerated.
2677 2002-03-23 Roland McGrath <roland@frob.com>
2679 * sysdeps/mach/hurd/i386/Makefile
2680 (sysdep_routines, shared-only-routines): Don't add framestate,
2681 reverting 2001-10-02 change.
2682 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2683 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2684 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2685 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2686 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2687 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2688 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2689 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2690 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2691 Do it here instead, only if [$(unwind-find-fde) = yes].
2693 2002-03-23 Andreas Jaeger <aj@suse.de>
2695 * signal/signal.h: Fix typo. Patch by Steve Kemp
2696 <skx@tardis.ed.ac.uk>.
2698 2002-03-22 Andreas Jaeger <aj@suse.de>
2700 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2703 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2704 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2705 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2706 user_fpregs_struct): Rename fwd.
2708 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2709 Follow sigcontext changes.
2711 2002-03-22 Andreas Jaeger <aj@suse.de>
2713 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
2714 changes for NaNs on MIPS.
2715 Patch by Hartvig Ekner <hartvige@mips.com>.
2717 2002-03-21 Ulrich Drepper <drepper@redhat.com>
2719 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2720 Use realloc if too large.
2721 (addgrbyid): Likewise.
2722 * nscd/hstcache.c (addhstbyname): Likewise.
2723 (addhstbyaddr): Likewise.
2724 (addhstbynamev6): Likewise.
2725 (addhstbyaddrv6): Likewise.
2726 * nscd/pwdcache.c (addpwbyname): Likewise.
2727 (addpwbyuid): Likewise.
2729 2002-03-21 Andreas Jaeger <aj@suse.de>
2731 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2732 _fpstate): Add separate struct for x86-64.
2734 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2735 user_fpregs_struct): Change member names to follow kernel.
2737 2002-03-20 Ulrich Drepper <drepper@redhat.com>
2739 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2740 Correctly close the UDP connection right away [PR libc/3120].
2742 2002-03-20 Andreas Jaeger <aj@suse.de>
2744 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2745 user_fpregs_struct): Fix for changed kernel struct.
2746 (struct user_regs_struct): Likewise.
2747 (struct user): Likewise.
2748 Add 32-bit x86 compatibility.
2750 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2752 2002-03-19 Andreas Jaeger <aj@suse.de>
2754 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2756 2002-03-18 Andreas Jaeger <aj@suse.de>
2758 * iconvdata/Makefile: Only run tests when shared libs are
2761 2002-03-17 Andreas Jaeger <aj@suse.de>
2763 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2765 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2767 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2770 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2772 Patch by Hartvig Ekner <hartvige@mips.com>.
2774 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2775 * sysdeps/generic/unwind-pe.h: Likewise.
2777 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2780 * libio/stdio.c (AL2): Define variant when visibility attribute is
2783 * include/libc-symbols.h (_INTVARDEF): Define variant when
2784 visibility attribute is not supported.
2786 2002-03-16 Ulrich Drepper <drepper@redhat.com>
2788 * po/fr.po: Update from translation team.
2790 2002-02-25 Bruno Haible <bruno@clisp.org>
2792 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2794 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2796 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
2797 buffers if _IO_file_attach failed.
2799 * libio/fileops.c (_IO_file_open): Close file descriptor if
2800 _IO_SEEKOFF call failed.
2802 2002-03-15 H.J. Lu <hjl@gnu.org>
2803 Ulrich Drepper <drepper@redhat.com>
2805 * configure.in: Check for availability of
2806 init_array/fini_array/preinit_array handling in binutils.
2807 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
2808 * config.make.in (have-initfini-array): New variable.
2810 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2812 * stdio-common/tst-printf.c (main): Comment out one test which
2813 checked the compiler's ability to fold floating-point constants
2814 but not really printf.
2815 (rfg3): Make s const.
2816 * stdio-common/tst-printf.sh: Adjust for removed test.
2818 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
2819 internal function. Adjust for internal_function calling convention.
2820 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
2821 as internal_function.
2823 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
2826 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
2827 declaration and definition.
2828 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
2830 * nss/getXXent_r.c: Likewise.
2831 * nss/nsswitch.h (db_lookup_function): Add internal_function to
2834 * include/time.h: Declare __localtime_r as hidden.
2836 * include/aliases.h: Declare __getaliasent_r as hidden.
2837 * include/grp.h: Declare __getgrent_r as hidden.
2838 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
2839 __getservent_r, and __getprotoent_r as hidden.
2840 * include/pwd.h: Declare __getpwent_r as hidden.
2841 * include/shadow.h: Declare __getspent_r as hidden.
2842 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
2844 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
2845 and __gconv_transliterate as hidden.
2846 Add internal_function to __gconv_get_path declaration.
2847 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
2848 definition. Add attribute_hidden to __gconv_read_conf definition.
2850 2002-03-14 Ulrich Drepper <drepper@redhat.com>
2852 * elf/rtld.c: Declare _environ as hidden.
2853 * sysdeps/generic/dl-environ.c: Likewise.
2854 * sysdeps/generic/dl-sysdep.c: Likewise.
2856 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
2857 _dl_mcount_internal as hidden.
2859 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
2860 * sysdeps/generic/dl-brk.c: New file.
2861 * sysdeps/generic/dl-sbrk.c: New file.
2862 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
2863 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
2865 * elf/dl-minimal.c (malloc): Declare _end as hidden.
2866 (__errno_location): New function. Declare errno as hidden.
2867 * elf/rtld.c (_dl_argc): Define as hidden.
2868 (_dl_skip_args): Define as hidden.
2869 (_begin, _end): Declare as hidden.
2870 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
2871 * sysdeps/generic/entry.h (_start): Declare as hidden.
2872 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
2873 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
2874 _dl_runtime_resolve and _dl_runtime_profile as hidden.
2875 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
2877 2002-03-14 Roland McGrath <roland@frob.com>
2879 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
2881 * Makeconfig (%.v.i, %.v): New implicit rules.
2882 (preprocess-versions): Variable removed.
2883 ($(common-objpfx)shlib-versions.v.i): New target giving just the
2884 shlib-versions input files as dependencies.
2885 ($(common-objpfx)soversions.i): Depend on that instead of the input
2886 files. Use it as input instead of using a pipeline.
2887 (postclean-generated): Append soversions.i, shlib-versions.v, and
2888 shlib-versions.v.i here.
2889 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
2890 the Versions.def input files as dependencies.
2891 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
2892 ($(common-objpfx)Versions.all): Depend on that instead of the input
2893 files. Use it as input instead of using a pipeline.
2894 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
2895 (postclean-generated): Append those .v and .v.i files here.
2897 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2899 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
2900 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
2903 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2905 * sysdeps/generic/mp_clz_tab.c: New file.
2906 * sysdeps/i386/mp_clz_tab.c: New file.
2907 * sysdeps/hppa/mp_clz_tab.c: New file.
2908 * sysdeps/powerpc/mp_clz_tab.c: New file.
2909 * stdlib/Makefile (aux): Revert last patch.
2910 * math/Makefile (gmp-objs): Likewise.
2912 2002-03-13 Paul Eggert <eggert@twinsun.com>
2914 * time/strftime.c: Comment fixes for references to obsolescent
2915 standards, In most cases the simplest fix is to remove the
2916 confusing comments. Cross-referencing all the standards properly
2917 is a bit of a pain, and it should be enough to put that info in
2918 the documentation as I did in my recent time.texi patch.
2920 2002-03-13 Paul Eggert <eggert@twinsun.com>
2922 * manual/time.texi (Formatting Calendar Time):
2923 ISO C99 also specifies the E and O modifiers.
2924 %P is a GNU extension, and is not in ISO C99.
2925 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
2926 %T is also in ISO C99.
2927 The RFC 822 example is not valid in arbitrary locales.
2928 Reword the POSIX.2 wording slightly, to make it a bit clearer
2929 that POSIX.2 formats are also supported by later POSIX versions.
2930 If a format was introduced in ISO C99 it is also required by
2933 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2935 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
2936 _sys_nerr_internal with INTVARDEF2.
2937 * include/libc-symbols.h (INTVARDEF2): New macro.
2938 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
2939 (_sys_nerr_internal): Library.
2941 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
2942 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
2944 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
2946 2002-03-13 Wolfram Gloger <wg@malloc.de>
2948 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
2950 2002-03-02 Andreas Schwab <schwab@suse.de>
2952 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
2953 'h' flag and positional arg.
2954 * stdio-common/tst-printf.c (rfg3): New function to test
2955 positional arguments.
2956 (main): Fix some warnings.
2958 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2960 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
2961 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2963 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2965 * grp/initgroups.c (__nss_group_data): Declare as hidden.
2967 * include/locale.h (_nl_C_locobj): Declare as hidden.
2969 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
2970 * time/strptime.c (_nl_C_LC_TIME): Likewise.
2972 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
2974 * include/sys/gmon.h: Declare _gmonparam as hidden.
2976 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
2977 (__ctype32_wctrans): Likewise.
2978 (__ctype32_width): Likewise.
2980 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
2983 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
2985 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
2986 hidden. Change all users of these variables.
2988 * posix/regex_internal.h (__re_error_msgid): Renamed from
2989 re_error_msgid. Declare as hidden.
2990 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
2993 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
2994 (__printf_function_table): Likewise.
2995 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
2997 (__printf_function_table): Likewise.
2999 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
3000 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
3002 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
3003 * nss/nsswitch.c: Declare _nss_*_database as hidden.
3005 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
3006 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
3008 2002-03-12 Ulrich Drepper <drepper@redhat.com>
3010 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
3011 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
3012 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
3013 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
3014 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
3015 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
3016 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
3017 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
3018 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
3019 _nl_C_LC_CTYPE_width: Declare as hidden.
3020 * include/locale.h: Declare _nl_locale_file_list.
3021 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
3022 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
3023 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
3024 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
3025 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
3026 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
3027 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
3028 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
3029 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
3030 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
3031 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
3032 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
3033 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
3034 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
3035 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
3036 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
3037 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
3038 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
3039 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
3040 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
3041 _nl_C_LC_CTYPE_width, and as hidden.
3042 * locale/findlocale.c: Declare _nl_C as hidden.
3043 * locale/newlocale.c: Likewise.
3044 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
3045 _nl_locale_file_list.
3046 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
3047 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
3048 Define _nl_C_locobj as hidden.
3050 * malloc/mtrace.c (_mtrace_file): Define as hidden.
3051 (_mtrace_line): Likewise.
3053 * include/time.h: Declare __mon_yday as hidden.
3054 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
3056 * libio/libioP.h: Declare __libio_codecvt as hidden.
3057 * libio/fileops.c: Declare __libio_translit as hidden.
3058 * libio/iofwide.c: Define __libio_translit as hidden.
3060 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
3061 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
3062 * login/getutline_r.c: Likewise.
3063 * login/utmpname.c: Likewise.
3065 * login/utmp-private.h: Declare __libc_utmp_file_functions,
3066 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
3067 __libc_utmp_file_name as hidden.
3069 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
3070 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
3071 * locale/freelocale.c: Likewise.
3072 * locale/lc-time.c: Likewise.
3074 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
3075 (__libc_ptyname2): Likewise.
3076 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
3078 (__libc_ptyname2): Likewise.
3080 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
3081 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
3082 * sysdeps/generic/init-first.c: Likewise.
3083 * sysdeps/i386/init-first.c: Likewise.
3084 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3085 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3086 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3087 * sysdeps/sh/init-first.c: Likewise.
3088 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
3089 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3091 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
3092 (_itowa_upper_digits): Likewise.
3094 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
3095 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
3098 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
3099 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
3100 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
3101 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
3103 * gmon/gmon.c (__bb_head): Define as hidden.
3104 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
3106 * argp/argp-parse.c (_argp_hang): Define as static.
3108 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
3109 handling in latest compilers.
3111 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
3113 * libio/fileops.c (_IO_file_jumps): Likewise.
3114 * libio/stdfiles.c (_IO_list_all): Likewise.
3115 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
3117 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
3119 * include/malloc.h: Add __libc_malloc_initialized declaration
3120 here. Mark variable hidden.
3121 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
3123 * elf/dl-open.c (__libc_argc): Declare as hidden.
3124 (__libc_argv): Likewise.
3125 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
3126 (__libc_argv): Likewise.
3127 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
3128 __libc_argv as hidden.
3129 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3130 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3131 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
3132 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3134 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
3135 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
3136 * stdlib/erand48.c: Likewise.
3137 * stdlib/jrand48.c: Likewise.
3138 * stdlib/lcong48.c: Likewise.
3139 * stdlib/lrand48.c: Likewise.
3140 * stdlib/mrand48.c: Likewise.
3141 * stdlib/nrand48.c: Likewise.
3142 * stdlib/seed48.c: Likewise.
3143 * stdlib/srand48.c: Likewise.
3145 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
3146 (_itoa_lower_digits_internal): New declaration.
3147 (_itoa_upper_digits_internal): New declaration.
3148 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
3149 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
3150 (_itoa_upper_digits_internal): New declaration.
3151 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
3153 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
3154 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
3156 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
3157 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
3159 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
3160 (_itowa_lower_digits): Likewise.
3161 (_itowa_upper_digits): Likewise.
3162 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
3163 (_itowa_upper_digits): Likewise.
3165 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
3166 not already defined.
3167 (GERMANIC_PLURAL): Declare as hidden.
3169 * posix/getopt.c (__getopt_initialized): Declare as hidden.
3170 (attribute_hidden): Define as empty macro if not already defined.
3172 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
3173 (__gconv_max_path_elem_len): Likewise.
3174 (__gconv_path_envvar): Likewise.
3176 * math/Makefile (gmp-objs): Remove mp_clz_tab.
3177 * stdlib/Makefile (aux): Remove mp_clz_tab.
3178 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
3180 * stdlib/exit.h (__exit_funcs): Declare as hidden.
3182 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
3184 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
3185 _nl_category_names, _nl_category_name_sizes, _nl_current,
3186 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
3188 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
3189 (_nl_current_default_domain): Likewise
3190 (_nl_state_lock): Likewise.
3191 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
3192 (_nl_current_default_domain): Likewise
3193 (_nl_state_lock): Likewise.
3194 * intl/bindtextdom.c (_nl_state_lock): Likewise.
3196 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
3197 (_fpioconst_pow10): Likewise.
3199 * include/time.h (_tmbuf): Add attribute_hidden.
3201 * time/tzset.c (tzstring_list): Define as static.
3203 * include/time.h: Add attribute_hidden to __tzname_cur_max and
3204 __use_tzfile declaration.
3206 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
3207 and __wcsmbs_last_locale declaration.
3209 2002-02-25 Paul Eggert <eggert@twinsun.com>
3211 * timezone/Makefile (tzbases): Move systemv from here...
3212 (tzlinks): to here, since the entries in systemv were all changed
3213 from Zone to Link lines in tz-2001a. Bug reported (and patch
3214 tested) by Peter Breitenlohner.
3216 2002-03-07 Jakub Jelinek <jakub@redhat.com>
3218 * time/tst-posixtz.c (tests): Add new tests.
3219 (main): Test whether tzset() sets daylight properly.
3221 2002-03-06 Jakub Jelinek <jakub@redhat.com>
3223 * time/tzset.c (tz_compute): Move __daylight, __tzname and
3224 __tzname_cur_max setting...
3225 (tzset_internal): ...here.
3227 2002-03-06 Jakub Jelinek <jakub@redhat.com>
3229 * time/tzset.c (compute_change): Don't return any value.
3230 (tz_compute): Likewise. Don't handle southern hemisphere here.
3231 (__tz_convert): But here.
3233 2002-03-11 Ulrich Drepper <drepper@redhat.com>
3235 * manual/examples/mkfsock.c: Include <string.h> as well.
3236 Patch by Alain De Carolis <alaind@wseurope.com>.
3238 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
3240 * posix/regexec.c (re_match): Fix incorrect register sizes.
3241 (re_search): Likewise.
3243 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
3245 * posix/regcomp.c (regfree): Remove a disused condition.
3246 * posix/regex_internal.c (re_acquire_state): Likewise.
3247 (re_acquire_state_context): Likewise.
3248 (register_state): Remove a redundant malloc invocation.
3249 * posix/regex_internal.h: (re_state_table_entry): Simplify
3252 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
3254 * posix/regcomp.c (regcomp): Add __builtin_expect to error
3255 handling conditions.
3256 (regerror): Likewise.
3257 (regfree): Likewise.
3258 (re_compile_internal): Likewise.
3259 (init_dfa): Likewise.
3260 (init_word_char): Likewise.
3261 (create_initial_state): Likewise.
3262 (analyze): Likewise.
3263 (analyze_tree): Likewise.
3264 (duplicate_node): Likewise.
3265 (calc_eclosure): Likewise.
3266 (calc_eclosure_iter): Likewise.
3268 (parse_reg_exp): Likewise.
3269 (parse_branch): Likewise.
3270 (parse_expression): Likewise.
3271 (parse_subexp): Likewise.
3272 (parse_dup_op): Likewise.
3273 (parse_bracket_exp): Likewise.
3274 (build_equiv_class): Likewise.
3275 (build_charclass): Likewise.
3276 (build_word_op): Likewise.
3277 (fetch_number): Likewise.
3278 (create_tree): Likewise.
3279 (duplicate_tree): Likewise.
3280 * posix/regex.c (BE): New macro.
3281 * posix/regexec.c (re_match): Add __builtin_expect to error
3282 handling conditions.
3283 (re_match_2): Likewise.
3284 (re_search): Likewise.
3285 (re_search_internal): Likewise.
3286 (check_matching): Likewise.
3287 (proceed_next_node): Likewise.
3288 (set_regs): Likewise.
3289 (sift_states_backward): Likewise.
3290 (add_epsilon_backreference): Likewise.
3291 (transit_state): Likewise.
3292 (transit_state_sb): Likewise.
3293 (transit_state_mb): Likewise.
3294 (transit_state_bkref): Likewise.
3295 (transit_state_bkref_loop): Likewise.
3296 (build_trtable): Likewise.
3297 (group_nodes_into_DFAstates): Likewise.
3298 (match_ctx_init): Likewise.
3299 (match_ctx_add_entry): Likewise.
3300 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
3301 to error handling conditions.
3302 (re_string_construct_toupper): Likewise.
3303 (build_wcs_buffer): Likewise.
3304 (build_wcs_upper_buffer): Likewise.
3305 (build_upper_buffer): Likewise.
3306 (re_string_translate_buffer): Likewise.
3307 (re_node_set_alloc): Likewise.
3308 (re_node_set_init_1): Likewise.
3309 (re_node_set_init_2): Likewise.
3310 (re_node_set_init_copy): Likewise.
3311 (re_node_set_intersect): Likewise.
3312 (re_node_set_init_union): Likewise.
3313 (re_node_set_merge): Likewise.
3314 (re_node_set_insert): Likewise.
3315 (re_dfa_add_node): Likewise.
3316 (re_acquire_state): Likewise.
3317 (re_acquire_state_context): Likewise.
3318 (create_new_state_common): Likewise.
3319 (register_state): Likewise.
3320 (create_ci_new_state): Likewise.
3321 (create_cd_new_state): Likewise.
3322 (re_string_context_at): Remove redundant condition.
3324 2002-01-16 Roger Sayle <roger@eyesopen.com>
3326 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
3328 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
3330 2002-03-11 Jakub Jelinek <jakub@redhat.com>
3332 * sysdeps/i386/elf/configure.in: Fix comment.
3334 * sysdeps/sparc/sparc64/configure.in: New.
3335 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
3336 if .dynamic comes before .got.
3337 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
3339 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
3340 HP_TIMING_ACCUM): Fix typos.
3342 2002-03-11 Ulrich Drepper <drepper@redhat.com>
3344 * string/strfry.c: Add some more randomness to the seed.
3345 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
3347 * po/es.po: Update from translation team.
3348 * po/fr.po: Likewise.
3350 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
3352 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
3353 when determining type of format.
3354 Patch by James Antill <james@anqd.org> [PR libc/2787].
3356 2002-03-04 Jakub Jelinek <jakub@redhat.com>
3358 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
3360 2002-03-11 Roland McGrath <roland@frob.com>
3362 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
3364 * Versions.def (libc): Add GLIBC_2.2.6.
3365 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
3366 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
3367 __errno_location instead of __hurd_errno_location, and don't inline it.
3368 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
3369 * hurd/errno.c: New file.
3370 * hurd/Makefile (routines): Add errno.
3372 2002-03-11 Ulrich Drepper <drepper@redhat.com>
3374 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
3375 ridiculously large widths and precisions [PR libc/3026].
3377 2002-03-11 Andreas Jaeger <aj@suse.de>
3379 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
3381 Patch by Susanne Oberhauser <froh@SuSE.de>.
3383 2002-03-11 Ulrich Drepper <drepper@redhat.com>
3385 * inet/rexec.c (ahostbuf): Define as static.
3387 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
3388 (__ctype32_wctrans): Likewise.
3389 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
3390 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
3391 (__ctype32_wctrans): Likewise.
3392 (__ctype32_width): Likewise.
3394 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
3395 They were never exported anyway.
3397 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
3398 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
3400 * include/sys/gmon.h: Declare _gmonparam.
3402 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
3403 symbols for getdents64. They were never exported.
3405 2002-03-09 Roland McGrath <roland@frob.com>
3407 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
3408 Reported by Jon Arney <jarney1@cox.net>.
3410 2002-02-23 Roland McGrath <roland@frob.com>
3412 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
3414 (__hurd_errno_location): Function removed.
3416 2002-03-06 Andreas Jaeger <aj@suse.de>
3418 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
3421 2002-03-04 Andreas Jaeger <aj@suse.de>
3423 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
3425 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
3428 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
3430 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
3432 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
3434 * sysdeps/x86_64/bits/setjmp.h: New.
3436 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
3438 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
3440 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
3442 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
3443 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
3445 2002-02-28 Bo Thorsen <bo@suse.de>
3447 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
3450 2002-03-03 Andreas Jaeger <aj@suse.de>
3452 * sysdeps/x86_64/bits/wordsize.h: New file.
3454 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
3455 * elf/tst-tlsmod1.c: Likewise.
3457 * posix/regcomp.c: Get regex.h from include dir for internal
3460 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
3461 to libc-internal.h and include it.
3462 * include/libc-internal.h: Add __init_misc.
3464 * misc/init-misc.c: Include libc-internal.h for prototypes.
3466 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
3468 * misc/error.c [_LIBC]: Include libioP.h for prototype of
3471 2002-03-03 Ulrich Drepper <drepper@redhat.com>
3473 * posix/regcomp.c: Compatibility changes to allow using the code
3476 2002-02-28 Hartvig Ekner <hartvige@mips.com>
3478 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
3481 2002-03-02 Ulrich Drepper <drepper@redhat.com>
3483 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
3484 of .str elements in the returned data structure.
3486 * elf/elf.h: Add Alpha TLS bits.
3488 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3490 * sysdeps/unix/sysv/linux/nice.c: New file.
3492 2002-03-01 Ulrich Drepper <drepper@redhat.com>
3494 * elf/Makefile (dl-routines): Add dl-origin.
3495 (elide-routines.os): Add dl-origin.
3496 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
3497 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
3499 * include/libc-symbols.c: Define attribute_hidden depending on
3500 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
3502 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
3503 * elf/dl-load.c: Likewise.
3504 * elf/rtld.c: Likewise.
3505 * include/unistd.h: Declare __libc_enable_secure_internal.
3506 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
3507 Use INTUSE with __libc_enable_secure.
3508 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3510 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
3511 * elf/dl-error.c: Likewise,
3512 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
3514 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
3515 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
3516 function definition. Use INTDEF with _dl_get_origin.
3517 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3519 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
3520 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
3522 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
3523 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
3524 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
3526 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
3527 * elf/dl-deps.c: Likewise.
3528 * elf/dl-error.c: Likewise.
3529 * elf/dl-fini.c: Likewise.
3530 * elf/dl-init.c: Likewise.
3531 * elf/dl-load.c: Likewise.
3532 * elf/dl-lookup.c: Likewise.
3533 * elf/dl-reloc.c: Likewise.
3534 * elf/dl-version.c: Likewise.
3535 * elf/do-lookup.h: Likewise.
3536 * sysdeps/arm/dl-machine.h: Likewise.
3537 * sysdeps/cris/dl-machine.h: Likewise.
3538 * sysdeps/hppa/dl-machine.h: Likewise.
3539 * sysdeps/i386/dl-machine.h: Likewise.
3540 * sysdeps/m68k/dl-machine.h: Likewise.
3541 * sysdeps/powerpc/dl-machine.h: Likewise.
3542 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3543 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3544 * sysdeps/sh/dl-machine.h: Likewise.
3545 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
3546 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
3547 * sysdeps/x86_64/dl-machine.h: Likewise.
3548 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
3549 _dl_argv[0]. Use INTUSE with _dl_argv.
3550 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
3551 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
3553 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3555 * elf/rtld.c (_rtld_global): Remove .protected.
3556 (_rtld_local): Strong alias to _rtld_global.
3557 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
3559 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
3560 _rtld_local instead of _rtld_global.
3561 (_rtld_local): Add hidden extern, possibly in .sdata section.
3562 * configure.in: Add tests for visibility attribute and .sdata.
3563 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
3564 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
3565 * sysdeps/arm/dl-machine.h: Likewise.
3566 * sysdeps/generic/ldsodefs.h: Likewise.
3567 * sysdeps/hppa/dl-machine.h: Likewise.
3568 * sysdeps/cris/dl-machine.h: Likewise.
3569 * sysdeps/i386/dl-machine.h: Likewise.
3570 * sysdeps/ia64/dl-machine.h: Likewise.
3571 * sysdeps/m68k/dl-machine.h: Likewise.
3572 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3573 * sysdeps/mips/dl-machine.h: Likewise.
3574 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3575 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3576 * sysdeps/sh/dl-machine.h: Likewise.
3577 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3578 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3579 * sysdeps/x86_64/dl-machine.h: Likewise.
3581 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3583 * login/login.c (login): Always initialize ut_line field
3586 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3588 * sysdeps/i386/Makefile (sysdep_routines): Add
3590 (shared-only-routines): Likewise.
3591 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3592 (shared-only-routines): Likewise.
3593 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3594 (shared-only-routines): Likewise.
3595 * sysdeps/wordsize-32/divdi3.c: New file.
3597 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3599 * locale/iso-4217.def: Remove obsolete currencies for countries
3602 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
3604 * posix/regcomp.c (regcomp): Remove a redundant condition.
3605 (init_word_char): Add a check on malloc failure.
3606 (create_initial_state): Likewise.
3607 (duplicate_node): Likewise.
3608 (calc_eclosure): Likewise.
3609 (calc_eclosure_iter): Likewise.
3610 (parse_expression): Likewise.
3611 (parse_bracket_exp): Remove unnecessary malloc invocations.
3612 (build_equiv_class): Likewise.
3613 (build_charclass): Likewise.
3614 * posix/regex_internal.c (re_node_set_intersect): Add a check
3616 (re_node_set_add_intersect): Likewise.
3617 (re_node_set_merge): Likewise.
3618 (re_acquire_state): Likewise.
3619 (re_acquire_state_context): Likewise.
3620 (create_newstate_common): Likewise.
3621 (register_state): Likewise.
3622 (create_ci_newstate): Likewise.
3623 (create_cd_newstate): Likewise.
3624 * posix/regex_internal.h: Fix prototypes of re_acquire_state
3625 and re_acquire_state_context.
3626 * posix/regexec.c (regexec): Suit it to the error handling of
3628 (re_match): Likewise.
3629 (re_search): Likewise.
3630 (re_search_internal): Add a check on malloc failure.
3631 (acquire_init_state_context): Likewise.
3632 (check_matching): Likewise.
3633 (proceed_next_node): Likewise.
3634 (set_regs): Likewise.
3635 (sift_states_backward): Likewise.
3636 (sift_states_iter_bkref): Likewise.
3637 (add_epsilon_backreference): Likewise.
3638 (transit_state): Likewise.
3639 (transit_state_sb): Likewise.
3640 (transit_state_mb): Likewise.
3641 (transit_state_bkref_loop): Likewise.
3642 (build_trtable): Likewise.
3643 (group_nodes_into_DFAstates): Likewise.
3644 (match_ctx_init): Likewise.
3645 (match_ctx_add_entry): Likewise.
3647 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3649 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3650 l_libname if profiling is enabled [PR libc/2916].
3652 * sysdeps/ia64/dl-tls.h: New file.
3654 2002-02-27 Jakub Jelinek <jakub@redhat.com>
3656 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3657 Work around an Alpha gas bug.
3659 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3661 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3662 uses read to load the catalog.
3663 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3665 2002-02-26 Ulrich Drepper <drepper@redhat.com>
3667 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3668 regex_internal.c, and regex_internal.h.
3669 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3670 * posix/regex.c: Complete rewrite.
3671 * posix/regexec.c: New file.
3672 * posix/regcomp.c: New file.
3673 * posix/regex_internal.c: New file.
3674 * posix/regex_internal.h: New file.
3675 * posix/regex.h (RE_ICASE): New macro.
3676 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3678 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3679 ungetwc. It's a macro.
3680 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3682 Reported by Jason Merrill <jason@redhat.com>.
3684 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3686 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3687 position to fp->_offset if it is set.
3688 * stdio-common/Makefile (tests): Add tst-fdopen.
3689 * stdio-common/tst-fdopen.c: New test.
3691 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3693 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3694 * stdio-common/tst-ungetc.c (main): Add another test.
3696 2002-02-25 Ulrich Drepper <drepper@redhat.com>
3698 * assert/assert-perr.c: Use INTUSE to reference functions and variables
3699 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
3700 aliases. Add prototypes for the new aliases.
3701 * assert/assert.c: Likewise.
3702 * include/libc-symbols.h: Likewise.
3703 * include/stdio.h: Likewise.
3704 * include/netinet/in.h: Likewise.
3705 * include/rpc/auth.h: Likewise.
3706 * include/rpc/auth_unix.h: Likewise.
3707 * include/rpc/key_prot.h: Likewise.
3708 * include/rpc/pmap_prot.h: Likewise.
3709 * include/rpc/pmap_rmt.h: Likewise.
3710 * include/rpc/rpc_msg.h: Likewise.
3711 * include/rpc/xdr.h: Likewise.
3712 * inet/gethstbyad_r.c: Likewise.
3713 * inet/gethstbynm2_r.c: Likewise.
3714 * inet/gethstbynm_r.c: Likewise.
3715 * inet/gethstent_r.c: Likewise.
3716 * inet/in6_addr.c: Likewise.
3717 * libio/__fpurge.c: Likewise.
3718 * libio/filedoalloc.c: Likewise.
3719 * libio/fileops.c: Likewise.
3720 * libio/ftello.c: Likewise.
3721 * libio/ftello64.c: Likewise.
3722 * libio/genops.c: Likewise.
3723 * libio/iofclose.c: Likewise.
3724 * libio/iofdopen.c: Likewise.
3725 * libio/iofflush.c: Likewise.
3726 * libio/iofflush_u.c: Likewise.
3727 * libio/iofgetpos.c: Likewise.
3728 * libio/iofgetpos64.c: Likewise.
3729 * libio/iofgets.c: Likewise.
3730 * libio/iofgets_u.c: Likewise.
3731 * libio/iofopen.c: Likewise.
3732 * libio/iofopncook.c: Likewise.
3733 * libio/iofputs.c: Likewise.
3734 * libio/iofread.c: Likewise.
3735 * libio/iofread_u.c: Likewise.
3736 * libio/iofsetpos.c: Likewise.
3737 * libio/iofsetpos64.c: Likewise.
3738 * libio/ioftell.c: Likewise.
3739 * libio/iofwrite.c: Likewise.
3740 * libio/iogetline.c: Likewise.
3741 * libio/iogets.c: Likewise.
3742 * libio/iogetwline.c: Likewise.
3743 * libio/iolibio.h: Likewise.
3744 * libio/iopadn.c: Likewise.
3745 * libio/iopopen.c: Likewise.
3746 * libio/ioseekoff.c: Likewise.
3747 * libio/ioseekpos.c: Likewise.
3748 * libio/iosetbuffer.c: Likewise.
3749 * libio/iosetvbuf.c: Likewise.
3750 * libio/ioungetc.c: Likewise.
3751 * libio/ioungetwc.c: Likewise.
3752 * libio/iovdprintf.c: Likewise.
3753 * libio/iovsprintf.c: Likewise.
3754 * libio/iovsscanf.c: Likewise.
3755 * libio/libioP.h: Likewise.
3756 * libio/memstream.c: Likewise.
3757 * libio/obprintf.c: Likewise.
3758 * libio/oldfileops.c: Likewise.
3759 * libio/oldiofclose.c: Likewise.
3760 * libio/oldiofdopen.c: Likewise.
3761 * libio/oldiofgetpos.c: Likewise.
3762 * libio/oldiofgetpos64.c: Likewise.
3763 * libio/oldiofopen.c: Likewise.
3764 * libio/oldiofsetpos.c: Likewise.
3765 * libio/oldiofsetpos64.c: Likewise.
3766 * libio/oldiopopen.c: Likewise.
3767 * libio/oldstdfiles.c: Likewise.
3768 * libio/putc.c: Likewise.
3769 * libio/setbuf.c: Likewise.
3770 * libio/setlinebuf.c: Likewise.
3771 * libio/stdfiles.c: Likewise.
3772 * libio/stdio.c: Likewise.
3773 * libio/strops.c: Likewise.
3774 * libio/vasprintf.c: Likewise.
3775 * libio/vscanf.c: Likewise.
3776 * libio/vsnprintf.c: Likewise.
3777 * libio/vswprintf.c: Likewise.
3778 * libio/wfiledoalloc.c: Likewise.
3779 * libio/wfileops.c: Likewise.
3780 * libio/wgenops.c: Likewise.
3781 * libio/wstrops.c: Likewise.
3782 * malloc/mtrace.c: Likewise.
3783 * misc/error.c: Likewise.
3784 * misc/syslog.c: Likewise.
3785 * nss/getXXbyYY_r.c: Likewise.
3786 * nss/getXXent_r.c: Likewise.
3787 * nss/hosts-lookup.c: Likewise.
3788 * stdio-common/getw.c
3789 * stdio-common/printf-prs.c: Likewise.
3790 * stdio-common/printf_fp.c: Likewise.
3791 * stdio-common/printf_size.c: Likewise.
3792 * stdio-common/putw.c: Likewise.
3793 * stdio-common/scanf.c: Likewise.
3794 * stdio-common/sprintf.c: Likewise.
3795 * stdio-common/tmpfile64.c: Likewise.
3796 * stdio-common/vfprintf.c: Likewise.
3797 * stdio-common/vfscanf.c: Likewise.
3798 * stdlib/strfmon.c: Likewise.
3799 * sunrpc/auth_des.c: Likewise.
3800 * sunrpc/auth_none.c: Likewise.
3801 * sunrpc/auth_unix.c: Likewise.
3802 * sunrpc/authdes_prot.c: Likewise.
3803 * sunrpc/authuxprot.c: Likewise.
3804 * sunrpc/clnt_perr.c: Likewise.
3805 * sunrpc/clnt_raw.c: Likewise.
3806 * sunrpc/clnt_tcp.c: Likewise.
3807 * sunrpc/clnt_udp.c: Likewise.
3808 * sunrpc/clnt_unix.c: Likewise.
3809 * sunrpc/key_call.c: Likewise.
3810 * sunrpc/key_prot.c: Likewise.
3811 * sunrpc/openchild.c: Likewise.
3812 * sunrpc/pm_getmaps.c: Likewise.
3813 * sunrpc/pm_getport.c: Likewise.
3814 * sunrpc/pmap_clnt.c: Likewise.
3815 * sunrpc/pmap_prot.c: Likewise.
3816 * sunrpc/pmap_prot2.c: Likewise.
3817 * sunrpc/pmap_rmt.c: Likewise.
3818 * sunrpc/rpc_cmsg.c: Likewise.
3819 * sunrpc/rpc_prot.c: Likewise.
3820 * sunrpc/svc_authux.c: Likewise.
3821 * sunrpc/svc_raw.c: Likewise.
3822 * sunrpc/svc_simple.c: Likewise.
3823 * sunrpc/svc_tcp.c: Likewise.
3824 * sunrpc/svc_udp.c: Likewise.
3825 * sunrpc/svc_unix.c: Likewise.
3826 * sunrpc/xdr.c: Likewise.
3827 * sunrpc/xdr_array.c: Likewise.
3828 * sunrpc/xdr_mem.c: Likewise.
3829 * sunrpc/xdr_rec.c: Likewise.
3830 * sunrpc/xdr_ref.c: Likewise.
3831 * sunrpc/xdr_stdio.c: Likewise.
3832 * sysdeps/generic/_strerror.c: Likewise.
3833 * sysdeps/generic/printf_fphex.c: Likewise.
3834 * sysdeps/generic/tmpfile.c: Likewise.
3835 * sysdeps/gnu/errlist.awk: Likewise.
3836 * sysdeps/gnu/errlist.c: Likewise.
3838 * libio/Makefile (routines): Remove iosprint.
3839 * libio/iosprintf.c: Removed
3842 2002-02-24 Ulrich Drepper <drepper@redhat.com>
3844 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
3845 non_dynamic_init and exported now.
3846 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
3847 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
3849 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3850 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3851 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3853 2002-02-23 Ulrich Drepper <drepper@redhat.com>
3855 * elf/dl-close.c (free_slotinfo): Check for end of list and return
3858 * locale/iso-639.def: Add language codes for Walloon.
3860 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
3861 total number of relocations performed.
3863 * elf/sprof.c (load_profdata): If do_test provide information as
3864 to why loading failed.
3865 * elf/dl-profile.c (_dl_start_profile): Initialize all of
3868 * csu/set-init.c: Moved to...
3869 * sysdeps/mach/hurd/set-init.c: ...here. New file.
3870 * csu/Makefile: Don't compile set-init.
3871 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
3872 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
3874 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3875 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3876 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
3878 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
3881 2002-02-22 Ulrich Drepper <drepper@redhat.com>
3883 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
3884 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
3885 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
3886 (_dl_deallocate_tls): New function.
3887 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
3890 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3892 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
3893 * stdio-common/tst-fseek.c (main): Add test for this.
3895 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
3897 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
3899 2002-02-19 Jakub Jelinek <jakub@redhat.com>
3901 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
3902 pointer before dereferencing.
3904 2002-02-18 Roland McGrath <roland@frob.com>
3906 * sysdeps/mach/hurd/times.c: Fix typo in last change.
3908 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
3909 Use task_policy in place of task_priority.
3911 * sysdeps/generic/bits/mman.h
3912 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
3913 * sysdeps/mach/msync.c: New file.
3915 * sysdeps/mach/powerpc/syscall.S: New file.
3917 * mach/msg.c [MACH_MSG_OVERWRITE]
3918 (__mach_msg_trap, __mach_msg_overwrite): New functions.
3919 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
3921 * sysdeps/mach/configure.in: Check for clock.defs to put into
3922 mach_interface_list.
3923 * sysdeps/mach/configure: Regenerated.
3925 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
3926 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
3927 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
3928 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
3929 (mach-shortcuts): Add device_read_overwrite_request,
3930 device_read_overwrite, vm_read_overwrite, thread_switch.
3932 * configure.in (base_machine): Set to $machine by default.
3933 * configure: Regenerated.
3935 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
3936 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
3937 * sysdeps/mach/configure: Regenerated.
3938 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
3940 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
3942 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
3944 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
3945 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
3947 2002-02-17 Roland McGrath <roland@frob.com>
3949 * sysdeps/mach/hurd/times.c
3950 [NO_CREATION_TIME] (startup_time): New static variable.
3951 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
3952 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
3953 creation_time from task_basic_info.
3954 (__times): Use __gettimeofday instead of __host_get_time.
3956 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
3957 Use untyped Mach IPC message format.
3959 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
3961 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
3962 _S_catch_exception_raise_state_identity,
3963 _hurdsig_fault_catch_exception_raise_state,
3964 _hurdsig_fault_catch_exception_raise_state_identity.
3966 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
3968 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
3969 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
3971 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
3972 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
3974 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
3975 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
3976 them as no-op macros.
3977 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
3978 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
3980 * sysdeps/powerpc/dl-machine.h
3981 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
3983 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
3984 Use untyped Mach IPC message format.
3986 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
3987 Handle untyped Mach IPC message formats.
3989 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
3990 Expect different argument conventions when this is defined.
3991 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
3992 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
3993 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
3994 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
3995 for OSF Mach variant.
3996 (faulted): Use mig_reply_error_t for REPLY.
3997 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
3998 in __thread_set_exception_ports call.
3999 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
4000 __mach_port_set_attributes in place of __mach_port_set_qlimit.
4002 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
4003 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
4004 on Darwin, which includes bogons.
4006 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
4007 variable LOADBASE so it's not declared when it's not used.
4009 2002-02-16 Roland McGrath <roland@frob.com>
4011 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
4012 to use BI.creation_time.
4014 * mach/Machrules (MIG): Add -x c to CPP value passed down.
4016 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
4017 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
4018 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
4019 host_page_size instead of vm_statistics.
4021 * sysdeps/mach/Makefile (mach-before-compile): Don't include
4022 mach_interface.h here, since not all variants use that name.
4024 * sysdeps/mach/configure.in: Add some checks for Mach headers
4025 to ensure a sane installation.
4026 (mach_interface_list): Define this variable by checking for .defs
4027 files found in various variants.
4028 * configure.in (mach_interface_list): AC_SUBST this.
4029 * config.make.in (mach-interface-list): New substituted variable.
4030 * mach/Makefile (user-interfaces): Define this using the value
4031 of $(mach-interface-list) instead of mach, mach4.
4032 Updated other references to mach_interface to use it as well.
4034 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
4036 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
4037 mig_reply_error_t for OSF Mach variant.
4039 * mach/Makefile (routines): Remove bootprivport.
4040 * mach/bootprivport.c: File removed. It has never been used.
4042 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
4043 Grok the OSF flavor of message format.
4044 (mach_msg_destroy_port): For MAKE_SEND and
4045 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
4046 no-senders notification.
4048 2002-02-06 Roland McGrath <roland@frob.com>
4050 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
4051 to here if 2.0 compatibility enabled ...
4052 (libc: GLIBC_2.1.3): ... from here.
4054 2002-02-15 Ulrich Drepper <drepper@redhat.com>
4056 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
4058 * elf/dl-close.c (_dl_close): Likewise.
4060 2002-02-14 Ulrich Drepper <drepper@redhat.com>
4062 * elf/Makefile: Add rules to build and run tst-tls8.
4063 * elf/tst-tls8.c: New file.
4064 * elf/tst-tlsmod4.c: New file.
4066 * stdlib/test-a64l.c (tests): Add more test cases.
4068 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
4069 Reported by Walter Harms <WHarms@bfs.de>.
4071 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
4073 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
4074 definitions for struct sigcontext.
4075 Suggested by David Mosberger-Tang.
4077 2002-02-13 Ulrich Drepper <drepper@redhat.com>
4079 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
4080 for removing reference of module in slotinfo list.
4081 (_dl_close): Use remove_slotinfo.
4082 * sysdeps/generic/dl-tls.c: General pretty printing.
4083 (oom): Define only if SHARED.
4084 (_dl_next_tls_modid): Correct starting point for the case we assume
4085 there is a gap. Add missing instruction grouping (doh!). Correct
4086 tests for reaching maximum index.
4087 * elf/Makefile: Add rules to build and run tst-tls7.
4088 * elf/tst-tls7.c: New file.
4089 * elf/tst-tlsmod3.c: New file.
4091 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
4093 * elf/tst-tlsmod2.c: Likewise.
4095 * elf/dl-close.c (_dl_close): When closing an object using TLS
4096 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
4097 true. Increment dl_tls_generation only if we closed any TLS-using
4099 * elf/tst-tls6.c: New file.
4100 * elf/Makefile: Add rules to build and run tst-tls6.
4102 * po/da.po: Update from translation team.
4104 * locale/categories.def: Fix typo [PR libc/2948].
4105 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
4107 * locale/iso-4217.def: Update from official version [PR libc/2950].
4108 * glibcbug.in: Honor TMPDIR [PR libc/2951].
4109 * locale/programs/ld-collate.c (collate_finish): Bail out with a
4110 message if input is too confusion instead of using assert.
4111 (collate_read): Don't crash on unknown symbol [PR libc/2952].
4112 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
4114 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
4115 * elf/tst-tls2.c: Likewise.
4116 * elf/tst-tls3.c: Likewise.
4118 2002-02-13 Jakub Jelinek <jakub@redhat.com>
4120 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
4122 2002-02-13 Ulrich Drepper <drepper@redhat.com>
4124 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
4125 if this is really necessary.
4127 * elf/dl-close.c (_dl_close): Implement freeing entries in the
4129 (free_mem): Free memory for the slotinfo array if possible.
4131 2002-02-12 Andreas Schwab <schwab@suse.de>
4133 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
4135 2002-02-12 Ulrich Drepper <drepper@redhat.com>
4137 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
4139 (oom): New function.
4140 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
4141 (_dl_determine_tlsoffset): Likewise.
4142 (_dl_allocate_tls): Likewise.
4143 (__TLS_GET_ADDR): Define if not already defined.
4144 (_dl_tls_symaddr): New function.
4145 (allocate_and_init): New function.
4146 (__tls_get_addr): Actually implement handling of generation counter
4147 and deferred allocation.
4148 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
4149 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
4151 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
4152 Declare _dl_tls_symaddr.
4153 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
4155 * include/link.h (struct link_map): Remove l_tls_nextimage and
4157 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
4158 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
4159 (_dl_vsym): Likewise.
4160 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
4162 (dl_main): Allow PT_TLS be present for empty segment. Remove
4163 nextimage list handling. Instead add all modules using TLS to
4164 dl_tls_dtv_slotinfo_list.
4165 * elf/dl-open.c (dl_open_worker): After successfully loading all
4166 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
4167 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
4168 empty segment don't do anything. Remove handling of initimage list.
4169 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
4170 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
4171 * elf/dl-minimal.c: Define __libc_memalign.
4172 * elf/dl-support.c: Remove _dl_initimage_list. Add
4173 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
4175 * include/stdlib.h: Declare __libc_memalign.
4177 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
4178 * elf/tst-tls4.c: New file.
4179 * elf/tst-tls5.c: New file.
4180 * elf/tst-tlsmod2.c: New file.
4182 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
4184 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
4186 * elf/tst-tls1.c: Use test-skeleton.c.
4187 * elf/tst-tls2.c: Likewise.
4188 * elf/tst-tls3.c: Likewise.
4190 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
4192 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
4194 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
4196 2002-02-10 Ulrich Drepper <drepper@redhat.com>
4198 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
4200 * elf/tst-tls3.c: New file.
4201 * elf/tst-tlsmod1.c: New file.
4202 * elf/Makefile: Add rules to build and run tst-tls3.
4204 * sysdeps/i386/dl-machine.h: Include <tls.h>.
4205 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
4208 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
4210 * po/fr.po: Update from translation team.
4212 * elf/tls-macros.h: Add alternative macros for use in PIC.
4214 * elf/dl-lookup.c: Include <tls.h>.
4215 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
4217 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
4218 required by passing pointer to last element of the list.
4220 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
4221 l_tls_initimage to a place where it actually is performed.
4223 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
4224 after globfree() calls.
4226 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
4227 (openaux): Pass open_mode as new last argument to _dl_map_object.
4228 (_dl_map_object_deps): Add new argument open_mode. Initialize
4229 open_mode element of args variable with it.
4230 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
4231 _dl_map_object_deps.
4232 * elf/rtld.c (dl_main): Add zero as last parameter to
4233 _dl_map_object_deps call.
4234 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
4235 * elf/nodlopen2.c: New file.
4236 * elf/nodlopenmod2.c: New file.
4237 * elf/Makefile: Add rules to build and run nodlopen2.
4239 * elf/tst-tls1.c: Move TLS helper macros to...
4240 * elf/tls-macros.h: ...here. New file.
4241 * elf/tst-tls2.c: New file.
4242 * elf/Makefile (tests): Add tst-tls2.
4243 (distribute): Add tls-macros.h.
4245 * po/sv.po: Update from translation team.
4247 * elf/tst-tls1.c (main): Add complete set of tests. Split
4248 architecture specific definitions from the actual test code.
4250 * po/tr.po: Update from translation team.
4252 2002-02-09 Ulrich Drepper <drepper@redhat.com>
4254 * elf/Makefile (tests): Add tst-tls1.
4255 * elf/tst-tls1.c: New file.
4257 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
4258 alignment of TCB for now.
4260 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
4261 initialization image for the application itself.
4263 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
4264 loop to initialize TLS block.
4266 2002-02-08 Richard Henderson <rth@redhat.com>
4268 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
4269 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
4271 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
4273 2002-02-09 Jakub Jelinek <jakub@redhat.com>
4275 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
4277 2002-02-08 Ulrich Drepper <drepper@redhat.com>
4279 * po/ca.po: Update from translation team.
4280 * po/sk.po: Likewise.
4282 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
4283 (dl_main): Move dtv/static TLS handling before relocation.
4284 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
4285 TLS_INIT_TP to allocate and install the dtv/static TLS block.
4286 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
4287 so far uses TLS initialize GL(dl_tls_static_size) and
4288 GL(dl_tls_static_align) to account for the TCB.
4289 (_dl_allocate_tls): New function.
4290 * sysdeps/generic/ldsodefs.h (rtld_global): Add
4291 _dl_initial_dtv_malloced.
4293 * configure.in: Test for __builtin_memset more realistically.
4295 * csu/version.c (banner): If TLS support is available say so.
4297 2002-02-04 H.J. Lu <hjl@gnu.org>
4299 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
4301 (__dl_runtime_resolve): Likewise.
4303 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
4306 2001-11-15 H.J. Lu <hjl@gnu.org>
4308 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
4309 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
4311 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
4313 2002-02-07 H.J. Lu <hjl@gnu.org>
4315 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
4317 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
4320 2002-02-07 Ulrich Drepper <drepper@redhat.com>
4322 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
4324 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
4325 ___tls_get_addr_internal.
4326 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
4328 * po/ko.po: Update from translation team.
4330 2002-02-07 Jakub Jelinek <jakub@redhat.com>
4332 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
4333 attribute, change __pad{1,2} type to unsigned int.
4334 (struct stat64): Remove packed attribute.
4336 2002-02-07 Ulrich Drepper <drepper@redhat.com>
4338 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
4340 2002-02-07 Andreas Schwab <schwab@suse.de>
4342 * configure.in: Fix check for -zcombreloc.
4344 2002-02-06 H.J. Lu <hjl@gnu.org>
4346 * config.h.in (HAVE_BUILTIN_MEMSET): New.
4347 * configure.in: Check if __builtin_memset really works.
4348 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
4349 __GNUC_PREREQ (2, 96) before using __builtin_memset.
4351 2002-02-06 Jakub Jelinek <jakub@redhat.com>
4353 * io/bug-ftw3.c (main): Don't try the test if root.
4355 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4357 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
4359 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
4360 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
4361 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
4363 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
4364 a weak alias for __clone.
4365 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
4366 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
4367 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
4368 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
4369 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
4370 a weak alias for __mmap64.
4372 2002-02-05 H.J. Lu <hjl@gnu.org>
4374 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
4375 (atomic_add): Likewise.
4376 (compare_and_swap): Likewise.
4377 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
4379 2002-02-07 Ulrich Drepper <drepper@redhat.com>
4381 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
4383 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
4384 alignment of the TCB and store total size and alignment of static
4385 TLS block in _dl_tls_static_size and _dl_tls_static_align.
4386 tls_index is a typedef.
4387 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
4388 _dl_tls_static_align.
4389 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
4390 * elf/dl-support.c: Define _dl_tls_static_size and
4391 _dl_tls_static_align.
4393 2002-02-06 Ulrich Drepper <drepper@redhat.com>
4395 * configure.in: Add --without-tls option.
4396 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
4397 --without-tls is given.
4399 * sysdeps/generic/dl-tls.c: Include <tls.h>.
4401 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
4403 2002-02-06 Roland McGrath <roland@frob.com>
4405 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
4406 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
4408 * scripts/versions.awk: Improve error message for missing version.
4409 Each version inherits from the last one only if they have the same
4410 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
4411 but not GLIBC_x and FOO_y.
4413 * scripts/firstversions.awk: Handle libraries that don't have each
4414 particular version named in the third column of shlib-versions.
4416 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
4418 2002-02-06 Ulrich Drepper <drepper@redhat.com>
4420 * Versions.def [ld]: Add GLIBC_2.3.
4421 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
4422 * elf/Makefile (dl-routines): Add dl-tls.
4423 (distribute): Add dl-tls.h.
4424 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4425 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4426 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
4427 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
4428 along with the other info in the link map. Change queueing of init
4429 images for double linked list. Use _dl_next_tls_modid to compute
4431 * elf/rtld.c (_dl_start_final): Store alignment requirement
4432 along with the other info in rtld map and executable map.
4433 (dl_main): Add ld.so to the init image list if necessary. Compute
4434 final module ID with _dl_next_tls_modid.
4435 * include/link.h (struct link_map): Add l_tls_previmage and
4437 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4438 * sysdeps/i386/elf/Versions: New file.
4439 * sysdeps/generic/dl-tls.c: New file.
4440 * sysdeps/generic/dl-tls.h: New file.
4441 * sysdeps/i386/dl-tls.h: New file.
4443 2002-02-06 Roland McGrath <roland@frob.com>
4445 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
4446 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
4448 2002-01-05 Roland McGrath <roland@frob.com>
4450 * sysdeps/mach/configure.in: New file.
4451 * sysdeps/mach/configure: New generated file.
4453 * mach/Makefile (user-interfaces): Remove default_pager_helper.
4454 It has never been used by anything.
4456 2002-02-06 H.J. Lu <hjl@gnu.org>
4458 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
4461 2002-02-06 Ulrich Drepper <drepper@redhat.com>
4463 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
4464 attribute((packed)) to counter stupid people misusing gcc options.
4465 (struct stat64): Likewise.
4467 2002-02-05 Ulrich Drepper <drepper@redhat.com>
4469 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
4470 the variables which are used as booleans.
4472 2002-02-06 Andreas Jaeger <aj@suse.de>
4474 * include/libc-symbols.h (INTUSE): Renamed from INT.
4475 * elf/dl-deps.c: Change users.
4476 * sysdeps/generic/dl-sysdep.c: Likewise.
4477 * sysdeps/generic/dl-cache.c: Likewise.
4478 * elf/dl-reloc.c: Likewise.
4479 * elf/rtld.c: Likewise.
4480 * elf/dl-version.c: Likewise.
4481 * elf/dl-load.c: Likewise.
4482 * elf/dl-dst.h: Likewise.
4483 * elf/dl-init.c: Likewise.
4484 * elf/dl-error.c: Likewise.
4485 * elf/dl-fini.c: Likewise.
4486 * elf/dl-runtime.c: Likewise.
4487 * elf/do-lookup.h: Likewise.
4489 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
4491 * stdio-common/_itowa.h: Likewise.
4493 2002-02-05 Ulrich Drepper <drepper@redhat.com>
4495 * elf/dl-minimal.c: Define _itoa_lower_digits.
4497 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
4500 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
4501 loading modules with the DF_STATIC_TLS flag set.
4502 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
4504 * include/link.h (struct link_map): Add l_flags field.
4505 * elf/elf.h (DF_STATIC_TLS): New definition.
4507 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
4508 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
4510 * elf/rtld.c (process_dl_debug): Correct printing help message.
4511 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
4514 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
4515 definition and pass &errno in use of this variable.
4516 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
4518 2002-02-04 Andreas Schwab <schwab@suse.de>
4520 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
4521 * locale/programs/charmap-dir.c: Wrap calls that output messages
4522 with WITH_CUR_LOCALE. Include "localedef.h" first.
4523 * locale/programs/charmap.c: Likewise.
4524 * locale/programs/ld-address.c: Likewise.
4525 * locale/programs/ld-collate.c: Likewise.
4526 * locale/programs/ld-ctype.c: Likewise.
4527 * locale/programs/ld-identification.c: Likewise.
4528 * locale/programs/ld-measurement.c: Likewise.
4529 * locale/programs/ld-messages.c: Likewise.
4530 * locale/programs/ld-monetary.c: Likewise.
4531 * locale/programs/ld-name.c: Likewise.
4532 * locale/programs/ld-numeric.c: Likewise.
4533 * locale/programs/ld-paper.c: Likewise.
4534 * locale/programs/ld-telephone.c: Likewise.
4535 * locale/programs/ld-time.c: Likewise.
4536 * locale/programs/linereader.c: Likewise.
4537 * locale/programs/linereader.h: Likewise.
4538 * locale/programs/localedef.c: Likewise.
4539 * locale/programs/locfile.c: Likewise.
4540 * locale/programs/repertoire.c: Likewise.
4542 2002-02-05 Ulrich Drepper <drepper@redhat.com>
4544 * elf/rtld.c (_dl_start_final): Determine load address to locate
4545 ehdr with GL(dl_rtld_map).l_map_start.
4547 * po/ca.po: Update from translation team.
4549 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
4550 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
4552 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4554 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
4556 2002-02-04 Ulrich Drepper <drepper@redhat.com>
4558 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
4559 * include/link.h (struct link_map): Add various members for TLS
4561 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4562 _rtld_tlsoffset, add _dl_initimage_list.
4563 * sysdeps/i386/dl-lookupcfg.h: New file.
4564 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
4565 TLS relocation. When using TLS we now use RESOLVE_MAP.
4566 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
4569 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
4572 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
4573 thread-pointer as soon as possible.
4574 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
4575 elements in rtld_global.
4576 * sysdeps/generic/tls.h: New file.
4577 * elf/Makefile (distribute): Add tls.h.
4578 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
4579 relocations. Not complete yet.
4581 * resolv/resolv.h: Allow user to define __need_res_state and only
4582 define __res_start structure then.
4583 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
4585 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4586 dl_cpuclock_offset initialization to _dl_start_final.
4587 (_dl_show_auxv): Avoid unnecessary sign extension.
4588 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4590 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4592 * config.h.in: Add HAVE_TLS_SUPPORT.
4593 * sysdeps/i386/elf/configure.in: New file.
4595 2002-02-03 Andreas Schwab <schwab@suse.de>
4597 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4598 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
4600 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
4602 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4603 alloca if the memory reqirements are too high.
4605 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4607 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4608 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4609 the former is available anyway and speed isn't important here.
4610 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4611 * elf/dl-version.c (match_symbol): Likewise.
4612 (_dl_check_map_versions): Likewise.
4613 * elf/rtld.c (process_envvars): Likewise.
4614 (print_statistics): Likewise.
4615 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4616 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
4617 bases. Add assert to catch uses of unimplemented features.
4618 (__strsep): Add assert to catch uses of unimplemented features.
4619 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
4620 and avoid inline optimization.
4621 * elf/rtld.c (process_envvars): Likewise.
4622 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4623 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4624 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4626 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4628 * stdio-common/_itoa.h: Minor simplifications of the code.
4629 * stdio-common/_itoa.c: Likewise.
4631 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4632 instead of _dl_printf for debugging info output.
4634 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4635 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4637 2002-02-01 H.J. Lu <hjl@gnu.org>
4639 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
4640 (atomic_add): Likewise.
4641 (compare_and_swap): Return 0 only when failed to compare. Use
4644 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4647 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
4649 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4651 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4653 * elf/dl-minimal.c (__strsep): New minimal implementation.
4655 2002-02-02 Paul Eggert <eggert@twinsun.com>
4657 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4658 (__mktime_internal): If no tm_isdst is requested, prefer solutions
4659 with tm_isdst > 0 when the requested time falls within a
4660 spring-forward gap [PR libc/2894].
4662 2002-02-03 Andreas Schwab <schwab@suse.de>
4664 * stdio-common/tst-rndseek.c: Increase timeout.
4666 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4668 Change ld.so to not use functions which are exported. One cannot
4669 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
4671 * include/libc-symbols.h: Define INT and INTDEF.
4672 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4673 _dl_signal_error_internal, _dl_map_object_internal,
4674 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4675 _dl_lookup_versioned_symbol_internal,
4676 _dl_relocate_object_internal, _dl_debug_state_internal,
4677 _dl_start_profile_internal, and _dl_unload_cache_internal.
4678 * include/dlfcn.h: Declare _dl_catch_error_internal.
4679 * elf/rtld.c: Use INT for calls to any of the *_internal functions
4680 above. Add INTDEF to function definitions.
4681 * elf/dl-debug.c: Likewise.
4682 * elf/dl-deps.c: Likewise.
4683 * elf/dl-dst.h: Likewise.
4684 * elf/dl-error.c: Likewise.
4685 * elf/dl-fini.c: Likewise.
4686 * elf/dl-init.c: Likewise.
4687 * elf/dl-load.c: Likewise.
4688 * elf/dl-lookup.c: Likewise.
4689 * elf/dl-misc.c: Likewise.
4690 * elf/dl-open.c: Likewise.
4691 * elf/dl-profile.c: Likewise.
4692 * elf/dl-reloc.c: Likewise.
4693 * elf/dl-runtime.c: Likewise.
4694 * elf/dl-version.c: Likewise.
4695 * elf/do-lookup.h: Likewise.
4696 * sysdeps/generic/dl-cache.c: Likewise.
4697 * sysdeps/generic/dl-sysdep.c: Likewise.
4698 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4699 instead of _dl_init.
4700 * sysdeps/arm/dl-machine.h: Likewise.
4701 * sysdeps/cris/dl-machine.h: Likewise.
4702 * sysdeps/hppa/dl-machine.h: Likewise.
4703 * sysdeps/i386/dl-machine.h: Likewise.
4704 * sysdeps/ia64/dl-machine.h: Likewise.
4705 * sysdeps/m68k/dl-machine.h: Likewise.
4706 * sysdeps/mips/dl-machine.h: Likewise.
4707 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4708 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4709 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4710 * sysdeps/sh/dl-machine.h: Likewise.
4711 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4712 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4713 * sysdeps/x86_64/dl-machine.h: Likewise.
4714 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4716 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4717 and _dl_debug_initialize.
4719 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
4721 * elf/rtld.c (dl_main): Avoid strrchr.
4722 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4723 result of readlink. Search from the back for '/'.
4725 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4726 strncpy if possible.
4728 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
4730 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
4731 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4732 strspn, and strcspn.
4733 (process_envvars): Don't use strcspn.
4735 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4736 (_dl_dst_substitute): Likewise.
4738 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4740 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4741 code which is never used when relocating ld.so itself.
4743 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4744 starting ld.so itself. Move l_addr variable initialization closer
4746 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
4748 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4750 * Versions.def (libc): Add GLIBC_PRIVATE.
4751 (libdb, libnss_db, libdb1): Remove.
4752 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4753 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4754 (libpthread): Add GLIBC_PRIVATE.
4755 (libresolv): Likewise, remove GLIBC_2.1.
4756 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4757 GLIBC_2.2.3, GLIBC_2.3.
4758 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4759 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4760 _dl_sym, _dl_vsym): Likewise.
4761 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4762 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4763 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4764 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4765 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4766 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4767 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4768 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4770 (_dl_object_relocation_scope): Remove.
4771 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4772 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4773 __gconv_cache): Move to GLIBC_PRIVATE.
4774 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4775 __internal_setnetgrent): Likewise.
4776 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4777 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4778 * locale/Versions (__collate_element_hash, __collate_element_strings,
4779 __collate_symbol_classes, __collate_symbol_hash,
4780 __collate_symbol_strings, _nl_current_LC_COLLATE,
4781 _nl_current_LC_CTYPE): Likewise.
4782 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4783 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4784 (libnss_nis, libnss_nisplus): Likewise.
4785 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4786 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4787 (libnss_files): Move all symbols to GLIBC_PRIVATE.
4788 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4789 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4790 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4791 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4792 __ns_get16, __ns_samename): Likewise.
4793 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4794 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
4796 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
4797 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
4798 __libc_connect): Likewise.
4799 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
4801 * stdlib/Versions (__libc_system): Likewise.
4802 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
4803 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
4804 * sysdeps/ia64/fpu/Versions: Likewise.
4805 * sysdeps/ia64/Versions: Likewise.
4806 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4807 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
4809 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
4810 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
4811 __libc_sigaction): Likewise.
4812 * termios/Versions (__libc_tcdrain): Likewise.
4814 * misc/sys/cdefs (__attribute_noinline__): Define.
4815 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
4816 __attribute_noinline__.
4818 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
4819 * elf/dl-xstat64.c: New file.
4820 * elf/dl-fxstat64.c: New file.
4821 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
4822 don't export __fxstat64 at multiple versions.
4823 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
4824 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
4826 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
4828 * locale/program/ld-collate.c (collate_finish): Assign a wide
4829 char collation sequence value to multi character collating
4830 elements, and avoid over writing by non-character elements.
4832 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4834 * elf/Makefile (distribute): Add dl-procinfo.c.
4835 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
4836 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
4838 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4840 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
4842 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
4843 _rtld_global struct.
4844 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4845 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4846 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4847 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
4848 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
4849 _dl_fpu_control_set): Remove unused externs.
4850 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
4851 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
4852 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
4853 related variables in _rtld_global struct.
4854 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4855 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
4858 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4860 * sysdeps/generic/dl-procinfo.c: New file.
4862 2002-02-01 Andreas Schwab <schwab@suse.de>
4864 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
4866 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4868 * elf/rtld.c (_dl_start): Mark as internal_function.
4869 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
4871 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
4872 General pretty printing.
4874 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4876 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
4877 * elf/dl-reloc.c: Pretty printing.
4878 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
4879 procinfo-related variables in rtld_global struct.
4880 * elf/dl-support.c: Likewise.
4881 * elf/rtld.c: Likewise.
4882 * sysdeps/i386/i686/Makefile: Likewise.
4883 * sysdeps/i386/i686/hp-timing.c: Likewise.
4884 * sysdeps/i386/i686/hp-timing.h: Likewise.
4885 * sysdeps/ia64/Makefile: Likewise.
4886 * sysdeps/ia64/hp-timing.c: Likewise.
4887 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4888 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4889 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
4890 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
4891 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4892 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
4893 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4894 * sysdeps/x86_64/Makefile: Likewise.
4896 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4897 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
4898 _dl_debug_fd to rtld_global.
4899 * elf/Versions: Likewise.
4900 * elf/dl-close.c: Likewise.
4901 * elf/dl-iteratephdr.c: Likewise.
4902 * elf/dl-lookup.c: Likewise.
4903 * elf/dl-misc.c: Likewise.
4904 * elf/dl-open.c: Likewise.
4905 * elf/dl-support.c: Likewise.
4906 * elf/do-lookup.h: Likewise.
4907 * elf/rtld.c: Likewise.
4908 * sysdeps/generic/dl-cache.c: Likewise.
4909 * sysdeps/generic/dl-sysdep.c: Likewise.
4910 * sysdeps/ia64/Versions: Likewise.
4911 * sysdeps/unix/clock_gettime.c: Likewise.
4912 * sysdeps/unix/clock_settime.c: Likewise.
4913 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4914 * sysdeps/sparc/Versions: Removed.
4915 * sysdeps/i386/i686/Versions : Removed.
4916 * sysdeps/x86_64/Versions: Removed.
4917 * configure.in: Define HAVE_PROTECTED if .protected is available.
4918 * config.h.in: Add entry for HAVE_PROTECTED.
4920 2002-01-31 Jakub Jelinek <jakub@redhat.com.
4922 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
4923 code in struct _rtld_global. Export this struct, remove all
4924 exports for the signal variables.
4925 * sysdeps/arm/dl-machine: Likewise.
4926 * sysdeps/generic/dl-origin: Likewise.
4927 * sysdeps/generic/dl-sysdep: Likewise.
4928 * sysdeps/generic/dl-cache: Likewise.
4929 * sysdeps/hppa/dl-fptr: Likewise.
4930 * sysdeps/hppa/dl-machine: Likewise.
4931 * sysdeps/cris/dl-machine: Likewise.
4932 * sysdeps/i386/dl-machine: Likewise.
4933 * sysdeps/ia64/dl-machine: Likewise.
4934 * sysdeps/m68k/dl-machine: Likewise.
4935 * sysdeps/mach/hurd/dl-sysdep: Likewise.
4936 * sysdeps/mips/mips64/dl-machine: Likewise.
4937 * sysdeps/mips/dl-machine: Likewise.
4938 * sysdeps/powerpc/elf/libc-start: Likewise.
4939 * sysdeps/powerpc/dl-machine: Likewise.
4940 * sysdeps/powerpc/dl-start: Likewise.
4941 * sysdeps/sparc/sparc32/dl-machine: Likewise.
4942 * sysdeps/sparc/sparc64/dl-machine: Likewise.
4943 * sysdeps/sh/dl-machine: Likewise.
4944 * sysdeps/s390/s390-32/dl-machine: Likewise.
4945 * sysdeps/s390/s390-64/dl-machine: Likewise.
4946 * sysdeps/unix/sysv/aix/libc-start: Likewise.
4947 * sysdeps/unix/sysv/aix/start-libc: Likewise.
4948 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
4949 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
4950 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
4951 * sysdeps/x86_64/dl-machine: Likewise.
4953 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4955 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
4958 2002-01-31 Andreas Schwab <schwab@suse.de>
4960 * sysdeps/posix/readv.c: Check for ssize_t overflow.
4962 2002-01-31 Andreas Schwab <schwab@suse.de>
4964 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
4965 reference to _dl_pagesize.
4967 2002-01-30 Ulrich Drepper <drepper@redhat.com>
4969 * Versions.def [ld]: Add GLIBC_2.3.
4970 * elf/dl-addr.c: Move global variables for SHARED code in struct
4971 _rtld_global. Export this struct, remove all exports for the
4973 * elf/dl-close.c: Likewise.
4974 * elf/dl-conflict.c: Likewise.
4975 * elf/dl-debug.c: Likewise.
4976 * elf/dl-deps.c: Likewise.
4977 * elf/dl-dst.h: Likewise.
4978 * elf/dl-error.c: Likewise.
4979 * elf/dl-fini.c: Likewise.
4980 * elf/dl-init.c: Likewise.
4981 * elf/dl-iteratephdr.c: Likewise.
4982 * elf/dl-libc.c: Likewise.
4983 * elf/dl-load.c: Likewise.
4984 * elf/dl-lookup.c: Likewise.
4985 * elf/dl-minimal.c: Likewise.
4986 * elf/dl-object.c: Likewise.
4987 * elf/dl-open.c: Likewise.
4988 * elf/dl-profile.c: Likewise.
4989 * elf/dl-profstub.c: Likewise.
4990 * elf/dl-reloc.c: Likewise.
4991 * elf/dl-runtime.c: Likewise.
4992 * elf/dl-support.c: Likewise.
4993 * elf/dl-sym.c: Likewise.
4994 * elf/dl-version.c: Likewise.
4995 * elf/do-lookup.h: Likewise.
4996 * elf/do-rel.h: Likewise.
4997 * elf/dynamic-link.h: Likewise.
4998 * elf/rtld.c: Likewise.
4999 * sysdeps/generic/dl-cache.c: Likewise.
5000 * sysdeps/generic/dl-sysdep.c: Likewise.
5001 * sysdeps/generic/ldsodefs.h: Likewise.
5002 * sysdeps/generic/libc-start.c: Likewise.
5003 * sysdeps/i386/dl-machine.h: Likewise.
5004 * sysdeps/ia64/dl-fptr.c: Likewise.
5005 * sysdeps/ia64/dl-machine.h: Likewise.
5006 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
5007 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
5008 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5009 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
5010 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
5011 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5012 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
5013 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
5015 2002-01-29 Ulrich Drepper <drepper@redhat.com>
5017 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
5019 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
5021 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
5023 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
5025 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
5027 2002-01-29 Ben Collins <bcollins@debian.org>
5029 * string/bits/string2.h (__mempcpy): Protect size arg for
5030 addition when using __builtin_memcpy.
5032 2002-01-29 Ulrich Drepper <drepper@redhat.com>
5034 * stdlib/Makefile (tests): Add tst-qsort.
5035 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
5037 * manual/signal.texi (Process Signal Mask): Document that
5038 pthread_sigmask, not sigprocmask, must be used in MT programs.
5039 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
5041 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
5043 * misc/Makefile (tests): Add tst-hsearch.
5044 * misc/tst-hsearch.c: New file.
5046 2002-01-18 Wolfram Gloger <wg@malloc.de>
5048 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
5049 * malloc/malloc.h: Likewise.
5050 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
5051 * malloc/arena.c: New file.
5052 * malloc/hooks.c: New file.
5053 * malloc/tst-mallocstate.c: New file.
5054 * malloc/Makefile: Add new testcase tst-mallocstate.
5055 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
5057 2002-01-28 Ulrich Drepper <drepper@redhat.com>
5059 * stdlib/msort.c: Remove last patch. The optimization violates the
5060 same rule which qsort.c had problems with.
5062 2002-01-27 Paul Eggert <eggert@twinsun.com>
5064 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
5065 to a pivot element that lies outside the array to be sorted, as
5066 ISO C99 requires that the comparison function be called only with
5067 addresses of array elements [PR libc/2880].
5069 2002-01-28 Ulrich Drepper <drepper@redhat.com>
5071 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
5072 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
5074 * timezone/asia: Update from tzdata2002b.
5075 * timezone/australasia: Likewise.
5076 * timezone/backward: Likewise.
5077 * timezone/europe: Likewise.
5078 * timezone/leapseconds: Likewise.
5079 * timezone/iso3166.tab: Likewise.
5080 * timezone/zone.tab: Likewise.
5082 2002-01-23 Richard Henderson <rth@redhat.com>
5084 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
5086 2002-01-28 Ulrich Drepper <drepper@redhat.com>
5088 * string/strxfrm.c: Allocate one more byte for rulearr and clear
5089 this element [PR libc/2855].
5091 * string/strcoll.c: Handle zero-length arguments specially
5094 2002-01-23 Jakub Jelinek <jakub@redhat.com>
5096 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
5097 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
5098 short lengths and constant src.
5099 (strcpy): Don't optimize for gcc 3.0+.
5100 (__stpcpy): For gcc 3.0+, don't use
5101 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
5102 for short string literal src.
5104 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5106 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5109 2001-01-22 Paul Eggert <eggert@twinsun.com>
5111 * manual/llio.texi (Linked Channels, Cleaning Streams):
5112 Make it clearer that a just-opened input stream might need cleaning.
5114 2002-01-21 H.J. Lu <hjl@gnu.org>
5116 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
5117 Don't use label at end of compound statement.
5119 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
5121 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
5122 Remove test for negative integer arg; sin_pi does it correctly.
5124 2002-01-20 Ulrich Drepper <drepper@redhat.com>
5126 * nscd/Makefile (distribute): Filter out xmalloc.c.
5128 2002-01-19 Ulrich Drepper <drepper@redhat.com>
5130 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
5131 Set offset if read end wasn't the buffer end.
5132 (_IO_file_seekoff_mmap): New function.
5133 (_IO_file_xsgetn_mmap): New function.
5134 (_IO_file_jumps_mmap): Use the two new functions.
5135 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
5137 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
5138 _IO_file_underflow_mmap.
5139 * libio/iofopen.c: Don't position file descriptor at end of file.
5140 * libio/tst-widetext.c: Improve error messages.
5141 * stdio-common/tst-rndseek.c: Likewise.
5143 2002-01-18 Ulrich Drepper <drepper@redhat.com>
5145 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
5146 end of enum for !_GNU_SOURCE.
5147 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
5148 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
5149 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
5150 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
5151 values unless _GNU_SOURCE.
5153 * iconvdata/tcvn5712-1.c: Minor cleanups.
5155 2002-01-18 Andreas Schwab <schwab@suse.de>
5157 * sysdeps/unix/sysv/linux/configure.in
5158 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
5160 2002-01-16 Roger Sayle <roger@eyesopen.com>
5162 * stdlib/msort.c (msort_with_tmp): Replace implementation with
5163 more efficient "Towers of Hanoi" mergesort.
5164 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
5165 for generic, sizeof(int) and sizeof(long) variants respectively.
5167 2002-01-17 Ulrich Drepper <drepper@redhat.com>
5169 * manual/syslog.texi (openlog): Describe possible problems with
5171 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
5173 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
5174 * nscd/connections.c (begin_drop_privileges): New function.
5175 (finish_drop_privileges): New function.
5176 (nscd_init): Call the new functions which also install all groups
5177 for the server user.
5178 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
5179 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
5181 2002-01-17 H.J. Lu <hjl@gnu.org>
5183 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
5186 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5188 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
5189 instructions for pointer operations.
5190 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
5192 2002-01-17 Andreas Jaeger <aj@suse.de>
5194 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
5195 __uint128_t build-in.
5197 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
5198 PowerPC, sync with 2.2 branch.
5200 2002-01-16 Ulrich Drepper <drepper@redhat.com>
5202 * posix/getconf.c: Update copyright year.
5203 * nss/getent.c: Likewise.
5204 * nscd/nscd_nischeck.c: Likewise.
5205 * iconv/iconvconfig.c: Likewise.
5206 * iconv/iconv_prog.c: Likewise.
5207 * elf/ldconfig.c: Likewise.
5208 * catgets/gencat.c: Likewise.
5209 * csu/version.c: Likewise.
5210 * elf/ldd.bash.in: Likewise.
5211 * elf/sprof.c (print_version): Likewise.
5212 * locale/programs/locale.c: Likewise.
5213 * locale/programs/localedef.c: Likewise.
5214 * nscd/nscd.c (print_version): Likewise.
5215 * debug/xtrace.sh: Likewise.
5216 * malloc/memusage.sh: Likewise.
5217 * malloc/mtrace.pl: Likewise.
5219 2002-01-16 Andreas Schwab <schwab@suse.de>
5221 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
5222 reliably remove "-ia64" from rtld name.
5224 2002-01-16 Ulrich Drepper <drepper@redhat.com>
5226 * iconvdata/gb18030.c: Bug fixes and support for more characters.
5227 Patch by Yu Shao <yshao@redhat.com>.
5229 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
5231 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
5232 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
5233 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
5235 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
5237 * sysdeps/s390/fpu/libm-test-ulps: Update.
5239 2002-01-11 Ulrich Drepper <drepper@redhat.com>
5241 * elf/elf.h: Update x86 relocations.
5243 2002-01-10 Ulrich Drepper <drepper@redhat.com>
5245 * locale/programs/charmap.c (new_width): Check whether byte
5246 sequences for both ends of range have the same length.
5248 2002-01-09 Jakub Jelinek <jakub@redhat.com>
5250 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
5252 2002-01-09 Jakub Jelinek <jakub@redhat.com>
5254 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
5256 (__full_ieee754_sqrt): Add __attribute_used__.
5258 2002-01-10 Ulrich Drepper <drepper@redhat.com>
5260 * sysdeps/generic/group_member.c (__group_member): Also check
5261 groups[0] [PR libc/2781].
5263 2002-01-08 Ulrich Drepper <drepper@redhat.com>
5265 * Makefile (distribute): Add scripts/cpp.
5266 * elf/Makefile (distribute): Add reldep6mod[01234].c,
5267 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
5268 unwind-dw2-fde.h, and dwarf2.h.
5269 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
5270 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
5271 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
5272 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
5274 2002-01-07 Roland McGrath <roland@frob.com>
5276 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
5277 volatile on type of ARGC so the compiler doesn't get clever.
5279 2002-01-07 Andreas Jaeger <aj@suse.de>
5281 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
5282 * sysdeps/i386/bits/byteswap.h: Likewise.
5283 * sysdeps/ia64/bits/byteswap.h: Likewise.
5284 * sysdeps/m68k/bits/byteswap.h: Likewise.
5285 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
5286 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
5288 2002-01-02 Bruno Haible <bruno@clisp.org>
5290 * intl/plural.y: Fix %expect count.
5292 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5294 * elf/Makefile (routines, shared-only-routines): Add
5295 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
5296 * elf/elf.h (PT_GNU_EH_FRAME): Define.
5297 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
5298 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
5299 Optimize if .eh_frame section contains no FDEs.
5300 (__register_frame, __deregister_frame_info_bases,
5301 __deregister_frame): Likewise.
5302 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
5303 DW_CFA_restore handling.
5305 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
5307 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
5309 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
5310 for x < 0.25 and restore original range reduction method.
5311 (__ieee754_lgammal_r): Make sure signgam is set before returning.
5313 2002-01-07 Ulrich Drepper <drepper@redhat.com>
5315 * libio/fileops.c (_IO_file_underflow_mmap): New function.
5316 (_IO_file_close_mmap): New function.
5317 (_IO_file_jumps_mmap): New variable.
5318 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
5319 trying to convert rest of byte buffer.
5320 (_IO_wfile_underflow_mmap): New function.
5321 (_IO_wfile_jumps_mmap): New variable.
5322 * libio/iofopen.c (__fopen_maybe_mmap): New function.
5323 (__fopen_internal): New function. Split out from _IO_new_fopen.
5324 (_IO_new_fopen): Call __fopen_internal.
5325 * libio/iofopen64.c: Just call __fopen_internal.
5326 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
5328 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
5329 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
5330 _IO_file_close_mmap.
5332 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
5333 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
5335 * stdio-common/Makefile (tests): Add tst-rndseek.
5336 * stdio-common/tst-rndseek.c: New file.
5338 2002-01-05 Roland McGrath <roland@frob.com>
5340 * config.h.in (HAVE_MIG_RETCODE): New #undef.
5341 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
5342 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
5343 * sysdeps/mach/hurd/configure: Regenerated.
5345 2002-01-03 Ulrich Drepper <drepper@redhat.com>
5347 * elf/elf.h: Add more TLS definitions.
5349 2002-01-02 Ulrich Drepper <drepper@redhat.com>
5351 * include/features.h (__GLIBC_MINOR__): Bump to 3.
5353 2002-01-02 Roland McGrath <roland@frob.com>
5355 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
5356 __sigisemptyset. Don't use MASK uninitialized.
5358 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
5359 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
5360 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
5361 __sigdelset, __sigaddset, __sigorset.
5363 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
5364 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
5366 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
5367 _hurd_ports is null.
5369 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
5370 for old CMU and new OSF Mach interface flavors.
5371 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
5372 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5374 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
5376 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
5377 Pass extra arguments to task_create for OSF variant.
5378 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5380 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
5381 conditional on [HAVE_AUX_VECTOR].
5383 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
5384 mach_msg_timeout_t as type of final argument.
5386 * hurd/privports.c (__get_privileged_ports):
5387 Change host_priv_t to mach_port_t in argument type.
5388 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
5391 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
5392 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
5393 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
5394 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
5395 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
5396 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
5398 2002-01-01 Roland McGrath <roland@frob.com>
5400 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
5402 2002-01-01 Ulrich Drepper <drepper@redhat.com>
5404 * include/stdlib.h: Define inlines for the _l variants of the strto*
5407 2002-01-01 Roland McGrath <roland@frob.com>
5409 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
5411 * mach/Machrules (MIG): Set CPP as well as CC.
5413 2001-12-31 Ulrich Drepper <drepper@redhat.com>
5415 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
5416 locale to parse /proc/loadavg [PR libc/2760].
5418 2001-12-31 Jakub Jelinek <jakub@redhat.com>
5420 * elf/dl-conflict.c: Include sys/param.h.
5421 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
5422 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
5424 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
5425 literals to avoid warnings.
5427 2001-12-31 Andreas Jaeger <aj@suse.de>
5429 * configure.in: Don't check for gsed since we do not use it anywhere.
5431 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
5433 * io/fts.c: Update from BSD to fix memory leaks.
5435 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
5437 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
5438 * elf/chroot_canon.c: Likewise.
5439 * elf/dl-object.c: Likewise.
5440 * iconv/iconv_charmap.c: Likewise.
5441 * iconv/iconv_prog.c: Likewise.
5442 * libio/iogetdelim.c: Likewise.
5443 * locale/lc-time.c: Likewise.
5444 * stdlib/canonicalize.c: Likewise.
5445 * sunrpc/svc.c: Likewise.
5446 * sysdeps/generic/glob.c: Likewise.
5448 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5450 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
5451 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
5452 remove high order bit from the program counter.
5453 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
5455 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5457 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
5458 unnecessary code and add missing reloc types.
5459 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
5460 case for reloc type R_390_NONE.
5462 2001-12-28 Andreas Jaeger <aj@suse.de>
5464 * io/bug-ftw3.c: Include string.h for prototypes.
5466 * crypt/md5test.c (main): Remove unused variable.
5468 * dlfcn/modstatic.c: Add prototype to avoid warning.
5470 2001-12-26 Roland McGrath <roland@frob.com>
5472 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
5473 check only (SS->pending & MASK) for the signal to return.
5474 From Jeroen Dekkers <jeroen@dekkers.cx>.
5476 2001-12-22 Roland McGrath <roland@frob.com>
5478 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
5479 Use preprocessor #if conditionals instead of `if' to avoid
5480 warnings about divide by zero in dead code.
5482 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
5483 _hurd_port_init, and __hurd_self_sigstate.
5485 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
5487 2001-12-21 Andreas Jaeger <aj@suse.de>
5489 * elf/dblloadmod1.c: Add prototype to avoid warning.
5490 * elf/dblloadmod2.c: Likewise.
5491 * elf/dblloadmod3.c: Likewise.
5492 * elf/reldepmod5.c: Likewise.
5493 * elf/reldepmod6.c: Likewise.
5495 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
5496 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
5497 used on all architectures.
5499 * sunrpc/svc_tcp.c: Add noreturn attribute for
5500 svctcp_rendezvous_abort.
5501 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
5503 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
5506 2001-12-19 Jakub Jelinek <jakub@redhat.com>
5508 * manual/llio.texi (aio_fsync): Fix a typo.
5509 Patch by Tammy Fox <tfox@redhat.com>.
5511 2001-12-18 Jakub Jelinek <jakub@redhat.com>
5513 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
5514 stack bias from child stack pointer before passing it to clone syscall.
5516 2001-12-18 Ulrich Drepper <drepper@redhat.com>
5518 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
5520 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
5521 Reported by Thorsten Kukuk <kukuk@suse.de>.
5523 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
5526 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
5528 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
5530 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
5531 conforming: return EBADF if file descriptor is invalid and EINVAL
5532 if file descriptor is no valid tty.
5533 * login/tst-grantpt.c: New file.
5534 * login/Makefile (tests): Add tst-grantpt.
5536 2001-12-17 Ulrich Drepper <drepper@redhat.com>
5538 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
5539 different than implemented in last patch.
5540 * io/bug-ftw3.c: Adjust test for changed handling of
5541 inaccessibility of toplevel dir.
5543 2001-12-16 Roland McGrath <roland@frob.com>
5545 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
5546 * grp/initgroups.c (internal_getgrouplist): Likewise.
5548 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
5549 `default:' to silence new GCC warning.
5550 Rewrite cast of lvalue to silence new GCC warning.
5552 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
5554 * sysdeps/mach/hurd/spawni.c: New file, by me with a
5555 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
5557 2001-12-14 Ulrich Drepper <drepper@redhat.com>
5559 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
5560 Patch by Stephen R. van den Berg.
5562 * crypt/md5.h: Define md5_uintptr.
5564 2001-12-13 Ulrich Drepper <drepper@redhat.com>
5566 * libio/tst_swprintf.c (main): Add test for string argument with
5568 * stdio-common/Makefile (tests): Add tst-sprintf.
5569 * stdio-common/tst-sprintf.c: New file.
5571 2001-12-13 Andreas Schwab <schwab@suse.de>
5573 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
5574 zero precision with wide character string format.
5576 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
5578 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
5579 but have a user supplied buffer, return the empty buffer, not NULL.
5581 2001-12-13 Ulrich Drepper <drepper@redhat.com>
5583 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
5584 Patch by Eric Sharkey <sharkey@netrics.com>.
5586 * crypt/md5test.c (main): Add test for multiple calls to
5587 __md5_process_bytes to itererate over input string.
5589 2001-12-12 Ulrich Drepper <drepper@redhat.com>
5591 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5592 from __nis_findfastest. Take timeout value from parameter.
5593 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
5594 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5595 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
5597 2001-12-12 Andreas Jaeger <aj@suse.de>
5599 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5600 combreloc test so that it works in this case.
5602 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
5604 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
5606 * sysdeps/sh/Makefile: New file.
5607 * sysdeps/sh/_mcount.S: New file.
5608 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5609 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5611 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5613 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5614 limitation [PR libc/2564].
5616 2001-12-11 Jakub Jelinek <jakub@redhat.com>
5618 * elf/Makefile (dl-routines): Add conflict.
5619 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5620 (ld.so): Add _begin local symbol.
5621 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5623 * elf/dl-deps.c (_dl_build_local_scope): New.
5624 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5626 * elf/do-rel.h (VALIDX): Define.
5627 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5628 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5630 * elf/dl-conflict.c: New file.
5631 * elf/dl-lookup.c (_dl_debug_bindings): New.
5632 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
5634 (_dl_lookup_symbol_skip): Likewise.
5635 (_dl_lookup_versioned_symbol): Likewise.
5636 (_dl_lookup_versioned_symbol_skip): Likewise.
5637 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5638 define to ElfW(Rel).
5639 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5640 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5642 Don't adjust address dynamic tags if l_addr is 0.
5643 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5644 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5645 (VALIDX, ADDRIDX): Define.
5646 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5647 (dl_main): Print library list for LD_TRACE_PRELINKING.
5648 If prelinking information can be used, skip relocating libraries and
5649 call _dl_resolve_conflicts instead.
5650 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5651 * elf/dl-load.c (_dl_map_object): Don't create fake libs
5652 if LD_TRACE_PRELINKING.
5653 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5655 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5656 (DL_DEBUG_PRELINK): Define.
5657 (_dl_resolve_conflicts): Add prototype.
5659 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5660 .plt for prelinked libraries where prelinking info cannot be used.
5661 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5662 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5663 * sysdeps/arm/bits/link.h: New file.
5664 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5666 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5667 (ELF_MACHINE_PLT_REL): Define.
5668 (elf_machine_rela, elf_machine_rela_relative): New.
5669 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5670 of adjusting it if prelinked and prelinking cannot be used.
5671 * sysdeps/i386/bits/link.h: New file.
5672 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5674 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5675 (ELF_MACHINE_PLT_REL): Define.
5676 (elf_machine_rela, elf_machine_rela_relative): New.
5677 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5678 of adjusting it if prelinked and prelinking cannot be used.
5679 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5680 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
5681 to find out map for R_PPC_JMP_SLOT relocs.
5682 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5683 (OPCODE_BA): Define.
5684 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5685 libraries where prelinking info cannot be used.
5686 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5687 (elf_machine_fixup_plt): Call sparc_fixup_plt.
5688 (elf_machine_rela): Set value to 0 if relocating conflicts.
5689 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5690 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5691 (sparc64_fixup_plt): Fix a typo.
5692 (elf_machine_rela): Set value to 0 if relocating conflicts.
5693 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5694 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5695 libraries where prelinking info cannot be used.
5696 * sysdeps/sh/bits/link.h: New file.
5697 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5699 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5700 of adjusting it if prelinked and prelinking cannot be used.
5701 * sysdeps/s390/s390-32/bits/link.h: New file.
5702 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5703 Save original content of .got[1].
5704 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5705 of adjusting it if prelinked and prelinking cannot be used.
5706 * sysdeps/s390/s390-64/bits/link.h: New file.
5707 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5708 Save original content of .got[1].
5709 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5710 of adjusting it if prelinked and prelinking cannot be used.
5711 * sysdeps/x86_64/bits/link.h: New file.
5712 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5713 Save original content of .got[1].
5714 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5715 of adjusting it if prelinked and prelinking cannot be used.
5717 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5719 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5720 where appropriate instead of numbers. Little optimizations.
5722 2001-12-10 Roland McGrath <roland@frob.com>
5724 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5727 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5728 set to GLIBC_2.2.5, not GLIBC_2.2.4.
5730 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5731 Fix conditionals so this is set by default for stdio and not for libio.
5732 * sysdeps/mach/hurd/configure: Regenerated.
5734 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
5736 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5738 2001-12-10 Ulrich Drepper <drepper@redhat.com>
5740 * io/Makefile (tests): Add bug-ftw3.
5741 * io/bug-ftw3.c: New file.
5743 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5744 matches and GLOB_NOCHECK is set.
5745 * posix/globtest.sh: Correct expected result for NOCHECK test.
5747 * po/ca.po: Update from translation team.
5749 2001-12-09 Ulrich Drepper <drepper@redhat.com>
5751 Implement transliteration of characters in strings of the locale
5753 * locale/programs/linereader.c: Adjust for additional parameter to
5755 (get_string): If character <Uxxxx> is not found try to transliterate
5757 * locale/programs/ld-ctype.c: Adjust for additional parameter to
5758 lr_token. Add const to charmap parameter of all functions.
5759 (find_translit, find_translit2): New functions.
5760 * locale/programs/charmap.c: Adjust for additional parameter to
5762 * locale/programs/repertoire.c: Likewise.
5763 * locale/programs/linereader.h: Likewise.
5764 * locale/programs/ld-address.c: Likewise. Add const to charmap
5765 parameter of all functions.
5766 * locale/programs/ld-collate.c: Likewise.
5767 * locale/programs/ld-identification.c: Likewise.
5768 * locale/programs/ld-measurement.c: Likewise.
5769 * locale/programs/ld-messages.c: Likewise.
5770 * locale/programs/ld-monetary.c: Likewise.
5771 * locale/programs/ld-name.c: Likewise.
5772 * locale/programs/ld-numeric.c: Likewise.
5773 * locale/programs/ld-paper.c: Likewise.
5774 * locale/programs/ld-paper.c: Likewise.
5775 * locale/programs/ld-telephone.c: Likewise.
5776 * locale/programs/ld-time.c: Likewise.
5777 * locale/programs/locfile.c: Likewise.
5778 * locale/programs/localedef.c: Likewise.
5779 * locale/programs/localedef.h: Likewise.
5780 * locale/programs/locfile.h: Likewise. Add declaration for
5782 * locale/programs/simple-hash.c: Add const to first parameter of
5783 find_entry, iterate_table, and lookup.
5784 * locale/programs/simple-hash.h: Likewise.
5785 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
5787 * include/locale.h: Define __LC_LAST.
5788 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5790 2001-12-07 Geoff Keating <geoffk@redhat.com>
5792 * sysdeps/powerpc/Dist: Update for recent FP changes.
5793 * sysdeps/powerpc/fpu/Dist: Likewise.
5795 2001-12-07 Andreas Schwab <schwab@suse.de>
5797 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5799 2001-12-06 Geoff Keating <geoffk@redhat.com>
5801 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
5802 save/restore functions here.
5803 (libm-support): Don't define these functions here.
5804 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
5806 * sysdeps/powerpc/fe_nomask.c: Move to...
5807 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
5808 * sysdeps/powerpc/fprrest.S: Move to...
5809 * sysdeps/powerpc/fpu/fprrest.S: ... here.
5810 * sysdeps/powerpc/fprsave.S: Move to...
5811 * sysdeps/powerpc/fpu/fprsave.S: ... here.
5813 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5815 * sysdeps/unix/sysv/linux/opensock.c: New file.
5817 2001-12-06 Geoff Keating <geoffk@redhat.com>
5819 * config.make.in (with-fp): Define from configure.
5820 * configure.in: Substitute with_fp.
5821 * configure: Regenerate.
5822 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
5823 specified, and don't change FPU environment.
5825 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5827 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
5828 * assert/assert.c: Check result of __asprintf call and don't use
5829 string if it failed.
5830 * assert/assert-perr.c: Likewise.
5831 * inet/rcmd.c: Likewise.
5832 * locale/programs/localedef.c (main): Check result of
5833 construct_output_path and exit if it failed.
5834 (construct_output_path): Check result of asprintf and mkdir calls and
5835 fail if they failed.
5836 * posix/getopt.c: Check result of __asprintf calls and fail if
5838 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
5840 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5842 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
5844 * sysdeps/generic/strncase.c: Likewise.
5845 * string/tester.c: Add tests for strcasecmp and strncasecmp.
5847 2001-12-05 Geoff Keating <geoffk@redhat.com>
5849 * scripts/cpp: Test the exit status from 'type', not 'awk'.
5851 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
5852 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
5853 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
5854 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
5855 * sysdeps/powerpc/fclrexcpt.c: Move to...
5856 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
5857 * sysdeps/powerpc/fpu_control.h: Move to...
5858 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
5860 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5862 * iconvdata/ibm1129.h: Remove duplicate mappings.
5863 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
5864 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
5865 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5867 * timezone/zic.c: Fix handling of turnaround times.
5868 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
5870 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
5872 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
5875 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5877 * posix/regex.c: For use outside glibc defined bounded pointer
5878 macros here. Patch by Jim Meyering <jim@meyering.net>.
5880 * iconvdata/Makefile (modules): Add TCVN5712-1.
5881 * iconvdata/TESTS: Add TCVN5712-1.
5882 * iconvdata/gconv-modules: Likewise.
5883 * iconvdata/tcvn5712-1.c: New file.
5884 * iconvdata/testdata/TCVN-5712: New file.
5885 * iconvdata/testdata/TCVN-5712..UTF8: New file.
5887 2001-12-04 Ulrich Drepper <drepper@redhat.com>
5889 * iconvdata/cp1258.c: Optimize conversion from UCS4.
5891 2001-12-02 Roland McGrath <roland@frob.com>
5893 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
5895 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
5896 Reported by Jeff Bailey <jbailey@nisa.net>.
5898 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
5899 Reported by Jeff Bailey <jbailey@nisa.net>.
5901 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
5902 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
5903 Reported by Jeff Bailey <jbailey@nisa.net>.
5905 2001-12-01 Roland McGrath <roland@frob.com>
5907 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
5908 missing backslash in test arguments.
5909 * sysdeps/mach/hurd/configure: Regenerated.
5911 2001-11-26 Roland McGrath <roland@frob.com>
5913 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
5914 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
5916 2001-11-30 Ulrich Drepper <drepper@redhat.com>
5918 * iconvdata/Makefile (modules): Add ARMSCII-8.
5919 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
5920 * iconvdata/armscii-8.c: New file.
5922 2001-11-29 Jakub Jelinek <jakub@redhat.com>
5924 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
5925 don't match, fix {{a,b},c} globbing, clean up.
5926 Patch by Flavio Veloso <flaviovs@magnux.com>.
5927 * posix/globtest.sh: Add new tests.
5929 2001-11-29 Andreas Jaeger <aj@suse.de>
5931 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
5932 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
5934 * sysdeps/generic/abort.c: Include libioP.h for
5935 _IO_flush_all_lockp prototype.
5937 2001-11-29 Ulrich Drepper <drepper@redhat.com>
5939 * posix/regex.h: Define __restrict_arr correctly.
5941 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5943 * iconvdata/ibm1163.c: New file.
5944 * iconvdata/ibm1163.h: New file.
5945 * iconvdata/ibm1164.c: New file.
5946 * iconvdata/ibm1164.h: New file.
5947 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
5948 * iconvdata/Makefile: Likewise.
5949 * iconvdata/testdata/IBM1163: New file.
5950 * iconvdata/testdata/IBM1163..UTF8: New file.
5951 * iconvdata/testdata/IBM1164: New file.
5952 * iconvdata/testdata/IBM1164..UTF8: New file.
5953 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5955 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
5956 * iconvdata/ibm1124.h: Likewise.
5957 * iconvdata/ibm1132.h: Likewise.
5958 * iconvdata/ibm1133.h: Likewise.
5959 * iconvdata/ibm1160.h: Likewise.
5960 * iconvdata/ibm1161.h: Likewise.
5961 * iconvdata/ibm1162.h: Likewise.
5962 * iconvdata/ibm856.h: Likewise.
5963 * iconvdata/ibm922.h: Likewise.
5964 * iconvdata/ibm930.h: Likewise.
5965 * iconvdata/ibm932.h: Likewise.
5966 * iconvdata/ibm933.h: Likewise.
5967 * iconvdata/ibm935.h: Likewise.
5968 * iconvdata/ibm937.h: Likewise.
5969 * iconvdata/ibm939.h: Likewise.
5970 * iconvdata/ibm943.h: Likewise.
5971 * iconvdata/ibm930.c: Pretty printing.
5972 * iconvdata/ibm937.c: Avoid access accross array boundary.
5974 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
5975 the current locale's codeset.
5976 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
5978 * iconv/iconv_prog.c: Pass empty strings as default value for to-
5979 and from-charset. Don't determine locale's charset here.
5981 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
5982 as the old _IO_flush_all but lock only if parameter is nonzero.
5983 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
5984 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
5985 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
5986 if libio is used [PR libc/2575].
5988 2001-11-28 Jakub Jelinek <jakub@redhat.com>
5990 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
5991 __signbitl): Only define for ISO C99.
5993 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5995 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
5996 herrnop to NETDB_INTERNAL if we run out of buffer space.
5998 2001-11-28 Ulrich Drepper <drepper@redhat.com>
6000 * nss/nss_files/files-XXX.c (internal_getent): Correct input
6001 overflow test for platforms with signed char.
6002 Reported by Andrew Haley <aph@cambridge.redhat.com>.
6004 2001-11-28 Bruno Haible <bruno@clisp.org>
6006 * locale/programs/simple-hash.c (lookup_2): Remove function.
6007 (insert_entry_2): Call lookup instead of lookup_2.
6009 2001-03-04 Bruno Haible <bruno@clisp.org>
6011 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
6013 2001-10-31 Bruno Haible <bruno@clisp.org>
6015 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
6017 2001-03-21 Bruno Haible <bruno@clisp.org>
6019 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
6020 chokes on empty macro arguments.
6021 * intl/plural.y: Add #pragma for alloca on AIX 3.
6023 2001-11-27 Ulrich Drepper <drepper@redhat.com>
6025 * intl/dcigettext.c (guess_category_value): Only implement for
6026 glibc. Otherwise rely on function _nl_locale_name which isn't
6027 present in the glibc sources.
6029 2001-09-24 Bruno Haible <bruno@clisp.org>
6031 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
6032 transliteration when building on a glibc system but outside glibc.
6034 2001-09-22 Bruno Haible <bruno@clisp.org>
6036 * intl/plural-eval.c: New file, extracted from dcigettext.c.
6037 * intl/dcigettext.c (plural_eval): Remove function, moved to
6039 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
6040 Include plural-eval.c.
6042 2001-09-22 Bruno Haible <bruno@clisp.org>
6044 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
6045 don't start with a digit; nplurals must be positive.
6047 2001-09-02 Bruno Haible <bruno@clisp.org>
6049 * intl/plural-exp.h: New file, extracted from gettextP.h.
6050 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
6051 * intl/gettextP.h (struct expression, struct parse_args,
6052 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
6053 * intl/loadmsgcat.c: Include plural-exp.h.
6054 (PLURAL_PARSE): Move macro to plural-exp.h.
6055 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
6057 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
6058 EXTRACT_PLURAL_EXPRESSION.
6059 (_nl_unload_domain): Update.
6060 * intl/dcigettext.c: Include plural-exp.h.
6061 * intl/plural.y: Include plural-exp.h, not gettextP.h.
6062 (FREE_EXPRESSION): Move macro to plural-exp.h.
6063 * intl/Makefile (routines): Add plural-exp.
6064 (distribute): Add plural-exp.h.
6066 2001-07-28 Bruno Haible <bruno@clisp.org>
6068 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
6069 isdigit, tolower argument to 'unsigned char'.
6070 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
6072 * intl/localealias.c (read_alias_file): Cast isspace argument to
6075 2001-10-20 Bruno Haible <bruno@clisp.org>
6077 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
6079 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
6080 with the variable 'index' in plural_lookup.
6081 * intl/l10nflist.c (strchr): Likewise.
6082 * intl/localealias.c (strchr): Likewise.
6084 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
6085 * intl/bindtextdom.c: Likewise.
6086 * intl/dcigettext.c: Likewise.
6087 * intl/dgettext.c: Likewise.
6088 * intl/dngettext.c: Likewise.
6089 * intl/explodename.c: Likewise.
6090 * intl/finddomain.c: Likewise.
6091 * intl/gettext.c: Likewise.
6092 * intl/l10nflist.c: Likewise.
6093 * intl/loadmsgcat.c: Likewise.
6094 * intl/localealias.c: Likewise.
6095 * intl/ngettext.c: Likewise.
6096 * intl/textdomain.c: Likewise.
6097 * intl/gettext.h: Assume <limits.h> exists.
6099 2001-11-27 Ulrich Drepper <drepper@redhat.com>
6101 * stdio-common/Makefile (tests): Add scanf11.
6102 * stdio-common/scanf11.c: New file.
6104 2001-11-26 Ulrich Drepper <drepper@redhat.com>
6106 * version.h (RELEASE): Define as development.
6107 (VERSION): Set to 2.2.90.
6109 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
6111 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
6112 * nis/nss_nis/nis-grp.c: Likewise.
6113 * nis/nss_nisplus/nisplus-grp.c: Likewise.
6115 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
6116 * nis/nss_nis/nis-pwd.c: Likewise.
6117 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
6119 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
6120 * nis/nss_nisplus/nisplus-parser.c: Likewise.
6121 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
6123 * nscd/grpcache.c: Use strtoul instead of atol.
6124 * nscd/pwdcache.c: Likewise.
6125 * nss/getent.c: Likewise.
6127 2001-11-27 Paul Eggert <eggert@twinsun.com>
6129 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
6130 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
6132 2001-11-19 Bruno Haible <bruno@clisp.org>
6134 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
6136 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
6137 improves the quality of the hash function, especially for short
6140 2001-11-26 Ulrich Drepper <drepper@redhat.com>
6142 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
6143 are found call conv_error and not input_error [PR libc/2669].
6145 * math/bits/mathcalls.h: Mark ceil and floor as const.
6146 Reported by David Mosberger.
6148 2001-11-21 Jim Meyering <meyering@lucent.com>
6150 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
6151 Define to be __-prefixed.
6152 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
6154 2001-11-26 Andreas Jaeger <aj@suse.de>
6156 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
6159 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
6161 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
6164 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
6165 unused variables. Fix threshold for returning 1.0.
6167 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
6170 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
6171 remove unused variables.
6173 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
6175 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
6176 include local math header files.
6178 2001-11-22 Andreas Jaeger <aj@suse.de>
6180 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
6183 2001-11-21 Andreas Jaeger <aj@suse.de>
6185 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
6187 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
6190 2001-11-15 Andreas Jaeger <aj@suse.de>
6192 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
6193 compilers that support it.
6195 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
6196 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
6197 * stdlib/stdlib.h: Likewise.
6199 2001-11-17 Ulrich Drepper <drepper@redhat.com>
6201 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
6202 statement with gotos.
6203 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
6205 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
6207 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
6209 2001-11-15 Ulrich Drepper <drepper@redhat.com>
6211 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
6213 2001-10-02 Jakub Jelinek <jakub@redhat.com>
6214 H.J. Lu <hjl@gnu.org>
6216 * Versions.def (libc): Add GCC_3.0.
6217 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
6218 if gcc supports this flag.
6219 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
6220 (gcc3): Allow glibc to be compiled with gcc 3.x.
6221 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
6222 * config.make.in (static-libgcc, unwind-find-fde): Add.
6223 * Makerules (build-shlib-helper, build-module-helper): Use it.
6224 * scripts/versions.awk: Make sure GLIBC_ versions come first.
6225 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
6227 (_fini): Call __deregister_frame_info_bases if
6228 __register_frame_info_bases was used to register.
6229 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
6231 (__register_frame_info_bases, __register_frame_info_table_bases,
6232 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
6233 * elf/Makefile (routines): Add unwind-dw2-fde.
6234 (shared-only-routines): Add unwind-dw2-fde.
6235 * sysdeps/alpha/gccframe.h: New file.
6236 * sysdeps/arm/gccframe.h: New file.
6237 * sysdeps/generic/framestate.c: New file.
6238 * sysdeps/generic/dwarf2.h: New file.
6239 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
6240 * sysdeps/generic/unwind-dw2-fde.c: New file.
6241 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
6242 * sysdeps/generic/unwind-dw2-fde.h: New file.
6243 * sysdeps/generic/unwind-dw2.c: New file.
6244 * sysdeps/generic/unwind-pe.h: New file.
6245 * sysdeps/generic/unwind.h: New file.
6246 * sysdeps/hppa/gccframe.h: New file.
6247 * sysdeps/i386/gccframe.h: New file.
6248 * sysdeps/m68k/gccframe.h: New file.
6249 * sysdeps/mips/gccframe.h: New file.
6250 * sysdeps/powerpc/gccframe.h: New file.
6251 * sysdeps/s390/gccframe.h: New file.
6252 * sysdeps/sh/gccframe.h: New file.
6253 * sysdeps/sparc/gccframe.h: New file.
6254 * sysdeps/vax/gccframe.h: New file.
6255 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
6256 Set on all architectures except ia64.
6257 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
6259 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
6260 __deregister_frame_info): Move to elf/Versions.
6261 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
6262 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
6263 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
6264 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
6265 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
6266 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
6267 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
6268 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
6269 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
6270 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
6271 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6272 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6273 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6274 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6275 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6276 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6277 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6278 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6280 2001-11-15 Jeff Law <law@redhat.com>
6282 * posix/regex.c (uintptr_t): Do not provide a definition if the
6283 system provided one.
6285 2001-11-13 Roland McGrath <roland@frob.com>
6287 * stdio-common/tmpfile.c: Moved to ...
6288 * sysdeps/generic/tmpfile.c: ... here.
6289 * sysdeps/mach/hurd/tmpfile.c: New file.
6291 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
6292 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
6293 (fopenport): Define as weak alias.
6295 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
6296 * libio/libioP.h: ... to here.
6298 2001-11-12 Ulrich Drepper <drepper@redhat.com>
6300 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
6301 program header twice. Construct list with the needed information.
6303 2001-11-10 Ulrich Drepper <drepper@redhat.com>
6305 * po/ca.po: Update from translation team.
6307 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
6308 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
6309 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
6310 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6312 2001-11-10 Andreas Jaeger <aj@suse.de>
6314 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
6315 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6316 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6318 2001-11-09 Ulrich Drepper <drepper@redhat.com>
6320 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
6322 * elf/dl-load.c (is_dst): New function.
6323 (_dl_dst_count): Use is_dst to check for DST variable.
6324 (_dl_dst_substitute): Likewise.
6326 2001-11-09 Roland McGrath <roland@frob.com>
6328 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
6329 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
6330 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
6331 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
6332 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
6333 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
6334 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
6335 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
6336 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
6337 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
6338 * sysdeps/mach/hurd/powerpc/Dist: New file.
6340 * hurd/privports.c (__get_privileged_ports):
6341 Only contact the proc server if necessary for this call.
6342 Suggested by Neal H Walfield <neal@cs.uml.edu>.
6343 Check error return for mach_port_mod_refs.
6345 2001-11-09 Andreas Schwab <schwab@suse.de>
6347 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
6349 2001-11-09 Ulrich Drepper <drepper@redhat.com>
6351 * elf/dl-load.c (lose): Remove some unnecessary code. The new
6352 object is always the last in the list.
6353 (_dl_map_object_from_fd): Delete code to remove from object list
6354 when DF_1_NOOPEN is seen. This is done in lose.
6356 2001-11-08 Ulrich Drepper <drepper@redhat.com>
6358 * elf/dl-object.c (_dl_new_object): Various small optimizations.
6360 2001-11-07 Ulrich Drepper <drepper@redhat.com>
6362 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
6363 HWCAP_CHECK macro code.
6365 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
6366 Now returns MAP_FAILED on error.
6367 * elf/rtld.c: Adjust caller.
6368 * sysdeps/generic/dl-cache.c: Likewise.
6369 * sysdeps/generic/ldsodefs.h: Adjust description.
6371 * elf/dl-version.c (match_symbol): Optimize error handling for size.
6372 (_dl_check_map_versions): Likewise.
6374 2001-11-06 Ulrich Drepper <drepper@redhat.com>
6376 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
6377 _dl_signal_error directly, always use lose. Set fd to -1 after
6379 (lose): Don't call close if fd == -1.
6381 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
6383 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
6384 Also fix typo @code {mbsinit} to @code{mbsinit}.
6386 2001-11-06 Ulrich Drepper <drepper@redhat.com>
6388 * elf/dl-profile.c: Replace state variable with simple flag named
6389 running. Remove commented-out code.
6391 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
6392 (_dl_init_paths): Likewise.
6393 (_dl_map_object_from_fd): Likewise.
6394 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6396 2001-11-06 Roland McGrath <roland@frob.com>
6398 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
6399 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
6401 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
6402 sysdeps/powerpc/elf/sysdep.h.
6403 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
6405 2001-11-05 Ulrich Drepper <drepper@redhat.com>
6407 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
6409 (process_envvars): Some more optimizations.
6410 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
6412 * elf/elf.h: Add dynamic tag definitions for prelinking.
6414 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
6415 Rewrite code to remove environment varables for SUID binaries.
6416 Small optimization in LD_PROFILE handling.
6417 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
6419 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6421 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
6423 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
6424 strings. Change type of second parameter.
6425 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
6428 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
6430 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
6432 * manual/string.texi: Fix typos.
6433 * manual/examples/argp-ex2.c: Likewise.
6435 2001-11-05 Roland McGrath <roland@frob.com>
6437 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
6438 the more-specific unix/sysv/linux/powerpc file and breaks everything.
6439 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
6440 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
6441 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
6442 here, put under [__ELF__].
6444 2001-11-05 Ulrich Drepper <drepper@redhat.com>
6446 * manual/charset.texi: Extensive editing work.
6447 * manual/nss.texi: Likewise.
6448 Changes by Dennis Grace <dgrace@us.ibm.com>.
6450 2001-11-04 Roland McGrath <roland@frob.com>
6452 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
6453 parameter to dir_mkfile.
6455 2001-11-02 Jakub Jelinek <jakub@redhat.com>
6457 * string/bits/string2.h (__strndup): If n is smaller than len, set
6459 * string/tester.c (test_strndup): New function.
6462 2001-11-01 Ulrich Drepper <drepper@redhat.com>
6464 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
6466 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
6467 * scripts/cpp: New file.
6469 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
6470 for rtld_search_dirs content. Minor optimizations.
6472 2001-10-31 Ulrich Drepper <drepper@redhat.com>
6474 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
6475 avoiding unnecessary duplication.
6477 2001-10-31 Jakub Jelinek <jakub@redhat.com>
6479 * elf/dl-load.c (_dl_map_object): If library was found using
6480 LD_LIBRARY_PATH, don't try RUNPATH list.
6482 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
6484 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
6485 Correct second argument of register_dump call.
6486 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
6489 2001-10-31 Ulrich Drepper <drepper@redhat.com>
6491 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
6493 * iconvdata/TESTS: Likewise.
6494 * iconvdata/gconv-modules: Likewise.
6495 * iconvdata/ibm1132.c: New file.
6496 * iconvdata/ibm1132.h: New file.
6497 * iconvdata/ibm1133.c: New file.
6498 * iconvdata/ibm1133.h: New file.
6499 * iconvdata/ibm1162.c: New file.
6500 * iconvdata/ibm1162.h: New file.
6501 * iconvdata/testdata/IBM1132: New file.
6502 * iconvdata/testdata/IBM1132..UTF8: New file.
6503 * iconvdata/testdata/IBM1133: New file.
6504 * iconvdata/testdata/IBM1133..UTF8: New file.
6505 * iconvdata/testdata/IBM1162: New file.
6506 * iconvdata/testdata/IBM1162..UTF8: New file.
6507 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
6509 * string/string.h: Fix typo in comment.
6510 * wcsmbs/wchar.h: Likewise.
6512 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
6514 * manual/getopt.texi (getopt_long, getopt_long_only): Include
6515 const in type of longopts parameter.
6517 2001-10-29 Andreas Jaeger <aj@suse.de>
6519 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
6521 2001-10-29 Kevin Ryde <user42@zip.com.au>
6523 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
6524 output, clarify `#' behaviour on 0.
6525 (Floating-Point Conversions): Clarify that %g only uses %e when
6526 the exponent would be greater than 1.
6528 2001-10-28 Roland McGrath <roland@frob.com>
6530 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
6531 * sysdeps/mach/powerpc/machine-sp.h: New file.
6532 * sysdeps/mach/powerpc/sysdep.h: New file.
6533 * sysdeps/mach/powerpc/thread_state.h: New file.
6535 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
6536 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
6537 expect to need the same thing on every platform.
6539 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
6540 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
6542 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
6543 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
6544 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
6545 Move all these assembly-related definitions to ...
6546 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
6548 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
6549 by Peter Bruin <pjbruin@dds.nl>.
6551 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
6552 packing results for a `poll' call.
6554 2001-10-26 Ulrich Drepper <drepper@redhat.com>
6556 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
6558 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
6561 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6563 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
6565 2001-10-24 H.J. Lu <hjl@gnu.org>
6567 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
6568 Use __BEGIN_DECLS/__END_DECLS around prototypes.
6569 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
6571 2001-10-21 Jim Meyering <meyering@lucent.com>
6573 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6574 this code would end up calling gettext even in packages built
6576 * posix/getopt.c (_): Likewise.
6577 * posix/regex.c (_): Likewise.
6579 2001-10-26 Ulrich Drepper <drepper@redhat.com>
6581 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
6583 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6584 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6586 2001-10-19 Jakub Jelinek <jakub@redhat.com>
6588 * misc/sys/cdefs.h (__attribute_used__): Define.
6589 * elf/rtld.c (_dl_start): Add __attribute_used__.
6590 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6592 2001-10-25 Andreas Schwab <schwab@suse.de>
6594 * stdlib/a64l.c: Expect least significant digit first.
6595 * stdlib/l64a.c: Produce least significant digit first.
6596 * stdlib/Makefile (tests): Add test-a64l.
6597 * stdlib/test-a64l.c: New file.
6598 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6600 2001-10-21 Ulrich Drepper <drepper@redhat.com>
6602 * po/sk.po: Update from translation team.
6604 2001-10-18 Ulrich Drepper <drepper@redhat.com>
6606 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6608 2001-10-18 Andreas Schwab <schwab@suse.de>
6610 * math/libm-test.inc (print_ulps): Print ulp values rounded to
6612 (print_function_ulps): Likewise.
6613 (print_complex_function_ulps): Likewise.
6614 (print_max_error): Likewise.
6615 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
6617 2001-10-16 Andreas Schwab <schwab@suse.de>
6619 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6622 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6623 BSD_SETJMP or BSD__SETJMP is defined, resp.
6624 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6625 a tail call to __sigsetjmp that would require extending the
6627 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6628 * sysdeps/m68k/bsd-setjmp.S: Deleted.
6629 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6630 Reported by Jes Sorensen <jes@trained-monkey.org>.
6632 2001-10-16 Andreas Jaeger <aj@suse.de>
6634 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
6635 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
6638 2001-10-15 Ulrich Drepper <drepper@redhat.com>
6640 * po/ca.po: New file. Contributed by the translation team.
6642 2001-10-15 Ralf Baechle <ralf@gnu.org>
6644 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6645 a varargs prototype. Remove dependency from kernel header files.
6647 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6648 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6650 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6652 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6653 to generate hexadecimal identifier.
6654 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6656 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
6658 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6660 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6662 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6663 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6664 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6666 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6667 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6668 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6669 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6670 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6671 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6673 * timezone/africa: Update from tzdata2001d.
6674 * timezone/asia: Likewise.
6675 * timezone/australasia: Likewise.
6676 * timezone/backward: Likewise.
6677 * timezone/europe: Likewise.
6678 * timezone/leapseconds: Likewise.
6679 * timezone/northamerica: Likewise.
6680 * timezone/southamerica: Likewise.
6681 * timezone/zone.tab: Likewise.
6683 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
6685 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6686 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6688 2001-10-12 Ulrich Drepper <drepper@redhat.com>
6690 * elf/elf.h (PT_TLS): New definition.
6692 2001-10-10 Jeff Bailey <jbailey@nisa.net>
6694 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6697 2001-10-07 Roland McGrath <roland@frob.com>
6699 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6701 2001-10-10 Ulrich Drepper <drepper@redhat.com>
6703 * elf/elf.h: Add more ELFOSABI_* constants.
6705 2001-10-04 Ben Collins <bcollins@debian.org>
6707 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6708 decleration of __need_wchar_t.
6710 2001-10-03 Jakub Jelinek <jakub@redhat.com>
6712 * string/bits/string2.h (__strsep_g): Add prototype.
6714 * string/Versions (__strsep): Remove.
6715 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6717 2001-10-07 Ulrich Drepper <drepper@redhat.com>
6719 * manua/llio.texi: Clarify file references added by mmap.
6720 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6722 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
6724 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6725 Add sc_loadrs and sc_rbs_bas to match current kernel.
6727 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6729 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6731 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6733 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6735 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6736 object has been bumped because of relocation dependency, avoid
6737 duplicates in l_scope.
6738 (show_scope): Fix typos.
6739 * elf/Makefile: Add rules to build and run reldep6.
6740 * elf/reldep6.c: New file.
6741 * elf/reldep6mod0.c: New file.
6742 * elf/reldep6mod1.c: New file.
6743 * elf/reldep6mod2.c: New file.
6744 * elf/reldep6mod3.c: New file.
6745 * elf/reldep6mod4.c: New file.
6747 2001-09-26 Jakub Jelinek <jakub@redhat.com>
6749 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6751 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
6752 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6753 for non-lazy binding. Fix .plt[32768+] handling.
6754 (elf_machine_plt_value): Don't add addend.
6755 (elf_machine_rela): Call sparc64_fixup_plt instead of
6756 elf_machine_fixup_plt.
6757 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6758 dynamic linker at 0xfffff800XXXXXXXX.
6760 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6762 2001-09-28 Ulrich Drepper <drepper@redhat.com>
6764 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6766 2001-09-25 Jakub Jelinek <jakub@redhat.com>
6768 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6769 declare __cmsg_data field if its size would be bigger than 0.
6770 (CMSG_DATA): Adjust accordingly.
6771 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6772 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6773 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6774 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6775 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6776 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6777 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6779 2001-09-25 Ulrich Drepper <drepper@redhat.com>
6781 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6782 * iconvdata/testdata/IBM1160: New file.
6783 * iconvdata/testdata/IBM1160..UTF8: New file.
6784 * iconvdata/testdata/IBM1161: New file.
6785 * iconvdata/testdata/IBM1161..UTF8: New file.
6786 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6788 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6790 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6791 UL_SETFSIZE computations better.
6793 * rt/Makefile: Remove use of filter for librt again.
6795 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
6796 UL_SETFSIZE computations better.
6798 * string/Versions: Export __strsep for GLIBC_2.2.5.
6799 * string/bits/string2.h: Define all __STRING_INLINE functions if
6800 _FORCE_INLINES is defined.
6801 Use int instead of char of parameter types.
6802 (__strsep): Don't use __strsep_g. Don't define it.
6803 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
6804 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
6806 (__stpcpy_a_small): Renamed from __stpcpy_small.
6807 (__strcspn_c1): Don't define if _FORCE_INLINES.
6808 (__strspn_c1): Likewise.
6810 2001-09-22 Ben Collins <bcollins@debian.org>
6812 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
6813 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
6814 * sysdeps/ia64/bits/sigaction.h: Likewise.
6815 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
6817 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6819 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
6821 2001-09-24 Jakub Jelinek <jakub@redhat.com>
6823 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
6825 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6827 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
6829 2001-09-20 H.J. Lu <hjl@gnu.org>
6831 * include/dlfcn.h (__RTLD_SPROF): New definiton.
6832 * elf/dl-open.c (dl_open_worker): Return immediately after loading
6834 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
6835 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
6837 2001-09-20 H.J. Lu <hjl@gnu.org>
6839 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
6842 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6844 * nss/getent.c: Accept -s parameter to overwrite rules in
6845 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
6847 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
6848 with as many ".0" as necessary to form a complete address
6849 inet_network understands.
6851 * nss/getent.c: Various cleanups. Use simpler and fewer function
6854 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6856 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
6858 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
6860 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6862 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
6864 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
6865 * iconvdata/ibm1160.c: New file.
6866 * iconvdata/ibm1160.h: New file.
6867 * iconvdata/ibm1161.c: New file.
6868 * iconvdata/ibm1161.h: New file.
6869 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6871 2001-09-19 Jakub Jelinek <jakub@redhat.com>
6873 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
6874 difference between base address and first PT_LOAD's virtual address,
6875 not the base address.
6877 2001-09-11 Tom Rix <trix@redhat.com>
6879 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
6880 ifdef for __getopt_clean_environment.
6881 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
6883 2001-09-22 Andreas Jaeger <aj@suse.de>
6885 * elf/reldep4.c (main): Add proper prototype to fix warning.
6887 * elf/reldep5.c (main): Remove unused variable.
6889 * math/math_private.h: Add prototypes.
6891 2001-09-21 Andreas Jaeger <aj@suse.de>
6893 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
6894 * sysdeps/x86_64/Dist: New file.
6895 * sysdeps/x86_64/soft-fp/Dist: New file.
6897 * sysdeps/gnu/Dist: Remove eval.c.
6899 2001-09-20 Ulrich Drepper <drepper@redhat.com>
6901 * malloc/memusage.c (realloc): Don't count already allocated
6903 (me): Always use dlsym() to find the real implementations.
6905 * malloc/memusage.sh: Make -n option actually do something.
6907 2001-09-20 Andreas Jaeger <aj@suse.de>
6909 * elf/elf.h (R_390_NUM): Correct value.
6911 * Versions.def: Add missing versions 2.2.3 for libthread_db and
6914 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
6915 for x86-64, install x86-64 into */lib64.
6917 * shlib-versions: Add x86-64.
6919 * elf/elf.h: Add x86-64 relocations.
6921 2001-09-19 Ulrich Drepper <drepper@redhat.com>
6923 * po/fr.po: Update from translation team.
6925 2001-09-19 Andreas Jaeger <aj@suse.de>
6927 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6928 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
6929 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
6930 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
6931 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
6932 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
6933 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
6934 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
6935 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
6936 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6937 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
6938 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
6939 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
6940 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
6941 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
6942 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
6943 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
6944 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
6945 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
6946 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
6947 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
6948 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
6949 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
6950 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
6951 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
6952 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
6953 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
6954 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
6955 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
6956 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
6957 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
6958 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
6959 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
6960 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
6961 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
6962 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
6963 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
6964 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
6965 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
6966 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
6967 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
6968 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
6969 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
6970 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
6971 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
6972 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
6973 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
6974 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
6975 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
6976 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
6977 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
6978 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6979 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
6980 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
6981 * sysdeps/unix/x86_64/sysdep.S: New file.
6982 * sysdeps/unix/x86_64/sysdep.h: New file.
6983 * sysdeps/x86_64/Implies: New file.
6984 * sysdeps/x86_64/Makefile: New file.
6985 * sysdeps/x86_64/Versions: New file.
6986 * sysdeps/x86_64/__longjmp.S: New file.
6987 * sysdeps/x86_64/abort-instr.h: New file.
6988 * sysdeps/x86_64/atomicity.h: New file.
6989 * sysdeps/x86_64/bits/endian.h: New file.
6990 * sysdeps/x86_64/bits/setjmp.h: New file.
6991 * sysdeps/x86_64/bits/string.h: New file.
6992 * sysdeps/x86_64/bp-asm.h: New file.
6993 * sysdeps/x86_64/bsd-_setjmp.S: New file.
6994 * sysdeps/x86_64/bsd-setjmp.S: New file.
6995 * sysdeps/x86_64/dl-machine.h: New file.
6996 * sysdeps/x86_64/elf/initfini.c: New file.
6997 * sysdeps/x86_64/elf/start.S: New file.
6998 * sysdeps/x86_64/ffs.c: New file.
6999 * sysdeps/x86_64/ffsll.c: New file.
7000 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
7001 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
7002 * sysdeps/x86_64/fpu/e_acosl.c: New file.
7003 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
7004 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
7005 * sysdeps/x86_64/fpu/e_expl.c: New file.
7006 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
7007 * sysdeps/x86_64/fpu/e_log10l.S: New file.
7008 * sysdeps/x86_64/fpu/e_log2l.S: New file.
7009 * sysdeps/x86_64/fpu/e_logl.S: New file.
7010 * sysdeps/x86_64/fpu/e_powl.S: New file.
7011 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
7012 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
7013 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
7014 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
7015 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
7016 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
7017 * sysdeps/x86_64/fpu/fegetenv.c: New file.
7018 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
7019 * sysdeps/x86_64/fpu/fegetround.c: New file.
7020 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
7021 * sysdeps/x86_64/fpu/fesetenv.c: New file.
7022 * sysdeps/x86_64/fpu/fesetround.c: New file.
7023 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
7024 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
7025 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
7026 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
7027 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
7028 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
7029 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
7030 * sysdeps/x86_64/fpu/s_atanl.c: New file.
7031 * sysdeps/x86_64/fpu/s_cosl.S: New file.
7032 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
7033 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
7034 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
7035 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
7036 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
7037 * sysdeps/x86_64/fpu/s_logbl.c: New file.
7038 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
7039 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
7040 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
7041 * sysdeps/x86_64/fpu/s_rintl.c: New file.
7042 * sysdeps/x86_64/fpu/s_significandl.c: New file.
7043 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
7044 * sysdeps/x86_64/fpu/s_sinl.S: New file.
7045 * sysdeps/x86_64/fpu/s_tanl.S: New file.
7046 * sysdeps/x86_64/gmp-mparam.h: New file.
7047 * sysdeps/x86_64/hp-timing.c: New file.
7048 * sysdeps/x86_64/hp-timing.h: New file.
7049 * sysdeps/x86_64/htonl.S: New file.
7050 * sysdeps/x86_64/memusage.h: New file.
7051 * sysdeps/x86_64/setjmp.S: New file.
7052 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
7053 * sysdeps/x86_64/stackinfo.h: New file.
7054 * sysdeps/x86_64/sysdep.h: New file.
7055 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
7057 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
7060 2001-09-18 Ulrich Drepper <drepper@redhat.com>
7062 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
7063 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
7065 2001-09-18 Andreas Schwab <schwab@suse.de>
7067 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
7068 list, now that l_scope is a pointer.
7070 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
7073 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
7075 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
7076 (elf_machine_rela_relative): Add a missing declaration.
7078 2001-09-18 Jakub Jelinek <jakub@redhat.com>
7080 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
7081 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
7082 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
7083 ldd-rewrite scripts.
7085 2001-09-18 Ulrich Drepper <drepper@redhat.com>
7087 * elf/ldd.bash.in: Update copyright message.
7089 2001-09-17 H.J. Lu <hjl@gnu.org>
7091 * hurd/hurdmalloc.c (bcopy): Removed.
7092 (realloc): Replace bcopy with memcpy.
7093 * hurd/path-lookup.c (file_name_path_scan): Likewise.
7094 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
7095 * sunrpc/rpcinfo.c (pmapdump): Likewise.
7097 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
7098 (gethostbyaddr): Likewise.
7099 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
7101 2001-09-18 Ulrich Drepper <drepper@redhat.com>
7103 * sysdeps/gnu/eval.c: Removed.
7105 2001-09-18 Andreas Jaeger <aj@suse.de>
7107 * sysdeps/i386/fpu/s_logbl.S: Move to ...
7108 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
7110 * sysdeps/i386/fpu/s_rintl.S: Move to ...
7111 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
7113 * sysdeps/i386/fpu/s_significandl.S: Move to ...
7114 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
7116 2001-09-16 Ulrich Drepper <drepper@redhat.com>
7118 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
7121 2001-09-14 H.J. Lu <hjl@gnu.org>
7123 * sysdeps/mips/fpu/libm-test-ulps: Updated.
7125 2001-09-14 Ulrich Drepper <drepper@redhat.com>
7127 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
7128 Patch by Florian La Roche <laroche@redhat.com>.
7130 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
7132 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
7135 2001-09-14 Andreas Schwab <schwab@suse.de>
7137 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
7138 Sumner <bls@sgi.com>.
7139 * posix/execlp.c: Likewise.
7141 2001-09-13 Jakub Jelinek <jakub@redhat.com>
7143 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
7144 is already found earlier in the search scope.
7146 2001-09-12 Jakub Jelinek <jakub@redhat.com>
7148 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
7151 2001-09-13 Ulrich Drepper <drepper@redhat.com>
7153 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
7155 2001-09-12 Ulrich Drepper <drepper@redhat.com>
7157 * config.h.in: Enforce optimization to be used.
7158 * Makeconfig (preprocess-versions): Define ASSEMBLER.
7159 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
7160 * posix/Makefile (annexc-CFLAGS): Define to -O.
7161 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
7163 2001-09-11 Ulrich Drepper <drepper@redhat.com>
7165 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
7166 Patch by Stephan Kulow.
7168 2001-09-08 Ben Collins <bcollins@debian.org>
7170 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
7171 usage of RESOLVE() (r_type, not reloc->r_type).
7173 2001-09-08 Ulrich Drepper <drepper@redhat.com>
7175 * elf/dl-object.c: Avoid allocating extra memory block for name.
7176 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
7177 allocated separately.
7178 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
7180 2001-09-08 H.J. Lu <hjl@gnu.org>
7182 * po/zh_TW.po: Fix a typo.
7184 2001-09-07 Tom Rix <trix@redhat.com>
7186 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
7188 2001-08-26 Tom Rix <trix@redhat.com>
7190 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
7191 command line options.
7192 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
7193 * sysdeps/unix/sysv/aix/start.c: Removed.
7194 * sysdeps/unix/sysv/aix/start-libc.c: New file.
7195 * sysdeps/unix/sysv/aix/init-first.c: New file.
7196 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
7198 2001-09-08 Ben Collins <bcollins@debian.org>
7200 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
7201 * sysdeps/generic/dl-machine.h: Likewise.
7202 * sysdeps/hppa/dl-fptr.c: Likewise.
7203 * sysdeps/ia64/dl-fptr.c: Likewise.
7204 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7205 * sysdeps/mips/dl-machine.h: Likewise.
7206 * sysdeps/mips/mips64/dl-machine.h: Likewise.
7207 * sysdeps/powerpc/dl-machine.c: Likewise.
7209 2001-09-07 Ben Collins <bcollins@debian.org>
7211 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
7213 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
7215 2001-09-08 Ulrich Drepper <drepper@redhat.com>
7217 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
7218 dependencies if necessary.
7220 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
7221 loaded directly) determine length if l_initfini list by iterating
7222 over its elements. Minor optimizations.
7223 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
7224 for dependency objects.
7225 If object was already loaded check whether any of the dependencies
7226 is already on the relocation dependency list. If yes, remove the
7227 latter. Minor optimizations.
7228 * elf/dl-lookup.c (add_dependency): Add check for self reference of
7229 maps here. Search l_initfini list only if the object was loaded
7230 directly and not only as a dependency.
7231 (_dl_lookup_symbol): Add relocation dependency also if object
7232 is not in global scope. Remove test for self-reference here.
7233 (_dl_lookup_versioned_symbol): Likewise.
7234 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
7235 element of first name record.
7236 * elf/loadtest.c: Add some more test to recognize early if an object
7238 * elf/Makefile: Add rules to build and run reldep5.
7239 * elf/reldep5.c: New file.
7240 * elf/reldepmod5.c: New file.
7241 * elf/reldepmod6.c: New file.
7243 * elf/reldep2.c: Fix typo.
7245 2001-09-07 Ulrich Drepper <drepper@redhat.com>
7247 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
7248 elements. Change l_scope to be a pointer only.
7249 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
7250 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
7251 here add searchlist of newly open file to the dependency's scope.
7252 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
7253 only searchlist from its scope. Free own scope array if necessary.
7254 * elf/Makefile (tests): Add dblload and dblunload now.
7256 2001-09-06 Andreas Jaeger <aj@suse.de>
7258 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
7261 2001-09-05 Ulrich Drepper <drepper@redhat.com>
7263 * elf/Makefile: Add rules to build new tests. Don't run them yet since
7265 * elf/dblload.c: New file.
7266 * elf/dblloadmod1.c: New file.
7267 * elf/dblloadmod2.c: New file.
7268 * elf/dblloadmod3.c: New file.
7269 * elf/dblunload.c: New file.
7271 2001-09-04 Richard Henderson <rth@redhat.com>
7273 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
7274 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
7276 2001-09-04 Ulrich Drepper <drepper@redhat.com>
7278 Correct very misleading message for error in failed runtime relocation.
7279 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
7281 (_dl_signal_cerror): Likewise.
7282 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7283 * elf/dl-close.c: Likewise.
7284 * elf/dl-deps.c: Likewise.
7285 * elf/dl-load.c: Likewise.
7286 * elf/dl-lookup.c: Likewise.
7287 * elf/dl-open.c: Likewise.
7288 * elf/dl-reloc.c: Likewise.
7289 * elf/dl-sym.c: Likewise.
7290 * elf/dl-version.c: Likewise.
7291 * sysdeps/generic/dl-sysdep.c: Likewise.
7293 2001-09-04 Jakub Jelinek <jakub@redhat.com>
7295 * iconv/strtab.c (strtabinit): Initialize null Strent.
7296 (newstring): Move len == 0 handling...
7297 (strtabadd): ...here.
7298 If len == 1, return null Strent.
7299 When inserting a suffix of an existing string, check if
7300 it is not equal to some suffix already recorded.
7301 Copy left and right members over if adding longer string.
7303 2001-09-04 Jakub Jelinek <jakub@redhat.com>
7305 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
7307 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
7308 (__syscall_gethostname): Add prototype.
7310 2001-09-04 Ulrich Drepper <drepper@redhat.com>
7312 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
7314 2001-09-02 Ulrich Drepper <drepper@redhat.com>
7316 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
7318 2001-08-27 Roland McGrath <roland@frob.com>
7320 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
7321 short, copy that much into NAME anyway before returning error.
7323 2001-09-01 Richard Henderson <rth@redhat.com>
7325 * sysdeps/alpha/elf/Dist: Remove file.
7326 * sysdeps/alpha/elf/Makefile: Remove file.
7327 * sysdeps/alpha/elf/crtbegin.S: Remove file.
7328 * sysdeps/alpha/elf/crtend.S: Remove file.
7329 * sysdeps/alpha/elf/initfini.c: New file.
7331 2001-09-01 Mark Kettenis <kettenis@gnu.org>
7333 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
7334 * iconv/tst-iconv3.c: Likewise.
7336 2001-09-01 Jakub Jelinek <jakub@redhat.com>
7338 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
7340 2001-09-01 Ulrich Drepper <drepper@redhat.com>
7342 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
7344 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
7345 * iconv/iconv_prog.c (insert_cache): New function.
7346 (print_known_names): If cache is used call insert_cache to use the
7347 information from the cache [PR libc/2509].
7349 2001-08-31 Ulrich Drepper <drepper@redhat.com>
7351 * time/strptime.c (strptime_internal): Recognize 'l' format and
7352 handle it like 'I' for symmetry with strftime.
7354 2001-08-31 Richard Henderson <rth@redhat.com>
7356 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
7357 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
7358 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
7359 (print_statistics): Make scalar unsigned long long.
7360 * sysdeps/alpha/hp-timing.h: New file.
7362 2001-08-31 Jakub Jelinek <jakub@redhat.com>
7364 * stdio-common/perror.c (perror): Save errno early, pass it
7365 down to perror_internal.
7366 (perror_internal): Add errnum argument.
7368 2001-08-31 Jakub Jelinek <jakub@redhat.com>
7370 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
7371 Don't add old memory content for R_ALPHA_REFQUAD.
7373 2001-08-30 Ulrich Drepper <drepper@redhat.com>
7375 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
7378 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
7379 instead of open, __close instead of close, __getpagesize instead
7382 * string/argz-stringify.c (__argz_stringify): Use __strnlen
7384 * include/string.h (strndupa): Redefine here to use __strnlen
7386 * string/strndup.c (__strndup): Use __strnlen not strnlen.
7388 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
7391 2001-08-30 Jakub Jelinek <jakub@redhat.com>
7393 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
7394 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
7395 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
7396 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
7397 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
7398 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
7399 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
7401 2001-08-30 Ulrich Drepper <drepper@redhat.com>
7403 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
7405 2001-08-30 Andreas Jaeger <aj@suse.de>
7407 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
7408 contributed Stephen L Moshier.
7410 2001-08-30 Jakub Jelinek <jakub@redhat.com>
7412 * sunrpc/etc.rpc (sgi_fam): Add.
7414 2001-08-30 Ulrich Drepper <drepper@redhat.com>
7416 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
7418 2001-08-29 Ulrich Drepper <drepper@redhat.com>
7420 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
7421 first is from a previous call.
7422 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
7424 2001-08-29 Andreas Schwab <schwab@suse.de>
7426 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
7428 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7430 * config.make.in (INSTALL_SCRIPT): Define.
7431 * Makeconfig (INSTALL_SCRIPT): Define.
7432 * Makerules (do-install-script): New macro to install scripts using
7434 (install-bin-script): New rule to install scripts with
7436 (install-bin-script-nosubdir): New rule.
7437 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
7438 (distinfo-vars): Add $(install-bin-script).
7439 * Rules (others): Likewise.
7440 * Makefile (glibcbug): Install with install-bin-script.
7441 * debug/Makefile (xtrace): Likewise.
7442 (catchsegv): Likewise.
7443 * elf/Makefile (ldd): Likewise.
7444 * malloc/Makefile (mtrace): Likewise.
7445 * timezone/Makefile (tzselect): Likewise.
7447 2001-08-29 H.J. Lu <hjl@gnu.org>
7449 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
7450 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
7451 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
7453 2001-08-29 Andreas Schwab <schwab@suse.de>
7455 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
7457 2001-08-28 H.J. Lu <hjl@gnu.org>
7459 * Makeconfig (combreloc-LDFLAGS): New variable.
7460 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
7461 * config.make.in (have-z-combreloc): New variable.
7462 * configure.in: Substitute libc_cv_z_combreloc.
7464 2001-08-29 Ulrich Drepper <drepper@redhat.com>
7466 * po/sv.po: Update from translation team.
7467 * po/fr.po: Likewise.
7468 * po/da.po: Likewise.
7470 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7472 * Makerules: Fix a typo: MD% -> MD5.
7474 2001-08-28 Ulrich Drepper <drepper@redhat.com>
7476 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
7477 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
7479 2001-08-28 Andreas Jaeger <aj@suse.de>
7481 * manual/libc-texinfo.sh: Add entry about free manuals.
7483 * manual/contrib.texi (Contributors): Fix cross reference.
7485 * manual/libc.texinfo (Copying): Include freemanuals.
7487 * manual/Makefile (appendices): Add freemanuals.
7489 * manual/freemanuals.texi: New file.
7490 Patch by Brian Youmans <3diff@gnu.org>.
7492 * manual/libm-err-tab.pl: Pretty print more platforms, print a
7495 * manual/math.texi (Errors in Math Functions): Fix grammar, start
7496 table on separate page.
7497 Patch by Brian Youmans <3diff@gnu.org>.
7499 2001-08-27 Ulrich Drepper <drepper@redhat.com>
7501 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
7502 the connection went down after we first used it try to connect
7503 again and resend the message before printing to the console.
7504 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
7506 2001-08-27 Jakub Jelinek <jakub@redhat.com>
7508 * string/tst-strlen.c (main): Test strnlen (, -1) too.
7509 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
7512 2001-08-27 Ulrich Drepper <drepper@redhat.com>
7514 * iconv/strtab.c (searchstring): Use correct length for comparison.
7515 (strtabadd): Account total size correct if new string has old string as
7518 2001-08-27 Jakub Jelinek <jakub@redhat.com>
7520 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
7522 2001-08-27 Andreas Jaeger <aj@suse.de>
7524 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
7526 * math/libm-test.inc (j0_test): Add extra tests.
7527 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
7528 not x, in Hankel approximation.
7529 Patches by Stephen L Moshier.
7531 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7533 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
7536 * configure.in: Fix test for .rela.dyn section.
7538 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
7540 2001-08-26 Jakub Jelinek <jakub@redhat.com>
7542 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
7543 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
7544 Pass type_class to _dl_lookup_*.
7545 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
7546 Pass around just type_class instead of noexec, noplt pair.
7547 (_dl_lookup_versioned_symbol): Likewise.
7548 (_dl_lookup_symbol_skip): Pass around just type_class instead of
7550 (_dl_lookup_versioned_symbol_skip): Likewise.
7551 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
7552 * elf/do-lookup.h (do_lookup): Likewise.
7553 * include/link.h (struct link_map): Replace noexec and noplt fields
7554 in l_lookup_cache with type_class field.
7555 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
7556 ELF_RTYPE_CLASS_COPY): Define.
7557 Adjust prototypes for _dl_lookup_symbol and
7558 _dl_lookup_versioned_symbol.
7559 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
7560 elf_machine_lookup_noexec_p): Remove.
7561 (elf_machine_type_class): Define.
7562 * sysdeps/arm/dl-machine.h: Likewise.
7563 * sysdeps/hppa/dl-machine.h: Likewise.
7564 * sysdeps/cris/dl-machine.h: Likewise.
7565 * sysdeps/i386/dl-machine.h: Likewise.
7566 * sysdeps/ia64/dl-machine.h: Likewise.
7567 * sysdeps/m68k/dl-machine.h: Likewise.
7568 * sysdeps/mips/mips64/dl-machine.h: Likewise.
7569 * sysdeps/mips/dl-machine.h: Likewise.
7570 * sysdeps/powerpc/dl-machine.h: Likewise.
7571 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7572 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7573 * sysdeps/sh/dl-machine.h: Likewise.
7574 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7575 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7577 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7579 * manual/message.texi (Advanced gettext functions): Change
7580 description of plural forms for Slovak.
7581 Reported by Marcel Telka <marcel@telka.sk>.
7583 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
7584 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7586 2001-08-26 Jakub Jelinek <jakub@redhat.com>
7588 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7589 typo. Patch by Florian La Roche <laroche@redhat.com>.
7591 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7593 * include/link.h (struct link_map): Add l_lookup_cache element.
7594 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7595 (RESOLVE_MAP): Likewise.
7596 (_dl_relocate_object): Remove cache initialization.
7597 * elf/dl-lookup.c: Rip out cache handling code.
7598 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7601 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7602 remove some __builtin_expect.
7603 (_dl_lookup_versioned_symbol): Likewise.
7605 * config.h.in: Add HAVE_Z_COMBRELOC.
7606 * configure.in: Add test for -z combreloc.
7608 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7609 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
7610 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
7611 case to almost no code.
7613 2001-08-25 Ulrich Drepper <drepper@redhat.com>
7615 * po/tr.po: Update from translation team.
7617 2001-08-24 Andreas Jaeger <aj@suse.de>
7619 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7622 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7624 * elf/rtld.c (print_statistics): Printf % after percent values.
7625 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7627 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7628 don't have to compute the hash value and initialize current_value.
7629 Move reference_name variable to where it is needed.
7630 (_dl_lookup_versioned_symbol): Likewise.
7632 2001-08-24 Roland McGrath <roland@frob.com>
7634 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7635 Just test that strerror returns non-null for a few errno codes.
7637 2001-08-23 Roland McGrath <roland@frob.com>
7639 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7640 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7642 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7644 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7647 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7649 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7652 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7653 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7655 * elf/rtld.c: Include <sys/param.h>.
7656 * elf/dl-reloc.c: Likewise.
7658 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7660 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7661 empty to prevent junk from being generated.
7662 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7664 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7666 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7667 records. Rename endrel to relative, initialize it to r, and use it
7668 in elf_machine_rel_relative calls. Point r after relative relocs.
7670 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7672 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7675 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7677 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7678 necessary. Undefine newly defined macros at the end.
7679 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7680 Rename from elf_machine_rel_relative.
7681 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7682 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7683 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7684 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7686 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7688 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7690 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7692 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7693 Likewise. Fix argument types.
7694 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7695 Likewise. Fix argument types.
7696 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7698 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7699 ElfW(Rel) in argument.
7700 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7703 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
7705 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7707 2001-08-24 Andreas Jaeger <aj@suse.de>
7709 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7710 Stephen L Moshier <moshier@mediaone.net>.
7712 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7714 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7715 first if RELCOUNT is set.
7717 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7718 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7719 elf_machine_rel_relative.
7720 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7721 Minor optimizations.
7722 * sysdeps/arm/dl-machine.h: Likewise.
7723 * sysdeps/cris/dl-machine.h: Likewise.
7724 * sysdeps/hppa/dl-machine.h: Likewise.
7725 * sysdeps/i386/dl-machine.h: Likewise.
7726 * sysdeps/ia64/dl-machine.h: Likewise.
7727 * sysdeps/m68k/dl-machine.h: Likewise.
7728 * sysdeps/mips/dl-machine.h: Likewise.
7729 * sysdeps/powerpc/dl-machine.h: Likewise.
7730 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7731 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7732 * sysdeps/sh/dl-machine.h: Likewise.
7733 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7734 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7736 2001-08-23 Roland McGrath <roland@frob.com>
7738 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7740 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7741 sysdeps/mach version. Implement counting ("recursive") mutexes
7742 on top of cthreads mutexes.
7743 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7745 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7746 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7747 (__libc_cleanup_region_start, __libc_cleanup_region_end,
7748 __libc_clean_end): Define these to call the cleanup function after
7749 normal exit when they're supposed to.
7751 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7752 Take new first arg DOIT, a boolean saying whether to really install
7753 any cleanup handler.
7754 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7755 (__libc_cleanup_end): Likewise.
7756 * sysdeps/generic/bits/libc-lock.h: Same changes.
7757 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7758 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7759 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7761 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7762 * sysdeps/generic/bits/stdio-lock.h
7763 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7765 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7767 * elf/ldconfig.c (search_dir): Remove stale symlinks.
7769 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7771 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7772 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7774 (_dl_lookup_versioned_symbol): Likewise.
7775 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7777 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7778 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7779 (lookup_cache, lookup_cache_versioned): Add declarations.
7781 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7783 * stdlib/tst-random.c (main): Swap parameters in fail call.
7784 Patch by Pete Bevin <pete@petebevin.com>.
7786 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7788 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7790 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7792 * malloc/obstack.c: Indent preprocessor directives.
7793 Patch by Jim Meyering <meyering@ascend.com>.
7795 * po/ja.po: Update from translation team.
7797 2001-08-23 Roland McGrath <roland@frob.com>
7799 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
7801 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
7802 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
7804 2001-08-22 Roland McGrath <roland@frob.com>
7806 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
7807 __libc_lock_define_recursive.
7808 * elf/dl-open.c: Don't declare it here any more.
7809 * elf/dl-close.c: Likewise.
7810 * elf/dl-lookup.c: Likewise.
7811 * elf/dl-iteratephdr.c: Likewise.
7812 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
7813 __libc_lock_unlock_recursive.
7814 * elf/dl-close.c (_dl_close): Likewise
7815 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
7816 * elf/dl-open.c (_dl_open): Likewise
7818 * sysdeps/generic/bits/libc-lock.h
7819 (__libc_lock_define_recursive): New macro.
7820 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
7821 (_IO_lock_lock): Use __libc_lock_lock_recursive.
7822 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
7824 * conform/conformtest.pl (checknamespace): Sort the output list.
7826 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
7827 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
7828 definitions conditional on [__USE_XOPEN].
7830 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
7831 these unconditionally, not only use [__USE_BSD], so as to match
7832 the sysdeps/unix/sysv/linux files.
7834 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7836 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
7839 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
7842 2001-08-22 Roland McGrath <roland@frob.com>
7844 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
7845 conditionalization of sa_handler/sa_sigaction member types to
7846 match the sysdeps/unix/sysv/linux file.
7848 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7850 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
7851 symbol sizes a bit better.
7853 * sysdeps/ia64/strncpy.S: Complete rewrite.
7854 Contributed by Jakub Jelinek <jakub@redhat.com>.
7856 * string/stratcliff.c (main): Add strncpy test.
7858 2001-08-22 Roland McGrath <roland@frob.com>
7860 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
7861 and don't declare unsetenv or _environ directly.
7862 (unsetenv): Return int, not void. Use __environ instead of _environ.
7864 2001-08-01 Mark Kettenis <kettenis@gnu.org>
7866 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
7867 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
7868 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
7869 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7870 test for cmsg struct size.
7872 2001-04-23 Paul Eggert <eggert@twinsun.com>
7874 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
7875 Rename __argc to ___argc in prototypes to avoid compatibility
7876 problems with systems that reserve the identifier "__argc".
7877 Similarly for __argv.
7879 2001-08-21 Roland McGrath <roland@frob.com>
7881 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
7883 * mach/Makefile (tests): Removed.
7884 * mach/hello.c: File removed.
7886 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7888 * po/sv.po: Update from translation team.
7890 * stdio-common/vfscanf.c: Fix handling of %l[].
7891 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
7893 * libio/Makefile (tests): Add tst-sscanf.
7894 * libio/tst-sscanf.c: New file.
7896 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
7897 * malloc/mtrace.c (tr_where): dli_sname always points to a
7898 non-empty string if != NULL.
7899 Reported by Tim Janik <timj@gtk.org>.
7901 2001-08-22 Jakub Jelinek <jakub@redhat.com>
7903 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
7904 buf. Free resources on failure.
7905 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
7906 (makefd_xprt): Likewise.
7907 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7908 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
7909 * sunrpc/auth_unix.c (authunix_create): Likewise.
7911 2001-08-21 Jakub Jelinek <jakub@redhat.com>
7913 * string/strnlen.c: Remove.
7914 * sysdeps/generic/strnlen.c: New file.
7915 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
7917 2001-08-21 Roland McGrath <roland@frob.com>
7919 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
7920 as a macro, not an extern inline function.
7922 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
7923 * Versions.def (libc): Add GLIBC_2.2.5 set.
7924 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
7925 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
7927 2001-08-20 Roland McGrath <roland@frob.com>
7929 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
7930 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
7932 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7934 * string/bits/string2.h: Remove strnlen optimization here.
7935 * sysdeps/i386/i486/bits/string.h: Add it here.
7937 2001-08-21 Wolfram Gloger <wg@malloc.de>
7939 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
7941 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7943 * po/gl.po: Update from translation team.
7945 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7947 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
7948 * misc/err.c (convert_and_print): Likewise.
7950 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
7953 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7955 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
7956 change of the gregset_t type.
7957 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7959 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
7961 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
7963 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7965 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
7967 * string/strnlen.c: Fix the implementation. We cannot use memchr.
7969 2001-08-18 Mark Kettenis <kettenis@gnu.org>
7971 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
7972 before calling the cthreads initialization code.
7974 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7976 * argp/argp-help.c: Fix two problems introduced in last change.
7978 * include/dirent.h: Include <dirstream.h> first.
7980 2001-08-19 Ulrich Drepper <drepper@redhat.com>
7982 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
7984 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
7985 * sunrpc/xdr_rec.c: Likewise.
7986 * sunrpc/xdr_mem.c: Likewise.
7987 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
7988 * sunrpc/rpc_cmsg.c: Likewise.
7989 * sunrpc/getrpcport.c (getrpcport): Likewise.
7990 * sunrpc/clnt_simp.c (callrpc): Likewise.
7991 * sunrpc/clnt_gen.c (clnt_create): Likewise.
7992 * string/envz.c: Likewise.
7994 * po/ko.po: Update from translation team.
7996 * argp/argp-help.c: Handle wide oriented stderr stream.
7998 2001-08-18 Ulrich Drepper <drepper@redhat.com>
8000 * sysdeps/generic/strtol.c: Little optimizations. Add some
8003 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
8005 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
8006 * wcsmbs/wcwidth.c (wcwdith): Likewise.
8007 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
8009 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
8011 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
8013 * time/time.h (struct timespec): Use __time_t for tv_sec element.
8015 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
8016 wchar_t for function declarations and defintions.
8018 * misc/sys/select.h: Define __need_time_t before including <time.h>.
8019 Define suseconds_t if it hasn't happened yet.
8021 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
8023 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
8025 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
8028 * conform/data/stddef.h-data: Remove wint_t.
8030 * conform/conformtest.pl: Change namespace test to take #undef
8033 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
8035 * conform/data/sys/socket.h-data: Add sockatmark.
8037 2001-08-17 Ulrich Drepper <drepper@redhat.com>
8039 * io/fts.c: Update from recent BSD source.
8041 2001-08-17 Roland McGrath <roland@frob.com>
8043 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
8044 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
8047 2001-08-17 Ulrich Drepper <drepper@redhat.com>
8049 * locale/duplocale.c (__duplocale): Also initialize the special
8052 * conform/data/netdb.h-data: Adjust gai_strerror return type.
8054 2001-08-17 Andreas Jaeger <aj@suse.de>
8056 * misc/getpass.c: Include wchar.h for prototypes.
8057 * malloc/obstack.c: Likewise.
8059 2001-08-17 Ulrich Drepper <drepper@redhat.com>
8061 * sunrpc/svc_simple.c (universal): Use __write instead of write.
8063 * wcsmbs/wcscoll.c: Also define __wcscoll.
8064 * include/wchar.h: Declare __wcscoll.
8066 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
8067 * libio/vwprintf.c: Likewise.
8068 * libio/wprintf.c: Likewise.
8070 * iconv/gconv_cache.c: Use __munmap instead of munmap.
8072 2001-08-16 Ulrich Drepper <drepper@redhat.com>
8074 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
8076 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
8077 wcslen, and __wcscoll instead of wcscoll.
8079 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
8081 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
8082 __getuid instead of getuid.
8084 * stdio-common/perror.c (perror): Use __close instead of close.
8085 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8086 * libio/freopen.c (freopen): Likewise.
8087 * libio/freopen64.c (freopen64): Likewise.
8089 * libio/tst-ungetwc2.c (main): Define str const.
8091 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
8092 * libio/fwprintf.c: Also define __fwprintf.
8093 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
8094 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
8095 * assert/assert-perr.c: Likewise.
8096 * assert/assert.c: Likewise.
8097 * gmon/gmon.c: Likewise.
8098 * inet/rcmd.c: Likewise.
8099 * malloc/obstack.c: Likewise.
8100 * misc/err.c: Likewise.
8101 * misc/error.c: Likewise.
8102 * misc/getpass.c: Likewise.
8103 * posix/getopt.c: Likewise.
8104 * resolv/res_hconf.c: Likewise.
8105 * stdio-common/perror.c: Likewise.
8106 * stdio-common/psignal.c: Likewise.
8107 * stdlib/fmtmsg.c: Likewise.
8108 * sunrpc/auth_unix.c: Likewise.
8109 * sunrpc/clnt_perr.c: Likewise.
8110 * sunrpc/clnt_tcp.c: Likewise.
8111 * sunrpc/clnt_udp.c: Likewise.
8112 * sunrpc/clnt_unix.c: Likewise.
8113 * sunrpc/svc_simple.c: Likewise.
8114 * sunrpc/svc_tcp.c: Likewise.
8115 * sunrpc/svc_udp.c: Likewise.
8116 * sunrpc/svc_unix.c: Likewise.
8117 * sunrpc/xdr.c: Likewise.
8118 * sunrpc/xdr_array.c: Likewise.
8119 * sunrpc/xdr_rec.c: Likewise.
8120 * sunrpc/xdr_ref.c: Likewise.
8121 * sysdeps/generic/wordexp.c: Likewise.
8123 * po/it.po: Update from translation team.
8125 * misc/err.c: Handle wide oriented stderr stream.
8127 2001-08-14 Tom Rix <trix@redhat.com>
8129 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
8130 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
8132 2001-08-13 Tom Rix <trix@redhat.com>
8134 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
8135 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
8138 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
8140 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
8141 Store the access registers to the ucontext structure.
8142 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
8145 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
8146 Load the access registers from the ucontext structure.
8147 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
8150 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
8151 offsets to the new ucontext layout.
8152 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
8154 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
8155 of the ucontext structure.
8156 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8158 2001-08-15 Ulrich Drepper <drepper@redhat.com>
8160 * misc/error.c (error): Handle wide oriented stderr stream correctly.
8161 (error_at_line): Likewise.
8163 * stdio-common/perror.c (perror): Implement according to standard.
8164 The stream orientation must not be changed if the stream was not
8165 oriented before the call.
8166 * stdio-common/Makefile (tests): Add tst-perror.
8167 * stdio-common/tst-perror.c: New file.
8170 See ChangeLog.12 for earlier changes.