1 2002-06-07 Jakub Jelinek <jakub@redhat.com>
3 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New.
4 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New.
5 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New.
6 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New.
7 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
8 (sendfile64): Likewise.
9 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
10 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
11 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
13 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
15 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
18 2002-06-04 Bruno Haible <bruno@clisp.org>
20 * sysdeps/cris/stackinfo.h: New file.
22 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
23 to an integer type before performing bit operations on it.
25 2002-06-05 Roland McGrath <roland@frob.com>
27 * sysdeps/generic/sendfile.c: Include <errno.h>.
28 * sysdeps/generic/sendfile64.c: Likewise.
30 * io/Makefile (routines): Add sendfile and sendfile64.
31 (headers): Add sys/sendfile.h to the list.
32 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
33 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
34 * io/sys/sendfile.h: ... here.
35 * sysdeps/generic/sendfile.c: New file.
36 * sysdeps/generic/sendfile64.c: New file.
38 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
39 Move sendfile, sendfile64 to ...
40 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
41 * sysdeps/mach/hurd/sendfile.c: New file.
42 * sysdeps/mach/hurd/sendfile64.c: New file.
44 * sysdeps/mach/nanosleep.c: New file.
46 2002-06-04 Roland McGrath <roland@frob.com>
48 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
49 * sysdeps/alpha/elf/configure: New file (generated).
51 2002-06-02 Roland McGrath <roland@frob.com>
53 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
55 2002-06-01 Roland McGrath <roland@frob.com>
57 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
58 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
60 2002-05-21 Jakub Jelinek <jakub@redhat.com>
62 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
64 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
65 Remove nstimes setting.
66 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
67 * resolv/res_send.c (res_nsend): Don't close unconditionally if
68 there is mix of IPv6 and IPv4 nameservers.
69 Use nsmap array to find free slots and preserve nameserver ordering.
72 2002-05-30 Ulrich Drepper <drepper@redhat.com>
74 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
75 use this header with LFS.
77 * po/sk.po: Update from translation team.
79 2002-05-28 Andreas Schwab <schwab@suse.de>
81 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
82 message when finding object of wrong class.
84 2002-05-28 Jakub Jelinek <jakub@redhat.com>
86 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
87 Patch by <radu@netsoft.ro>.
89 2002-05-30 Ulrich Drepper <drepper@redhat.com>
91 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
93 * sysdeps/unix/sysv/linux/readahead.c: New file.
94 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
95 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
96 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
97 Add sendfile64 alias to sendfile syscall.
98 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
99 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
100 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
101 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
104 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
105 special section for PIC register loading.
106 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
108 * config.h.in: Define HAVE_HIDDEN.
109 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
111 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
113 2002-05-28 Roland McGrath <roland@frob.com>
115 * sysdeps/mach/alpha/setfpucw.c: New file.
117 2002-05-26 Roland McGrath <roland@frob.com>
119 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
120 Use integer_t instead of int for IOC_VOID case.
122 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
124 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
126 2002-05-26 Bruno Haible <bruno@clisp.org>
128 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
129 end of the ISO-8859-7 from idx table.
131 2002-05-27 Ulrich Drepper <drepper@redhat.com>
133 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
135 2002-05-24 David S. Miller <davem@redhat.com>
137 * string/bits/string2.h (memset): Do not try to optimize when
138 not _STRING_ARCH_unaligned if GCC will do the right thing.
140 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
142 * posix/regex.c: Define `inline' as a macro into nothing for the
143 compilers which lack the keyword.
144 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
145 for the compatibility of gawk.
146 * posix/regcomp.c: Add fake implementation of isblank() for the
147 environments which lack the function.
148 Don't use free_charset() in case of non-i18n envs.
149 (build_range_exp): Don't use i18n related code in case of non-i18n
151 (build_collating_symbol): Likewise.
152 (build_equiv_class): Likewise.
153 (build_charclass): Likewise.
154 (re_compile_fastmap_iter): Likewise.
155 (parse_bracket_exp): Likewise.
156 (build_word_op): Likewise.
157 (regfree): Don't use free_charset() in case of non-i18n envs.
158 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
159 re_token_type_t in case of non-i18n envs.
160 Don't define re_charset_t in case of non-i18n envs.
161 Change the type of wcs of re_string_t from wchar_t to wint_t,
162 since we store also WEOF.
163 * posix/regex_internal.c: (re_string_realloc_buffers): Change
164 the type of wcs of re_string_t from wchar_t to wint_t.
165 (re_string_reconstruct): Likewise.
166 (create_ci_newstate): Don't use i18n related code in case of
168 (create_cd_newstate): Likewise.
170 2002-05-24 Ulrich Drepper <drepper@redhat.com>
172 * iconv/loop.c: Fix typo.
174 2002-05-23 Jakub Jelinek <jakub@redhat.com>
176 * inet/ether_line.c (ether_line): Fix a typo causing only
177 lower 4 bits of each ethernet address byte being assigned.
178 Don't modify what line points to.
179 * inet/tst-ether_aton.c (main): Add ether_line tests.
181 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
183 * manual/filesys.texi: Don't make readlink example leak memory
186 2002-05-20 Ulrich Drepper <drepper@redhat.com>
188 * iconv/loop.c: Fix condition for defining unaligned loop. Add
189 some more security checks.
191 2002-05-17 David S. Miller <davem@redhat.com>
193 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
195 2002-05-16 David S. Miller <davem@redhat.com>
197 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
198 (elf_machine_dynamic): Use it to force PIC register to be loaded.
199 (elf_machine_load_address): Likewise.
200 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
202 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
203 is unaligned, do not forget to fully initialize %g1 magic value.
205 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
206 register definitions and provide 32-bit variants of structures
207 during 64-bit builds.
209 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
210 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
211 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
212 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
213 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
214 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
215 Do not clear implicit one bit here, it must be done post-rounding.
216 Only pad to the left using left shift if value uses less than the
217 available fractional bits.
219 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
221 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
222 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
223 (shared-only-routines): Likewise.
224 * sysdeps/powerpc/libgcc-compat.c: New file.
225 * sysdeps/wordsize-32/cmpdi2.c: Removed.
226 * sysdeps/wordsize-32/fixdfdi.c: Removed.
227 * sysdeps/wordsize-32/fixsfdi.c: Removed.
228 * sysdeps/wordsize-32/shdi3.c: Removed.
230 2002-05-16 Bruno Haible <bruno@clisp.org>
232 * MakeTAGS (libc.pot): Don't sort the output.
233 * po/header.pot: Update to match xgettext 0.11 output.
235 2002-05-16 Bruno Haible <bruno@clisp.org>
237 * MakeTAGS (subdirs): Remove duplicates.
239 2002-05-19 Ulrich Drepper <drepper@redhat.com>
241 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
242 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
245 2002-05-19 Andreas Jaeger <aj@suse.de>
247 * sysdeps/unix/sysv/linux/configure.in: Warn against an
248 installation in /usr/local.
250 2002-05-16 Bruno Haible <bruno@clisp.org>
252 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
253 string as argument of #error.
255 2002-05-15 Ulrich Drepper <drepper@redhat.com>
257 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
258 don't define static. Remove old __realpath function. TC1 of
259 POSIX 2001 will allow the second parameter to be NULL.
260 * stdlib/test-canon.c: Comment out test for NULL as second
261 parameter of realpath.
263 * time/offtime.c (__offtime): Set errno if overflow is detected.
265 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
266 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
269 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
272 2002-05-15 Roland McGrath <roland@frob.com>
274 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
276 2002-05-12 Bruno Haible <bruno@clisp.org>
278 * iconvdata/testdata/EUC-JISX0213: New file.
279 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
280 * iconvdata/testdata/SHIFT_JISX0213: New file.
281 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
282 * iconvdata/testdata/ISO-2022-JP-3: New file.
283 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
284 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
285 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
286 contains comments indicating precomposed characters.
288 2002-04-21 Bruno Haible <bruno@clisp.org>
290 * iconvdata/iso-2022-jp-3.c: New file.
291 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
292 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
293 (LDFLAGS-ISO-2022-JP-3.so): New variable.
294 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
295 (distribute): Add iso-2022-jp-3.c.
297 2002-05-12 Bruno Haible <bruno@clisp.org>
299 * iconvdata/tst-table-to.c (main): Restore handling of
300 transliterations, broken by last patch.
302 2002-05-12 Bruno Haible <bruno@clisp.org>
304 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
306 2002-05-12 Bruno Haible <bruno@clisp.org>
308 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
309 when there is not enough room in the output buffer.
310 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
312 2002-04-20 Bruno Haible <bruno@clisp.org>
314 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
316 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
317 Also make this macro work if FROM_DIRECTION evaluates to 0.
318 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
319 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
320 of consume_incomplete.
321 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
322 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
324 * iconvdata/cp1258.c: Likewise.
325 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
326 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
328 * iconvdata/ibm933.c: Likewise.
329 * iconvdata/ibm935.c: Likewise.
330 * iconvdata/ibm937.c: Likewise.
331 * iconvdata/ibm939.c: Likewise.
332 * iconvdata/iso-2022-cn.c: Define
333 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
334 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
335 * iconvdata/iso-2022-cn-ext.c: Likewise.
336 * iconvdata/iso-2022-jp.c: Define
337 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
338 {MIN,MAX}_NEEDED_{FROM,TO}.
339 * iconvdata/tcvn5712-1.c: Define
340 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
341 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
342 * iconvdata/euc-jisx0213.c: Define
343 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
344 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
345 * iconvdata/shift_jisx0213.c: Likewise.
347 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
349 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
350 shdi3, fixdfdi, fixsfdi in csu dir.
351 (shared-only-routines): Likewise.
352 * sysdeps/wordsize-32/cmpdi2.c: New file.
353 * sysdeps/wordsize-32/shdi3.c: New file.
354 * sysdeps/wordsize-32/fixdfdi.c: New file.
355 * sysdeps/wordsize-32/fixsfdi.c: New file.
356 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
357 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
358 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
360 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
361 Only use va_arg if the argument will be used [PR libc/3259].
363 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
365 * catgets/catgets.c (catopen): Free buffer if internal catalog
368 2002-05-14 Ulrich Drepper <drepper@redhat.com>
370 * debug/xtrace.sh: Make more robust. For realtime tracking use
371 non-buffering methods.
372 * debug/pcprofiledump.c: Implement -u option.
373 Patch by Roger Luethi <rl@hellgate.ch>.
375 2002-05-11 Jakub Jelinek <jakub@redhat.com>
377 * include/netinet/in.h (bindresvport_internal): Add prototype.
378 * include/rpc/auth.h (authunix_create_internal,
379 authunix_create_default_internal, authnone_create_internal,
380 authdes_pk_create_internal): Add prototypes.
381 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
382 clntudp_create_internal, clntudp_bufcreate_internal,
383 clntunix_create_internal): Add prototypes.
384 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
385 svc_getreq_internal, svc_getreq_common_internal,
386 svc_getreqset_internal, svc_getreq_poll_internal,
387 svc_register_internal, svc_unregister_internal,
388 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
389 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
390 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
391 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
392 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
393 * inet/rcmd.c (rcmd_af): Use __listen.
394 (rresvport_af): Use __bind.
395 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
396 authunix_create, authunix_create_default, authnone_create,
397 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
398 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
399 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
400 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
401 _authenticate, add INTDEF after such function definitions.
402 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
403 __setsockopt, __getsockname instead of non-__ variants.
404 * sunrpc/pmap_rmt.c: Likewise.
405 * sunrpc/rtime.c: Likewise.
406 * sunrpc/svc_udp.c: Likewise.
407 * sunrpc/clnt_unix.c: Likewise.
408 * sunrpc/svc_unix.c: Likewise.
409 * sunrpc/bindrsvprt.c: Likewise.
410 * sunrpc/svc_tcp.c: Likewise.
411 * sunrpc/auth_none.c: Likewise.
412 * sunrpc/clnt_raw.c: Likewise.
413 * sunrpc/clnt_tcp.c: Likewise.
414 * sunrpc/auth_unix.c: Likewise.
415 * sunrpc/key_call.c: Likewise.
416 * sunrpc/clnt_gen.c: Likewise.
417 * sunrpc/pm_getmaps.c: Likewise.
418 * sunrpc/clnt_simp.c: Likewise.
419 * sunrpc/pmap_clnt.c: Likewise.
420 * sunrpc/svc_run.c: Likewise.
421 * sunrpc/svc.c: Likewise.
422 * sunrpc/svc_simple.c: Likewise.
423 * sunrpc/pm_getport.c: Likewise.
424 * sunrpc/auth_des.c: Likewise.
425 * sunrpc/svc_auth.c: Likewise.
426 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
427 __register_frame_info_table_bases, __deregister_frame_info_bases):
429 (__register_frame_info_bases_internal,
430 __register_frame_info_table_bases_internal,
431 __deregister_frame_info_bases_internal): Add prototypes.
432 (__register_frame_info, __register_frame): Use INTUSE in call to
433 __register_frame_info_bases.
434 (__register_frame_info_table): Similarly.
435 (__deregister_frame_info, __deregister_frame): Similarly.
436 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
437 sendto as weak alias.
438 * sysdeps/mach/hurd/sendto.c: Likewise.
439 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
440 recvfrom as weak alias.
441 * sysdeps/mach/hurd/recvfrom.c: Likewise.
442 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
443 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
444 recvmsg as weak alias.
445 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
446 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
447 sendmsg as weak alias.
448 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
449 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
450 setsockopt, add setsockopt as weak alias.
451 * sysdeps/mach/hurd/setsockopt.c: Likewise.
452 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
454 * sysdeps/mach/hurd/bind.c: Likewise.
455 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
457 * sysdeps/mach/hurd/listen.c: Likewise.
458 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
459 getsockname, add getsockname as weak alias.
460 * sysdeps/mach/hurd/getsockname.c: Likewise.
461 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
462 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
463 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
464 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
465 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
466 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
468 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
469 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
470 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
471 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
472 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
473 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
474 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
475 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
476 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
477 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
478 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
479 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
481 2002-05-10 Jakub Jelinek <jakub@redhat.com>
483 * locale/programs/localedef.h (show_archive_content): Add verbose
485 * locale/programs/localedef.c (main): Adjust caller.
486 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
487 (nameentcmp, dataentcmp): New functions.
489 (show_archive_content): Print verbose listing with --list-archive -v.
491 2002-05-14 Ulrich Drepper <drepper@redhat.com>
493 * locale/programs/locarchive.c (open_archive): Take extra argument
494 readonly. If true open file with O_RDONLY and don't create the
495 archive if it doesn't exist.
497 (close_archive): Don't do anything if fd element is -1.
498 * locale/programs/localedef.h (open_archive): Adjust prototype.
499 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
502 * malloc/malloc.c (__posix_memalign): Correct check for size of
503 alignment value [PR libc/3444].
505 * include/stdio.h: Remove references to old stdio implementation.
507 * libio/Makefile (bug-ungetwc2-ENV): Define.
509 2002-05-13 Roland McGrath <roland@frob.com>
511 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
513 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
515 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
517 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
518 Allocate three, not two, more than LEN when appending '/.'.
519 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
520 if NAME ends with '/.' if it is shorter than 2 chars.
522 2002-05-12 Roland McGrath <roland@frob.com>
524 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
525 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
527 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
528 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
530 2002-05-10 Jakub Jelinek <jakub@redhat.com>
532 * sysdeps/ia64/Makefile: Remove extra endif.
533 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
535 2002-05-10 Andreas Schwab <schwab@suse.de>
537 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
539 2002-05-09 Andreas Jaeger <aj@suse.de>
541 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
542 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
543 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
545 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
546 * sysdeps/wordsize-64/glob.c: ...here.
547 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
548 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
549 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
551 2002-05-08 Roland McGrath <roland@frob.com>
553 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
554 O_NOTRANS flag in "." lookup.
556 2002-05-05 Ulrich Drepper <drepper@redhat.com>
558 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
560 2002-05-04 Ulrich Drepper <drepper@redhat.com>
562 * locale/duplocale.c (__duplocale): Update special members only
563 when allocation succeeded.
565 2002-05-03 Roland McGrath <roland@frob.com>
567 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
568 we can only build libc.so.0.3(GLIBC_2.2.6) now.
570 2002-05-02 Jakub Jelinek <jakub@redhat.com>
572 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
573 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
574 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
575 * sysdeps/ia64/ia64libgcc.S: New file.
577 2002-05-02 Ulrich Drepper <drepper@redhat.com>
579 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
581 * malloc/memusage.c: Distinguish anonymous mmap.
583 2002-05-01 Roland McGrath <roland@frob.com>
585 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
586 and use INTDEF on it.
587 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
589 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
591 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
593 2002-05-01 Ulrich Drepper <drepper@redhat.com>
595 * malloc/memusage.c: Add support for tracking mmap & friends.
596 * malloc/memusage.sh: Implement -m/--mmap option.
598 2002-04-30 Jakub Jelinek <jakub@redhat.com>
600 * locale/programs/locarchive.c (create_archive): Add archivefname
601 argument, create fname from it.
602 (enlarge_archive): Honour output_prefix.
603 (open_archive): Likewise.
605 2002-04-30 Jakub Jelinek <jakub@redhat.com>
607 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
608 too many stpcpy macros.
610 2002-04-26 Bruno Haible <bruno@clisp.org>
612 * locale/programs/ld-collate.c (collate_read): Cast first argument
615 2002-04-26 Bruno Haible <bruno@clisp.org>
617 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
618 __dcngettext_internal): New declarations.
619 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
620 attribute declarations.
622 2002-04-30 Roland McGrath <roland@frob.com>
624 Removed old GNU stdio implementation; GNU libio is now the only option.
625 * configure.in: Removed --enable-libio option and @stdio@ subst var.
626 Define USE_IN_LIBIO unconditionally.
627 * configure: Regenerated.
628 * Makeconfig (stdio): Set to libio by default.
629 * config.make.in (stdio): Variable removed.
630 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
631 * sysdeps/unix/sysv/linux/configure: Regenerated.
632 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
633 * sysdeps/mach/hurd/configure: Regenerated.
634 * stdio/.cvsignore: File removed.
635 * stdio/Makefile: File removed.
636 * stdio/Versions: File removed.
637 * stdio/__fbufsize.c: File removed.
638 * stdio/__flbf.c: File removed.
639 * stdio/__fpending.c: File removed.
640 * stdio/__fpurge.c: File removed.
641 * stdio/__freadable.c: File removed.
642 * stdio/__freading.c: File removed.
643 * stdio/__fsetlocking.c: File removed.
644 * stdio/__fwritable.c: File removed.
645 * stdio/__fwriting.c: File removed.
646 * stdio/clearerr.c: File removed.
647 * stdio/fclose.c: File removed.
648 * stdio/fcloseall.c: File removed.
649 * stdio/feof.c: File removed.
650 * stdio/ferror.c: File removed.
651 * stdio/fflush.c: File removed.
652 * stdio/fgetc.c: File removed.
653 * stdio/fgetpos.c: File removed.
654 * stdio/fgets.c: File removed.
655 * stdio/fileno.c: File removed.
656 * stdio/fmemopen.c: File removed.
657 * stdio/fopen.c: File removed.
658 * stdio/fopncook.c: File removed.
659 * stdio/fputc.c: File removed.
660 * stdio/fputs.c: File removed.
661 * stdio/fread.c: File removed.
662 * stdio/freopen.c: File removed.
663 * stdio/fseek.c: File removed.
664 * stdio/fsetpos.c: File removed.
665 * stdio/ftell.c: File removed.
666 * stdio/fwrite.c: File removed.
667 * stdio/getc.c: File removed.
668 * stdio/getchar.c: File removed.
669 * stdio/getdelim.c: File removed.
670 * stdio/gets.c: File removed.
671 * stdio/glue.c: File removed.
672 * stdio/internals.c: File removed.
673 * stdio/linewrap.c: File removed.
674 * stdio/linewrap.h: File removed.
675 * stdio/memstream.c: File removed.
676 * stdio/newstream.c: File removed.
677 * stdio/obstream.c: File removed.
678 * stdio/putc.c: File removed.
679 * stdio/putchar.c: File removed.
680 * stdio/puts.c: File removed.
681 * stdio/rewind.c: File removed.
682 * stdio/setbuf.c: File removed.
683 * stdio/setbuffer.c: File removed.
684 * stdio/setlinebuf.c: File removed.
685 * stdio/setvbuf.c: File removed.
686 * stdio/stdio.h: File removed.
687 * stdio/ungetc.c: File removed.
688 * stdio/vasprintf.c: File removed.
689 * stdio/vscanf.c: File removed.
690 * stdio/vsnprintf.c: File removed.
691 * stdio/vsprintf.c: File removed.
692 * stdio/vsscanf.c: File removed.
693 * sysdeps/generic/defs.c: File removed.
694 * sysdeps/generic/fdopen.c: File removed.
695 * sysdeps/generic/pipestream.c: File removed.
696 * sysdeps/generic/stdio_init.c: File removed.
697 * sysdeps/generic/sysd-stdio.c: File removed.
698 * sysdeps/generic/vdprintf.c: File removed.
699 * sysdeps/mach/hurd/defs.c: File removed.
700 * sysdeps/mach/hurd/fdopen.c: File removed.
701 * sysdeps/mach/hurd/pipestream.c: File removed.
702 * sysdeps/mach/hurd/stdio_init.c: File removed.
703 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
704 * sysdeps/mach/hurd/vdprintf.c: File removed.
705 * sysdeps/posix/defs.c: File removed.
706 * sysdeps/posix/fdopen.c: File removed.
707 * sysdeps/posix/pipestream.c: File removed.
708 * sysdeps/posix/stdio_init.c: File removed.
709 * sysdeps/posix/vdprintf.c: File removed.
710 * sysdeps/unix/pipestream.c: File removed.
711 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
712 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
713 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
715 2002-04-29 Roland McGrath <roland@frob.com>
717 * include/libc-symbols.h (link_warning): Use `unused' attribute.
719 2002-04-28 Ulrich Drepper <drepper@redhat.com>
721 * sysdeps/generic/tls.h: Describe what must be defined.
723 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
724 glob_in_dir [PR libc/3385].
725 * posix/globtest.sh: Add test case.
727 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
730 2002-04-27 Ulrich Drepper <drepper@redhat.com>
732 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
733 _internal symbol handling.
734 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
736 2002-04-26 Ulrich Drepper <drepper@redhat.com>
738 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
739 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
741 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
743 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
744 not _LIBC and RE_ENABLE_I18N.
745 (build_range_exp): Implement for not _LIBC.
746 (build_collating_symbol): Likewise.
747 (parse_bracket_exp): Unify redundant error handlings.
748 Don't erase mbcset for non matching list in multibyte envs.
749 (build_word_op): Add '_' to matching list for \w operator.
750 * posix/regex_internal.c (re_string_construct): Invoke
751 build_upper_buffer in case of not RE_ENABLE_I18N.
752 (re_string_reconstruct): Don't touch cur_state in case of not
754 * posix/regex_internal.h (attribute_hidden): New macro in case of
756 (re_charset_t): Define range_starts/ends in case of not _LIBC.
757 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
759 (transit_state_mb): Likewise.
760 (check_node_accept_bytes): Implement the code evaluating range
761 expression in case of not _LIBC.
762 (find_collation_sequence_value): Hide in case of not _LIBC.
764 2002-04-26 Jakub Jelinek <jakub@redhat.com>
766 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
768 (__old_semctl, __new_semctl): Only use va_arg if the argument will
771 2002-04-26 Ulrich Drepper <drepper@redhat.com>
773 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
775 * sysdeps/ia64/strncpy.S: Fix recovery code.
776 Patch by David Mosberger <davidm@hpl.hp.com>.
778 2002-04-24 Ulrich Drepper <drepper@redhat.com>
780 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
783 2002-04-14 Bruno Haible <bruno@clisp.org>
785 * posix/regex.c (re_max_failures): Add back symbol for binary
788 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
790 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
791 of buffer building functions.
792 * posix/regex_internal.c (re_string_allocate): New function.
793 (re_string_realloc_buffers): New function.
794 (re_string_skip_chars): New function.
795 (re_string_reconstruct): New function.
796 (re_string_construct): Adapt it to new interface of buffer building
798 (re_string_construct_common): Likewise.
799 (build_wcs_buffer): Likewise.
800 (build_wcs_upper_buffer): Likewise.
801 (build_upper_buffer): Likewise.
802 (re_string_translate_buffer): Likewise.
803 (re_string_context_at): Adapt it to variable length buffers.
804 * posix/regex_internal.h (re_string_t): Add new fields to handle
805 variable length buffers.
806 (re_match_context_t): Likewise.
807 * posix/regexec.c (re_search_internal): Adapt it to new interface
808 of re_string_t and re_match_context_t.
809 (acquire_init_state_context): Likewise.
810 (check_matching): Likewise.
811 (check_halt_state_context): Likewise.
812 (proceed_next_node): Likewise.
813 (set_regs): Likewise.
814 (sift_states_backward): Likewise.
815 (clean_state_log_if_need): Likewise.
816 (sift_states_iter_mb): Likewise.
817 (sift_states_iter_bkref): Likewise.
818 (add_epsilon_backreference): Likewise.
819 (transit_state): Likewise.
820 (transit_state_sb): Likewise.
821 (transit_state_mb): Likewise.
822 (transit_state_bkref): Likewise.
823 (transit_state_bkref_loop): Likewise.
824 (check_node_accept): Likewise.
825 (match_ctx_init): Likewise.
826 (extend_buffers): New function.
828 2002-04-21 Bruno Haible <bruno@clisp.org>
830 * iconvdata/tst-table.sh: For the second check, use the truncated
831 GB18030 charmap table, like for the first check.
833 2002-04-24 Ulrich Drepper <drepper@redhat.com>
835 * elf/dl-load.c (open_verify): Correct __lseek parameters.
836 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
838 2002-04-23 H.J. Lu <hjl@gnu.org>
840 * include/math.h (isfinite): Fix a typo.
842 2002-04-24 Ulrich Drepper <drepper@redhat.com>
844 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
845 which is created by the test suite.
847 2002-04-20 Bruno Haible <bruno@clisp.org>
849 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
850 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
852 2002-04-20 Bruno Haible <bruno@clisp.org>
854 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
855 to avoid gcc warning.
857 2002-04-20 Bruno Haible <bruno@clisp.org>
859 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
860 of data->__statep->__count.
862 2002-04-20 Bruno Haible <bruno@clisp.org>
864 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
866 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
868 2002-04-24 Roland McGrath <roland@frob.com>
870 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
871 use END macro instead of our own .end directive.
872 Use `callsys' insn mnemonic instead of `call_pal'.
874 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
876 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
877 macro; we need this for Hurd.
879 Log entry was missing for 2002/03/24 commit of rev 1.8,
880 goes with 2002-03-17 changes.
881 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
882 (sysdep_routines): Append ioperm here.
883 (sysdep_headers): Append sys/io.h here.
885 2002-04-23 Roland McGrath <roland@frob.com>
887 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
888 * sysdeps/mach/hurd/sendto.c: Likewise.
889 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
890 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
891 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
893 2002-04-22 Roland McGrath <roland@frob.com>
895 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
896 failure from i386_io_perm_* RPCs to ENOSYS.
898 2002-04-22 Andreas Jaeger <aj@suse.de>
900 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
902 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
904 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
905 register instead of destroying %rbx.
907 2002-04-21 Ulrich Drepper <drepper@redhat.com>
909 * string/string.h: Declare strerror_r also for XPG6.
911 2002-04-19 Roland McGrath <roland@frob.com>
913 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
915 2002-04-20 Ulrich Drepper <drepper@redhat.com>
917 * Makefile: Add handling of xtests and xcheck targets.
918 * MakeTAGS: Likewise.
919 * Makeconfig: Likewise.
920 * Makerules: Likewise.
922 * manual/Makefile: Likewise.
923 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
924 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
926 2002-04-11 Zack Weinberg <zack@codesourcery.com>
928 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
930 * sunrpc/auth_none.c: Include bits/libc-lock.h.
931 Delete #ifdef _RPC_THREAD_SAFE_ block.
932 (authnone_private): Make a struct, not a pointer to struct.
933 (authnone_private_guard): New once-control variable.
934 (authnone_create_once): New function, split out of
935 authnone_create. No need to allocate memory.
936 (authnone_create): Just call authnone_create_once via
937 __libc_once, then return &authnone_private->no_client.
938 (authnone_marshal): Access private data via CLIENT argument,
939 not authnone_private pointer.
940 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
941 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
944 2002-04-12 H.J. Lu <hjl@gnu.org>
946 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
948 2002-04-18 Bruno Haible <bruno@clisp.org>
950 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
951 FROM_DIRECTION): Make the FROM direction stateless.
952 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
953 FROM_DIRECTION): Likewise.
955 2002-04-15 Bruno Haible <bruno@clisp.org>
957 * iconvdata/JISX0213.TXT: New file.
958 * iconvdata/jisx0213.h: New file.
959 * iconvdata/jisx0213.c: New file.
960 * iconvdata/euc-jisx0213.c: New file.
961 * iconvdata/shift_jisx0213.c: New file.
962 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
963 * iconvdata/EUC-JISX0213.precomposed: New file.
964 * iconvdata/SHIFT_JISX0213.precomposed: New file.
965 * iconvdata/SHIFT_JISX0213.irreversible: New file.
966 * iconvdata/tst-table-to.c (main): Make it work for encodings for
967 which the "to" direction is stateful.
968 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
969 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
971 (libJISX0213-routines): New variable.
972 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
973 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
974 (LDFLAGS-libJISX0213.so): New variable.
975 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
976 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
977 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
979 2002-04-15 Bruno Haible <bruno@clisp.org>
981 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
982 uint32_t. Update to Unicode 3.2.
983 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
984 (BODY for TO_LOOP): Handle the ASCII range specially.
985 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
986 * iconvdata/testdata/BIG5HKSCS: Remove a character.
987 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
989 2002-04-15 Bruno Haible <bruno@clisp.org>
991 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
992 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
994 2002-04-15 Bruno Haible <bruno@clisp.org>
996 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
997 (ucs4_to_cns11643): Update.
998 * iconvdata/cns11643.c: Update to Unicode 3.2.
999 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1000 __cns11643_from_ucs4p2_tab): Regenerated.
1001 (__cns11643_from_ucs4p2c_tab): New array.
1002 * iconvdata/cvs11643l1.c: Update comments.
1003 * iconvdata/EUC-TW.irreversible: Remove two entries.
1005 2002-04-15 Bruno Haible <bruno@clisp.org>
1007 * locale/C-translit.h.in: Update to Unicode 3.2.
1008 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1009 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1011 2002-04-15 Bruno Haible <bruno@clisp.org>
1013 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1014 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1016 2002-04-15 Bruno Haible <bruno@clisp.org>
1018 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1019 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1020 always one byte, not 0 bytes in some cases and 2 bytes in others.
1022 * iconvdata/tst-table-from.c (main): Correct the usage message.
1024 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1026 * posix/regcomp.c (parse_expression): Fix incorrect error code.
1027 (parse_dup_op): Fix error handling like "a{}".
1028 (parse_bracket_exp): Add error handling.
1029 (fetch_number): Add error handling for "a{<very_large_number>}".
1031 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1033 * posix/regcomp.c (parse_bracket_symbol): Add error handling
1034 in case that the symbol name is too long.
1035 (build_charclass): Handle [:lower:]/[:uppper:] correctly
1036 in case of REG_ICASE.
1038 2002-04-19 Andreas Jaeger <aj@suse.de>
1040 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1041 <hartvige@mips.com>.
1043 2002-04-15 H.J. Lu <hjl@gnu.org>
1045 * include/math.h (__finitel_internal): Declare only if
1046 __NO_LONG_DOUBLE_MATH is not defined.
1047 (__isinfl_internal): Likewise.
1048 (__isnanl_internal): Likewise.
1050 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1051 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1052 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1053 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1054 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1055 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1056 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1058 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1061 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1062 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1064 2002-04-15 Bruno Haible <bruno@clisp.org>
1066 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1067 (BODY for TO_LOOP): Likewise.
1068 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1069 * iconvdata/tst-table.sh: Add support for encodings which contain
1070 precomposed Unicode characters, known to the iconv converter in both
1071 directions but not listed in the charmap.
1072 * iconvdata/IBM856.irreversible: New file.
1073 * iconvdata/IBM922.irreversible: New file.
1074 * iconvdata/IBM1132.irreversible: New file.
1075 * iconvdata/IBM1133.irreversible: New file.
1076 * iconvdata/IBM1160.irreversible: New file.
1077 * iconvdata/IBM1161.irreversible: New file.
1078 * iconvdata/IBM1163.irreversible: New file.
1079 * iconvdata/IBM1164.irreversible: New file.
1080 * iconvdata/ARMSCII-8.irreversible: New file.
1081 * iconvdata/TCVN5712-1.precomposed: New file.
1082 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1083 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1084 ARMSCII-8, TCVN5712-1.
1085 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1086 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1087 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1088 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1090 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1092 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
1093 for EVENING69. Include offsets in TZ environment variable.
1095 2002-04-18 Ulrich Drepper <drepper@redhat.com>
1097 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1098 avoid compiler warnings.
1100 * locale/programs/localedef.c (main): Always call
1101 construct_output_path.
1103 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1105 * locale/programs/locfile.c (to_archive): New variable. To collect
1106 data which has to be added to the locale archive.
1107 (write_all_categories): Take new third parameter with locale name.
1108 Unless no_archive flag set add new locale data to the archive
1109 (write_locale_data): Unless no-archive flag set store generated data
1110 in to_archive data structure instead of generation output file.
1111 Add new parameter with locale category index.
1112 * locale/programs/locfile.h: Add new parameters in declaractions of
1113 write_all_categories and write_locale_data.
1114 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
1115 --add-to-archive, and --delete-from-archive options. Pass extra
1116 parameter to write_all_categories.
1117 * locale/programs/localedef.h: Add prototypes for functions in
1119 * locale/locarchive.h: New file.
1120 * locale/programs/locarchive.c: New file.
1121 * locale/Makefile (distribute): Add programs/locarchive.c and
1123 (localedef-modules): Add md5 and locarchive.
1124 Add vpath to crypt subdir for md5.c.
1126 * locale/programs/ld-address.c: Pass locale category ID as new second
1127 parameter to write_locale_data.
1128 * locale/programs/ld-collate.c: Likewise.
1129 * locale/programs/ld-ctype.c: Likewise.
1130 * locale/programs/ld-identification.c: Likewise.
1131 * locale/programs/ld-measurement.c: Likewise.
1132 * locale/programs/ld-messages.c: Likewise.
1133 * locale/programs/ld-monetary.c: Likewise.
1134 * locale/programs/ld-name.c: Likewise.
1135 * locale/programs/ld-numeric.c: Likewise.
1136 * locale/programs/ld-paper.c: Likewise.
1137 * locale/programs/ld-telephone.c: Likewise.
1138 * locale/programs/ld-time.c: Likewise.
1140 * locale/simple-hash.c: Move compute_hashval function from here...
1141 * locale/hashval.h: ...to here. New file.
1142 * locale/simple-hash.h: Add prototype for compute_hashval.
1144 * include/libintl.h: Minor cleanups.
1146 2002-04-16 Ulrich Drepper <drepper@redhat.com>
1148 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
1150 2002-04-15 Ulrich Drepper <drepper@redhat.com>
1152 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
1154 2002-04-14 Bruno Haible <bruno@clisp.org>
1156 * locale/programs/charmap.c (charmap_read): Don't access result if
1159 2002-02-17 Andreas Schwab <schwab@suse.de>
1161 * elf/reldep7.c: New file.
1162 * elf/reldep7mod1.c: New file.
1163 * elf/reldep7mod2.c: New file.
1164 * elf/Makefile: Add rules to build and run reldep7.
1166 2002-04-14 Jakub Jelinek <jakub@redhat.com>
1168 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
1169 the end of the function. Pass original flags to recursive call if
1170 add_dependency failed.
1171 (_dl_lookup_versioned_symbol): Likewise.
1173 2002-04-13 Jakub Jelinek <jakub@redhat.com>
1175 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
1176 early, but check whether it overflowed afterwards.
1177 * time/tst-mktime.c (main): Add new tests.
1179 2002-04-14 Ulrich Drepper <drepper@redhat.com>
1181 * debug/xtrace.sh: Fix program name in help message.
1182 Patch by Roger Luethi <rl@hellgate.ch>.
1184 * include/sys/stat.h: Add prototypes for __lxstat_internal and
1185 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
1187 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
1188 * sysdeps/mach/hurd/lxstat.c: Likewise.
1189 * sysdeps/unix/common/lxstat.c: Likewise.
1190 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
1191 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1192 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1193 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1194 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1195 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
1196 * sysdeps/mach/hurd/lxstat64.c: Likewise.
1197 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
1198 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1200 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
1201 prototypes. Add __mbrlen and __mbrtowc macros.
1202 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
1203 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
1205 * include/unistd.h: Add prototype for __write_internal and add
1206 __libc_write macro is SHARED.
1207 * sysdeps/generic/write.c: Use INTDEF for __write.
1208 * sysdeps/mach/hurd/write.c: Likewise.
1209 * sysdeps/unix/sysv/aix/write.c: Likewise.
1210 * sysdeps/unix/syscalls.list: Add __libc_write alias.
1212 * assert/assert.c: Replace STR_N_SIZE with something usable in
1214 * assert/assert-perr.c: Likewise.
1216 * include/sys/socket.h: Declare __libc_sa_len_internal and define
1217 SA_LEN macro to use it if not NOT_IN_libc.
1218 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
1220 * include/fcntl.h: Declare __open_internal and define __open and
1221 __libc_open macros if not NOT_IN_libc.
1222 * sysdeps/generic/open.c: Use INTDEF for __open.
1223 * sysdeps/mach/hurd/open.c: Likewise.
1224 * sysdeps/unix/sysv/aix/open.c: Likewise.
1225 * sysdeps/unix/syscalls.list: Add __open_internal alias.
1227 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
1230 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
1231 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
1232 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1233 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1235 * include/wctype.h: Declare __iswalpha_l_internal,
1236 __iswdigit_l_internal, __iswspace_l_internal,
1237 __iswxdigit_l_internal, and __iswctype_internal. Define
1238 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
1239 __iswxdigit_l macros if not NOT_IN_libc.
1240 * wctype/iswctype.c: Use INTDEF for __iswctype.
1241 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
1243 * include/math.h: Declare __isinf_internal, __isinfl_internal,
1244 __isnan_internal, and __isnanl_internal.
1245 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
1246 __isnan, and __isnanl.
1247 * stdio-common/printf_size.c: Likewise.
1248 * sysdeps/generic/printf_fphex.c: Likewise.
1249 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
1250 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1251 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
1252 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
1253 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1254 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1255 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1256 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1257 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1258 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1259 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1260 * sysdeps/m68k/s_isinfl.c: Likewise.
1261 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1262 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1264 * include/sys/time.h: Declare __gettimeofday_internal and define
1265 __gettimeofday macro if not NOT_IN_libc.
1266 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
1267 * sysdeps/mach/gettimeofday.c: Likewise.
1268 * sysdeps/posix/gettimeofday.c: Likewise.
1269 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1270 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
1271 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1272 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
1274 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
1275 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
1276 Remove __lstat and __fstat inline functions.
1277 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
1278 * sysdeps/mach/hurd/fxstat.c: Likewise.
1279 * sysdeps/unix/fxstat.c: Likewise.
1280 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
1281 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1282 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1283 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1284 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1285 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
1286 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1287 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
1288 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1290 * include/unistd.h: Declare __getpid_internal and define
1291 __getpid macro if not NOT_IN_libc.
1292 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
1293 * sysdeps/generic/getpid.c: Likewise.
1294 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
1295 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
1297 * include/unistd.h: Declare __getpgid_internal and define
1298 __getpgid macro if not NOT_IN_libc.
1299 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
1300 * sysdeps/mach/hurd/getpgid.c: Likewise.
1301 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
1302 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1303 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1304 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
1306 * include/unistd.h: Declare __getpagesize_internal and define
1307 __getpagesize macro if not NOT_IN_libc.
1308 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
1310 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
1311 * sysdeps/mach/getpagesize.c: Likewise.
1312 * sysdeps/posix/getpagesize.c: Likewise.
1313 * sysdeps/unix/getpagesize.c: Likewise.
1314 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1315 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1316 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
1317 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1319 2002-04-13 Andreas Jaeger <aj@suse.de>
1321 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
1322 as clobber to reduce register pressure.
1323 (__strpbrk_cg): Likewise.
1324 (__mempcpy_by4): Likewise.
1325 (__strstr_cg): Likewise.
1326 Add prototype for __memrchr.
1328 2002-04-13 Andreas Schwab <schwab@suse.de>
1330 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
1331 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1332 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1334 2002-04-13 Ulrich Drepper <drepper@redhat.com>
1336 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
1337 check whether the caller prefers getting the most recent version of
1338 a symbol of the earliest version.
1339 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
1340 _dl_do_lookup to also take the new parameter and pass it on.
1341 Change 'explicit' parameter of _dl_lookup_symbol and
1342 _dl_lookup_versioned_symbol to flags. Adjust tests.
1343 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1344 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
1345 _dl_lookup_versioned_symbol.
1346 * elf/dl-reloc.c: Likewise.
1347 * elf/dl-runtime.c: Likewise.
1348 * elf/dl-sym.c: Likewise.
1349 * sysdeps/mips/dl-machine.h: Likewise.
1351 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1353 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
1355 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
1357 2002-04-10 Andreas Jaeger <aj@suse.de>
1359 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
1361 * include/argz.h: Remove extra char from last patch.
1363 2002-04-09 Ulrich Drepper <drepper@redhat.com>
1365 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
1366 * sysdeps/unix/sysv/aix/chown.c: Likewise.
1367 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
1368 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1369 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1370 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
1372 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1374 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
1375 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
1376 * intl/ngettext.c: Likewise.
1378 * include/sys/socket.h: Declare __connect_internal and define
1379 __connect macro if not NOT_IN_libc.
1380 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
1381 * sysdeps/unix/sysv/aix/connect.c: Likewise.
1382 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
1384 * include/unistd.h: Declare __close_internal and define __close macro
1386 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
1387 WJUMP3): Add extra parenthesis to avoid expanding element names with
1388 macors like __close.
1389 * sysdeps/unix/syscalls.list: Add __close_internal alias.
1391 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
1393 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
1394 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
1395 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
1397 * include/unistd.h: Declare __fork_internal and define __fork macro
1399 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
1400 * sysdeps/unix/sysv/aix/fork.c: Likewise.
1401 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
1403 * include/stdio_ext.h: Declare __fsetlocking_internal and define
1404 __fsetlocking macro to use it if not NOT_IN_libc.
1405 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
1407 * libio/__fbufsize.c: Correct copyright.
1408 * libio/__flbf.c: Likewise.
1409 * libio/__fpending.c: Likewise.
1410 * libio/__fpurge.c: Likewise.
1411 * libio/__freadable.c: Likewise.
1412 * libio/__freading.c: Likewise.
1413 * libio/__fsetlocking.c: Likewise.
1414 * libio/__fwritable.c: Likewise.
1415 * libio/__fwriting.c: Likewise.
1417 * include/stdio.h: Declare __asprintf_internal and define __asprintf
1418 macro to use it if not NOT_IN_libc.
1419 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
1421 * include/mntent.h: Declare __setmntent_internal,
1422 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
1423 __getmntent_r, and __endmntent macros to use these functions if not
1425 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
1428 * include/math.h: Declare __finite_internal, __finitef_internal, and
1429 __finitel_internal. Redefine isfinite macro if in libc or libm using
1431 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
1432 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
1433 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
1434 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
1435 * sysdeps/i386/fpu/s_finitef.S: Likewise.
1436 * sysdeps/i386/fpu/s_finitel.S: Likewise.
1437 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1438 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1439 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1440 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1442 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
1443 to use this function if not NOT_IN_libc.
1444 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
1445 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
1446 * sysdeps/mach/hurd/fcntl.c: Likewise.
1447 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1448 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1450 * include/argz.h: Declare __argz_count_internal and
1451 __argz_stringify_internal.
1452 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
1454 * string/argz-count.c: Use INTDEF for __argz_count.
1455 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
1457 * include/stdlib.h: Declare __cxa_atexit_internal and define
1458 __cxa_atexit macro if not NOT_IN_libc.
1459 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
1460 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
1462 * assert/assert.c: Use INTDEF for __assert_fail.
1463 * assert/__assert.c: Use INTUSE for call to __assert_fail.
1464 * include/assert.h: Declare __assert_fail_internal.
1466 * extra-lib.mk: Mark assignment to lib with override.
1468 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1470 * Makerules: Use cppflags-iterator.mk to add defines for all test
1473 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
1475 * elf/elf.h: Define R_SH_TLS_xxx macros.
1476 * elf/rtld.c: Remove an extra parenthesis.
1477 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
1479 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
1480 * sysdeps/sh/dl-lookupcfg.h: New file.
1481 * sysdeps/sh/dl-tls.h: New file.
1482 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
1483 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
1484 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
1485 R_SH_TLS_TPOFF32 relocations.
1487 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1489 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
1491 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
1492 * include/stdlib.h: Likewise.
1494 2002-04-08 Jakub Jelinek <jakub@redhat.com>
1496 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
1497 instead of _RTLD_LOCAL.
1498 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
1499 * include/unistd.h: Likewise.
1500 * sysdeps/generic/ldsodefs.h: Likewise.
1502 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
1503 if in libc or ld.so.
1505 2002-04-08 Andreas Jaeger <aj@suse.de>
1507 * elf/cache.c (print_entry): Support x86-64.
1509 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1511 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
1512 with one accessing the locale data structures directly.
1513 * stdio-common/printf-prs.c: Include localeinfo.h for new
1514 MB_CUR_MAX definition.
1516 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
1517 is the name of the source file without extension.
1518 * Makefile (distribute): Add cppflags-iterator.mk.
1519 * cppflags-iterator.mk: New file.
1520 * extra-lib.mk: For the sources of the library run
1521 cppflags-iterator.mk.
1523 * include/libintl.h: Declare __dcgettext_internal and
1524 _libc_intl_domainname_internal. Define __dcgettext using these
1525 two symbols if used in libc itself.
1526 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
1527 _libc_intl_domainname_internal.
1528 * argp/argp-parse.c: Likewise.
1529 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
1530 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
1531 * intl/gettext.c: Likewise.
1532 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
1534 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
1536 * posix/regex_internal.c (gettext): Likewise.
1538 2002-04-08 Andreas Jaeger <aj@suse.de>
1540 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
1542 * sysdeps/x86_64/fpu/s_llrint.S: New.
1543 * sysdeps/x86_64/fpu/s_llrintf.S: New.
1544 * sysdeps/x86_64/fpu/s_llrintl.S: New.
1545 * sysdeps/x86_64/fpu/s_lrint.S: New.
1546 * sysdeps/x86_64/fpu/s_lrintf.S: New
1547 * sysdeps/x86_64/fpu/s_lrintl.S: New.
1549 2002-04-08 Roland McGrath <roland@frob.com>
1551 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
1552 widening __hurd_fail value.
1554 2002-04-07 Roland McGrath <roland@frob.com>
1556 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
1557 <mach/machine/alpha_instruction.h>.
1558 (_hurd_setup_sighandler): Take proper arguments for current decls.
1559 Update code to use _hurdsig_catch_fault.
1560 Use `callsys' instruction instead of `call_pal'.
1561 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
1563 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
1564 (ALIGN, at, AT, fp): New macros.
1566 2002-04-06 Roland McGrath <roland@frob.com>
1568 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
1570 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
1571 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
1573 * sysdeps/mach/hurd/bind.c: Use prototype definition.
1574 * sysdeps/mach/hurd/connect.c: Likewise.
1575 * sysdeps/mach/hurd/getsockopt.c: Likewise.
1576 * sysdeps/mach/hurd/setsockopt.c: Likewise.
1578 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
1581 * hurd/catch-exc.c: Use integer_t instead of int.
1582 * hurd/hurdfault.c: Likewise.
1584 * sysdeps/mach/hurd/alpha/exc2signal.c
1585 (_hurd_exception2signal): Rewritten.
1586 * sysdeps/mach/hurd/alpha/longjmp-ts.c
1587 (_hurd_longjmp_thread_state): Rewritten.
1589 2002-04-07 Ulrich Drepper <drepper@redhat.com>
1591 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
1592 DB_LOOKUP_FCT prototype.
1593 * nss/getXXent_r.c: Likewise.
1594 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
1595 * inet/getaliasname_r.c: Likewise.
1596 * inet/getnetbyad_r.c: Likewise.
1597 * inet/getnetbynm_r.c: Likewise.
1598 * inet/getnetent_r.c: Likewise.
1599 * inet/getproto_r.c: Likewise.
1600 * inet/getprtent_r.c: Likewise.
1601 * inet/getprtname_r.c: Likewise.
1602 * inet/getrpcbyname_r.c: Likewise.
1603 * inet/getrpcbynumber_r.c: Likewise.
1604 * inet/getrpcent_r.c: Likewise.
1605 * inet/getservent_r.c: Likewise.
1606 * inet/getsrvbynm_r.c: Likewise.
1607 * inet/getsrvbypt_r.c: Likewise.
1608 * shadow/getspent_r.c: Likewise.
1609 * shadow/getspnam_r.c: Likewise.
1611 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
1613 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
1614 Use i686-friendly PIC code.
1615 * sysdeps/i386/elf/setjmp.S: Likewise.
1617 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
1619 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
1621 * elf/Versions: Remove it here.
1623 2002-04-06 Ulrich Drepper <drepper@redhat.com>
1625 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
1626 direction. Reported by H . J . Lu <hjl@lucon.org>.
1628 2002-04-05 Ulrich Drepper <drepper@redhat.com>
1630 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
1631 test just before the test runs.
1632 * intl/tst-translit.sh: Likewise.
1633 * intl/tst-codeset.sh: Likewise.
1635 * timezone/zic.c: Update from tzcode2002c.
1636 * timezone/asia: Update from tzdata2002c.
1637 * timezone/backward: Likewise.
1638 * timezone/europe: Likewise.
1639 * timezone/northamerica: Likewise.
1640 * timezone/northamerica: Likewise.
1641 * timezone/northamerica: Likewise.
1642 * timezone/southamerica: Likewise.
1643 * timezone/zone.tab: Likewise.
1645 2002-03-23 Jakub Jelinek <jakub@redhat.com>
1647 * sysdeps/generic/brk.c (__curbrk): Declare.
1648 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
1649 * sysdeps/generic/dl-sbrk.c: Likewise.
1650 * sysdeps/unix/arm/dl-brk.S: New file.
1651 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
1652 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
1653 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
1654 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
1655 * sysdeps/unix/i386/dl-brk.S: New file.
1656 * sysdeps/unix/mips/dl-brk.S: New file.
1657 * sysdeps/unix/sparc/dl-brk.S: New file.
1658 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
1659 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
1660 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
1661 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
1663 2002-04-03 Andreas Schwab <schwab@suse.de>
1665 * Makefile (headers): Add gnu/lib-names.h here instead of
1667 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
1669 (install-headers): Add dependency on install-headers-nosubdir.
1670 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
1671 instead of install-others.
1672 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
1675 2002-04-05 Ulrich Drepper <drepper@redhat.com>
1677 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
1678 Reported by Sam Roberts <sroberts@uniserve.com>.
1680 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1682 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
1683 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
1684 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1685 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1687 2002-04-03 David Mosberger <davidm@hpl.hp.com>
1689 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
1690 (RTLD_START): Ditto.
1691 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
1692 dependency violation.
1694 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1696 * time/mktime.c (__mktime_internal): Move check for year < 70 below
1697 all variable declarations.
1699 2002-04-04 Andreas Schwab <schwab@suse.de>
1701 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
1703 2002-04-04 Andreas Jaeger <aj@suse.de>
1705 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
1706 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
1708 * sysdeps/x86_64/fpu/s_fabs.c: New file.
1709 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
1710 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
1712 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
1714 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
1716 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
1717 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
1719 * configure.in: Handle all mips entries the same.
1721 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
1722 * sysdeps/mips/mips3/*: Likewise.
1723 * sysdeps/mips/p40/bits/endian.h: Likewise.
1725 2002-04-04 Ulrich Drepper <drepper@redhat.com>
1727 * misc/dirname.c (dirname): Ignore trailing slashes at end of
1728 non-null result [PR libc/2600].
1730 * misc/tst-dirname.c: Add more tests.
1732 2002-04-03 Ulrich Drepper <drepper@redhat.com>
1734 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
1735 define a code_set_name provide one based on the filename.
1737 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
1739 2001-12-28 Andreas Jaeger <aj@suse.de>
1741 * time/mktime.c (__mktime_internal): Check for year < 70
1744 2002-04-03 Andreas Jaeger <aj@suse.de>
1746 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
1748 Reported by Andi Kleen <ak@suse.de>.
1750 2002-04-03 Ulrich Drepper <drepper@redhat.com>
1752 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
1753 * sysdeps/generic/w_lgammaf.c: Likewise.
1754 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
1756 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
1757 Adjust for new output format of the backtrace functions.
1759 * misc/syslog.c (vsyslog): Only use cleanup handler if
1760 _LIBC_REENTRANT is defined [PR libc/2924].
1762 * libio/Makefile (tests): Add bug-ungetwc2.
1763 * libio/bug-ungetwc2.c: New file.
1765 * manual/install.texi: Typographical and grammatical cleanup.
1766 Patch by Dennis Grace <dgrace@us.ibm.com>.
1768 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
1769 parameter if mtflag. Patch by <jeongyun@innovay.com>.
1771 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
1772 always "&". Adjust callers.
1773 Add "_" prefix to several generated definitions.
1774 Patch by paul@serice.net [PR libc/3158].
1776 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1778 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
1779 size of _dl_arm_cap_flags.
1780 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
1782 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
1785 2002-03-22 H.J. Lu <hjl@gnu.org>
1787 * scripts/firstversions.awk: Check the first version.
1789 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1791 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
1792 dependencies must be stable to work correctly.
1793 Reported by martin.lubich@datacon.at.
1795 * libio/bug-ungetwc1.c: New file.
1796 * libio/Makefile (tests): Add bug-ungetwc1.
1798 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
1799 if stream was last used for writing.
1801 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
1802 number [PR libc/3111].
1804 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
1806 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
1808 2002-04-02 Jakub Jelinek <jakub@redhat.com>
1810 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
1811 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1812 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
1813 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
1814 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
1816 2002-03-30 Jakub Jelinek <jakub@redhat.com>
1818 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
1821 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1823 * sysdeps/i386/fpu/s_fabs.S: New file.
1824 * sysdeps/i386/fpu/s_fabsf.S: New file.
1825 * sysdeps/i386/fpu/s_fabsl.S: New file.
1826 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
1827 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
1828 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
1830 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1832 * rt/tst-shm.c (do_test): Add one more test for size of shared
1835 2002-03-29 Wolfram Gloger <wg@malloc.de>
1837 * malloc/malloc.c: Add short description and prototypes for
1838 malloc_get_state, malloc_set_state and posix_memalign, for
1839 consistency and to avoid warnings with -Wstrict-prototypes.
1840 Reported by Andreas Jaeger <aj@suse.de>.
1842 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1844 * po/gl.po: Update from translation team.
1846 2002-03-31 Roland McGrath <roland@frob.com>
1848 * hurd/hurdselect.c (_hurd_select): Fix
1849 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
1850 Use a union rather than casts to compare mach_msg_type_t as int.
1852 2002-03-25 Roland McGrath <roland@frob.com>
1854 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
1855 check off the end of NAME when it's shorter than 2 chars.
1856 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
1858 2002-03-17 Roland McGrath <roland@frob.com>
1860 * sysdeps/mach/hurd/i386/sys/io.h: New file.
1861 * sysdeps/mach/hurd/i386/ioperm.c: New file.
1862 * sysdeps/mach/hurd/i386/Dist: Add them.
1863 * sysdeps/mach/hurd/i386/Versions
1864 (libc: GLIBC_2.2.6): New set, add ioperm.
1865 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
1866 (mach_interface_list): Check for mach_i386.defs.
1867 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
1868 * sysdeps/mach/configure: Regenerated.
1870 2002-03-22 Ulrich Drepper <drepper@redhat.com>
1872 * po/fr.po: Update from translation team.
1874 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1876 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
1877 getpriority from syscalls list.
1879 2002-03-28 Andreas Jaeger <aj@suse.de>
1881 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
1882 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
1883 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
1884 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
1886 2002-03-27 Andreas Jaeger <aj@suse.de>
1888 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1889 sigcontext): Follow further kernel change.
1891 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
1894 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
1895 Change for struct sigcontext change.
1897 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1898 Follow changes in struct sigcontext.
1900 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
1901 sysycall, use wrapper instead.
1903 2002-03-26 Andreas Jaeger <aj@suse.de>
1905 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
1906 read and write accesses as detailed as possible.
1907 (__memcpy_by2): Likewise.
1908 (__memcpy_g): Likewise.
1909 (memmove): Likewise.
1911 (__memset_ccn_by4): Likewise.
1912 (__memset_ccn_by2): Likewise.
1913 (__memset_gcn_by4): Likewise.
1914 (__memset_gcn_by2): Likewise.
1916 (__memrchr): Likewise.
1917 (rawmemchr): Likewise.
1918 (__strlen_g): Likewise.
1919 (__strcpy_g): Likewise.
1920 (__mempcpy_by4): Likewise.
1921 (__mempcpy_by2): Likewise.
1922 (__mempcpy_byn): Likewise.
1923 (__stpcpy_g): Likewise.
1924 (__strncpy_by4): Likewise.
1925 (__strncpy_by2): Likewise.
1926 (__strncpy_byn): Likewise.
1927 (__strncpy_gg): Likewise.
1928 (__strcat_c): Likewise.
1929 (__strcat_g): Likewise.
1930 (__strncat_g): Likewise.
1931 (__strcmp_gg): Likewise.
1932 (__strncmp_g): Likewise.
1933 (__strchr_c): Likewise.
1934 (__strchr_g): Likewise.
1935 (__strchrnul_c): Likewise.
1936 (__strchrnul_g): Likewise.
1937 (__strrchr_c): Likewise.
1938 (__strrchr_g): Likewise.
1939 (__strrchr_c): Likewise.
1940 (__strrchr_g): Likewise.
1941 (__strcspn_c1): Likewise.
1942 (__strcspn_cg): Likewise.
1943 (__strcspn_g): Likewise.
1944 (__strcspn_g): Likewise.
1945 (__strspn_c1): Likewise.
1946 (__strspn_cg): Likewise.
1947 (__strspn_g): Likewise.
1948 (__strspn_g): Likewise.
1949 (__strpbrk_cg): Likewise.
1950 (__strpbrk_g): Likewise.
1951 (__strstr_cg): Likewise.
1952 (__strstr_g): Likewise.
1954 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
1955 Michal Ludvig <mludvig@suse.cz>.
1957 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
1958 compatibilty, adjust for kernel changes.
1960 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1961 sigcontext): Adjust for kernel changes.
1963 2002-03-25 Andreas Jaeger <aj@suse.de>
1965 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
1967 Reported by Artur Zaprzala <zybi@talex.com.pl>.
1969 2002-03-24 Andreas Jaeger <aj@suse.de>
1971 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
1973 * stdio-common/tst-fdopen.c (main): Remove unused variable.
1975 * iconv/tst-iconv3.c (main): Use correct printf strings.
1977 2002-03-18 Roland McGrath <roland@frob.com>
1979 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
1980 (CMGROUP_MAX): New macro.
1982 2002-03-23 Roland McGrath <roland@frob.com>
1984 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
1985 * sysdeps/posix/shm_unlink.c: Likewise.
1987 2002-03-22 Roland McGrath <roland@frob.com>
1989 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
1990 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
1991 under --enable-libio.
1992 * sysdeps/mach/hurd/configure: Regenerated.
1994 2002-03-23 Roland McGrath <roland@frob.com>
1996 * sysdeps/mach/hurd/i386/Makefile
1997 (sysdep_routines, shared-only-routines): Don't add framestate,
1998 reverting 2001-10-02 change.
1999 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2000 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2001 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2002 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2003 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2004 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2005 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2006 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2007 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2008 Do it here instead, only if [$(unwind-find-fde) = yes].
2010 2002-03-23 Andreas Jaeger <aj@suse.de>
2012 * signal/signal.h: Fix typo. Patch by Steve Kemp
2013 <skx@tardis.ed.ac.uk>.
2015 2002-03-22 Andreas Jaeger <aj@suse.de>
2017 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2020 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2021 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2022 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2023 user_fpregs_struct): Rename fwd.
2025 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2026 Follow sigcontext changes.
2028 2002-03-22 Andreas Jaeger <aj@suse.de>
2030 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
2031 changes for NaNs on MIPS.
2032 Patch by Hartvig Ekner <hartvige@mips.com>.
2034 2002-03-21 Ulrich Drepper <drepper@redhat.com>
2036 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2037 Use realloc if too large.
2038 (addgrbyid): Likewise.
2039 * nscd/hstcache.c (addhstbyname): Likewise.
2040 (addhstbyaddr): Likewise.
2041 (addhstbynamev6): Likewise.
2042 (addhstbyaddrv6): Likewise.
2043 * nscd/pwdcache.c (addpwbyname): Likewise.
2044 (addpwbyuid): Likewise.
2046 2002-03-21 Andreas Jaeger <aj@suse.de>
2048 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2049 _fpstate): Add separate struct for x86-64.
2051 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2052 user_fpregs_struct): Change member names to follow kernel.
2054 2002-03-20 Ulrich Drepper <drepper@redhat.com>
2056 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2057 Correctly close the UDP connection right away [PR libc/3120].
2059 2002-03-20 Andreas Jaeger <aj@suse.de>
2061 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2062 user_fpregs_struct): Fix for changed kernel struct.
2063 (struct user_regs_struct): Likewise.
2064 (struct user): Likewise.
2065 Add 32-bit x86 compatibility.
2067 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2069 2002-03-19 Andreas Jaeger <aj@suse.de>
2071 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2073 2002-03-18 Andreas Jaeger <aj@suse.de>
2075 * iconvdata/Makefile: Only run tests when shared libs are
2078 2002-03-17 Andreas Jaeger <aj@suse.de>
2080 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2082 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2084 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2087 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2089 Patch by Hartvig Ekner <hartvige@mips.com>.
2091 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2092 * sysdeps/generic/unwind-pe.h: Likewise.
2094 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2097 * libio/stdio.c (AL2): Define variant when visibility attribute is
2100 * include/libc-symbols.h (_INTVARDEF): Define variant when
2101 visibility attribute is not supported.
2103 2002-03-16 Ulrich Drepper <drepper@redhat.com>
2105 * po/fr.po: Update from translation team.
2107 2002-02-25 Bruno Haible <bruno@clisp.org>
2109 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2111 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2113 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
2114 buffers if _IO_file_attach failed.
2116 * libio/fileops.c (_IO_file_open): Close file descriptor if
2117 _IO_SEEKOFF call failed.
2119 2002-03-15 H.J. Lu <hjl@gnu.org>
2120 Ulrich Drepper <drepper@redhat.com>
2122 * configure.in: Check for availability of
2123 init_array/fini_array/preinit_array handling in binutils.
2124 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
2125 * config.make.in (have-initfini-array): New variable.
2127 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2129 * stdio-common/tst-printf.c (main): Comment out one test which
2130 checked the compiler's ability to fold floating-point constants
2131 but not really printf.
2132 (rfg3): Make s const.
2133 * stdio-common/tst-printf.sh: Adjust for removed test.
2135 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
2136 internal function. Adjust for internal_function calling convention.
2137 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
2138 as internal_function.
2140 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
2143 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
2144 declaration and definition.
2145 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
2147 * nss/getXXent_r.c: Likewise.
2148 * nss/nsswitch.h (db_lookup_function): Add internal_function to
2151 * include/time.h: Declare __localtime_r as hidden.
2153 * include/aliases.h: Declare __getaliasent_r as hidden.
2154 * include/grp.h: Declare __getgrent_r as hidden.
2155 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
2156 __getservent_r, and __getprotoent_r as hidden.
2157 * include/pwd.h: Declare __getpwent_r as hidden.
2158 * include/shadow.h: Declare __getspent_r as hidden.
2159 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
2161 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
2162 and __gconv_transliterate as hidden.
2163 Add internal_function to __gconv_get_path declaration.
2164 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
2165 definition. Add attribute_hidden to __gconv_read_conf definition.
2167 2002-03-14 Ulrich Drepper <drepper@redhat.com>
2169 * elf/rtld.c: Declare _environ as hidden.
2170 * sysdeps/generic/dl-environ.c: Likewise.
2171 * sysdeps/generic/dl-sysdep.c: Likewise.
2173 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
2174 _dl_mcount_internal as hidden.
2176 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
2177 * sysdeps/generic/dl-brk.c: New file.
2178 * sysdeps/generic/dl-sbrk.c: New file.
2179 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
2180 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
2182 * elf/dl-minimal.c (malloc): Declare _end as hidden.
2183 (__errno_location): New function. Declare errno as hidden.
2184 * elf/rtld.c (_dl_argc): Define as hidden.
2185 (_dl_skip_args): Define as hidden.
2186 (_begin, _end): Declare as hidden.
2187 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
2188 * sysdeps/generic/entry.h (_start): Declare as hidden.
2189 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
2190 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
2191 _dl_runtime_resolve and _dl_runtime_profile as hidden.
2192 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
2194 2002-03-14 Roland McGrath <roland@frob.com>
2196 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
2198 * Makeconfig (%.v.i, %.v): New implicit rules.
2199 (preprocess-versions): Variable removed.
2200 ($(common-objpfx)shlib-versions.v.i): New target giving just the
2201 shlib-versions input files as dependencies.
2202 ($(common-objpfx)soversions.i): Depend on that instead of the input
2203 files. Use it as input instead of using a pipeline.
2204 (postclean-generated): Append soversions.i, shlib-versions.v, and
2205 shlib-versions.v.i here.
2206 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
2207 the Versions.def input files as dependencies.
2208 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
2209 ($(common-objpfx)Versions.all): Depend on that instead of the input
2210 files. Use it as input instead of using a pipeline.
2211 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
2212 (postclean-generated): Append those .v and .v.i files here.
2214 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2216 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
2217 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
2220 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2222 * sysdeps/generic/mp_clz_tab.c: New file.
2223 * sysdeps/i386/mp_clz_tab.c: New file.
2224 * sysdeps/hppa/mp_clz_tab.c: New file.
2225 * sysdeps/powerpc/mp_clz_tab.c: New file.
2226 * stdlib/Makefile (aux): Revert last patch.
2227 * math/Makefile (gmp-objs): Likewise.
2229 2002-03-13 Paul Eggert <eggert@twinsun.com>
2231 * time/strftime.c: Comment fixes for references to obsolescent
2232 standards, In most cases the simplest fix is to remove the
2233 confusing comments. Cross-referencing all the standards properly
2234 is a bit of a pain, and it should be enough to put that info in
2235 the documentation as I did in my recent time.texi patch.
2237 2002-03-13 Paul Eggert <eggert@twinsun.com>
2239 * manual/time.texi (Formatting Calendar Time):
2240 ISO C99 also specifies the E and O modifiers.
2241 %P is a GNU extension, and is not in ISO C99.
2242 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
2243 %T is also in ISO C99.
2244 The RFC 822 example is not valid in arbitrary locales.
2245 Reword the POSIX.2 wording slightly, to make it a bit clearer
2246 that POSIX.2 formats are also supported by later POSIX versions.
2247 If a format was introduced in ISO C99 it is also required by
2250 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2252 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
2253 _sys_nerr_internal with INTVARDEF2.
2254 * include/libc-symbols.h (INTVARDEF2): New macro.
2255 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
2256 (_sys_nerr_internal): Library.
2258 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
2259 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
2261 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
2263 2002-03-13 Wolfram Gloger <wg@malloc.de>
2265 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
2267 2002-03-02 Andreas Schwab <schwab@suse.de>
2269 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
2270 'h' flag and positional arg.
2271 * stdio-common/tst-printf.c (rfg3): New function to test
2272 positional arguments.
2273 (main): Fix some warnings.
2275 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2277 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
2278 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2280 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2282 * grp/initgroups.c (__nss_group_data): Declare as hidden.
2284 * include/locale.h (_nl_C_locobj): Declare as hidden.
2286 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
2287 * time/strptime.c (_nl_C_LC_TIME): Likewise.
2289 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
2291 * include/sys/gmon.h: Declare _gmonparam as hidden.
2293 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
2294 (__ctype32_wctrans): Likewise.
2295 (__ctype32_width): Likewise.
2297 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
2300 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
2302 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
2303 hidden. Change all users of these variables.
2305 * posix/regex_internal.h (__re_error_msgid): Renamed from
2306 re_error_msgid. Declare as hidden.
2307 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
2310 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
2311 (__printf_function_table): Likewise.
2312 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
2314 (__printf_function_table): Likewise.
2316 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
2317 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
2319 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
2320 * nss/nsswitch.c: Declare _nss_*_database as hidden.
2322 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
2323 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
2325 2002-03-12 Ulrich Drepper <drepper@redhat.com>
2327 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
2328 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2329 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2330 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2331 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2332 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2333 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2334 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2335 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
2336 _nl_C_LC_CTYPE_width: Declare as hidden.
2337 * include/locale.h: Declare _nl_locale_file_list.
2338 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
2339 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
2340 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
2341 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
2342 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
2343 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
2344 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
2345 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
2346 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
2347 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
2348 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
2349 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
2350 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2351 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2352 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2353 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2354 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2355 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2356 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2357 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
2358 _nl_C_LC_CTYPE_width, and as hidden.
2359 * locale/findlocale.c: Declare _nl_C as hidden.
2360 * locale/newlocale.c: Likewise.
2361 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
2362 _nl_locale_file_list.
2363 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
2364 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
2365 Define _nl_C_locobj as hidden.
2367 * malloc/mtrace.c (_mtrace_file): Define as hidden.
2368 (_mtrace_line): Likewise.
2370 * include/time.h: Declare __mon_yday as hidden.
2371 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
2373 * libio/libioP.h: Declare __libio_codecvt as hidden.
2374 * libio/fileops.c: Declare __libio_translit as hidden.
2375 * libio/iofwide.c: Define __libio_translit as hidden.
2377 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
2378 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
2379 * login/getutline_r.c: Likewise.
2380 * login/utmpname.c: Likewise.
2382 * login/utmp-private.h: Declare __libc_utmp_file_functions,
2383 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
2384 __libc_utmp_file_name as hidden.
2386 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
2387 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
2388 * locale/freelocale.c: Likewise.
2389 * locale/lc-time.c: Likewise.
2391 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
2392 (__libc_ptyname2): Likewise.
2393 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
2395 (__libc_ptyname2): Likewise.
2397 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
2398 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
2399 * sysdeps/generic/init-first.c: Likewise.
2400 * sysdeps/i386/init-first.c: Likewise.
2401 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2402 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2403 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2404 * sysdeps/sh/init-first.c: Likewise.
2405 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2406 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2408 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
2409 (_itowa_upper_digits): Likewise.
2411 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
2412 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
2415 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
2416 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
2417 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
2418 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
2420 * gmon/gmon.c (__bb_head): Define as hidden.
2421 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
2423 * argp/argp-parse.c (_argp_hang): Define as static.
2425 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
2426 handling in latest compilers.
2428 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
2430 * libio/fileops.c (_IO_file_jumps): Likewise.
2431 * libio/stdfiles.c (_IO_list_all): Likewise.
2432 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
2434 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
2436 * include/malloc.h: Add __libc_malloc_initialized declaration
2437 here. Mark variable hidden.
2438 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
2440 * elf/dl-open.c (__libc_argc): Declare as hidden.
2441 (__libc_argv): Likewise.
2442 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
2443 (__libc_argv): Likewise.
2444 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
2445 __libc_argv as hidden.
2446 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2447 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2448 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2449 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2451 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
2452 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
2453 * stdlib/erand48.c: Likewise.
2454 * stdlib/jrand48.c: Likewise.
2455 * stdlib/lcong48.c: Likewise.
2456 * stdlib/lrand48.c: Likewise.
2457 * stdlib/mrand48.c: Likewise.
2458 * stdlib/nrand48.c: Likewise.
2459 * stdlib/seed48.c: Likewise.
2460 * stdlib/srand48.c: Likewise.
2462 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
2463 (_itoa_lower_digits_internal): New declaration.
2464 (_itoa_upper_digits_internal): New declaration.
2465 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
2466 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
2467 (_itoa_upper_digits_internal): New declaration.
2468 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
2470 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
2471 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
2473 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
2474 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2476 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
2477 (_itowa_lower_digits): Likewise.
2478 (_itowa_upper_digits): Likewise.
2479 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
2480 (_itowa_upper_digits): Likewise.
2482 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
2483 not already defined.
2484 (GERMANIC_PLURAL): Declare as hidden.
2486 * posix/getopt.c (__getopt_initialized): Declare as hidden.
2487 (attribute_hidden): Define as empty macro if not already defined.
2489 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
2490 (__gconv_max_path_elem_len): Likewise.
2491 (__gconv_path_envvar): Likewise.
2493 * math/Makefile (gmp-objs): Remove mp_clz_tab.
2494 * stdlib/Makefile (aux): Remove mp_clz_tab.
2495 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
2497 * stdlib/exit.h (__exit_funcs): Declare as hidden.
2499 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
2501 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
2502 _nl_category_names, _nl_category_name_sizes, _nl_current,
2503 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
2505 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
2506 (_nl_current_default_domain): Likewise
2507 (_nl_state_lock): Likewise.
2508 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
2509 (_nl_current_default_domain): Likewise
2510 (_nl_state_lock): Likewise.
2511 * intl/bindtextdom.c (_nl_state_lock): Likewise.
2513 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
2514 (_fpioconst_pow10): Likewise.
2516 * include/time.h (_tmbuf): Add attribute_hidden.
2518 * time/tzset.c (tzstring_list): Define as static.
2520 * include/time.h: Add attribute_hidden to __tzname_cur_max and
2521 __use_tzfile declaration.
2523 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
2524 and __wcsmbs_last_locale declaration.
2526 2002-02-25 Paul Eggert <eggert@twinsun.com>
2528 * timezone/Makefile (tzbases): Move systemv from here...
2529 (tzlinks): to here, since the entries in systemv were all changed
2530 from Zone to Link lines in tz-2001a. Bug reported (and patch
2531 tested) by Peter Breitenlohner.
2533 2002-03-07 Jakub Jelinek <jakub@redhat.com>
2535 * time/tst-posixtz.c (tests): Add new tests.
2536 (main): Test whether tzset() sets daylight properly.
2538 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2540 * time/tzset.c (tz_compute): Move __daylight, __tzname and
2541 __tzname_cur_max setting...
2542 (tzset_internal): ...here.
2544 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2546 * time/tzset.c (compute_change): Don't return any value.
2547 (tz_compute): Likewise. Don't handle southern hemisphere here.
2548 (__tz_convert): But here.
2550 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2552 * manual/examples/mkfsock.c: Include <string.h> as well.
2553 Patch by Alain De Carolis <alaind@wseurope.com>.
2555 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2557 * posix/regexec.c (re_match): Fix incorrect register sizes.
2558 (re_search): Likewise.
2560 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2562 * posix/regcomp.c (regfree): Remove a disused condition.
2563 * posix/regex_internal.c (re_acquire_state): Likewise.
2564 (re_acquire_state_context): Likewise.
2565 (register_state): Remove a redundant malloc invocation.
2566 * posix/regex_internal.h: (re_state_table_entry): Simplify
2569 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2571 * posix/regcomp.c (regcomp): Add __builtin_expect to error
2572 handling conditions.
2573 (regerror): Likewise.
2574 (regfree): Likewise.
2575 (re_compile_internal): Likewise.
2576 (init_dfa): Likewise.
2577 (init_word_char): Likewise.
2578 (create_initial_state): Likewise.
2579 (analyze): Likewise.
2580 (analyze_tree): Likewise.
2581 (duplicate_node): Likewise.
2582 (calc_eclosure): Likewise.
2583 (calc_eclosure_iter): Likewise.
2585 (parse_reg_exp): Likewise.
2586 (parse_branch): Likewise.
2587 (parse_expression): Likewise.
2588 (parse_subexp): Likewise.
2589 (parse_dup_op): Likewise.
2590 (parse_bracket_exp): Likewise.
2591 (build_equiv_class): Likewise.
2592 (build_charclass): Likewise.
2593 (build_word_op): Likewise.
2594 (fetch_number): Likewise.
2595 (create_tree): Likewise.
2596 (duplicate_tree): Likewise.
2597 * posix/regex.c (BE): New macro.
2598 * posix/regexec.c (re_match): Add __builtin_expect to error
2599 handling conditions.
2600 (re_match_2): Likewise.
2601 (re_search): Likewise.
2602 (re_search_internal): Likewise.
2603 (check_matching): Likewise.
2604 (proceed_next_node): Likewise.
2605 (set_regs): Likewise.
2606 (sift_states_backward): Likewise.
2607 (add_epsilon_backreference): Likewise.
2608 (transit_state): Likewise.
2609 (transit_state_sb): Likewise.
2610 (transit_state_mb): Likewise.
2611 (transit_state_bkref): Likewise.
2612 (transit_state_bkref_loop): Likewise.
2613 (build_trtable): Likewise.
2614 (group_nodes_into_DFAstates): Likewise.
2615 (match_ctx_init): Likewise.
2616 (match_ctx_add_entry): Likewise.
2617 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
2618 to error handling conditions.
2619 (re_string_construct_toupper): Likewise.
2620 (build_wcs_buffer): Likewise.
2621 (build_wcs_upper_buffer): Likewise.
2622 (build_upper_buffer): Likewise.
2623 (re_string_translate_buffer): Likewise.
2624 (re_node_set_alloc): Likewise.
2625 (re_node_set_init_1): Likewise.
2626 (re_node_set_init_2): Likewise.
2627 (re_node_set_init_copy): Likewise.
2628 (re_node_set_intersect): Likewise.
2629 (re_node_set_init_union): Likewise.
2630 (re_node_set_merge): Likewise.
2631 (re_node_set_insert): Likewise.
2632 (re_dfa_add_node): Likewise.
2633 (re_acquire_state): Likewise.
2634 (re_acquire_state_context): Likewise.
2635 (create_new_state_common): Likewise.
2636 (register_state): Likewise.
2637 (create_ci_new_state): Likewise.
2638 (create_cd_new_state): Likewise.
2639 (re_string_context_at): Remove redundant condition.
2641 2002-01-16 Roger Sayle <roger@eyesopen.com>
2643 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
2645 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
2647 2002-03-11 Jakub Jelinek <jakub@redhat.com>
2649 * sysdeps/i386/elf/configure.in: Fix comment.
2651 * sysdeps/sparc/sparc64/configure.in: New.
2652 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
2653 if .dynamic comes before .got.
2654 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
2656 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
2657 HP_TIMING_ACCUM): Fix typos.
2659 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2661 * string/strfry.c: Add some more randomness to the seed.
2662 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
2664 * po/es.po: Update from translation team.
2665 * po/fr.po: Likewise.
2667 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
2669 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
2670 when determining type of format.
2671 Patch by James Antill <james@anqd.org> [PR libc/2787].
2673 2002-03-04 Jakub Jelinek <jakub@redhat.com>
2675 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
2677 2002-03-11 Roland McGrath <roland@frob.com>
2679 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
2681 * Versions.def (libc): Add GLIBC_2.2.6.
2682 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
2683 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
2684 __errno_location instead of __hurd_errno_location, and don't inline it.
2685 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2686 * hurd/errno.c: New file.
2687 * hurd/Makefile (routines): Add errno.
2689 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2691 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
2692 ridiculously large widths and precisions [PR libc/3026].
2694 2002-03-11 Andreas Jaeger <aj@suse.de>
2696 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
2698 Patch by Susanne Oberhauser <froh@SuSE.de>.
2700 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2702 * inet/rexec.c (ahostbuf): Define as static.
2704 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
2705 (__ctype32_wctrans): Likewise.
2706 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
2707 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
2708 (__ctype32_wctrans): Likewise.
2709 (__ctype32_width): Likewise.
2711 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
2712 They were never exported anyway.
2714 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
2715 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
2717 * include/sys/gmon.h: Declare _gmonparam.
2719 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
2720 symbols for getdents64. They were never exported.
2722 2002-03-09 Roland McGrath <roland@frob.com>
2724 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
2725 Reported by Jon Arney <jarney1@cox.net>.
2727 2002-02-23 Roland McGrath <roland@frob.com>
2729 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
2731 (__hurd_errno_location): Function removed.
2733 2002-03-06 Andreas Jaeger <aj@suse.de>
2735 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
2738 2002-03-04 Andreas Jaeger <aj@suse.de>
2740 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
2742 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
2745 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
2747 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
2749 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
2751 * sysdeps/x86_64/bits/setjmp.h: New.
2753 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
2755 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
2757 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
2759 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
2760 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
2762 2002-02-28 Bo Thorsen <bo@suse.de>
2764 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
2767 2002-03-03 Andreas Jaeger <aj@suse.de>
2769 * sysdeps/x86_64/bits/wordsize.h: New file.
2771 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
2772 * elf/tst-tlsmod1.c: Likewise.
2774 * posix/regcomp.c: Get regex.h from include dir for internal
2777 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
2778 to libc-internal.h and include it.
2779 * include/libc-internal.h: Add __init_misc.
2781 * misc/init-misc.c: Include libc-internal.h for prototypes.
2783 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
2785 * misc/error.c [_LIBC]: Include libioP.h for prototype of
2788 2002-03-03 Ulrich Drepper <drepper@redhat.com>
2790 * posix/regcomp.c: Compatibility changes to allow using the code
2793 2002-02-28 Hartvig Ekner <hartvige@mips.com>
2795 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
2798 2002-03-02 Ulrich Drepper <drepper@redhat.com>
2800 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
2801 of .str elements in the returned data structure.
2803 * elf/elf.h: Add Alpha TLS bits.
2805 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2807 * sysdeps/unix/sysv/linux/nice.c: New file.
2809 2002-03-01 Ulrich Drepper <drepper@redhat.com>
2811 * elf/Makefile (dl-routines): Add dl-origin.
2812 (elide-routines.os): Add dl-origin.
2813 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
2814 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
2816 * include/libc-symbols.c: Define attribute_hidden depending on
2817 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
2819 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
2820 * elf/dl-load.c: Likewise.
2821 * elf/rtld.c: Likewise.
2822 * include/unistd.h: Declare __libc_enable_secure_internal.
2823 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
2824 Use INTUSE with __libc_enable_secure.
2825 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2827 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
2828 * elf/dl-error.c: Likewise,
2829 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
2831 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
2832 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
2833 function definition. Use INTDEF with _dl_get_origin.
2834 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2836 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
2837 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
2839 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
2840 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
2841 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
2843 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
2844 * elf/dl-deps.c: Likewise.
2845 * elf/dl-error.c: Likewise.
2846 * elf/dl-fini.c: Likewise.
2847 * elf/dl-init.c: Likewise.
2848 * elf/dl-load.c: Likewise.
2849 * elf/dl-lookup.c: Likewise.
2850 * elf/dl-reloc.c: Likewise.
2851 * elf/dl-version.c: Likewise.
2852 * elf/do-lookup.h: Likewise.
2853 * sysdeps/arm/dl-machine.h: Likewise.
2854 * sysdeps/cris/dl-machine.h: Likewise.
2855 * sysdeps/hppa/dl-machine.h: Likewise.
2856 * sysdeps/i386/dl-machine.h: Likewise.
2857 * sysdeps/m68k/dl-machine.h: Likewise.
2858 * sysdeps/powerpc/dl-machine.h: Likewise.
2859 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2860 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2861 * sysdeps/sh/dl-machine.h: Likewise.
2862 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
2863 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
2864 * sysdeps/x86_64/dl-machine.h: Likewise.
2865 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
2866 _dl_argv[0]. Use INTUSE with _dl_argv.
2867 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
2868 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
2870 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2872 * elf/rtld.c (_rtld_global): Remove .protected.
2873 (_rtld_local): Strong alias to _rtld_global.
2874 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
2876 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
2877 _rtld_local instead of _rtld_global.
2878 (_rtld_local): Add hidden extern, possibly in .sdata section.
2879 * configure.in: Add tests for visibility attribute and .sdata.
2880 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
2881 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
2882 * sysdeps/arm/dl-machine.h: Likewise.
2883 * sysdeps/generic/ldsodefs.h: Likewise.
2884 * sysdeps/hppa/dl-machine.h: Likewise.
2885 * sysdeps/cris/dl-machine.h: Likewise.
2886 * sysdeps/i386/dl-machine.h: Likewise.
2887 * sysdeps/ia64/dl-machine.h: Likewise.
2888 * sysdeps/m68k/dl-machine.h: Likewise.
2889 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2890 * sysdeps/mips/dl-machine.h: Likewise.
2891 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2892 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2893 * sysdeps/sh/dl-machine.h: Likewise.
2894 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2895 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2896 * sysdeps/x86_64/dl-machine.h: Likewise.
2898 2002-02-28 Ulrich Drepper <drepper@redhat.com>
2900 * login/login.c (login): Always initialize ut_line field
2903 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2905 * sysdeps/i386/Makefile (sysdep_routines): Add
2907 (shared-only-routines): Likewise.
2908 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
2909 (shared-only-routines): Likewise.
2910 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
2911 (shared-only-routines): Likewise.
2912 * sysdeps/wordsize-32/divdi3.c: New file.
2914 2002-02-28 Ulrich Drepper <drepper@redhat.com>
2916 * locale/iso-4217.def: Remove obsolete currencies for countries
2919 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2921 * posix/regcomp.c (regcomp): Remove a redundant condition.
2922 (init_word_char): Add a check on malloc failure.
2923 (create_initial_state): Likewise.
2924 (duplicate_node): Likewise.
2925 (calc_eclosure): Likewise.
2926 (calc_eclosure_iter): Likewise.
2927 (parse_expression): Likewise.
2928 (parse_bracket_exp): Remove unnecessary malloc invocations.
2929 (build_equiv_class): Likewise.
2930 (build_charclass): Likewise.
2931 * posix/regex_internal.c (re_node_set_intersect): Add a check
2933 (re_node_set_add_intersect): Likewise.
2934 (re_node_set_merge): Likewise.
2935 (re_acquire_state): Likewise.
2936 (re_acquire_state_context): Likewise.
2937 (create_newstate_common): Likewise.
2938 (register_state): Likewise.
2939 (create_ci_newstate): Likewise.
2940 (create_cd_newstate): Likewise.
2941 * posix/regex_internal.h: Fix prototypes of re_acquire_state
2942 and re_acquire_state_context.
2943 * posix/regexec.c (regexec): Suit it to the error handling of
2945 (re_match): Likewise.
2946 (re_search): Likewise.
2947 (re_search_internal): Add a check on malloc failure.
2948 (acquire_init_state_context): Likewise.
2949 (check_matching): Likewise.
2950 (proceed_next_node): Likewise.
2951 (set_regs): Likewise.
2952 (sift_states_backward): Likewise.
2953 (sift_states_iter_bkref): Likewise.
2954 (add_epsilon_backreference): Likewise.
2955 (transit_state): Likewise.
2956 (transit_state_sb): Likewise.
2957 (transit_state_mb): Likewise.
2958 (transit_state_bkref_loop): Likewise.
2959 (build_trtable): Likewise.
2960 (group_nodes_into_DFAstates): Likewise.
2961 (match_ctx_init): Likewise.
2962 (match_ctx_add_entry): Likewise.
2964 2002-02-27 Ulrich Drepper <drepper@redhat.com>
2966 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
2967 l_libname if profiling is enabled [PR libc/2916].
2969 * sysdeps/ia64/dl-tls.h: New file.
2971 2002-02-27 Jakub Jelinek <jakub@redhat.com>
2973 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
2974 Work around an Alpha gas bug.
2976 2002-02-27 Ulrich Drepper <drepper@redhat.com>
2978 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
2979 uses read to load the catalog.
2980 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
2982 2002-02-26 Ulrich Drepper <drepper@redhat.com>
2984 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
2985 regex_internal.c, and regex_internal.h.
2986 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
2987 * posix/regex.c: Complete rewrite.
2988 * posix/regexec.c: New file.
2989 * posix/regcomp.c: New file.
2990 * posix/regex_internal.c: New file.
2991 * posix/regex_internal.h: New file.
2992 * posix/regex.h (RE_ICASE): New macro.
2993 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
2995 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
2996 ungetwc. It's a macro.
2997 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
2999 Reported by Jason Merrill <jason@redhat.com>.
3001 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3003 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3004 position to fp->_offset if it is set.
3005 * stdio-common/Makefile (tests): Add tst-fdopen.
3006 * stdio-common/tst-fdopen.c: New test.
3008 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3010 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3011 * stdio-common/tst-ungetc.c (main): Add another test.
3013 2002-02-25 Ulrich Drepper <drepper@redhat.com>
3015 * assert/assert-perr.c: Use INTUSE to reference functions and variables
3016 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
3017 aliases. Add prototypes for the new aliases.
3018 * assert/assert.c: Likewise.
3019 * include/libc-symbols.h: Likewise.
3020 * include/stdio.h: Likewise.
3021 * include/netinet/in.h: Likewise.
3022 * include/rpc/auth.h: Likewise.
3023 * include/rpc/auth_unix.h: Likewise.
3024 * include/rpc/key_prot.h: Likewise.
3025 * include/rpc/pmap_prot.h: Likewise.
3026 * include/rpc/pmap_rmt.h: Likewise.
3027 * include/rpc/rpc_msg.h: Likewise.
3028 * include/rpc/xdr.h: Likewise.
3029 * inet/gethstbyad_r.c: Likewise.
3030 * inet/gethstbynm2_r.c: Likewise.
3031 * inet/gethstbynm_r.c: Likewise.
3032 * inet/gethstent_r.c: Likewise.
3033 * inet/in6_addr.c: Likewise.
3034 * libio/__fpurge.c: Likewise.
3035 * libio/filedoalloc.c: Likewise.
3036 * libio/fileops.c: Likewise.
3037 * libio/ftello.c: Likewise.
3038 * libio/ftello64.c: Likewise.
3039 * libio/genops.c: Likewise.
3040 * libio/iofclose.c: Likewise.
3041 * libio/iofdopen.c: Likewise.
3042 * libio/iofflush.c: Likewise.
3043 * libio/iofflush_u.c: Likewise.
3044 * libio/iofgetpos.c: Likewise.
3045 * libio/iofgetpos64.c: Likewise.
3046 * libio/iofgets.c: Likewise.
3047 * libio/iofgets_u.c: Likewise.
3048 * libio/iofopen.c: Likewise.
3049 * libio/iofopncook.c: Likewise.
3050 * libio/iofputs.c: Likewise.
3051 * libio/iofread.c: Likewise.
3052 * libio/iofread_u.c: Likewise.
3053 * libio/iofsetpos.c: Likewise.
3054 * libio/iofsetpos64.c: Likewise.
3055 * libio/ioftell.c: Likewise.
3056 * libio/iofwrite.c: Likewise.
3057 * libio/iogetline.c: Likewise.
3058 * libio/iogets.c: Likewise.
3059 * libio/iogetwline.c: Likewise.
3060 * libio/iolibio.h: Likewise.
3061 * libio/iopadn.c: Likewise.
3062 * libio/iopopen.c: Likewise.
3063 * libio/ioseekoff.c: Likewise.
3064 * libio/ioseekpos.c: Likewise.
3065 * libio/iosetbuffer.c: Likewise.
3066 * libio/iosetvbuf.c: Likewise.
3067 * libio/ioungetc.c: Likewise.
3068 * libio/ioungetwc.c: Likewise.
3069 * libio/iovdprintf.c: Likewise.
3070 * libio/iovsprintf.c: Likewise.
3071 * libio/iovsscanf.c: Likewise.
3072 * libio/libioP.h: Likewise.
3073 * libio/memstream.c: Likewise.
3074 * libio/obprintf.c: Likewise.
3075 * libio/oldfileops.c: Likewise.
3076 * libio/oldiofclose.c: Likewise.
3077 * libio/oldiofdopen.c: Likewise.
3078 * libio/oldiofgetpos.c: Likewise.
3079 * libio/oldiofgetpos64.c: Likewise.
3080 * libio/oldiofopen.c: Likewise.
3081 * libio/oldiofsetpos.c: Likewise.
3082 * libio/oldiofsetpos64.c: Likewise.
3083 * libio/oldiopopen.c: Likewise.
3084 * libio/oldstdfiles.c: Likewise.
3085 * libio/putc.c: Likewise.
3086 * libio/setbuf.c: Likewise.
3087 * libio/setlinebuf.c: Likewise.
3088 * libio/stdfiles.c: Likewise.
3089 * libio/stdio.c: Likewise.
3090 * libio/strops.c: Likewise.
3091 * libio/vasprintf.c: Likewise.
3092 * libio/vscanf.c: Likewise.
3093 * libio/vsnprintf.c: Likewise.
3094 * libio/vswprintf.c: Likewise.
3095 * libio/wfiledoalloc.c: Likewise.
3096 * libio/wfileops.c: Likewise.
3097 * libio/wgenops.c: Likewise.
3098 * libio/wstrops.c: Likewise.
3099 * malloc/mtrace.c: Likewise.
3100 * misc/error.c: Likewise.
3101 * misc/syslog.c: Likewise.
3102 * nss/getXXbyYY_r.c: Likewise.
3103 * nss/getXXent_r.c: Likewise.
3104 * nss/hosts-lookup.c: Likewise.
3105 * stdio-common/getw.c
3106 * stdio-common/printf-prs.c: Likewise.
3107 * stdio-common/printf_fp.c: Likewise.
3108 * stdio-common/printf_size.c: Likewise.
3109 * stdio-common/putw.c: Likewise.
3110 * stdio-common/scanf.c: Likewise.
3111 * stdio-common/sprintf.c: Likewise.
3112 * stdio-common/tmpfile64.c: Likewise.
3113 * stdio-common/vfprintf.c: Likewise.
3114 * stdio-common/vfscanf.c: Likewise.
3115 * stdlib/strfmon.c: Likewise.
3116 * sunrpc/auth_des.c: Likewise.
3117 * sunrpc/auth_none.c: Likewise.
3118 * sunrpc/auth_unix.c: Likewise.
3119 * sunrpc/authdes_prot.c: Likewise.
3120 * sunrpc/authuxprot.c: Likewise.
3121 * sunrpc/clnt_perr.c: Likewise.
3122 * sunrpc/clnt_raw.c: Likewise.
3123 * sunrpc/clnt_tcp.c: Likewise.
3124 * sunrpc/clnt_udp.c: Likewise.
3125 * sunrpc/clnt_unix.c: Likewise.
3126 * sunrpc/key_call.c: Likewise.
3127 * sunrpc/key_prot.c: Likewise.
3128 * sunrpc/openchild.c: Likewise.
3129 * sunrpc/pm_getmaps.c: Likewise.
3130 * sunrpc/pm_getport.c: Likewise.
3131 * sunrpc/pmap_clnt.c: Likewise.
3132 * sunrpc/pmap_prot.c: Likewise.
3133 * sunrpc/pmap_prot2.c: Likewise.
3134 * sunrpc/pmap_rmt.c: Likewise.
3135 * sunrpc/rpc_cmsg.c: Likewise.
3136 * sunrpc/rpc_prot.c: Likewise.
3137 * sunrpc/svc_authux.c: Likewise.
3138 * sunrpc/svc_raw.c: Likewise.
3139 * sunrpc/svc_simple.c: Likewise.
3140 * sunrpc/svc_tcp.c: Likewise.
3141 * sunrpc/svc_udp.c: Likewise.
3142 * sunrpc/svc_unix.c: Likewise.
3143 * sunrpc/xdr.c: Likewise.
3144 * sunrpc/xdr_array.c: Likewise.
3145 * sunrpc/xdr_mem.c: Likewise.
3146 * sunrpc/xdr_rec.c: Likewise.
3147 * sunrpc/xdr_ref.c: Likewise.
3148 * sunrpc/xdr_stdio.c: Likewise.
3149 * sysdeps/generic/_strerror.c: Likewise.
3150 * sysdeps/generic/printf_fphex.c: Likewise.
3151 * sysdeps/generic/tmpfile.c: Likewise.
3152 * sysdeps/gnu/errlist.awk: Likewise.
3153 * sysdeps/gnu/errlist.c: Likewise.
3155 * libio/Makefile (routines): Remove iosprint.
3156 * libio/iosprintf.c: Removed
3159 2002-02-24 Ulrich Drepper <drepper@redhat.com>
3161 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
3162 non_dynamic_init and exported now.
3163 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
3164 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
3166 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3167 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3168 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3170 2002-02-23 Ulrich Drepper <drepper@redhat.com>
3172 * elf/dl-close.c (free_slotinfo): Check for end of list and return
3175 * locale/iso-639.def: Add language codes for Walloon.
3177 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
3178 total number of relocations performed.
3180 * elf/sprof.c (load_profdata): If do_test provide information as
3181 to why loading failed.
3182 * elf/dl-profile.c (_dl_start_profile): Initialize all of
3185 * csu/set-init.c: Moved to...
3186 * sysdeps/mach/hurd/set-init.c: ...here. New file.
3187 * csu/Makefile: Don't compile set-init.
3188 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
3189 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
3191 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3192 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3193 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
3195 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
3198 2002-02-22 Ulrich Drepper <drepper@redhat.com>
3200 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
3201 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
3202 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
3203 (_dl_deallocate_tls): New function.
3204 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
3207 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3209 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
3210 * stdio-common/tst-fseek.c (main): Add test for this.
3212 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
3214 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
3216 2002-02-19 Jakub Jelinek <jakub@redhat.com>
3218 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
3219 pointer before dereferencing.
3221 2002-02-18 Roland McGrath <roland@frob.com>
3223 * sysdeps/mach/hurd/times.c: Fix typo in last change.
3225 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
3226 Use task_policy in place of task_priority.
3228 * sysdeps/generic/bits/mman.h
3229 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
3230 * sysdeps/mach/msync.c: New file.
3232 * sysdeps/mach/powerpc/syscall.S: New file.
3234 * mach/msg.c [MACH_MSG_OVERWRITE]
3235 (__mach_msg_trap, __mach_msg_overwrite): New functions.
3236 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
3238 * sysdeps/mach/configure.in: Check for clock.defs to put into
3239 mach_interface_list.
3240 * sysdeps/mach/configure: Regenerated.
3242 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
3243 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
3244 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
3245 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
3246 (mach-shortcuts): Add device_read_overwrite_request,
3247 device_read_overwrite, vm_read_overwrite, thread_switch.
3249 * configure.in (base_machine): Set to $machine by default.
3250 * configure: Regenerated.
3252 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
3253 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
3254 * sysdeps/mach/configure: Regenerated.
3255 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
3257 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
3259 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
3261 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
3262 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
3264 2002-02-17 Roland McGrath <roland@frob.com>
3266 * sysdeps/mach/hurd/times.c
3267 [NO_CREATION_TIME] (startup_time): New static variable.
3268 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
3269 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
3270 creation_time from task_basic_info.
3271 (__times): Use __gettimeofday instead of __host_get_time.
3273 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
3274 Use untyped Mach IPC message format.
3276 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
3278 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
3279 _S_catch_exception_raise_state_identity,
3280 _hurdsig_fault_catch_exception_raise_state,
3281 _hurdsig_fault_catch_exception_raise_state_identity.
3283 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
3285 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
3286 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
3288 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
3289 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
3291 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
3292 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
3293 them as no-op macros.
3294 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
3295 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
3297 * sysdeps/powerpc/dl-machine.h
3298 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
3300 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
3301 Use untyped Mach IPC message format.
3303 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
3304 Handle untyped Mach IPC message formats.
3306 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
3307 Expect different argument conventions when this is defined.
3308 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
3309 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
3310 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
3311 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
3312 for OSF Mach variant.
3313 (faulted): Use mig_reply_error_t for REPLY.
3314 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
3315 in __thread_set_exception_ports call.
3316 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
3317 __mach_port_set_attributes in place of __mach_port_set_qlimit.
3319 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
3320 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
3321 on Darwin, which includes bogons.
3323 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
3324 variable LOADBASE so it's not declared when it's not used.
3326 2002-02-16 Roland McGrath <roland@frob.com>
3328 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
3329 to use BI.creation_time.
3331 * mach/Machrules (MIG): Add -x c to CPP value passed down.
3333 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
3334 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
3335 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
3336 host_page_size instead of vm_statistics.
3338 * sysdeps/mach/Makefile (mach-before-compile): Don't include
3339 mach_interface.h here, since not all variants use that name.
3341 * sysdeps/mach/configure.in: Add some checks for Mach headers
3342 to ensure a sane installation.
3343 (mach_interface_list): Define this variable by checking for .defs
3344 files found in various variants.
3345 * configure.in (mach_interface_list): AC_SUBST this.
3346 * config.make.in (mach-interface-list): New substituted variable.
3347 * mach/Makefile (user-interfaces): Define this using the value
3348 of $(mach-interface-list) instead of mach, mach4.
3349 Updated other references to mach_interface to use it as well.
3351 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
3353 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
3354 mig_reply_error_t for OSF Mach variant.
3356 * mach/Makefile (routines): Remove bootprivport.
3357 * mach/bootprivport.c: File removed. It has never been used.
3359 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
3360 Grok the OSF flavor of message format.
3361 (mach_msg_destroy_port): For MAKE_SEND and
3362 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
3363 no-senders notification.
3365 2002-02-06 Roland McGrath <roland@frob.com>
3367 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
3368 to here if 2.0 compatibility enabled ...
3369 (libc: GLIBC_2.1.3): ... from here.
3371 2002-02-15 Ulrich Drepper <drepper@redhat.com>
3373 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
3375 * elf/dl-close.c (_dl_close): Likewise.
3377 2002-02-14 Ulrich Drepper <drepper@redhat.com>
3379 * elf/Makefile: Add rules to build and run tst-tls8.
3380 * elf/tst-tls8.c: New file.
3381 * elf/tst-tlsmod4.c: New file.
3383 * stdlib/test-a64l.c (tests): Add more test cases.
3385 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
3386 Reported by Walter Harms <WHarms@bfs.de>.
3388 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
3390 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
3391 definitions for struct sigcontext.
3392 Suggested by David Mosberger-Tang.
3394 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3396 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
3397 for removing reference of module in slotinfo list.
3398 (_dl_close): Use remove_slotinfo.
3399 * sysdeps/generic/dl-tls.c: General pretty printing.
3400 (oom): Define only if SHARED.
3401 (_dl_next_tls_modid): Correct starting point for the case we assume
3402 there is a gap. Add missing instruction grouping (doh!). Correct
3403 tests for reaching maximum index.
3404 * elf/Makefile: Add rules to build and run tst-tls7.
3405 * elf/tst-tls7.c: New file.
3406 * elf/tst-tlsmod3.c: New file.
3408 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
3410 * elf/tst-tlsmod2.c: Likewise.
3412 * elf/dl-close.c (_dl_close): When closing an object using TLS
3413 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
3414 true. Increment dl_tls_generation only if we closed any TLS-using
3416 * elf/tst-tls6.c: New file.
3417 * elf/Makefile: Add rules to build and run tst-tls6.
3419 * po/da.po: Update from translation team.
3421 * locale/categories.def: Fix typo [PR libc/2948].
3422 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
3424 * locale/iso-4217.def: Update from official version [PR libc/2950].
3425 * glibcbug.in: Honor TMPDIR [PR libc/2951].
3426 * locale/programs/ld-collate.c (collate_finish): Bail out with a
3427 message if input is too confusion instead of using assert.
3428 (collate_read): Don't crash on unknown symbol [PR libc/2952].
3429 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
3431 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
3432 * elf/tst-tls2.c: Likewise.
3433 * elf/tst-tls3.c: Likewise.
3435 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3437 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
3439 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3441 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
3442 if this is really necessary.
3444 * elf/dl-close.c (_dl_close): Implement freeing entries in the
3446 (free_mem): Free memory for the slotinfo array if possible.
3448 2002-02-12 Andreas Schwab <schwab@suse.de>
3450 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
3452 2002-02-12 Ulrich Drepper <drepper@redhat.com>
3454 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
3456 (oom): New function.
3457 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
3458 (_dl_determine_tlsoffset): Likewise.
3459 (_dl_allocate_tls): Likewise.
3460 (__TLS_GET_ADDR): Define if not already defined.
3461 (_dl_tls_symaddr): New function.
3462 (allocate_and_init): New function.
3463 (__tls_get_addr): Actually implement handling of generation counter
3464 and deferred allocation.
3465 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
3466 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3468 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
3469 Declare _dl_tls_symaddr.
3470 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
3472 * include/link.h (struct link_map): Remove l_tls_nextimage and
3474 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
3475 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
3476 (_dl_vsym): Likewise.
3477 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
3479 (dl_main): Allow PT_TLS be present for empty segment. Remove
3480 nextimage list handling. Instead add all modules using TLS to
3481 dl_tls_dtv_slotinfo_list.
3482 * elf/dl-open.c (dl_open_worker): After successfully loading all
3483 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
3484 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
3485 empty segment don't do anything. Remove handling of initimage list.
3486 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
3487 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
3488 * elf/dl-minimal.c: Define __libc_memalign.
3489 * elf/dl-support.c: Remove _dl_initimage_list. Add
3490 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3492 * include/stdlib.h: Declare __libc_memalign.
3494 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
3495 * elf/tst-tls4.c: New file.
3496 * elf/tst-tls5.c: New file.
3497 * elf/tst-tlsmod2.c: New file.
3499 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
3501 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
3503 * elf/tst-tls1.c: Use test-skeleton.c.
3504 * elf/tst-tls2.c: Likewise.
3505 * elf/tst-tls3.c: Likewise.
3507 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
3509 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3511 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
3513 2002-02-10 Ulrich Drepper <drepper@redhat.com>
3515 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
3517 * elf/tst-tls3.c: New file.
3518 * elf/tst-tlsmod1.c: New file.
3519 * elf/Makefile: Add rules to build and run tst-tls3.
3521 * sysdeps/i386/dl-machine.h: Include <tls.h>.
3522 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
3525 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
3527 * po/fr.po: Update from translation team.
3529 * elf/tls-macros.h: Add alternative macros for use in PIC.
3531 * elf/dl-lookup.c: Include <tls.h>.
3532 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
3534 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
3535 required by passing pointer to last element of the list.
3537 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
3538 l_tls_initimage to a place where it actually is performed.
3540 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
3541 after globfree() calls.
3543 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
3544 (openaux): Pass open_mode as new last argument to _dl_map_object.
3545 (_dl_map_object_deps): Add new argument open_mode. Initialize
3546 open_mode element of args variable with it.
3547 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
3548 _dl_map_object_deps.
3549 * elf/rtld.c (dl_main): Add zero as last parameter to
3550 _dl_map_object_deps call.
3551 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
3552 * elf/nodlopen2.c: New file.
3553 * elf/nodlopenmod2.c: New file.
3554 * elf/Makefile: Add rules to build and run nodlopen2.
3556 * elf/tst-tls1.c: Move TLS helper macros to...
3557 * elf/tls-macros.h: ...here. New file.
3558 * elf/tst-tls2.c: New file.
3559 * elf/Makefile (tests): Add tst-tls2.
3560 (distribute): Add tls-macros.h.
3562 * po/sv.po: Update from translation team.
3564 * elf/tst-tls1.c (main): Add complete set of tests. Split
3565 architecture specific definitions from the actual test code.
3567 * po/tr.po: Update from translation team.
3569 2002-02-09 Ulrich Drepper <drepper@redhat.com>
3571 * elf/Makefile (tests): Add tst-tls1.
3572 * elf/tst-tls1.c: New file.
3574 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
3575 alignment of TCB for now.
3577 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
3578 initialization image for the application itself.
3580 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
3581 loop to initialize TLS block.
3583 2002-02-08 Richard Henderson <rth@redhat.com>
3585 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
3586 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
3588 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
3590 2002-02-09 Jakub Jelinek <jakub@redhat.com>
3592 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
3594 2002-02-08 Ulrich Drepper <drepper@redhat.com>
3596 * po/ca.po: Update from translation team.
3597 * po/sk.po: Likewise.
3599 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
3600 (dl_main): Move dtv/static TLS handling before relocation.
3601 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
3602 TLS_INIT_TP to allocate and install the dtv/static TLS block.
3603 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
3604 so far uses TLS initialize GL(dl_tls_static_size) and
3605 GL(dl_tls_static_align) to account for the TCB.
3606 (_dl_allocate_tls): New function.
3607 * sysdeps/generic/ldsodefs.h (rtld_global): Add
3608 _dl_initial_dtv_malloced.
3610 * configure.in: Test for __builtin_memset more realistically.
3612 * csu/version.c (banner): If TLS support is available say so.
3614 2002-02-04 H.J. Lu <hjl@gnu.org>
3616 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
3618 (__dl_runtime_resolve): Likewise.
3620 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
3623 2001-11-15 H.J. Lu <hjl@gnu.org>
3625 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
3626 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
3628 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
3630 2002-02-07 H.J. Lu <hjl@gnu.org>
3632 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
3634 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
3637 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3639 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
3641 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
3642 ___tls_get_addr_internal.
3643 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
3645 * po/ko.po: Update from translation team.
3647 2002-02-07 Jakub Jelinek <jakub@redhat.com>
3649 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
3650 attribute, change __pad{1,2} type to unsigned int.
3651 (struct stat64): Remove packed attribute.
3653 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3655 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
3657 2002-02-07 Andreas Schwab <schwab@suse.de>
3659 * configure.in: Fix check for -zcombreloc.
3661 2002-02-06 H.J. Lu <hjl@gnu.org>
3663 * config.h.in (HAVE_BUILTIN_MEMSET): New.
3664 * configure.in: Check if __builtin_memset really works.
3665 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
3666 __GNUC_PREREQ (2, 96) before using __builtin_memset.
3668 2002-02-06 Jakub Jelinek <jakub@redhat.com>
3670 * io/bug-ftw3.c (main): Don't try the test if root.
3672 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3674 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
3676 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
3677 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
3678 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
3680 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
3681 a weak alias for __clone.
3682 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
3683 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
3684 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
3685 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
3686 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
3687 a weak alias for __mmap64.
3689 2002-02-05 H.J. Lu <hjl@gnu.org>
3691 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
3692 (atomic_add): Likewise.
3693 (compare_and_swap): Likewise.
3694 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
3696 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3698 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
3700 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
3701 alignment of the TCB and store total size and alignment of static
3702 TLS block in _dl_tls_static_size and _dl_tls_static_align.
3703 tls_index is a typedef.
3704 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
3705 _dl_tls_static_align.
3706 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
3707 * elf/dl-support.c: Define _dl_tls_static_size and
3708 _dl_tls_static_align.
3710 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3712 * configure.in: Add --without-tls option.
3713 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
3714 --without-tls is given.
3716 * sysdeps/generic/dl-tls.c: Include <tls.h>.
3718 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
3720 2002-02-06 Roland McGrath <roland@frob.com>
3722 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
3723 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
3725 * scripts/versions.awk: Improve error message for missing version.
3726 Each version inherits from the last one only if they have the same
3727 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
3728 but not GLIBC_x and FOO_y.
3730 * scripts/firstversions.awk: Handle libraries that don't have each
3731 particular version named in the third column of shlib-versions.
3733 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
3735 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3737 * Versions.def [ld]: Add GLIBC_2.3.
3738 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
3739 * elf/Makefile (dl-routines): Add dl-tls.
3740 (distribute): Add dl-tls.h.
3741 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3742 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3743 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
3744 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
3745 along with the other info in the link map. Change queueing of init
3746 images for double linked list. Use _dl_next_tls_modid to compute
3748 * elf/rtld.c (_dl_start_final): Store alignment requirement
3749 along with the other info in rtld map and executable map.
3750 (dl_main): Add ld.so to the init image list if necessary. Compute
3751 final module ID with _dl_next_tls_modid.
3752 * include/link.h (struct link_map): Add l_tls_previmage and
3754 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3755 * sysdeps/i386/elf/Versions: New file.
3756 * sysdeps/generic/dl-tls.c: New file.
3757 * sysdeps/generic/dl-tls.h: New file.
3758 * sysdeps/i386/dl-tls.h: New file.
3760 2002-02-06 Roland McGrath <roland@frob.com>
3762 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
3763 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
3765 2002-01-05 Roland McGrath <roland@frob.com>
3767 * sysdeps/mach/configure.in: New file.
3768 * sysdeps/mach/configure: New generated file.
3770 * mach/Makefile (user-interfaces): Remove default_pager_helper.
3771 It has never been used by anything.
3773 2002-02-06 H.J. Lu <hjl@gnu.org>
3775 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
3778 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3780 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
3781 attribute((packed)) to counter stupid people misusing gcc options.
3782 (struct stat64): Likewise.
3784 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3786 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
3787 the variables which are used as booleans.
3789 2002-02-06 Andreas Jaeger <aj@suse.de>
3791 * include/libc-symbols.h (INTUSE): Renamed from INT.
3792 * elf/dl-deps.c: Change users.
3793 * sysdeps/generic/dl-sysdep.c: Likewise.
3794 * sysdeps/generic/dl-cache.c: Likewise.
3795 * elf/dl-reloc.c: Likewise.
3796 * elf/rtld.c: Likewise.
3797 * elf/dl-version.c: Likewise.
3798 * elf/dl-load.c: Likewise.
3799 * elf/dl-dst.h: Likewise.
3800 * elf/dl-init.c: Likewise.
3801 * elf/dl-error.c: Likewise.
3802 * elf/dl-fini.c: Likewise.
3803 * elf/dl-runtime.c: Likewise.
3804 * elf/do-lookup.h: Likewise.
3806 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
3808 * stdio-common/_itowa.h: Likewise.
3810 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3812 * elf/dl-minimal.c: Define _itoa_lower_digits.
3814 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
3817 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
3818 loading modules with the DF_STATIC_TLS flag set.
3819 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
3821 * include/link.h (struct link_map): Add l_flags field.
3822 * elf/elf.h (DF_STATIC_TLS): New definition.
3824 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
3825 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
3827 * elf/rtld.c (process_dl_debug): Correct printing help message.
3828 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
3831 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
3832 definition and pass &errno in use of this variable.
3833 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
3835 2002-02-04 Andreas Schwab <schwab@suse.de>
3837 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
3838 * locale/programs/charmap-dir.c: Wrap calls that output messages
3839 with WITH_CUR_LOCALE. Include "localedef.h" first.
3840 * locale/programs/charmap.c: Likewise.
3841 * locale/programs/ld-address.c: Likewise.
3842 * locale/programs/ld-collate.c: Likewise.
3843 * locale/programs/ld-ctype.c: Likewise.
3844 * locale/programs/ld-identification.c: Likewise.
3845 * locale/programs/ld-measurement.c: Likewise.
3846 * locale/programs/ld-messages.c: Likewise.
3847 * locale/programs/ld-monetary.c: Likewise.
3848 * locale/programs/ld-name.c: Likewise.
3849 * locale/programs/ld-numeric.c: Likewise.
3850 * locale/programs/ld-paper.c: Likewise.
3851 * locale/programs/ld-telephone.c: Likewise.
3852 * locale/programs/ld-time.c: Likewise.
3853 * locale/programs/linereader.c: Likewise.
3854 * locale/programs/linereader.h: Likewise.
3855 * locale/programs/localedef.c: Likewise.
3856 * locale/programs/locfile.c: Likewise.
3857 * locale/programs/repertoire.c: Likewise.
3859 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3861 * elf/rtld.c (_dl_start_final): Determine load address to locate
3862 ehdr with GL(dl_rtld_map).l_map_start.
3864 * po/ca.po: Update from translation team.
3866 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
3867 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
3869 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3871 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
3873 2002-02-04 Ulrich Drepper <drepper@redhat.com>
3875 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
3876 * include/link.h (struct link_map): Add various members for TLS
3878 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3879 _rtld_tlsoffset, add _dl_initimage_list.
3880 * sysdeps/i386/dl-lookupcfg.h: New file.
3881 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
3882 TLS relocation. When using TLS we now use RESOLVE_MAP.
3883 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
3886 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
3889 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
3890 thread-pointer as soon as possible.
3891 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
3892 elements in rtld_global.
3893 * sysdeps/generic/tls.h: New file.
3894 * elf/Makefile (distribute): Add tls.h.
3895 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
3896 relocations. Not complete yet.
3898 * resolv/resolv.h: Allow user to define __need_res_state and only
3899 define __res_start structure then.
3900 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
3902 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
3903 dl_cpuclock_offset initialization to _dl_start_final.
3904 (_dl_show_auxv): Avoid unnecessary sign extension.
3905 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
3907 2002-02-03 Ulrich Drepper <drepper@redhat.com>
3909 * config.h.in: Add HAVE_TLS_SUPPORT.
3910 * sysdeps/i386/elf/configure.in: New file.
3912 2002-02-03 Andreas Schwab <schwab@suse.de>
3914 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
3915 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
3917 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
3919 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
3920 alloca if the memory reqirements are too high.
3922 2002-02-03 Ulrich Drepper <drepper@redhat.com>
3924 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
3925 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
3926 the former is available anyway and speed isn't important here.
3927 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
3928 * elf/dl-version.c (match_symbol): Likewise.
3929 (_dl_check_map_versions): Likewise.
3930 * elf/rtld.c (process_envvars): Likewise.
3931 (print_statistics): Likewise.
3932 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
3933 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
3934 bases. Add assert to catch uses of unimplemented features.
3935 (__strsep): Add assert to catch uses of unimplemented features.
3936 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
3937 and avoid inline optimization.
3938 * elf/rtld.c (process_envvars): Likewise.
3939 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
3940 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
3941 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
3943 2002-02-02 Ulrich Drepper <drepper@redhat.com>
3945 * stdio-common/_itoa.h: Minor simplifications of the code.
3946 * stdio-common/_itoa.c: Likewise.
3948 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
3949 instead of _dl_printf for debugging info output.
3951 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
3952 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
3954 2002-02-01 H.J. Lu <hjl@gnu.org>
3956 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
3957 (atomic_add): Likewise.
3958 (compare_and_swap): Return 0 only when failed to compare. Use
3961 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
3964 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
3966 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
3968 2002-02-02 Ulrich Drepper <drepper@redhat.com>
3970 * elf/dl-minimal.c (__strsep): New minimal implementation.
3972 2002-02-02 Paul Eggert <eggert@twinsun.com>
3974 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
3975 (__mktime_internal): If no tm_isdst is requested, prefer solutions
3976 with tm_isdst > 0 when the requested time falls within a
3977 spring-forward gap [PR libc/2894].
3979 2002-02-03 Andreas Schwab <schwab@suse.de>
3981 * stdio-common/tst-rndseek.c: Increase timeout.
3983 2002-02-02 Ulrich Drepper <drepper@redhat.com>
3985 Change ld.so to not use functions which are exported. One cannot
3986 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
3988 * include/libc-symbols.h: Define INT and INTDEF.
3989 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
3990 _dl_signal_error_internal, _dl_map_object_internal,
3991 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
3992 _dl_lookup_versioned_symbol_internal,
3993 _dl_relocate_object_internal, _dl_debug_state_internal,
3994 _dl_start_profile_internal, and _dl_unload_cache_internal.
3995 * include/dlfcn.h: Declare _dl_catch_error_internal.
3996 * elf/rtld.c: Use INT for calls to any of the *_internal functions
3997 above. Add INTDEF to function definitions.
3998 * elf/dl-debug.c: Likewise.
3999 * elf/dl-deps.c: Likewise.
4000 * elf/dl-dst.h: Likewise.
4001 * elf/dl-error.c: Likewise.
4002 * elf/dl-fini.c: Likewise.
4003 * elf/dl-init.c: Likewise.
4004 * elf/dl-load.c: Likewise.
4005 * elf/dl-lookup.c: Likewise.
4006 * elf/dl-misc.c: Likewise.
4007 * elf/dl-open.c: Likewise.
4008 * elf/dl-profile.c: Likewise.
4009 * elf/dl-reloc.c: Likewise.
4010 * elf/dl-runtime.c: Likewise.
4011 * elf/dl-version.c: Likewise.
4012 * elf/do-lookup.h: Likewise.
4013 * sysdeps/generic/dl-cache.c: Likewise.
4014 * sysdeps/generic/dl-sysdep.c: Likewise.
4015 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4016 instead of _dl_init.
4017 * sysdeps/arm/dl-machine.h: Likewise.
4018 * sysdeps/cris/dl-machine.h: Likewise.
4019 * sysdeps/hppa/dl-machine.h: Likewise.
4020 * sysdeps/i386/dl-machine.h: Likewise.
4021 * sysdeps/ia64/dl-machine.h: Likewise.
4022 * sysdeps/m68k/dl-machine.h: Likewise.
4023 * sysdeps/mips/dl-machine.h: Likewise.
4024 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4025 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4026 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4027 * sysdeps/sh/dl-machine.h: Likewise.
4028 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4029 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4030 * sysdeps/x86_64/dl-machine.h: Likewise.
4031 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4033 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4034 and _dl_debug_initialize.
4036 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
4038 * elf/rtld.c (dl_main): Avoid strrchr.
4039 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4040 result of readlink. Search from the back for '/'.
4042 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4043 strncpy if possible.
4045 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
4047 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
4048 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4049 strspn, and strcspn.
4050 (process_envvars): Don't use strcspn.
4052 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4053 (_dl_dst_substitute): Likewise.
4055 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4057 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4058 code which is never used when relocating ld.so itself.
4060 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4061 starting ld.so itself. Move l_addr variable initialization closer
4063 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
4065 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4067 * Versions.def (libc): Add GLIBC_PRIVATE.
4068 (libdb, libnss_db, libdb1): Remove.
4069 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4070 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4071 (libpthread): Add GLIBC_PRIVATE.
4072 (libresolv): Likewise, remove GLIBC_2.1.
4073 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4074 GLIBC_2.2.3, GLIBC_2.3.
4075 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4076 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4077 _dl_sym, _dl_vsym): Likewise.
4078 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4079 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4080 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4081 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4082 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4083 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4084 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4085 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4087 (_dl_object_relocation_scope): Remove.
4088 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4089 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4090 __gconv_cache): Move to GLIBC_PRIVATE.
4091 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4092 __internal_setnetgrent): Likewise.
4093 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4094 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4095 * locale/Versions (__collate_element_hash, __collate_element_strings,
4096 __collate_symbol_classes, __collate_symbol_hash,
4097 __collate_symbol_strings, _nl_current_LC_COLLATE,
4098 _nl_current_LC_CTYPE): Likewise.
4099 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4100 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4101 (libnss_nis, libnss_nisplus): Likewise.
4102 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4103 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4104 (libnss_files): Move all symbols to GLIBC_PRIVATE.
4105 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4106 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4107 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4108 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4109 __ns_get16, __ns_samename): Likewise.
4110 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4111 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
4113 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
4114 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
4115 __libc_connect): Likewise.
4116 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
4118 * stdlib/Versions (__libc_system): Likewise.
4119 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
4120 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
4121 * sysdeps/ia64/fpu/Versions: Likewise.
4122 * sysdeps/ia64/Versions: Likewise.
4123 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4124 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
4126 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
4127 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
4128 __libc_sigaction): Likewise.
4129 * termios/Versions (__libc_tcdrain): Likewise.
4131 * misc/sys/cdefs (__attribute_noinline__): Define.
4132 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
4133 __attribute_noinline__.
4135 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
4136 * elf/dl-xstat64.c: New file.
4137 * elf/dl-fxstat64.c: New file.
4138 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
4139 don't export __fxstat64 at multiple versions.
4140 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
4141 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
4143 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
4145 * locale/program/ld-collate.c (collate_finish): Assign a wide
4146 char collation sequence value to multi character collating
4147 elements, and avoid over writing by non-character elements.
4149 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4151 * elf/Makefile (distribute): Add dl-procinfo.c.
4152 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
4153 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
4155 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4157 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
4159 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
4160 _rtld_global struct.
4161 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4162 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4163 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4164 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
4165 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
4166 _dl_fpu_control_set): Remove unused externs.
4167 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
4168 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
4169 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
4170 related variables in _rtld_global struct.
4171 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4172 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
4175 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4177 * sysdeps/generic/dl-procinfo.c: New file.
4179 2002-02-01 Andreas Schwab <schwab@suse.de>
4181 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
4183 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4185 * elf/rtld.c (_dl_start): Mark as internal_function.
4186 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
4188 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
4189 General pretty printing.
4191 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4193 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
4194 * elf/dl-reloc.c: Pretty printing.
4195 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
4196 procinfo-related variables in rtld_global struct.
4197 * elf/dl-support.c: Likewise.
4198 * elf/rtld.c: Likewise.
4199 * sysdeps/i386/i686/Makefile: Likewise.
4200 * sysdeps/i386/i686/hp-timing.c: Likewise.
4201 * sysdeps/i386/i686/hp-timing.h: Likewise.
4202 * sysdeps/ia64/Makefile: Likewise.
4203 * sysdeps/ia64/hp-timing.c: Likewise.
4204 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4205 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4206 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
4207 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
4208 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4209 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
4210 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4211 * sysdeps/x86_64/Makefile: Likewise.
4213 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4214 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
4215 _dl_debug_fd to rtld_global.
4216 * elf/Versions: Likewise.
4217 * elf/dl-close.c: Likewise.
4218 * elf/dl-iteratephdr.c: Likewise.
4219 * elf/dl-lookup.c: Likewise.
4220 * elf/dl-misc.c: Likewise.
4221 * elf/dl-open.c: Likewise.
4222 * elf/dl-support.c: Likewise.
4223 * elf/do-lookup.h: Likewise.
4224 * elf/rtld.c: Likewise.
4225 * sysdeps/generic/dl-cache.c: Likewise.
4226 * sysdeps/generic/dl-sysdep.c: Likewise.
4227 * sysdeps/ia64/Versions: Likewise.
4228 * sysdeps/unix/clock_gettime.c: Likewise.
4229 * sysdeps/unix/clock_settime.c: Likewise.
4230 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4231 * sysdeps/sparc/Versions: Removed.
4232 * sysdeps/i386/i686/Versions : Removed.
4233 * sysdeps/x86_64/Versions: Removed.
4234 * configure.in: Define HAVE_PROTECTED if .protected is available.
4235 * config.h.in: Add entry for HAVE_PROTECTED.
4237 2002-01-31 Jakub Jelinek <jakub@redhat.com.
4239 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
4240 code in struct _rtld_global. Export this struct, remove all
4241 exports for the signal variables.
4242 * sysdeps/arm/dl-machine: Likewise.
4243 * sysdeps/generic/dl-origin: Likewise.
4244 * sysdeps/generic/dl-sysdep: Likewise.
4245 * sysdeps/generic/dl-cache: Likewise.
4246 * sysdeps/hppa/dl-fptr: Likewise.
4247 * sysdeps/hppa/dl-machine: Likewise.
4248 * sysdeps/cris/dl-machine: Likewise.
4249 * sysdeps/i386/dl-machine: Likewise.
4250 * sysdeps/ia64/dl-machine: Likewise.
4251 * sysdeps/m68k/dl-machine: Likewise.
4252 * sysdeps/mach/hurd/dl-sysdep: Likewise.
4253 * sysdeps/mips/mips64/dl-machine: Likewise.
4254 * sysdeps/mips/dl-machine: Likewise.
4255 * sysdeps/powerpc/elf/libc-start: Likewise.
4256 * sysdeps/powerpc/dl-machine: Likewise.
4257 * sysdeps/powerpc/dl-start: Likewise.
4258 * sysdeps/sparc/sparc32/dl-machine: Likewise.
4259 * sysdeps/sparc/sparc64/dl-machine: Likewise.
4260 * sysdeps/sh/dl-machine: Likewise.
4261 * sysdeps/s390/s390-32/dl-machine: Likewise.
4262 * sysdeps/s390/s390-64/dl-machine: Likewise.
4263 * sysdeps/unix/sysv/aix/libc-start: Likewise.
4264 * sysdeps/unix/sysv/aix/start-libc: Likewise.
4265 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
4266 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
4267 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
4268 * sysdeps/x86_64/dl-machine: Likewise.
4270 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4272 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
4275 2002-01-31 Andreas Schwab <schwab@suse.de>
4277 * sysdeps/posix/readv.c: Check for ssize_t overflow.
4279 2002-01-31 Andreas Schwab <schwab@suse.de>
4281 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
4282 reference to _dl_pagesize.
4284 2002-01-30 Ulrich Drepper <drepper@redhat.com>
4286 * Versions.def [ld]: Add GLIBC_2.3.
4287 * elf/dl-addr.c: Move global variables for SHARED code in struct
4288 _rtld_global. Export this struct, remove all exports for the
4290 * elf/dl-close.c: Likewise.
4291 * elf/dl-conflict.c: Likewise.
4292 * elf/dl-debug.c: Likewise.
4293 * elf/dl-deps.c: Likewise.
4294 * elf/dl-dst.h: Likewise.
4295 * elf/dl-error.c: Likewise.
4296 * elf/dl-fini.c: Likewise.
4297 * elf/dl-init.c: Likewise.
4298 * elf/dl-iteratephdr.c: Likewise.
4299 * elf/dl-libc.c: Likewise.
4300 * elf/dl-load.c: Likewise.
4301 * elf/dl-lookup.c: Likewise.
4302 * elf/dl-minimal.c: Likewise.
4303 * elf/dl-object.c: Likewise.
4304 * elf/dl-open.c: Likewise.
4305 * elf/dl-profile.c: Likewise.
4306 * elf/dl-profstub.c: Likewise.
4307 * elf/dl-reloc.c: Likewise.
4308 * elf/dl-runtime.c: Likewise.
4309 * elf/dl-support.c: Likewise.
4310 * elf/dl-sym.c: Likewise.
4311 * elf/dl-version.c: Likewise.
4312 * elf/do-lookup.h: Likewise.
4313 * elf/do-rel.h: Likewise.
4314 * elf/dynamic-link.h: Likewise.
4315 * elf/rtld.c: Likewise.
4316 * sysdeps/generic/dl-cache.c: Likewise.
4317 * sysdeps/generic/dl-sysdep.c: Likewise.
4318 * sysdeps/generic/ldsodefs.h: Likewise.
4319 * sysdeps/generic/libc-start.c: Likewise.
4320 * sysdeps/i386/dl-machine.h: Likewise.
4321 * sysdeps/ia64/dl-fptr.c: Likewise.
4322 * sysdeps/ia64/dl-machine.h: Likewise.
4323 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
4324 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4325 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4326 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
4327 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4328 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4329 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
4330 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4332 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4334 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
4336 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
4338 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
4340 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
4342 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
4344 2002-01-29 Ben Collins <bcollins@debian.org>
4346 * string/bits/string2.h (__mempcpy): Protect size arg for
4347 addition when using __builtin_memcpy.
4349 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4351 * stdlib/Makefile (tests): Add tst-qsort.
4352 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
4354 * manual/signal.texi (Process Signal Mask): Document that
4355 pthread_sigmask, not sigprocmask, must be used in MT programs.
4356 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
4358 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
4360 * misc/Makefile (tests): Add tst-hsearch.
4361 * misc/tst-hsearch.c: New file.
4363 2002-01-18 Wolfram Gloger <wg@malloc.de>
4365 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
4366 * malloc/malloc.h: Likewise.
4367 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
4368 * malloc/arena.c: New file.
4369 * malloc/hooks.c: New file.
4370 * malloc/tst-mallocstate.c: New file.
4371 * malloc/Makefile: Add new testcase tst-mallocstate.
4372 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
4374 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4376 * stdlib/msort.c: Remove last patch. The optimization violates the
4377 same rule which qsort.c had problems with.
4379 2002-01-27 Paul Eggert <eggert@twinsun.com>
4381 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
4382 to a pivot element that lies outside the array to be sorted, as
4383 ISO C99 requires that the comparison function be called only with
4384 addresses of array elements [PR libc/2880].
4386 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4388 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
4389 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
4391 * timezone/asia: Update from tzdata2002b.
4392 * timezone/australasia: Likewise.
4393 * timezone/backward: Likewise.
4394 * timezone/europe: Likewise.
4395 * timezone/leapseconds: Likewise.
4396 * timezone/iso3166.tab: Likewise.
4397 * timezone/zone.tab: Likewise.
4399 2002-01-23 Richard Henderson <rth@redhat.com>
4401 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
4403 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4405 * string/strxfrm.c: Allocate one more byte for rulearr and clear
4406 this element [PR libc/2855].
4408 * string/strcoll.c: Handle zero-length arguments specially
4411 2002-01-23 Jakub Jelinek <jakub@redhat.com>
4413 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
4414 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
4415 short lengths and constant src.
4416 (strcpy): Don't optimize for gcc 3.0+.
4417 (__stpcpy): For gcc 3.0+, don't use
4418 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
4419 for short string literal src.
4421 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4423 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4426 2001-01-22 Paul Eggert <eggert@twinsun.com>
4428 * manual/llio.texi (Linked Channels, Cleaning Streams):
4429 Make it clearer that a just-opened input stream might need cleaning.
4431 2002-01-21 H.J. Lu <hjl@gnu.org>
4433 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4434 Don't use label at end of compound statement.
4436 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
4438 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
4439 Remove test for negative integer arg; sin_pi does it correctly.
4441 2002-01-20 Ulrich Drepper <drepper@redhat.com>
4443 * nscd/Makefile (distribute): Filter out xmalloc.c.
4445 2002-01-19 Ulrich Drepper <drepper@redhat.com>
4447 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
4448 Set offset if read end wasn't the buffer end.
4449 (_IO_file_seekoff_mmap): New function.
4450 (_IO_file_xsgetn_mmap): New function.
4451 (_IO_file_jumps_mmap): Use the two new functions.
4452 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
4454 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
4455 _IO_file_underflow_mmap.
4456 * libio/iofopen.c: Don't position file descriptor at end of file.
4457 * libio/tst-widetext.c: Improve error messages.
4458 * stdio-common/tst-rndseek.c: Likewise.
4460 2002-01-18 Ulrich Drepper <drepper@redhat.com>
4462 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
4463 end of enum for !_GNU_SOURCE.
4464 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
4465 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
4466 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
4467 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
4468 values unless _GNU_SOURCE.
4470 * iconvdata/tcvn5712-1.c: Minor cleanups.
4472 2002-01-18 Andreas Schwab <schwab@suse.de>
4474 * sysdeps/unix/sysv/linux/configure.in
4475 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
4477 2002-01-16 Roger Sayle <roger@eyesopen.com>
4479 * stdlib/msort.c (msort_with_tmp): Replace implementation with
4480 more efficient "Towers of Hanoi" mergesort.
4481 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
4482 for generic, sizeof(int) and sizeof(long) variants respectively.
4484 2002-01-17 Ulrich Drepper <drepper@redhat.com>
4486 * manual/syslog.texi (openlog): Describe possible problems with
4488 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4490 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
4491 * nscd/connections.c (begin_drop_privileges): New function.
4492 (finish_drop_privileges): New function.
4493 (nscd_init): Call the new functions which also install all groups
4494 for the server user.
4495 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
4496 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4498 2002-01-17 H.J. Lu <hjl@gnu.org>
4500 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
4503 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4505 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
4506 instructions for pointer operations.
4507 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4509 2002-01-17 Andreas Jaeger <aj@suse.de>
4511 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
4512 __uint128_t build-in.
4514 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
4515 PowerPC, sync with 2.2 branch.
4517 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4519 * posix/getconf.c: Update copyright year.
4520 * nss/getent.c: Likewise.
4521 * nscd/nscd_nischeck.c: Likewise.
4522 * iconv/iconvconfig.c: Likewise.
4523 * iconv/iconv_prog.c: Likewise.
4524 * elf/ldconfig.c: Likewise.
4525 * catgets/gencat.c: Likewise.
4526 * csu/version.c: Likewise.
4527 * elf/ldd.bash.in: Likewise.
4528 * elf/sprof.c (print_version): Likewise.
4529 * locale/programs/locale.c: Likewise.
4530 * locale/programs/localedef.c: Likewise.
4531 * nscd/nscd.c (print_version): Likewise.
4532 * debug/xtrace.sh: Likewise.
4533 * malloc/memusage.sh: Likewise.
4534 * malloc/mtrace.pl: Likewise.
4536 2002-01-16 Andreas Schwab <schwab@suse.de>
4538 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
4539 reliably remove "-ia64" from rtld name.
4541 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4543 * iconvdata/gb18030.c: Bug fixes and support for more characters.
4544 Patch by Yu Shao <yshao@redhat.com>.
4546 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
4548 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
4549 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
4550 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
4552 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
4554 * sysdeps/s390/fpu/libm-test-ulps: Update.
4556 2002-01-11 Ulrich Drepper <drepper@redhat.com>
4558 * elf/elf.h: Update x86 relocations.
4560 2002-01-10 Ulrich Drepper <drepper@redhat.com>
4562 * locale/programs/charmap.c (new_width): Check whether byte
4563 sequences for both ends of range have the same length.
4565 2002-01-09 Jakub Jelinek <jakub@redhat.com>
4567 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
4569 2002-01-09 Jakub Jelinek <jakub@redhat.com>
4571 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
4573 (__full_ieee754_sqrt): Add __attribute_used__.
4575 2002-01-10 Ulrich Drepper <drepper@redhat.com>
4577 * sysdeps/generic/group_member.c (__group_member): Also check
4578 groups[0] [PR libc/2781].
4580 2002-01-08 Ulrich Drepper <drepper@redhat.com>
4582 * Makefile (distribute): Add scripts/cpp.
4583 * elf/Makefile (distribute): Add reldep6mod[01234].c,
4584 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
4585 unwind-dw2-fde.h, and dwarf2.h.
4586 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
4587 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
4588 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
4589 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
4591 2002-01-07 Roland McGrath <roland@frob.com>
4593 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
4594 volatile on type of ARGC so the compiler doesn't get clever.
4596 2002-01-07 Andreas Jaeger <aj@suse.de>
4598 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
4599 * sysdeps/i386/bits/byteswap.h: Likewise.
4600 * sysdeps/ia64/bits/byteswap.h: Likewise.
4601 * sysdeps/m68k/bits/byteswap.h: Likewise.
4602 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
4603 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
4605 2002-01-02 Bruno Haible <bruno@clisp.org>
4607 * intl/plural.y: Fix %expect count.
4609 2002-01-03 Jakub Jelinek <jakub@redhat.com>
4611 * elf/Makefile (routines, shared-only-routines): Add
4612 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
4613 * elf/elf.h (PT_GNU_EH_FRAME): Define.
4614 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
4615 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
4616 Optimize if .eh_frame section contains no FDEs.
4617 (__register_frame, __deregister_frame_info_bases,
4618 __deregister_frame): Likewise.
4619 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
4620 DW_CFA_restore handling.
4622 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
4624 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
4626 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
4627 for x < 0.25 and restore original range reduction method.
4628 (__ieee754_lgammal_r): Make sure signgam is set before returning.
4630 2002-01-07 Ulrich Drepper <drepper@redhat.com>
4632 * libio/fileops.c (_IO_file_underflow_mmap): New function.
4633 (_IO_file_close_mmap): New function.
4634 (_IO_file_jumps_mmap): New variable.
4635 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
4636 trying to convert rest of byte buffer.
4637 (_IO_wfile_underflow_mmap): New function.
4638 (_IO_wfile_jumps_mmap): New variable.
4639 * libio/iofopen.c (__fopen_maybe_mmap): New function.
4640 (__fopen_internal): New function. Split out from _IO_new_fopen.
4641 (_IO_new_fopen): Call __fopen_internal.
4642 * libio/iofopen64.c: Just call __fopen_internal.
4643 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
4645 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
4646 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
4647 _IO_file_close_mmap.
4649 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
4650 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
4652 * stdio-common/Makefile (tests): Add tst-rndseek.
4653 * stdio-common/tst-rndseek.c: New file.
4655 2002-01-05 Roland McGrath <roland@frob.com>
4657 * config.h.in (HAVE_MIG_RETCODE): New #undef.
4658 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
4659 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
4660 * sysdeps/mach/hurd/configure: Regenerated.
4662 2002-01-03 Ulrich Drepper <drepper@redhat.com>
4664 * elf/elf.h: Add more TLS definitions.
4666 2002-01-02 Ulrich Drepper <drepper@redhat.com>
4668 * include/features.h (__GLIBC_MINOR__): Bump to 3.
4670 2002-01-02 Roland McGrath <roland@frob.com>
4672 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
4673 __sigisemptyset. Don't use MASK uninitialized.
4675 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
4676 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
4677 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
4678 __sigdelset, __sigaddset, __sigorset.
4680 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
4681 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
4683 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
4684 _hurd_ports is null.
4686 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
4687 for old CMU and new OSF Mach interface flavors.
4688 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
4689 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4691 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
4693 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
4694 Pass extra arguments to task_create for OSF variant.
4695 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4697 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
4698 conditional on [HAVE_AUX_VECTOR].
4700 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
4701 mach_msg_timeout_t as type of final argument.
4703 * hurd/privports.c (__get_privileged_ports):
4704 Change host_priv_t to mach_port_t in argument type.
4705 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
4708 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
4709 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
4710 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
4711 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
4712 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
4713 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
4715 2002-01-01 Roland McGrath <roland@frob.com>
4717 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
4719 2002-01-01 Ulrich Drepper <drepper@redhat.com>
4721 * include/stdlib.h: Define inlines for the _l variants of the strto*
4724 2002-01-01 Roland McGrath <roland@frob.com>
4726 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
4728 * mach/Machrules (MIG): Set CPP as well as CC.
4730 2001-12-31 Ulrich Drepper <drepper@redhat.com>
4732 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
4733 locale to parse /proc/loadavg [PR libc/2760].
4735 2001-12-31 Jakub Jelinek <jakub@redhat.com>
4737 * elf/dl-conflict.c: Include sys/param.h.
4738 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
4739 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
4741 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
4742 literals to avoid warnings.
4744 2001-12-31 Andreas Jaeger <aj@suse.de>
4746 * configure.in: Don't check for gsed since we do not use it anywhere.
4748 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
4750 * io/fts.c: Update from BSD to fix memory leaks.
4752 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
4754 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
4755 * elf/chroot_canon.c: Likewise.
4756 * elf/dl-object.c: Likewise.
4757 * iconv/iconv_charmap.c: Likewise.
4758 * iconv/iconv_prog.c: Likewise.
4759 * libio/iogetdelim.c: Likewise.
4760 * locale/lc-time.c: Likewise.
4761 * stdlib/canonicalize.c: Likewise.
4762 * sunrpc/svc.c: Likewise.
4763 * sysdeps/generic/glob.c: Likewise.
4765 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4767 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
4768 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
4769 remove high order bit from the program counter.
4770 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
4772 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4774 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
4775 unnecessary code and add missing reloc types.
4776 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
4777 case for reloc type R_390_NONE.
4779 2001-12-28 Andreas Jaeger <aj@suse.de>
4781 * io/bug-ftw3.c: Include string.h for prototypes.
4783 * crypt/md5test.c (main): Remove unused variable.
4785 * dlfcn/modstatic.c: Add prototype to avoid warning.
4787 2001-12-26 Roland McGrath <roland@frob.com>
4789 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
4790 check only (SS->pending & MASK) for the signal to return.
4791 From Jeroen Dekkers <jeroen@dekkers.cx>.
4793 2001-12-22 Roland McGrath <roland@frob.com>
4795 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
4796 Use preprocessor #if conditionals instead of `if' to avoid
4797 warnings about divide by zero in dead code.
4799 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
4800 _hurd_port_init, and __hurd_self_sigstate.
4802 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
4804 2001-12-21 Andreas Jaeger <aj@suse.de>
4806 * elf/dblloadmod1.c: Add prototype to avoid warning.
4807 * elf/dblloadmod2.c: Likewise.
4808 * elf/dblloadmod3.c: Likewise.
4809 * elf/reldepmod5.c: Likewise.
4810 * elf/reldepmod6.c: Likewise.
4812 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
4813 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
4814 used on all architectures.
4816 * sunrpc/svc_tcp.c: Add noreturn attribute for
4817 svctcp_rendezvous_abort.
4818 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
4820 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
4823 2001-12-19 Jakub Jelinek <jakub@redhat.com>
4825 * manual/llio.texi (aio_fsync): Fix a typo.
4826 Patch by Tammy Fox <tfox@redhat.com>.
4828 2001-12-18 Jakub Jelinek <jakub@redhat.com>
4830 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
4831 stack bias from child stack pointer before passing it to clone syscall.
4833 2001-12-18 Ulrich Drepper <drepper@redhat.com>
4835 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
4837 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
4838 Reported by Thorsten Kukuk <kukuk@suse.de>.
4840 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
4843 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
4845 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
4847 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
4848 conforming: return EBADF if file descriptor is invalid and EINVAL
4849 if file descriptor is no valid tty.
4850 * login/tst-grantpt.c: New file.
4851 * login/Makefile (tests): Add tst-grantpt.
4853 2001-12-17 Ulrich Drepper <drepper@redhat.com>
4855 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
4856 different than implemented in last patch.
4857 * io/bug-ftw3.c: Adjust test for changed handling of
4858 inaccessibility of toplevel dir.
4860 2001-12-16 Roland McGrath <roland@frob.com>
4862 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
4863 * grp/initgroups.c (internal_getgrouplist): Likewise.
4865 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
4866 `default:' to silence new GCC warning.
4867 Rewrite cast of lvalue to silence new GCC warning.
4869 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
4871 * sysdeps/mach/hurd/spawni.c: New file, by me with a
4872 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
4874 2001-12-14 Ulrich Drepper <drepper@redhat.com>
4876 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
4877 Patch by Stephen R. van den Berg.
4879 * crypt/md5.h: Define md5_uintptr.
4881 2001-12-13 Ulrich Drepper <drepper@redhat.com>
4883 * libio/tst_swprintf.c (main): Add test for string argument with
4885 * stdio-common/Makefile (tests): Add tst-sprintf.
4886 * stdio-common/tst-sprintf.c: New file.
4888 2001-12-13 Andreas Schwab <schwab@suse.de>
4890 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
4891 zero precision with wide character string format.
4893 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
4895 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
4896 but have a user supplied buffer, return the empty buffer, not NULL.
4898 2001-12-13 Ulrich Drepper <drepper@redhat.com>
4900 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
4901 Patch by Eric Sharkey <sharkey@netrics.com>.
4903 * crypt/md5test.c (main): Add test for multiple calls to
4904 __md5_process_bytes to itererate over input string.
4906 2001-12-12 Ulrich Drepper <drepper@redhat.com>
4908 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
4909 from __nis_findfastest. Take timeout value from parameter.
4910 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
4911 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
4912 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
4914 2001-12-12 Andreas Jaeger <aj@suse.de>
4916 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
4917 combreloc test so that it works in this case.
4919 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
4921 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
4923 * sysdeps/sh/Makefile: New file.
4924 * sysdeps/sh/_mcount.S: New file.
4925 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
4926 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
4928 2001-12-11 Ulrich Drepper <drepper@redhat.com>
4930 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
4931 limitation [PR libc/2564].
4933 2001-12-11 Jakub Jelinek <jakub@redhat.com>
4935 * elf/Makefile (dl-routines): Add conflict.
4936 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
4937 (ld.so): Add _begin local symbol.
4938 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
4940 * elf/dl-deps.c (_dl_build_local_scope): New.
4941 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
4943 * elf/do-rel.h (VALIDX): Define.
4944 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
4945 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
4947 * elf/dl-conflict.c: New file.
4948 * elf/dl-lookup.c (_dl_debug_bindings): New.
4949 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
4951 (_dl_lookup_symbol_skip): Likewise.
4952 (_dl_lookup_versioned_symbol): Likewise.
4953 (_dl_lookup_versioned_symbol_skip): Likewise.
4954 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
4955 define to ElfW(Rel).
4956 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
4957 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
4959 Don't adjust address dynamic tags if l_addr is 0.
4960 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
4961 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
4962 (VALIDX, ADDRIDX): Define.
4963 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
4964 (dl_main): Print library list for LD_TRACE_PRELINKING.
4965 If prelinking information can be used, skip relocating libraries and
4966 call _dl_resolve_conflicts instead.
4967 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
4968 * elf/dl-load.c (_dl_map_object): Don't create fake libs
4969 if LD_TRACE_PRELINKING.
4970 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
4972 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
4973 (DL_DEBUG_PRELINK): Define.
4974 (_dl_resolve_conflicts): Add prototype.
4976 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
4977 .plt for prelinked libraries where prelinking info cannot be used.
4978 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
4979 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
4980 * sysdeps/arm/bits/link.h: New file.
4981 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
4983 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
4984 (ELF_MACHINE_PLT_REL): Define.
4985 (elf_machine_rela, elf_machine_rela_relative): New.
4986 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
4987 of adjusting it if prelinked and prelinking cannot be used.
4988 * sysdeps/i386/bits/link.h: New file.
4989 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
4991 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
4992 (ELF_MACHINE_PLT_REL): Define.
4993 (elf_machine_rela, elf_machine_rela_relative): New.
4994 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
4995 of adjusting it if prelinked and prelinking cannot be used.
4996 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
4997 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
4998 to find out map for R_PPC_JMP_SLOT relocs.
4999 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5000 (OPCODE_BA): Define.
5001 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5002 libraries where prelinking info cannot be used.
5003 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5004 (elf_machine_fixup_plt): Call sparc_fixup_plt.
5005 (elf_machine_rela): Set value to 0 if relocating conflicts.
5006 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5007 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5008 (sparc64_fixup_plt): Fix a typo.
5009 (elf_machine_rela): Set value to 0 if relocating conflicts.
5010 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5011 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5012 libraries where prelinking info cannot be used.
5013 * sysdeps/sh/bits/link.h: New file.
5014 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5016 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5017 of adjusting it if prelinked and prelinking cannot be used.
5018 * sysdeps/s390/s390-32/bits/link.h: New file.
5019 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5020 Save original content of .got[1].
5021 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5022 of adjusting it if prelinked and prelinking cannot be used.
5023 * sysdeps/s390/s390-64/bits/link.h: New file.
5024 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5025 Save original content of .got[1].
5026 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5027 of adjusting it if prelinked and prelinking cannot be used.
5028 * sysdeps/x86_64/bits/link.h: New file.
5029 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5030 Save original content of .got[1].
5031 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5032 of adjusting it if prelinked and prelinking cannot be used.
5034 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5036 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5037 where appropriate instead of numbers. Little optimizations.
5039 2001-12-10 Roland McGrath <roland@frob.com>
5041 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5044 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5045 set to GLIBC_2.2.5, not GLIBC_2.2.4.
5047 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5048 Fix conditionals so this is set by default for stdio and not for libio.
5049 * sysdeps/mach/hurd/configure: Regenerated.
5051 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
5053 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5055 2001-12-10 Ulrich Drepper <drepper@redhat.com>
5057 * io/Makefile (tests): Add bug-ftw3.
5058 * io/bug-ftw3.c: New file.
5060 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5061 matches and GLOB_NOCHECK is set.
5062 * posix/globtest.sh: Correct expected result for NOCHECK test.
5064 * po/ca.po: Update from translation team.
5066 2001-12-09 Ulrich Drepper <drepper@redhat.com>
5068 Implement transliteration of characters in strings of the locale
5070 * locale/programs/linereader.c: Adjust for additional parameter to
5072 (get_string): If character <Uxxxx> is not found try to transliterate
5074 * locale/programs/ld-ctype.c: Adjust for additional parameter to
5075 lr_token. Add const to charmap parameter of all functions.
5076 (find_translit, find_translit2): New functions.
5077 * locale/programs/charmap.c: Adjust for additional parameter to
5079 * locale/programs/repertoire.c: Likewise.
5080 * locale/programs/linereader.h: Likewise.
5081 * locale/programs/ld-address.c: Likewise. Add const to charmap
5082 parameter of all functions.
5083 * locale/programs/ld-collate.c: Likewise.
5084 * locale/programs/ld-identification.c: Likewise.
5085 * locale/programs/ld-measurement.c: Likewise.
5086 * locale/programs/ld-messages.c: Likewise.
5087 * locale/programs/ld-monetary.c: Likewise.
5088 * locale/programs/ld-name.c: Likewise.
5089 * locale/programs/ld-numeric.c: Likewise.
5090 * locale/programs/ld-paper.c: Likewise.
5091 * locale/programs/ld-paper.c: Likewise.
5092 * locale/programs/ld-telephone.c: Likewise.
5093 * locale/programs/ld-time.c: Likewise.
5094 * locale/programs/locfile.c: Likewise.
5095 * locale/programs/localedef.c: Likewise.
5096 * locale/programs/localedef.h: Likewise.
5097 * locale/programs/locfile.h: Likewise. Add declaration for
5099 * locale/programs/simple-hash.c: Add const to first parameter of
5100 find_entry, iterate_table, and lookup.
5101 * locale/programs/simple-hash.h: Likewise.
5102 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
5104 * include/locale.h: Define __LC_LAST.
5105 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5107 2001-12-07 Geoff Keating <geoffk@redhat.com>
5109 * sysdeps/powerpc/Dist: Update for recent FP changes.
5110 * sysdeps/powerpc/fpu/Dist: Likewise.
5112 2001-12-07 Andreas Schwab <schwab@suse.de>
5114 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5116 2001-12-06 Geoff Keating <geoffk@redhat.com>
5118 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
5119 save/restore functions here.
5120 (libm-support): Don't define these functions here.
5121 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
5123 * sysdeps/powerpc/fe_nomask.c: Move to...
5124 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
5125 * sysdeps/powerpc/fprrest.S: Move to...
5126 * sysdeps/powerpc/fpu/fprrest.S: ... here.
5127 * sysdeps/powerpc/fprsave.S: Move to...
5128 * sysdeps/powerpc/fpu/fprsave.S: ... here.
5130 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5132 * sysdeps/unix/sysv/linux/opensock.c: New file.
5134 2001-12-06 Geoff Keating <geoffk@redhat.com>
5136 * config.make.in (with-fp): Define from configure.
5137 * configure.in: Substitute with_fp.
5138 * configure: Regenerate.
5139 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
5140 specified, and don't change FPU environment.
5142 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5144 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
5145 * assert/assert.c: Check result of __asprintf call and don't use
5146 string if it failed.
5147 * assert/assert-perr.c: Likewise.
5148 * inet/rcmd.c: Likewise.
5149 * locale/programs/localedef.c (main): Check result of
5150 construct_output_path and exit if it failed.
5151 (construct_output_path): Check result of asprintf and mkdir calls and
5152 fail if they failed.
5153 * posix/getopt.c: Check result of __asprintf calls and fail if
5155 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
5157 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5159 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
5161 * sysdeps/generic/strncase.c: Likewise.
5162 * string/tester.c: Add tests for strcasecmp and strncasecmp.
5164 2001-12-05 Geoff Keating <geoffk@redhat.com>
5166 * scripts/cpp: Test the exit status from 'type', not 'awk'.
5168 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
5169 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
5170 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
5171 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
5172 * sysdeps/powerpc/fclrexcpt.c: Move to...
5173 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
5174 * sysdeps/powerpc/fpu_control.h: Move to...
5175 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
5177 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5179 * iconvdata/ibm1129.h: Remove duplicate mappings.
5180 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
5181 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
5182 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5184 * timezone/zic.c: Fix handling of turnaround times.
5185 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
5187 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
5189 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
5192 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5194 * posix/regex.c: For use outside glibc defined bounded pointer
5195 macros here. Patch by Jim Meyering <jim@meyering.net>.
5197 * iconvdata/Makefile (modules): Add TCVN5712-1.
5198 * iconvdata/TESTS: Add TCVN5712-1.
5199 * iconvdata/gconv-modules: Likewise.
5200 * iconvdata/tcvn5712-1.c: New file.
5201 * iconvdata/testdata/TCVN-5712: New file.
5202 * iconvdata/testdata/TCVN-5712..UTF8: New file.
5204 2001-12-04 Ulrich Drepper <drepper@redhat.com>
5206 * iconvdata/cp1258.c: Optimize conversion from UCS4.
5208 2001-12-02 Roland McGrath <roland@frob.com>
5210 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
5212 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
5213 Reported by Jeff Bailey <jbailey@nisa.net>.
5215 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
5216 Reported by Jeff Bailey <jbailey@nisa.net>.
5218 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
5219 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
5220 Reported by Jeff Bailey <jbailey@nisa.net>.
5222 2001-12-01 Roland McGrath <roland@frob.com>
5224 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
5225 missing backslash in test arguments.
5226 * sysdeps/mach/hurd/configure: Regenerated.
5228 2001-11-26 Roland McGrath <roland@frob.com>
5230 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
5231 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
5233 2001-11-30 Ulrich Drepper <drepper@redhat.com>
5235 * iconvdata/Makefile (modules): Add ARMSCII-8.
5236 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
5237 * iconvdata/armscii-8.c: New file.
5239 2001-11-29 Jakub Jelinek <jakub@redhat.com>
5241 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
5242 don't match, fix {{a,b},c} globbing, clean up.
5243 Patch by Flavio Veloso <flaviovs@magnux.com>.
5244 * posix/globtest.sh: Add new tests.
5246 2001-11-29 Andreas Jaeger <aj@suse.de>
5248 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
5249 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
5251 * sysdeps/generic/abort.c: Include libioP.h for
5252 _IO_flush_all_lockp prototype.
5254 2001-11-29 Ulrich Drepper <drepper@redhat.com>
5256 * posix/regex.h: Define __restrict_arr correctly.
5258 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5260 * iconvdata/ibm1163.c: New file.
5261 * iconvdata/ibm1163.h: New file.
5262 * iconvdata/ibm1164.c: New file.
5263 * iconvdata/ibm1164.h: New file.
5264 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
5265 * iconvdata/Makefile: Likewise.
5266 * iconvdata/testdata/IBM1163: New file.
5267 * iconvdata/testdata/IBM1163..UTF8: New file.
5268 * iconvdata/testdata/IBM1164: New file.
5269 * iconvdata/testdata/IBM1164..UTF8: New file.
5270 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5272 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
5273 * iconvdata/ibm1124.h: Likewise.
5274 * iconvdata/ibm1132.h: Likewise.
5275 * iconvdata/ibm1133.h: Likewise.
5276 * iconvdata/ibm1160.h: Likewise.
5277 * iconvdata/ibm1161.h: Likewise.
5278 * iconvdata/ibm1162.h: Likewise.
5279 * iconvdata/ibm856.h: Likewise.
5280 * iconvdata/ibm922.h: Likewise.
5281 * iconvdata/ibm930.h: Likewise.
5282 * iconvdata/ibm932.h: Likewise.
5283 * iconvdata/ibm933.h: Likewise.
5284 * iconvdata/ibm935.h: Likewise.
5285 * iconvdata/ibm937.h: Likewise.
5286 * iconvdata/ibm939.h: Likewise.
5287 * iconvdata/ibm943.h: Likewise.
5288 * iconvdata/ibm930.c: Pretty printing.
5289 * iconvdata/ibm937.c: Avoid access accross array boundary.
5291 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
5292 the current locale's codeset.
5293 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
5295 * iconv/iconv_prog.c: Pass empty strings as default value for to-
5296 and from-charset. Don't determine locale's charset here.
5298 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
5299 as the old _IO_flush_all but lock only if parameter is nonzero.
5300 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
5301 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
5302 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
5303 if libio is used [PR libc/2575].
5305 2001-11-28 Jakub Jelinek <jakub@redhat.com>
5307 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
5308 __signbitl): Only define for ISO C99.
5310 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5312 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
5313 herrnop to NETDB_INTERNAL if we run out of buffer space.
5315 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5317 * nss/nss_files/files-XXX.c (internal_getent): Correct input
5318 overflow test for platforms with signed char.
5319 Reported by Andrew Haley <aph@cambridge.redhat.com>.
5321 2001-11-28 Bruno Haible <bruno@clisp.org>
5323 * locale/programs/simple-hash.c (lookup_2): Remove function.
5324 (insert_entry_2): Call lookup instead of lookup_2.
5326 2001-03-04 Bruno Haible <bruno@clisp.org>
5328 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
5330 2001-10-31 Bruno Haible <bruno@clisp.org>
5332 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
5334 2001-03-21 Bruno Haible <bruno@clisp.org>
5336 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
5337 chokes on empty macro arguments.
5338 * intl/plural.y: Add #pragma for alloca on AIX 3.
5340 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5342 * intl/dcigettext.c (guess_category_value): Only implement for
5343 glibc. Otherwise rely on function _nl_locale_name which isn't
5344 present in the glibc sources.
5346 2001-09-24 Bruno Haible <bruno@clisp.org>
5348 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
5349 transliteration when building on a glibc system but outside glibc.
5351 2001-09-22 Bruno Haible <bruno@clisp.org>
5353 * intl/plural-eval.c: New file, extracted from dcigettext.c.
5354 * intl/dcigettext.c (plural_eval): Remove function, moved to
5356 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
5357 Include plural-eval.c.
5359 2001-09-22 Bruno Haible <bruno@clisp.org>
5361 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
5362 don't start with a digit; nplurals must be positive.
5364 2001-09-02 Bruno Haible <bruno@clisp.org>
5366 * intl/plural-exp.h: New file, extracted from gettextP.h.
5367 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
5368 * intl/gettextP.h (struct expression, struct parse_args,
5369 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
5370 * intl/loadmsgcat.c: Include plural-exp.h.
5371 (PLURAL_PARSE): Move macro to plural-exp.h.
5372 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
5374 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
5375 EXTRACT_PLURAL_EXPRESSION.
5376 (_nl_unload_domain): Update.
5377 * intl/dcigettext.c: Include plural-exp.h.
5378 * intl/plural.y: Include plural-exp.h, not gettextP.h.
5379 (FREE_EXPRESSION): Move macro to plural-exp.h.
5380 * intl/Makefile (routines): Add plural-exp.
5381 (distribute): Add plural-exp.h.
5383 2001-07-28 Bruno Haible <bruno@clisp.org>
5385 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
5386 isdigit, tolower argument to 'unsigned char'.
5387 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
5389 * intl/localealias.c (read_alias_file): Cast isspace argument to
5392 2001-10-20 Bruno Haible <bruno@clisp.org>
5394 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
5396 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
5397 with the variable 'index' in plural_lookup.
5398 * intl/l10nflist.c (strchr): Likewise.
5399 * intl/localealias.c (strchr): Likewise.
5401 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
5402 * intl/bindtextdom.c: Likewise.
5403 * intl/dcigettext.c: Likewise.
5404 * intl/dgettext.c: Likewise.
5405 * intl/dngettext.c: Likewise.
5406 * intl/explodename.c: Likewise.
5407 * intl/finddomain.c: Likewise.
5408 * intl/gettext.c: Likewise.
5409 * intl/l10nflist.c: Likewise.
5410 * intl/loadmsgcat.c: Likewise.
5411 * intl/localealias.c: Likewise.
5412 * intl/ngettext.c: Likewise.
5413 * intl/textdomain.c: Likewise.
5414 * intl/gettext.h: Assume <limits.h> exists.
5416 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5418 * stdio-common/Makefile (tests): Add scanf11.
5419 * stdio-common/scanf11.c: New file.
5421 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5423 * version.h (RELEASE): Define as development.
5424 (VERSION): Set to 2.2.90.
5426 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5428 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
5429 * nis/nss_nis/nis-grp.c: Likewise.
5430 * nis/nss_nisplus/nisplus-grp.c: Likewise.
5432 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
5433 * nis/nss_nis/nis-pwd.c: Likewise.
5434 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
5436 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
5437 * nis/nss_nisplus/nisplus-parser.c: Likewise.
5438 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5440 * nscd/grpcache.c: Use strtoul instead of atol.
5441 * nscd/pwdcache.c: Likewise.
5442 * nss/getent.c: Likewise.
5444 2001-11-27 Paul Eggert <eggert@twinsun.com>
5446 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5447 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5449 2001-11-19 Bruno Haible <bruno@clisp.org>
5451 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
5453 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
5454 improves the quality of the hash function, especially for short
5457 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5459 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
5460 are found call conv_error and not input_error [PR libc/2669].
5462 * math/bits/mathcalls.h: Mark ceil and floor as const.
5463 Reported by David Mosberger.
5465 2001-11-21 Jim Meyering <meyering@lucent.com>
5467 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
5468 Define to be __-prefixed.
5469 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
5471 2001-11-26 Andreas Jaeger <aj@suse.de>
5473 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
5476 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
5478 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
5481 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
5482 unused variables. Fix threshold for returning 1.0.
5484 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
5487 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
5488 remove unused variables.
5490 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
5492 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
5493 include local math header files.
5495 2001-11-22 Andreas Jaeger <aj@suse.de>
5497 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
5500 2001-11-21 Andreas Jaeger <aj@suse.de>
5502 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
5504 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
5507 2001-11-15 Andreas Jaeger <aj@suse.de>
5509 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
5510 compilers that support it.
5512 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
5513 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
5514 * stdlib/stdlib.h: Likewise.
5516 2001-11-17 Ulrich Drepper <drepper@redhat.com>
5518 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
5519 statement with gotos.
5520 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
5522 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
5524 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
5526 2001-11-15 Ulrich Drepper <drepper@redhat.com>
5528 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
5530 2001-10-02 Jakub Jelinek <jakub@redhat.com>
5531 H.J. Lu <hjl@gnu.org>
5533 * Versions.def (libc): Add GCC_3.0.
5534 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5535 if gcc supports this flag.
5536 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
5537 (gcc3): Allow glibc to be compiled with gcc 3.x.
5538 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
5539 * config.make.in (static-libgcc, unwind-find-fde): Add.
5540 * Makerules (build-shlib-helper, build-module-helper): Use it.
5541 * scripts/versions.awk: Make sure GLIBC_ versions come first.
5542 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
5544 (_fini): Call __deregister_frame_info_bases if
5545 __register_frame_info_bases was used to register.
5546 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
5548 (__register_frame_info_bases, __register_frame_info_table_bases,
5549 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
5550 * elf/Makefile (routines): Add unwind-dw2-fde.
5551 (shared-only-routines): Add unwind-dw2-fde.
5552 * sysdeps/alpha/gccframe.h: New file.
5553 * sysdeps/arm/gccframe.h: New file.
5554 * sysdeps/generic/framestate.c: New file.
5555 * sysdeps/generic/dwarf2.h: New file.
5556 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
5557 * sysdeps/generic/unwind-dw2-fde.c: New file.
5558 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
5559 * sysdeps/generic/unwind-dw2-fde.h: New file.
5560 * sysdeps/generic/unwind-dw2.c: New file.
5561 * sysdeps/generic/unwind-pe.h: New file.
5562 * sysdeps/generic/unwind.h: New file.
5563 * sysdeps/hppa/gccframe.h: New file.
5564 * sysdeps/i386/gccframe.h: New file.
5565 * sysdeps/m68k/gccframe.h: New file.
5566 * sysdeps/mips/gccframe.h: New file.
5567 * sysdeps/powerpc/gccframe.h: New file.
5568 * sysdeps/s390/gccframe.h: New file.
5569 * sysdeps/sh/gccframe.h: New file.
5570 * sysdeps/sparc/gccframe.h: New file.
5571 * sysdeps/vax/gccframe.h: New file.
5572 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5573 Set on all architectures except ia64.
5574 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
5576 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
5577 __deregister_frame_info): Move to elf/Versions.
5578 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
5579 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
5580 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
5581 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
5582 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
5583 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
5584 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5585 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5586 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
5587 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
5588 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5589 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5590 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5591 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5592 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5593 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5594 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5595 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5597 2001-11-15 Jeff Law <law@redhat.com>
5599 * posix/regex.c (uintptr_t): Do not provide a definition if the
5600 system provided one.
5602 2001-11-13 Roland McGrath <roland@frob.com>
5604 * stdio-common/tmpfile.c: Moved to ...
5605 * sysdeps/generic/tmpfile.c: ... here.
5606 * sysdeps/mach/hurd/tmpfile.c: New file.
5608 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
5609 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
5610 (fopenport): Define as weak alias.
5612 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
5613 * libio/libioP.h: ... to here.
5615 2001-11-12 Ulrich Drepper <drepper@redhat.com>
5617 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
5618 program header twice. Construct list with the needed information.
5620 2001-11-10 Ulrich Drepper <drepper@redhat.com>
5622 * po/ca.po: Update from translation team.
5624 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
5625 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
5626 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
5627 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5629 2001-11-10 Andreas Jaeger <aj@suse.de>
5631 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
5632 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5633 Contributed by Stephen L Moshier <moshier@mediaone.net>.
5635 2001-11-09 Ulrich Drepper <drepper@redhat.com>
5637 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
5639 * elf/dl-load.c (is_dst): New function.
5640 (_dl_dst_count): Use is_dst to check for DST variable.
5641 (_dl_dst_substitute): Likewise.
5643 2001-11-09 Roland McGrath <roland@frob.com>
5645 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
5646 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
5647 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
5648 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
5649 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
5650 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
5651 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
5652 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
5653 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
5654 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
5655 * sysdeps/mach/hurd/powerpc/Dist: New file.
5657 * hurd/privports.c (__get_privileged_ports):
5658 Only contact the proc server if necessary for this call.
5659 Suggested by Neal H Walfield <neal@cs.uml.edu>.
5660 Check error return for mach_port_mod_refs.
5662 2001-11-09 Andreas Schwab <schwab@suse.de>
5664 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
5666 2001-11-09 Ulrich Drepper <drepper@redhat.com>
5668 * elf/dl-load.c (lose): Remove some unnecessary code. The new
5669 object is always the last in the list.
5670 (_dl_map_object_from_fd): Delete code to remove from object list
5671 when DF_1_NOOPEN is seen. This is done in lose.
5673 2001-11-08 Ulrich Drepper <drepper@redhat.com>
5675 * elf/dl-object.c (_dl_new_object): Various small optimizations.
5677 2001-11-07 Ulrich Drepper <drepper@redhat.com>
5679 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
5680 HWCAP_CHECK macro code.
5682 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
5683 Now returns MAP_FAILED on error.
5684 * elf/rtld.c: Adjust caller.
5685 * sysdeps/generic/dl-cache.c: Likewise.
5686 * sysdeps/generic/ldsodefs.h: Adjust description.
5688 * elf/dl-version.c (match_symbol): Optimize error handling for size.
5689 (_dl_check_map_versions): Likewise.
5691 2001-11-06 Ulrich Drepper <drepper@redhat.com>
5693 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
5694 _dl_signal_error directly, always use lose. Set fd to -1 after
5696 (lose): Don't call close if fd == -1.
5698 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
5700 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
5701 Also fix typo @code {mbsinit} to @code{mbsinit}.
5703 2001-11-06 Ulrich Drepper <drepper@redhat.com>
5705 * elf/dl-profile.c: Replace state variable with simple flag named
5706 running. Remove commented-out code.
5708 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
5709 (_dl_init_paths): Likewise.
5710 (_dl_map_object_from_fd): Likewise.
5711 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5713 2001-11-06 Roland McGrath <roland@frob.com>
5715 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
5716 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
5718 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
5719 sysdeps/powerpc/elf/sysdep.h.
5720 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
5722 2001-11-05 Ulrich Drepper <drepper@redhat.com>
5724 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
5726 (process_envvars): Some more optimizations.
5727 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
5729 * elf/elf.h: Add dynamic tag definitions for prelinking.
5731 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
5732 Rewrite code to remove environment varables for SUID binaries.
5733 Small optimization in LD_PROFILE handling.
5734 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
5736 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5738 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
5740 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
5741 strings. Change type of second parameter.
5742 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
5745 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
5747 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
5749 * manual/string.texi: Fix typos.
5750 * manual/examples/argp-ex2.c: Likewise.
5752 2001-11-05 Roland McGrath <roland@frob.com>
5754 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
5755 the more-specific unix/sysv/linux/powerpc file and breaks everything.
5756 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
5757 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
5758 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
5759 here, put under [__ELF__].
5761 2001-11-05 Ulrich Drepper <drepper@redhat.com>
5763 * manual/charset.texi: Extensive editing work.
5764 * manual/nss.texi: Likewise.
5765 Changes by Dennis Grace <dgrace@us.ibm.com>.
5767 2001-11-04 Roland McGrath <roland@frob.com>
5769 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
5770 parameter to dir_mkfile.
5772 2001-11-02 Jakub Jelinek <jakub@redhat.com>
5774 * string/bits/string2.h (__strndup): If n is smaller than len, set
5776 * string/tester.c (test_strndup): New function.
5779 2001-11-01 Ulrich Drepper <drepper@redhat.com>
5781 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
5783 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
5784 * scripts/cpp: New file.
5786 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
5787 for rtld_search_dirs content. Minor optimizations.
5789 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5791 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
5792 avoiding unnecessary duplication.
5794 2001-10-31 Jakub Jelinek <jakub@redhat.com>
5796 * elf/dl-load.c (_dl_map_object): If library was found using
5797 LD_LIBRARY_PATH, don't try RUNPATH list.
5799 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
5801 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
5802 Correct second argument of register_dump call.
5803 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
5806 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5808 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
5810 * iconvdata/TESTS: Likewise.
5811 * iconvdata/gconv-modules: Likewise.
5812 * iconvdata/ibm1132.c: New file.
5813 * iconvdata/ibm1132.h: New file.
5814 * iconvdata/ibm1133.c: New file.
5815 * iconvdata/ibm1133.h: New file.
5816 * iconvdata/ibm1162.c: New file.
5817 * iconvdata/ibm1162.h: New file.
5818 * iconvdata/testdata/IBM1132: New file.
5819 * iconvdata/testdata/IBM1132..UTF8: New file.
5820 * iconvdata/testdata/IBM1133: New file.
5821 * iconvdata/testdata/IBM1133..UTF8: New file.
5822 * iconvdata/testdata/IBM1162: New file.
5823 * iconvdata/testdata/IBM1162..UTF8: New file.
5824 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
5826 * string/string.h: Fix typo in comment.
5827 * wcsmbs/wchar.h: Likewise.
5829 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
5831 * manual/getopt.texi (getopt_long, getopt_long_only): Include
5832 const in type of longopts parameter.
5834 2001-10-29 Andreas Jaeger <aj@suse.de>
5836 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
5838 2001-10-29 Kevin Ryde <user42@zip.com.au>
5840 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
5841 output, clarify `#' behaviour on 0.
5842 (Floating-Point Conversions): Clarify that %g only uses %e when
5843 the exponent would be greater than 1.
5845 2001-10-28 Roland McGrath <roland@frob.com>
5847 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
5848 * sysdeps/mach/powerpc/machine-sp.h: New file.
5849 * sysdeps/mach/powerpc/sysdep.h: New file.
5850 * sysdeps/mach/powerpc/thread_state.h: New file.
5852 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
5853 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
5854 expect to need the same thing on every platform.
5856 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
5857 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
5859 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
5860 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
5861 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
5862 Move all these assembly-related definitions to ...
5863 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
5865 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
5866 by Peter Bruin <pjbruin@dds.nl>.
5868 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
5869 packing results for a `poll' call.
5871 2001-10-26 Ulrich Drepper <drepper@redhat.com>
5873 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
5875 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
5878 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5880 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
5882 2001-10-24 H.J. Lu <hjl@gnu.org>
5884 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
5885 Use __BEGIN_DECLS/__END_DECLS around prototypes.
5886 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
5888 2001-10-21 Jim Meyering <meyering@lucent.com>
5890 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
5891 this code would end up calling gettext even in packages built
5893 * posix/getopt.c (_): Likewise.
5894 * posix/regex.c (_): Likewise.
5896 2001-10-26 Ulrich Drepper <drepper@redhat.com>
5898 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
5900 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
5901 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
5903 2001-10-19 Jakub Jelinek <jakub@redhat.com>
5905 * misc/sys/cdefs.h (__attribute_used__): Define.
5906 * elf/rtld.c (_dl_start): Add __attribute_used__.
5907 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
5909 2001-10-25 Andreas Schwab <schwab@suse.de>
5911 * stdlib/a64l.c: Expect least significant digit first.
5912 * stdlib/l64a.c: Produce least significant digit first.
5913 * stdlib/Makefile (tests): Add test-a64l.
5914 * stdlib/test-a64l.c: New file.
5915 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
5917 2001-10-21 Ulrich Drepper <drepper@redhat.com>
5919 * po/sk.po: Update from translation team.
5921 2001-10-18 Ulrich Drepper <drepper@redhat.com>
5923 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
5925 2001-10-18 Andreas Schwab <schwab@suse.de>
5927 * math/libm-test.inc (print_ulps): Print ulp values rounded to
5929 (print_function_ulps): Likewise.
5930 (print_complex_function_ulps): Likewise.
5931 (print_max_error): Likewise.
5932 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
5934 2001-10-16 Andreas Schwab <schwab@suse.de>
5936 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
5939 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
5940 BSD_SETJMP or BSD__SETJMP is defined, resp.
5941 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
5942 a tail call to __sigsetjmp that would require extending the
5944 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5945 * sysdeps/m68k/bsd-setjmp.S: Deleted.
5946 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
5947 Reported by Jes Sorensen <jes@trained-monkey.org>.
5949 2001-10-16 Andreas Jaeger <aj@suse.de>
5951 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
5952 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
5955 2001-10-15 Ulrich Drepper <drepper@redhat.com>
5957 * po/ca.po: New file. Contributed by the translation team.
5959 2001-10-15 Ralf Baechle <ralf@gnu.org>
5961 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
5962 a varargs prototype. Remove dependency from kernel header files.
5964 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
5965 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
5967 2001-10-14 Ulrich Drepper <drepper@redhat.com>
5969 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
5970 to generate hexadecimal identifier.
5971 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
5973 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
5975 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
5977 2001-10-14 Ulrich Drepper <drepper@redhat.com>
5979 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
5980 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
5981 Contributed by Stephen L Moshier <moshier@mediaone.net>.
5983 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
5984 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5985 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
5986 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
5987 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
5988 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
5990 * timezone/africa: Update from tzdata2001d.
5991 * timezone/asia: Likewise.
5992 * timezone/australasia: Likewise.
5993 * timezone/backward: Likewise.
5994 * timezone/europe: Likewise.
5995 * timezone/leapseconds: Likewise.
5996 * timezone/northamerica: Likewise.
5997 * timezone/southamerica: Likewise.
5998 * timezone/zone.tab: Likewise.
6000 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
6002 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6003 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6005 2001-10-12 Ulrich Drepper <drepper@redhat.com>
6007 * elf/elf.h (PT_TLS): New definition.
6009 2001-10-10 Jeff Bailey <jbailey@nisa.net>
6011 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6014 2001-10-07 Roland McGrath <roland@frob.com>
6016 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6018 2001-10-10 Ulrich Drepper <drepper@redhat.com>
6020 * elf/elf.h: Add more ELFOSABI_* constants.
6022 2001-10-04 Ben Collins <bcollins@debian.org>
6024 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6025 decleration of __need_wchar_t.
6027 2001-10-03 Jakub Jelinek <jakub@redhat.com>
6029 * string/bits/string2.h (__strsep_g): Add prototype.
6031 * string/Versions (__strsep): Remove.
6032 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6034 2001-10-07 Ulrich Drepper <drepper@redhat.com>
6036 * manua/llio.texi: Clarify file references added by mmap.
6037 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6039 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
6041 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6042 Add sc_loadrs and sc_rbs_bas to match current kernel.
6044 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6046 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6048 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6050 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6052 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6053 object has been bumped because of relocation dependency, avoid
6054 duplicates in l_scope.
6055 (show_scope): Fix typos.
6056 * elf/Makefile: Add rules to build and run reldep6.
6057 * elf/reldep6.c: New file.
6058 * elf/reldep6mod0.c: New file.
6059 * elf/reldep6mod1.c: New file.
6060 * elf/reldep6mod2.c: New file.
6061 * elf/reldep6mod3.c: New file.
6062 * elf/reldep6mod4.c: New file.
6064 2001-09-26 Jakub Jelinek <jakub@redhat.com>
6066 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6068 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
6069 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6070 for non-lazy binding. Fix .plt[32768+] handling.
6071 (elf_machine_plt_value): Don't add addend.
6072 (elf_machine_rela): Call sparc64_fixup_plt instead of
6073 elf_machine_fixup_plt.
6074 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6075 dynamic linker at 0xfffff800XXXXXXXX.
6077 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6079 2001-09-28 Ulrich Drepper <drepper@redhat.com>
6081 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6083 2001-09-25 Jakub Jelinek <jakub@redhat.com>
6085 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6086 declare __cmsg_data field if its size would be bigger than 0.
6087 (CMSG_DATA): Adjust accordingly.
6088 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6089 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6090 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6091 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6092 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6093 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6094 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6096 2001-09-25 Ulrich Drepper <drepper@redhat.com>
6098 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6099 * iconvdata/testdata/IBM1160: New file.
6100 * iconvdata/testdata/IBM1160..UTF8: New file.
6101 * iconvdata/testdata/IBM1161: New file.
6102 * iconvdata/testdata/IBM1161..UTF8: New file.
6103 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6105 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6107 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6108 UL_SETFSIZE computations better.
6110 * rt/Makefile: Remove use of filter for librt again.
6112 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
6113 UL_SETFSIZE computations better.
6115 * string/Versions: Export __strsep for GLIBC_2.2.5.
6116 * string/bits/string2.h: Define all __STRING_INLINE functions if
6117 _FORCE_INLINES is defined.
6118 Use int instead of char of parameter types.
6119 (__strsep): Don't use __strsep_g. Don't define it.
6120 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
6121 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
6123 (__stpcpy_a_small): Renamed from __stpcpy_small.
6124 (__strcspn_c1): Don't define if _FORCE_INLINES.
6125 (__strspn_c1): Likewise.
6127 2001-09-22 Ben Collins <bcollins@debian.org>
6129 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
6130 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
6131 * sysdeps/ia64/bits/sigaction.h: Likewise.
6132 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
6134 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6136 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
6138 2001-09-24 Jakub Jelinek <jakub@redhat.com>
6140 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
6142 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6144 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
6146 2001-09-20 H.J. Lu <hjl@gnu.org>
6148 * include/dlfcn.h (__RTLD_SPROF): New definiton.
6149 * elf/dl-open.c (dl_open_worker): Return immediately after loading
6151 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
6152 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
6154 2001-09-20 H.J. Lu <hjl@gnu.org>
6156 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
6159 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6161 * nss/getent.c: Accept -s parameter to overwrite rules in
6162 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
6164 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
6165 with as many ".0" as necessary to form a complete address
6166 inet_network understands.
6168 * nss/getent.c: Various cleanups. Use simpler and fewer function
6171 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6173 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
6175 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
6177 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6179 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
6181 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
6182 * iconvdata/ibm1160.c: New file.
6183 * iconvdata/ibm1160.h: New file.
6184 * iconvdata/ibm1161.c: New file.
6185 * iconvdata/ibm1161.h: New file.
6186 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6188 2001-09-19 Jakub Jelinek <jakub@redhat.com>
6190 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
6191 difference between base address and first PT_LOAD's virtual address,
6192 not the base address.
6194 2001-09-11 Tom Rix <trix@redhat.com>
6196 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
6197 ifdef for __getopt_clean_environment.
6198 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
6200 2001-09-22 Andreas Jaeger <aj@suse.de>
6202 * elf/reldep4.c (main): Add proper prototype to fix warning.
6204 * elf/reldep5.c (main): Remove unused variable.
6206 * math/math_private.h: Add prototypes.
6208 2001-09-21 Andreas Jaeger <aj@suse.de>
6210 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
6211 * sysdeps/x86_64/Dist: New file.
6212 * sysdeps/x86_64/soft-fp/Dist: New file.
6214 * sysdeps/gnu/Dist: Remove eval.c.
6216 2001-09-20 Ulrich Drepper <drepper@redhat.com>
6218 * malloc/memusage.c (realloc): Don't count already allocated
6220 (me): Always use dlsym() to find the real implementations.
6222 * malloc/memusage.sh: Make -n option actually do something.
6224 2001-09-20 Andreas Jaeger <aj@suse.de>
6226 * elf/elf.h (R_390_NUM): Correct value.
6228 * Versions.def: Add missing versions 2.2.3 for libthread_db and
6231 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
6232 for x86-64, install x86-64 into */lib64.
6234 * shlib-versions: Add x86-64.
6236 * elf/elf.h: Add x86-64 relocations.
6238 2001-09-19 Ulrich Drepper <drepper@redhat.com>
6240 * po/fr.po: Update from translation team.
6242 2001-09-19 Andreas Jaeger <aj@suse.de>
6244 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6245 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
6246 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
6247 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
6248 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
6249 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
6250 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
6251 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
6252 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
6253 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6254 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
6255 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
6256 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
6257 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
6258 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
6259 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
6260 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
6261 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
6262 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
6263 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
6264 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
6265 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
6266 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
6267 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
6268 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
6269 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
6270 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
6271 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
6272 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
6273 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
6274 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
6275 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
6276 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
6277 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
6278 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
6279 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
6280 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
6281 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
6282 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
6283 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
6284 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
6285 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
6286 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
6287 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
6288 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
6289 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
6290 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
6291 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
6292 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
6293 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
6294 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
6295 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6296 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
6297 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
6298 * sysdeps/unix/x86_64/sysdep.S: New file.
6299 * sysdeps/unix/x86_64/sysdep.h: New file.
6300 * sysdeps/x86_64/Implies: New file.
6301 * sysdeps/x86_64/Makefile: New file.
6302 * sysdeps/x86_64/Versions: New file.
6303 * sysdeps/x86_64/__longjmp.S: New file.
6304 * sysdeps/x86_64/abort-instr.h: New file.
6305 * sysdeps/x86_64/atomicity.h: New file.
6306 * sysdeps/x86_64/bits/endian.h: New file.
6307 * sysdeps/x86_64/bits/setjmp.h: New file.
6308 * sysdeps/x86_64/bits/string.h: New file.
6309 * sysdeps/x86_64/bp-asm.h: New file.
6310 * sysdeps/x86_64/bsd-_setjmp.S: New file.
6311 * sysdeps/x86_64/bsd-setjmp.S: New file.
6312 * sysdeps/x86_64/dl-machine.h: New file.
6313 * sysdeps/x86_64/elf/initfini.c: New file.
6314 * sysdeps/x86_64/elf/start.S: New file.
6315 * sysdeps/x86_64/ffs.c: New file.
6316 * sysdeps/x86_64/ffsll.c: New file.
6317 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
6318 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
6319 * sysdeps/x86_64/fpu/e_acosl.c: New file.
6320 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
6321 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
6322 * sysdeps/x86_64/fpu/e_expl.c: New file.
6323 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
6324 * sysdeps/x86_64/fpu/e_log10l.S: New file.
6325 * sysdeps/x86_64/fpu/e_log2l.S: New file.
6326 * sysdeps/x86_64/fpu/e_logl.S: New file.
6327 * sysdeps/x86_64/fpu/e_powl.S: New file.
6328 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
6329 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
6330 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
6331 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
6332 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
6333 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
6334 * sysdeps/x86_64/fpu/fegetenv.c: New file.
6335 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
6336 * sysdeps/x86_64/fpu/fegetround.c: New file.
6337 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
6338 * sysdeps/x86_64/fpu/fesetenv.c: New file.
6339 * sysdeps/x86_64/fpu/fesetround.c: New file.
6340 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
6341 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
6342 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
6343 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
6344 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
6345 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
6346 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
6347 * sysdeps/x86_64/fpu/s_atanl.c: New file.
6348 * sysdeps/x86_64/fpu/s_cosl.S: New file.
6349 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
6350 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
6351 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
6352 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
6353 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
6354 * sysdeps/x86_64/fpu/s_logbl.c: New file.
6355 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
6356 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
6357 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
6358 * sysdeps/x86_64/fpu/s_rintl.c: New file.
6359 * sysdeps/x86_64/fpu/s_significandl.c: New file.
6360 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
6361 * sysdeps/x86_64/fpu/s_sinl.S: New file.
6362 * sysdeps/x86_64/fpu/s_tanl.S: New file.
6363 * sysdeps/x86_64/gmp-mparam.h: New file.
6364 * sysdeps/x86_64/hp-timing.c: New file.
6365 * sysdeps/x86_64/hp-timing.h: New file.
6366 * sysdeps/x86_64/htonl.S: New file.
6367 * sysdeps/x86_64/memusage.h: New file.
6368 * sysdeps/x86_64/setjmp.S: New file.
6369 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
6370 * sysdeps/x86_64/stackinfo.h: New file.
6371 * sysdeps/x86_64/sysdep.h: New file.
6372 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
6374 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
6377 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6379 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
6380 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
6382 2001-09-18 Andreas Schwab <schwab@suse.de>
6384 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
6385 list, now that l_scope is a pointer.
6387 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
6390 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
6392 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
6393 (elf_machine_rela_relative): Add a missing declaration.
6395 2001-09-18 Jakub Jelinek <jakub@redhat.com>
6397 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
6398 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
6399 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
6400 ldd-rewrite scripts.
6402 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6404 * elf/ldd.bash.in: Update copyright message.
6406 2001-09-17 H.J. Lu <hjl@gnu.org>
6408 * hurd/hurdmalloc.c (bcopy): Removed.
6409 (realloc): Replace bcopy with memcpy.
6410 * hurd/path-lookup.c (file_name_path_scan): Likewise.
6411 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
6412 * sunrpc/rpcinfo.c (pmapdump): Likewise.
6414 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
6415 (gethostbyaddr): Likewise.
6416 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
6418 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6420 * sysdeps/gnu/eval.c: Removed.
6422 2001-09-18 Andreas Jaeger <aj@suse.de>
6424 * sysdeps/i386/fpu/s_logbl.S: Move to ...
6425 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
6427 * sysdeps/i386/fpu/s_rintl.S: Move to ...
6428 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
6430 * sysdeps/i386/fpu/s_significandl.S: Move to ...
6431 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
6433 2001-09-16 Ulrich Drepper <drepper@redhat.com>
6435 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6438 2001-09-14 H.J. Lu <hjl@gnu.org>
6440 * sysdeps/mips/fpu/libm-test-ulps: Updated.
6442 2001-09-14 Ulrich Drepper <drepper@redhat.com>
6444 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
6445 Patch by Florian La Roche <laroche@redhat.com>.
6447 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
6449 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
6452 2001-09-14 Andreas Schwab <schwab@suse.de>
6454 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
6455 Sumner <bls@sgi.com>.
6456 * posix/execlp.c: Likewise.
6458 2001-09-13 Jakub Jelinek <jakub@redhat.com>
6460 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
6461 is already found earlier in the search scope.
6463 2001-09-12 Jakub Jelinek <jakub@redhat.com>
6465 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
6468 2001-09-13 Ulrich Drepper <drepper@redhat.com>
6470 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
6472 2001-09-12 Ulrich Drepper <drepper@redhat.com>
6474 * config.h.in: Enforce optimization to be used.
6475 * Makeconfig (preprocess-versions): Define ASSEMBLER.
6476 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
6477 * posix/Makefile (annexc-CFLAGS): Define to -O.
6478 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
6480 2001-09-11 Ulrich Drepper <drepper@redhat.com>
6482 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
6483 Patch by Stephan Kulow.
6485 2001-09-08 Ben Collins <bcollins@debian.org>
6487 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
6488 usage of RESOLVE() (r_type, not reloc->r_type).
6490 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6492 * elf/dl-object.c: Avoid allocating extra memory block for name.
6493 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
6494 allocated separately.
6495 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6497 2001-09-08 H.J. Lu <hjl@gnu.org>
6499 * po/zh_TW.po: Fix a typo.
6501 2001-09-07 Tom Rix <trix@redhat.com>
6503 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
6505 2001-08-26 Tom Rix <trix@redhat.com>
6507 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
6508 command line options.
6509 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
6510 * sysdeps/unix/sysv/aix/start.c: Removed.
6511 * sysdeps/unix/sysv/aix/start-libc.c: New file.
6512 * sysdeps/unix/sysv/aix/init-first.c: New file.
6513 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
6515 2001-09-08 Ben Collins <bcollins@debian.org>
6517 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
6518 * sysdeps/generic/dl-machine.h: Likewise.
6519 * sysdeps/hppa/dl-fptr.c: Likewise.
6520 * sysdeps/ia64/dl-fptr.c: Likewise.
6521 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6522 * sysdeps/mips/dl-machine.h: Likewise.
6523 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6524 * sysdeps/powerpc/dl-machine.c: Likewise.
6526 2001-09-07 Ben Collins <bcollins@debian.org>
6528 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
6530 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
6532 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6534 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
6535 dependencies if necessary.
6537 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
6538 loaded directly) determine length if l_initfini list by iterating
6539 over its elements. Minor optimizations.
6540 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
6541 for dependency objects.
6542 If object was already loaded check whether any of the dependencies
6543 is already on the relocation dependency list. If yes, remove the
6544 latter. Minor optimizations.
6545 * elf/dl-lookup.c (add_dependency): Add check for self reference of
6546 maps here. Search l_initfini list only if the object was loaded
6547 directly and not only as a dependency.
6548 (_dl_lookup_symbol): Add relocation dependency also if object
6549 is not in global scope. Remove test for self-reference here.
6550 (_dl_lookup_versioned_symbol): Likewise.
6551 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
6552 element of first name record.
6553 * elf/loadtest.c: Add some more test to recognize early if an object
6555 * elf/Makefile: Add rules to build and run reldep5.
6556 * elf/reldep5.c: New file.
6557 * elf/reldepmod5.c: New file.
6558 * elf/reldepmod6.c: New file.
6560 * elf/reldep2.c: Fix typo.
6562 2001-09-07 Ulrich Drepper <drepper@redhat.com>
6564 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
6565 elements. Change l_scope to be a pointer only.
6566 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
6567 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
6568 here add searchlist of newly open file to the dependency's scope.
6569 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
6570 only searchlist from its scope. Free own scope array if necessary.
6571 * elf/Makefile (tests): Add dblload and dblunload now.
6573 2001-09-06 Andreas Jaeger <aj@suse.de>
6575 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
6578 2001-09-05 Ulrich Drepper <drepper@redhat.com>
6580 * elf/Makefile: Add rules to build new tests. Don't run them yet since
6582 * elf/dblload.c: New file.
6583 * elf/dblloadmod1.c: New file.
6584 * elf/dblloadmod2.c: New file.
6585 * elf/dblloadmod3.c: New file.
6586 * elf/dblunload.c: New file.
6588 2001-09-04 Richard Henderson <rth@redhat.com>
6590 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
6591 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
6593 2001-09-04 Ulrich Drepper <drepper@redhat.com>
6595 Correct very misleading message for error in failed runtime relocation.
6596 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
6598 (_dl_signal_cerror): Likewise.
6599 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6600 * elf/dl-close.c: Likewise.
6601 * elf/dl-deps.c: Likewise.
6602 * elf/dl-load.c: Likewise.
6603 * elf/dl-lookup.c: Likewise.
6604 * elf/dl-open.c: Likewise.
6605 * elf/dl-reloc.c: Likewise.
6606 * elf/dl-sym.c: Likewise.
6607 * elf/dl-version.c: Likewise.
6608 * sysdeps/generic/dl-sysdep.c: Likewise.
6610 2001-09-04 Jakub Jelinek <jakub@redhat.com>
6612 * iconv/strtab.c (strtabinit): Initialize null Strent.
6613 (newstring): Move len == 0 handling...
6614 (strtabadd): ...here.
6615 If len == 1, return null Strent.
6616 When inserting a suffix of an existing string, check if
6617 it is not equal to some suffix already recorded.
6618 Copy left and right members over if adding longer string.
6620 2001-09-04 Jakub Jelinek <jakub@redhat.com>
6622 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
6624 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
6625 (__syscall_gethostname): Add prototype.
6627 2001-09-04 Ulrich Drepper <drepper@redhat.com>
6629 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
6631 2001-09-02 Ulrich Drepper <drepper@redhat.com>
6633 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
6635 2001-08-27 Roland McGrath <roland@frob.com>
6637 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
6638 short, copy that much into NAME anyway before returning error.
6640 2001-09-01 Richard Henderson <rth@redhat.com>
6642 * sysdeps/alpha/elf/Dist: Remove file.
6643 * sysdeps/alpha/elf/Makefile: Remove file.
6644 * sysdeps/alpha/elf/crtbegin.S: Remove file.
6645 * sysdeps/alpha/elf/crtend.S: Remove file.
6646 * sysdeps/alpha/elf/initfini.c: New file.
6648 2001-09-01 Mark Kettenis <kettenis@gnu.org>
6650 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
6651 * iconv/tst-iconv3.c: Likewise.
6653 2001-09-01 Jakub Jelinek <jakub@redhat.com>
6655 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
6657 2001-09-01 Ulrich Drepper <drepper@redhat.com>
6659 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
6661 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
6662 * iconv/iconv_prog.c (insert_cache): New function.
6663 (print_known_names): If cache is used call insert_cache to use the
6664 information from the cache [PR libc/2509].
6666 2001-08-31 Ulrich Drepper <drepper@redhat.com>
6668 * time/strptime.c (strptime_internal): Recognize 'l' format and
6669 handle it like 'I' for symmetry with strftime.
6671 2001-08-31 Richard Henderson <rth@redhat.com>
6673 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
6674 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
6675 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
6676 (print_statistics): Make scalar unsigned long long.
6677 * sysdeps/alpha/hp-timing.h: New file.
6679 2001-08-31 Jakub Jelinek <jakub@redhat.com>
6681 * stdio-common/perror.c (perror): Save errno early, pass it
6682 down to perror_internal.
6683 (perror_internal): Add errnum argument.
6685 2001-08-31 Jakub Jelinek <jakub@redhat.com>
6687 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
6688 Don't add old memory content for R_ALPHA_REFQUAD.
6690 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6692 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
6695 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
6696 instead of open, __close instead of close, __getpagesize instead
6699 * string/argz-stringify.c (__argz_stringify): Use __strnlen
6701 * include/string.h (strndupa): Redefine here to use __strnlen
6703 * string/strndup.c (__strndup): Use __strnlen not strnlen.
6705 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
6708 2001-08-30 Jakub Jelinek <jakub@redhat.com>
6710 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
6711 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
6712 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
6713 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
6714 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
6715 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
6716 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
6718 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6720 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
6722 2001-08-30 Andreas Jaeger <aj@suse.de>
6724 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
6725 contributed Stephen L Moshier.
6727 2001-08-30 Jakub Jelinek <jakub@redhat.com>
6729 * sunrpc/etc.rpc (sgi_fam): Add.
6731 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6733 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
6735 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6737 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
6738 first is from a previous call.
6739 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
6741 2001-08-29 Andreas Schwab <schwab@suse.de>
6743 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
6745 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6747 * config.make.in (INSTALL_SCRIPT): Define.
6748 * Makeconfig (INSTALL_SCRIPT): Define.
6749 * Makerules (do-install-script): New macro to install scripts using
6751 (install-bin-script): New rule to install scripts with
6753 (install-bin-script-nosubdir): New rule.
6754 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
6755 (distinfo-vars): Add $(install-bin-script).
6756 * Rules (others): Likewise.
6757 * Makefile (glibcbug): Install with install-bin-script.
6758 * debug/Makefile (xtrace): Likewise.
6759 (catchsegv): Likewise.
6760 * elf/Makefile (ldd): Likewise.
6761 * malloc/Makefile (mtrace): Likewise.
6762 * timezone/Makefile (tzselect): Likewise.
6764 2001-08-29 H.J. Lu <hjl@gnu.org>
6766 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
6767 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
6768 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
6770 2001-08-29 Andreas Schwab <schwab@suse.de>
6772 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
6774 2001-08-28 H.J. Lu <hjl@gnu.org>
6776 * Makeconfig (combreloc-LDFLAGS): New variable.
6777 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
6778 * config.make.in (have-z-combreloc): New variable.
6779 * configure.in: Substitute libc_cv_z_combreloc.
6781 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6783 * po/sv.po: Update from translation team.
6784 * po/fr.po: Likewise.
6785 * po/da.po: Likewise.
6787 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6789 * Makerules: Fix a typo: MD% -> MD5.
6791 2001-08-28 Ulrich Drepper <drepper@redhat.com>
6793 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
6794 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
6796 2001-08-28 Andreas Jaeger <aj@suse.de>
6798 * manual/libc-texinfo.sh: Add entry about free manuals.
6800 * manual/contrib.texi (Contributors): Fix cross reference.
6802 * manual/libc.texinfo (Copying): Include freemanuals.
6804 * manual/Makefile (appendices): Add freemanuals.
6806 * manual/freemanuals.texi: New file.
6807 Patch by Brian Youmans <3diff@gnu.org>.
6809 * manual/libm-err-tab.pl: Pretty print more platforms, print a
6812 * manual/math.texi (Errors in Math Functions): Fix grammar, start
6813 table on separate page.
6814 Patch by Brian Youmans <3diff@gnu.org>.
6816 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6818 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
6819 the connection went down after we first used it try to connect
6820 again and resend the message before printing to the console.
6821 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
6823 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6825 * string/tst-strlen.c (main): Test strnlen (, -1) too.
6826 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
6829 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6831 * iconv/strtab.c (searchstring): Use correct length for comparison.
6832 (strtabadd): Account total size correct if new string has old string as
6835 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6837 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
6839 2001-08-27 Andreas Jaeger <aj@suse.de>
6841 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
6843 * math/libm-test.inc (j0_test): Add extra tests.
6844 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
6845 not x, in Hankel approximation.
6846 Patches by Stephen L Moshier.
6848 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6850 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
6853 * configure.in: Fix test for .rela.dyn section.
6855 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
6857 2001-08-26 Jakub Jelinek <jakub@redhat.com>
6859 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
6860 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
6861 Pass type_class to _dl_lookup_*.
6862 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
6863 Pass around just type_class instead of noexec, noplt pair.
6864 (_dl_lookup_versioned_symbol): Likewise.
6865 (_dl_lookup_symbol_skip): Pass around just type_class instead of
6867 (_dl_lookup_versioned_symbol_skip): Likewise.
6868 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
6869 * elf/do-lookup.h (do_lookup): Likewise.
6870 * include/link.h (struct link_map): Replace noexec and noplt fields
6871 in l_lookup_cache with type_class field.
6872 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
6873 ELF_RTYPE_CLASS_COPY): Define.
6874 Adjust prototypes for _dl_lookup_symbol and
6875 _dl_lookup_versioned_symbol.
6876 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
6877 elf_machine_lookup_noexec_p): Remove.
6878 (elf_machine_type_class): Define.
6879 * sysdeps/arm/dl-machine.h: Likewise.
6880 * sysdeps/hppa/dl-machine.h: Likewise.
6881 * sysdeps/cris/dl-machine.h: Likewise.
6882 * sysdeps/i386/dl-machine.h: Likewise.
6883 * sysdeps/ia64/dl-machine.h: Likewise.
6884 * sysdeps/m68k/dl-machine.h: Likewise.
6885 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6886 * sysdeps/mips/dl-machine.h: Likewise.
6887 * sysdeps/powerpc/dl-machine.h: Likewise.
6888 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6889 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6890 * sysdeps/sh/dl-machine.h: Likewise.
6891 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6892 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6894 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6896 * manual/message.texi (Advanced gettext functions): Change
6897 description of plural forms for Slovak.
6898 Reported by Marcel Telka <marcel@telka.sk>.
6900 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
6901 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
6903 2001-08-26 Jakub Jelinek <jakub@redhat.com>
6905 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
6906 typo. Patch by Florian La Roche <laroche@redhat.com>.
6908 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6910 * include/link.h (struct link_map): Add l_lookup_cache element.
6911 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
6912 (RESOLVE_MAP): Likewise.
6913 (_dl_relocate_object): Remove cache initialization.
6914 * elf/dl-lookup.c: Rip out cache handling code.
6915 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
6918 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
6919 remove some __builtin_expect.
6920 (_dl_lookup_versioned_symbol): Likewise.
6922 * config.h.in: Add HAVE_Z_COMBRELOC.
6923 * configure.in: Add test for -z combreloc.
6925 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
6926 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
6927 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
6928 case to almost no code.
6930 2001-08-25 Ulrich Drepper <drepper@redhat.com>
6932 * po/tr.po: Update from translation team.
6934 2001-08-24 Andreas Jaeger <aj@suse.de>
6936 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
6939 2001-08-24 Ulrich Drepper <drepper@redhat.com>
6941 * elf/rtld.c (print_statistics): Printf % after percent values.
6942 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
6944 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
6945 don't have to compute the hash value and initialize current_value.
6946 Move reference_name variable to where it is needed.
6947 (_dl_lookup_versioned_symbol): Likewise.
6949 2001-08-24 Roland McGrath <roland@frob.com>
6951 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
6952 Just test that strerror returns non-null for a few errno codes.
6954 2001-08-23 Roland McGrath <roland@frob.com>
6956 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
6957 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
6959 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
6961 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
6964 2001-08-24 Ulrich Drepper <drepper@redhat.com>
6966 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
6969 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
6970 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
6972 * elf/rtld.c: Include <sys/param.h>.
6973 * elf/dl-reloc.c: Likewise.
6975 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6977 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
6978 empty to prevent junk from being generated.
6979 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
6981 2001-08-24 Jakub Jelinek <jakub@redhat.com>
6983 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
6984 records. Rename endrel to relative, initialize it to r, and use it
6985 in elf_machine_rel_relative calls. Point r after relative relocs.
6987 2001-08-24 Ulrich Drepper <drepper@redhat.com>
6989 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
6992 2001-08-24 Jakub Jelinek <jakub@redhat.com>
6994 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
6995 necessary. Undefine newly defined macros at the end.
6996 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
6997 Rename from elf_machine_rel_relative.
6998 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
6999 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7000 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7001 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7003 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7005 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7007 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7009 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7010 Likewise. Fix argument types.
7011 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7012 Likewise. Fix argument types.
7013 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7015 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7016 ElfW(Rel) in argument.
7017 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7020 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
7022 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7024 2001-08-24 Andreas Jaeger <aj@suse.de>
7026 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7027 Stephen L Moshier <moshier@mediaone.net>.
7029 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7031 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7032 first if RELCOUNT is set.
7034 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7035 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7036 elf_machine_rel_relative.
7037 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7038 Minor optimizations.
7039 * sysdeps/arm/dl-machine.h: Likewise.
7040 * sysdeps/cris/dl-machine.h: Likewise.
7041 * sysdeps/hppa/dl-machine.h: Likewise.
7042 * sysdeps/i386/dl-machine.h: Likewise.
7043 * sysdeps/ia64/dl-machine.h: Likewise.
7044 * sysdeps/m68k/dl-machine.h: Likewise.
7045 * sysdeps/mips/dl-machine.h: Likewise.
7046 * sysdeps/powerpc/dl-machine.h: Likewise.
7047 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7048 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7049 * sysdeps/sh/dl-machine.h: Likewise.
7050 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7051 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7053 2001-08-23 Roland McGrath <roland@frob.com>
7055 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7057 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7058 sysdeps/mach version. Implement counting ("recursive") mutexes
7059 on top of cthreads mutexes.
7060 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7062 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7063 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7064 (__libc_cleanup_region_start, __libc_cleanup_region_end,
7065 __libc_clean_end): Define these to call the cleanup function after
7066 normal exit when they're supposed to.
7068 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7069 Take new first arg DOIT, a boolean saying whether to really install
7070 any cleanup handler.
7071 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7072 (__libc_cleanup_end): Likewise.
7073 * sysdeps/generic/bits/libc-lock.h: Same changes.
7074 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7075 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7076 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7078 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7079 * sysdeps/generic/bits/stdio-lock.h
7080 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7082 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7084 * elf/ldconfig.c (search_dir): Remove stale symlinks.
7086 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7088 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7089 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7091 (_dl_lookup_versioned_symbol): Likewise.
7092 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7094 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7095 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7096 (lookup_cache, lookup_cache_versioned): Add declarations.
7098 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7100 * stdlib/tst-random.c (main): Swap parameters in fail call.
7101 Patch by Pete Bevin <pete@petebevin.com>.
7103 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7105 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7107 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7109 * malloc/obstack.c: Indent preprocessor directives.
7110 Patch by Jim Meyering <meyering@ascend.com>.
7112 * po/ja.po: Update from translation team.
7114 2001-08-23 Roland McGrath <roland@frob.com>
7116 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
7118 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
7119 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
7121 2001-08-22 Roland McGrath <roland@frob.com>
7123 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
7124 __libc_lock_define_recursive.
7125 * elf/dl-open.c: Don't declare it here any more.
7126 * elf/dl-close.c: Likewise.
7127 * elf/dl-lookup.c: Likewise.
7128 * elf/dl-iteratephdr.c: Likewise.
7129 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
7130 __libc_lock_unlock_recursive.
7131 * elf/dl-close.c (_dl_close): Likewise
7132 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
7133 * elf/dl-open.c (_dl_open): Likewise
7135 * sysdeps/generic/bits/libc-lock.h
7136 (__libc_lock_define_recursive): New macro.
7137 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
7138 (_IO_lock_lock): Use __libc_lock_lock_recursive.
7139 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
7141 * conform/conformtest.pl (checknamespace): Sort the output list.
7143 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
7144 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
7145 definitions conditional on [__USE_XOPEN].
7147 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
7148 these unconditionally, not only use [__USE_BSD], so as to match
7149 the sysdeps/unix/sysv/linux files.
7151 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7153 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
7156 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
7159 2001-08-22 Roland McGrath <roland@frob.com>
7161 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
7162 conditionalization of sa_handler/sa_sigaction member types to
7163 match the sysdeps/unix/sysv/linux file.
7165 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7167 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
7168 symbol sizes a bit better.
7170 * sysdeps/ia64/strncpy.S: Complete rewrite.
7171 Contributed by Jakub Jelinek <jakub@redhat.com>.
7173 * string/stratcliff.c (main): Add strncpy test.
7175 2001-08-22 Roland McGrath <roland@frob.com>
7177 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
7178 and don't declare unsetenv or _environ directly.
7179 (unsetenv): Return int, not void. Use __environ instead of _environ.
7181 2001-08-01 Mark Kettenis <kettenis@gnu.org>
7183 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
7184 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
7185 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
7186 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7187 test for cmsg struct size.
7189 2001-04-23 Paul Eggert <eggert@twinsun.com>
7191 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
7192 Rename __argc to ___argc in prototypes to avoid compatibility
7193 problems with systems that reserve the identifier "__argc".
7194 Similarly for __argv.
7196 2001-08-21 Roland McGrath <roland@frob.com>
7198 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
7200 * mach/Makefile (tests): Removed.
7201 * mach/hello.c: File removed.
7203 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7205 * po/sv.po: Update from translation team.
7207 * stdio-common/vfscanf.c: Fix handling of %l[].
7208 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
7210 * libio/Makefile (tests): Add tst-sscanf.
7211 * libio/tst-sscanf.c: New file.
7213 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
7214 * malloc/mtrace.c (tr_where): dli_sname always points to a
7215 non-empty string if != NULL.
7216 Reported by Tim Janik <timj@gtk.org>.
7218 2001-08-22 Jakub Jelinek <jakub@redhat.com>
7220 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
7221 buf. Free resources on failure.
7222 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
7223 (makefd_xprt): Likewise.
7224 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7225 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
7226 * sunrpc/auth_unix.c (authunix_create): Likewise.
7228 2001-08-21 Jakub Jelinek <jakub@redhat.com>
7230 * string/strnlen.c: Remove.
7231 * sysdeps/generic/strnlen.c: New file.
7232 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
7234 2001-08-21 Roland McGrath <roland@frob.com>
7236 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
7237 as a macro, not an extern inline function.
7239 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
7240 * Versions.def (libc): Add GLIBC_2.2.5 set.
7241 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
7242 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
7244 2001-08-20 Roland McGrath <roland@frob.com>
7246 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
7247 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
7249 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7251 * string/bits/string2.h: Remove strnlen optimization here.
7252 * sysdeps/i386/i486/bits/string.h: Add it here.
7254 2001-08-21 Wolfram Gloger <wg@malloc.de>
7256 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
7258 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7260 * po/gl.po: Update from translation team.
7262 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7264 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
7265 * misc/err.c (convert_and_print): Likewise.
7267 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
7270 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7272 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
7273 change of the gregset_t type.
7274 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7276 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
7278 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
7280 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7282 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
7284 * string/strnlen.c: Fix the implementation. We cannot use memchr.
7286 2001-08-18 Mark Kettenis <kettenis@gnu.org>
7288 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
7289 before calling the cthreads initialization code.
7291 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7293 * argp/argp-help.c: Fix two problems introduced in last change.
7295 * include/dirent.h: Include <dirstream.h> first.
7297 2001-08-19 Ulrich Drepper <drepper@redhat.com>
7299 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
7301 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
7302 * sunrpc/xdr_rec.c: Likewise.
7303 * sunrpc/xdr_mem.c: Likewise.
7304 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
7305 * sunrpc/rpc_cmsg.c: Likewise.
7306 * sunrpc/getrpcport.c (getrpcport): Likewise.
7307 * sunrpc/clnt_simp.c (callrpc): Likewise.
7308 * sunrpc/clnt_gen.c (clnt_create): Likewise.
7309 * string/envz.c: Likewise.
7311 * po/ko.po: Update from translation team.
7313 * argp/argp-help.c: Handle wide oriented stderr stream.
7315 2001-08-18 Ulrich Drepper <drepper@redhat.com>
7317 * sysdeps/generic/strtol.c: Little optimizations. Add some
7320 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
7322 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
7323 * wcsmbs/wcwidth.c (wcwdith): Likewise.
7324 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
7326 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
7328 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
7330 * time/time.h (struct timespec): Use __time_t for tv_sec element.
7332 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
7333 wchar_t for function declarations and defintions.
7335 * misc/sys/select.h: Define __need_time_t before including <time.h>.
7336 Define suseconds_t if it hasn't happened yet.
7338 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
7340 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
7342 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
7345 * conform/data/stddef.h-data: Remove wint_t.
7347 * conform/conformtest.pl: Change namespace test to take #undef
7350 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
7352 * conform/data/sys/socket.h-data: Add sockatmark.
7354 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7356 * io/fts.c: Update from recent BSD source.
7358 2001-08-17 Roland McGrath <roland@frob.com>
7360 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
7361 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
7364 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7366 * locale/duplocale.c (__duplocale): Also initialize the special
7369 * conform/data/netdb.h-data: Adjust gai_strerror return type.
7371 2001-08-17 Andreas Jaeger <aj@suse.de>
7373 * misc/getpass.c: Include wchar.h for prototypes.
7374 * malloc/obstack.c: Likewise.
7376 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7378 * sunrpc/svc_simple.c (universal): Use __write instead of write.
7380 * wcsmbs/wcscoll.c: Also define __wcscoll.
7381 * include/wchar.h: Declare __wcscoll.
7383 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
7384 * libio/vwprintf.c: Likewise.
7385 * libio/wprintf.c: Likewise.
7387 * iconv/gconv_cache.c: Use __munmap instead of munmap.
7389 2001-08-16 Ulrich Drepper <drepper@redhat.com>
7391 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
7393 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
7394 wcslen, and __wcscoll instead of wcscoll.
7396 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
7398 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
7399 __getuid instead of getuid.
7401 * stdio-common/perror.c (perror): Use __close instead of close.
7402 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7403 * libio/freopen.c (freopen): Likewise.
7404 * libio/freopen64.c (freopen64): Likewise.
7406 * libio/tst-ungetwc2.c (main): Define str const.
7408 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
7409 * libio/fwprintf.c: Also define __fwprintf.
7410 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
7411 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
7412 * assert/assert-perr.c: Likewise.
7413 * assert/assert.c: Likewise.
7414 * gmon/gmon.c: Likewise.
7415 * inet/rcmd.c: Likewise.
7416 * malloc/obstack.c: Likewise.
7417 * misc/err.c: Likewise.
7418 * misc/error.c: Likewise.
7419 * misc/getpass.c: Likewise.
7420 * posix/getopt.c: Likewise.
7421 * resolv/res_hconf.c: Likewise.
7422 * stdio-common/perror.c: Likewise.
7423 * stdio-common/psignal.c: Likewise.
7424 * stdlib/fmtmsg.c: Likewise.
7425 * sunrpc/auth_unix.c: Likewise.
7426 * sunrpc/clnt_perr.c: Likewise.
7427 * sunrpc/clnt_tcp.c: Likewise.
7428 * sunrpc/clnt_udp.c: Likewise.
7429 * sunrpc/clnt_unix.c: Likewise.
7430 * sunrpc/svc_simple.c: Likewise.
7431 * sunrpc/svc_tcp.c: Likewise.
7432 * sunrpc/svc_udp.c: Likewise.
7433 * sunrpc/svc_unix.c: Likewise.
7434 * sunrpc/xdr.c: Likewise.
7435 * sunrpc/xdr_array.c: Likewise.
7436 * sunrpc/xdr_rec.c: Likewise.
7437 * sunrpc/xdr_ref.c: Likewise.
7438 * sysdeps/generic/wordexp.c: Likewise.
7440 * po/it.po: Update from translation team.
7442 * misc/err.c: Handle wide oriented stderr stream.
7444 2001-08-14 Tom Rix <trix@redhat.com>
7446 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
7447 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
7449 2001-08-13 Tom Rix <trix@redhat.com>
7451 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
7452 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
7455 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
7457 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
7458 Store the access registers to the ucontext structure.
7459 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
7462 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
7463 Load the access registers from the ucontext structure.
7464 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
7467 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
7468 offsets to the new ucontext layout.
7469 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
7471 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
7472 of the ucontext structure.
7473 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7475 2001-08-15 Ulrich Drepper <drepper@redhat.com>
7477 * misc/error.c (error): Handle wide oriented stderr stream correctly.
7478 (error_at_line): Likewise.
7480 * stdio-common/perror.c (perror): Implement according to standard.
7481 The stream orientation must not be changed if the stream was not
7482 oriented before the call.
7483 * stdio-common/Makefile (tests): Add tst-perror.
7484 * stdio-common/tst-perror.c: New file.
7487 See ChangeLog.12 for earlier changes.