1 2002-06-13 Andreas Schwab <schwab@suse.de>
3 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6 2002-06-12 Roland McGrath <roland@frob.com>
8 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
10 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
11 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
13 2002-06-11 Roland McGrath <roland@frob.com>
15 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
16 file on [!RTLD_STAT64].
17 * sysdeps/mach/hurd/fxstat64.c: Likewise.
19 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
20 (__fdopen): Use INTUSE.
21 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
23 * stdio-common/tmpfile64.c: File removed.
24 * sysdeps/generic/tmpfile64.c: New file.
25 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
26 if not already defined.
27 (tmpfile): Use it in place of __GT_FILE.
29 * include/unistd.h: Declare __chown_internal.
31 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
32 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
34 2002-06-09 Roland McGrath <roland@frob.com>
36 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
37 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
38 value of HURD_INTERFACE_VERSION >= 20020609.
39 * sysdeps/mach/hurd/configure: Regenerated.
40 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
41 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
42 convert a struct stat64 into a struct stat and return 0 or -1
43 with errno set to EOVERFLOW.
44 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
45 for struct statfs64 to struct statfs.
46 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
47 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
48 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
49 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
50 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
51 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
52 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
53 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
54 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
55 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
56 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
57 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
58 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
59 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
60 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
61 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
62 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
63 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
64 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
65 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
66 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
67 Use struct stat64 for io_stat argument.
68 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
69 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
71 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
72 * hurd/fd-write.c (_hurd_fd_write): Likewise.
73 * hurd/hurd/fd.h: Update decls.
74 * sysdeps/mach/hurd/getcwd.c
75 (_hurd_canonicalize_directory_name_internal): Use ino64_t
77 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
78 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
79 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
80 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
82 2002-06-08 Roland McGrath <roland@frob.com>
84 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
85 instead of unsigned long int for __allocation and __size members.
87 2002-06-09 Jakub Jelinek <jakub@redhat.com>
89 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
90 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
91 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
92 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
94 2002-06-07 Roland McGrath <roland@frob.com>
96 * sysdeps/mach/hurd/bits/environments.h: File removed.
98 2002-06-07 Jakub Jelinek <jakub@redhat.com>
100 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New.
101 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New.
102 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New.
103 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New.
104 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
105 (sendfile64): Likewise.
106 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
107 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
108 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
110 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
112 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
115 2002-06-04 Bruno Haible <bruno@clisp.org>
117 * sysdeps/cris/stackinfo.h: New file.
119 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
120 to an integer type before performing bit operations on it.
122 2002-06-05 Roland McGrath <roland@frob.com>
124 * sysdeps/generic/sendfile.c: Include <errno.h>.
125 * sysdeps/generic/sendfile64.c: Likewise.
127 * io/Makefile (routines): Add sendfile and sendfile64.
128 (headers): Add sys/sendfile.h to the list.
129 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
130 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
131 * io/sys/sendfile.h: ... here.
132 * sysdeps/generic/sendfile.c: New file.
133 * sysdeps/generic/sendfile64.c: New file.
135 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
136 Move sendfile, sendfile64 to ...
137 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
138 * sysdeps/mach/hurd/sendfile.c: New file.
139 * sysdeps/mach/hurd/sendfile64.c: New file.
141 * sysdeps/mach/nanosleep.c: New file.
143 2002-06-04 Roland McGrath <roland@frob.com>
145 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
146 * sysdeps/alpha/elf/configure: New file (generated).
148 2002-06-02 Roland McGrath <roland@frob.com>
150 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
152 2002-06-01 Roland McGrath <roland@frob.com>
154 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
155 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
157 2002-05-19 Ulrich Drepper <drepper@redhat.com>
159 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
161 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
162 Remove nstimes setting.
163 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
164 * resolv/res_send.c (res_nsend): Don't close unconditionally if
165 there is mix of IPv6 and IPv4 nameservers.
166 Use nsmap array to find free slots and preserve nameserver ordering.
169 2002-05-30 Ulrich Drepper <drepper@redhat.com>
171 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
172 use this header with LFS.
174 * po/sk.po: Update from translation team.
176 2002-05-28 Andreas Schwab <schwab@suse.de>
178 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
179 message when finding object of wrong class.
181 2002-05-28 Jakub Jelinek <jakub@redhat.com>
183 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
184 Patch by <radu@netsoft.ro>.
186 2002-05-30 Ulrich Drepper <drepper@redhat.com>
188 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
190 * sysdeps/unix/sysv/linux/readahead.c: New file.
191 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
192 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
193 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
194 Add sendfile64 alias to sendfile syscall.
195 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
196 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
197 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
198 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
201 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
202 special section for PIC register loading.
203 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
205 * config.h.in: Define HAVE_HIDDEN.
206 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
208 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
210 2002-05-28 Roland McGrath <roland@frob.com>
212 * sysdeps/mach/alpha/setfpucw.c: New file.
214 2002-05-26 Roland McGrath <roland@frob.com>
216 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
217 Use integer_t instead of int for IOC_VOID case.
219 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
221 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
223 2002-05-26 Bruno Haible <bruno@clisp.org>
225 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
226 end of the ISO-8859-7 from idx table.
228 2002-05-27 Ulrich Drepper <drepper@redhat.com>
230 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
232 2002-05-24 David S. Miller <davem@redhat.com>
234 * string/bits/string2.h (memset): Do not try to optimize when
235 not _STRING_ARCH_unaligned if GCC will do the right thing.
237 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
239 * posix/regex.c: Define `inline' as a macro into nothing for the
240 compilers which lack the keyword.
241 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
242 for the compatibility of gawk.
243 * posix/regcomp.c: Add fake implementation of isblank() for the
244 environments which lack the function.
245 Don't use free_charset() in case of non-i18n envs.
246 (build_range_exp): Don't use i18n related code in case of non-i18n
248 (build_collating_symbol): Likewise.
249 (build_equiv_class): Likewise.
250 (build_charclass): Likewise.
251 (re_compile_fastmap_iter): Likewise.
252 (parse_bracket_exp): Likewise.
253 (build_word_op): Likewise.
254 (regfree): Don't use free_charset() in case of non-i18n envs.
255 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
256 re_token_type_t in case of non-i18n envs.
257 Don't define re_charset_t in case of non-i18n envs.
258 Change the type of wcs of re_string_t from wchar_t to wint_t,
259 since we store also WEOF.
260 * posix/regex_internal.c: (re_string_realloc_buffers): Change
261 the type of wcs of re_string_t from wchar_t to wint_t.
262 (re_string_reconstruct): Likewise.
263 (create_ci_newstate): Don't use i18n related code in case of
265 (create_cd_newstate): Likewise.
267 2002-05-24 Ulrich Drepper <drepper@redhat.com>
269 * iconv/loop.c: Fix typo.
271 2002-05-23 Jakub Jelinek <jakub@redhat.com>
273 * inet/ether_line.c (ether_line): Fix a typo causing only
274 lower 4 bits of each ethernet address byte being assigned.
275 Don't modify what line points to.
276 * inet/tst-ether_aton.c (main): Add ether_line tests.
278 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
280 * manual/filesys.texi: Don't make readlink example leak memory
283 2002-05-20 Ulrich Drepper <drepper@redhat.com>
285 * iconv/loop.c: Fix condition for defining unaligned loop. Add
286 some more security checks.
288 2002-05-17 David S. Miller <davem@redhat.com>
290 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
292 2002-05-16 David S. Miller <davem@redhat.com>
294 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
295 (elf_machine_dynamic): Use it to force PIC register to be loaded.
296 (elf_machine_load_address): Likewise.
297 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
299 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
300 is unaligned, do not forget to fully initialize %g1 magic value.
302 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
303 register definitions and provide 32-bit variants of structures
304 during 64-bit builds.
306 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
307 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
308 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
309 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
310 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
311 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
312 Do not clear implicit one bit here, it must be done post-rounding.
313 Only pad to the left using left shift if value uses less than the
314 available fractional bits.
316 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
318 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
319 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
320 (shared-only-routines): Likewise.
321 * sysdeps/powerpc/libgcc-compat.c: New file.
322 * sysdeps/wordsize-32/cmpdi2.c: Removed.
323 * sysdeps/wordsize-32/fixdfdi.c: Removed.
324 * sysdeps/wordsize-32/fixsfdi.c: Removed.
325 * sysdeps/wordsize-32/shdi3.c: Removed.
327 2002-05-16 Bruno Haible <bruno@clisp.org>
329 * MakeTAGS (libc.pot): Don't sort the output.
330 * po/header.pot: Update to match xgettext 0.11 output.
332 2002-05-16 Bruno Haible <bruno@clisp.org>
334 * MakeTAGS (subdirs): Remove duplicates.
336 2002-05-19 Ulrich Drepper <drepper@redhat.com>
338 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
339 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
342 2002-05-19 Andreas Jaeger <aj@suse.de>
344 * sysdeps/unix/sysv/linux/configure.in: Warn against an
345 installation in /usr/local.
347 2002-05-16 Bruno Haible <bruno@clisp.org>
349 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
350 string as argument of #error.
352 2002-05-15 Ulrich Drepper <drepper@redhat.com>
354 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
355 don't define static. Remove old __realpath function. TC1 of
356 POSIX 2001 will allow the second parameter to be NULL.
357 * stdlib/test-canon.c: Comment out test for NULL as second
358 parameter of realpath.
360 * time/offtime.c (__offtime): Set errno if overflow is detected.
362 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
363 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
366 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
369 2002-05-15 Roland McGrath <roland@frob.com>
371 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
373 2002-05-12 Bruno Haible <bruno@clisp.org>
375 * iconvdata/testdata/EUC-JISX0213: New file.
376 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
377 * iconvdata/testdata/SHIFT_JISX0213: New file.
378 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
379 * iconvdata/testdata/ISO-2022-JP-3: New file.
380 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
381 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
382 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
383 contains comments indicating precomposed characters.
385 2002-04-21 Bruno Haible <bruno@clisp.org>
387 * iconvdata/iso-2022-jp-3.c: New file.
388 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
389 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
390 (LDFLAGS-ISO-2022-JP-3.so): New variable.
391 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
392 (distribute): Add iso-2022-jp-3.c.
394 2002-05-12 Bruno Haible <bruno@clisp.org>
396 * iconvdata/tst-table-to.c (main): Restore handling of
397 transliterations, broken by last patch.
399 2002-05-12 Bruno Haible <bruno@clisp.org>
401 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
403 2002-05-12 Bruno Haible <bruno@clisp.org>
405 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
406 when there is not enough room in the output buffer.
407 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
409 2002-04-20 Bruno Haible <bruno@clisp.org>
411 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
413 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
414 Also make this macro work if FROM_DIRECTION evaluates to 0.
415 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
416 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
417 of consume_incomplete.
418 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
419 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
421 * iconvdata/cp1258.c: Likewise.
422 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
423 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
425 * iconvdata/ibm933.c: Likewise.
426 * iconvdata/ibm935.c: Likewise.
427 * iconvdata/ibm937.c: Likewise.
428 * iconvdata/ibm939.c: Likewise.
429 * iconvdata/iso-2022-cn.c: Define
430 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
431 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
432 * iconvdata/iso-2022-cn-ext.c: Likewise.
433 * iconvdata/iso-2022-jp.c: Define
434 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
435 {MIN,MAX}_NEEDED_{FROM,TO}.
436 * iconvdata/tcvn5712-1.c: Define
437 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
438 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
439 * iconvdata/euc-jisx0213.c: Define
440 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
441 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
442 * iconvdata/shift_jisx0213.c: Likewise.
444 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
446 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
447 shdi3, fixdfdi, fixsfdi in csu dir.
448 (shared-only-routines): Likewise.
449 * sysdeps/wordsize-32/cmpdi2.c: New file.
450 * sysdeps/wordsize-32/shdi3.c: New file.
451 * sysdeps/wordsize-32/fixdfdi.c: New file.
452 * sysdeps/wordsize-32/fixsfdi.c: New file.
453 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
454 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
455 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
457 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
458 Only use va_arg if the argument will be used [PR libc/3259].
460 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
462 * catgets/catgets.c (catopen): Free buffer if internal catalog
465 2002-05-14 Ulrich Drepper <drepper@redhat.com>
467 * debug/xtrace.sh: Make more robust. For realtime tracking use
468 non-buffering methods.
469 * debug/pcprofiledump.c: Implement -u option.
470 Patch by Roger Luethi <rl@hellgate.ch>.
472 2002-05-11 Jakub Jelinek <jakub@redhat.com>
474 * include/netinet/in.h (bindresvport_internal): Add prototype.
475 * include/rpc/auth.h (authunix_create_internal,
476 authunix_create_default_internal, authnone_create_internal,
477 authdes_pk_create_internal): Add prototypes.
478 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
479 clntudp_create_internal, clntudp_bufcreate_internal,
480 clntunix_create_internal): Add prototypes.
481 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
482 svc_getreq_internal, svc_getreq_common_internal,
483 svc_getreqset_internal, svc_getreq_poll_internal,
484 svc_register_internal, svc_unregister_internal,
485 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
486 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
487 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
488 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
489 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
490 * inet/rcmd.c (rcmd_af): Use __listen.
491 (rresvport_af): Use __bind.
492 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
493 authunix_create, authunix_create_default, authnone_create,
494 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
495 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
496 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
497 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
498 _authenticate, add INTDEF after such function definitions.
499 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
500 __setsockopt, __getsockname instead of non-__ variants.
501 * sunrpc/pmap_rmt.c: Likewise.
502 * sunrpc/rtime.c: Likewise.
503 * sunrpc/svc_udp.c: Likewise.
504 * sunrpc/clnt_unix.c: Likewise.
505 * sunrpc/svc_unix.c: Likewise.
506 * sunrpc/bindrsvprt.c: Likewise.
507 * sunrpc/svc_tcp.c: Likewise.
508 * sunrpc/auth_none.c: Likewise.
509 * sunrpc/clnt_raw.c: Likewise.
510 * sunrpc/clnt_tcp.c: Likewise.
511 * sunrpc/auth_unix.c: Likewise.
512 * sunrpc/key_call.c: Likewise.
513 * sunrpc/clnt_gen.c: Likewise.
514 * sunrpc/pm_getmaps.c: Likewise.
515 * sunrpc/clnt_simp.c: Likewise.
516 * sunrpc/pmap_clnt.c: Likewise.
517 * sunrpc/svc_run.c: Likewise.
518 * sunrpc/svc.c: Likewise.
519 * sunrpc/svc_simple.c: Likewise.
520 * sunrpc/pm_getport.c: Likewise.
521 * sunrpc/auth_des.c: Likewise.
522 * sunrpc/svc_auth.c: Likewise.
523 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
524 __register_frame_info_table_bases, __deregister_frame_info_bases):
526 (__register_frame_info_bases_internal,
527 __register_frame_info_table_bases_internal,
528 __deregister_frame_info_bases_internal): Add prototypes.
529 (__register_frame_info, __register_frame): Use INTUSE in call to
530 __register_frame_info_bases.
531 (__register_frame_info_table): Similarly.
532 (__deregister_frame_info, __deregister_frame): Similarly.
533 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
534 sendto as weak alias.
535 * sysdeps/mach/hurd/sendto.c: Likewise.
536 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
537 recvfrom as weak alias.
538 * sysdeps/mach/hurd/recvfrom.c: Likewise.
539 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
540 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
541 recvmsg as weak alias.
542 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
543 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
544 sendmsg as weak alias.
545 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
546 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
547 setsockopt, add setsockopt as weak alias.
548 * sysdeps/mach/hurd/setsockopt.c: Likewise.
549 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
551 * sysdeps/mach/hurd/bind.c: Likewise.
552 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
554 * sysdeps/mach/hurd/listen.c: Likewise.
555 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
556 getsockname, add getsockname as weak alias.
557 * sysdeps/mach/hurd/getsockname.c: Likewise.
558 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
559 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
560 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
561 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
562 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
563 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
565 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
566 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
567 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
568 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
569 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
570 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
571 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
572 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
573 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
574 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
575 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
576 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
578 2002-05-10 Jakub Jelinek <jakub@redhat.com>
580 * locale/programs/localedef.h (show_archive_content): Add verbose
582 * locale/programs/localedef.c (main): Adjust caller.
583 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
584 (nameentcmp, dataentcmp): New functions.
586 (show_archive_content): Print verbose listing with --list-archive -v.
588 2002-05-14 Ulrich Drepper <drepper@redhat.com>
590 * locale/programs/locarchive.c (open_archive): Take extra argument
591 readonly. If true open file with O_RDONLY and don't create the
592 archive if it doesn't exist.
594 (close_archive): Don't do anything if fd element is -1.
595 * locale/programs/localedef.h (open_archive): Adjust prototype.
596 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
599 * malloc/malloc.c (__posix_memalign): Correct check for size of
600 alignment value [PR libc/3444].
602 * include/stdio.h: Remove references to old stdio implementation.
604 * libio/Makefile (bug-ungetwc2-ENV): Define.
606 2002-05-13 Roland McGrath <roland@frob.com>
608 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
610 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
612 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
614 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
615 Allocate three, not two, more than LEN when appending '/.'.
616 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
617 if NAME ends with '/.' if it is shorter than 2 chars.
619 2002-05-12 Roland McGrath <roland@frob.com>
621 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
622 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
624 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
625 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
627 2002-05-10 Jakub Jelinek <jakub@redhat.com>
629 * sysdeps/ia64/Makefile: Remove extra endif.
630 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
632 2002-05-10 Andreas Schwab <schwab@suse.de>
634 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
636 2002-05-09 Andreas Jaeger <aj@suse.de>
638 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
639 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
640 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
642 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
643 * sysdeps/wordsize-64/glob.c: ...here.
644 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
645 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
646 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
648 2002-05-08 Roland McGrath <roland@frob.com>
650 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
651 O_NOTRANS flag in "." lookup.
653 2002-05-05 Ulrich Drepper <drepper@redhat.com>
655 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
657 2002-05-04 Ulrich Drepper <drepper@redhat.com>
659 * locale/duplocale.c (__duplocale): Update special members only
660 when allocation succeeded.
662 2002-05-03 Roland McGrath <roland@frob.com>
664 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
665 we can only build libc.so.0.3(GLIBC_2.2.6) now.
667 2002-05-02 Jakub Jelinek <jakub@redhat.com>
669 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
670 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
671 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
672 * sysdeps/ia64/ia64libgcc.S: New file.
674 2002-05-02 Ulrich Drepper <drepper@redhat.com>
676 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
678 * malloc/memusage.c: Distinguish anonymous mmap.
680 2002-05-01 Roland McGrath <roland@frob.com>
682 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
683 and use INTDEF on it.
684 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
686 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
688 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
690 2002-05-01 Ulrich Drepper <drepper@redhat.com>
692 * malloc/memusage.c: Add support for tracking mmap & friends.
693 * malloc/memusage.sh: Implement -m/--mmap option.
695 2002-04-30 Jakub Jelinek <jakub@redhat.com>
697 * locale/programs/locarchive.c (create_archive): Add archivefname
698 argument, create fname from it.
699 (enlarge_archive): Honour output_prefix.
700 (open_archive): Likewise.
702 2002-04-30 Jakub Jelinek <jakub@redhat.com>
704 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
705 too many stpcpy macros.
707 2002-04-26 Bruno Haible <bruno@clisp.org>
709 * locale/programs/ld-collate.c (collate_read): Cast first argument
712 2002-04-26 Bruno Haible <bruno@clisp.org>
714 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
715 __dcngettext_internal): New declarations.
716 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
717 attribute declarations.
719 2002-04-30 Roland McGrath <roland@frob.com>
721 Removed old GNU stdio implementation; GNU libio is now the only option.
722 * configure.in: Removed --enable-libio option and @stdio@ subst var.
723 Define USE_IN_LIBIO unconditionally.
724 * configure: Regenerated.
725 * Makeconfig (stdio): Set to libio by default.
726 * config.make.in (stdio): Variable removed.
727 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
728 * sysdeps/unix/sysv/linux/configure: Regenerated.
729 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
730 * sysdeps/mach/hurd/configure: Regenerated.
731 * stdio/.cvsignore: File removed.
732 * stdio/Makefile: File removed.
733 * stdio/Versions: File removed.
734 * stdio/__fbufsize.c: File removed.
735 * stdio/__flbf.c: File removed.
736 * stdio/__fpending.c: File removed.
737 * stdio/__fpurge.c: File removed.
738 * stdio/__freadable.c: File removed.
739 * stdio/__freading.c: File removed.
740 * stdio/__fsetlocking.c: File removed.
741 * stdio/__fwritable.c: File removed.
742 * stdio/__fwriting.c: File removed.
743 * stdio/clearerr.c: File removed.
744 * stdio/fclose.c: File removed.
745 * stdio/fcloseall.c: File removed.
746 * stdio/feof.c: File removed.
747 * stdio/ferror.c: File removed.
748 * stdio/fflush.c: File removed.
749 * stdio/fgetc.c: File removed.
750 * stdio/fgetpos.c: File removed.
751 * stdio/fgets.c: File removed.
752 * stdio/fileno.c: File removed.
753 * stdio/fmemopen.c: File removed.
754 * stdio/fopen.c: File removed.
755 * stdio/fopncook.c: File removed.
756 * stdio/fputc.c: File removed.
757 * stdio/fputs.c: File removed.
758 * stdio/fread.c: File removed.
759 * stdio/freopen.c: File removed.
760 * stdio/fseek.c: File removed.
761 * stdio/fsetpos.c: File removed.
762 * stdio/ftell.c: File removed.
763 * stdio/fwrite.c: File removed.
764 * stdio/getc.c: File removed.
765 * stdio/getchar.c: File removed.
766 * stdio/getdelim.c: File removed.
767 * stdio/gets.c: File removed.
768 * stdio/glue.c: File removed.
769 * stdio/internals.c: File removed.
770 * stdio/linewrap.c: File removed.
771 * stdio/linewrap.h: File removed.
772 * stdio/memstream.c: File removed.
773 * stdio/newstream.c: File removed.
774 * stdio/obstream.c: File removed.
775 * stdio/putc.c: File removed.
776 * stdio/putchar.c: File removed.
777 * stdio/puts.c: File removed.
778 * stdio/rewind.c: File removed.
779 * stdio/setbuf.c: File removed.
780 * stdio/setbuffer.c: File removed.
781 * stdio/setlinebuf.c: File removed.
782 * stdio/setvbuf.c: File removed.
783 * stdio/stdio.h: File removed.
784 * stdio/ungetc.c: File removed.
785 * stdio/vasprintf.c: File removed.
786 * stdio/vscanf.c: File removed.
787 * stdio/vsnprintf.c: File removed.
788 * stdio/vsprintf.c: File removed.
789 * stdio/vsscanf.c: File removed.
790 * sysdeps/generic/defs.c: File removed.
791 * sysdeps/generic/fdopen.c: File removed.
792 * sysdeps/generic/pipestream.c: File removed.
793 * sysdeps/generic/stdio_init.c: File removed.
794 * sysdeps/generic/sysd-stdio.c: File removed.
795 * sysdeps/generic/vdprintf.c: File removed.
796 * sysdeps/mach/hurd/defs.c: File removed.
797 * sysdeps/mach/hurd/fdopen.c: File removed.
798 * sysdeps/mach/hurd/pipestream.c: File removed.
799 * sysdeps/mach/hurd/stdio_init.c: File removed.
800 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
801 * sysdeps/mach/hurd/vdprintf.c: File removed.
802 * sysdeps/posix/defs.c: File removed.
803 * sysdeps/posix/fdopen.c: File removed.
804 * sysdeps/posix/pipestream.c: File removed.
805 * sysdeps/posix/stdio_init.c: File removed.
806 * sysdeps/posix/vdprintf.c: File removed.
807 * sysdeps/unix/pipestream.c: File removed.
808 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
809 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
810 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
812 2002-04-29 Roland McGrath <roland@frob.com>
814 * include/libc-symbols.h (link_warning): Use `unused' attribute.
816 2002-04-28 Ulrich Drepper <drepper@redhat.com>
818 * sysdeps/generic/tls.h: Describe what must be defined.
820 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
821 glob_in_dir [PR libc/3385].
822 * posix/globtest.sh: Add test case.
824 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
827 2002-04-27 Ulrich Drepper <drepper@redhat.com>
829 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
830 _internal symbol handling.
831 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
833 2002-04-26 Ulrich Drepper <drepper@redhat.com>
835 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
836 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
838 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
840 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
841 not _LIBC and RE_ENABLE_I18N.
842 (build_range_exp): Implement for not _LIBC.
843 (build_collating_symbol): Likewise.
844 (parse_bracket_exp): Unify redundant error handlings.
845 Don't erase mbcset for non matching list in multibyte envs.
846 (build_word_op): Add '_' to matching list for \w operator.
847 * posix/regex_internal.c (re_string_construct): Invoke
848 build_upper_buffer in case of not RE_ENABLE_I18N.
849 (re_string_reconstruct): Don't touch cur_state in case of not
851 * posix/regex_internal.h (attribute_hidden): New macro in case of
853 (re_charset_t): Define range_starts/ends in case of not _LIBC.
854 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
856 (transit_state_mb): Likewise.
857 (check_node_accept_bytes): Implement the code evaluating range
858 expression in case of not _LIBC.
859 (find_collation_sequence_value): Hide in case of not _LIBC.
861 2002-04-26 Jakub Jelinek <jakub@redhat.com>
863 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
865 (__old_semctl, __new_semctl): Only use va_arg if the argument will
868 2002-04-26 Ulrich Drepper <drepper@redhat.com>
870 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
872 * sysdeps/ia64/strncpy.S: Fix recovery code.
873 Patch by David Mosberger <davidm@hpl.hp.com>.
875 2002-04-24 Ulrich Drepper <drepper@redhat.com>
877 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
880 2002-04-14 Bruno Haible <bruno@clisp.org>
882 * posix/regex.c (re_max_failures): Add back symbol for binary
885 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
887 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
888 of buffer building functions.
889 * posix/regex_internal.c (re_string_allocate): New function.
890 (re_string_realloc_buffers): New function.
891 (re_string_skip_chars): New function.
892 (re_string_reconstruct): New function.
893 (re_string_construct): Adapt it to new interface of buffer building
895 (re_string_construct_common): Likewise.
896 (build_wcs_buffer): Likewise.
897 (build_wcs_upper_buffer): Likewise.
898 (build_upper_buffer): Likewise.
899 (re_string_translate_buffer): Likewise.
900 (re_string_context_at): Adapt it to variable length buffers.
901 * posix/regex_internal.h (re_string_t): Add new fields to handle
902 variable length buffers.
903 (re_match_context_t): Likewise.
904 * posix/regexec.c (re_search_internal): Adapt it to new interface
905 of re_string_t and re_match_context_t.
906 (acquire_init_state_context): Likewise.
907 (check_matching): Likewise.
908 (check_halt_state_context): Likewise.
909 (proceed_next_node): Likewise.
910 (set_regs): Likewise.
911 (sift_states_backward): Likewise.
912 (clean_state_log_if_need): Likewise.
913 (sift_states_iter_mb): Likewise.
914 (sift_states_iter_bkref): Likewise.
915 (add_epsilon_backreference): Likewise.
916 (transit_state): Likewise.
917 (transit_state_sb): Likewise.
918 (transit_state_mb): Likewise.
919 (transit_state_bkref): Likewise.
920 (transit_state_bkref_loop): Likewise.
921 (check_node_accept): Likewise.
922 (match_ctx_init): Likewise.
923 (extend_buffers): New function.
925 2002-04-21 Bruno Haible <bruno@clisp.org>
927 * iconvdata/tst-table.sh: For the second check, use the truncated
928 GB18030 charmap table, like for the first check.
930 2002-04-24 Ulrich Drepper <drepper@redhat.com>
932 * elf/dl-load.c (open_verify): Correct __lseek parameters.
933 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
935 2002-04-23 H.J. Lu <hjl@gnu.org>
937 * include/math.h (isfinite): Fix a typo.
939 2002-04-24 Ulrich Drepper <drepper@redhat.com>
941 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
942 which is created by the test suite.
944 2002-04-20 Bruno Haible <bruno@clisp.org>
946 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
947 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
949 2002-04-20 Bruno Haible <bruno@clisp.org>
951 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
952 to avoid gcc warning.
954 2002-04-20 Bruno Haible <bruno@clisp.org>
956 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
957 of data->__statep->__count.
959 2002-04-20 Bruno Haible <bruno@clisp.org>
961 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
963 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
965 2002-04-24 Roland McGrath <roland@frob.com>
967 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
968 use END macro instead of our own .end directive.
969 Use `callsys' insn mnemonic instead of `call_pal'.
971 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
973 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
974 macro; we need this for Hurd.
976 Log entry was missing for 2002/03/24 commit of rev 1.8,
977 goes with 2002-03-17 changes.
978 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
979 (sysdep_routines): Append ioperm here.
980 (sysdep_headers): Append sys/io.h here.
982 2002-04-23 Roland McGrath <roland@frob.com>
984 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
985 * sysdeps/mach/hurd/sendto.c: Likewise.
986 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
987 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
988 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
990 2002-04-22 Roland McGrath <roland@frob.com>
992 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
993 failure from i386_io_perm_* RPCs to ENOSYS.
995 2002-04-22 Andreas Jaeger <aj@suse.de>
997 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
999 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1001 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1002 register instead of destroying %rbx.
1004 2002-04-21 Ulrich Drepper <drepper@redhat.com>
1006 * string/string.h: Declare strerror_r also for XPG6.
1008 2002-04-19 Roland McGrath <roland@frob.com>
1010 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1012 2002-04-20 Ulrich Drepper <drepper@redhat.com>
1014 * Makefile: Add handling of xtests and xcheck targets.
1015 * MakeTAGS: Likewise.
1016 * Makeconfig: Likewise.
1017 * Makerules: Likewise.
1019 * manual/Makefile: Likewise.
1020 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1021 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
1023 2002-04-11 Zack Weinberg <zack@codesourcery.com>
1025 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1027 * sunrpc/auth_none.c: Include bits/libc-lock.h.
1028 Delete #ifdef _RPC_THREAD_SAFE_ block.
1029 (authnone_private): Make a struct, not a pointer to struct.
1030 (authnone_private_guard): New once-control variable.
1031 (authnone_create_once): New function, split out of
1032 authnone_create. No need to allocate memory.
1033 (authnone_create): Just call authnone_create_once via
1034 __libc_once, then return &authnone_private->no_client.
1035 (authnone_marshal): Access private data via CLIENT argument,
1036 not authnone_private pointer.
1037 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1038 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1041 2002-04-12 H.J. Lu <hjl@gnu.org>
1043 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1045 2002-04-18 Bruno Haible <bruno@clisp.org>
1047 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1048 FROM_DIRECTION): Make the FROM direction stateless.
1049 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1050 FROM_DIRECTION): Likewise.
1052 2002-04-15 Bruno Haible <bruno@clisp.org>
1054 * iconvdata/JISX0213.TXT: New file.
1055 * iconvdata/jisx0213.h: New file.
1056 * iconvdata/jisx0213.c: New file.
1057 * iconvdata/euc-jisx0213.c: New file.
1058 * iconvdata/shift_jisx0213.c: New file.
1059 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1060 * iconvdata/EUC-JISX0213.precomposed: New file.
1061 * iconvdata/SHIFT_JISX0213.precomposed: New file.
1062 * iconvdata/SHIFT_JISX0213.irreversible: New file.
1063 * iconvdata/tst-table-to.c (main): Make it work for encodings for
1064 which the "to" direction is stateful.
1065 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1066 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1068 (libJISX0213-routines): New variable.
1069 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1070 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1071 (LDFLAGS-libJISX0213.so): New variable.
1072 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1073 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1074 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1076 2002-04-15 Bruno Haible <bruno@clisp.org>
1078 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1079 uint32_t. Update to Unicode 3.2.
1080 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1081 (BODY for TO_LOOP): Handle the ASCII range specially.
1082 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1083 * iconvdata/testdata/BIG5HKSCS: Remove a character.
1084 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1086 2002-04-15 Bruno Haible <bruno@clisp.org>
1088 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1089 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1091 2002-04-15 Bruno Haible <bruno@clisp.org>
1093 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1094 (ucs4_to_cns11643): Update.
1095 * iconvdata/cns11643.c: Update to Unicode 3.2.
1096 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1097 __cns11643_from_ucs4p2_tab): Regenerated.
1098 (__cns11643_from_ucs4p2c_tab): New array.
1099 * iconvdata/cvs11643l1.c: Update comments.
1100 * iconvdata/EUC-TW.irreversible: Remove two entries.
1102 2002-04-15 Bruno Haible <bruno@clisp.org>
1104 * locale/C-translit.h.in: Update to Unicode 3.2.
1105 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1106 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1108 2002-04-15 Bruno Haible <bruno@clisp.org>
1110 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1111 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1113 2002-04-15 Bruno Haible <bruno@clisp.org>
1115 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1116 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1117 always one byte, not 0 bytes in some cases and 2 bytes in others.
1119 * iconvdata/tst-table-from.c (main): Correct the usage message.
1121 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1123 * posix/regcomp.c (parse_expression): Fix incorrect error code.
1124 (parse_dup_op): Fix error handling like "a{}".
1125 (parse_bracket_exp): Add error handling.
1126 (fetch_number): Add error handling for "a{<very_large_number>}".
1128 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1130 * posix/regcomp.c (parse_bracket_symbol): Add error handling
1131 in case that the symbol name is too long.
1132 (build_charclass): Handle [:lower:]/[:uppper:] correctly
1133 in case of REG_ICASE.
1135 2002-04-19 Andreas Jaeger <aj@suse.de>
1137 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1138 <hartvige@mips.com>.
1140 2002-04-15 H.J. Lu <hjl@gnu.org>
1142 * include/math.h (__finitel_internal): Declare only if
1143 __NO_LONG_DOUBLE_MATH is not defined.
1144 (__isinfl_internal): Likewise.
1145 (__isnanl_internal): Likewise.
1147 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1148 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1149 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1150 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1151 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1152 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1153 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1155 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1158 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1159 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1161 2002-04-15 Bruno Haible <bruno@clisp.org>
1163 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1164 (BODY for TO_LOOP): Likewise.
1165 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1166 * iconvdata/tst-table.sh: Add support for encodings which contain
1167 precomposed Unicode characters, known to the iconv converter in both
1168 directions but not listed in the charmap.
1169 * iconvdata/IBM856.irreversible: New file.
1170 * iconvdata/IBM922.irreversible: New file.
1171 * iconvdata/IBM1132.irreversible: New file.
1172 * iconvdata/IBM1133.irreversible: New file.
1173 * iconvdata/IBM1160.irreversible: New file.
1174 * iconvdata/IBM1161.irreversible: New file.
1175 * iconvdata/IBM1163.irreversible: New file.
1176 * iconvdata/IBM1164.irreversible: New file.
1177 * iconvdata/ARMSCII-8.irreversible: New file.
1178 * iconvdata/TCVN5712-1.precomposed: New file.
1179 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1180 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1181 ARMSCII-8, TCVN5712-1.
1182 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1183 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1184 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1185 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1187 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1189 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
1190 for EVENING69. Include offsets in TZ environment variable.
1192 2002-04-18 Ulrich Drepper <drepper@redhat.com>
1194 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1195 avoid compiler warnings.
1197 * locale/programs/localedef.c (main): Always call
1198 construct_output_path.
1200 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1202 * locale/programs/locfile.c (to_archive): New variable. To collect
1203 data which has to be added to the locale archive.
1204 (write_all_categories): Take new third parameter with locale name.
1205 Unless no_archive flag set add new locale data to the archive
1206 (write_locale_data): Unless no-archive flag set store generated data
1207 in to_archive data structure instead of generation output file.
1208 Add new parameter with locale category index.
1209 * locale/programs/locfile.h: Add new parameters in declaractions of
1210 write_all_categories and write_locale_data.
1211 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
1212 --add-to-archive, and --delete-from-archive options. Pass extra
1213 parameter to write_all_categories.
1214 * locale/programs/localedef.h: Add prototypes for functions in
1216 * locale/locarchive.h: New file.
1217 * locale/programs/locarchive.c: New file.
1218 * locale/Makefile (distribute): Add programs/locarchive.c and
1220 (localedef-modules): Add md5 and locarchive.
1221 Add vpath to crypt subdir for md5.c.
1223 * locale/programs/ld-address.c: Pass locale category ID as new second
1224 parameter to write_locale_data.
1225 * locale/programs/ld-collate.c: Likewise.
1226 * locale/programs/ld-ctype.c: Likewise.
1227 * locale/programs/ld-identification.c: Likewise.
1228 * locale/programs/ld-measurement.c: Likewise.
1229 * locale/programs/ld-messages.c: Likewise.
1230 * locale/programs/ld-monetary.c: Likewise.
1231 * locale/programs/ld-name.c: Likewise.
1232 * locale/programs/ld-numeric.c: Likewise.
1233 * locale/programs/ld-paper.c: Likewise.
1234 * locale/programs/ld-telephone.c: Likewise.
1235 * locale/programs/ld-time.c: Likewise.
1237 * locale/simple-hash.c: Move compute_hashval function from here...
1238 * locale/hashval.h: ...to here. New file.
1239 * locale/simple-hash.h: Add prototype for compute_hashval.
1241 * include/libintl.h: Minor cleanups.
1243 2002-04-16 Ulrich Drepper <drepper@redhat.com>
1245 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
1247 2002-04-15 Ulrich Drepper <drepper@redhat.com>
1249 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
1251 2002-04-14 Bruno Haible <bruno@clisp.org>
1253 * locale/programs/charmap.c (charmap_read): Don't access result if
1256 2002-02-17 Andreas Schwab <schwab@suse.de>
1258 * elf/reldep7.c: New file.
1259 * elf/reldep7mod1.c: New file.
1260 * elf/reldep7mod2.c: New file.
1261 * elf/Makefile: Add rules to build and run reldep7.
1263 2002-04-14 Jakub Jelinek <jakub@redhat.com>
1265 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
1266 the end of the function. Pass original flags to recursive call if
1267 add_dependency failed.
1268 (_dl_lookup_versioned_symbol): Likewise.
1270 2002-04-13 Jakub Jelinek <jakub@redhat.com>
1272 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
1273 early, but check whether it overflowed afterwards.
1274 * time/tst-mktime.c (main): Add new tests.
1276 2002-04-14 Ulrich Drepper <drepper@redhat.com>
1278 * debug/xtrace.sh: Fix program name in help message.
1279 Patch by Roger Luethi <rl@hellgate.ch>.
1281 * include/sys/stat.h: Add prototypes for __lxstat_internal and
1282 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
1284 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
1285 * sysdeps/mach/hurd/lxstat.c: Likewise.
1286 * sysdeps/unix/common/lxstat.c: Likewise.
1287 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
1288 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1289 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1290 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1291 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1292 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
1293 * sysdeps/mach/hurd/lxstat64.c: Likewise.
1294 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
1295 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1297 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
1298 prototypes. Add __mbrlen and __mbrtowc macros.
1299 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
1300 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
1302 * include/unistd.h: Add prototype for __write_internal and add
1303 __libc_write macro is SHARED.
1304 * sysdeps/generic/write.c: Use INTDEF for __write.
1305 * sysdeps/mach/hurd/write.c: Likewise.
1306 * sysdeps/unix/sysv/aix/write.c: Likewise.
1307 * sysdeps/unix/syscalls.list: Add __libc_write alias.
1309 * assert/assert.c: Replace STR_N_SIZE with something usable in
1311 * assert/assert-perr.c: Likewise.
1313 * include/sys/socket.h: Declare __libc_sa_len_internal and define
1314 SA_LEN macro to use it if not NOT_IN_libc.
1315 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
1317 * include/fcntl.h: Declare __open_internal and define __open and
1318 __libc_open macros if not NOT_IN_libc.
1319 * sysdeps/generic/open.c: Use INTDEF for __open.
1320 * sysdeps/mach/hurd/open.c: Likewise.
1321 * sysdeps/unix/sysv/aix/open.c: Likewise.
1322 * sysdeps/unix/syscalls.list: Add __open_internal alias.
1324 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
1327 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
1328 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
1329 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1330 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1332 * include/wctype.h: Declare __iswalpha_l_internal,
1333 __iswdigit_l_internal, __iswspace_l_internal,
1334 __iswxdigit_l_internal, and __iswctype_internal. Define
1335 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
1336 __iswxdigit_l macros if not NOT_IN_libc.
1337 * wctype/iswctype.c: Use INTDEF for __iswctype.
1338 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
1340 * include/math.h: Declare __isinf_internal, __isinfl_internal,
1341 __isnan_internal, and __isnanl_internal.
1342 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
1343 __isnan, and __isnanl.
1344 * stdio-common/printf_size.c: Likewise.
1345 * sysdeps/generic/printf_fphex.c: Likewise.
1346 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
1347 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1348 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
1349 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
1350 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1351 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1352 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1353 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1354 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1355 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1356 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1357 * sysdeps/m68k/s_isinfl.c: Likewise.
1358 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1359 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1361 * include/sys/time.h: Declare __gettimeofday_internal and define
1362 __gettimeofday macro if not NOT_IN_libc.
1363 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
1364 * sysdeps/mach/gettimeofday.c: Likewise.
1365 * sysdeps/posix/gettimeofday.c: Likewise.
1366 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1367 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
1368 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1369 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
1371 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
1372 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
1373 Remove __lstat and __fstat inline functions.
1374 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
1375 * sysdeps/mach/hurd/fxstat.c: Likewise.
1376 * sysdeps/unix/fxstat.c: Likewise.
1377 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
1378 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1379 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1380 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1381 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1382 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
1383 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1384 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
1385 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1387 * include/unistd.h: Declare __getpid_internal and define
1388 __getpid macro if not NOT_IN_libc.
1389 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
1390 * sysdeps/generic/getpid.c: Likewise.
1391 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
1392 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
1394 * include/unistd.h: Declare __getpgid_internal and define
1395 __getpgid macro if not NOT_IN_libc.
1396 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
1397 * sysdeps/mach/hurd/getpgid.c: Likewise.
1398 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
1399 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1400 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1401 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
1403 * include/unistd.h: Declare __getpagesize_internal and define
1404 __getpagesize macro if not NOT_IN_libc.
1405 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
1407 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
1408 * sysdeps/mach/getpagesize.c: Likewise.
1409 * sysdeps/posix/getpagesize.c: Likewise.
1410 * sysdeps/unix/getpagesize.c: Likewise.
1411 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1412 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1413 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
1414 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1416 2002-04-13 Andreas Jaeger <aj@suse.de>
1418 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
1419 as clobber to reduce register pressure.
1420 (__strpbrk_cg): Likewise.
1421 (__mempcpy_by4): Likewise.
1422 (__strstr_cg): Likewise.
1423 Add prototype for __memrchr.
1425 2002-04-13 Andreas Schwab <schwab@suse.de>
1427 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
1428 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1429 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1431 2002-04-13 Ulrich Drepper <drepper@redhat.com>
1433 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
1434 check whether the caller prefers getting the most recent version of
1435 a symbol of the earliest version.
1436 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
1437 _dl_do_lookup to also take the new parameter and pass it on.
1438 Change 'explicit' parameter of _dl_lookup_symbol and
1439 _dl_lookup_versioned_symbol to flags. Adjust tests.
1440 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1441 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
1442 _dl_lookup_versioned_symbol.
1443 * elf/dl-reloc.c: Likewise.
1444 * elf/dl-runtime.c: Likewise.
1445 * elf/dl-sym.c: Likewise.
1446 * sysdeps/mips/dl-machine.h: Likewise.
1448 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1450 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
1452 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
1454 2002-04-10 Andreas Jaeger <aj@suse.de>
1456 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
1458 * include/argz.h: Remove extra char from last patch.
1460 2002-04-09 Ulrich Drepper <drepper@redhat.com>
1462 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
1463 * sysdeps/unix/sysv/aix/chown.c: Likewise.
1464 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
1465 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1466 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1467 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
1469 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1471 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
1472 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
1473 * intl/ngettext.c: Likewise.
1475 * include/sys/socket.h: Declare __connect_internal and define
1476 __connect macro if not NOT_IN_libc.
1477 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
1478 * sysdeps/unix/sysv/aix/connect.c: Likewise.
1479 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
1481 * include/unistd.h: Declare __close_internal and define __close macro
1483 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
1484 WJUMP3): Add extra parenthesis to avoid expanding element names with
1485 macors like __close.
1486 * sysdeps/unix/syscalls.list: Add __close_internal alias.
1488 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
1490 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
1491 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
1492 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
1494 * include/unistd.h: Declare __fork_internal and define __fork macro
1496 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
1497 * sysdeps/unix/sysv/aix/fork.c: Likewise.
1498 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
1500 * include/stdio_ext.h: Declare __fsetlocking_internal and define
1501 __fsetlocking macro to use it if not NOT_IN_libc.
1502 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
1504 * libio/__fbufsize.c: Correct copyright.
1505 * libio/__flbf.c: Likewise.
1506 * libio/__fpending.c: Likewise.
1507 * libio/__fpurge.c: Likewise.
1508 * libio/__freadable.c: Likewise.
1509 * libio/__freading.c: Likewise.
1510 * libio/__fsetlocking.c: Likewise.
1511 * libio/__fwritable.c: Likewise.
1512 * libio/__fwriting.c: Likewise.
1514 * include/stdio.h: Declare __asprintf_internal and define __asprintf
1515 macro to use it if not NOT_IN_libc.
1516 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
1518 * include/mntent.h: Declare __setmntent_internal,
1519 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
1520 __getmntent_r, and __endmntent macros to use these functions if not
1522 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
1525 * include/math.h: Declare __finite_internal, __finitef_internal, and
1526 __finitel_internal. Redefine isfinite macro if in libc or libm using
1528 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
1529 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
1530 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
1531 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
1532 * sysdeps/i386/fpu/s_finitef.S: Likewise.
1533 * sysdeps/i386/fpu/s_finitel.S: Likewise.
1534 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1535 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1536 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1537 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1539 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
1540 to use this function if not NOT_IN_libc.
1541 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
1542 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
1543 * sysdeps/mach/hurd/fcntl.c: Likewise.
1544 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1545 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1547 * include/argz.h: Declare __argz_count_internal and
1548 __argz_stringify_internal.
1549 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
1551 * string/argz-count.c: Use INTDEF for __argz_count.
1552 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
1554 * include/stdlib.h: Declare __cxa_atexit_internal and define
1555 __cxa_atexit macro if not NOT_IN_libc.
1556 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
1557 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
1559 * assert/assert.c: Use INTDEF for __assert_fail.
1560 * assert/__assert.c: Use INTUSE for call to __assert_fail.
1561 * include/assert.h: Declare __assert_fail_internal.
1563 * extra-lib.mk: Mark assignment to lib with override.
1565 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1567 * Makerules: Use cppflags-iterator.mk to add defines for all test
1570 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
1572 * elf/elf.h: Define R_SH_TLS_xxx macros.
1573 * elf/rtld.c: Remove an extra parenthesis.
1574 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
1576 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
1577 * sysdeps/sh/dl-lookupcfg.h: New file.
1578 * sysdeps/sh/dl-tls.h: New file.
1579 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
1580 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
1581 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
1582 R_SH_TLS_TPOFF32 relocations.
1584 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1586 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
1588 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
1589 * include/stdlib.h: Likewise.
1591 2002-04-08 Jakub Jelinek <jakub@redhat.com>
1593 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
1594 instead of _RTLD_LOCAL.
1595 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
1596 * include/unistd.h: Likewise.
1597 * sysdeps/generic/ldsodefs.h: Likewise.
1599 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
1600 if in libc or ld.so.
1602 2002-04-08 Andreas Jaeger <aj@suse.de>
1604 * elf/cache.c (print_entry): Support x86-64.
1606 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1608 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
1609 with one accessing the locale data structures directly.
1610 * stdio-common/printf-prs.c: Include localeinfo.h for new
1611 MB_CUR_MAX definition.
1613 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
1614 is the name of the source file without extension.
1615 * Makefile (distribute): Add cppflags-iterator.mk.
1616 * cppflags-iterator.mk: New file.
1617 * extra-lib.mk: For the sources of the library run
1618 cppflags-iterator.mk.
1620 * include/libintl.h: Declare __dcgettext_internal and
1621 _libc_intl_domainname_internal. Define __dcgettext using these
1622 two symbols if used in libc itself.
1623 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
1624 _libc_intl_domainname_internal.
1625 * argp/argp-parse.c: Likewise.
1626 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
1627 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
1628 * intl/gettext.c: Likewise.
1629 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
1631 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
1633 * posix/regex_internal.c (gettext): Likewise.
1635 2002-04-08 Andreas Jaeger <aj@suse.de>
1637 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
1639 * sysdeps/x86_64/fpu/s_llrint.S: New.
1640 * sysdeps/x86_64/fpu/s_llrintf.S: New.
1641 * sysdeps/x86_64/fpu/s_llrintl.S: New.
1642 * sysdeps/x86_64/fpu/s_lrint.S: New.
1643 * sysdeps/x86_64/fpu/s_lrintf.S: New
1644 * sysdeps/x86_64/fpu/s_lrintl.S: New.
1646 2002-04-08 Roland McGrath <roland@frob.com>
1648 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
1649 widening __hurd_fail value.
1651 2002-04-07 Roland McGrath <roland@frob.com>
1653 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
1654 <mach/machine/alpha_instruction.h>.
1655 (_hurd_setup_sighandler): Take proper arguments for current decls.
1656 Update code to use _hurdsig_catch_fault.
1657 Use `callsys' instruction instead of `call_pal'.
1658 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
1660 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
1661 (ALIGN, at, AT, fp): New macros.
1663 2002-04-06 Roland McGrath <roland@frob.com>
1665 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
1667 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
1668 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
1670 * sysdeps/mach/hurd/bind.c: Use prototype definition.
1671 * sysdeps/mach/hurd/connect.c: Likewise.
1672 * sysdeps/mach/hurd/getsockopt.c: Likewise.
1673 * sysdeps/mach/hurd/setsockopt.c: Likewise.
1675 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
1678 * hurd/catch-exc.c: Use integer_t instead of int.
1679 * hurd/hurdfault.c: Likewise.
1681 * sysdeps/mach/hurd/alpha/exc2signal.c
1682 (_hurd_exception2signal): Rewritten.
1683 * sysdeps/mach/hurd/alpha/longjmp-ts.c
1684 (_hurd_longjmp_thread_state): Rewritten.
1686 2002-04-07 Ulrich Drepper <drepper@redhat.com>
1688 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
1689 DB_LOOKUP_FCT prototype.
1690 * nss/getXXent_r.c: Likewise.
1691 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
1692 * inet/getaliasname_r.c: Likewise.
1693 * inet/getnetbyad_r.c: Likewise.
1694 * inet/getnetbynm_r.c: Likewise.
1695 * inet/getnetent_r.c: Likewise.
1696 * inet/getproto_r.c: Likewise.
1697 * inet/getprtent_r.c: Likewise.
1698 * inet/getprtname_r.c: Likewise.
1699 * inet/getrpcbyname_r.c: Likewise.
1700 * inet/getrpcbynumber_r.c: Likewise.
1701 * inet/getrpcent_r.c: Likewise.
1702 * inet/getservent_r.c: Likewise.
1703 * inet/getsrvbynm_r.c: Likewise.
1704 * inet/getsrvbypt_r.c: Likewise.
1705 * shadow/getspent_r.c: Likewise.
1706 * shadow/getspnam_r.c: Likewise.
1708 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
1710 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
1711 Use i686-friendly PIC code.
1712 * sysdeps/i386/elf/setjmp.S: Likewise.
1714 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
1716 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
1718 * elf/Versions: Remove it here.
1720 2002-04-06 Ulrich Drepper <drepper@redhat.com>
1722 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
1723 direction. Reported by H . J . Lu <hjl@lucon.org>.
1725 2002-04-05 Ulrich Drepper <drepper@redhat.com>
1727 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
1728 test just before the test runs.
1729 * intl/tst-translit.sh: Likewise.
1730 * intl/tst-codeset.sh: Likewise.
1732 * timezone/zic.c: Update from tzcode2002c.
1733 * timezone/asia: Update from tzdata2002c.
1734 * timezone/backward: Likewise.
1735 * timezone/europe: Likewise.
1736 * timezone/northamerica: Likewise.
1737 * timezone/northamerica: Likewise.
1738 * timezone/northamerica: Likewise.
1739 * timezone/southamerica: Likewise.
1740 * timezone/zone.tab: Likewise.
1742 2002-03-23 Jakub Jelinek <jakub@redhat.com>
1744 * sysdeps/generic/brk.c (__curbrk): Declare.
1745 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
1746 * sysdeps/generic/dl-sbrk.c: Likewise.
1747 * sysdeps/unix/arm/dl-brk.S: New file.
1748 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
1749 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
1750 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
1751 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
1752 * sysdeps/unix/i386/dl-brk.S: New file.
1753 * sysdeps/unix/mips/dl-brk.S: New file.
1754 * sysdeps/unix/sparc/dl-brk.S: New file.
1755 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
1756 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
1757 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
1758 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
1760 2002-04-03 Andreas Schwab <schwab@suse.de>
1762 * Makefile (headers): Add gnu/lib-names.h here instead of
1764 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
1766 (install-headers): Add dependency on install-headers-nosubdir.
1767 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
1768 instead of install-others.
1769 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
1772 2002-04-05 Ulrich Drepper <drepper@redhat.com>
1774 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
1775 Reported by Sam Roberts <sroberts@uniserve.com>.
1777 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1779 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
1780 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
1781 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1782 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1784 2002-04-03 David Mosberger <davidm@hpl.hp.com>
1786 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
1787 (RTLD_START): Ditto.
1788 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
1789 dependency violation.
1791 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1793 * time/mktime.c (__mktime_internal): Move check for year < 70 below
1794 all variable declarations.
1796 2002-04-04 Andreas Schwab <schwab@suse.de>
1798 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
1800 2002-04-04 Andreas Jaeger <aj@suse.de>
1802 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
1803 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
1805 * sysdeps/x86_64/fpu/s_fabs.c: New file.
1806 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
1807 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
1809 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
1811 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
1813 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
1814 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
1816 * configure.in: Handle all mips entries the same.
1818 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
1819 * sysdeps/mips/mips3/*: Likewise.
1820 * sysdeps/mips/p40/bits/endian.h: Likewise.
1822 2002-04-04 Ulrich Drepper <drepper@redhat.com>
1824 * misc/dirname.c (dirname): Ignore trailing slashes at end of
1825 non-null result [PR libc/2600].
1827 * misc/tst-dirname.c: Add more tests.
1829 2002-04-03 Ulrich Drepper <drepper@redhat.com>
1831 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
1832 define a code_set_name provide one based on the filename.
1834 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
1836 2001-12-28 Andreas Jaeger <aj@suse.de>
1838 * time/mktime.c (__mktime_internal): Check for year < 70
1841 2002-04-03 Andreas Jaeger <aj@suse.de>
1843 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
1845 Reported by Andi Kleen <ak@suse.de>.
1847 2002-04-03 Ulrich Drepper <drepper@redhat.com>
1849 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
1850 * sysdeps/generic/w_lgammaf.c: Likewise.
1851 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
1853 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
1854 Adjust for new output format of the backtrace functions.
1856 * misc/syslog.c (vsyslog): Only use cleanup handler if
1857 _LIBC_REENTRANT is defined [PR libc/2924].
1859 * libio/Makefile (tests): Add bug-ungetwc2.
1860 * libio/bug-ungetwc2.c: New file.
1862 * manual/install.texi: Typographical and grammatical cleanup.
1863 Patch by Dennis Grace <dgrace@us.ibm.com>.
1865 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
1866 parameter if mtflag. Patch by <jeongyun@innovay.com>.
1868 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
1869 always "&". Adjust callers.
1870 Add "_" prefix to several generated definitions.
1871 Patch by paul@serice.net [PR libc/3158].
1873 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1875 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
1876 size of _dl_arm_cap_flags.
1877 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
1879 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
1882 2002-03-22 H.J. Lu <hjl@gnu.org>
1884 * scripts/firstversions.awk: Check the first version.
1886 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1888 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
1889 dependencies must be stable to work correctly.
1890 Reported by martin.lubich@datacon.at.
1892 * libio/bug-ungetwc1.c: New file.
1893 * libio/Makefile (tests): Add bug-ungetwc1.
1895 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
1896 if stream was last used for writing.
1898 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
1899 number [PR libc/3111].
1901 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
1903 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
1905 2002-04-02 Jakub Jelinek <jakub@redhat.com>
1907 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
1908 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1909 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
1910 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
1911 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
1913 2002-03-30 Jakub Jelinek <jakub@redhat.com>
1915 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
1918 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1920 * sysdeps/i386/fpu/s_fabs.S: New file.
1921 * sysdeps/i386/fpu/s_fabsf.S: New file.
1922 * sysdeps/i386/fpu/s_fabsl.S: New file.
1923 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
1924 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
1925 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
1927 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1929 * rt/tst-shm.c (do_test): Add one more test for size of shared
1932 2002-03-29 Wolfram Gloger <wg@malloc.de>
1934 * malloc/malloc.c: Add short description and prototypes for
1935 malloc_get_state, malloc_set_state and posix_memalign, for
1936 consistency and to avoid warnings with -Wstrict-prototypes.
1937 Reported by Andreas Jaeger <aj@suse.de>.
1939 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1941 * po/gl.po: Update from translation team.
1943 2002-03-31 Roland McGrath <roland@frob.com>
1945 * hurd/hurdselect.c (_hurd_select): Fix
1946 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
1947 Use a union rather than casts to compare mach_msg_type_t as int.
1949 2002-03-25 Roland McGrath <roland@frob.com>
1951 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
1952 check off the end of NAME when it's shorter than 2 chars.
1953 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
1955 2002-03-17 Roland McGrath <roland@frob.com>
1957 * sysdeps/mach/hurd/i386/sys/io.h: New file.
1958 * sysdeps/mach/hurd/i386/ioperm.c: New file.
1959 * sysdeps/mach/hurd/i386/Dist: Add them.
1960 * sysdeps/mach/hurd/i386/Versions
1961 (libc: GLIBC_2.2.6): New set, add ioperm.
1962 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
1963 (mach_interface_list): Check for mach_i386.defs.
1964 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
1965 * sysdeps/mach/configure: Regenerated.
1967 2002-03-22 Ulrich Drepper <drepper@redhat.com>
1969 * po/fr.po: Update from translation team.
1971 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1973 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
1974 getpriority from syscalls list.
1976 2002-03-28 Andreas Jaeger <aj@suse.de>
1978 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
1979 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
1980 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
1981 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
1983 2002-03-27 Andreas Jaeger <aj@suse.de>
1985 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1986 sigcontext): Follow further kernel change.
1988 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
1991 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
1992 Change for struct sigcontext change.
1994 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1995 Follow changes in struct sigcontext.
1997 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
1998 sysycall, use wrapper instead.
2000 2002-03-26 Andreas Jaeger <aj@suse.de>
2002 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2003 read and write accesses as detailed as possible.
2004 (__memcpy_by2): Likewise.
2005 (__memcpy_g): Likewise.
2006 (memmove): Likewise.
2008 (__memset_ccn_by4): Likewise.
2009 (__memset_ccn_by2): Likewise.
2010 (__memset_gcn_by4): Likewise.
2011 (__memset_gcn_by2): Likewise.
2013 (__memrchr): Likewise.
2014 (rawmemchr): Likewise.
2015 (__strlen_g): Likewise.
2016 (__strcpy_g): Likewise.
2017 (__mempcpy_by4): Likewise.
2018 (__mempcpy_by2): Likewise.
2019 (__mempcpy_byn): Likewise.
2020 (__stpcpy_g): Likewise.
2021 (__strncpy_by4): Likewise.
2022 (__strncpy_by2): Likewise.
2023 (__strncpy_byn): Likewise.
2024 (__strncpy_gg): Likewise.
2025 (__strcat_c): Likewise.
2026 (__strcat_g): Likewise.
2027 (__strncat_g): Likewise.
2028 (__strcmp_gg): Likewise.
2029 (__strncmp_g): Likewise.
2030 (__strchr_c): Likewise.
2031 (__strchr_g): Likewise.
2032 (__strchrnul_c): Likewise.
2033 (__strchrnul_g): Likewise.
2034 (__strrchr_c): Likewise.
2035 (__strrchr_g): Likewise.
2036 (__strrchr_c): Likewise.
2037 (__strrchr_g): Likewise.
2038 (__strcspn_c1): Likewise.
2039 (__strcspn_cg): Likewise.
2040 (__strcspn_g): Likewise.
2041 (__strcspn_g): Likewise.
2042 (__strspn_c1): Likewise.
2043 (__strspn_cg): Likewise.
2044 (__strspn_g): Likewise.
2045 (__strspn_g): Likewise.
2046 (__strpbrk_cg): Likewise.
2047 (__strpbrk_g): Likewise.
2048 (__strstr_cg): Likewise.
2049 (__strstr_g): Likewise.
2051 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
2052 Michal Ludvig <mludvig@suse.cz>.
2054 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2055 compatibilty, adjust for kernel changes.
2057 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2058 sigcontext): Adjust for kernel changes.
2060 2002-03-25 Andreas Jaeger <aj@suse.de>
2062 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2064 Reported by Artur Zaprzala <zybi@talex.com.pl>.
2066 2002-03-24 Andreas Jaeger <aj@suse.de>
2068 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2070 * stdio-common/tst-fdopen.c (main): Remove unused variable.
2072 * iconv/tst-iconv3.c (main): Use correct printf strings.
2074 2002-03-18 Roland McGrath <roland@frob.com>
2076 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2077 (CMGROUP_MAX): New macro.
2079 2002-03-23 Roland McGrath <roland@frob.com>
2081 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2082 * sysdeps/posix/shm_unlink.c: Likewise.
2084 2002-03-22 Roland McGrath <roland@frob.com>
2086 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2087 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2088 under --enable-libio.
2089 * sysdeps/mach/hurd/configure: Regenerated.
2091 2002-03-23 Roland McGrath <roland@frob.com>
2093 * sysdeps/mach/hurd/i386/Makefile
2094 (sysdep_routines, shared-only-routines): Don't add framestate,
2095 reverting 2001-10-02 change.
2096 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2097 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2098 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2099 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2100 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2101 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2102 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2103 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2104 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2105 Do it here instead, only if [$(unwind-find-fde) = yes].
2107 2002-03-23 Andreas Jaeger <aj@suse.de>
2109 * signal/signal.h: Fix typo. Patch by Steve Kemp
2110 <skx@tardis.ed.ac.uk>.
2112 2002-03-22 Andreas Jaeger <aj@suse.de>
2114 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2117 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2118 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2119 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2120 user_fpregs_struct): Rename fwd.
2122 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2123 Follow sigcontext changes.
2125 2002-03-22 Andreas Jaeger <aj@suse.de>
2127 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
2128 changes for NaNs on MIPS.
2129 Patch by Hartvig Ekner <hartvige@mips.com>.
2131 2002-03-21 Ulrich Drepper <drepper@redhat.com>
2133 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2134 Use realloc if too large.
2135 (addgrbyid): Likewise.
2136 * nscd/hstcache.c (addhstbyname): Likewise.
2137 (addhstbyaddr): Likewise.
2138 (addhstbynamev6): Likewise.
2139 (addhstbyaddrv6): Likewise.
2140 * nscd/pwdcache.c (addpwbyname): Likewise.
2141 (addpwbyuid): Likewise.
2143 2002-03-21 Andreas Jaeger <aj@suse.de>
2145 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2146 _fpstate): Add separate struct for x86-64.
2148 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2149 user_fpregs_struct): Change member names to follow kernel.
2151 2002-03-20 Ulrich Drepper <drepper@redhat.com>
2153 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2154 Correctly close the UDP connection right away [PR libc/3120].
2156 2002-03-20 Andreas Jaeger <aj@suse.de>
2158 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2159 user_fpregs_struct): Fix for changed kernel struct.
2160 (struct user_regs_struct): Likewise.
2161 (struct user): Likewise.
2162 Add 32-bit x86 compatibility.
2164 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2166 2002-03-19 Andreas Jaeger <aj@suse.de>
2168 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2170 2002-03-18 Andreas Jaeger <aj@suse.de>
2172 * iconvdata/Makefile: Only run tests when shared libs are
2175 2002-03-17 Andreas Jaeger <aj@suse.de>
2177 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2179 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2181 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2184 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2186 Patch by Hartvig Ekner <hartvige@mips.com>.
2188 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2189 * sysdeps/generic/unwind-pe.h: Likewise.
2191 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2194 * libio/stdio.c (AL2): Define variant when visibility attribute is
2197 * include/libc-symbols.h (_INTVARDEF): Define variant when
2198 visibility attribute is not supported.
2200 2002-03-16 Ulrich Drepper <drepper@redhat.com>
2202 * po/fr.po: Update from translation team.
2204 2002-02-25 Bruno Haible <bruno@clisp.org>
2206 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2208 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2210 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
2211 buffers if _IO_file_attach failed.
2213 * libio/fileops.c (_IO_file_open): Close file descriptor if
2214 _IO_SEEKOFF call failed.
2216 2002-03-15 H.J. Lu <hjl@gnu.org>
2217 Ulrich Drepper <drepper@redhat.com>
2219 * configure.in: Check for availability of
2220 init_array/fini_array/preinit_array handling in binutils.
2221 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
2222 * config.make.in (have-initfini-array): New variable.
2224 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2226 * stdio-common/tst-printf.c (main): Comment out one test which
2227 checked the compiler's ability to fold floating-point constants
2228 but not really printf.
2229 (rfg3): Make s const.
2230 * stdio-common/tst-printf.sh: Adjust for removed test.
2232 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
2233 internal function. Adjust for internal_function calling convention.
2234 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
2235 as internal_function.
2237 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
2240 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
2241 declaration and definition.
2242 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
2244 * nss/getXXent_r.c: Likewise.
2245 * nss/nsswitch.h (db_lookup_function): Add internal_function to
2248 * include/time.h: Declare __localtime_r as hidden.
2250 * include/aliases.h: Declare __getaliasent_r as hidden.
2251 * include/grp.h: Declare __getgrent_r as hidden.
2252 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
2253 __getservent_r, and __getprotoent_r as hidden.
2254 * include/pwd.h: Declare __getpwent_r as hidden.
2255 * include/shadow.h: Declare __getspent_r as hidden.
2256 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
2258 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
2259 and __gconv_transliterate as hidden.
2260 Add internal_function to __gconv_get_path declaration.
2261 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
2262 definition. Add attribute_hidden to __gconv_read_conf definition.
2264 2002-03-14 Ulrich Drepper <drepper@redhat.com>
2266 * elf/rtld.c: Declare _environ as hidden.
2267 * sysdeps/generic/dl-environ.c: Likewise.
2268 * sysdeps/generic/dl-sysdep.c: Likewise.
2270 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
2271 _dl_mcount_internal as hidden.
2273 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
2274 * sysdeps/generic/dl-brk.c: New file.
2275 * sysdeps/generic/dl-sbrk.c: New file.
2276 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
2277 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
2279 * elf/dl-minimal.c (malloc): Declare _end as hidden.
2280 (__errno_location): New function. Declare errno as hidden.
2281 * elf/rtld.c (_dl_argc): Define as hidden.
2282 (_dl_skip_args): Define as hidden.
2283 (_begin, _end): Declare as hidden.
2284 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
2285 * sysdeps/generic/entry.h (_start): Declare as hidden.
2286 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
2287 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
2288 _dl_runtime_resolve and _dl_runtime_profile as hidden.
2289 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
2291 2002-03-14 Roland McGrath <roland@frob.com>
2293 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
2295 * Makeconfig (%.v.i, %.v): New implicit rules.
2296 (preprocess-versions): Variable removed.
2297 ($(common-objpfx)shlib-versions.v.i): New target giving just the
2298 shlib-versions input files as dependencies.
2299 ($(common-objpfx)soversions.i): Depend on that instead of the input
2300 files. Use it as input instead of using a pipeline.
2301 (postclean-generated): Append soversions.i, shlib-versions.v, and
2302 shlib-versions.v.i here.
2303 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
2304 the Versions.def input files as dependencies.
2305 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
2306 ($(common-objpfx)Versions.all): Depend on that instead of the input
2307 files. Use it as input instead of using a pipeline.
2308 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
2309 (postclean-generated): Append those .v and .v.i files here.
2311 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2313 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
2314 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
2317 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2319 * sysdeps/generic/mp_clz_tab.c: New file.
2320 * sysdeps/i386/mp_clz_tab.c: New file.
2321 * sysdeps/hppa/mp_clz_tab.c: New file.
2322 * sysdeps/powerpc/mp_clz_tab.c: New file.
2323 * stdlib/Makefile (aux): Revert last patch.
2324 * math/Makefile (gmp-objs): Likewise.
2326 2002-03-13 Paul Eggert <eggert@twinsun.com>
2328 * time/strftime.c: Comment fixes for references to obsolescent
2329 standards, In most cases the simplest fix is to remove the
2330 confusing comments. Cross-referencing all the standards properly
2331 is a bit of a pain, and it should be enough to put that info in
2332 the documentation as I did in my recent time.texi patch.
2334 2002-03-13 Paul Eggert <eggert@twinsun.com>
2336 * manual/time.texi (Formatting Calendar Time):
2337 ISO C99 also specifies the E and O modifiers.
2338 %P is a GNU extension, and is not in ISO C99.
2339 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
2340 %T is also in ISO C99.
2341 The RFC 822 example is not valid in arbitrary locales.
2342 Reword the POSIX.2 wording slightly, to make it a bit clearer
2343 that POSIX.2 formats are also supported by later POSIX versions.
2344 If a format was introduced in ISO C99 it is also required by
2347 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2349 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
2350 _sys_nerr_internal with INTVARDEF2.
2351 * include/libc-symbols.h (INTVARDEF2): New macro.
2352 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
2353 (_sys_nerr_internal): Library.
2355 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
2356 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
2358 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
2360 2002-03-13 Wolfram Gloger <wg@malloc.de>
2362 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
2364 2002-03-02 Andreas Schwab <schwab@suse.de>
2366 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
2367 'h' flag and positional arg.
2368 * stdio-common/tst-printf.c (rfg3): New function to test
2369 positional arguments.
2370 (main): Fix some warnings.
2372 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2374 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
2375 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2377 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2379 * grp/initgroups.c (__nss_group_data): Declare as hidden.
2381 * include/locale.h (_nl_C_locobj): Declare as hidden.
2383 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
2384 * time/strptime.c (_nl_C_LC_TIME): Likewise.
2386 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
2388 * include/sys/gmon.h: Declare _gmonparam as hidden.
2390 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
2391 (__ctype32_wctrans): Likewise.
2392 (__ctype32_width): Likewise.
2394 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
2397 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
2399 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
2400 hidden. Change all users of these variables.
2402 * posix/regex_internal.h (__re_error_msgid): Renamed from
2403 re_error_msgid. Declare as hidden.
2404 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
2407 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
2408 (__printf_function_table): Likewise.
2409 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
2411 (__printf_function_table): Likewise.
2413 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
2414 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
2416 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
2417 * nss/nsswitch.c: Declare _nss_*_database as hidden.
2419 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
2420 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
2422 2002-03-12 Ulrich Drepper <drepper@redhat.com>
2424 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
2425 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2426 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2427 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2428 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2429 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2430 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2431 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2432 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
2433 _nl_C_LC_CTYPE_width: Declare as hidden.
2434 * include/locale.h: Declare _nl_locale_file_list.
2435 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
2436 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
2437 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
2438 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
2439 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
2440 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
2441 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
2442 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
2443 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
2444 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
2445 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
2446 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
2447 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2448 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2449 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2450 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2451 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2452 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2453 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2454 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
2455 _nl_C_LC_CTYPE_width, and as hidden.
2456 * locale/findlocale.c: Declare _nl_C as hidden.
2457 * locale/newlocale.c: Likewise.
2458 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
2459 _nl_locale_file_list.
2460 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
2461 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
2462 Define _nl_C_locobj as hidden.
2464 * malloc/mtrace.c (_mtrace_file): Define as hidden.
2465 (_mtrace_line): Likewise.
2467 * include/time.h: Declare __mon_yday as hidden.
2468 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
2470 * libio/libioP.h: Declare __libio_codecvt as hidden.
2471 * libio/fileops.c: Declare __libio_translit as hidden.
2472 * libio/iofwide.c: Define __libio_translit as hidden.
2474 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
2475 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
2476 * login/getutline_r.c: Likewise.
2477 * login/utmpname.c: Likewise.
2479 * login/utmp-private.h: Declare __libc_utmp_file_functions,
2480 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
2481 __libc_utmp_file_name as hidden.
2483 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
2484 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
2485 * locale/freelocale.c: Likewise.
2486 * locale/lc-time.c: Likewise.
2488 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
2489 (__libc_ptyname2): Likewise.
2490 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
2492 (__libc_ptyname2): Likewise.
2494 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
2495 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
2496 * sysdeps/generic/init-first.c: Likewise.
2497 * sysdeps/i386/init-first.c: Likewise.
2498 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2499 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2500 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2501 * sysdeps/sh/init-first.c: Likewise.
2502 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2503 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2505 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
2506 (_itowa_upper_digits): Likewise.
2508 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
2509 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
2512 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
2513 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
2514 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
2515 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
2517 * gmon/gmon.c (__bb_head): Define as hidden.
2518 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
2520 * argp/argp-parse.c (_argp_hang): Define as static.
2522 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
2523 handling in latest compilers.
2525 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
2527 * libio/fileops.c (_IO_file_jumps): Likewise.
2528 * libio/stdfiles.c (_IO_list_all): Likewise.
2529 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
2531 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
2533 * include/malloc.h: Add __libc_malloc_initialized declaration
2534 here. Mark variable hidden.
2535 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
2537 * elf/dl-open.c (__libc_argc): Declare as hidden.
2538 (__libc_argv): Likewise.
2539 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
2540 (__libc_argv): Likewise.
2541 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
2542 __libc_argv as hidden.
2543 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2544 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2545 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2546 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2548 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
2549 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
2550 * stdlib/erand48.c: Likewise.
2551 * stdlib/jrand48.c: Likewise.
2552 * stdlib/lcong48.c: Likewise.
2553 * stdlib/lrand48.c: Likewise.
2554 * stdlib/mrand48.c: Likewise.
2555 * stdlib/nrand48.c: Likewise.
2556 * stdlib/seed48.c: Likewise.
2557 * stdlib/srand48.c: Likewise.
2559 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
2560 (_itoa_lower_digits_internal): New declaration.
2561 (_itoa_upper_digits_internal): New declaration.
2562 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
2563 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
2564 (_itoa_upper_digits_internal): New declaration.
2565 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
2567 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
2568 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
2570 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
2571 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2573 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
2574 (_itowa_lower_digits): Likewise.
2575 (_itowa_upper_digits): Likewise.
2576 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
2577 (_itowa_upper_digits): Likewise.
2579 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
2580 not already defined.
2581 (GERMANIC_PLURAL): Declare as hidden.
2583 * posix/getopt.c (__getopt_initialized): Declare as hidden.
2584 (attribute_hidden): Define as empty macro if not already defined.
2586 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
2587 (__gconv_max_path_elem_len): Likewise.
2588 (__gconv_path_envvar): Likewise.
2590 * math/Makefile (gmp-objs): Remove mp_clz_tab.
2591 * stdlib/Makefile (aux): Remove mp_clz_tab.
2592 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
2594 * stdlib/exit.h (__exit_funcs): Declare as hidden.
2596 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
2598 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
2599 _nl_category_names, _nl_category_name_sizes, _nl_current,
2600 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
2602 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
2603 (_nl_current_default_domain): Likewise
2604 (_nl_state_lock): Likewise.
2605 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
2606 (_nl_current_default_domain): Likewise
2607 (_nl_state_lock): Likewise.
2608 * intl/bindtextdom.c (_nl_state_lock): Likewise.
2610 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
2611 (_fpioconst_pow10): Likewise.
2613 * include/time.h (_tmbuf): Add attribute_hidden.
2615 * time/tzset.c (tzstring_list): Define as static.
2617 * include/time.h: Add attribute_hidden to __tzname_cur_max and
2618 __use_tzfile declaration.
2620 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
2621 and __wcsmbs_last_locale declaration.
2623 2002-02-25 Paul Eggert <eggert@twinsun.com>
2625 * timezone/Makefile (tzbases): Move systemv from here...
2626 (tzlinks): to here, since the entries in systemv were all changed
2627 from Zone to Link lines in tz-2001a. Bug reported (and patch
2628 tested) by Peter Breitenlohner.
2630 2002-03-07 Jakub Jelinek <jakub@redhat.com>
2632 * time/tst-posixtz.c (tests): Add new tests.
2633 (main): Test whether tzset() sets daylight properly.
2635 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2637 * time/tzset.c (tz_compute): Move __daylight, __tzname and
2638 __tzname_cur_max setting...
2639 (tzset_internal): ...here.
2641 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2643 * time/tzset.c (compute_change): Don't return any value.
2644 (tz_compute): Likewise. Don't handle southern hemisphere here.
2645 (__tz_convert): But here.
2647 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2649 * manual/examples/mkfsock.c: Include <string.h> as well.
2650 Patch by Alain De Carolis <alaind@wseurope.com>.
2652 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2654 * posix/regexec.c (re_match): Fix incorrect register sizes.
2655 (re_search): Likewise.
2657 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2659 * posix/regcomp.c (regfree): Remove a disused condition.
2660 * posix/regex_internal.c (re_acquire_state): Likewise.
2661 (re_acquire_state_context): Likewise.
2662 (register_state): Remove a redundant malloc invocation.
2663 * posix/regex_internal.h: (re_state_table_entry): Simplify
2666 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2668 * posix/regcomp.c (regcomp): Add __builtin_expect to error
2669 handling conditions.
2670 (regerror): Likewise.
2671 (regfree): Likewise.
2672 (re_compile_internal): Likewise.
2673 (init_dfa): Likewise.
2674 (init_word_char): Likewise.
2675 (create_initial_state): Likewise.
2676 (analyze): Likewise.
2677 (analyze_tree): Likewise.
2678 (duplicate_node): Likewise.
2679 (calc_eclosure): Likewise.
2680 (calc_eclosure_iter): Likewise.
2682 (parse_reg_exp): Likewise.
2683 (parse_branch): Likewise.
2684 (parse_expression): Likewise.
2685 (parse_subexp): Likewise.
2686 (parse_dup_op): Likewise.
2687 (parse_bracket_exp): Likewise.
2688 (build_equiv_class): Likewise.
2689 (build_charclass): Likewise.
2690 (build_word_op): Likewise.
2691 (fetch_number): Likewise.
2692 (create_tree): Likewise.
2693 (duplicate_tree): Likewise.
2694 * posix/regex.c (BE): New macro.
2695 * posix/regexec.c (re_match): Add __builtin_expect to error
2696 handling conditions.
2697 (re_match_2): Likewise.
2698 (re_search): Likewise.
2699 (re_search_internal): Likewise.
2700 (check_matching): Likewise.
2701 (proceed_next_node): Likewise.
2702 (set_regs): Likewise.
2703 (sift_states_backward): Likewise.
2704 (add_epsilon_backreference): Likewise.
2705 (transit_state): Likewise.
2706 (transit_state_sb): Likewise.
2707 (transit_state_mb): Likewise.
2708 (transit_state_bkref): Likewise.
2709 (transit_state_bkref_loop): Likewise.
2710 (build_trtable): Likewise.
2711 (group_nodes_into_DFAstates): Likewise.
2712 (match_ctx_init): Likewise.
2713 (match_ctx_add_entry): Likewise.
2714 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
2715 to error handling conditions.
2716 (re_string_construct_toupper): Likewise.
2717 (build_wcs_buffer): Likewise.
2718 (build_wcs_upper_buffer): Likewise.
2719 (build_upper_buffer): Likewise.
2720 (re_string_translate_buffer): Likewise.
2721 (re_node_set_alloc): Likewise.
2722 (re_node_set_init_1): Likewise.
2723 (re_node_set_init_2): Likewise.
2724 (re_node_set_init_copy): Likewise.
2725 (re_node_set_intersect): Likewise.
2726 (re_node_set_init_union): Likewise.
2727 (re_node_set_merge): Likewise.
2728 (re_node_set_insert): Likewise.
2729 (re_dfa_add_node): Likewise.
2730 (re_acquire_state): Likewise.
2731 (re_acquire_state_context): Likewise.
2732 (create_new_state_common): Likewise.
2733 (register_state): Likewise.
2734 (create_ci_new_state): Likewise.
2735 (create_cd_new_state): Likewise.
2736 (re_string_context_at): Remove redundant condition.
2738 2002-01-16 Roger Sayle <roger@eyesopen.com>
2740 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
2742 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
2744 2002-03-11 Jakub Jelinek <jakub@redhat.com>
2746 * sysdeps/i386/elf/configure.in: Fix comment.
2748 * sysdeps/sparc/sparc64/configure.in: New.
2749 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
2750 if .dynamic comes before .got.
2751 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
2753 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
2754 HP_TIMING_ACCUM): Fix typos.
2756 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2758 * string/strfry.c: Add some more randomness to the seed.
2759 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
2761 * po/es.po: Update from translation team.
2762 * po/fr.po: Likewise.
2764 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
2766 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
2767 when determining type of format.
2768 Patch by James Antill <james@anqd.org> [PR libc/2787].
2770 2002-03-04 Jakub Jelinek <jakub@redhat.com>
2772 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
2774 2002-03-11 Roland McGrath <roland@frob.com>
2776 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
2778 * Versions.def (libc): Add GLIBC_2.2.6.
2779 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
2780 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
2781 __errno_location instead of __hurd_errno_location, and don't inline it.
2782 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2783 * hurd/errno.c: New file.
2784 * hurd/Makefile (routines): Add errno.
2786 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2788 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
2789 ridiculously large widths and precisions [PR libc/3026].
2791 2002-03-11 Andreas Jaeger <aj@suse.de>
2793 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
2795 Patch by Susanne Oberhauser <froh@SuSE.de>.
2797 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2799 * inet/rexec.c (ahostbuf): Define as static.
2801 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
2802 (__ctype32_wctrans): Likewise.
2803 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
2804 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
2805 (__ctype32_wctrans): Likewise.
2806 (__ctype32_width): Likewise.
2808 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
2809 They were never exported anyway.
2811 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
2812 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
2814 * include/sys/gmon.h: Declare _gmonparam.
2816 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
2817 symbols for getdents64. They were never exported.
2819 2002-03-09 Roland McGrath <roland@frob.com>
2821 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
2822 Reported by Jon Arney <jarney1@cox.net>.
2824 2002-02-23 Roland McGrath <roland@frob.com>
2826 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
2828 (__hurd_errno_location): Function removed.
2830 2002-03-06 Andreas Jaeger <aj@suse.de>
2832 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
2835 2002-03-04 Andreas Jaeger <aj@suse.de>
2837 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
2839 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
2842 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
2844 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
2846 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
2848 * sysdeps/x86_64/bits/setjmp.h: New.
2850 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
2852 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
2854 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
2856 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
2857 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
2859 2002-02-28 Bo Thorsen <bo@suse.de>
2861 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
2864 2002-03-03 Andreas Jaeger <aj@suse.de>
2866 * sysdeps/x86_64/bits/wordsize.h: New file.
2868 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
2869 * elf/tst-tlsmod1.c: Likewise.
2871 * posix/regcomp.c: Get regex.h from include dir for internal
2874 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
2875 to libc-internal.h and include it.
2876 * include/libc-internal.h: Add __init_misc.
2878 * misc/init-misc.c: Include libc-internal.h for prototypes.
2880 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
2882 * misc/error.c [_LIBC]: Include libioP.h for prototype of
2885 2002-03-03 Ulrich Drepper <drepper@redhat.com>
2887 * posix/regcomp.c: Compatibility changes to allow using the code
2890 2002-02-28 Hartvig Ekner <hartvige@mips.com>
2892 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
2895 2002-03-02 Ulrich Drepper <drepper@redhat.com>
2897 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
2898 of .str elements in the returned data structure.
2900 * elf/elf.h: Add Alpha TLS bits.
2902 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2904 * sysdeps/unix/sysv/linux/nice.c: New file.
2906 2002-03-01 Ulrich Drepper <drepper@redhat.com>
2908 * elf/Makefile (dl-routines): Add dl-origin.
2909 (elide-routines.os): Add dl-origin.
2910 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
2911 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
2913 * include/libc-symbols.c: Define attribute_hidden depending on
2914 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
2916 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
2917 * elf/dl-load.c: Likewise.
2918 * elf/rtld.c: Likewise.
2919 * include/unistd.h: Declare __libc_enable_secure_internal.
2920 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
2921 Use INTUSE with __libc_enable_secure.
2922 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2924 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
2925 * elf/dl-error.c: Likewise,
2926 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
2928 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
2929 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
2930 function definition. Use INTDEF with _dl_get_origin.
2931 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2933 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
2934 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
2936 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
2937 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
2938 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
2940 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
2941 * elf/dl-deps.c: Likewise.
2942 * elf/dl-error.c: Likewise.
2943 * elf/dl-fini.c: Likewise.
2944 * elf/dl-init.c: Likewise.
2945 * elf/dl-load.c: Likewise.
2946 * elf/dl-lookup.c: Likewise.
2947 * elf/dl-reloc.c: Likewise.
2948 * elf/dl-version.c: Likewise.
2949 * elf/do-lookup.h: Likewise.
2950 * sysdeps/arm/dl-machine.h: Likewise.
2951 * sysdeps/cris/dl-machine.h: Likewise.
2952 * sysdeps/hppa/dl-machine.h: Likewise.
2953 * sysdeps/i386/dl-machine.h: Likewise.
2954 * sysdeps/m68k/dl-machine.h: Likewise.
2955 * sysdeps/powerpc/dl-machine.h: Likewise.
2956 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2957 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2958 * sysdeps/sh/dl-machine.h: Likewise.
2959 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
2960 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
2961 * sysdeps/x86_64/dl-machine.h: Likewise.
2962 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
2963 _dl_argv[0]. Use INTUSE with _dl_argv.
2964 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
2965 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
2967 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2969 * elf/rtld.c (_rtld_global): Remove .protected.
2970 (_rtld_local): Strong alias to _rtld_global.
2971 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
2973 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
2974 _rtld_local instead of _rtld_global.
2975 (_rtld_local): Add hidden extern, possibly in .sdata section.
2976 * configure.in: Add tests for visibility attribute and .sdata.
2977 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
2978 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
2979 * sysdeps/arm/dl-machine.h: Likewise.
2980 * sysdeps/generic/ldsodefs.h: Likewise.
2981 * sysdeps/hppa/dl-machine.h: Likewise.
2982 * sysdeps/cris/dl-machine.h: Likewise.
2983 * sysdeps/i386/dl-machine.h: Likewise.
2984 * sysdeps/ia64/dl-machine.h: Likewise.
2985 * sysdeps/m68k/dl-machine.h: Likewise.
2986 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2987 * sysdeps/mips/dl-machine.h: Likewise.
2988 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2989 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2990 * sysdeps/sh/dl-machine.h: Likewise.
2991 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2992 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2993 * sysdeps/x86_64/dl-machine.h: Likewise.
2995 2002-02-28 Ulrich Drepper <drepper@redhat.com>
2997 * login/login.c (login): Always initialize ut_line field
3000 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3002 * sysdeps/i386/Makefile (sysdep_routines): Add
3004 (shared-only-routines): Likewise.
3005 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3006 (shared-only-routines): Likewise.
3007 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3008 (shared-only-routines): Likewise.
3009 * sysdeps/wordsize-32/divdi3.c: New file.
3011 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3013 * locale/iso-4217.def: Remove obsolete currencies for countries
3016 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
3018 * posix/regcomp.c (regcomp): Remove a redundant condition.
3019 (init_word_char): Add a check on malloc failure.
3020 (create_initial_state): Likewise.
3021 (duplicate_node): Likewise.
3022 (calc_eclosure): Likewise.
3023 (calc_eclosure_iter): Likewise.
3024 (parse_expression): Likewise.
3025 (parse_bracket_exp): Remove unnecessary malloc invocations.
3026 (build_equiv_class): Likewise.
3027 (build_charclass): Likewise.
3028 * posix/regex_internal.c (re_node_set_intersect): Add a check
3030 (re_node_set_add_intersect): Likewise.
3031 (re_node_set_merge): Likewise.
3032 (re_acquire_state): Likewise.
3033 (re_acquire_state_context): Likewise.
3034 (create_newstate_common): Likewise.
3035 (register_state): Likewise.
3036 (create_ci_newstate): Likewise.
3037 (create_cd_newstate): Likewise.
3038 * posix/regex_internal.h: Fix prototypes of re_acquire_state
3039 and re_acquire_state_context.
3040 * posix/regexec.c (regexec): Suit it to the error handling of
3042 (re_match): Likewise.
3043 (re_search): Likewise.
3044 (re_search_internal): Add a check on malloc failure.
3045 (acquire_init_state_context): Likewise.
3046 (check_matching): Likewise.
3047 (proceed_next_node): Likewise.
3048 (set_regs): Likewise.
3049 (sift_states_backward): Likewise.
3050 (sift_states_iter_bkref): Likewise.
3051 (add_epsilon_backreference): Likewise.
3052 (transit_state): Likewise.
3053 (transit_state_sb): Likewise.
3054 (transit_state_mb): Likewise.
3055 (transit_state_bkref_loop): Likewise.
3056 (build_trtable): Likewise.
3057 (group_nodes_into_DFAstates): Likewise.
3058 (match_ctx_init): Likewise.
3059 (match_ctx_add_entry): Likewise.
3061 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3063 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3064 l_libname if profiling is enabled [PR libc/2916].
3066 * sysdeps/ia64/dl-tls.h: New file.
3068 2002-02-27 Jakub Jelinek <jakub@redhat.com>
3070 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3071 Work around an Alpha gas bug.
3073 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3075 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3076 uses read to load the catalog.
3077 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3079 2002-02-26 Ulrich Drepper <drepper@redhat.com>
3081 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3082 regex_internal.c, and regex_internal.h.
3083 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3084 * posix/regex.c: Complete rewrite.
3085 * posix/regexec.c: New file.
3086 * posix/regcomp.c: New file.
3087 * posix/regex_internal.c: New file.
3088 * posix/regex_internal.h: New file.
3089 * posix/regex.h (RE_ICASE): New macro.
3090 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3092 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3093 ungetwc. It's a macro.
3094 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3096 Reported by Jason Merrill <jason@redhat.com>.
3098 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3100 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3101 position to fp->_offset if it is set.
3102 * stdio-common/Makefile (tests): Add tst-fdopen.
3103 * stdio-common/tst-fdopen.c: New test.
3105 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3107 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3108 * stdio-common/tst-ungetc.c (main): Add another test.
3110 2002-02-25 Ulrich Drepper <drepper@redhat.com>
3112 * assert/assert-perr.c: Use INTUSE to reference functions and variables
3113 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
3114 aliases. Add prototypes for the new aliases.
3115 * assert/assert.c: Likewise.
3116 * include/libc-symbols.h: Likewise.
3117 * include/stdio.h: Likewise.
3118 * include/netinet/in.h: Likewise.
3119 * include/rpc/auth.h: Likewise.
3120 * include/rpc/auth_unix.h: Likewise.
3121 * include/rpc/key_prot.h: Likewise.
3122 * include/rpc/pmap_prot.h: Likewise.
3123 * include/rpc/pmap_rmt.h: Likewise.
3124 * include/rpc/rpc_msg.h: Likewise.
3125 * include/rpc/xdr.h: Likewise.
3126 * inet/gethstbyad_r.c: Likewise.
3127 * inet/gethstbynm2_r.c: Likewise.
3128 * inet/gethstbynm_r.c: Likewise.
3129 * inet/gethstent_r.c: Likewise.
3130 * inet/in6_addr.c: Likewise.
3131 * libio/__fpurge.c: Likewise.
3132 * libio/filedoalloc.c: Likewise.
3133 * libio/fileops.c: Likewise.
3134 * libio/ftello.c: Likewise.
3135 * libio/ftello64.c: Likewise.
3136 * libio/genops.c: Likewise.
3137 * libio/iofclose.c: Likewise.
3138 * libio/iofdopen.c: Likewise.
3139 * libio/iofflush.c: Likewise.
3140 * libio/iofflush_u.c: Likewise.
3141 * libio/iofgetpos.c: Likewise.
3142 * libio/iofgetpos64.c: Likewise.
3143 * libio/iofgets.c: Likewise.
3144 * libio/iofgets_u.c: Likewise.
3145 * libio/iofopen.c: Likewise.
3146 * libio/iofopncook.c: Likewise.
3147 * libio/iofputs.c: Likewise.
3148 * libio/iofread.c: Likewise.
3149 * libio/iofread_u.c: Likewise.
3150 * libio/iofsetpos.c: Likewise.
3151 * libio/iofsetpos64.c: Likewise.
3152 * libio/ioftell.c: Likewise.
3153 * libio/iofwrite.c: Likewise.
3154 * libio/iogetline.c: Likewise.
3155 * libio/iogets.c: Likewise.
3156 * libio/iogetwline.c: Likewise.
3157 * libio/iolibio.h: Likewise.
3158 * libio/iopadn.c: Likewise.
3159 * libio/iopopen.c: Likewise.
3160 * libio/ioseekoff.c: Likewise.
3161 * libio/ioseekpos.c: Likewise.
3162 * libio/iosetbuffer.c: Likewise.
3163 * libio/iosetvbuf.c: Likewise.
3164 * libio/ioungetc.c: Likewise.
3165 * libio/ioungetwc.c: Likewise.
3166 * libio/iovdprintf.c: Likewise.
3167 * libio/iovsprintf.c: Likewise.
3168 * libio/iovsscanf.c: Likewise.
3169 * libio/libioP.h: Likewise.
3170 * libio/memstream.c: Likewise.
3171 * libio/obprintf.c: Likewise.
3172 * libio/oldfileops.c: Likewise.
3173 * libio/oldiofclose.c: Likewise.
3174 * libio/oldiofdopen.c: Likewise.
3175 * libio/oldiofgetpos.c: Likewise.
3176 * libio/oldiofgetpos64.c: Likewise.
3177 * libio/oldiofopen.c: Likewise.
3178 * libio/oldiofsetpos.c: Likewise.
3179 * libio/oldiofsetpos64.c: Likewise.
3180 * libio/oldiopopen.c: Likewise.
3181 * libio/oldstdfiles.c: Likewise.
3182 * libio/putc.c: Likewise.
3183 * libio/setbuf.c: Likewise.
3184 * libio/setlinebuf.c: Likewise.
3185 * libio/stdfiles.c: Likewise.
3186 * libio/stdio.c: Likewise.
3187 * libio/strops.c: Likewise.
3188 * libio/vasprintf.c: Likewise.
3189 * libio/vscanf.c: Likewise.
3190 * libio/vsnprintf.c: Likewise.
3191 * libio/vswprintf.c: Likewise.
3192 * libio/wfiledoalloc.c: Likewise.
3193 * libio/wfileops.c: Likewise.
3194 * libio/wgenops.c: Likewise.
3195 * libio/wstrops.c: Likewise.
3196 * malloc/mtrace.c: Likewise.
3197 * misc/error.c: Likewise.
3198 * misc/syslog.c: Likewise.
3199 * nss/getXXbyYY_r.c: Likewise.
3200 * nss/getXXent_r.c: Likewise.
3201 * nss/hosts-lookup.c: Likewise.
3202 * stdio-common/getw.c
3203 * stdio-common/printf-prs.c: Likewise.
3204 * stdio-common/printf_fp.c: Likewise.
3205 * stdio-common/printf_size.c: Likewise.
3206 * stdio-common/putw.c: Likewise.
3207 * stdio-common/scanf.c: Likewise.
3208 * stdio-common/sprintf.c: Likewise.
3209 * stdio-common/tmpfile64.c: Likewise.
3210 * stdio-common/vfprintf.c: Likewise.
3211 * stdio-common/vfscanf.c: Likewise.
3212 * stdlib/strfmon.c: Likewise.
3213 * sunrpc/auth_des.c: Likewise.
3214 * sunrpc/auth_none.c: Likewise.
3215 * sunrpc/auth_unix.c: Likewise.
3216 * sunrpc/authdes_prot.c: Likewise.
3217 * sunrpc/authuxprot.c: Likewise.
3218 * sunrpc/clnt_perr.c: Likewise.
3219 * sunrpc/clnt_raw.c: Likewise.
3220 * sunrpc/clnt_tcp.c: Likewise.
3221 * sunrpc/clnt_udp.c: Likewise.
3222 * sunrpc/clnt_unix.c: Likewise.
3223 * sunrpc/key_call.c: Likewise.
3224 * sunrpc/key_prot.c: Likewise.
3225 * sunrpc/openchild.c: Likewise.
3226 * sunrpc/pm_getmaps.c: Likewise.
3227 * sunrpc/pm_getport.c: Likewise.
3228 * sunrpc/pmap_clnt.c: Likewise.
3229 * sunrpc/pmap_prot.c: Likewise.
3230 * sunrpc/pmap_prot2.c: Likewise.
3231 * sunrpc/pmap_rmt.c: Likewise.
3232 * sunrpc/rpc_cmsg.c: Likewise.
3233 * sunrpc/rpc_prot.c: Likewise.
3234 * sunrpc/svc_authux.c: Likewise.
3235 * sunrpc/svc_raw.c: Likewise.
3236 * sunrpc/svc_simple.c: Likewise.
3237 * sunrpc/svc_tcp.c: Likewise.
3238 * sunrpc/svc_udp.c: Likewise.
3239 * sunrpc/svc_unix.c: Likewise.
3240 * sunrpc/xdr.c: Likewise.
3241 * sunrpc/xdr_array.c: Likewise.
3242 * sunrpc/xdr_mem.c: Likewise.
3243 * sunrpc/xdr_rec.c: Likewise.
3244 * sunrpc/xdr_ref.c: Likewise.
3245 * sunrpc/xdr_stdio.c: Likewise.
3246 * sysdeps/generic/_strerror.c: Likewise.
3247 * sysdeps/generic/printf_fphex.c: Likewise.
3248 * sysdeps/generic/tmpfile.c: Likewise.
3249 * sysdeps/gnu/errlist.awk: Likewise.
3250 * sysdeps/gnu/errlist.c: Likewise.
3252 * libio/Makefile (routines): Remove iosprint.
3253 * libio/iosprintf.c: Removed
3256 2002-02-24 Ulrich Drepper <drepper@redhat.com>
3258 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
3259 non_dynamic_init and exported now.
3260 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
3261 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
3263 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3264 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3265 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3267 2002-02-23 Ulrich Drepper <drepper@redhat.com>
3269 * elf/dl-close.c (free_slotinfo): Check for end of list and return
3272 * locale/iso-639.def: Add language codes for Walloon.
3274 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
3275 total number of relocations performed.
3277 * elf/sprof.c (load_profdata): If do_test provide information as
3278 to why loading failed.
3279 * elf/dl-profile.c (_dl_start_profile): Initialize all of
3282 * csu/set-init.c: Moved to...
3283 * sysdeps/mach/hurd/set-init.c: ...here. New file.
3284 * csu/Makefile: Don't compile set-init.
3285 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
3286 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
3288 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3289 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3290 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
3292 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
3295 2002-02-22 Ulrich Drepper <drepper@redhat.com>
3297 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
3298 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
3299 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
3300 (_dl_deallocate_tls): New function.
3301 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
3304 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3306 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
3307 * stdio-common/tst-fseek.c (main): Add test for this.
3309 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
3311 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
3313 2002-02-19 Jakub Jelinek <jakub@redhat.com>
3315 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
3316 pointer before dereferencing.
3318 2002-02-18 Roland McGrath <roland@frob.com>
3320 * sysdeps/mach/hurd/times.c: Fix typo in last change.
3322 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
3323 Use task_policy in place of task_priority.
3325 * sysdeps/generic/bits/mman.h
3326 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
3327 * sysdeps/mach/msync.c: New file.
3329 * sysdeps/mach/powerpc/syscall.S: New file.
3331 * mach/msg.c [MACH_MSG_OVERWRITE]
3332 (__mach_msg_trap, __mach_msg_overwrite): New functions.
3333 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
3335 * sysdeps/mach/configure.in: Check for clock.defs to put into
3336 mach_interface_list.
3337 * sysdeps/mach/configure: Regenerated.
3339 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
3340 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
3341 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
3342 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
3343 (mach-shortcuts): Add device_read_overwrite_request,
3344 device_read_overwrite, vm_read_overwrite, thread_switch.
3346 * configure.in (base_machine): Set to $machine by default.
3347 * configure: Regenerated.
3349 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
3350 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
3351 * sysdeps/mach/configure: Regenerated.
3352 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
3354 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
3356 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
3358 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
3359 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
3361 2002-02-17 Roland McGrath <roland@frob.com>
3363 * sysdeps/mach/hurd/times.c
3364 [NO_CREATION_TIME] (startup_time): New static variable.
3365 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
3366 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
3367 creation_time from task_basic_info.
3368 (__times): Use __gettimeofday instead of __host_get_time.
3370 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
3371 Use untyped Mach IPC message format.
3373 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
3375 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
3376 _S_catch_exception_raise_state_identity,
3377 _hurdsig_fault_catch_exception_raise_state,
3378 _hurdsig_fault_catch_exception_raise_state_identity.
3380 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
3382 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
3383 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
3385 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
3386 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
3388 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
3389 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
3390 them as no-op macros.
3391 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
3392 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
3394 * sysdeps/powerpc/dl-machine.h
3395 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
3397 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
3398 Use untyped Mach IPC message format.
3400 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
3401 Handle untyped Mach IPC message formats.
3403 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
3404 Expect different argument conventions when this is defined.
3405 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
3406 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
3407 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
3408 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
3409 for OSF Mach variant.
3410 (faulted): Use mig_reply_error_t for REPLY.
3411 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
3412 in __thread_set_exception_ports call.
3413 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
3414 __mach_port_set_attributes in place of __mach_port_set_qlimit.
3416 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
3417 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
3418 on Darwin, which includes bogons.
3420 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
3421 variable LOADBASE so it's not declared when it's not used.
3423 2002-02-16 Roland McGrath <roland@frob.com>
3425 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
3426 to use BI.creation_time.
3428 * mach/Machrules (MIG): Add -x c to CPP value passed down.
3430 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
3431 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
3432 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
3433 host_page_size instead of vm_statistics.
3435 * sysdeps/mach/Makefile (mach-before-compile): Don't include
3436 mach_interface.h here, since not all variants use that name.
3438 * sysdeps/mach/configure.in: Add some checks for Mach headers
3439 to ensure a sane installation.
3440 (mach_interface_list): Define this variable by checking for .defs
3441 files found in various variants.
3442 * configure.in (mach_interface_list): AC_SUBST this.
3443 * config.make.in (mach-interface-list): New substituted variable.
3444 * mach/Makefile (user-interfaces): Define this using the value
3445 of $(mach-interface-list) instead of mach, mach4.
3446 Updated other references to mach_interface to use it as well.
3448 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
3450 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
3451 mig_reply_error_t for OSF Mach variant.
3453 * mach/Makefile (routines): Remove bootprivport.
3454 * mach/bootprivport.c: File removed. It has never been used.
3456 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
3457 Grok the OSF flavor of message format.
3458 (mach_msg_destroy_port): For MAKE_SEND and
3459 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
3460 no-senders notification.
3462 2002-02-06 Roland McGrath <roland@frob.com>
3464 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
3465 to here if 2.0 compatibility enabled ...
3466 (libc: GLIBC_2.1.3): ... from here.
3468 2002-02-15 Ulrich Drepper <drepper@redhat.com>
3470 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
3472 * elf/dl-close.c (_dl_close): Likewise.
3474 2002-02-14 Ulrich Drepper <drepper@redhat.com>
3476 * elf/Makefile: Add rules to build and run tst-tls8.
3477 * elf/tst-tls8.c: New file.
3478 * elf/tst-tlsmod4.c: New file.
3480 * stdlib/test-a64l.c (tests): Add more test cases.
3482 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
3483 Reported by Walter Harms <WHarms@bfs.de>.
3485 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
3487 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
3488 definitions for struct sigcontext.
3489 Suggested by David Mosberger-Tang.
3491 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3493 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
3494 for removing reference of module in slotinfo list.
3495 (_dl_close): Use remove_slotinfo.
3496 * sysdeps/generic/dl-tls.c: General pretty printing.
3497 (oom): Define only if SHARED.
3498 (_dl_next_tls_modid): Correct starting point for the case we assume
3499 there is a gap. Add missing instruction grouping (doh!). Correct
3500 tests for reaching maximum index.
3501 * elf/Makefile: Add rules to build and run tst-tls7.
3502 * elf/tst-tls7.c: New file.
3503 * elf/tst-tlsmod3.c: New file.
3505 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
3507 * elf/tst-tlsmod2.c: Likewise.
3509 * elf/dl-close.c (_dl_close): When closing an object using TLS
3510 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
3511 true. Increment dl_tls_generation only if we closed any TLS-using
3513 * elf/tst-tls6.c: New file.
3514 * elf/Makefile: Add rules to build and run tst-tls6.
3516 * po/da.po: Update from translation team.
3518 * locale/categories.def: Fix typo [PR libc/2948].
3519 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
3521 * locale/iso-4217.def: Update from official version [PR libc/2950].
3522 * glibcbug.in: Honor TMPDIR [PR libc/2951].
3523 * locale/programs/ld-collate.c (collate_finish): Bail out with a
3524 message if input is too confusion instead of using assert.
3525 (collate_read): Don't crash on unknown symbol [PR libc/2952].
3526 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
3528 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
3529 * elf/tst-tls2.c: Likewise.
3530 * elf/tst-tls3.c: Likewise.
3532 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3534 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
3536 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3538 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
3539 if this is really necessary.
3541 * elf/dl-close.c (_dl_close): Implement freeing entries in the
3543 (free_mem): Free memory for the slotinfo array if possible.
3545 2002-02-12 Andreas Schwab <schwab@suse.de>
3547 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
3549 2002-02-12 Ulrich Drepper <drepper@redhat.com>
3551 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
3553 (oom): New function.
3554 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
3555 (_dl_determine_tlsoffset): Likewise.
3556 (_dl_allocate_tls): Likewise.
3557 (__TLS_GET_ADDR): Define if not already defined.
3558 (_dl_tls_symaddr): New function.
3559 (allocate_and_init): New function.
3560 (__tls_get_addr): Actually implement handling of generation counter
3561 and deferred allocation.
3562 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
3563 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3565 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
3566 Declare _dl_tls_symaddr.
3567 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
3569 * include/link.h (struct link_map): Remove l_tls_nextimage and
3571 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
3572 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
3573 (_dl_vsym): Likewise.
3574 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
3576 (dl_main): Allow PT_TLS be present for empty segment. Remove
3577 nextimage list handling. Instead add all modules using TLS to
3578 dl_tls_dtv_slotinfo_list.
3579 * elf/dl-open.c (dl_open_worker): After successfully loading all
3580 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
3581 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
3582 empty segment don't do anything. Remove handling of initimage list.
3583 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
3584 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
3585 * elf/dl-minimal.c: Define __libc_memalign.
3586 * elf/dl-support.c: Remove _dl_initimage_list. Add
3587 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3589 * include/stdlib.h: Declare __libc_memalign.
3591 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
3592 * elf/tst-tls4.c: New file.
3593 * elf/tst-tls5.c: New file.
3594 * elf/tst-tlsmod2.c: New file.
3596 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
3598 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
3600 * elf/tst-tls1.c: Use test-skeleton.c.
3601 * elf/tst-tls2.c: Likewise.
3602 * elf/tst-tls3.c: Likewise.
3604 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
3606 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3608 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
3610 2002-02-10 Ulrich Drepper <drepper@redhat.com>
3612 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
3614 * elf/tst-tls3.c: New file.
3615 * elf/tst-tlsmod1.c: New file.
3616 * elf/Makefile: Add rules to build and run tst-tls3.
3618 * sysdeps/i386/dl-machine.h: Include <tls.h>.
3619 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
3622 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
3624 * po/fr.po: Update from translation team.
3626 * elf/tls-macros.h: Add alternative macros for use in PIC.
3628 * elf/dl-lookup.c: Include <tls.h>.
3629 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
3631 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
3632 required by passing pointer to last element of the list.
3634 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
3635 l_tls_initimage to a place where it actually is performed.
3637 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
3638 after globfree() calls.
3640 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
3641 (openaux): Pass open_mode as new last argument to _dl_map_object.
3642 (_dl_map_object_deps): Add new argument open_mode. Initialize
3643 open_mode element of args variable with it.
3644 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
3645 _dl_map_object_deps.
3646 * elf/rtld.c (dl_main): Add zero as last parameter to
3647 _dl_map_object_deps call.
3648 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
3649 * elf/nodlopen2.c: New file.
3650 * elf/nodlopenmod2.c: New file.
3651 * elf/Makefile: Add rules to build and run nodlopen2.
3653 * elf/tst-tls1.c: Move TLS helper macros to...
3654 * elf/tls-macros.h: ...here. New file.
3655 * elf/tst-tls2.c: New file.
3656 * elf/Makefile (tests): Add tst-tls2.
3657 (distribute): Add tls-macros.h.
3659 * po/sv.po: Update from translation team.
3661 * elf/tst-tls1.c (main): Add complete set of tests. Split
3662 architecture specific definitions from the actual test code.
3664 * po/tr.po: Update from translation team.
3666 2002-02-09 Ulrich Drepper <drepper@redhat.com>
3668 * elf/Makefile (tests): Add tst-tls1.
3669 * elf/tst-tls1.c: New file.
3671 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
3672 alignment of TCB for now.
3674 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
3675 initialization image for the application itself.
3677 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
3678 loop to initialize TLS block.
3680 2002-02-08 Richard Henderson <rth@redhat.com>
3682 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
3683 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
3685 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
3687 2002-02-09 Jakub Jelinek <jakub@redhat.com>
3689 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
3691 2002-02-08 Ulrich Drepper <drepper@redhat.com>
3693 * po/ca.po: Update from translation team.
3694 * po/sk.po: Likewise.
3696 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
3697 (dl_main): Move dtv/static TLS handling before relocation.
3698 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
3699 TLS_INIT_TP to allocate and install the dtv/static TLS block.
3700 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
3701 so far uses TLS initialize GL(dl_tls_static_size) and
3702 GL(dl_tls_static_align) to account for the TCB.
3703 (_dl_allocate_tls): New function.
3704 * sysdeps/generic/ldsodefs.h (rtld_global): Add
3705 _dl_initial_dtv_malloced.
3707 * configure.in: Test for __builtin_memset more realistically.
3709 * csu/version.c (banner): If TLS support is available say so.
3711 2002-02-04 H.J. Lu <hjl@gnu.org>
3713 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
3715 (__dl_runtime_resolve): Likewise.
3717 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
3720 2001-11-15 H.J. Lu <hjl@gnu.org>
3722 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
3723 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
3725 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
3727 2002-02-07 H.J. Lu <hjl@gnu.org>
3729 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
3731 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
3734 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3736 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
3738 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
3739 ___tls_get_addr_internal.
3740 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
3742 * po/ko.po: Update from translation team.
3744 2002-02-07 Jakub Jelinek <jakub@redhat.com>
3746 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
3747 attribute, change __pad{1,2} type to unsigned int.
3748 (struct stat64): Remove packed attribute.
3750 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3752 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
3754 2002-02-07 Andreas Schwab <schwab@suse.de>
3756 * configure.in: Fix check for -zcombreloc.
3758 2002-02-06 H.J. Lu <hjl@gnu.org>
3760 * config.h.in (HAVE_BUILTIN_MEMSET): New.
3761 * configure.in: Check if __builtin_memset really works.
3762 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
3763 __GNUC_PREREQ (2, 96) before using __builtin_memset.
3765 2002-02-06 Jakub Jelinek <jakub@redhat.com>
3767 * io/bug-ftw3.c (main): Don't try the test if root.
3769 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3771 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
3773 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
3774 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
3775 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
3777 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
3778 a weak alias for __clone.
3779 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
3780 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
3781 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
3782 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
3783 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
3784 a weak alias for __mmap64.
3786 2002-02-05 H.J. Lu <hjl@gnu.org>
3788 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
3789 (atomic_add): Likewise.
3790 (compare_and_swap): Likewise.
3791 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
3793 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3795 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
3797 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
3798 alignment of the TCB and store total size and alignment of static
3799 TLS block in _dl_tls_static_size and _dl_tls_static_align.
3800 tls_index is a typedef.
3801 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
3802 _dl_tls_static_align.
3803 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
3804 * elf/dl-support.c: Define _dl_tls_static_size and
3805 _dl_tls_static_align.
3807 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3809 * configure.in: Add --without-tls option.
3810 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
3811 --without-tls is given.
3813 * sysdeps/generic/dl-tls.c: Include <tls.h>.
3815 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
3817 2002-02-06 Roland McGrath <roland@frob.com>
3819 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
3820 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
3822 * scripts/versions.awk: Improve error message for missing version.
3823 Each version inherits from the last one only if they have the same
3824 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
3825 but not GLIBC_x and FOO_y.
3827 * scripts/firstversions.awk: Handle libraries that don't have each
3828 particular version named in the third column of shlib-versions.
3830 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
3832 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3834 * Versions.def [ld]: Add GLIBC_2.3.
3835 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
3836 * elf/Makefile (dl-routines): Add dl-tls.
3837 (distribute): Add dl-tls.h.
3838 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3839 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3840 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
3841 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
3842 along with the other info in the link map. Change queueing of init
3843 images for double linked list. Use _dl_next_tls_modid to compute
3845 * elf/rtld.c (_dl_start_final): Store alignment requirement
3846 along with the other info in rtld map and executable map.
3847 (dl_main): Add ld.so to the init image list if necessary. Compute
3848 final module ID with _dl_next_tls_modid.
3849 * include/link.h (struct link_map): Add l_tls_previmage and
3851 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3852 * sysdeps/i386/elf/Versions: New file.
3853 * sysdeps/generic/dl-tls.c: New file.
3854 * sysdeps/generic/dl-tls.h: New file.
3855 * sysdeps/i386/dl-tls.h: New file.
3857 2002-02-06 Roland McGrath <roland@frob.com>
3859 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
3860 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
3862 2002-01-05 Roland McGrath <roland@frob.com>
3864 * sysdeps/mach/configure.in: New file.
3865 * sysdeps/mach/configure: New generated file.
3867 * mach/Makefile (user-interfaces): Remove default_pager_helper.
3868 It has never been used by anything.
3870 2002-02-06 H.J. Lu <hjl@gnu.org>
3872 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
3875 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3877 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
3878 attribute((packed)) to counter stupid people misusing gcc options.
3879 (struct stat64): Likewise.
3881 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3883 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
3884 the variables which are used as booleans.
3886 2002-02-06 Andreas Jaeger <aj@suse.de>
3888 * include/libc-symbols.h (INTUSE): Renamed from INT.
3889 * elf/dl-deps.c: Change users.
3890 * sysdeps/generic/dl-sysdep.c: Likewise.
3891 * sysdeps/generic/dl-cache.c: Likewise.
3892 * elf/dl-reloc.c: Likewise.
3893 * elf/rtld.c: Likewise.
3894 * elf/dl-version.c: Likewise.
3895 * elf/dl-load.c: Likewise.
3896 * elf/dl-dst.h: Likewise.
3897 * elf/dl-init.c: Likewise.
3898 * elf/dl-error.c: Likewise.
3899 * elf/dl-fini.c: Likewise.
3900 * elf/dl-runtime.c: Likewise.
3901 * elf/do-lookup.h: Likewise.
3903 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
3905 * stdio-common/_itowa.h: Likewise.
3907 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3909 * elf/dl-minimal.c: Define _itoa_lower_digits.
3911 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
3914 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
3915 loading modules with the DF_STATIC_TLS flag set.
3916 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
3918 * include/link.h (struct link_map): Add l_flags field.
3919 * elf/elf.h (DF_STATIC_TLS): New definition.
3921 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
3922 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
3924 * elf/rtld.c (process_dl_debug): Correct printing help message.
3925 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
3928 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
3929 definition and pass &errno in use of this variable.
3930 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
3932 2002-02-04 Andreas Schwab <schwab@suse.de>
3934 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
3935 * locale/programs/charmap-dir.c: Wrap calls that output messages
3936 with WITH_CUR_LOCALE. Include "localedef.h" first.
3937 * locale/programs/charmap.c: Likewise.
3938 * locale/programs/ld-address.c: Likewise.
3939 * locale/programs/ld-collate.c: Likewise.
3940 * locale/programs/ld-ctype.c: Likewise.
3941 * locale/programs/ld-identification.c: Likewise.
3942 * locale/programs/ld-measurement.c: Likewise.
3943 * locale/programs/ld-messages.c: Likewise.
3944 * locale/programs/ld-monetary.c: Likewise.
3945 * locale/programs/ld-name.c: Likewise.
3946 * locale/programs/ld-numeric.c: Likewise.
3947 * locale/programs/ld-paper.c: Likewise.
3948 * locale/programs/ld-telephone.c: Likewise.
3949 * locale/programs/ld-time.c: Likewise.
3950 * locale/programs/linereader.c: Likewise.
3951 * locale/programs/linereader.h: Likewise.
3952 * locale/programs/localedef.c: Likewise.
3953 * locale/programs/locfile.c: Likewise.
3954 * locale/programs/repertoire.c: Likewise.
3956 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3958 * elf/rtld.c (_dl_start_final): Determine load address to locate
3959 ehdr with GL(dl_rtld_map).l_map_start.
3961 * po/ca.po: Update from translation team.
3963 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
3964 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
3966 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3968 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
3970 2002-02-04 Ulrich Drepper <drepper@redhat.com>
3972 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
3973 * include/link.h (struct link_map): Add various members for TLS
3975 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3976 _rtld_tlsoffset, add _dl_initimage_list.
3977 * sysdeps/i386/dl-lookupcfg.h: New file.
3978 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
3979 TLS relocation. When using TLS we now use RESOLVE_MAP.
3980 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
3983 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
3986 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
3987 thread-pointer as soon as possible.
3988 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
3989 elements in rtld_global.
3990 * sysdeps/generic/tls.h: New file.
3991 * elf/Makefile (distribute): Add tls.h.
3992 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
3993 relocations. Not complete yet.
3995 * resolv/resolv.h: Allow user to define __need_res_state and only
3996 define __res_start structure then.
3997 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
3999 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4000 dl_cpuclock_offset initialization to _dl_start_final.
4001 (_dl_show_auxv): Avoid unnecessary sign extension.
4002 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4004 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4006 * config.h.in: Add HAVE_TLS_SUPPORT.
4007 * sysdeps/i386/elf/configure.in: New file.
4009 2002-02-03 Andreas Schwab <schwab@suse.de>
4011 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4012 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
4014 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
4016 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4017 alloca if the memory reqirements are too high.
4019 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4021 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4022 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4023 the former is available anyway and speed isn't important here.
4024 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4025 * elf/dl-version.c (match_symbol): Likewise.
4026 (_dl_check_map_versions): Likewise.
4027 * elf/rtld.c (process_envvars): Likewise.
4028 (print_statistics): Likewise.
4029 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4030 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
4031 bases. Add assert to catch uses of unimplemented features.
4032 (__strsep): Add assert to catch uses of unimplemented features.
4033 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
4034 and avoid inline optimization.
4035 * elf/rtld.c (process_envvars): Likewise.
4036 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4037 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4038 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4040 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4042 * stdio-common/_itoa.h: Minor simplifications of the code.
4043 * stdio-common/_itoa.c: Likewise.
4045 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4046 instead of _dl_printf for debugging info output.
4048 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4049 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4051 2002-02-01 H.J. Lu <hjl@gnu.org>
4053 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
4054 (atomic_add): Likewise.
4055 (compare_and_swap): Return 0 only when failed to compare. Use
4058 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4061 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
4063 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4065 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4067 * elf/dl-minimal.c (__strsep): New minimal implementation.
4069 2002-02-02 Paul Eggert <eggert@twinsun.com>
4071 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4072 (__mktime_internal): If no tm_isdst is requested, prefer solutions
4073 with tm_isdst > 0 when the requested time falls within a
4074 spring-forward gap [PR libc/2894].
4076 2002-02-03 Andreas Schwab <schwab@suse.de>
4078 * stdio-common/tst-rndseek.c: Increase timeout.
4080 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4082 Change ld.so to not use functions which are exported. One cannot
4083 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
4085 * include/libc-symbols.h: Define INT and INTDEF.
4086 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4087 _dl_signal_error_internal, _dl_map_object_internal,
4088 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4089 _dl_lookup_versioned_symbol_internal,
4090 _dl_relocate_object_internal, _dl_debug_state_internal,
4091 _dl_start_profile_internal, and _dl_unload_cache_internal.
4092 * include/dlfcn.h: Declare _dl_catch_error_internal.
4093 * elf/rtld.c: Use INT for calls to any of the *_internal functions
4094 above. Add INTDEF to function definitions.
4095 * elf/dl-debug.c: Likewise.
4096 * elf/dl-deps.c: Likewise.
4097 * elf/dl-dst.h: Likewise.
4098 * elf/dl-error.c: Likewise.
4099 * elf/dl-fini.c: Likewise.
4100 * elf/dl-init.c: Likewise.
4101 * elf/dl-load.c: Likewise.
4102 * elf/dl-lookup.c: Likewise.
4103 * elf/dl-misc.c: Likewise.
4104 * elf/dl-open.c: Likewise.
4105 * elf/dl-profile.c: Likewise.
4106 * elf/dl-reloc.c: Likewise.
4107 * elf/dl-runtime.c: Likewise.
4108 * elf/dl-version.c: Likewise.
4109 * elf/do-lookup.h: Likewise.
4110 * sysdeps/generic/dl-cache.c: Likewise.
4111 * sysdeps/generic/dl-sysdep.c: Likewise.
4112 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4113 instead of _dl_init.
4114 * sysdeps/arm/dl-machine.h: Likewise.
4115 * sysdeps/cris/dl-machine.h: Likewise.
4116 * sysdeps/hppa/dl-machine.h: Likewise.
4117 * sysdeps/i386/dl-machine.h: Likewise.
4118 * sysdeps/ia64/dl-machine.h: Likewise.
4119 * sysdeps/m68k/dl-machine.h: Likewise.
4120 * sysdeps/mips/dl-machine.h: Likewise.
4121 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4122 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4123 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4124 * sysdeps/sh/dl-machine.h: Likewise.
4125 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4126 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4127 * sysdeps/x86_64/dl-machine.h: Likewise.
4128 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4130 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4131 and _dl_debug_initialize.
4133 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
4135 * elf/rtld.c (dl_main): Avoid strrchr.
4136 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4137 result of readlink. Search from the back for '/'.
4139 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4140 strncpy if possible.
4142 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
4144 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
4145 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4146 strspn, and strcspn.
4147 (process_envvars): Don't use strcspn.
4149 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4150 (_dl_dst_substitute): Likewise.
4152 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4154 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4155 code which is never used when relocating ld.so itself.
4157 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4158 starting ld.so itself. Move l_addr variable initialization closer
4160 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
4162 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4164 * Versions.def (libc): Add GLIBC_PRIVATE.
4165 (libdb, libnss_db, libdb1): Remove.
4166 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4167 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4168 (libpthread): Add GLIBC_PRIVATE.
4169 (libresolv): Likewise, remove GLIBC_2.1.
4170 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4171 GLIBC_2.2.3, GLIBC_2.3.
4172 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4173 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4174 _dl_sym, _dl_vsym): Likewise.
4175 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4176 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4177 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4178 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4179 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4180 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4181 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4182 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4184 (_dl_object_relocation_scope): Remove.
4185 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4186 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4187 __gconv_cache): Move to GLIBC_PRIVATE.
4188 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4189 __internal_setnetgrent): Likewise.
4190 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4191 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4192 * locale/Versions (__collate_element_hash, __collate_element_strings,
4193 __collate_symbol_classes, __collate_symbol_hash,
4194 __collate_symbol_strings, _nl_current_LC_COLLATE,
4195 _nl_current_LC_CTYPE): Likewise.
4196 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4197 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4198 (libnss_nis, libnss_nisplus): Likewise.
4199 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4200 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4201 (libnss_files): Move all symbols to GLIBC_PRIVATE.
4202 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4203 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4204 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4205 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4206 __ns_get16, __ns_samename): Likewise.
4207 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4208 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
4210 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
4211 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
4212 __libc_connect): Likewise.
4213 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
4215 * stdlib/Versions (__libc_system): Likewise.
4216 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
4217 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
4218 * sysdeps/ia64/fpu/Versions: Likewise.
4219 * sysdeps/ia64/Versions: Likewise.
4220 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4221 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
4223 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
4224 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
4225 __libc_sigaction): Likewise.
4226 * termios/Versions (__libc_tcdrain): Likewise.
4228 * misc/sys/cdefs (__attribute_noinline__): Define.
4229 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
4230 __attribute_noinline__.
4232 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
4233 * elf/dl-xstat64.c: New file.
4234 * elf/dl-fxstat64.c: New file.
4235 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
4236 don't export __fxstat64 at multiple versions.
4237 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
4238 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
4240 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
4242 * locale/program/ld-collate.c (collate_finish): Assign a wide
4243 char collation sequence value to multi character collating
4244 elements, and avoid over writing by non-character elements.
4246 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4248 * elf/Makefile (distribute): Add dl-procinfo.c.
4249 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
4250 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
4252 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4254 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
4256 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
4257 _rtld_global struct.
4258 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4259 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4260 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4261 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
4262 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
4263 _dl_fpu_control_set): Remove unused externs.
4264 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
4265 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
4266 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
4267 related variables in _rtld_global struct.
4268 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4269 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
4272 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4274 * sysdeps/generic/dl-procinfo.c: New file.
4276 2002-02-01 Andreas Schwab <schwab@suse.de>
4278 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
4280 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4282 * elf/rtld.c (_dl_start): Mark as internal_function.
4283 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
4285 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
4286 General pretty printing.
4288 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4290 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
4291 * elf/dl-reloc.c: Pretty printing.
4292 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
4293 procinfo-related variables in rtld_global struct.
4294 * elf/dl-support.c: Likewise.
4295 * elf/rtld.c: Likewise.
4296 * sysdeps/i386/i686/Makefile: Likewise.
4297 * sysdeps/i386/i686/hp-timing.c: Likewise.
4298 * sysdeps/i386/i686/hp-timing.h: Likewise.
4299 * sysdeps/ia64/Makefile: Likewise.
4300 * sysdeps/ia64/hp-timing.c: Likewise.
4301 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4302 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4303 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
4304 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
4305 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4306 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
4307 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4308 * sysdeps/x86_64/Makefile: Likewise.
4310 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4311 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
4312 _dl_debug_fd to rtld_global.
4313 * elf/Versions: Likewise.
4314 * elf/dl-close.c: Likewise.
4315 * elf/dl-iteratephdr.c: Likewise.
4316 * elf/dl-lookup.c: Likewise.
4317 * elf/dl-misc.c: Likewise.
4318 * elf/dl-open.c: Likewise.
4319 * elf/dl-support.c: Likewise.
4320 * elf/do-lookup.h: Likewise.
4321 * elf/rtld.c: Likewise.
4322 * sysdeps/generic/dl-cache.c: Likewise.
4323 * sysdeps/generic/dl-sysdep.c: Likewise.
4324 * sysdeps/ia64/Versions: Likewise.
4325 * sysdeps/unix/clock_gettime.c: Likewise.
4326 * sysdeps/unix/clock_settime.c: Likewise.
4327 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4328 * sysdeps/sparc/Versions: Removed.
4329 * sysdeps/i386/i686/Versions : Removed.
4330 * sysdeps/x86_64/Versions: Removed.
4331 * configure.in: Define HAVE_PROTECTED if .protected is available.
4332 * config.h.in: Add entry for HAVE_PROTECTED.
4334 2002-01-31 Jakub Jelinek <jakub@redhat.com.
4336 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
4337 code in struct _rtld_global. Export this struct, remove all
4338 exports for the signal variables.
4339 * sysdeps/arm/dl-machine: Likewise.
4340 * sysdeps/generic/dl-origin: Likewise.
4341 * sysdeps/generic/dl-sysdep: Likewise.
4342 * sysdeps/generic/dl-cache: Likewise.
4343 * sysdeps/hppa/dl-fptr: Likewise.
4344 * sysdeps/hppa/dl-machine: Likewise.
4345 * sysdeps/cris/dl-machine: Likewise.
4346 * sysdeps/i386/dl-machine: Likewise.
4347 * sysdeps/ia64/dl-machine: Likewise.
4348 * sysdeps/m68k/dl-machine: Likewise.
4349 * sysdeps/mach/hurd/dl-sysdep: Likewise.
4350 * sysdeps/mips/mips64/dl-machine: Likewise.
4351 * sysdeps/mips/dl-machine: Likewise.
4352 * sysdeps/powerpc/elf/libc-start: Likewise.
4353 * sysdeps/powerpc/dl-machine: Likewise.
4354 * sysdeps/powerpc/dl-start: Likewise.
4355 * sysdeps/sparc/sparc32/dl-machine: Likewise.
4356 * sysdeps/sparc/sparc64/dl-machine: Likewise.
4357 * sysdeps/sh/dl-machine: Likewise.
4358 * sysdeps/s390/s390-32/dl-machine: Likewise.
4359 * sysdeps/s390/s390-64/dl-machine: Likewise.
4360 * sysdeps/unix/sysv/aix/libc-start: Likewise.
4361 * sysdeps/unix/sysv/aix/start-libc: Likewise.
4362 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
4363 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
4364 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
4365 * sysdeps/x86_64/dl-machine: Likewise.
4367 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4369 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
4372 2002-01-31 Andreas Schwab <schwab@suse.de>
4374 * sysdeps/posix/readv.c: Check for ssize_t overflow.
4376 2002-01-31 Andreas Schwab <schwab@suse.de>
4378 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
4379 reference to _dl_pagesize.
4381 2002-01-30 Ulrich Drepper <drepper@redhat.com>
4383 * Versions.def [ld]: Add GLIBC_2.3.
4384 * elf/dl-addr.c: Move global variables for SHARED code in struct
4385 _rtld_global. Export this struct, remove all exports for the
4387 * elf/dl-close.c: Likewise.
4388 * elf/dl-conflict.c: Likewise.
4389 * elf/dl-debug.c: Likewise.
4390 * elf/dl-deps.c: Likewise.
4391 * elf/dl-dst.h: Likewise.
4392 * elf/dl-error.c: Likewise.
4393 * elf/dl-fini.c: Likewise.
4394 * elf/dl-init.c: Likewise.
4395 * elf/dl-iteratephdr.c: Likewise.
4396 * elf/dl-libc.c: Likewise.
4397 * elf/dl-load.c: Likewise.
4398 * elf/dl-lookup.c: Likewise.
4399 * elf/dl-minimal.c: Likewise.
4400 * elf/dl-object.c: Likewise.
4401 * elf/dl-open.c: Likewise.
4402 * elf/dl-profile.c: Likewise.
4403 * elf/dl-profstub.c: Likewise.
4404 * elf/dl-reloc.c: Likewise.
4405 * elf/dl-runtime.c: Likewise.
4406 * elf/dl-support.c: Likewise.
4407 * elf/dl-sym.c: Likewise.
4408 * elf/dl-version.c: Likewise.
4409 * elf/do-lookup.h: Likewise.
4410 * elf/do-rel.h: Likewise.
4411 * elf/dynamic-link.h: Likewise.
4412 * elf/rtld.c: Likewise.
4413 * sysdeps/generic/dl-cache.c: Likewise.
4414 * sysdeps/generic/dl-sysdep.c: Likewise.
4415 * sysdeps/generic/ldsodefs.h: Likewise.
4416 * sysdeps/generic/libc-start.c: Likewise.
4417 * sysdeps/i386/dl-machine.h: Likewise.
4418 * sysdeps/ia64/dl-fptr.c: Likewise.
4419 * sysdeps/ia64/dl-machine.h: Likewise.
4420 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
4421 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4422 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4423 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
4424 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4425 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4426 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
4427 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4429 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4431 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
4433 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
4435 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
4437 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
4439 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
4441 2002-01-29 Ben Collins <bcollins@debian.org>
4443 * string/bits/string2.h (__mempcpy): Protect size arg for
4444 addition when using __builtin_memcpy.
4446 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4448 * stdlib/Makefile (tests): Add tst-qsort.
4449 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
4451 * manual/signal.texi (Process Signal Mask): Document that
4452 pthread_sigmask, not sigprocmask, must be used in MT programs.
4453 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
4455 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
4457 * misc/Makefile (tests): Add tst-hsearch.
4458 * misc/tst-hsearch.c: New file.
4460 2002-01-18 Wolfram Gloger <wg@malloc.de>
4462 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
4463 * malloc/malloc.h: Likewise.
4464 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
4465 * malloc/arena.c: New file.
4466 * malloc/hooks.c: New file.
4467 * malloc/tst-mallocstate.c: New file.
4468 * malloc/Makefile: Add new testcase tst-mallocstate.
4469 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
4471 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4473 * stdlib/msort.c: Remove last patch. The optimization violates the
4474 same rule which qsort.c had problems with.
4476 2002-01-27 Paul Eggert <eggert@twinsun.com>
4478 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
4479 to a pivot element that lies outside the array to be sorted, as
4480 ISO C99 requires that the comparison function be called only with
4481 addresses of array elements [PR libc/2880].
4483 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4485 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
4486 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
4488 * timezone/asia: Update from tzdata2002b.
4489 * timezone/australasia: Likewise.
4490 * timezone/backward: Likewise.
4491 * timezone/europe: Likewise.
4492 * timezone/leapseconds: Likewise.
4493 * timezone/iso3166.tab: Likewise.
4494 * timezone/zone.tab: Likewise.
4496 2002-01-23 Richard Henderson <rth@redhat.com>
4498 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
4500 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4502 * string/strxfrm.c: Allocate one more byte for rulearr and clear
4503 this element [PR libc/2855].
4505 * string/strcoll.c: Handle zero-length arguments specially
4508 2002-01-23 Jakub Jelinek <jakub@redhat.com>
4510 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
4511 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
4512 short lengths and constant src.
4513 (strcpy): Don't optimize for gcc 3.0+.
4514 (__stpcpy): For gcc 3.0+, don't use
4515 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
4516 for short string literal src.
4518 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4520 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4523 2001-01-22 Paul Eggert <eggert@twinsun.com>
4525 * manual/llio.texi (Linked Channels, Cleaning Streams):
4526 Make it clearer that a just-opened input stream might need cleaning.
4528 2002-01-21 H.J. Lu <hjl@gnu.org>
4530 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4531 Don't use label at end of compound statement.
4533 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
4535 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
4536 Remove test for negative integer arg; sin_pi does it correctly.
4538 2002-01-20 Ulrich Drepper <drepper@redhat.com>
4540 * nscd/Makefile (distribute): Filter out xmalloc.c.
4542 2002-01-19 Ulrich Drepper <drepper@redhat.com>
4544 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
4545 Set offset if read end wasn't the buffer end.
4546 (_IO_file_seekoff_mmap): New function.
4547 (_IO_file_xsgetn_mmap): New function.
4548 (_IO_file_jumps_mmap): Use the two new functions.
4549 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
4551 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
4552 _IO_file_underflow_mmap.
4553 * libio/iofopen.c: Don't position file descriptor at end of file.
4554 * libio/tst-widetext.c: Improve error messages.
4555 * stdio-common/tst-rndseek.c: Likewise.
4557 2002-01-18 Ulrich Drepper <drepper@redhat.com>
4559 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
4560 end of enum for !_GNU_SOURCE.
4561 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
4562 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
4563 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
4564 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
4565 values unless _GNU_SOURCE.
4567 * iconvdata/tcvn5712-1.c: Minor cleanups.
4569 2002-01-18 Andreas Schwab <schwab@suse.de>
4571 * sysdeps/unix/sysv/linux/configure.in
4572 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
4574 2002-01-16 Roger Sayle <roger@eyesopen.com>
4576 * stdlib/msort.c (msort_with_tmp): Replace implementation with
4577 more efficient "Towers of Hanoi" mergesort.
4578 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
4579 for generic, sizeof(int) and sizeof(long) variants respectively.
4581 2002-01-17 Ulrich Drepper <drepper@redhat.com>
4583 * manual/syslog.texi (openlog): Describe possible problems with
4585 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4587 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
4588 * nscd/connections.c (begin_drop_privileges): New function.
4589 (finish_drop_privileges): New function.
4590 (nscd_init): Call the new functions which also install all groups
4591 for the server user.
4592 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
4593 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4595 2002-01-17 H.J. Lu <hjl@gnu.org>
4597 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
4600 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4602 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
4603 instructions for pointer operations.
4604 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4606 2002-01-17 Andreas Jaeger <aj@suse.de>
4608 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
4609 __uint128_t build-in.
4611 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
4612 PowerPC, sync with 2.2 branch.
4614 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4616 * posix/getconf.c: Update copyright year.
4617 * nss/getent.c: Likewise.
4618 * nscd/nscd_nischeck.c: Likewise.
4619 * iconv/iconvconfig.c: Likewise.
4620 * iconv/iconv_prog.c: Likewise.
4621 * elf/ldconfig.c: Likewise.
4622 * catgets/gencat.c: Likewise.
4623 * csu/version.c: Likewise.
4624 * elf/ldd.bash.in: Likewise.
4625 * elf/sprof.c (print_version): Likewise.
4626 * locale/programs/locale.c: Likewise.
4627 * locale/programs/localedef.c: Likewise.
4628 * nscd/nscd.c (print_version): Likewise.
4629 * debug/xtrace.sh: Likewise.
4630 * malloc/memusage.sh: Likewise.
4631 * malloc/mtrace.pl: Likewise.
4633 2002-01-16 Andreas Schwab <schwab@suse.de>
4635 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
4636 reliably remove "-ia64" from rtld name.
4638 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4640 * iconvdata/gb18030.c: Bug fixes and support for more characters.
4641 Patch by Yu Shao <yshao@redhat.com>.
4643 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
4645 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
4646 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
4647 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
4649 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
4651 * sysdeps/s390/fpu/libm-test-ulps: Update.
4653 2002-01-11 Ulrich Drepper <drepper@redhat.com>
4655 * elf/elf.h: Update x86 relocations.
4657 2002-01-10 Ulrich Drepper <drepper@redhat.com>
4659 * locale/programs/charmap.c (new_width): Check whether byte
4660 sequences for both ends of range have the same length.
4662 2002-01-09 Jakub Jelinek <jakub@redhat.com>
4664 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
4666 2002-01-09 Jakub Jelinek <jakub@redhat.com>
4668 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
4670 (__full_ieee754_sqrt): Add __attribute_used__.
4672 2002-01-10 Ulrich Drepper <drepper@redhat.com>
4674 * sysdeps/generic/group_member.c (__group_member): Also check
4675 groups[0] [PR libc/2781].
4677 2002-01-08 Ulrich Drepper <drepper@redhat.com>
4679 * Makefile (distribute): Add scripts/cpp.
4680 * elf/Makefile (distribute): Add reldep6mod[01234].c,
4681 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
4682 unwind-dw2-fde.h, and dwarf2.h.
4683 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
4684 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
4685 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
4686 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
4688 2002-01-07 Roland McGrath <roland@frob.com>
4690 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
4691 volatile on type of ARGC so the compiler doesn't get clever.
4693 2002-01-07 Andreas Jaeger <aj@suse.de>
4695 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
4696 * sysdeps/i386/bits/byteswap.h: Likewise.
4697 * sysdeps/ia64/bits/byteswap.h: Likewise.
4698 * sysdeps/m68k/bits/byteswap.h: Likewise.
4699 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
4700 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
4702 2002-01-02 Bruno Haible <bruno@clisp.org>
4704 * intl/plural.y: Fix %expect count.
4706 2002-01-03 Jakub Jelinek <jakub@redhat.com>
4708 * elf/Makefile (routines, shared-only-routines): Add
4709 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
4710 * elf/elf.h (PT_GNU_EH_FRAME): Define.
4711 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
4712 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
4713 Optimize if .eh_frame section contains no FDEs.
4714 (__register_frame, __deregister_frame_info_bases,
4715 __deregister_frame): Likewise.
4716 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
4717 DW_CFA_restore handling.
4719 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
4721 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
4723 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
4724 for x < 0.25 and restore original range reduction method.
4725 (__ieee754_lgammal_r): Make sure signgam is set before returning.
4727 2002-01-07 Ulrich Drepper <drepper@redhat.com>
4729 * libio/fileops.c (_IO_file_underflow_mmap): New function.
4730 (_IO_file_close_mmap): New function.
4731 (_IO_file_jumps_mmap): New variable.
4732 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
4733 trying to convert rest of byte buffer.
4734 (_IO_wfile_underflow_mmap): New function.
4735 (_IO_wfile_jumps_mmap): New variable.
4736 * libio/iofopen.c (__fopen_maybe_mmap): New function.
4737 (__fopen_internal): New function. Split out from _IO_new_fopen.
4738 (_IO_new_fopen): Call __fopen_internal.
4739 * libio/iofopen64.c: Just call __fopen_internal.
4740 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
4742 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
4743 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
4744 _IO_file_close_mmap.
4746 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
4747 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
4749 * stdio-common/Makefile (tests): Add tst-rndseek.
4750 * stdio-common/tst-rndseek.c: New file.
4752 2002-01-05 Roland McGrath <roland@frob.com>
4754 * config.h.in (HAVE_MIG_RETCODE): New #undef.
4755 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
4756 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
4757 * sysdeps/mach/hurd/configure: Regenerated.
4759 2002-01-03 Ulrich Drepper <drepper@redhat.com>
4761 * elf/elf.h: Add more TLS definitions.
4763 2002-01-02 Ulrich Drepper <drepper@redhat.com>
4765 * include/features.h (__GLIBC_MINOR__): Bump to 3.
4767 2002-01-02 Roland McGrath <roland@frob.com>
4769 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
4770 __sigisemptyset. Don't use MASK uninitialized.
4772 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
4773 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
4774 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
4775 __sigdelset, __sigaddset, __sigorset.
4777 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
4778 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
4780 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
4781 _hurd_ports is null.
4783 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
4784 for old CMU and new OSF Mach interface flavors.
4785 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
4786 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4788 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
4790 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
4791 Pass extra arguments to task_create for OSF variant.
4792 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4794 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
4795 conditional on [HAVE_AUX_VECTOR].
4797 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
4798 mach_msg_timeout_t as type of final argument.
4800 * hurd/privports.c (__get_privileged_ports):
4801 Change host_priv_t to mach_port_t in argument type.
4802 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
4805 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
4806 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
4807 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
4808 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
4809 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
4810 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
4812 2002-01-01 Roland McGrath <roland@frob.com>
4814 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
4816 2002-01-01 Ulrich Drepper <drepper@redhat.com>
4818 * include/stdlib.h: Define inlines for the _l variants of the strto*
4821 2002-01-01 Roland McGrath <roland@frob.com>
4823 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
4825 * mach/Machrules (MIG): Set CPP as well as CC.
4827 2001-12-31 Ulrich Drepper <drepper@redhat.com>
4829 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
4830 locale to parse /proc/loadavg [PR libc/2760].
4832 2001-12-31 Jakub Jelinek <jakub@redhat.com>
4834 * elf/dl-conflict.c: Include sys/param.h.
4835 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
4836 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
4838 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
4839 literals to avoid warnings.
4841 2001-12-31 Andreas Jaeger <aj@suse.de>
4843 * configure.in: Don't check for gsed since we do not use it anywhere.
4845 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
4847 * io/fts.c: Update from BSD to fix memory leaks.
4849 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
4851 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
4852 * elf/chroot_canon.c: Likewise.
4853 * elf/dl-object.c: Likewise.
4854 * iconv/iconv_charmap.c: Likewise.
4855 * iconv/iconv_prog.c: Likewise.
4856 * libio/iogetdelim.c: Likewise.
4857 * locale/lc-time.c: Likewise.
4858 * stdlib/canonicalize.c: Likewise.
4859 * sunrpc/svc.c: Likewise.
4860 * sysdeps/generic/glob.c: Likewise.
4862 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4864 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
4865 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
4866 remove high order bit from the program counter.
4867 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
4869 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4871 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
4872 unnecessary code and add missing reloc types.
4873 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
4874 case for reloc type R_390_NONE.
4876 2001-12-28 Andreas Jaeger <aj@suse.de>
4878 * io/bug-ftw3.c: Include string.h for prototypes.
4880 * crypt/md5test.c (main): Remove unused variable.
4882 * dlfcn/modstatic.c: Add prototype to avoid warning.
4884 2001-12-26 Roland McGrath <roland@frob.com>
4886 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
4887 check only (SS->pending & MASK) for the signal to return.
4888 From Jeroen Dekkers <jeroen@dekkers.cx>.
4890 2001-12-22 Roland McGrath <roland@frob.com>
4892 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
4893 Use preprocessor #if conditionals instead of `if' to avoid
4894 warnings about divide by zero in dead code.
4896 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
4897 _hurd_port_init, and __hurd_self_sigstate.
4899 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
4901 2001-12-21 Andreas Jaeger <aj@suse.de>
4903 * elf/dblloadmod1.c: Add prototype to avoid warning.
4904 * elf/dblloadmod2.c: Likewise.
4905 * elf/dblloadmod3.c: Likewise.
4906 * elf/reldepmod5.c: Likewise.
4907 * elf/reldepmod6.c: Likewise.
4909 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
4910 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
4911 used on all architectures.
4913 * sunrpc/svc_tcp.c: Add noreturn attribute for
4914 svctcp_rendezvous_abort.
4915 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
4917 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
4920 2001-12-19 Jakub Jelinek <jakub@redhat.com>
4922 * manual/llio.texi (aio_fsync): Fix a typo.
4923 Patch by Tammy Fox <tfox@redhat.com>.
4925 2001-12-18 Jakub Jelinek <jakub@redhat.com>
4927 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
4928 stack bias from child stack pointer before passing it to clone syscall.
4930 2001-12-18 Ulrich Drepper <drepper@redhat.com>
4932 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
4934 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
4935 Reported by Thorsten Kukuk <kukuk@suse.de>.
4937 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
4940 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
4942 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
4944 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
4945 conforming: return EBADF if file descriptor is invalid and EINVAL
4946 if file descriptor is no valid tty.
4947 * login/tst-grantpt.c: New file.
4948 * login/Makefile (tests): Add tst-grantpt.
4950 2001-12-17 Ulrich Drepper <drepper@redhat.com>
4952 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
4953 different than implemented in last patch.
4954 * io/bug-ftw3.c: Adjust test for changed handling of
4955 inaccessibility of toplevel dir.
4957 2001-12-16 Roland McGrath <roland@frob.com>
4959 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
4960 * grp/initgroups.c (internal_getgrouplist): Likewise.
4962 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
4963 `default:' to silence new GCC warning.
4964 Rewrite cast of lvalue to silence new GCC warning.
4966 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
4968 * sysdeps/mach/hurd/spawni.c: New file, by me with a
4969 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
4971 2001-12-14 Ulrich Drepper <drepper@redhat.com>
4973 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
4974 Patch by Stephen R. van den Berg.
4976 * crypt/md5.h: Define md5_uintptr.
4978 2001-12-13 Ulrich Drepper <drepper@redhat.com>
4980 * libio/tst_swprintf.c (main): Add test for string argument with
4982 * stdio-common/Makefile (tests): Add tst-sprintf.
4983 * stdio-common/tst-sprintf.c: New file.
4985 2001-12-13 Andreas Schwab <schwab@suse.de>
4987 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
4988 zero precision with wide character string format.
4990 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
4992 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
4993 but have a user supplied buffer, return the empty buffer, not NULL.
4995 2001-12-13 Ulrich Drepper <drepper@redhat.com>
4997 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
4998 Patch by Eric Sharkey <sharkey@netrics.com>.
5000 * crypt/md5test.c (main): Add test for multiple calls to
5001 __md5_process_bytes to itererate over input string.
5003 2001-12-12 Ulrich Drepper <drepper@redhat.com>
5005 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5006 from __nis_findfastest. Take timeout value from parameter.
5007 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
5008 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5009 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
5011 2001-12-12 Andreas Jaeger <aj@suse.de>
5013 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5014 combreloc test so that it works in this case.
5016 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
5018 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
5020 * sysdeps/sh/Makefile: New file.
5021 * sysdeps/sh/_mcount.S: New file.
5022 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5023 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5025 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5027 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5028 limitation [PR libc/2564].
5030 2001-12-11 Jakub Jelinek <jakub@redhat.com>
5032 * elf/Makefile (dl-routines): Add conflict.
5033 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5034 (ld.so): Add _begin local symbol.
5035 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5037 * elf/dl-deps.c (_dl_build_local_scope): New.
5038 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5040 * elf/do-rel.h (VALIDX): Define.
5041 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5042 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5044 * elf/dl-conflict.c: New file.
5045 * elf/dl-lookup.c (_dl_debug_bindings): New.
5046 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
5048 (_dl_lookup_symbol_skip): Likewise.
5049 (_dl_lookup_versioned_symbol): Likewise.
5050 (_dl_lookup_versioned_symbol_skip): Likewise.
5051 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5052 define to ElfW(Rel).
5053 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5054 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5056 Don't adjust address dynamic tags if l_addr is 0.
5057 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5058 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5059 (VALIDX, ADDRIDX): Define.
5060 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5061 (dl_main): Print library list for LD_TRACE_PRELINKING.
5062 If prelinking information can be used, skip relocating libraries and
5063 call _dl_resolve_conflicts instead.
5064 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5065 * elf/dl-load.c (_dl_map_object): Don't create fake libs
5066 if LD_TRACE_PRELINKING.
5067 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5069 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5070 (DL_DEBUG_PRELINK): Define.
5071 (_dl_resolve_conflicts): Add prototype.
5073 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5074 .plt for prelinked libraries where prelinking info cannot be used.
5075 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5076 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5077 * sysdeps/arm/bits/link.h: New file.
5078 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5080 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5081 (ELF_MACHINE_PLT_REL): Define.
5082 (elf_machine_rela, elf_machine_rela_relative): New.
5083 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5084 of adjusting it if prelinked and prelinking cannot be used.
5085 * sysdeps/i386/bits/link.h: New file.
5086 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5088 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5089 (ELF_MACHINE_PLT_REL): Define.
5090 (elf_machine_rela, elf_machine_rela_relative): New.
5091 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5092 of adjusting it if prelinked and prelinking cannot be used.
5093 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5094 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
5095 to find out map for R_PPC_JMP_SLOT relocs.
5096 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5097 (OPCODE_BA): Define.
5098 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5099 libraries where prelinking info cannot be used.
5100 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5101 (elf_machine_fixup_plt): Call sparc_fixup_plt.
5102 (elf_machine_rela): Set value to 0 if relocating conflicts.
5103 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5104 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5105 (sparc64_fixup_plt): Fix a typo.
5106 (elf_machine_rela): Set value to 0 if relocating conflicts.
5107 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5108 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5109 libraries where prelinking info cannot be used.
5110 * sysdeps/sh/bits/link.h: New file.
5111 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5113 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5114 of adjusting it if prelinked and prelinking cannot be used.
5115 * sysdeps/s390/s390-32/bits/link.h: New file.
5116 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5117 Save original content of .got[1].
5118 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5119 of adjusting it if prelinked and prelinking cannot be used.
5120 * sysdeps/s390/s390-64/bits/link.h: New file.
5121 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5122 Save original content of .got[1].
5123 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5124 of adjusting it if prelinked and prelinking cannot be used.
5125 * sysdeps/x86_64/bits/link.h: New file.
5126 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5127 Save original content of .got[1].
5128 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5129 of adjusting it if prelinked and prelinking cannot be used.
5131 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5133 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5134 where appropriate instead of numbers. Little optimizations.
5136 2001-12-10 Roland McGrath <roland@frob.com>
5138 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5141 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5142 set to GLIBC_2.2.5, not GLIBC_2.2.4.
5144 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5145 Fix conditionals so this is set by default for stdio and not for libio.
5146 * sysdeps/mach/hurd/configure: Regenerated.
5148 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
5150 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5152 2001-12-10 Ulrich Drepper <drepper@redhat.com>
5154 * io/Makefile (tests): Add bug-ftw3.
5155 * io/bug-ftw3.c: New file.
5157 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5158 matches and GLOB_NOCHECK is set.
5159 * posix/globtest.sh: Correct expected result for NOCHECK test.
5161 * po/ca.po: Update from translation team.
5163 2001-12-09 Ulrich Drepper <drepper@redhat.com>
5165 Implement transliteration of characters in strings of the locale
5167 * locale/programs/linereader.c: Adjust for additional parameter to
5169 (get_string): If character <Uxxxx> is not found try to transliterate
5171 * locale/programs/ld-ctype.c: Adjust for additional parameter to
5172 lr_token. Add const to charmap parameter of all functions.
5173 (find_translit, find_translit2): New functions.
5174 * locale/programs/charmap.c: Adjust for additional parameter to
5176 * locale/programs/repertoire.c: Likewise.
5177 * locale/programs/linereader.h: Likewise.
5178 * locale/programs/ld-address.c: Likewise. Add const to charmap
5179 parameter of all functions.
5180 * locale/programs/ld-collate.c: Likewise.
5181 * locale/programs/ld-identification.c: Likewise.
5182 * locale/programs/ld-measurement.c: Likewise.
5183 * locale/programs/ld-messages.c: Likewise.
5184 * locale/programs/ld-monetary.c: Likewise.
5185 * locale/programs/ld-name.c: Likewise.
5186 * locale/programs/ld-numeric.c: Likewise.
5187 * locale/programs/ld-paper.c: Likewise.
5188 * locale/programs/ld-paper.c: Likewise.
5189 * locale/programs/ld-telephone.c: Likewise.
5190 * locale/programs/ld-time.c: Likewise.
5191 * locale/programs/locfile.c: Likewise.
5192 * locale/programs/localedef.c: Likewise.
5193 * locale/programs/localedef.h: Likewise.
5194 * locale/programs/locfile.h: Likewise. Add declaration for
5196 * locale/programs/simple-hash.c: Add const to first parameter of
5197 find_entry, iterate_table, and lookup.
5198 * locale/programs/simple-hash.h: Likewise.
5199 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
5201 * include/locale.h: Define __LC_LAST.
5202 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5204 2001-12-07 Geoff Keating <geoffk@redhat.com>
5206 * sysdeps/powerpc/Dist: Update for recent FP changes.
5207 * sysdeps/powerpc/fpu/Dist: Likewise.
5209 2001-12-07 Andreas Schwab <schwab@suse.de>
5211 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5213 2001-12-06 Geoff Keating <geoffk@redhat.com>
5215 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
5216 save/restore functions here.
5217 (libm-support): Don't define these functions here.
5218 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
5220 * sysdeps/powerpc/fe_nomask.c: Move to...
5221 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
5222 * sysdeps/powerpc/fprrest.S: Move to...
5223 * sysdeps/powerpc/fpu/fprrest.S: ... here.
5224 * sysdeps/powerpc/fprsave.S: Move to...
5225 * sysdeps/powerpc/fpu/fprsave.S: ... here.
5227 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5229 * sysdeps/unix/sysv/linux/opensock.c: New file.
5231 2001-12-06 Geoff Keating <geoffk@redhat.com>
5233 * config.make.in (with-fp): Define from configure.
5234 * configure.in: Substitute with_fp.
5235 * configure: Regenerate.
5236 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
5237 specified, and don't change FPU environment.
5239 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5241 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
5242 * assert/assert.c: Check result of __asprintf call and don't use
5243 string if it failed.
5244 * assert/assert-perr.c: Likewise.
5245 * inet/rcmd.c: Likewise.
5246 * locale/programs/localedef.c (main): Check result of
5247 construct_output_path and exit if it failed.
5248 (construct_output_path): Check result of asprintf and mkdir calls and
5249 fail if they failed.
5250 * posix/getopt.c: Check result of __asprintf calls and fail if
5252 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
5254 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5256 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
5258 * sysdeps/generic/strncase.c: Likewise.
5259 * string/tester.c: Add tests for strcasecmp and strncasecmp.
5261 2001-12-05 Geoff Keating <geoffk@redhat.com>
5263 * scripts/cpp: Test the exit status from 'type', not 'awk'.
5265 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
5266 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
5267 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
5268 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
5269 * sysdeps/powerpc/fclrexcpt.c: Move to...
5270 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
5271 * sysdeps/powerpc/fpu_control.h: Move to...
5272 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
5274 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5276 * iconvdata/ibm1129.h: Remove duplicate mappings.
5277 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
5278 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
5279 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5281 * timezone/zic.c: Fix handling of turnaround times.
5282 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
5284 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
5286 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
5289 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5291 * posix/regex.c: For use outside glibc defined bounded pointer
5292 macros here. Patch by Jim Meyering <jim@meyering.net>.
5294 * iconvdata/Makefile (modules): Add TCVN5712-1.
5295 * iconvdata/TESTS: Add TCVN5712-1.
5296 * iconvdata/gconv-modules: Likewise.
5297 * iconvdata/tcvn5712-1.c: New file.
5298 * iconvdata/testdata/TCVN-5712: New file.
5299 * iconvdata/testdata/TCVN-5712..UTF8: New file.
5301 2001-12-04 Ulrich Drepper <drepper@redhat.com>
5303 * iconvdata/cp1258.c: Optimize conversion from UCS4.
5305 2001-12-02 Roland McGrath <roland@frob.com>
5307 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
5309 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
5310 Reported by Jeff Bailey <jbailey@nisa.net>.
5312 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
5313 Reported by Jeff Bailey <jbailey@nisa.net>.
5315 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
5316 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
5317 Reported by Jeff Bailey <jbailey@nisa.net>.
5319 2001-12-01 Roland McGrath <roland@frob.com>
5321 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
5322 missing backslash in test arguments.
5323 * sysdeps/mach/hurd/configure: Regenerated.
5325 2001-11-26 Roland McGrath <roland@frob.com>
5327 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
5328 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
5330 2001-11-30 Ulrich Drepper <drepper@redhat.com>
5332 * iconvdata/Makefile (modules): Add ARMSCII-8.
5333 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
5334 * iconvdata/armscii-8.c: New file.
5336 2001-11-29 Jakub Jelinek <jakub@redhat.com>
5338 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
5339 don't match, fix {{a,b},c} globbing, clean up.
5340 Patch by Flavio Veloso <flaviovs@magnux.com>.
5341 * posix/globtest.sh: Add new tests.
5343 2001-11-29 Andreas Jaeger <aj@suse.de>
5345 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
5346 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
5348 * sysdeps/generic/abort.c: Include libioP.h for
5349 _IO_flush_all_lockp prototype.
5351 2001-11-29 Ulrich Drepper <drepper@redhat.com>
5353 * posix/regex.h: Define __restrict_arr correctly.
5355 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5357 * iconvdata/ibm1163.c: New file.
5358 * iconvdata/ibm1163.h: New file.
5359 * iconvdata/ibm1164.c: New file.
5360 * iconvdata/ibm1164.h: New file.
5361 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
5362 * iconvdata/Makefile: Likewise.
5363 * iconvdata/testdata/IBM1163: New file.
5364 * iconvdata/testdata/IBM1163..UTF8: New file.
5365 * iconvdata/testdata/IBM1164: New file.
5366 * iconvdata/testdata/IBM1164..UTF8: New file.
5367 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5369 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
5370 * iconvdata/ibm1124.h: Likewise.
5371 * iconvdata/ibm1132.h: Likewise.
5372 * iconvdata/ibm1133.h: Likewise.
5373 * iconvdata/ibm1160.h: Likewise.
5374 * iconvdata/ibm1161.h: Likewise.
5375 * iconvdata/ibm1162.h: Likewise.
5376 * iconvdata/ibm856.h: Likewise.
5377 * iconvdata/ibm922.h: Likewise.
5378 * iconvdata/ibm930.h: Likewise.
5379 * iconvdata/ibm932.h: Likewise.
5380 * iconvdata/ibm933.h: Likewise.
5381 * iconvdata/ibm935.h: Likewise.
5382 * iconvdata/ibm937.h: Likewise.
5383 * iconvdata/ibm939.h: Likewise.
5384 * iconvdata/ibm943.h: Likewise.
5385 * iconvdata/ibm930.c: Pretty printing.
5386 * iconvdata/ibm937.c: Avoid access accross array boundary.
5388 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
5389 the current locale's codeset.
5390 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
5392 * iconv/iconv_prog.c: Pass empty strings as default value for to-
5393 and from-charset. Don't determine locale's charset here.
5395 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
5396 as the old _IO_flush_all but lock only if parameter is nonzero.
5397 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
5398 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
5399 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
5400 if libio is used [PR libc/2575].
5402 2001-11-28 Jakub Jelinek <jakub@redhat.com>
5404 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
5405 __signbitl): Only define for ISO C99.
5407 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5409 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
5410 herrnop to NETDB_INTERNAL if we run out of buffer space.
5412 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5414 * nss/nss_files/files-XXX.c (internal_getent): Correct input
5415 overflow test for platforms with signed char.
5416 Reported by Andrew Haley <aph@cambridge.redhat.com>.
5418 2001-11-28 Bruno Haible <bruno@clisp.org>
5420 * locale/programs/simple-hash.c (lookup_2): Remove function.
5421 (insert_entry_2): Call lookup instead of lookup_2.
5423 2001-03-04 Bruno Haible <bruno@clisp.org>
5425 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
5427 2001-10-31 Bruno Haible <bruno@clisp.org>
5429 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
5431 2001-03-21 Bruno Haible <bruno@clisp.org>
5433 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
5434 chokes on empty macro arguments.
5435 * intl/plural.y: Add #pragma for alloca on AIX 3.
5437 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5439 * intl/dcigettext.c (guess_category_value): Only implement for
5440 glibc. Otherwise rely on function _nl_locale_name which isn't
5441 present in the glibc sources.
5443 2001-09-24 Bruno Haible <bruno@clisp.org>
5445 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
5446 transliteration when building on a glibc system but outside glibc.
5448 2001-09-22 Bruno Haible <bruno@clisp.org>
5450 * intl/plural-eval.c: New file, extracted from dcigettext.c.
5451 * intl/dcigettext.c (plural_eval): Remove function, moved to
5453 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
5454 Include plural-eval.c.
5456 2001-09-22 Bruno Haible <bruno@clisp.org>
5458 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
5459 don't start with a digit; nplurals must be positive.
5461 2001-09-02 Bruno Haible <bruno@clisp.org>
5463 * intl/plural-exp.h: New file, extracted from gettextP.h.
5464 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
5465 * intl/gettextP.h (struct expression, struct parse_args,
5466 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
5467 * intl/loadmsgcat.c: Include plural-exp.h.
5468 (PLURAL_PARSE): Move macro to plural-exp.h.
5469 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
5471 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
5472 EXTRACT_PLURAL_EXPRESSION.
5473 (_nl_unload_domain): Update.
5474 * intl/dcigettext.c: Include plural-exp.h.
5475 * intl/plural.y: Include plural-exp.h, not gettextP.h.
5476 (FREE_EXPRESSION): Move macro to plural-exp.h.
5477 * intl/Makefile (routines): Add plural-exp.
5478 (distribute): Add plural-exp.h.
5480 2001-07-28 Bruno Haible <bruno@clisp.org>
5482 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
5483 isdigit, tolower argument to 'unsigned char'.
5484 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
5486 * intl/localealias.c (read_alias_file): Cast isspace argument to
5489 2001-10-20 Bruno Haible <bruno@clisp.org>
5491 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
5493 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
5494 with the variable 'index' in plural_lookup.
5495 * intl/l10nflist.c (strchr): Likewise.
5496 * intl/localealias.c (strchr): Likewise.
5498 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
5499 * intl/bindtextdom.c: Likewise.
5500 * intl/dcigettext.c: Likewise.
5501 * intl/dgettext.c: Likewise.
5502 * intl/dngettext.c: Likewise.
5503 * intl/explodename.c: Likewise.
5504 * intl/finddomain.c: Likewise.
5505 * intl/gettext.c: Likewise.
5506 * intl/l10nflist.c: Likewise.
5507 * intl/loadmsgcat.c: Likewise.
5508 * intl/localealias.c: Likewise.
5509 * intl/ngettext.c: Likewise.
5510 * intl/textdomain.c: Likewise.
5511 * intl/gettext.h: Assume <limits.h> exists.
5513 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5515 * stdio-common/Makefile (tests): Add scanf11.
5516 * stdio-common/scanf11.c: New file.
5518 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5520 * version.h (RELEASE): Define as development.
5521 (VERSION): Set to 2.2.90.
5523 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5525 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
5526 * nis/nss_nis/nis-grp.c: Likewise.
5527 * nis/nss_nisplus/nisplus-grp.c: Likewise.
5529 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
5530 * nis/nss_nis/nis-pwd.c: Likewise.
5531 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
5533 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
5534 * nis/nss_nisplus/nisplus-parser.c: Likewise.
5535 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5537 * nscd/grpcache.c: Use strtoul instead of atol.
5538 * nscd/pwdcache.c: Likewise.
5539 * nss/getent.c: Likewise.
5541 2001-11-27 Paul Eggert <eggert@twinsun.com>
5543 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5544 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5546 2001-11-19 Bruno Haible <bruno@clisp.org>
5548 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
5550 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
5551 improves the quality of the hash function, especially for short
5554 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5556 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
5557 are found call conv_error and not input_error [PR libc/2669].
5559 * math/bits/mathcalls.h: Mark ceil and floor as const.
5560 Reported by David Mosberger.
5562 2001-11-21 Jim Meyering <meyering@lucent.com>
5564 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
5565 Define to be __-prefixed.
5566 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
5568 2001-11-26 Andreas Jaeger <aj@suse.de>
5570 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
5573 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
5575 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
5578 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
5579 unused variables. Fix threshold for returning 1.0.
5581 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
5584 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
5585 remove unused variables.
5587 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
5589 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
5590 include local math header files.
5592 2001-11-22 Andreas Jaeger <aj@suse.de>
5594 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
5597 2001-11-21 Andreas Jaeger <aj@suse.de>
5599 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
5601 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
5604 2001-11-15 Andreas Jaeger <aj@suse.de>
5606 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
5607 compilers that support it.
5609 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
5610 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
5611 * stdlib/stdlib.h: Likewise.
5613 2001-11-17 Ulrich Drepper <drepper@redhat.com>
5615 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
5616 statement with gotos.
5617 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
5619 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
5621 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
5623 2001-11-15 Ulrich Drepper <drepper@redhat.com>
5625 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
5627 2001-10-02 Jakub Jelinek <jakub@redhat.com>
5628 H.J. Lu <hjl@gnu.org>
5630 * Versions.def (libc): Add GCC_3.0.
5631 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5632 if gcc supports this flag.
5633 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
5634 (gcc3): Allow glibc to be compiled with gcc 3.x.
5635 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
5636 * config.make.in (static-libgcc, unwind-find-fde): Add.
5637 * Makerules (build-shlib-helper, build-module-helper): Use it.
5638 * scripts/versions.awk: Make sure GLIBC_ versions come first.
5639 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
5641 (_fini): Call __deregister_frame_info_bases if
5642 __register_frame_info_bases was used to register.
5643 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
5645 (__register_frame_info_bases, __register_frame_info_table_bases,
5646 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
5647 * elf/Makefile (routines): Add unwind-dw2-fde.
5648 (shared-only-routines): Add unwind-dw2-fde.
5649 * sysdeps/alpha/gccframe.h: New file.
5650 * sysdeps/arm/gccframe.h: New file.
5651 * sysdeps/generic/framestate.c: New file.
5652 * sysdeps/generic/dwarf2.h: New file.
5653 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
5654 * sysdeps/generic/unwind-dw2-fde.c: New file.
5655 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
5656 * sysdeps/generic/unwind-dw2-fde.h: New file.
5657 * sysdeps/generic/unwind-dw2.c: New file.
5658 * sysdeps/generic/unwind-pe.h: New file.
5659 * sysdeps/generic/unwind.h: New file.
5660 * sysdeps/hppa/gccframe.h: New file.
5661 * sysdeps/i386/gccframe.h: New file.
5662 * sysdeps/m68k/gccframe.h: New file.
5663 * sysdeps/mips/gccframe.h: New file.
5664 * sysdeps/powerpc/gccframe.h: New file.
5665 * sysdeps/s390/gccframe.h: New file.
5666 * sysdeps/sh/gccframe.h: New file.
5667 * sysdeps/sparc/gccframe.h: New file.
5668 * sysdeps/vax/gccframe.h: New file.
5669 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5670 Set on all architectures except ia64.
5671 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
5673 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
5674 __deregister_frame_info): Move to elf/Versions.
5675 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
5676 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
5677 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
5678 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
5679 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
5680 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
5681 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5682 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5683 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
5684 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
5685 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5686 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5687 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5688 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5689 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5690 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5691 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5692 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5694 2001-11-15 Jeff Law <law@redhat.com>
5696 * posix/regex.c (uintptr_t): Do not provide a definition if the
5697 system provided one.
5699 2001-11-13 Roland McGrath <roland@frob.com>
5701 * stdio-common/tmpfile.c: Moved to ...
5702 * sysdeps/generic/tmpfile.c: ... here.
5703 * sysdeps/mach/hurd/tmpfile.c: New file.
5705 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
5706 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
5707 (fopenport): Define as weak alias.
5709 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
5710 * libio/libioP.h: ... to here.
5712 2001-11-12 Ulrich Drepper <drepper@redhat.com>
5714 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
5715 program header twice. Construct list with the needed information.
5717 2001-11-10 Ulrich Drepper <drepper@redhat.com>
5719 * po/ca.po: Update from translation team.
5721 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
5722 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
5723 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
5724 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5726 2001-11-10 Andreas Jaeger <aj@suse.de>
5728 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
5729 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5730 Contributed by Stephen L Moshier <moshier@mediaone.net>.
5732 2001-11-09 Ulrich Drepper <drepper@redhat.com>
5734 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
5736 * elf/dl-load.c (is_dst): New function.
5737 (_dl_dst_count): Use is_dst to check for DST variable.
5738 (_dl_dst_substitute): Likewise.
5740 2001-11-09 Roland McGrath <roland@frob.com>
5742 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
5743 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
5744 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
5745 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
5746 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
5747 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
5748 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
5749 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
5750 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
5751 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
5752 * sysdeps/mach/hurd/powerpc/Dist: New file.
5754 * hurd/privports.c (__get_privileged_ports):
5755 Only contact the proc server if necessary for this call.
5756 Suggested by Neal H Walfield <neal@cs.uml.edu>.
5757 Check error return for mach_port_mod_refs.
5759 2001-11-09 Andreas Schwab <schwab@suse.de>
5761 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
5763 2001-11-09 Ulrich Drepper <drepper@redhat.com>
5765 * elf/dl-load.c (lose): Remove some unnecessary code. The new
5766 object is always the last in the list.
5767 (_dl_map_object_from_fd): Delete code to remove from object list
5768 when DF_1_NOOPEN is seen. This is done in lose.
5770 2001-11-08 Ulrich Drepper <drepper@redhat.com>
5772 * elf/dl-object.c (_dl_new_object): Various small optimizations.
5774 2001-11-07 Ulrich Drepper <drepper@redhat.com>
5776 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
5777 HWCAP_CHECK macro code.
5779 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
5780 Now returns MAP_FAILED on error.
5781 * elf/rtld.c: Adjust caller.
5782 * sysdeps/generic/dl-cache.c: Likewise.
5783 * sysdeps/generic/ldsodefs.h: Adjust description.
5785 * elf/dl-version.c (match_symbol): Optimize error handling for size.
5786 (_dl_check_map_versions): Likewise.
5788 2001-11-06 Ulrich Drepper <drepper@redhat.com>
5790 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
5791 _dl_signal_error directly, always use lose. Set fd to -1 after
5793 (lose): Don't call close if fd == -1.
5795 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
5797 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
5798 Also fix typo @code {mbsinit} to @code{mbsinit}.
5800 2001-11-06 Ulrich Drepper <drepper@redhat.com>
5802 * elf/dl-profile.c: Replace state variable with simple flag named
5803 running. Remove commented-out code.
5805 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
5806 (_dl_init_paths): Likewise.
5807 (_dl_map_object_from_fd): Likewise.
5808 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5810 2001-11-06 Roland McGrath <roland@frob.com>
5812 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
5813 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
5815 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
5816 sysdeps/powerpc/elf/sysdep.h.
5817 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
5819 2001-11-05 Ulrich Drepper <drepper@redhat.com>
5821 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
5823 (process_envvars): Some more optimizations.
5824 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
5826 * elf/elf.h: Add dynamic tag definitions for prelinking.
5828 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
5829 Rewrite code to remove environment varables for SUID binaries.
5830 Small optimization in LD_PROFILE handling.
5831 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
5833 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5835 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
5837 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
5838 strings. Change type of second parameter.
5839 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
5842 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
5844 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
5846 * manual/string.texi: Fix typos.
5847 * manual/examples/argp-ex2.c: Likewise.
5849 2001-11-05 Roland McGrath <roland@frob.com>
5851 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
5852 the more-specific unix/sysv/linux/powerpc file and breaks everything.
5853 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
5854 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
5855 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
5856 here, put under [__ELF__].
5858 2001-11-05 Ulrich Drepper <drepper@redhat.com>
5860 * manual/charset.texi: Extensive editing work.
5861 * manual/nss.texi: Likewise.
5862 Changes by Dennis Grace <dgrace@us.ibm.com>.
5864 2001-11-04 Roland McGrath <roland@frob.com>
5866 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
5867 parameter to dir_mkfile.
5869 2001-11-02 Jakub Jelinek <jakub@redhat.com>
5871 * string/bits/string2.h (__strndup): If n is smaller than len, set
5873 * string/tester.c (test_strndup): New function.
5876 2001-11-01 Ulrich Drepper <drepper@redhat.com>
5878 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
5880 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
5881 * scripts/cpp: New file.
5883 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
5884 for rtld_search_dirs content. Minor optimizations.
5886 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5888 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
5889 avoiding unnecessary duplication.
5891 2001-10-31 Jakub Jelinek <jakub@redhat.com>
5893 * elf/dl-load.c (_dl_map_object): If library was found using
5894 LD_LIBRARY_PATH, don't try RUNPATH list.
5896 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
5898 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
5899 Correct second argument of register_dump call.
5900 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
5903 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5905 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
5907 * iconvdata/TESTS: Likewise.
5908 * iconvdata/gconv-modules: Likewise.
5909 * iconvdata/ibm1132.c: New file.
5910 * iconvdata/ibm1132.h: New file.
5911 * iconvdata/ibm1133.c: New file.
5912 * iconvdata/ibm1133.h: New file.
5913 * iconvdata/ibm1162.c: New file.
5914 * iconvdata/ibm1162.h: New file.
5915 * iconvdata/testdata/IBM1132: New file.
5916 * iconvdata/testdata/IBM1132..UTF8: New file.
5917 * iconvdata/testdata/IBM1133: New file.
5918 * iconvdata/testdata/IBM1133..UTF8: New file.
5919 * iconvdata/testdata/IBM1162: New file.
5920 * iconvdata/testdata/IBM1162..UTF8: New file.
5921 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
5923 * string/string.h: Fix typo in comment.
5924 * wcsmbs/wchar.h: Likewise.
5926 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
5928 * manual/getopt.texi (getopt_long, getopt_long_only): Include
5929 const in type of longopts parameter.
5931 2001-10-29 Andreas Jaeger <aj@suse.de>
5933 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
5935 2001-10-29 Kevin Ryde <user42@zip.com.au>
5937 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
5938 output, clarify `#' behaviour on 0.
5939 (Floating-Point Conversions): Clarify that %g only uses %e when
5940 the exponent would be greater than 1.
5942 2001-10-28 Roland McGrath <roland@frob.com>
5944 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
5945 * sysdeps/mach/powerpc/machine-sp.h: New file.
5946 * sysdeps/mach/powerpc/sysdep.h: New file.
5947 * sysdeps/mach/powerpc/thread_state.h: New file.
5949 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
5950 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
5951 expect to need the same thing on every platform.
5953 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
5954 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
5956 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
5957 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
5958 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
5959 Move all these assembly-related definitions to ...
5960 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
5962 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
5963 by Peter Bruin <pjbruin@dds.nl>.
5965 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
5966 packing results for a `poll' call.
5968 2001-10-26 Ulrich Drepper <drepper@redhat.com>
5970 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
5972 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
5975 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5977 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
5979 2001-10-24 H.J. Lu <hjl@gnu.org>
5981 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
5982 Use __BEGIN_DECLS/__END_DECLS around prototypes.
5983 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
5985 2001-10-21 Jim Meyering <meyering@lucent.com>
5987 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
5988 this code would end up calling gettext even in packages built
5990 * posix/getopt.c (_): Likewise.
5991 * posix/regex.c (_): Likewise.
5993 2001-10-26 Ulrich Drepper <drepper@redhat.com>
5995 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
5997 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
5998 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6000 2001-10-19 Jakub Jelinek <jakub@redhat.com>
6002 * misc/sys/cdefs.h (__attribute_used__): Define.
6003 * elf/rtld.c (_dl_start): Add __attribute_used__.
6004 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6006 2001-10-25 Andreas Schwab <schwab@suse.de>
6008 * stdlib/a64l.c: Expect least significant digit first.
6009 * stdlib/l64a.c: Produce least significant digit first.
6010 * stdlib/Makefile (tests): Add test-a64l.
6011 * stdlib/test-a64l.c: New file.
6012 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6014 2001-10-21 Ulrich Drepper <drepper@redhat.com>
6016 * po/sk.po: Update from translation team.
6018 2001-10-18 Ulrich Drepper <drepper@redhat.com>
6020 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6022 2001-10-18 Andreas Schwab <schwab@suse.de>
6024 * math/libm-test.inc (print_ulps): Print ulp values rounded to
6026 (print_function_ulps): Likewise.
6027 (print_complex_function_ulps): Likewise.
6028 (print_max_error): Likewise.
6029 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
6031 2001-10-16 Andreas Schwab <schwab@suse.de>
6033 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6036 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6037 BSD_SETJMP or BSD__SETJMP is defined, resp.
6038 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6039 a tail call to __sigsetjmp that would require extending the
6041 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6042 * sysdeps/m68k/bsd-setjmp.S: Deleted.
6043 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6044 Reported by Jes Sorensen <jes@trained-monkey.org>.
6046 2001-10-16 Andreas Jaeger <aj@suse.de>
6048 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
6049 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
6052 2001-10-15 Ulrich Drepper <drepper@redhat.com>
6054 * po/ca.po: New file. Contributed by the translation team.
6056 2001-10-15 Ralf Baechle <ralf@gnu.org>
6058 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6059 a varargs prototype. Remove dependency from kernel header files.
6061 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6062 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6064 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6066 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6067 to generate hexadecimal identifier.
6068 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6070 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
6072 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6074 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6076 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6077 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6078 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6080 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6081 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6082 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6083 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6084 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6085 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6087 * timezone/africa: Update from tzdata2001d.
6088 * timezone/asia: Likewise.
6089 * timezone/australasia: Likewise.
6090 * timezone/backward: Likewise.
6091 * timezone/europe: Likewise.
6092 * timezone/leapseconds: Likewise.
6093 * timezone/northamerica: Likewise.
6094 * timezone/southamerica: Likewise.
6095 * timezone/zone.tab: Likewise.
6097 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
6099 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6100 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6102 2001-10-12 Ulrich Drepper <drepper@redhat.com>
6104 * elf/elf.h (PT_TLS): New definition.
6106 2001-10-10 Jeff Bailey <jbailey@nisa.net>
6108 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6111 2001-10-07 Roland McGrath <roland@frob.com>
6113 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6115 2001-10-10 Ulrich Drepper <drepper@redhat.com>
6117 * elf/elf.h: Add more ELFOSABI_* constants.
6119 2001-10-04 Ben Collins <bcollins@debian.org>
6121 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6122 decleration of __need_wchar_t.
6124 2001-10-03 Jakub Jelinek <jakub@redhat.com>
6126 * string/bits/string2.h (__strsep_g): Add prototype.
6128 * string/Versions (__strsep): Remove.
6129 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6131 2001-10-07 Ulrich Drepper <drepper@redhat.com>
6133 * manua/llio.texi: Clarify file references added by mmap.
6134 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6136 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
6138 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6139 Add sc_loadrs and sc_rbs_bas to match current kernel.
6141 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6143 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6145 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6147 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6149 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6150 object has been bumped because of relocation dependency, avoid
6151 duplicates in l_scope.
6152 (show_scope): Fix typos.
6153 * elf/Makefile: Add rules to build and run reldep6.
6154 * elf/reldep6.c: New file.
6155 * elf/reldep6mod0.c: New file.
6156 * elf/reldep6mod1.c: New file.
6157 * elf/reldep6mod2.c: New file.
6158 * elf/reldep6mod3.c: New file.
6159 * elf/reldep6mod4.c: New file.
6161 2001-09-26 Jakub Jelinek <jakub@redhat.com>
6163 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6165 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
6166 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6167 for non-lazy binding. Fix .plt[32768+] handling.
6168 (elf_machine_plt_value): Don't add addend.
6169 (elf_machine_rela): Call sparc64_fixup_plt instead of
6170 elf_machine_fixup_plt.
6171 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6172 dynamic linker at 0xfffff800XXXXXXXX.
6174 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6176 2001-09-28 Ulrich Drepper <drepper@redhat.com>
6178 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6180 2001-09-25 Jakub Jelinek <jakub@redhat.com>
6182 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6183 declare __cmsg_data field if its size would be bigger than 0.
6184 (CMSG_DATA): Adjust accordingly.
6185 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6186 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6187 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6188 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6189 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6190 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6191 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6193 2001-09-25 Ulrich Drepper <drepper@redhat.com>
6195 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6196 * iconvdata/testdata/IBM1160: New file.
6197 * iconvdata/testdata/IBM1160..UTF8: New file.
6198 * iconvdata/testdata/IBM1161: New file.
6199 * iconvdata/testdata/IBM1161..UTF8: New file.
6200 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6202 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6204 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6205 UL_SETFSIZE computations better.
6207 * rt/Makefile: Remove use of filter for librt again.
6209 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
6210 UL_SETFSIZE computations better.
6212 * string/Versions: Export __strsep for GLIBC_2.2.5.
6213 * string/bits/string2.h: Define all __STRING_INLINE functions if
6214 _FORCE_INLINES is defined.
6215 Use int instead of char of parameter types.
6216 (__strsep): Don't use __strsep_g. Don't define it.
6217 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
6218 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
6220 (__stpcpy_a_small): Renamed from __stpcpy_small.
6221 (__strcspn_c1): Don't define if _FORCE_INLINES.
6222 (__strspn_c1): Likewise.
6224 2001-09-22 Ben Collins <bcollins@debian.org>
6226 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
6227 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
6228 * sysdeps/ia64/bits/sigaction.h: Likewise.
6229 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
6231 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6233 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
6235 2001-09-24 Jakub Jelinek <jakub@redhat.com>
6237 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
6239 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6241 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
6243 2001-09-20 H.J. Lu <hjl@gnu.org>
6245 * include/dlfcn.h (__RTLD_SPROF): New definiton.
6246 * elf/dl-open.c (dl_open_worker): Return immediately after loading
6248 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
6249 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
6251 2001-09-20 H.J. Lu <hjl@gnu.org>
6253 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
6256 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6258 * nss/getent.c: Accept -s parameter to overwrite rules in
6259 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
6261 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
6262 with as many ".0" as necessary to form a complete address
6263 inet_network understands.
6265 * nss/getent.c: Various cleanups. Use simpler and fewer function
6268 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6270 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
6272 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
6274 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6276 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
6278 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
6279 * iconvdata/ibm1160.c: New file.
6280 * iconvdata/ibm1160.h: New file.
6281 * iconvdata/ibm1161.c: New file.
6282 * iconvdata/ibm1161.h: New file.
6283 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6285 2001-09-19 Jakub Jelinek <jakub@redhat.com>
6287 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
6288 difference between base address and first PT_LOAD's virtual address,
6289 not the base address.
6291 2001-09-11 Tom Rix <trix@redhat.com>
6293 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
6294 ifdef for __getopt_clean_environment.
6295 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
6297 2001-09-22 Andreas Jaeger <aj@suse.de>
6299 * elf/reldep4.c (main): Add proper prototype to fix warning.
6301 * elf/reldep5.c (main): Remove unused variable.
6303 * math/math_private.h: Add prototypes.
6305 2001-09-21 Andreas Jaeger <aj@suse.de>
6307 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
6308 * sysdeps/x86_64/Dist: New file.
6309 * sysdeps/x86_64/soft-fp/Dist: New file.
6311 * sysdeps/gnu/Dist: Remove eval.c.
6313 2001-09-20 Ulrich Drepper <drepper@redhat.com>
6315 * malloc/memusage.c (realloc): Don't count already allocated
6317 (me): Always use dlsym() to find the real implementations.
6319 * malloc/memusage.sh: Make -n option actually do something.
6321 2001-09-20 Andreas Jaeger <aj@suse.de>
6323 * elf/elf.h (R_390_NUM): Correct value.
6325 * Versions.def: Add missing versions 2.2.3 for libthread_db and
6328 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
6329 for x86-64, install x86-64 into */lib64.
6331 * shlib-versions: Add x86-64.
6333 * elf/elf.h: Add x86-64 relocations.
6335 2001-09-19 Ulrich Drepper <drepper@redhat.com>
6337 * po/fr.po: Update from translation team.
6339 2001-09-19 Andreas Jaeger <aj@suse.de>
6341 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6342 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
6343 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
6344 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
6345 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
6346 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
6347 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
6348 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
6349 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
6350 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6351 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
6352 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
6353 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
6354 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
6355 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
6356 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
6357 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
6358 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
6359 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
6360 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
6361 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
6362 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
6363 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
6364 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
6365 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
6366 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
6367 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
6368 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
6369 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
6370 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
6371 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
6372 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
6373 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
6374 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
6375 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
6376 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
6377 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
6378 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
6379 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
6380 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
6381 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
6382 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
6383 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
6384 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
6385 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
6386 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
6387 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
6388 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
6389 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
6390 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
6391 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
6392 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6393 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
6394 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
6395 * sysdeps/unix/x86_64/sysdep.S: New file.
6396 * sysdeps/unix/x86_64/sysdep.h: New file.
6397 * sysdeps/x86_64/Implies: New file.
6398 * sysdeps/x86_64/Makefile: New file.
6399 * sysdeps/x86_64/Versions: New file.
6400 * sysdeps/x86_64/__longjmp.S: New file.
6401 * sysdeps/x86_64/abort-instr.h: New file.
6402 * sysdeps/x86_64/atomicity.h: New file.
6403 * sysdeps/x86_64/bits/endian.h: New file.
6404 * sysdeps/x86_64/bits/setjmp.h: New file.
6405 * sysdeps/x86_64/bits/string.h: New file.
6406 * sysdeps/x86_64/bp-asm.h: New file.
6407 * sysdeps/x86_64/bsd-_setjmp.S: New file.
6408 * sysdeps/x86_64/bsd-setjmp.S: New file.
6409 * sysdeps/x86_64/dl-machine.h: New file.
6410 * sysdeps/x86_64/elf/initfini.c: New file.
6411 * sysdeps/x86_64/elf/start.S: New file.
6412 * sysdeps/x86_64/ffs.c: New file.
6413 * sysdeps/x86_64/ffsll.c: New file.
6414 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
6415 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
6416 * sysdeps/x86_64/fpu/e_acosl.c: New file.
6417 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
6418 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
6419 * sysdeps/x86_64/fpu/e_expl.c: New file.
6420 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
6421 * sysdeps/x86_64/fpu/e_log10l.S: New file.
6422 * sysdeps/x86_64/fpu/e_log2l.S: New file.
6423 * sysdeps/x86_64/fpu/e_logl.S: New file.
6424 * sysdeps/x86_64/fpu/e_powl.S: New file.
6425 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
6426 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
6427 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
6428 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
6429 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
6430 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
6431 * sysdeps/x86_64/fpu/fegetenv.c: New file.
6432 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
6433 * sysdeps/x86_64/fpu/fegetround.c: New file.
6434 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
6435 * sysdeps/x86_64/fpu/fesetenv.c: New file.
6436 * sysdeps/x86_64/fpu/fesetround.c: New file.
6437 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
6438 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
6439 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
6440 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
6441 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
6442 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
6443 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
6444 * sysdeps/x86_64/fpu/s_atanl.c: New file.
6445 * sysdeps/x86_64/fpu/s_cosl.S: New file.
6446 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
6447 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
6448 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
6449 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
6450 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
6451 * sysdeps/x86_64/fpu/s_logbl.c: New file.
6452 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
6453 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
6454 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
6455 * sysdeps/x86_64/fpu/s_rintl.c: New file.
6456 * sysdeps/x86_64/fpu/s_significandl.c: New file.
6457 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
6458 * sysdeps/x86_64/fpu/s_sinl.S: New file.
6459 * sysdeps/x86_64/fpu/s_tanl.S: New file.
6460 * sysdeps/x86_64/gmp-mparam.h: New file.
6461 * sysdeps/x86_64/hp-timing.c: New file.
6462 * sysdeps/x86_64/hp-timing.h: New file.
6463 * sysdeps/x86_64/htonl.S: New file.
6464 * sysdeps/x86_64/memusage.h: New file.
6465 * sysdeps/x86_64/setjmp.S: New file.
6466 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
6467 * sysdeps/x86_64/stackinfo.h: New file.
6468 * sysdeps/x86_64/sysdep.h: New file.
6469 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
6471 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
6474 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6476 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
6477 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
6479 2001-09-18 Andreas Schwab <schwab@suse.de>
6481 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
6482 list, now that l_scope is a pointer.
6484 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
6487 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
6489 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
6490 (elf_machine_rela_relative): Add a missing declaration.
6492 2001-09-18 Jakub Jelinek <jakub@redhat.com>
6494 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
6495 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
6496 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
6497 ldd-rewrite scripts.
6499 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6501 * elf/ldd.bash.in: Update copyright message.
6503 2001-09-17 H.J. Lu <hjl@gnu.org>
6505 * hurd/hurdmalloc.c (bcopy): Removed.
6506 (realloc): Replace bcopy with memcpy.
6507 * hurd/path-lookup.c (file_name_path_scan): Likewise.
6508 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
6509 * sunrpc/rpcinfo.c (pmapdump): Likewise.
6511 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
6512 (gethostbyaddr): Likewise.
6513 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
6515 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6517 * sysdeps/gnu/eval.c: Removed.
6519 2001-09-18 Andreas Jaeger <aj@suse.de>
6521 * sysdeps/i386/fpu/s_logbl.S: Move to ...
6522 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
6524 * sysdeps/i386/fpu/s_rintl.S: Move to ...
6525 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
6527 * sysdeps/i386/fpu/s_significandl.S: Move to ...
6528 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
6530 2001-09-16 Ulrich Drepper <drepper@redhat.com>
6532 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6535 2001-09-14 H.J. Lu <hjl@gnu.org>
6537 * sysdeps/mips/fpu/libm-test-ulps: Updated.
6539 2001-09-14 Ulrich Drepper <drepper@redhat.com>
6541 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
6542 Patch by Florian La Roche <laroche@redhat.com>.
6544 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
6546 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
6549 2001-09-14 Andreas Schwab <schwab@suse.de>
6551 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
6552 Sumner <bls@sgi.com>.
6553 * posix/execlp.c: Likewise.
6555 2001-09-13 Jakub Jelinek <jakub@redhat.com>
6557 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
6558 is already found earlier in the search scope.
6560 2001-09-12 Jakub Jelinek <jakub@redhat.com>
6562 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
6565 2001-09-13 Ulrich Drepper <drepper@redhat.com>
6567 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
6569 2001-09-12 Ulrich Drepper <drepper@redhat.com>
6571 * config.h.in: Enforce optimization to be used.
6572 * Makeconfig (preprocess-versions): Define ASSEMBLER.
6573 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
6574 * posix/Makefile (annexc-CFLAGS): Define to -O.
6575 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
6577 2001-09-11 Ulrich Drepper <drepper@redhat.com>
6579 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
6580 Patch by Stephan Kulow.
6582 2001-09-08 Ben Collins <bcollins@debian.org>
6584 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
6585 usage of RESOLVE() (r_type, not reloc->r_type).
6587 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6589 * elf/dl-object.c: Avoid allocating extra memory block for name.
6590 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
6591 allocated separately.
6592 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6594 2001-09-08 H.J. Lu <hjl@gnu.org>
6596 * po/zh_TW.po: Fix a typo.
6598 2001-09-07 Tom Rix <trix@redhat.com>
6600 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
6602 2001-08-26 Tom Rix <trix@redhat.com>
6604 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
6605 command line options.
6606 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
6607 * sysdeps/unix/sysv/aix/start.c: Removed.
6608 * sysdeps/unix/sysv/aix/start-libc.c: New file.
6609 * sysdeps/unix/sysv/aix/init-first.c: New file.
6610 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
6612 2001-09-08 Ben Collins <bcollins@debian.org>
6614 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
6615 * sysdeps/generic/dl-machine.h: Likewise.
6616 * sysdeps/hppa/dl-fptr.c: Likewise.
6617 * sysdeps/ia64/dl-fptr.c: Likewise.
6618 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6619 * sysdeps/mips/dl-machine.h: Likewise.
6620 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6621 * sysdeps/powerpc/dl-machine.c: Likewise.
6623 2001-09-07 Ben Collins <bcollins@debian.org>
6625 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
6627 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
6629 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6631 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
6632 dependencies if necessary.
6634 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
6635 loaded directly) determine length if l_initfini list by iterating
6636 over its elements. Minor optimizations.
6637 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
6638 for dependency objects.
6639 If object was already loaded check whether any of the dependencies
6640 is already on the relocation dependency list. If yes, remove the
6641 latter. Minor optimizations.
6642 * elf/dl-lookup.c (add_dependency): Add check for self reference of
6643 maps here. Search l_initfini list only if the object was loaded
6644 directly and not only as a dependency.
6645 (_dl_lookup_symbol): Add relocation dependency also if object
6646 is not in global scope. Remove test for self-reference here.
6647 (_dl_lookup_versioned_symbol): Likewise.
6648 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
6649 element of first name record.
6650 * elf/loadtest.c: Add some more test to recognize early if an object
6652 * elf/Makefile: Add rules to build and run reldep5.
6653 * elf/reldep5.c: New file.
6654 * elf/reldepmod5.c: New file.
6655 * elf/reldepmod6.c: New file.
6657 * elf/reldep2.c: Fix typo.
6659 2001-09-07 Ulrich Drepper <drepper@redhat.com>
6661 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
6662 elements. Change l_scope to be a pointer only.
6663 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
6664 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
6665 here add searchlist of newly open file to the dependency's scope.
6666 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
6667 only searchlist from its scope. Free own scope array if necessary.
6668 * elf/Makefile (tests): Add dblload and dblunload now.
6670 2001-09-06 Andreas Jaeger <aj@suse.de>
6672 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
6675 2001-09-05 Ulrich Drepper <drepper@redhat.com>
6677 * elf/Makefile: Add rules to build new tests. Don't run them yet since
6679 * elf/dblload.c: New file.
6680 * elf/dblloadmod1.c: New file.
6681 * elf/dblloadmod2.c: New file.
6682 * elf/dblloadmod3.c: New file.
6683 * elf/dblunload.c: New file.
6685 2001-09-04 Richard Henderson <rth@redhat.com>
6687 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
6688 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
6690 2001-09-04 Ulrich Drepper <drepper@redhat.com>
6692 Correct very misleading message for error in failed runtime relocation.
6693 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
6695 (_dl_signal_cerror): Likewise.
6696 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6697 * elf/dl-close.c: Likewise.
6698 * elf/dl-deps.c: Likewise.
6699 * elf/dl-load.c: Likewise.
6700 * elf/dl-lookup.c: Likewise.
6701 * elf/dl-open.c: Likewise.
6702 * elf/dl-reloc.c: Likewise.
6703 * elf/dl-sym.c: Likewise.
6704 * elf/dl-version.c: Likewise.
6705 * sysdeps/generic/dl-sysdep.c: Likewise.
6707 2001-09-04 Jakub Jelinek <jakub@redhat.com>
6709 * iconv/strtab.c (strtabinit): Initialize null Strent.
6710 (newstring): Move len == 0 handling...
6711 (strtabadd): ...here.
6712 If len == 1, return null Strent.
6713 When inserting a suffix of an existing string, check if
6714 it is not equal to some suffix already recorded.
6715 Copy left and right members over if adding longer string.
6717 2001-09-04 Jakub Jelinek <jakub@redhat.com>
6719 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
6721 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
6722 (__syscall_gethostname): Add prototype.
6724 2001-09-04 Ulrich Drepper <drepper@redhat.com>
6726 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
6728 2001-09-02 Ulrich Drepper <drepper@redhat.com>
6730 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
6732 2001-08-27 Roland McGrath <roland@frob.com>
6734 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
6735 short, copy that much into NAME anyway before returning error.
6737 2001-09-01 Richard Henderson <rth@redhat.com>
6739 * sysdeps/alpha/elf/Dist: Remove file.
6740 * sysdeps/alpha/elf/Makefile: Remove file.
6741 * sysdeps/alpha/elf/crtbegin.S: Remove file.
6742 * sysdeps/alpha/elf/crtend.S: Remove file.
6743 * sysdeps/alpha/elf/initfini.c: New file.
6745 2001-09-01 Mark Kettenis <kettenis@gnu.org>
6747 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
6748 * iconv/tst-iconv3.c: Likewise.
6750 2001-09-01 Jakub Jelinek <jakub@redhat.com>
6752 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
6754 2001-09-01 Ulrich Drepper <drepper@redhat.com>
6756 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
6758 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
6759 * iconv/iconv_prog.c (insert_cache): New function.
6760 (print_known_names): If cache is used call insert_cache to use the
6761 information from the cache [PR libc/2509].
6763 2001-08-31 Ulrich Drepper <drepper@redhat.com>
6765 * time/strptime.c (strptime_internal): Recognize 'l' format and
6766 handle it like 'I' for symmetry with strftime.
6768 2001-08-31 Richard Henderson <rth@redhat.com>
6770 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
6771 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
6772 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
6773 (print_statistics): Make scalar unsigned long long.
6774 * sysdeps/alpha/hp-timing.h: New file.
6776 2001-08-31 Jakub Jelinek <jakub@redhat.com>
6778 * stdio-common/perror.c (perror): Save errno early, pass it
6779 down to perror_internal.
6780 (perror_internal): Add errnum argument.
6782 2001-08-31 Jakub Jelinek <jakub@redhat.com>
6784 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
6785 Don't add old memory content for R_ALPHA_REFQUAD.
6787 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6789 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
6792 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
6793 instead of open, __close instead of close, __getpagesize instead
6796 * string/argz-stringify.c (__argz_stringify): Use __strnlen
6798 * include/string.h (strndupa): Redefine here to use __strnlen
6800 * string/strndup.c (__strndup): Use __strnlen not strnlen.
6802 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
6805 2001-08-30 Jakub Jelinek <jakub@redhat.com>
6807 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
6808 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
6809 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
6810 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
6811 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
6812 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
6813 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
6815 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6817 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
6819 2001-08-30 Andreas Jaeger <aj@suse.de>
6821 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
6822 contributed Stephen L Moshier.
6824 2001-08-30 Jakub Jelinek <jakub@redhat.com>
6826 * sunrpc/etc.rpc (sgi_fam): Add.
6828 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6830 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
6832 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6834 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
6835 first is from a previous call.
6836 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
6838 2001-08-29 Andreas Schwab <schwab@suse.de>
6840 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
6842 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6844 * config.make.in (INSTALL_SCRIPT): Define.
6845 * Makeconfig (INSTALL_SCRIPT): Define.
6846 * Makerules (do-install-script): New macro to install scripts using
6848 (install-bin-script): New rule to install scripts with
6850 (install-bin-script-nosubdir): New rule.
6851 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
6852 (distinfo-vars): Add $(install-bin-script).
6853 * Rules (others): Likewise.
6854 * Makefile (glibcbug): Install with install-bin-script.
6855 * debug/Makefile (xtrace): Likewise.
6856 (catchsegv): Likewise.
6857 * elf/Makefile (ldd): Likewise.
6858 * malloc/Makefile (mtrace): Likewise.
6859 * timezone/Makefile (tzselect): Likewise.
6861 2001-08-29 H.J. Lu <hjl@gnu.org>
6863 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
6864 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
6865 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
6867 2001-08-29 Andreas Schwab <schwab@suse.de>
6869 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
6871 2001-08-28 H.J. Lu <hjl@gnu.org>
6873 * Makeconfig (combreloc-LDFLAGS): New variable.
6874 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
6875 * config.make.in (have-z-combreloc): New variable.
6876 * configure.in: Substitute libc_cv_z_combreloc.
6878 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6880 * po/sv.po: Update from translation team.
6881 * po/fr.po: Likewise.
6882 * po/da.po: Likewise.
6884 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6886 * Makerules: Fix a typo: MD% -> MD5.
6888 2001-08-28 Ulrich Drepper <drepper@redhat.com>
6890 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
6891 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
6893 2001-08-28 Andreas Jaeger <aj@suse.de>
6895 * manual/libc-texinfo.sh: Add entry about free manuals.
6897 * manual/contrib.texi (Contributors): Fix cross reference.
6899 * manual/libc.texinfo (Copying): Include freemanuals.
6901 * manual/Makefile (appendices): Add freemanuals.
6903 * manual/freemanuals.texi: New file.
6904 Patch by Brian Youmans <3diff@gnu.org>.
6906 * manual/libm-err-tab.pl: Pretty print more platforms, print a
6909 * manual/math.texi (Errors in Math Functions): Fix grammar, start
6910 table on separate page.
6911 Patch by Brian Youmans <3diff@gnu.org>.
6913 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6915 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
6916 the connection went down after we first used it try to connect
6917 again and resend the message before printing to the console.
6918 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
6920 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6922 * string/tst-strlen.c (main): Test strnlen (, -1) too.
6923 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
6926 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6928 * iconv/strtab.c (searchstring): Use correct length for comparison.
6929 (strtabadd): Account total size correct if new string has old string as
6932 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6934 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
6936 2001-08-27 Andreas Jaeger <aj@suse.de>
6938 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
6940 * math/libm-test.inc (j0_test): Add extra tests.
6941 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
6942 not x, in Hankel approximation.
6943 Patches by Stephen L Moshier.
6945 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6947 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
6950 * configure.in: Fix test for .rela.dyn section.
6952 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
6954 2001-08-26 Jakub Jelinek <jakub@redhat.com>
6956 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
6957 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
6958 Pass type_class to _dl_lookup_*.
6959 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
6960 Pass around just type_class instead of noexec, noplt pair.
6961 (_dl_lookup_versioned_symbol): Likewise.
6962 (_dl_lookup_symbol_skip): Pass around just type_class instead of
6964 (_dl_lookup_versioned_symbol_skip): Likewise.
6965 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
6966 * elf/do-lookup.h (do_lookup): Likewise.
6967 * include/link.h (struct link_map): Replace noexec and noplt fields
6968 in l_lookup_cache with type_class field.
6969 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
6970 ELF_RTYPE_CLASS_COPY): Define.
6971 Adjust prototypes for _dl_lookup_symbol and
6972 _dl_lookup_versioned_symbol.
6973 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
6974 elf_machine_lookup_noexec_p): Remove.
6975 (elf_machine_type_class): Define.
6976 * sysdeps/arm/dl-machine.h: Likewise.
6977 * sysdeps/hppa/dl-machine.h: Likewise.
6978 * sysdeps/cris/dl-machine.h: Likewise.
6979 * sysdeps/i386/dl-machine.h: Likewise.
6980 * sysdeps/ia64/dl-machine.h: Likewise.
6981 * sysdeps/m68k/dl-machine.h: Likewise.
6982 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6983 * sysdeps/mips/dl-machine.h: Likewise.
6984 * sysdeps/powerpc/dl-machine.h: Likewise.
6985 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6986 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6987 * sysdeps/sh/dl-machine.h: Likewise.
6988 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6989 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6991 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6993 * manual/message.texi (Advanced gettext functions): Change
6994 description of plural forms for Slovak.
6995 Reported by Marcel Telka <marcel@telka.sk>.
6997 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
6998 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7000 2001-08-26 Jakub Jelinek <jakub@redhat.com>
7002 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7003 typo. Patch by Florian La Roche <laroche@redhat.com>.
7005 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7007 * include/link.h (struct link_map): Add l_lookup_cache element.
7008 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7009 (RESOLVE_MAP): Likewise.
7010 (_dl_relocate_object): Remove cache initialization.
7011 * elf/dl-lookup.c: Rip out cache handling code.
7012 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7015 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7016 remove some __builtin_expect.
7017 (_dl_lookup_versioned_symbol): Likewise.
7019 * config.h.in: Add HAVE_Z_COMBRELOC.
7020 * configure.in: Add test for -z combreloc.
7022 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7023 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
7024 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
7025 case to almost no code.
7027 2001-08-25 Ulrich Drepper <drepper@redhat.com>
7029 * po/tr.po: Update from translation team.
7031 2001-08-24 Andreas Jaeger <aj@suse.de>
7033 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7036 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7038 * elf/rtld.c (print_statistics): Printf % after percent values.
7039 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7041 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7042 don't have to compute the hash value and initialize current_value.
7043 Move reference_name variable to where it is needed.
7044 (_dl_lookup_versioned_symbol): Likewise.
7046 2001-08-24 Roland McGrath <roland@frob.com>
7048 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7049 Just test that strerror returns non-null for a few errno codes.
7051 2001-08-23 Roland McGrath <roland@frob.com>
7053 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7054 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7056 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7058 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7061 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7063 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7066 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7067 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7069 * elf/rtld.c: Include <sys/param.h>.
7070 * elf/dl-reloc.c: Likewise.
7072 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7074 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7075 empty to prevent junk from being generated.
7076 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7078 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7080 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7081 records. Rename endrel to relative, initialize it to r, and use it
7082 in elf_machine_rel_relative calls. Point r after relative relocs.
7084 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7086 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7089 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7091 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7092 necessary. Undefine newly defined macros at the end.
7093 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7094 Rename from elf_machine_rel_relative.
7095 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7096 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7097 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7098 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7100 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7102 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7104 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7106 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7107 Likewise. Fix argument types.
7108 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7109 Likewise. Fix argument types.
7110 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7112 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7113 ElfW(Rel) in argument.
7114 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7117 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
7119 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7121 2001-08-24 Andreas Jaeger <aj@suse.de>
7123 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7124 Stephen L Moshier <moshier@mediaone.net>.
7126 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7128 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7129 first if RELCOUNT is set.
7131 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7132 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7133 elf_machine_rel_relative.
7134 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7135 Minor optimizations.
7136 * sysdeps/arm/dl-machine.h: Likewise.
7137 * sysdeps/cris/dl-machine.h: Likewise.
7138 * sysdeps/hppa/dl-machine.h: Likewise.
7139 * sysdeps/i386/dl-machine.h: Likewise.
7140 * sysdeps/ia64/dl-machine.h: Likewise.
7141 * sysdeps/m68k/dl-machine.h: Likewise.
7142 * sysdeps/mips/dl-machine.h: Likewise.
7143 * sysdeps/powerpc/dl-machine.h: Likewise.
7144 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7145 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7146 * sysdeps/sh/dl-machine.h: Likewise.
7147 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7148 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7150 2001-08-23 Roland McGrath <roland@frob.com>
7152 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7154 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7155 sysdeps/mach version. Implement counting ("recursive") mutexes
7156 on top of cthreads mutexes.
7157 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7159 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7160 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7161 (__libc_cleanup_region_start, __libc_cleanup_region_end,
7162 __libc_clean_end): Define these to call the cleanup function after
7163 normal exit when they're supposed to.
7165 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7166 Take new first arg DOIT, a boolean saying whether to really install
7167 any cleanup handler.
7168 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7169 (__libc_cleanup_end): Likewise.
7170 * sysdeps/generic/bits/libc-lock.h: Same changes.
7171 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7172 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7173 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7175 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7176 * sysdeps/generic/bits/stdio-lock.h
7177 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7179 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7181 * elf/ldconfig.c (search_dir): Remove stale symlinks.
7183 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7185 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7186 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7188 (_dl_lookup_versioned_symbol): Likewise.
7189 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7191 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7192 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7193 (lookup_cache, lookup_cache_versioned): Add declarations.
7195 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7197 * stdlib/tst-random.c (main): Swap parameters in fail call.
7198 Patch by Pete Bevin <pete@petebevin.com>.
7200 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7202 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7204 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7206 * malloc/obstack.c: Indent preprocessor directives.
7207 Patch by Jim Meyering <meyering@ascend.com>.
7209 * po/ja.po: Update from translation team.
7211 2001-08-23 Roland McGrath <roland@frob.com>
7213 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
7215 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
7216 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
7218 2001-08-22 Roland McGrath <roland@frob.com>
7220 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
7221 __libc_lock_define_recursive.
7222 * elf/dl-open.c: Don't declare it here any more.
7223 * elf/dl-close.c: Likewise.
7224 * elf/dl-lookup.c: Likewise.
7225 * elf/dl-iteratephdr.c: Likewise.
7226 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
7227 __libc_lock_unlock_recursive.
7228 * elf/dl-close.c (_dl_close): Likewise
7229 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
7230 * elf/dl-open.c (_dl_open): Likewise
7232 * sysdeps/generic/bits/libc-lock.h
7233 (__libc_lock_define_recursive): New macro.
7234 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
7235 (_IO_lock_lock): Use __libc_lock_lock_recursive.
7236 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
7238 * conform/conformtest.pl (checknamespace): Sort the output list.
7240 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
7241 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
7242 definitions conditional on [__USE_XOPEN].
7244 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
7245 these unconditionally, not only use [__USE_BSD], so as to match
7246 the sysdeps/unix/sysv/linux files.
7248 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7250 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
7253 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
7256 2001-08-22 Roland McGrath <roland@frob.com>
7258 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
7259 conditionalization of sa_handler/sa_sigaction member types to
7260 match the sysdeps/unix/sysv/linux file.
7262 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7264 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
7265 symbol sizes a bit better.
7267 * sysdeps/ia64/strncpy.S: Complete rewrite.
7268 Contributed by Jakub Jelinek <jakub@redhat.com>.
7270 * string/stratcliff.c (main): Add strncpy test.
7272 2001-08-22 Roland McGrath <roland@frob.com>
7274 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
7275 and don't declare unsetenv or _environ directly.
7276 (unsetenv): Return int, not void. Use __environ instead of _environ.
7278 2001-08-01 Mark Kettenis <kettenis@gnu.org>
7280 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
7281 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
7282 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
7283 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7284 test for cmsg struct size.
7286 2001-04-23 Paul Eggert <eggert@twinsun.com>
7288 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
7289 Rename __argc to ___argc in prototypes to avoid compatibility
7290 problems with systems that reserve the identifier "__argc".
7291 Similarly for __argv.
7293 2001-08-21 Roland McGrath <roland@frob.com>
7295 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
7297 * mach/Makefile (tests): Removed.
7298 * mach/hello.c: File removed.
7300 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7302 * po/sv.po: Update from translation team.
7304 * stdio-common/vfscanf.c: Fix handling of %l[].
7305 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
7307 * libio/Makefile (tests): Add tst-sscanf.
7308 * libio/tst-sscanf.c: New file.
7310 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
7311 * malloc/mtrace.c (tr_where): dli_sname always points to a
7312 non-empty string if != NULL.
7313 Reported by Tim Janik <timj@gtk.org>.
7315 2001-08-22 Jakub Jelinek <jakub@redhat.com>
7317 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
7318 buf. Free resources on failure.
7319 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
7320 (makefd_xprt): Likewise.
7321 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7322 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
7323 * sunrpc/auth_unix.c (authunix_create): Likewise.
7325 2001-08-21 Jakub Jelinek <jakub@redhat.com>
7327 * string/strnlen.c: Remove.
7328 * sysdeps/generic/strnlen.c: New file.
7329 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
7331 2001-08-21 Roland McGrath <roland@frob.com>
7333 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
7334 as a macro, not an extern inline function.
7336 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
7337 * Versions.def (libc): Add GLIBC_2.2.5 set.
7338 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
7339 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
7341 2001-08-20 Roland McGrath <roland@frob.com>
7343 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
7344 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
7346 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7348 * string/bits/string2.h: Remove strnlen optimization here.
7349 * sysdeps/i386/i486/bits/string.h: Add it here.
7351 2001-08-21 Wolfram Gloger <wg@malloc.de>
7353 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
7355 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7357 * po/gl.po: Update from translation team.
7359 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7361 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
7362 * misc/err.c (convert_and_print): Likewise.
7364 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
7367 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7369 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
7370 change of the gregset_t type.
7371 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7373 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
7375 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
7377 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7379 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
7381 * string/strnlen.c: Fix the implementation. We cannot use memchr.
7383 2001-08-18 Mark Kettenis <kettenis@gnu.org>
7385 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
7386 before calling the cthreads initialization code.
7388 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7390 * argp/argp-help.c: Fix two problems introduced in last change.
7392 * include/dirent.h: Include <dirstream.h> first.
7394 2001-08-19 Ulrich Drepper <drepper@redhat.com>
7396 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
7398 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
7399 * sunrpc/xdr_rec.c: Likewise.
7400 * sunrpc/xdr_mem.c: Likewise.
7401 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
7402 * sunrpc/rpc_cmsg.c: Likewise.
7403 * sunrpc/getrpcport.c (getrpcport): Likewise.
7404 * sunrpc/clnt_simp.c (callrpc): Likewise.
7405 * sunrpc/clnt_gen.c (clnt_create): Likewise.
7406 * string/envz.c: Likewise.
7408 * po/ko.po: Update from translation team.
7410 * argp/argp-help.c: Handle wide oriented stderr stream.
7412 2001-08-18 Ulrich Drepper <drepper@redhat.com>
7414 * sysdeps/generic/strtol.c: Little optimizations. Add some
7417 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
7419 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
7420 * wcsmbs/wcwidth.c (wcwdith): Likewise.
7421 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
7423 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
7425 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
7427 * time/time.h (struct timespec): Use __time_t for tv_sec element.
7429 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
7430 wchar_t for function declarations and defintions.
7432 * misc/sys/select.h: Define __need_time_t before including <time.h>.
7433 Define suseconds_t if it hasn't happened yet.
7435 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
7437 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
7439 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
7442 * conform/data/stddef.h-data: Remove wint_t.
7444 * conform/conformtest.pl: Change namespace test to take #undef
7447 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
7449 * conform/data/sys/socket.h-data: Add sockatmark.
7451 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7453 * io/fts.c: Update from recent BSD source.
7455 2001-08-17 Roland McGrath <roland@frob.com>
7457 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
7458 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
7461 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7463 * locale/duplocale.c (__duplocale): Also initialize the special
7466 * conform/data/netdb.h-data: Adjust gai_strerror return type.
7468 2001-08-17 Andreas Jaeger <aj@suse.de>
7470 * misc/getpass.c: Include wchar.h for prototypes.
7471 * malloc/obstack.c: Likewise.
7473 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7475 * sunrpc/svc_simple.c (universal): Use __write instead of write.
7477 * wcsmbs/wcscoll.c: Also define __wcscoll.
7478 * include/wchar.h: Declare __wcscoll.
7480 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
7481 * libio/vwprintf.c: Likewise.
7482 * libio/wprintf.c: Likewise.
7484 * iconv/gconv_cache.c: Use __munmap instead of munmap.
7486 2001-08-16 Ulrich Drepper <drepper@redhat.com>
7488 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
7490 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
7491 wcslen, and __wcscoll instead of wcscoll.
7493 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
7495 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
7496 __getuid instead of getuid.
7498 * stdio-common/perror.c (perror): Use __close instead of close.
7499 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7500 * libio/freopen.c (freopen): Likewise.
7501 * libio/freopen64.c (freopen64): Likewise.
7503 * libio/tst-ungetwc2.c (main): Define str const.
7505 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
7506 * libio/fwprintf.c: Also define __fwprintf.
7507 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
7508 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
7509 * assert/assert-perr.c: Likewise.
7510 * assert/assert.c: Likewise.
7511 * gmon/gmon.c: Likewise.
7512 * inet/rcmd.c: Likewise.
7513 * malloc/obstack.c: Likewise.
7514 * misc/err.c: Likewise.
7515 * misc/error.c: Likewise.
7516 * misc/getpass.c: Likewise.
7517 * posix/getopt.c: Likewise.
7518 * resolv/res_hconf.c: Likewise.
7519 * stdio-common/perror.c: Likewise.
7520 * stdio-common/psignal.c: Likewise.
7521 * stdlib/fmtmsg.c: Likewise.
7522 * sunrpc/auth_unix.c: Likewise.
7523 * sunrpc/clnt_perr.c: Likewise.
7524 * sunrpc/clnt_tcp.c: Likewise.
7525 * sunrpc/clnt_udp.c: Likewise.
7526 * sunrpc/clnt_unix.c: Likewise.
7527 * sunrpc/svc_simple.c: Likewise.
7528 * sunrpc/svc_tcp.c: Likewise.
7529 * sunrpc/svc_udp.c: Likewise.
7530 * sunrpc/svc_unix.c: Likewise.
7531 * sunrpc/xdr.c: Likewise.
7532 * sunrpc/xdr_array.c: Likewise.
7533 * sunrpc/xdr_rec.c: Likewise.
7534 * sunrpc/xdr_ref.c: Likewise.
7535 * sysdeps/generic/wordexp.c: Likewise.
7537 * po/it.po: Update from translation team.
7539 * misc/err.c: Handle wide oriented stderr stream.
7541 2001-08-14 Tom Rix <trix@redhat.com>
7543 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
7544 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
7546 2001-08-13 Tom Rix <trix@redhat.com>
7548 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
7549 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
7552 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
7554 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
7555 Store the access registers to the ucontext structure.
7556 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
7559 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
7560 Load the access registers from the ucontext structure.
7561 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
7564 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
7565 offsets to the new ucontext layout.
7566 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
7568 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
7569 of the ucontext structure.
7570 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7572 2001-08-15 Ulrich Drepper <drepper@redhat.com>
7574 * misc/error.c (error): Handle wide oriented stderr stream correctly.
7575 (error_at_line): Likewise.
7577 * stdio-common/perror.c (perror): Implement according to standard.
7578 The stream orientation must not be changed if the stream was not
7579 oriented before the call.
7580 * stdio-common/Makefile (tests): Add tst-perror.
7581 * stdio-common/tst-perror.c: New file.
7584 See ChangeLog.12 for earlier changes.