1 2002-06-15 Roland McGrath <roland@frob.com>
3 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6 * sysdeps/mach/hurd/getcwd.c
7 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
9 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
10 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
12 * sysdeps/alpha/divrem.h: Use local label instead of global one for
13 jump to local subroutine.
15 2002-06-14 Roland McGrath <roland@frob.com>
17 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
18 * sysdeps/mach/hurd/Makeconfig: ... here.
20 2002-06-13 Andreas Schwab <schwab@suse.de>
22 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
23 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
24 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
26 2002-06-13 Roland McGrath <roland@frob.com>
28 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
29 * hurd/hurdstartup.c (_hurd_startup): Likewise.
30 Use intptr_t instead of int for argc in stack layout.
31 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
32 (_dl_init_first): Likewise.
33 (_hurd_stack_setup): Likewise.
35 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
37 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
38 argument to pfinet_siocgifconf RPC.
40 2002-06-13 Andreas Schwab <schwab@suse.de>
42 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
45 2002-06-12 Roland McGrath <roland@frob.com>
47 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
49 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
50 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
52 2002-06-11 Roland McGrath <roland@frob.com>
54 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
55 file on [!RTLD_STAT64].
56 * sysdeps/mach/hurd/fxstat64.c: Likewise.
58 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
59 (__fdopen): Use INTUSE.
60 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
62 * stdio-common/tmpfile64.c: File removed.
63 * sysdeps/generic/tmpfile64.c: New file.
64 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
65 if not already defined.
66 (tmpfile): Use it in place of __GT_FILE.
68 * include/unistd.h: Declare __chown_internal.
70 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
71 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
73 2002-06-09 Roland McGrath <roland@frob.com>
75 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
76 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
77 value of HURD_INTERFACE_VERSION >= 20020609.
78 * sysdeps/mach/hurd/configure: Regenerated.
79 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
80 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
81 convert a struct stat64 into a struct stat and return 0 or -1
82 with errno set to EOVERFLOW.
83 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
84 for struct statfs64 to struct statfs.
85 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
86 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
87 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
88 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
89 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
90 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
91 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
92 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
93 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
94 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
95 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
96 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
97 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
98 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
99 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
100 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
101 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
102 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
103 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
104 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
105 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
106 Use struct stat64 for io_stat argument.
107 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
108 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
110 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
111 * hurd/fd-write.c (_hurd_fd_write): Likewise.
112 * hurd/hurd/fd.h: Update decls.
113 * sysdeps/mach/hurd/getcwd.c
114 (_hurd_canonicalize_directory_name_internal): Use ino64_t
116 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
117 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
118 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
119 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
121 2002-06-08 Roland McGrath <roland@frob.com>
123 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
124 instead of unsigned long int for __allocation and __size members.
126 2002-06-09 Jakub Jelinek <jakub@redhat.com>
128 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
129 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
130 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
131 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
133 2002-06-07 Roland McGrath <roland@frob.com>
135 * sysdeps/mach/hurd/bits/environments.h: File removed.
137 2002-06-07 Jakub Jelinek <jakub@redhat.com>
139 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New.
140 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New.
141 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New.
142 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New.
143 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
144 (sendfile64): Likewise.
145 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
146 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
147 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
149 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
151 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
154 2002-06-04 Bruno Haible <bruno@clisp.org>
156 * sysdeps/cris/stackinfo.h: New file.
158 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
159 to an integer type before performing bit operations on it.
161 2002-06-05 Roland McGrath <roland@frob.com>
163 * sysdeps/generic/sendfile.c: Include <errno.h>.
164 * sysdeps/generic/sendfile64.c: Likewise.
166 * io/Makefile (routines): Add sendfile and sendfile64.
167 (headers): Add sys/sendfile.h to the list.
168 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
169 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
170 * io/sys/sendfile.h: ... here.
171 * sysdeps/generic/sendfile.c: New file.
172 * sysdeps/generic/sendfile64.c: New file.
174 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
175 Move sendfile, sendfile64 to ...
176 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
177 * sysdeps/mach/hurd/sendfile.c: New file.
178 * sysdeps/mach/hurd/sendfile64.c: New file.
180 * sysdeps/mach/nanosleep.c: New file.
182 2002-06-04 Roland McGrath <roland@frob.com>
184 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
185 * sysdeps/alpha/elf/configure: New file (generated).
187 2002-06-02 Roland McGrath <roland@frob.com>
189 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
191 2002-06-01 Roland McGrath <roland@frob.com>
193 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
194 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
196 2002-05-19 Ulrich Drepper <drepper@redhat.com>
198 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
200 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
201 Remove nstimes setting.
202 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
203 * resolv/res_send.c (res_nsend): Don't close unconditionally if
204 there is mix of IPv6 and IPv4 nameservers.
205 Use nsmap array to find free slots and preserve nameserver ordering.
208 2002-05-30 Ulrich Drepper <drepper@redhat.com>
210 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
211 use this header with LFS.
213 * po/sk.po: Update from translation team.
215 2002-05-28 Andreas Schwab <schwab@suse.de>
217 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
218 message when finding object of wrong class.
220 2002-05-28 Jakub Jelinek <jakub@redhat.com>
222 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
223 Patch by <radu@netsoft.ro>.
225 2002-05-30 Ulrich Drepper <drepper@redhat.com>
227 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
229 * sysdeps/unix/sysv/linux/readahead.c: New file.
230 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
231 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
232 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
233 Add sendfile64 alias to sendfile syscall.
234 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
235 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
236 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
237 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
240 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
241 special section for PIC register loading.
242 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
244 * config.h.in: Define HAVE_HIDDEN.
245 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
247 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
249 2002-05-28 Roland McGrath <roland@frob.com>
251 * sysdeps/mach/alpha/setfpucw.c: New file.
253 2002-05-26 Roland McGrath <roland@frob.com>
255 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
256 Use integer_t instead of int for IOC_VOID case.
258 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
260 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
262 2002-05-26 Bruno Haible <bruno@clisp.org>
264 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
265 end of the ISO-8859-7 from idx table.
267 2002-05-27 Ulrich Drepper <drepper@redhat.com>
269 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
271 2002-05-24 David S. Miller <davem@redhat.com>
273 * string/bits/string2.h (memset): Do not try to optimize when
274 not _STRING_ARCH_unaligned if GCC will do the right thing.
276 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
278 * posix/regex.c: Define `inline' as a macro into nothing for the
279 compilers which lack the keyword.
280 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
281 for the compatibility of gawk.
282 * posix/regcomp.c: Add fake implementation of isblank() for the
283 environments which lack the function.
284 Don't use free_charset() in case of non-i18n envs.
285 (build_range_exp): Don't use i18n related code in case of non-i18n
287 (build_collating_symbol): Likewise.
288 (build_equiv_class): Likewise.
289 (build_charclass): Likewise.
290 (re_compile_fastmap_iter): Likewise.
291 (parse_bracket_exp): Likewise.
292 (build_word_op): Likewise.
293 (regfree): Don't use free_charset() in case of non-i18n envs.
294 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
295 re_token_type_t in case of non-i18n envs.
296 Don't define re_charset_t in case of non-i18n envs.
297 Change the type of wcs of re_string_t from wchar_t to wint_t,
298 since we store also WEOF.
299 * posix/regex_internal.c: (re_string_realloc_buffers): Change
300 the type of wcs of re_string_t from wchar_t to wint_t.
301 (re_string_reconstruct): Likewise.
302 (create_ci_newstate): Don't use i18n related code in case of
304 (create_cd_newstate): Likewise.
306 2002-05-24 Ulrich Drepper <drepper@redhat.com>
308 * iconv/loop.c: Fix typo.
310 2002-05-23 Jakub Jelinek <jakub@redhat.com>
312 * inet/ether_line.c (ether_line): Fix a typo causing only
313 lower 4 bits of each ethernet address byte being assigned.
314 Don't modify what line points to.
315 * inet/tst-ether_aton.c (main): Add ether_line tests.
317 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
319 * manual/filesys.texi: Don't make readlink example leak memory
322 2002-05-20 Ulrich Drepper <drepper@redhat.com>
324 * iconv/loop.c: Fix condition for defining unaligned loop. Add
325 some more security checks.
327 2002-05-17 David S. Miller <davem@redhat.com>
329 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
331 2002-05-16 David S. Miller <davem@redhat.com>
333 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
334 (elf_machine_dynamic): Use it to force PIC register to be loaded.
335 (elf_machine_load_address): Likewise.
336 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
338 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
339 is unaligned, do not forget to fully initialize %g1 magic value.
341 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
342 register definitions and provide 32-bit variants of structures
343 during 64-bit builds.
345 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
346 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
347 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
348 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
349 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
350 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
351 Do not clear implicit one bit here, it must be done post-rounding.
352 Only pad to the left using left shift if value uses less than the
353 available fractional bits.
355 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
357 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
358 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
359 (shared-only-routines): Likewise.
360 * sysdeps/powerpc/libgcc-compat.c: New file.
361 * sysdeps/wordsize-32/cmpdi2.c: Removed.
362 * sysdeps/wordsize-32/fixdfdi.c: Removed.
363 * sysdeps/wordsize-32/fixsfdi.c: Removed.
364 * sysdeps/wordsize-32/shdi3.c: Removed.
366 2002-05-16 Bruno Haible <bruno@clisp.org>
368 * MakeTAGS (libc.pot): Don't sort the output.
369 * po/header.pot: Update to match xgettext 0.11 output.
371 2002-05-16 Bruno Haible <bruno@clisp.org>
373 * MakeTAGS (subdirs): Remove duplicates.
375 2002-05-19 Ulrich Drepper <drepper@redhat.com>
377 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
378 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
381 2002-05-19 Andreas Jaeger <aj@suse.de>
383 * sysdeps/unix/sysv/linux/configure.in: Warn against an
384 installation in /usr/local.
386 2002-05-16 Bruno Haible <bruno@clisp.org>
388 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
389 string as argument of #error.
391 2002-05-15 Ulrich Drepper <drepper@redhat.com>
393 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
394 don't define static. Remove old __realpath function. TC1 of
395 POSIX 2001 will allow the second parameter to be NULL.
396 * stdlib/test-canon.c: Comment out test for NULL as second
397 parameter of realpath.
399 * time/offtime.c (__offtime): Set errno if overflow is detected.
401 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
402 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
405 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
408 2002-05-15 Roland McGrath <roland@frob.com>
410 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
412 2002-05-12 Bruno Haible <bruno@clisp.org>
414 * iconvdata/testdata/EUC-JISX0213: New file.
415 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
416 * iconvdata/testdata/SHIFT_JISX0213: New file.
417 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
418 * iconvdata/testdata/ISO-2022-JP-3: New file.
419 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
420 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
421 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
422 contains comments indicating precomposed characters.
424 2002-04-21 Bruno Haible <bruno@clisp.org>
426 * iconvdata/iso-2022-jp-3.c: New file.
427 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
428 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
429 (LDFLAGS-ISO-2022-JP-3.so): New variable.
430 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
431 (distribute): Add iso-2022-jp-3.c.
433 2002-05-12 Bruno Haible <bruno@clisp.org>
435 * iconvdata/tst-table-to.c (main): Restore handling of
436 transliterations, broken by last patch.
438 2002-05-12 Bruno Haible <bruno@clisp.org>
440 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
442 2002-05-12 Bruno Haible <bruno@clisp.org>
444 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
445 when there is not enough room in the output buffer.
446 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
448 2002-04-20 Bruno Haible <bruno@clisp.org>
450 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
452 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
453 Also make this macro work if FROM_DIRECTION evaluates to 0.
454 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
455 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
456 of consume_incomplete.
457 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
458 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
460 * iconvdata/cp1258.c: Likewise.
461 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
462 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
464 * iconvdata/ibm933.c: Likewise.
465 * iconvdata/ibm935.c: Likewise.
466 * iconvdata/ibm937.c: Likewise.
467 * iconvdata/ibm939.c: Likewise.
468 * iconvdata/iso-2022-cn.c: Define
469 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
470 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
471 * iconvdata/iso-2022-cn-ext.c: Likewise.
472 * iconvdata/iso-2022-jp.c: Define
473 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
474 {MIN,MAX}_NEEDED_{FROM,TO}.
475 * iconvdata/tcvn5712-1.c: Define
476 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
477 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
478 * iconvdata/euc-jisx0213.c: Define
479 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
480 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
481 * iconvdata/shift_jisx0213.c: Likewise.
483 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
485 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
486 shdi3, fixdfdi, fixsfdi in csu dir.
487 (shared-only-routines): Likewise.
488 * sysdeps/wordsize-32/cmpdi2.c: New file.
489 * sysdeps/wordsize-32/shdi3.c: New file.
490 * sysdeps/wordsize-32/fixdfdi.c: New file.
491 * sysdeps/wordsize-32/fixsfdi.c: New file.
492 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
493 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
494 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
496 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
497 Only use va_arg if the argument will be used [PR libc/3259].
499 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
501 * catgets/catgets.c (catopen): Free buffer if internal catalog
504 2002-05-14 Ulrich Drepper <drepper@redhat.com>
506 * debug/xtrace.sh: Make more robust. For realtime tracking use
507 non-buffering methods.
508 * debug/pcprofiledump.c: Implement -u option.
509 Patch by Roger Luethi <rl@hellgate.ch>.
511 2002-05-11 Jakub Jelinek <jakub@redhat.com>
513 * include/netinet/in.h (bindresvport_internal): Add prototype.
514 * include/rpc/auth.h (authunix_create_internal,
515 authunix_create_default_internal, authnone_create_internal,
516 authdes_pk_create_internal): Add prototypes.
517 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
518 clntudp_create_internal, clntudp_bufcreate_internal,
519 clntunix_create_internal): Add prototypes.
520 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
521 svc_getreq_internal, svc_getreq_common_internal,
522 svc_getreqset_internal, svc_getreq_poll_internal,
523 svc_register_internal, svc_unregister_internal,
524 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
525 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
526 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
527 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
528 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
529 * inet/rcmd.c (rcmd_af): Use __listen.
530 (rresvport_af): Use __bind.
531 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
532 authunix_create, authunix_create_default, authnone_create,
533 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
534 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
535 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
536 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
537 _authenticate, add INTDEF after such function definitions.
538 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
539 __setsockopt, __getsockname instead of non-__ variants.
540 * sunrpc/pmap_rmt.c: Likewise.
541 * sunrpc/rtime.c: Likewise.
542 * sunrpc/svc_udp.c: Likewise.
543 * sunrpc/clnt_unix.c: Likewise.
544 * sunrpc/svc_unix.c: Likewise.
545 * sunrpc/bindrsvprt.c: Likewise.
546 * sunrpc/svc_tcp.c: Likewise.
547 * sunrpc/auth_none.c: Likewise.
548 * sunrpc/clnt_raw.c: Likewise.
549 * sunrpc/clnt_tcp.c: Likewise.
550 * sunrpc/auth_unix.c: Likewise.
551 * sunrpc/key_call.c: Likewise.
552 * sunrpc/clnt_gen.c: Likewise.
553 * sunrpc/pm_getmaps.c: Likewise.
554 * sunrpc/clnt_simp.c: Likewise.
555 * sunrpc/pmap_clnt.c: Likewise.
556 * sunrpc/svc_run.c: Likewise.
557 * sunrpc/svc.c: Likewise.
558 * sunrpc/svc_simple.c: Likewise.
559 * sunrpc/pm_getport.c: Likewise.
560 * sunrpc/auth_des.c: Likewise.
561 * sunrpc/svc_auth.c: Likewise.
562 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
563 __register_frame_info_table_bases, __deregister_frame_info_bases):
565 (__register_frame_info_bases_internal,
566 __register_frame_info_table_bases_internal,
567 __deregister_frame_info_bases_internal): Add prototypes.
568 (__register_frame_info, __register_frame): Use INTUSE in call to
569 __register_frame_info_bases.
570 (__register_frame_info_table): Similarly.
571 (__deregister_frame_info, __deregister_frame): Similarly.
572 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
573 sendto as weak alias.
574 * sysdeps/mach/hurd/sendto.c: Likewise.
575 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
576 recvfrom as weak alias.
577 * sysdeps/mach/hurd/recvfrom.c: Likewise.
578 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
579 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
580 recvmsg as weak alias.
581 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
582 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
583 sendmsg as weak alias.
584 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
585 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
586 setsockopt, add setsockopt as weak alias.
587 * sysdeps/mach/hurd/setsockopt.c: Likewise.
588 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
590 * sysdeps/mach/hurd/bind.c: Likewise.
591 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
593 * sysdeps/mach/hurd/listen.c: Likewise.
594 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
595 getsockname, add getsockname as weak alias.
596 * sysdeps/mach/hurd/getsockname.c: Likewise.
597 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
598 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
599 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
600 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
601 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
602 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
604 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
605 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
606 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
607 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
608 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
609 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
610 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
611 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
612 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
613 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
614 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
615 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
617 2002-05-10 Jakub Jelinek <jakub@redhat.com>
619 * locale/programs/localedef.h (show_archive_content): Add verbose
621 * locale/programs/localedef.c (main): Adjust caller.
622 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
623 (nameentcmp, dataentcmp): New functions.
625 (show_archive_content): Print verbose listing with --list-archive -v.
627 2002-05-14 Ulrich Drepper <drepper@redhat.com>
629 * locale/programs/locarchive.c (open_archive): Take extra argument
630 readonly. If true open file with O_RDONLY and don't create the
631 archive if it doesn't exist.
633 (close_archive): Don't do anything if fd element is -1.
634 * locale/programs/localedef.h (open_archive): Adjust prototype.
635 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
638 * malloc/malloc.c (__posix_memalign): Correct check for size of
639 alignment value [PR libc/3444].
641 * include/stdio.h: Remove references to old stdio implementation.
643 * libio/Makefile (bug-ungetwc2-ENV): Define.
645 2002-05-13 Roland McGrath <roland@frob.com>
647 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
649 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
651 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
653 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
654 Allocate three, not two, more than LEN when appending '/.'.
655 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
656 if NAME ends with '/.' if it is shorter than 2 chars.
658 2002-05-12 Roland McGrath <roland@frob.com>
660 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
661 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
663 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
664 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
666 2002-05-10 Jakub Jelinek <jakub@redhat.com>
668 * sysdeps/ia64/Makefile: Remove extra endif.
669 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
671 2002-05-10 Andreas Schwab <schwab@suse.de>
673 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
675 2002-05-09 Andreas Jaeger <aj@suse.de>
677 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
678 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
679 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
681 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
682 * sysdeps/wordsize-64/glob.c: ...here.
683 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
684 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
685 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
687 2002-05-08 Roland McGrath <roland@frob.com>
689 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
690 O_NOTRANS flag in "." lookup.
692 2002-05-05 Ulrich Drepper <drepper@redhat.com>
694 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
696 2002-05-04 Ulrich Drepper <drepper@redhat.com>
698 * locale/duplocale.c (__duplocale): Update special members only
699 when allocation succeeded.
701 2002-05-03 Roland McGrath <roland@frob.com>
703 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
704 we can only build libc.so.0.3(GLIBC_2.2.6) now.
706 2002-05-02 Jakub Jelinek <jakub@redhat.com>
708 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
709 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
710 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
711 * sysdeps/ia64/ia64libgcc.S: New file.
713 2002-05-02 Ulrich Drepper <drepper@redhat.com>
715 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
717 * malloc/memusage.c: Distinguish anonymous mmap.
719 2002-05-01 Roland McGrath <roland@frob.com>
721 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
722 and use INTDEF on it.
723 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
725 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
727 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
729 2002-05-01 Ulrich Drepper <drepper@redhat.com>
731 * malloc/memusage.c: Add support for tracking mmap & friends.
732 * malloc/memusage.sh: Implement -m/--mmap option.
734 2002-04-30 Jakub Jelinek <jakub@redhat.com>
736 * locale/programs/locarchive.c (create_archive): Add archivefname
737 argument, create fname from it.
738 (enlarge_archive): Honour output_prefix.
739 (open_archive): Likewise.
741 2002-04-30 Jakub Jelinek <jakub@redhat.com>
743 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
744 too many stpcpy macros.
746 2002-04-26 Bruno Haible <bruno@clisp.org>
748 * locale/programs/ld-collate.c (collate_read): Cast first argument
751 2002-04-26 Bruno Haible <bruno@clisp.org>
753 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
754 __dcngettext_internal): New declarations.
755 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
756 attribute declarations.
758 2002-04-30 Roland McGrath <roland@frob.com>
760 Removed old GNU stdio implementation; GNU libio is now the only option.
761 * configure.in: Removed --enable-libio option and @stdio@ subst var.
762 Define USE_IN_LIBIO unconditionally.
763 * configure: Regenerated.
764 * Makeconfig (stdio): Set to libio by default.
765 * config.make.in (stdio): Variable removed.
766 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
767 * sysdeps/unix/sysv/linux/configure: Regenerated.
768 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
769 * sysdeps/mach/hurd/configure: Regenerated.
770 * stdio/.cvsignore: File removed.
771 * stdio/Makefile: File removed.
772 * stdio/Versions: File removed.
773 * stdio/__fbufsize.c: File removed.
774 * stdio/__flbf.c: File removed.
775 * stdio/__fpending.c: File removed.
776 * stdio/__fpurge.c: File removed.
777 * stdio/__freadable.c: File removed.
778 * stdio/__freading.c: File removed.
779 * stdio/__fsetlocking.c: File removed.
780 * stdio/__fwritable.c: File removed.
781 * stdio/__fwriting.c: File removed.
782 * stdio/clearerr.c: File removed.
783 * stdio/fclose.c: File removed.
784 * stdio/fcloseall.c: File removed.
785 * stdio/feof.c: File removed.
786 * stdio/ferror.c: File removed.
787 * stdio/fflush.c: File removed.
788 * stdio/fgetc.c: File removed.
789 * stdio/fgetpos.c: File removed.
790 * stdio/fgets.c: File removed.
791 * stdio/fileno.c: File removed.
792 * stdio/fmemopen.c: File removed.
793 * stdio/fopen.c: File removed.
794 * stdio/fopncook.c: File removed.
795 * stdio/fputc.c: File removed.
796 * stdio/fputs.c: File removed.
797 * stdio/fread.c: File removed.
798 * stdio/freopen.c: File removed.
799 * stdio/fseek.c: File removed.
800 * stdio/fsetpos.c: File removed.
801 * stdio/ftell.c: File removed.
802 * stdio/fwrite.c: File removed.
803 * stdio/getc.c: File removed.
804 * stdio/getchar.c: File removed.
805 * stdio/getdelim.c: File removed.
806 * stdio/gets.c: File removed.
807 * stdio/glue.c: File removed.
808 * stdio/internals.c: File removed.
809 * stdio/linewrap.c: File removed.
810 * stdio/linewrap.h: File removed.
811 * stdio/memstream.c: File removed.
812 * stdio/newstream.c: File removed.
813 * stdio/obstream.c: File removed.
814 * stdio/putc.c: File removed.
815 * stdio/putchar.c: File removed.
816 * stdio/puts.c: File removed.
817 * stdio/rewind.c: File removed.
818 * stdio/setbuf.c: File removed.
819 * stdio/setbuffer.c: File removed.
820 * stdio/setlinebuf.c: File removed.
821 * stdio/setvbuf.c: File removed.
822 * stdio/stdio.h: File removed.
823 * stdio/ungetc.c: File removed.
824 * stdio/vasprintf.c: File removed.
825 * stdio/vscanf.c: File removed.
826 * stdio/vsnprintf.c: File removed.
827 * stdio/vsprintf.c: File removed.
828 * stdio/vsscanf.c: File removed.
829 * sysdeps/generic/defs.c: File removed.
830 * sysdeps/generic/fdopen.c: File removed.
831 * sysdeps/generic/pipestream.c: File removed.
832 * sysdeps/generic/stdio_init.c: File removed.
833 * sysdeps/generic/sysd-stdio.c: File removed.
834 * sysdeps/generic/vdprintf.c: File removed.
835 * sysdeps/mach/hurd/defs.c: File removed.
836 * sysdeps/mach/hurd/fdopen.c: File removed.
837 * sysdeps/mach/hurd/pipestream.c: File removed.
838 * sysdeps/mach/hurd/stdio_init.c: File removed.
839 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
840 * sysdeps/mach/hurd/vdprintf.c: File removed.
841 * sysdeps/posix/defs.c: File removed.
842 * sysdeps/posix/fdopen.c: File removed.
843 * sysdeps/posix/pipestream.c: File removed.
844 * sysdeps/posix/stdio_init.c: File removed.
845 * sysdeps/posix/vdprintf.c: File removed.
846 * sysdeps/unix/pipestream.c: File removed.
847 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
848 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
849 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
851 2002-04-29 Roland McGrath <roland@frob.com>
853 * include/libc-symbols.h (link_warning): Use `unused' attribute.
855 2002-04-28 Ulrich Drepper <drepper@redhat.com>
857 * sysdeps/generic/tls.h: Describe what must be defined.
859 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
860 glob_in_dir [PR libc/3385].
861 * posix/globtest.sh: Add test case.
863 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
866 2002-04-27 Ulrich Drepper <drepper@redhat.com>
868 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
869 _internal symbol handling.
870 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
872 2002-04-26 Ulrich Drepper <drepper@redhat.com>
874 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
875 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
877 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
879 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
880 not _LIBC and RE_ENABLE_I18N.
881 (build_range_exp): Implement for not _LIBC.
882 (build_collating_symbol): Likewise.
883 (parse_bracket_exp): Unify redundant error handlings.
884 Don't erase mbcset for non matching list in multibyte envs.
885 (build_word_op): Add '_' to matching list for \w operator.
886 * posix/regex_internal.c (re_string_construct): Invoke
887 build_upper_buffer in case of not RE_ENABLE_I18N.
888 (re_string_reconstruct): Don't touch cur_state in case of not
890 * posix/regex_internal.h (attribute_hidden): New macro in case of
892 (re_charset_t): Define range_starts/ends in case of not _LIBC.
893 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
895 (transit_state_mb): Likewise.
896 (check_node_accept_bytes): Implement the code evaluating range
897 expression in case of not _LIBC.
898 (find_collation_sequence_value): Hide in case of not _LIBC.
900 2002-04-26 Jakub Jelinek <jakub@redhat.com>
902 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
904 (__old_semctl, __new_semctl): Only use va_arg if the argument will
907 2002-04-26 Ulrich Drepper <drepper@redhat.com>
909 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
911 * sysdeps/ia64/strncpy.S: Fix recovery code.
912 Patch by David Mosberger <davidm@hpl.hp.com>.
914 2002-04-24 Ulrich Drepper <drepper@redhat.com>
916 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
919 2002-04-14 Bruno Haible <bruno@clisp.org>
921 * posix/regex.c (re_max_failures): Add back symbol for binary
924 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
926 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
927 of buffer building functions.
928 * posix/regex_internal.c (re_string_allocate): New function.
929 (re_string_realloc_buffers): New function.
930 (re_string_skip_chars): New function.
931 (re_string_reconstruct): New function.
932 (re_string_construct): Adapt it to new interface of buffer building
934 (re_string_construct_common): Likewise.
935 (build_wcs_buffer): Likewise.
936 (build_wcs_upper_buffer): Likewise.
937 (build_upper_buffer): Likewise.
938 (re_string_translate_buffer): Likewise.
939 (re_string_context_at): Adapt it to variable length buffers.
940 * posix/regex_internal.h (re_string_t): Add new fields to handle
941 variable length buffers.
942 (re_match_context_t): Likewise.
943 * posix/regexec.c (re_search_internal): Adapt it to new interface
944 of re_string_t and re_match_context_t.
945 (acquire_init_state_context): Likewise.
946 (check_matching): Likewise.
947 (check_halt_state_context): Likewise.
948 (proceed_next_node): Likewise.
949 (set_regs): Likewise.
950 (sift_states_backward): Likewise.
951 (clean_state_log_if_need): Likewise.
952 (sift_states_iter_mb): Likewise.
953 (sift_states_iter_bkref): Likewise.
954 (add_epsilon_backreference): Likewise.
955 (transit_state): Likewise.
956 (transit_state_sb): Likewise.
957 (transit_state_mb): Likewise.
958 (transit_state_bkref): Likewise.
959 (transit_state_bkref_loop): Likewise.
960 (check_node_accept): Likewise.
961 (match_ctx_init): Likewise.
962 (extend_buffers): New function.
964 2002-04-21 Bruno Haible <bruno@clisp.org>
966 * iconvdata/tst-table.sh: For the second check, use the truncated
967 GB18030 charmap table, like for the first check.
969 2002-04-24 Ulrich Drepper <drepper@redhat.com>
971 * elf/dl-load.c (open_verify): Correct __lseek parameters.
972 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
974 2002-04-23 H.J. Lu <hjl@gnu.org>
976 * include/math.h (isfinite): Fix a typo.
978 2002-04-24 Ulrich Drepper <drepper@redhat.com>
980 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
981 which is created by the test suite.
983 2002-04-20 Bruno Haible <bruno@clisp.org>
985 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
986 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
988 2002-04-20 Bruno Haible <bruno@clisp.org>
990 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
991 to avoid gcc warning.
993 2002-04-20 Bruno Haible <bruno@clisp.org>
995 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
996 of data->__statep->__count.
998 2002-04-20 Bruno Haible <bruno@clisp.org>
1000 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
1002 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
1004 2002-04-24 Roland McGrath <roland@frob.com>
1006 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
1007 use END macro instead of our own .end directive.
1008 Use `callsys' insn mnemonic instead of `call_pal'.
1010 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1012 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
1013 macro; we need this for Hurd.
1015 Log entry was missing for 2002/03/24 commit of rev 1.8,
1016 goes with 2002-03-17 changes.
1017 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
1018 (sysdep_routines): Append ioperm here.
1019 (sysdep_headers): Append sys/io.h here.
1021 2002-04-23 Roland McGrath <roland@frob.com>
1023 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
1024 * sysdeps/mach/hurd/sendto.c: Likewise.
1025 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1026 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1027 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1029 2002-04-22 Roland McGrath <roland@frob.com>
1031 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1032 failure from i386_io_perm_* RPCs to ENOSYS.
1034 2002-04-22 Andreas Jaeger <aj@suse.de>
1036 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
1038 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1040 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1041 register instead of destroying %rbx.
1043 2002-04-21 Ulrich Drepper <drepper@redhat.com>
1045 * string/string.h: Declare strerror_r also for XPG6.
1047 2002-04-19 Roland McGrath <roland@frob.com>
1049 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1051 2002-04-20 Ulrich Drepper <drepper@redhat.com>
1053 * Makefile: Add handling of xtests and xcheck targets.
1054 * MakeTAGS: Likewise.
1055 * Makeconfig: Likewise.
1056 * Makerules: Likewise.
1058 * manual/Makefile: Likewise.
1059 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1060 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
1062 2002-04-11 Zack Weinberg <zack@codesourcery.com>
1064 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1066 * sunrpc/auth_none.c: Include bits/libc-lock.h.
1067 Delete #ifdef _RPC_THREAD_SAFE_ block.
1068 (authnone_private): Make a struct, not a pointer to struct.
1069 (authnone_private_guard): New once-control variable.
1070 (authnone_create_once): New function, split out of
1071 authnone_create. No need to allocate memory.
1072 (authnone_create): Just call authnone_create_once via
1073 __libc_once, then return &authnone_private->no_client.
1074 (authnone_marshal): Access private data via CLIENT argument,
1075 not authnone_private pointer.
1076 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1077 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1080 2002-04-12 H.J. Lu <hjl@gnu.org>
1082 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1084 2002-04-18 Bruno Haible <bruno@clisp.org>
1086 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1087 FROM_DIRECTION): Make the FROM direction stateless.
1088 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1089 FROM_DIRECTION): Likewise.
1091 2002-04-15 Bruno Haible <bruno@clisp.org>
1093 * iconvdata/JISX0213.TXT: New file.
1094 * iconvdata/jisx0213.h: New file.
1095 * iconvdata/jisx0213.c: New file.
1096 * iconvdata/euc-jisx0213.c: New file.
1097 * iconvdata/shift_jisx0213.c: New file.
1098 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1099 * iconvdata/EUC-JISX0213.precomposed: New file.
1100 * iconvdata/SHIFT_JISX0213.precomposed: New file.
1101 * iconvdata/SHIFT_JISX0213.irreversible: New file.
1102 * iconvdata/tst-table-to.c (main): Make it work for encodings for
1103 which the "to" direction is stateful.
1104 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1105 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1107 (libJISX0213-routines): New variable.
1108 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1109 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1110 (LDFLAGS-libJISX0213.so): New variable.
1111 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1112 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1113 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1115 2002-04-15 Bruno Haible <bruno@clisp.org>
1117 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1118 uint32_t. Update to Unicode 3.2.
1119 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1120 (BODY for TO_LOOP): Handle the ASCII range specially.
1121 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1122 * iconvdata/testdata/BIG5HKSCS: Remove a character.
1123 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1125 2002-04-15 Bruno Haible <bruno@clisp.org>
1127 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1128 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1130 2002-04-15 Bruno Haible <bruno@clisp.org>
1132 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1133 (ucs4_to_cns11643): Update.
1134 * iconvdata/cns11643.c: Update to Unicode 3.2.
1135 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1136 __cns11643_from_ucs4p2_tab): Regenerated.
1137 (__cns11643_from_ucs4p2c_tab): New array.
1138 * iconvdata/cvs11643l1.c: Update comments.
1139 * iconvdata/EUC-TW.irreversible: Remove two entries.
1141 2002-04-15 Bruno Haible <bruno@clisp.org>
1143 * locale/C-translit.h.in: Update to Unicode 3.2.
1144 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1145 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1147 2002-04-15 Bruno Haible <bruno@clisp.org>
1149 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1150 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1152 2002-04-15 Bruno Haible <bruno@clisp.org>
1154 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1155 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1156 always one byte, not 0 bytes in some cases and 2 bytes in others.
1158 * iconvdata/tst-table-from.c (main): Correct the usage message.
1160 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1162 * posix/regcomp.c (parse_expression): Fix incorrect error code.
1163 (parse_dup_op): Fix error handling like "a{}".
1164 (parse_bracket_exp): Add error handling.
1165 (fetch_number): Add error handling for "a{<very_large_number>}".
1167 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1169 * posix/regcomp.c (parse_bracket_symbol): Add error handling
1170 in case that the symbol name is too long.
1171 (build_charclass): Handle [:lower:]/[:uppper:] correctly
1172 in case of REG_ICASE.
1174 2002-04-19 Andreas Jaeger <aj@suse.de>
1176 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1177 <hartvige@mips.com>.
1179 2002-04-15 H.J. Lu <hjl@gnu.org>
1181 * include/math.h (__finitel_internal): Declare only if
1182 __NO_LONG_DOUBLE_MATH is not defined.
1183 (__isinfl_internal): Likewise.
1184 (__isnanl_internal): Likewise.
1186 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1187 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1188 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1189 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1190 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1191 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1192 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1194 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1197 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1198 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1200 2002-04-15 Bruno Haible <bruno@clisp.org>
1202 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1203 (BODY for TO_LOOP): Likewise.
1204 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1205 * iconvdata/tst-table.sh: Add support for encodings which contain
1206 precomposed Unicode characters, known to the iconv converter in both
1207 directions but not listed in the charmap.
1208 * iconvdata/IBM856.irreversible: New file.
1209 * iconvdata/IBM922.irreversible: New file.
1210 * iconvdata/IBM1132.irreversible: New file.
1211 * iconvdata/IBM1133.irreversible: New file.
1212 * iconvdata/IBM1160.irreversible: New file.
1213 * iconvdata/IBM1161.irreversible: New file.
1214 * iconvdata/IBM1163.irreversible: New file.
1215 * iconvdata/IBM1164.irreversible: New file.
1216 * iconvdata/ARMSCII-8.irreversible: New file.
1217 * iconvdata/TCVN5712-1.precomposed: New file.
1218 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1219 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1220 ARMSCII-8, TCVN5712-1.
1221 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1222 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1223 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1224 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1226 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1228 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
1229 for EVENING69. Include offsets in TZ environment variable.
1231 2002-04-18 Ulrich Drepper <drepper@redhat.com>
1233 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1234 avoid compiler warnings.
1236 * locale/programs/localedef.c (main): Always call
1237 construct_output_path.
1239 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1241 * locale/programs/locfile.c (to_archive): New variable. To collect
1242 data which has to be added to the locale archive.
1243 (write_all_categories): Take new third parameter with locale name.
1244 Unless no_archive flag set add new locale data to the archive
1245 (write_locale_data): Unless no-archive flag set store generated data
1246 in to_archive data structure instead of generation output file.
1247 Add new parameter with locale category index.
1248 * locale/programs/locfile.h: Add new parameters in declaractions of
1249 write_all_categories and write_locale_data.
1250 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
1251 --add-to-archive, and --delete-from-archive options. Pass extra
1252 parameter to write_all_categories.
1253 * locale/programs/localedef.h: Add prototypes for functions in
1255 * locale/locarchive.h: New file.
1256 * locale/programs/locarchive.c: New file.
1257 * locale/Makefile (distribute): Add programs/locarchive.c and
1259 (localedef-modules): Add md5 and locarchive.
1260 Add vpath to crypt subdir for md5.c.
1262 * locale/programs/ld-address.c: Pass locale category ID as new second
1263 parameter to write_locale_data.
1264 * locale/programs/ld-collate.c: Likewise.
1265 * locale/programs/ld-ctype.c: Likewise.
1266 * locale/programs/ld-identification.c: Likewise.
1267 * locale/programs/ld-measurement.c: Likewise.
1268 * locale/programs/ld-messages.c: Likewise.
1269 * locale/programs/ld-monetary.c: Likewise.
1270 * locale/programs/ld-name.c: Likewise.
1271 * locale/programs/ld-numeric.c: Likewise.
1272 * locale/programs/ld-paper.c: Likewise.
1273 * locale/programs/ld-telephone.c: Likewise.
1274 * locale/programs/ld-time.c: Likewise.
1276 * locale/simple-hash.c: Move compute_hashval function from here...
1277 * locale/hashval.h: ...to here. New file.
1278 * locale/simple-hash.h: Add prototype for compute_hashval.
1280 * include/libintl.h: Minor cleanups.
1282 2002-04-16 Ulrich Drepper <drepper@redhat.com>
1284 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
1286 2002-04-15 Ulrich Drepper <drepper@redhat.com>
1288 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
1290 2002-04-14 Bruno Haible <bruno@clisp.org>
1292 * locale/programs/charmap.c (charmap_read): Don't access result if
1295 2002-02-17 Andreas Schwab <schwab@suse.de>
1297 * elf/reldep7.c: New file.
1298 * elf/reldep7mod1.c: New file.
1299 * elf/reldep7mod2.c: New file.
1300 * elf/Makefile: Add rules to build and run reldep7.
1302 2002-04-14 Jakub Jelinek <jakub@redhat.com>
1304 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
1305 the end of the function. Pass original flags to recursive call if
1306 add_dependency failed.
1307 (_dl_lookup_versioned_symbol): Likewise.
1309 2002-04-13 Jakub Jelinek <jakub@redhat.com>
1311 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
1312 early, but check whether it overflowed afterwards.
1313 * time/tst-mktime.c (main): Add new tests.
1315 2002-04-14 Ulrich Drepper <drepper@redhat.com>
1317 * debug/xtrace.sh: Fix program name in help message.
1318 Patch by Roger Luethi <rl@hellgate.ch>.
1320 * include/sys/stat.h: Add prototypes for __lxstat_internal and
1321 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
1323 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
1324 * sysdeps/mach/hurd/lxstat.c: Likewise.
1325 * sysdeps/unix/common/lxstat.c: Likewise.
1326 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
1327 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1328 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1329 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1330 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1331 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
1332 * sysdeps/mach/hurd/lxstat64.c: Likewise.
1333 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
1334 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1336 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
1337 prototypes. Add __mbrlen and __mbrtowc macros.
1338 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
1339 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
1341 * include/unistd.h: Add prototype for __write_internal and add
1342 __libc_write macro is SHARED.
1343 * sysdeps/generic/write.c: Use INTDEF for __write.
1344 * sysdeps/mach/hurd/write.c: Likewise.
1345 * sysdeps/unix/sysv/aix/write.c: Likewise.
1346 * sysdeps/unix/syscalls.list: Add __libc_write alias.
1348 * assert/assert.c: Replace STR_N_SIZE with something usable in
1350 * assert/assert-perr.c: Likewise.
1352 * include/sys/socket.h: Declare __libc_sa_len_internal and define
1353 SA_LEN macro to use it if not NOT_IN_libc.
1354 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
1356 * include/fcntl.h: Declare __open_internal and define __open and
1357 __libc_open macros if not NOT_IN_libc.
1358 * sysdeps/generic/open.c: Use INTDEF for __open.
1359 * sysdeps/mach/hurd/open.c: Likewise.
1360 * sysdeps/unix/sysv/aix/open.c: Likewise.
1361 * sysdeps/unix/syscalls.list: Add __open_internal alias.
1363 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
1366 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
1367 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
1368 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1369 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1371 * include/wctype.h: Declare __iswalpha_l_internal,
1372 __iswdigit_l_internal, __iswspace_l_internal,
1373 __iswxdigit_l_internal, and __iswctype_internal. Define
1374 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
1375 __iswxdigit_l macros if not NOT_IN_libc.
1376 * wctype/iswctype.c: Use INTDEF for __iswctype.
1377 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
1379 * include/math.h: Declare __isinf_internal, __isinfl_internal,
1380 __isnan_internal, and __isnanl_internal.
1381 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
1382 __isnan, and __isnanl.
1383 * stdio-common/printf_size.c: Likewise.
1384 * sysdeps/generic/printf_fphex.c: Likewise.
1385 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
1386 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1387 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
1388 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
1389 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1390 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1391 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1392 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1393 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1394 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1395 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1396 * sysdeps/m68k/s_isinfl.c: Likewise.
1397 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1398 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1400 * include/sys/time.h: Declare __gettimeofday_internal and define
1401 __gettimeofday macro if not NOT_IN_libc.
1402 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
1403 * sysdeps/mach/gettimeofday.c: Likewise.
1404 * sysdeps/posix/gettimeofday.c: Likewise.
1405 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1406 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
1407 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1408 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
1410 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
1411 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
1412 Remove __lstat and __fstat inline functions.
1413 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
1414 * sysdeps/mach/hurd/fxstat.c: Likewise.
1415 * sysdeps/unix/fxstat.c: Likewise.
1416 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
1417 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1418 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1419 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1420 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1421 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
1422 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1423 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
1424 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1426 * include/unistd.h: Declare __getpid_internal and define
1427 __getpid macro if not NOT_IN_libc.
1428 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
1429 * sysdeps/generic/getpid.c: Likewise.
1430 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
1431 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
1433 * include/unistd.h: Declare __getpgid_internal and define
1434 __getpgid macro if not NOT_IN_libc.
1435 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
1436 * sysdeps/mach/hurd/getpgid.c: Likewise.
1437 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
1438 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1439 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1440 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
1442 * include/unistd.h: Declare __getpagesize_internal and define
1443 __getpagesize macro if not NOT_IN_libc.
1444 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
1446 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
1447 * sysdeps/mach/getpagesize.c: Likewise.
1448 * sysdeps/posix/getpagesize.c: Likewise.
1449 * sysdeps/unix/getpagesize.c: Likewise.
1450 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1451 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1452 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
1453 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1455 2002-04-13 Andreas Jaeger <aj@suse.de>
1457 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
1458 as clobber to reduce register pressure.
1459 (__strpbrk_cg): Likewise.
1460 (__mempcpy_by4): Likewise.
1461 (__strstr_cg): Likewise.
1462 Add prototype for __memrchr.
1464 2002-04-13 Andreas Schwab <schwab@suse.de>
1466 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
1467 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1468 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1470 2002-04-13 Ulrich Drepper <drepper@redhat.com>
1472 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
1473 check whether the caller prefers getting the most recent version of
1474 a symbol of the earliest version.
1475 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
1476 _dl_do_lookup to also take the new parameter and pass it on.
1477 Change 'explicit' parameter of _dl_lookup_symbol and
1478 _dl_lookup_versioned_symbol to flags. Adjust tests.
1479 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1480 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
1481 _dl_lookup_versioned_symbol.
1482 * elf/dl-reloc.c: Likewise.
1483 * elf/dl-runtime.c: Likewise.
1484 * elf/dl-sym.c: Likewise.
1485 * sysdeps/mips/dl-machine.h: Likewise.
1487 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1489 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
1491 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
1493 2002-04-10 Andreas Jaeger <aj@suse.de>
1495 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
1497 * include/argz.h: Remove extra char from last patch.
1499 2002-04-09 Ulrich Drepper <drepper@redhat.com>
1501 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
1502 * sysdeps/unix/sysv/aix/chown.c: Likewise.
1503 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
1504 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1505 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1506 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
1508 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1510 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
1511 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
1512 * intl/ngettext.c: Likewise.
1514 * include/sys/socket.h: Declare __connect_internal and define
1515 __connect macro if not NOT_IN_libc.
1516 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
1517 * sysdeps/unix/sysv/aix/connect.c: Likewise.
1518 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
1520 * include/unistd.h: Declare __close_internal and define __close macro
1522 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
1523 WJUMP3): Add extra parenthesis to avoid expanding element names with
1524 macors like __close.
1525 * sysdeps/unix/syscalls.list: Add __close_internal alias.
1527 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
1529 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
1530 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
1531 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
1533 * include/unistd.h: Declare __fork_internal and define __fork macro
1535 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
1536 * sysdeps/unix/sysv/aix/fork.c: Likewise.
1537 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
1539 * include/stdio_ext.h: Declare __fsetlocking_internal and define
1540 __fsetlocking macro to use it if not NOT_IN_libc.
1541 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
1543 * libio/__fbufsize.c: Correct copyright.
1544 * libio/__flbf.c: Likewise.
1545 * libio/__fpending.c: Likewise.
1546 * libio/__fpurge.c: Likewise.
1547 * libio/__freadable.c: Likewise.
1548 * libio/__freading.c: Likewise.
1549 * libio/__fsetlocking.c: Likewise.
1550 * libio/__fwritable.c: Likewise.
1551 * libio/__fwriting.c: Likewise.
1553 * include/stdio.h: Declare __asprintf_internal and define __asprintf
1554 macro to use it if not NOT_IN_libc.
1555 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
1557 * include/mntent.h: Declare __setmntent_internal,
1558 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
1559 __getmntent_r, and __endmntent macros to use these functions if not
1561 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
1564 * include/math.h: Declare __finite_internal, __finitef_internal, and
1565 __finitel_internal. Redefine isfinite macro if in libc or libm using
1567 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
1568 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
1569 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
1570 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
1571 * sysdeps/i386/fpu/s_finitef.S: Likewise.
1572 * sysdeps/i386/fpu/s_finitel.S: Likewise.
1573 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1574 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1575 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1576 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1578 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
1579 to use this function if not NOT_IN_libc.
1580 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
1581 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
1582 * sysdeps/mach/hurd/fcntl.c: Likewise.
1583 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1584 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1586 * include/argz.h: Declare __argz_count_internal and
1587 __argz_stringify_internal.
1588 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
1590 * string/argz-count.c: Use INTDEF for __argz_count.
1591 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
1593 * include/stdlib.h: Declare __cxa_atexit_internal and define
1594 __cxa_atexit macro if not NOT_IN_libc.
1595 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
1596 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
1598 * assert/assert.c: Use INTDEF for __assert_fail.
1599 * assert/__assert.c: Use INTUSE for call to __assert_fail.
1600 * include/assert.h: Declare __assert_fail_internal.
1602 * extra-lib.mk: Mark assignment to lib with override.
1604 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1606 * Makerules: Use cppflags-iterator.mk to add defines for all test
1609 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
1611 * elf/elf.h: Define R_SH_TLS_xxx macros.
1612 * elf/rtld.c: Remove an extra parenthesis.
1613 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
1615 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
1616 * sysdeps/sh/dl-lookupcfg.h: New file.
1617 * sysdeps/sh/dl-tls.h: New file.
1618 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
1619 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
1620 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
1621 R_SH_TLS_TPOFF32 relocations.
1623 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1625 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
1627 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
1628 * include/stdlib.h: Likewise.
1630 2002-04-08 Jakub Jelinek <jakub@redhat.com>
1632 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
1633 instead of _RTLD_LOCAL.
1634 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
1635 * include/unistd.h: Likewise.
1636 * sysdeps/generic/ldsodefs.h: Likewise.
1638 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
1639 if in libc or ld.so.
1641 2002-04-08 Andreas Jaeger <aj@suse.de>
1643 * elf/cache.c (print_entry): Support x86-64.
1645 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1647 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
1648 with one accessing the locale data structures directly.
1649 * stdio-common/printf-prs.c: Include localeinfo.h for new
1650 MB_CUR_MAX definition.
1652 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
1653 is the name of the source file without extension.
1654 * Makefile (distribute): Add cppflags-iterator.mk.
1655 * cppflags-iterator.mk: New file.
1656 * extra-lib.mk: For the sources of the library run
1657 cppflags-iterator.mk.
1659 * include/libintl.h: Declare __dcgettext_internal and
1660 _libc_intl_domainname_internal. Define __dcgettext using these
1661 two symbols if used in libc itself.
1662 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
1663 _libc_intl_domainname_internal.
1664 * argp/argp-parse.c: Likewise.
1665 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
1666 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
1667 * intl/gettext.c: Likewise.
1668 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
1670 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
1672 * posix/regex_internal.c (gettext): Likewise.
1674 2002-04-08 Andreas Jaeger <aj@suse.de>
1676 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
1678 * sysdeps/x86_64/fpu/s_llrint.S: New.
1679 * sysdeps/x86_64/fpu/s_llrintf.S: New.
1680 * sysdeps/x86_64/fpu/s_llrintl.S: New.
1681 * sysdeps/x86_64/fpu/s_lrint.S: New.
1682 * sysdeps/x86_64/fpu/s_lrintf.S: New
1683 * sysdeps/x86_64/fpu/s_lrintl.S: New.
1685 2002-04-08 Roland McGrath <roland@frob.com>
1687 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
1688 widening __hurd_fail value.
1690 2002-04-07 Roland McGrath <roland@frob.com>
1692 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
1693 <mach/machine/alpha_instruction.h>.
1694 (_hurd_setup_sighandler): Take proper arguments for current decls.
1695 Update code to use _hurdsig_catch_fault.
1696 Use `callsys' instruction instead of `call_pal'.
1697 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
1699 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
1700 (ALIGN, at, AT, fp): New macros.
1702 2002-04-06 Roland McGrath <roland@frob.com>
1704 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
1706 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
1707 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
1709 * sysdeps/mach/hurd/bind.c: Use prototype definition.
1710 * sysdeps/mach/hurd/connect.c: Likewise.
1711 * sysdeps/mach/hurd/getsockopt.c: Likewise.
1712 * sysdeps/mach/hurd/setsockopt.c: Likewise.
1714 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
1717 * hurd/catch-exc.c: Use integer_t instead of int.
1718 * hurd/hurdfault.c: Likewise.
1720 * sysdeps/mach/hurd/alpha/exc2signal.c
1721 (_hurd_exception2signal): Rewritten.
1722 * sysdeps/mach/hurd/alpha/longjmp-ts.c
1723 (_hurd_longjmp_thread_state): Rewritten.
1725 2002-04-07 Ulrich Drepper <drepper@redhat.com>
1727 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
1728 DB_LOOKUP_FCT prototype.
1729 * nss/getXXent_r.c: Likewise.
1730 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
1731 * inet/getaliasname_r.c: Likewise.
1732 * inet/getnetbyad_r.c: Likewise.
1733 * inet/getnetbynm_r.c: Likewise.
1734 * inet/getnetent_r.c: Likewise.
1735 * inet/getproto_r.c: Likewise.
1736 * inet/getprtent_r.c: Likewise.
1737 * inet/getprtname_r.c: Likewise.
1738 * inet/getrpcbyname_r.c: Likewise.
1739 * inet/getrpcbynumber_r.c: Likewise.
1740 * inet/getrpcent_r.c: Likewise.
1741 * inet/getservent_r.c: Likewise.
1742 * inet/getsrvbynm_r.c: Likewise.
1743 * inet/getsrvbypt_r.c: Likewise.
1744 * shadow/getspent_r.c: Likewise.
1745 * shadow/getspnam_r.c: Likewise.
1747 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
1749 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
1750 Use i686-friendly PIC code.
1751 * sysdeps/i386/elf/setjmp.S: Likewise.
1753 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
1755 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
1757 * elf/Versions: Remove it here.
1759 2002-04-06 Ulrich Drepper <drepper@redhat.com>
1761 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
1762 direction. Reported by H . J . Lu <hjl@lucon.org>.
1764 2002-04-05 Ulrich Drepper <drepper@redhat.com>
1766 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
1767 test just before the test runs.
1768 * intl/tst-translit.sh: Likewise.
1769 * intl/tst-codeset.sh: Likewise.
1771 * timezone/zic.c: Update from tzcode2002c.
1772 * timezone/asia: Update from tzdata2002c.
1773 * timezone/backward: Likewise.
1774 * timezone/europe: Likewise.
1775 * timezone/northamerica: Likewise.
1776 * timezone/northamerica: Likewise.
1777 * timezone/northamerica: Likewise.
1778 * timezone/southamerica: Likewise.
1779 * timezone/zone.tab: Likewise.
1781 2002-03-23 Jakub Jelinek <jakub@redhat.com>
1783 * sysdeps/generic/brk.c (__curbrk): Declare.
1784 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
1785 * sysdeps/generic/dl-sbrk.c: Likewise.
1786 * sysdeps/unix/arm/dl-brk.S: New file.
1787 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
1788 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
1789 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
1790 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
1791 * sysdeps/unix/i386/dl-brk.S: New file.
1792 * sysdeps/unix/mips/dl-brk.S: New file.
1793 * sysdeps/unix/sparc/dl-brk.S: New file.
1794 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
1795 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
1796 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
1797 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
1799 2002-04-03 Andreas Schwab <schwab@suse.de>
1801 * Makefile (headers): Add gnu/lib-names.h here instead of
1803 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
1805 (install-headers): Add dependency on install-headers-nosubdir.
1806 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
1807 instead of install-others.
1808 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
1811 2002-04-05 Ulrich Drepper <drepper@redhat.com>
1813 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
1814 Reported by Sam Roberts <sroberts@uniserve.com>.
1816 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1818 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
1819 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
1820 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1821 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1823 2002-04-03 David Mosberger <davidm@hpl.hp.com>
1825 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
1826 (RTLD_START): Ditto.
1827 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
1828 dependency violation.
1830 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1832 * time/mktime.c (__mktime_internal): Move check for year < 70 below
1833 all variable declarations.
1835 2002-04-04 Andreas Schwab <schwab@suse.de>
1837 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
1839 2002-04-04 Andreas Jaeger <aj@suse.de>
1841 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
1842 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
1844 * sysdeps/x86_64/fpu/s_fabs.c: New file.
1845 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
1846 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
1848 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
1850 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
1852 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
1853 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
1855 * configure.in: Handle all mips entries the same.
1857 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
1858 * sysdeps/mips/mips3/*: Likewise.
1859 * sysdeps/mips/p40/bits/endian.h: Likewise.
1861 2002-04-04 Ulrich Drepper <drepper@redhat.com>
1863 * misc/dirname.c (dirname): Ignore trailing slashes at end of
1864 non-null result [PR libc/2600].
1866 * misc/tst-dirname.c: Add more tests.
1868 2002-04-03 Ulrich Drepper <drepper@redhat.com>
1870 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
1871 define a code_set_name provide one based on the filename.
1873 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
1875 2001-12-28 Andreas Jaeger <aj@suse.de>
1877 * time/mktime.c (__mktime_internal): Check for year < 70
1880 2002-04-03 Andreas Jaeger <aj@suse.de>
1882 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
1884 Reported by Andi Kleen <ak@suse.de>.
1886 2002-04-03 Ulrich Drepper <drepper@redhat.com>
1888 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
1889 * sysdeps/generic/w_lgammaf.c: Likewise.
1890 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
1892 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
1893 Adjust for new output format of the backtrace functions.
1895 * misc/syslog.c (vsyslog): Only use cleanup handler if
1896 _LIBC_REENTRANT is defined [PR libc/2924].
1898 * libio/Makefile (tests): Add bug-ungetwc2.
1899 * libio/bug-ungetwc2.c: New file.
1901 * manual/install.texi: Typographical and grammatical cleanup.
1902 Patch by Dennis Grace <dgrace@us.ibm.com>.
1904 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
1905 parameter if mtflag. Patch by <jeongyun@innovay.com>.
1907 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
1908 always "&". Adjust callers.
1909 Add "_" prefix to several generated definitions.
1910 Patch by paul@serice.net [PR libc/3158].
1912 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1914 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
1915 size of _dl_arm_cap_flags.
1916 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
1918 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
1921 2002-03-22 H.J. Lu <hjl@gnu.org>
1923 * scripts/firstversions.awk: Check the first version.
1925 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1927 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
1928 dependencies must be stable to work correctly.
1929 Reported by martin.lubich@datacon.at.
1931 * libio/bug-ungetwc1.c: New file.
1932 * libio/Makefile (tests): Add bug-ungetwc1.
1934 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
1935 if stream was last used for writing.
1937 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
1938 number [PR libc/3111].
1940 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
1942 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
1944 2002-04-02 Jakub Jelinek <jakub@redhat.com>
1946 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
1947 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1948 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
1949 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
1950 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
1952 2002-03-30 Jakub Jelinek <jakub@redhat.com>
1954 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
1957 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1959 * sysdeps/i386/fpu/s_fabs.S: New file.
1960 * sysdeps/i386/fpu/s_fabsf.S: New file.
1961 * sysdeps/i386/fpu/s_fabsl.S: New file.
1962 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
1963 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
1964 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
1966 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1968 * rt/tst-shm.c (do_test): Add one more test for size of shared
1971 2002-03-29 Wolfram Gloger <wg@malloc.de>
1973 * malloc/malloc.c: Add short description and prototypes for
1974 malloc_get_state, malloc_set_state and posix_memalign, for
1975 consistency and to avoid warnings with -Wstrict-prototypes.
1976 Reported by Andreas Jaeger <aj@suse.de>.
1978 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1980 * po/gl.po: Update from translation team.
1982 2002-03-31 Roland McGrath <roland@frob.com>
1984 * hurd/hurdselect.c (_hurd_select): Fix
1985 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
1986 Use a union rather than casts to compare mach_msg_type_t as int.
1988 2002-03-25 Roland McGrath <roland@frob.com>
1990 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
1991 check off the end of NAME when it's shorter than 2 chars.
1992 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
1994 2002-03-17 Roland McGrath <roland@frob.com>
1996 * sysdeps/mach/hurd/i386/sys/io.h: New file.
1997 * sysdeps/mach/hurd/i386/ioperm.c: New file.
1998 * sysdeps/mach/hurd/i386/Dist: Add them.
1999 * sysdeps/mach/hurd/i386/Versions
2000 (libc: GLIBC_2.2.6): New set, add ioperm.
2001 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
2002 (mach_interface_list): Check for mach_i386.defs.
2003 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
2004 * sysdeps/mach/configure: Regenerated.
2006 2002-03-22 Ulrich Drepper <drepper@redhat.com>
2008 * po/fr.po: Update from translation team.
2010 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
2012 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
2013 getpriority from syscalls list.
2015 2002-03-28 Andreas Jaeger <aj@suse.de>
2017 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
2018 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
2019 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
2020 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
2022 2002-03-27 Andreas Jaeger <aj@suse.de>
2024 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2025 sigcontext): Follow further kernel change.
2027 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2030 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2031 Change for struct sigcontext change.
2033 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2034 Follow changes in struct sigcontext.
2036 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2037 sysycall, use wrapper instead.
2039 2002-03-26 Andreas Jaeger <aj@suse.de>
2041 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2042 read and write accesses as detailed as possible.
2043 (__memcpy_by2): Likewise.
2044 (__memcpy_g): Likewise.
2045 (memmove): Likewise.
2047 (__memset_ccn_by4): Likewise.
2048 (__memset_ccn_by2): Likewise.
2049 (__memset_gcn_by4): Likewise.
2050 (__memset_gcn_by2): Likewise.
2052 (__memrchr): Likewise.
2053 (rawmemchr): Likewise.
2054 (__strlen_g): Likewise.
2055 (__strcpy_g): Likewise.
2056 (__mempcpy_by4): Likewise.
2057 (__mempcpy_by2): Likewise.
2058 (__mempcpy_byn): Likewise.
2059 (__stpcpy_g): Likewise.
2060 (__strncpy_by4): Likewise.
2061 (__strncpy_by2): Likewise.
2062 (__strncpy_byn): Likewise.
2063 (__strncpy_gg): Likewise.
2064 (__strcat_c): Likewise.
2065 (__strcat_g): Likewise.
2066 (__strncat_g): Likewise.
2067 (__strcmp_gg): Likewise.
2068 (__strncmp_g): Likewise.
2069 (__strchr_c): Likewise.
2070 (__strchr_g): Likewise.
2071 (__strchrnul_c): Likewise.
2072 (__strchrnul_g): Likewise.
2073 (__strrchr_c): Likewise.
2074 (__strrchr_g): Likewise.
2075 (__strrchr_c): Likewise.
2076 (__strrchr_g): Likewise.
2077 (__strcspn_c1): Likewise.
2078 (__strcspn_cg): Likewise.
2079 (__strcspn_g): Likewise.
2080 (__strcspn_g): Likewise.
2081 (__strspn_c1): Likewise.
2082 (__strspn_cg): Likewise.
2083 (__strspn_g): Likewise.
2084 (__strspn_g): Likewise.
2085 (__strpbrk_cg): Likewise.
2086 (__strpbrk_g): Likewise.
2087 (__strstr_cg): Likewise.
2088 (__strstr_g): Likewise.
2090 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
2091 Michal Ludvig <mludvig@suse.cz>.
2093 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2094 compatibilty, adjust for kernel changes.
2096 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2097 sigcontext): Adjust for kernel changes.
2099 2002-03-25 Andreas Jaeger <aj@suse.de>
2101 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2103 Reported by Artur Zaprzala <zybi@talex.com.pl>.
2105 2002-03-24 Andreas Jaeger <aj@suse.de>
2107 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2109 * stdio-common/tst-fdopen.c (main): Remove unused variable.
2111 * iconv/tst-iconv3.c (main): Use correct printf strings.
2113 2002-03-18 Roland McGrath <roland@frob.com>
2115 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2116 (CMGROUP_MAX): New macro.
2118 2002-03-23 Roland McGrath <roland@frob.com>
2120 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2121 * sysdeps/posix/shm_unlink.c: Likewise.
2123 2002-03-22 Roland McGrath <roland@frob.com>
2125 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2126 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2127 under --enable-libio.
2128 * sysdeps/mach/hurd/configure: Regenerated.
2130 2002-03-23 Roland McGrath <roland@frob.com>
2132 * sysdeps/mach/hurd/i386/Makefile
2133 (sysdep_routines, shared-only-routines): Don't add framestate,
2134 reverting 2001-10-02 change.
2135 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2136 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2137 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2138 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2139 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2140 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2141 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2142 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2143 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2144 Do it here instead, only if [$(unwind-find-fde) = yes].
2146 2002-03-23 Andreas Jaeger <aj@suse.de>
2148 * signal/signal.h: Fix typo. Patch by Steve Kemp
2149 <skx@tardis.ed.ac.uk>.
2151 2002-03-22 Andreas Jaeger <aj@suse.de>
2153 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2156 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2157 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2158 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2159 user_fpregs_struct): Rename fwd.
2161 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2162 Follow sigcontext changes.
2164 2002-03-22 Andreas Jaeger <aj@suse.de>
2166 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
2167 changes for NaNs on MIPS.
2168 Patch by Hartvig Ekner <hartvige@mips.com>.
2170 2002-03-21 Ulrich Drepper <drepper@redhat.com>
2172 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2173 Use realloc if too large.
2174 (addgrbyid): Likewise.
2175 * nscd/hstcache.c (addhstbyname): Likewise.
2176 (addhstbyaddr): Likewise.
2177 (addhstbynamev6): Likewise.
2178 (addhstbyaddrv6): Likewise.
2179 * nscd/pwdcache.c (addpwbyname): Likewise.
2180 (addpwbyuid): Likewise.
2182 2002-03-21 Andreas Jaeger <aj@suse.de>
2184 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2185 _fpstate): Add separate struct for x86-64.
2187 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2188 user_fpregs_struct): Change member names to follow kernel.
2190 2002-03-20 Ulrich Drepper <drepper@redhat.com>
2192 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2193 Correctly close the UDP connection right away [PR libc/3120].
2195 2002-03-20 Andreas Jaeger <aj@suse.de>
2197 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2198 user_fpregs_struct): Fix for changed kernel struct.
2199 (struct user_regs_struct): Likewise.
2200 (struct user): Likewise.
2201 Add 32-bit x86 compatibility.
2203 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2205 2002-03-19 Andreas Jaeger <aj@suse.de>
2207 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2209 2002-03-18 Andreas Jaeger <aj@suse.de>
2211 * iconvdata/Makefile: Only run tests when shared libs are
2214 2002-03-17 Andreas Jaeger <aj@suse.de>
2216 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2218 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2220 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2223 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2225 Patch by Hartvig Ekner <hartvige@mips.com>.
2227 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2228 * sysdeps/generic/unwind-pe.h: Likewise.
2230 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2233 * libio/stdio.c (AL2): Define variant when visibility attribute is
2236 * include/libc-symbols.h (_INTVARDEF): Define variant when
2237 visibility attribute is not supported.
2239 2002-03-16 Ulrich Drepper <drepper@redhat.com>
2241 * po/fr.po: Update from translation team.
2243 2002-02-25 Bruno Haible <bruno@clisp.org>
2245 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2247 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2249 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
2250 buffers if _IO_file_attach failed.
2252 * libio/fileops.c (_IO_file_open): Close file descriptor if
2253 _IO_SEEKOFF call failed.
2255 2002-03-15 H.J. Lu <hjl@gnu.org>
2256 Ulrich Drepper <drepper@redhat.com>
2258 * configure.in: Check for availability of
2259 init_array/fini_array/preinit_array handling in binutils.
2260 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
2261 * config.make.in (have-initfini-array): New variable.
2263 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2265 * stdio-common/tst-printf.c (main): Comment out one test which
2266 checked the compiler's ability to fold floating-point constants
2267 but not really printf.
2268 (rfg3): Make s const.
2269 * stdio-common/tst-printf.sh: Adjust for removed test.
2271 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
2272 internal function. Adjust for internal_function calling convention.
2273 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
2274 as internal_function.
2276 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
2279 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
2280 declaration and definition.
2281 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
2283 * nss/getXXent_r.c: Likewise.
2284 * nss/nsswitch.h (db_lookup_function): Add internal_function to
2287 * include/time.h: Declare __localtime_r as hidden.
2289 * include/aliases.h: Declare __getaliasent_r as hidden.
2290 * include/grp.h: Declare __getgrent_r as hidden.
2291 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
2292 __getservent_r, and __getprotoent_r as hidden.
2293 * include/pwd.h: Declare __getpwent_r as hidden.
2294 * include/shadow.h: Declare __getspent_r as hidden.
2295 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
2297 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
2298 and __gconv_transliterate as hidden.
2299 Add internal_function to __gconv_get_path declaration.
2300 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
2301 definition. Add attribute_hidden to __gconv_read_conf definition.
2303 2002-03-14 Ulrich Drepper <drepper@redhat.com>
2305 * elf/rtld.c: Declare _environ as hidden.
2306 * sysdeps/generic/dl-environ.c: Likewise.
2307 * sysdeps/generic/dl-sysdep.c: Likewise.
2309 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
2310 _dl_mcount_internal as hidden.
2312 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
2313 * sysdeps/generic/dl-brk.c: New file.
2314 * sysdeps/generic/dl-sbrk.c: New file.
2315 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
2316 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
2318 * elf/dl-minimal.c (malloc): Declare _end as hidden.
2319 (__errno_location): New function. Declare errno as hidden.
2320 * elf/rtld.c (_dl_argc): Define as hidden.
2321 (_dl_skip_args): Define as hidden.
2322 (_begin, _end): Declare as hidden.
2323 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
2324 * sysdeps/generic/entry.h (_start): Declare as hidden.
2325 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
2326 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
2327 _dl_runtime_resolve and _dl_runtime_profile as hidden.
2328 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
2330 2002-03-14 Roland McGrath <roland@frob.com>
2332 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
2334 * Makeconfig (%.v.i, %.v): New implicit rules.
2335 (preprocess-versions): Variable removed.
2336 ($(common-objpfx)shlib-versions.v.i): New target giving just the
2337 shlib-versions input files as dependencies.
2338 ($(common-objpfx)soversions.i): Depend on that instead of the input
2339 files. Use it as input instead of using a pipeline.
2340 (postclean-generated): Append soversions.i, shlib-versions.v, and
2341 shlib-versions.v.i here.
2342 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
2343 the Versions.def input files as dependencies.
2344 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
2345 ($(common-objpfx)Versions.all): Depend on that instead of the input
2346 files. Use it as input instead of using a pipeline.
2347 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
2348 (postclean-generated): Append those .v and .v.i files here.
2350 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2352 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
2353 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
2356 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2358 * sysdeps/generic/mp_clz_tab.c: New file.
2359 * sysdeps/i386/mp_clz_tab.c: New file.
2360 * sysdeps/hppa/mp_clz_tab.c: New file.
2361 * sysdeps/powerpc/mp_clz_tab.c: New file.
2362 * stdlib/Makefile (aux): Revert last patch.
2363 * math/Makefile (gmp-objs): Likewise.
2365 2002-03-13 Paul Eggert <eggert@twinsun.com>
2367 * time/strftime.c: Comment fixes for references to obsolescent
2368 standards, In most cases the simplest fix is to remove the
2369 confusing comments. Cross-referencing all the standards properly
2370 is a bit of a pain, and it should be enough to put that info in
2371 the documentation as I did in my recent time.texi patch.
2373 2002-03-13 Paul Eggert <eggert@twinsun.com>
2375 * manual/time.texi (Formatting Calendar Time):
2376 ISO C99 also specifies the E and O modifiers.
2377 %P is a GNU extension, and is not in ISO C99.
2378 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
2379 %T is also in ISO C99.
2380 The RFC 822 example is not valid in arbitrary locales.
2381 Reword the POSIX.2 wording slightly, to make it a bit clearer
2382 that POSIX.2 formats are also supported by later POSIX versions.
2383 If a format was introduced in ISO C99 it is also required by
2386 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2388 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
2389 _sys_nerr_internal with INTVARDEF2.
2390 * include/libc-symbols.h (INTVARDEF2): New macro.
2391 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
2392 (_sys_nerr_internal): Library.
2394 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
2395 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
2397 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
2399 2002-03-13 Wolfram Gloger <wg@malloc.de>
2401 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
2403 2002-03-02 Andreas Schwab <schwab@suse.de>
2405 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
2406 'h' flag and positional arg.
2407 * stdio-common/tst-printf.c (rfg3): New function to test
2408 positional arguments.
2409 (main): Fix some warnings.
2411 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2413 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
2414 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2416 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2418 * grp/initgroups.c (__nss_group_data): Declare as hidden.
2420 * include/locale.h (_nl_C_locobj): Declare as hidden.
2422 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
2423 * time/strptime.c (_nl_C_LC_TIME): Likewise.
2425 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
2427 * include/sys/gmon.h: Declare _gmonparam as hidden.
2429 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
2430 (__ctype32_wctrans): Likewise.
2431 (__ctype32_width): Likewise.
2433 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
2436 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
2438 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
2439 hidden. Change all users of these variables.
2441 * posix/regex_internal.h (__re_error_msgid): Renamed from
2442 re_error_msgid. Declare as hidden.
2443 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
2446 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
2447 (__printf_function_table): Likewise.
2448 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
2450 (__printf_function_table): Likewise.
2452 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
2453 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
2455 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
2456 * nss/nsswitch.c: Declare _nss_*_database as hidden.
2458 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
2459 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
2461 2002-03-12 Ulrich Drepper <drepper@redhat.com>
2463 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
2464 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2465 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2466 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2467 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2468 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2469 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2470 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2471 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
2472 _nl_C_LC_CTYPE_width: Declare as hidden.
2473 * include/locale.h: Declare _nl_locale_file_list.
2474 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
2475 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
2476 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
2477 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
2478 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
2479 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
2480 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
2481 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
2482 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
2483 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
2484 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
2485 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
2486 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2487 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2488 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2489 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2490 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2491 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2492 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2493 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
2494 _nl_C_LC_CTYPE_width, and as hidden.
2495 * locale/findlocale.c: Declare _nl_C as hidden.
2496 * locale/newlocale.c: Likewise.
2497 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
2498 _nl_locale_file_list.
2499 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
2500 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
2501 Define _nl_C_locobj as hidden.
2503 * malloc/mtrace.c (_mtrace_file): Define as hidden.
2504 (_mtrace_line): Likewise.
2506 * include/time.h: Declare __mon_yday as hidden.
2507 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
2509 * libio/libioP.h: Declare __libio_codecvt as hidden.
2510 * libio/fileops.c: Declare __libio_translit as hidden.
2511 * libio/iofwide.c: Define __libio_translit as hidden.
2513 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
2514 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
2515 * login/getutline_r.c: Likewise.
2516 * login/utmpname.c: Likewise.
2518 * login/utmp-private.h: Declare __libc_utmp_file_functions,
2519 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
2520 __libc_utmp_file_name as hidden.
2522 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
2523 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
2524 * locale/freelocale.c: Likewise.
2525 * locale/lc-time.c: Likewise.
2527 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
2528 (__libc_ptyname2): Likewise.
2529 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
2531 (__libc_ptyname2): Likewise.
2533 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
2534 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
2535 * sysdeps/generic/init-first.c: Likewise.
2536 * sysdeps/i386/init-first.c: Likewise.
2537 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2538 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2539 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2540 * sysdeps/sh/init-first.c: Likewise.
2541 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2542 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2544 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
2545 (_itowa_upper_digits): Likewise.
2547 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
2548 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
2551 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
2552 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
2553 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
2554 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
2556 * gmon/gmon.c (__bb_head): Define as hidden.
2557 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
2559 * argp/argp-parse.c (_argp_hang): Define as static.
2561 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
2562 handling in latest compilers.
2564 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
2566 * libio/fileops.c (_IO_file_jumps): Likewise.
2567 * libio/stdfiles.c (_IO_list_all): Likewise.
2568 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
2570 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
2572 * include/malloc.h: Add __libc_malloc_initialized declaration
2573 here. Mark variable hidden.
2574 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
2576 * elf/dl-open.c (__libc_argc): Declare as hidden.
2577 (__libc_argv): Likewise.
2578 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
2579 (__libc_argv): Likewise.
2580 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
2581 __libc_argv as hidden.
2582 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2583 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2584 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2585 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2587 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
2588 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
2589 * stdlib/erand48.c: Likewise.
2590 * stdlib/jrand48.c: Likewise.
2591 * stdlib/lcong48.c: Likewise.
2592 * stdlib/lrand48.c: Likewise.
2593 * stdlib/mrand48.c: Likewise.
2594 * stdlib/nrand48.c: Likewise.
2595 * stdlib/seed48.c: Likewise.
2596 * stdlib/srand48.c: Likewise.
2598 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
2599 (_itoa_lower_digits_internal): New declaration.
2600 (_itoa_upper_digits_internal): New declaration.
2601 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
2602 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
2603 (_itoa_upper_digits_internal): New declaration.
2604 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
2606 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
2607 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
2609 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
2610 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2612 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
2613 (_itowa_lower_digits): Likewise.
2614 (_itowa_upper_digits): Likewise.
2615 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
2616 (_itowa_upper_digits): Likewise.
2618 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
2619 not already defined.
2620 (GERMANIC_PLURAL): Declare as hidden.
2622 * posix/getopt.c (__getopt_initialized): Declare as hidden.
2623 (attribute_hidden): Define as empty macro if not already defined.
2625 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
2626 (__gconv_max_path_elem_len): Likewise.
2627 (__gconv_path_envvar): Likewise.
2629 * math/Makefile (gmp-objs): Remove mp_clz_tab.
2630 * stdlib/Makefile (aux): Remove mp_clz_tab.
2631 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
2633 * stdlib/exit.h (__exit_funcs): Declare as hidden.
2635 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
2637 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
2638 _nl_category_names, _nl_category_name_sizes, _nl_current,
2639 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
2641 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
2642 (_nl_current_default_domain): Likewise
2643 (_nl_state_lock): Likewise.
2644 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
2645 (_nl_current_default_domain): Likewise
2646 (_nl_state_lock): Likewise.
2647 * intl/bindtextdom.c (_nl_state_lock): Likewise.
2649 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
2650 (_fpioconst_pow10): Likewise.
2652 * include/time.h (_tmbuf): Add attribute_hidden.
2654 * time/tzset.c (tzstring_list): Define as static.
2656 * include/time.h: Add attribute_hidden to __tzname_cur_max and
2657 __use_tzfile declaration.
2659 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
2660 and __wcsmbs_last_locale declaration.
2662 2002-02-25 Paul Eggert <eggert@twinsun.com>
2664 * timezone/Makefile (tzbases): Move systemv from here...
2665 (tzlinks): to here, since the entries in systemv were all changed
2666 from Zone to Link lines in tz-2001a. Bug reported (and patch
2667 tested) by Peter Breitenlohner.
2669 2002-03-07 Jakub Jelinek <jakub@redhat.com>
2671 * time/tst-posixtz.c (tests): Add new tests.
2672 (main): Test whether tzset() sets daylight properly.
2674 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2676 * time/tzset.c (tz_compute): Move __daylight, __tzname and
2677 __tzname_cur_max setting...
2678 (tzset_internal): ...here.
2680 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2682 * time/tzset.c (compute_change): Don't return any value.
2683 (tz_compute): Likewise. Don't handle southern hemisphere here.
2684 (__tz_convert): But here.
2686 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2688 * manual/examples/mkfsock.c: Include <string.h> as well.
2689 Patch by Alain De Carolis <alaind@wseurope.com>.
2691 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2693 * posix/regexec.c (re_match): Fix incorrect register sizes.
2694 (re_search): Likewise.
2696 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2698 * posix/regcomp.c (regfree): Remove a disused condition.
2699 * posix/regex_internal.c (re_acquire_state): Likewise.
2700 (re_acquire_state_context): Likewise.
2701 (register_state): Remove a redundant malloc invocation.
2702 * posix/regex_internal.h: (re_state_table_entry): Simplify
2705 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2707 * posix/regcomp.c (regcomp): Add __builtin_expect to error
2708 handling conditions.
2709 (regerror): Likewise.
2710 (regfree): Likewise.
2711 (re_compile_internal): Likewise.
2712 (init_dfa): Likewise.
2713 (init_word_char): Likewise.
2714 (create_initial_state): Likewise.
2715 (analyze): Likewise.
2716 (analyze_tree): Likewise.
2717 (duplicate_node): Likewise.
2718 (calc_eclosure): Likewise.
2719 (calc_eclosure_iter): Likewise.
2721 (parse_reg_exp): Likewise.
2722 (parse_branch): Likewise.
2723 (parse_expression): Likewise.
2724 (parse_subexp): Likewise.
2725 (parse_dup_op): Likewise.
2726 (parse_bracket_exp): Likewise.
2727 (build_equiv_class): Likewise.
2728 (build_charclass): Likewise.
2729 (build_word_op): Likewise.
2730 (fetch_number): Likewise.
2731 (create_tree): Likewise.
2732 (duplicate_tree): Likewise.
2733 * posix/regex.c (BE): New macro.
2734 * posix/regexec.c (re_match): Add __builtin_expect to error
2735 handling conditions.
2736 (re_match_2): Likewise.
2737 (re_search): Likewise.
2738 (re_search_internal): Likewise.
2739 (check_matching): Likewise.
2740 (proceed_next_node): Likewise.
2741 (set_regs): Likewise.
2742 (sift_states_backward): Likewise.
2743 (add_epsilon_backreference): Likewise.
2744 (transit_state): Likewise.
2745 (transit_state_sb): Likewise.
2746 (transit_state_mb): Likewise.
2747 (transit_state_bkref): Likewise.
2748 (transit_state_bkref_loop): Likewise.
2749 (build_trtable): Likewise.
2750 (group_nodes_into_DFAstates): Likewise.
2751 (match_ctx_init): Likewise.
2752 (match_ctx_add_entry): Likewise.
2753 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
2754 to error handling conditions.
2755 (re_string_construct_toupper): Likewise.
2756 (build_wcs_buffer): Likewise.
2757 (build_wcs_upper_buffer): Likewise.
2758 (build_upper_buffer): Likewise.
2759 (re_string_translate_buffer): Likewise.
2760 (re_node_set_alloc): Likewise.
2761 (re_node_set_init_1): Likewise.
2762 (re_node_set_init_2): Likewise.
2763 (re_node_set_init_copy): Likewise.
2764 (re_node_set_intersect): Likewise.
2765 (re_node_set_init_union): Likewise.
2766 (re_node_set_merge): Likewise.
2767 (re_node_set_insert): Likewise.
2768 (re_dfa_add_node): Likewise.
2769 (re_acquire_state): Likewise.
2770 (re_acquire_state_context): Likewise.
2771 (create_new_state_common): Likewise.
2772 (register_state): Likewise.
2773 (create_ci_new_state): Likewise.
2774 (create_cd_new_state): Likewise.
2775 (re_string_context_at): Remove redundant condition.
2777 2002-01-16 Roger Sayle <roger@eyesopen.com>
2779 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
2781 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
2783 2002-03-11 Jakub Jelinek <jakub@redhat.com>
2785 * sysdeps/i386/elf/configure.in: Fix comment.
2787 * sysdeps/sparc/sparc64/configure.in: New.
2788 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
2789 if .dynamic comes before .got.
2790 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
2792 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
2793 HP_TIMING_ACCUM): Fix typos.
2795 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2797 * string/strfry.c: Add some more randomness to the seed.
2798 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
2800 * po/es.po: Update from translation team.
2801 * po/fr.po: Likewise.
2803 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
2805 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
2806 when determining type of format.
2807 Patch by James Antill <james@anqd.org> [PR libc/2787].
2809 2002-03-04 Jakub Jelinek <jakub@redhat.com>
2811 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
2813 2002-03-11 Roland McGrath <roland@frob.com>
2815 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
2817 * Versions.def (libc): Add GLIBC_2.2.6.
2818 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
2819 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
2820 __errno_location instead of __hurd_errno_location, and don't inline it.
2821 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2822 * hurd/errno.c: New file.
2823 * hurd/Makefile (routines): Add errno.
2825 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2827 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
2828 ridiculously large widths and precisions [PR libc/3026].
2830 2002-03-11 Andreas Jaeger <aj@suse.de>
2832 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
2834 Patch by Susanne Oberhauser <froh@SuSE.de>.
2836 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2838 * inet/rexec.c (ahostbuf): Define as static.
2840 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
2841 (__ctype32_wctrans): Likewise.
2842 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
2843 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
2844 (__ctype32_wctrans): Likewise.
2845 (__ctype32_width): Likewise.
2847 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
2848 They were never exported anyway.
2850 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
2851 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
2853 * include/sys/gmon.h: Declare _gmonparam.
2855 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
2856 symbols for getdents64. They were never exported.
2858 2002-03-09 Roland McGrath <roland@frob.com>
2860 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
2861 Reported by Jon Arney <jarney1@cox.net>.
2863 2002-02-23 Roland McGrath <roland@frob.com>
2865 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
2867 (__hurd_errno_location): Function removed.
2869 2002-03-06 Andreas Jaeger <aj@suse.de>
2871 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
2874 2002-03-04 Andreas Jaeger <aj@suse.de>
2876 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
2878 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
2881 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
2883 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
2885 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
2887 * sysdeps/x86_64/bits/setjmp.h: New.
2889 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
2891 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
2893 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
2895 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
2896 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
2898 2002-02-28 Bo Thorsen <bo@suse.de>
2900 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
2903 2002-03-03 Andreas Jaeger <aj@suse.de>
2905 * sysdeps/x86_64/bits/wordsize.h: New file.
2907 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
2908 * elf/tst-tlsmod1.c: Likewise.
2910 * posix/regcomp.c: Get regex.h from include dir for internal
2913 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
2914 to libc-internal.h and include it.
2915 * include/libc-internal.h: Add __init_misc.
2917 * misc/init-misc.c: Include libc-internal.h for prototypes.
2919 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
2921 * misc/error.c [_LIBC]: Include libioP.h for prototype of
2924 2002-03-03 Ulrich Drepper <drepper@redhat.com>
2926 * posix/regcomp.c: Compatibility changes to allow using the code
2929 2002-02-28 Hartvig Ekner <hartvige@mips.com>
2931 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
2934 2002-03-02 Ulrich Drepper <drepper@redhat.com>
2936 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
2937 of .str elements in the returned data structure.
2939 * elf/elf.h: Add Alpha TLS bits.
2941 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2943 * sysdeps/unix/sysv/linux/nice.c: New file.
2945 2002-03-01 Ulrich Drepper <drepper@redhat.com>
2947 * elf/Makefile (dl-routines): Add dl-origin.
2948 (elide-routines.os): Add dl-origin.
2949 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
2950 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
2952 * include/libc-symbols.c: Define attribute_hidden depending on
2953 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
2955 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
2956 * elf/dl-load.c: Likewise.
2957 * elf/rtld.c: Likewise.
2958 * include/unistd.h: Declare __libc_enable_secure_internal.
2959 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
2960 Use INTUSE with __libc_enable_secure.
2961 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2963 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
2964 * elf/dl-error.c: Likewise,
2965 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
2967 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
2968 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
2969 function definition. Use INTDEF with _dl_get_origin.
2970 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2972 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
2973 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
2975 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
2976 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
2977 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
2979 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
2980 * elf/dl-deps.c: Likewise.
2981 * elf/dl-error.c: Likewise.
2982 * elf/dl-fini.c: Likewise.
2983 * elf/dl-init.c: Likewise.
2984 * elf/dl-load.c: Likewise.
2985 * elf/dl-lookup.c: Likewise.
2986 * elf/dl-reloc.c: Likewise.
2987 * elf/dl-version.c: Likewise.
2988 * elf/do-lookup.h: Likewise.
2989 * sysdeps/arm/dl-machine.h: Likewise.
2990 * sysdeps/cris/dl-machine.h: Likewise.
2991 * sysdeps/hppa/dl-machine.h: Likewise.
2992 * sysdeps/i386/dl-machine.h: Likewise.
2993 * sysdeps/m68k/dl-machine.h: Likewise.
2994 * sysdeps/powerpc/dl-machine.h: Likewise.
2995 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2996 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2997 * sysdeps/sh/dl-machine.h: Likewise.
2998 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
2999 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
3000 * sysdeps/x86_64/dl-machine.h: Likewise.
3001 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
3002 _dl_argv[0]. Use INTUSE with _dl_argv.
3003 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
3004 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
3006 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3008 * elf/rtld.c (_rtld_global): Remove .protected.
3009 (_rtld_local): Strong alias to _rtld_global.
3010 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
3012 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
3013 _rtld_local instead of _rtld_global.
3014 (_rtld_local): Add hidden extern, possibly in .sdata section.
3015 * configure.in: Add tests for visibility attribute and .sdata.
3016 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
3017 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
3018 * sysdeps/arm/dl-machine.h: Likewise.
3019 * sysdeps/generic/ldsodefs.h: Likewise.
3020 * sysdeps/hppa/dl-machine.h: Likewise.
3021 * sysdeps/cris/dl-machine.h: Likewise.
3022 * sysdeps/i386/dl-machine.h: Likewise.
3023 * sysdeps/ia64/dl-machine.h: Likewise.
3024 * sysdeps/m68k/dl-machine.h: Likewise.
3025 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3026 * sysdeps/mips/dl-machine.h: Likewise.
3027 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3028 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3029 * sysdeps/sh/dl-machine.h: Likewise.
3030 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3031 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3032 * sysdeps/x86_64/dl-machine.h: Likewise.
3034 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3036 * login/login.c (login): Always initialize ut_line field
3039 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3041 * sysdeps/i386/Makefile (sysdep_routines): Add
3043 (shared-only-routines): Likewise.
3044 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3045 (shared-only-routines): Likewise.
3046 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3047 (shared-only-routines): Likewise.
3048 * sysdeps/wordsize-32/divdi3.c: New file.
3050 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3052 * locale/iso-4217.def: Remove obsolete currencies for countries
3055 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
3057 * posix/regcomp.c (regcomp): Remove a redundant condition.
3058 (init_word_char): Add a check on malloc failure.
3059 (create_initial_state): Likewise.
3060 (duplicate_node): Likewise.
3061 (calc_eclosure): Likewise.
3062 (calc_eclosure_iter): Likewise.
3063 (parse_expression): Likewise.
3064 (parse_bracket_exp): Remove unnecessary malloc invocations.
3065 (build_equiv_class): Likewise.
3066 (build_charclass): Likewise.
3067 * posix/regex_internal.c (re_node_set_intersect): Add a check
3069 (re_node_set_add_intersect): Likewise.
3070 (re_node_set_merge): Likewise.
3071 (re_acquire_state): Likewise.
3072 (re_acquire_state_context): Likewise.
3073 (create_newstate_common): Likewise.
3074 (register_state): Likewise.
3075 (create_ci_newstate): Likewise.
3076 (create_cd_newstate): Likewise.
3077 * posix/regex_internal.h: Fix prototypes of re_acquire_state
3078 and re_acquire_state_context.
3079 * posix/regexec.c (regexec): Suit it to the error handling of
3081 (re_match): Likewise.
3082 (re_search): Likewise.
3083 (re_search_internal): Add a check on malloc failure.
3084 (acquire_init_state_context): Likewise.
3085 (check_matching): Likewise.
3086 (proceed_next_node): Likewise.
3087 (set_regs): Likewise.
3088 (sift_states_backward): Likewise.
3089 (sift_states_iter_bkref): Likewise.
3090 (add_epsilon_backreference): Likewise.
3091 (transit_state): Likewise.
3092 (transit_state_sb): Likewise.
3093 (transit_state_mb): Likewise.
3094 (transit_state_bkref_loop): Likewise.
3095 (build_trtable): Likewise.
3096 (group_nodes_into_DFAstates): Likewise.
3097 (match_ctx_init): Likewise.
3098 (match_ctx_add_entry): Likewise.
3100 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3102 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3103 l_libname if profiling is enabled [PR libc/2916].
3105 * sysdeps/ia64/dl-tls.h: New file.
3107 2002-02-27 Jakub Jelinek <jakub@redhat.com>
3109 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3110 Work around an Alpha gas bug.
3112 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3114 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3115 uses read to load the catalog.
3116 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3118 2002-02-26 Ulrich Drepper <drepper@redhat.com>
3120 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3121 regex_internal.c, and regex_internal.h.
3122 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3123 * posix/regex.c: Complete rewrite.
3124 * posix/regexec.c: New file.
3125 * posix/regcomp.c: New file.
3126 * posix/regex_internal.c: New file.
3127 * posix/regex_internal.h: New file.
3128 * posix/regex.h (RE_ICASE): New macro.
3129 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3131 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3132 ungetwc. It's a macro.
3133 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3135 Reported by Jason Merrill <jason@redhat.com>.
3137 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3139 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3140 position to fp->_offset if it is set.
3141 * stdio-common/Makefile (tests): Add tst-fdopen.
3142 * stdio-common/tst-fdopen.c: New test.
3144 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3146 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3147 * stdio-common/tst-ungetc.c (main): Add another test.
3149 2002-02-25 Ulrich Drepper <drepper@redhat.com>
3151 * assert/assert-perr.c: Use INTUSE to reference functions and variables
3152 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
3153 aliases. Add prototypes for the new aliases.
3154 * assert/assert.c: Likewise.
3155 * include/libc-symbols.h: Likewise.
3156 * include/stdio.h: Likewise.
3157 * include/netinet/in.h: Likewise.
3158 * include/rpc/auth.h: Likewise.
3159 * include/rpc/auth_unix.h: Likewise.
3160 * include/rpc/key_prot.h: Likewise.
3161 * include/rpc/pmap_prot.h: Likewise.
3162 * include/rpc/pmap_rmt.h: Likewise.
3163 * include/rpc/rpc_msg.h: Likewise.
3164 * include/rpc/xdr.h: Likewise.
3165 * inet/gethstbyad_r.c: Likewise.
3166 * inet/gethstbynm2_r.c: Likewise.
3167 * inet/gethstbynm_r.c: Likewise.
3168 * inet/gethstent_r.c: Likewise.
3169 * inet/in6_addr.c: Likewise.
3170 * libio/__fpurge.c: Likewise.
3171 * libio/filedoalloc.c: Likewise.
3172 * libio/fileops.c: Likewise.
3173 * libio/ftello.c: Likewise.
3174 * libio/ftello64.c: Likewise.
3175 * libio/genops.c: Likewise.
3176 * libio/iofclose.c: Likewise.
3177 * libio/iofdopen.c: Likewise.
3178 * libio/iofflush.c: Likewise.
3179 * libio/iofflush_u.c: Likewise.
3180 * libio/iofgetpos.c: Likewise.
3181 * libio/iofgetpos64.c: Likewise.
3182 * libio/iofgets.c: Likewise.
3183 * libio/iofgets_u.c: Likewise.
3184 * libio/iofopen.c: Likewise.
3185 * libio/iofopncook.c: Likewise.
3186 * libio/iofputs.c: Likewise.
3187 * libio/iofread.c: Likewise.
3188 * libio/iofread_u.c: Likewise.
3189 * libio/iofsetpos.c: Likewise.
3190 * libio/iofsetpos64.c: Likewise.
3191 * libio/ioftell.c: Likewise.
3192 * libio/iofwrite.c: Likewise.
3193 * libio/iogetline.c: Likewise.
3194 * libio/iogets.c: Likewise.
3195 * libio/iogetwline.c: Likewise.
3196 * libio/iolibio.h: Likewise.
3197 * libio/iopadn.c: Likewise.
3198 * libio/iopopen.c: Likewise.
3199 * libio/ioseekoff.c: Likewise.
3200 * libio/ioseekpos.c: Likewise.
3201 * libio/iosetbuffer.c: Likewise.
3202 * libio/iosetvbuf.c: Likewise.
3203 * libio/ioungetc.c: Likewise.
3204 * libio/ioungetwc.c: Likewise.
3205 * libio/iovdprintf.c: Likewise.
3206 * libio/iovsprintf.c: Likewise.
3207 * libio/iovsscanf.c: Likewise.
3208 * libio/libioP.h: Likewise.
3209 * libio/memstream.c: Likewise.
3210 * libio/obprintf.c: Likewise.
3211 * libio/oldfileops.c: Likewise.
3212 * libio/oldiofclose.c: Likewise.
3213 * libio/oldiofdopen.c: Likewise.
3214 * libio/oldiofgetpos.c: Likewise.
3215 * libio/oldiofgetpos64.c: Likewise.
3216 * libio/oldiofopen.c: Likewise.
3217 * libio/oldiofsetpos.c: Likewise.
3218 * libio/oldiofsetpos64.c: Likewise.
3219 * libio/oldiopopen.c: Likewise.
3220 * libio/oldstdfiles.c: Likewise.
3221 * libio/putc.c: Likewise.
3222 * libio/setbuf.c: Likewise.
3223 * libio/setlinebuf.c: Likewise.
3224 * libio/stdfiles.c: Likewise.
3225 * libio/stdio.c: Likewise.
3226 * libio/strops.c: Likewise.
3227 * libio/vasprintf.c: Likewise.
3228 * libio/vscanf.c: Likewise.
3229 * libio/vsnprintf.c: Likewise.
3230 * libio/vswprintf.c: Likewise.
3231 * libio/wfiledoalloc.c: Likewise.
3232 * libio/wfileops.c: Likewise.
3233 * libio/wgenops.c: Likewise.
3234 * libio/wstrops.c: Likewise.
3235 * malloc/mtrace.c: Likewise.
3236 * misc/error.c: Likewise.
3237 * misc/syslog.c: Likewise.
3238 * nss/getXXbyYY_r.c: Likewise.
3239 * nss/getXXent_r.c: Likewise.
3240 * nss/hosts-lookup.c: Likewise.
3241 * stdio-common/getw.c
3242 * stdio-common/printf-prs.c: Likewise.
3243 * stdio-common/printf_fp.c: Likewise.
3244 * stdio-common/printf_size.c: Likewise.
3245 * stdio-common/putw.c: Likewise.
3246 * stdio-common/scanf.c: Likewise.
3247 * stdio-common/sprintf.c: Likewise.
3248 * stdio-common/tmpfile64.c: Likewise.
3249 * stdio-common/vfprintf.c: Likewise.
3250 * stdio-common/vfscanf.c: Likewise.
3251 * stdlib/strfmon.c: Likewise.
3252 * sunrpc/auth_des.c: Likewise.
3253 * sunrpc/auth_none.c: Likewise.
3254 * sunrpc/auth_unix.c: Likewise.
3255 * sunrpc/authdes_prot.c: Likewise.
3256 * sunrpc/authuxprot.c: Likewise.
3257 * sunrpc/clnt_perr.c: Likewise.
3258 * sunrpc/clnt_raw.c: Likewise.
3259 * sunrpc/clnt_tcp.c: Likewise.
3260 * sunrpc/clnt_udp.c: Likewise.
3261 * sunrpc/clnt_unix.c: Likewise.
3262 * sunrpc/key_call.c: Likewise.
3263 * sunrpc/key_prot.c: Likewise.
3264 * sunrpc/openchild.c: Likewise.
3265 * sunrpc/pm_getmaps.c: Likewise.
3266 * sunrpc/pm_getport.c: Likewise.
3267 * sunrpc/pmap_clnt.c: Likewise.
3268 * sunrpc/pmap_prot.c: Likewise.
3269 * sunrpc/pmap_prot2.c: Likewise.
3270 * sunrpc/pmap_rmt.c: Likewise.
3271 * sunrpc/rpc_cmsg.c: Likewise.
3272 * sunrpc/rpc_prot.c: Likewise.
3273 * sunrpc/svc_authux.c: Likewise.
3274 * sunrpc/svc_raw.c: Likewise.
3275 * sunrpc/svc_simple.c: Likewise.
3276 * sunrpc/svc_tcp.c: Likewise.
3277 * sunrpc/svc_udp.c: Likewise.
3278 * sunrpc/svc_unix.c: Likewise.
3279 * sunrpc/xdr.c: Likewise.
3280 * sunrpc/xdr_array.c: Likewise.
3281 * sunrpc/xdr_mem.c: Likewise.
3282 * sunrpc/xdr_rec.c: Likewise.
3283 * sunrpc/xdr_ref.c: Likewise.
3284 * sunrpc/xdr_stdio.c: Likewise.
3285 * sysdeps/generic/_strerror.c: Likewise.
3286 * sysdeps/generic/printf_fphex.c: Likewise.
3287 * sysdeps/generic/tmpfile.c: Likewise.
3288 * sysdeps/gnu/errlist.awk: Likewise.
3289 * sysdeps/gnu/errlist.c: Likewise.
3291 * libio/Makefile (routines): Remove iosprint.
3292 * libio/iosprintf.c: Removed
3295 2002-02-24 Ulrich Drepper <drepper@redhat.com>
3297 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
3298 non_dynamic_init and exported now.
3299 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
3300 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
3302 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3303 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3304 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3306 2002-02-23 Ulrich Drepper <drepper@redhat.com>
3308 * elf/dl-close.c (free_slotinfo): Check for end of list and return
3311 * locale/iso-639.def: Add language codes for Walloon.
3313 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
3314 total number of relocations performed.
3316 * elf/sprof.c (load_profdata): If do_test provide information as
3317 to why loading failed.
3318 * elf/dl-profile.c (_dl_start_profile): Initialize all of
3321 * csu/set-init.c: Moved to...
3322 * sysdeps/mach/hurd/set-init.c: ...here. New file.
3323 * csu/Makefile: Don't compile set-init.
3324 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
3325 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
3327 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3328 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3329 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
3331 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
3334 2002-02-22 Ulrich Drepper <drepper@redhat.com>
3336 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
3337 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
3338 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
3339 (_dl_deallocate_tls): New function.
3340 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
3343 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3345 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
3346 * stdio-common/tst-fseek.c (main): Add test for this.
3348 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
3350 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
3352 2002-02-19 Jakub Jelinek <jakub@redhat.com>
3354 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
3355 pointer before dereferencing.
3357 2002-02-18 Roland McGrath <roland@frob.com>
3359 * sysdeps/mach/hurd/times.c: Fix typo in last change.
3361 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
3362 Use task_policy in place of task_priority.
3364 * sysdeps/generic/bits/mman.h
3365 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
3366 * sysdeps/mach/msync.c: New file.
3368 * sysdeps/mach/powerpc/syscall.S: New file.
3370 * mach/msg.c [MACH_MSG_OVERWRITE]
3371 (__mach_msg_trap, __mach_msg_overwrite): New functions.
3372 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
3374 * sysdeps/mach/configure.in: Check for clock.defs to put into
3375 mach_interface_list.
3376 * sysdeps/mach/configure: Regenerated.
3378 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
3379 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
3380 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
3381 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
3382 (mach-shortcuts): Add device_read_overwrite_request,
3383 device_read_overwrite, vm_read_overwrite, thread_switch.
3385 * configure.in (base_machine): Set to $machine by default.
3386 * configure: Regenerated.
3388 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
3389 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
3390 * sysdeps/mach/configure: Regenerated.
3391 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
3393 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
3395 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
3397 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
3398 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
3400 2002-02-17 Roland McGrath <roland@frob.com>
3402 * sysdeps/mach/hurd/times.c
3403 [NO_CREATION_TIME] (startup_time): New static variable.
3404 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
3405 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
3406 creation_time from task_basic_info.
3407 (__times): Use __gettimeofday instead of __host_get_time.
3409 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
3410 Use untyped Mach IPC message format.
3412 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
3414 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
3415 _S_catch_exception_raise_state_identity,
3416 _hurdsig_fault_catch_exception_raise_state,
3417 _hurdsig_fault_catch_exception_raise_state_identity.
3419 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
3421 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
3422 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
3424 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
3425 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
3427 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
3428 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
3429 them as no-op macros.
3430 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
3431 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
3433 * sysdeps/powerpc/dl-machine.h
3434 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
3436 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
3437 Use untyped Mach IPC message format.
3439 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
3440 Handle untyped Mach IPC message formats.
3442 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
3443 Expect different argument conventions when this is defined.
3444 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
3445 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
3446 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
3447 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
3448 for OSF Mach variant.
3449 (faulted): Use mig_reply_error_t for REPLY.
3450 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
3451 in __thread_set_exception_ports call.
3452 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
3453 __mach_port_set_attributes in place of __mach_port_set_qlimit.
3455 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
3456 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
3457 on Darwin, which includes bogons.
3459 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
3460 variable LOADBASE so it's not declared when it's not used.
3462 2002-02-16 Roland McGrath <roland@frob.com>
3464 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
3465 to use BI.creation_time.
3467 * mach/Machrules (MIG): Add -x c to CPP value passed down.
3469 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
3470 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
3471 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
3472 host_page_size instead of vm_statistics.
3474 * sysdeps/mach/Makefile (mach-before-compile): Don't include
3475 mach_interface.h here, since not all variants use that name.
3477 * sysdeps/mach/configure.in: Add some checks for Mach headers
3478 to ensure a sane installation.
3479 (mach_interface_list): Define this variable by checking for .defs
3480 files found in various variants.
3481 * configure.in (mach_interface_list): AC_SUBST this.
3482 * config.make.in (mach-interface-list): New substituted variable.
3483 * mach/Makefile (user-interfaces): Define this using the value
3484 of $(mach-interface-list) instead of mach, mach4.
3485 Updated other references to mach_interface to use it as well.
3487 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
3489 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
3490 mig_reply_error_t for OSF Mach variant.
3492 * mach/Makefile (routines): Remove bootprivport.
3493 * mach/bootprivport.c: File removed. It has never been used.
3495 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
3496 Grok the OSF flavor of message format.
3497 (mach_msg_destroy_port): For MAKE_SEND and
3498 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
3499 no-senders notification.
3501 2002-02-06 Roland McGrath <roland@frob.com>
3503 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
3504 to here if 2.0 compatibility enabled ...
3505 (libc: GLIBC_2.1.3): ... from here.
3507 2002-02-15 Ulrich Drepper <drepper@redhat.com>
3509 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
3511 * elf/dl-close.c (_dl_close): Likewise.
3513 2002-02-14 Ulrich Drepper <drepper@redhat.com>
3515 * elf/Makefile: Add rules to build and run tst-tls8.
3516 * elf/tst-tls8.c: New file.
3517 * elf/tst-tlsmod4.c: New file.
3519 * stdlib/test-a64l.c (tests): Add more test cases.
3521 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
3522 Reported by Walter Harms <WHarms@bfs.de>.
3524 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
3526 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
3527 definitions for struct sigcontext.
3528 Suggested by David Mosberger-Tang.
3530 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3532 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
3533 for removing reference of module in slotinfo list.
3534 (_dl_close): Use remove_slotinfo.
3535 * sysdeps/generic/dl-tls.c: General pretty printing.
3536 (oom): Define only if SHARED.
3537 (_dl_next_tls_modid): Correct starting point for the case we assume
3538 there is a gap. Add missing instruction grouping (doh!). Correct
3539 tests for reaching maximum index.
3540 * elf/Makefile: Add rules to build and run tst-tls7.
3541 * elf/tst-tls7.c: New file.
3542 * elf/tst-tlsmod3.c: New file.
3544 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
3546 * elf/tst-tlsmod2.c: Likewise.
3548 * elf/dl-close.c (_dl_close): When closing an object using TLS
3549 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
3550 true. Increment dl_tls_generation only if we closed any TLS-using
3552 * elf/tst-tls6.c: New file.
3553 * elf/Makefile: Add rules to build and run tst-tls6.
3555 * po/da.po: Update from translation team.
3557 * locale/categories.def: Fix typo [PR libc/2948].
3558 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
3560 * locale/iso-4217.def: Update from official version [PR libc/2950].
3561 * glibcbug.in: Honor TMPDIR [PR libc/2951].
3562 * locale/programs/ld-collate.c (collate_finish): Bail out with a
3563 message if input is too confusion instead of using assert.
3564 (collate_read): Don't crash on unknown symbol [PR libc/2952].
3565 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
3567 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
3568 * elf/tst-tls2.c: Likewise.
3569 * elf/tst-tls3.c: Likewise.
3571 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3573 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
3575 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3577 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
3578 if this is really necessary.
3580 * elf/dl-close.c (_dl_close): Implement freeing entries in the
3582 (free_mem): Free memory for the slotinfo array if possible.
3584 2002-02-12 Andreas Schwab <schwab@suse.de>
3586 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
3588 2002-02-12 Ulrich Drepper <drepper@redhat.com>
3590 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
3592 (oom): New function.
3593 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
3594 (_dl_determine_tlsoffset): Likewise.
3595 (_dl_allocate_tls): Likewise.
3596 (__TLS_GET_ADDR): Define if not already defined.
3597 (_dl_tls_symaddr): New function.
3598 (allocate_and_init): New function.
3599 (__tls_get_addr): Actually implement handling of generation counter
3600 and deferred allocation.
3601 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
3602 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3604 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
3605 Declare _dl_tls_symaddr.
3606 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
3608 * include/link.h (struct link_map): Remove l_tls_nextimage and
3610 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
3611 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
3612 (_dl_vsym): Likewise.
3613 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
3615 (dl_main): Allow PT_TLS be present for empty segment. Remove
3616 nextimage list handling. Instead add all modules using TLS to
3617 dl_tls_dtv_slotinfo_list.
3618 * elf/dl-open.c (dl_open_worker): After successfully loading all
3619 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
3620 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
3621 empty segment don't do anything. Remove handling of initimage list.
3622 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
3623 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
3624 * elf/dl-minimal.c: Define __libc_memalign.
3625 * elf/dl-support.c: Remove _dl_initimage_list. Add
3626 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3628 * include/stdlib.h: Declare __libc_memalign.
3630 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
3631 * elf/tst-tls4.c: New file.
3632 * elf/tst-tls5.c: New file.
3633 * elf/tst-tlsmod2.c: New file.
3635 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
3637 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
3639 * elf/tst-tls1.c: Use test-skeleton.c.
3640 * elf/tst-tls2.c: Likewise.
3641 * elf/tst-tls3.c: Likewise.
3643 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
3645 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3647 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
3649 2002-02-10 Ulrich Drepper <drepper@redhat.com>
3651 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
3653 * elf/tst-tls3.c: New file.
3654 * elf/tst-tlsmod1.c: New file.
3655 * elf/Makefile: Add rules to build and run tst-tls3.
3657 * sysdeps/i386/dl-machine.h: Include <tls.h>.
3658 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
3661 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
3663 * po/fr.po: Update from translation team.
3665 * elf/tls-macros.h: Add alternative macros for use in PIC.
3667 * elf/dl-lookup.c: Include <tls.h>.
3668 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
3670 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
3671 required by passing pointer to last element of the list.
3673 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
3674 l_tls_initimage to a place where it actually is performed.
3676 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
3677 after globfree() calls.
3679 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
3680 (openaux): Pass open_mode as new last argument to _dl_map_object.
3681 (_dl_map_object_deps): Add new argument open_mode. Initialize
3682 open_mode element of args variable with it.
3683 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
3684 _dl_map_object_deps.
3685 * elf/rtld.c (dl_main): Add zero as last parameter to
3686 _dl_map_object_deps call.
3687 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
3688 * elf/nodlopen2.c: New file.
3689 * elf/nodlopenmod2.c: New file.
3690 * elf/Makefile: Add rules to build and run nodlopen2.
3692 * elf/tst-tls1.c: Move TLS helper macros to...
3693 * elf/tls-macros.h: ...here. New file.
3694 * elf/tst-tls2.c: New file.
3695 * elf/Makefile (tests): Add tst-tls2.
3696 (distribute): Add tls-macros.h.
3698 * po/sv.po: Update from translation team.
3700 * elf/tst-tls1.c (main): Add complete set of tests. Split
3701 architecture specific definitions from the actual test code.
3703 * po/tr.po: Update from translation team.
3705 2002-02-09 Ulrich Drepper <drepper@redhat.com>
3707 * elf/Makefile (tests): Add tst-tls1.
3708 * elf/tst-tls1.c: New file.
3710 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
3711 alignment of TCB for now.
3713 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
3714 initialization image for the application itself.
3716 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
3717 loop to initialize TLS block.
3719 2002-02-08 Richard Henderson <rth@redhat.com>
3721 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
3722 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
3724 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
3726 2002-02-09 Jakub Jelinek <jakub@redhat.com>
3728 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
3730 2002-02-08 Ulrich Drepper <drepper@redhat.com>
3732 * po/ca.po: Update from translation team.
3733 * po/sk.po: Likewise.
3735 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
3736 (dl_main): Move dtv/static TLS handling before relocation.
3737 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
3738 TLS_INIT_TP to allocate and install the dtv/static TLS block.
3739 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
3740 so far uses TLS initialize GL(dl_tls_static_size) and
3741 GL(dl_tls_static_align) to account for the TCB.
3742 (_dl_allocate_tls): New function.
3743 * sysdeps/generic/ldsodefs.h (rtld_global): Add
3744 _dl_initial_dtv_malloced.
3746 * configure.in: Test for __builtin_memset more realistically.
3748 * csu/version.c (banner): If TLS support is available say so.
3750 2002-02-04 H.J. Lu <hjl@gnu.org>
3752 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
3754 (__dl_runtime_resolve): Likewise.
3756 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
3759 2001-11-15 H.J. Lu <hjl@gnu.org>
3761 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
3762 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
3764 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
3766 2002-02-07 H.J. Lu <hjl@gnu.org>
3768 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
3770 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
3773 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3775 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
3777 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
3778 ___tls_get_addr_internal.
3779 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
3781 * po/ko.po: Update from translation team.
3783 2002-02-07 Jakub Jelinek <jakub@redhat.com>
3785 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
3786 attribute, change __pad{1,2} type to unsigned int.
3787 (struct stat64): Remove packed attribute.
3789 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3791 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
3793 2002-02-07 Andreas Schwab <schwab@suse.de>
3795 * configure.in: Fix check for -zcombreloc.
3797 2002-02-06 H.J. Lu <hjl@gnu.org>
3799 * config.h.in (HAVE_BUILTIN_MEMSET): New.
3800 * configure.in: Check if __builtin_memset really works.
3801 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
3802 __GNUC_PREREQ (2, 96) before using __builtin_memset.
3804 2002-02-06 Jakub Jelinek <jakub@redhat.com>
3806 * io/bug-ftw3.c (main): Don't try the test if root.
3808 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3810 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
3812 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
3813 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
3814 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
3816 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
3817 a weak alias for __clone.
3818 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
3819 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
3820 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
3821 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
3822 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
3823 a weak alias for __mmap64.
3825 2002-02-05 H.J. Lu <hjl@gnu.org>
3827 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
3828 (atomic_add): Likewise.
3829 (compare_and_swap): Likewise.
3830 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
3832 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3834 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
3836 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
3837 alignment of the TCB and store total size and alignment of static
3838 TLS block in _dl_tls_static_size and _dl_tls_static_align.
3839 tls_index is a typedef.
3840 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
3841 _dl_tls_static_align.
3842 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
3843 * elf/dl-support.c: Define _dl_tls_static_size and
3844 _dl_tls_static_align.
3846 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3848 * configure.in: Add --without-tls option.
3849 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
3850 --without-tls is given.
3852 * sysdeps/generic/dl-tls.c: Include <tls.h>.
3854 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
3856 2002-02-06 Roland McGrath <roland@frob.com>
3858 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
3859 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
3861 * scripts/versions.awk: Improve error message for missing version.
3862 Each version inherits from the last one only if they have the same
3863 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
3864 but not GLIBC_x and FOO_y.
3866 * scripts/firstversions.awk: Handle libraries that don't have each
3867 particular version named in the third column of shlib-versions.
3869 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
3871 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3873 * Versions.def [ld]: Add GLIBC_2.3.
3874 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
3875 * elf/Makefile (dl-routines): Add dl-tls.
3876 (distribute): Add dl-tls.h.
3877 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3878 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3879 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
3880 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
3881 along with the other info in the link map. Change queueing of init
3882 images for double linked list. Use _dl_next_tls_modid to compute
3884 * elf/rtld.c (_dl_start_final): Store alignment requirement
3885 along with the other info in rtld map and executable map.
3886 (dl_main): Add ld.so to the init image list if necessary. Compute
3887 final module ID with _dl_next_tls_modid.
3888 * include/link.h (struct link_map): Add l_tls_previmage and
3890 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3891 * sysdeps/i386/elf/Versions: New file.
3892 * sysdeps/generic/dl-tls.c: New file.
3893 * sysdeps/generic/dl-tls.h: New file.
3894 * sysdeps/i386/dl-tls.h: New file.
3896 2002-02-06 Roland McGrath <roland@frob.com>
3898 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
3899 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
3901 2002-01-05 Roland McGrath <roland@frob.com>
3903 * sysdeps/mach/configure.in: New file.
3904 * sysdeps/mach/configure: New generated file.
3906 * mach/Makefile (user-interfaces): Remove default_pager_helper.
3907 It has never been used by anything.
3909 2002-02-06 H.J. Lu <hjl@gnu.org>
3911 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
3914 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3916 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
3917 attribute((packed)) to counter stupid people misusing gcc options.
3918 (struct stat64): Likewise.
3920 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3922 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
3923 the variables which are used as booleans.
3925 2002-02-06 Andreas Jaeger <aj@suse.de>
3927 * include/libc-symbols.h (INTUSE): Renamed from INT.
3928 * elf/dl-deps.c: Change users.
3929 * sysdeps/generic/dl-sysdep.c: Likewise.
3930 * sysdeps/generic/dl-cache.c: Likewise.
3931 * elf/dl-reloc.c: Likewise.
3932 * elf/rtld.c: Likewise.
3933 * elf/dl-version.c: Likewise.
3934 * elf/dl-load.c: Likewise.
3935 * elf/dl-dst.h: Likewise.
3936 * elf/dl-init.c: Likewise.
3937 * elf/dl-error.c: Likewise.
3938 * elf/dl-fini.c: Likewise.
3939 * elf/dl-runtime.c: Likewise.
3940 * elf/do-lookup.h: Likewise.
3942 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
3944 * stdio-common/_itowa.h: Likewise.
3946 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3948 * elf/dl-minimal.c: Define _itoa_lower_digits.
3950 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
3953 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
3954 loading modules with the DF_STATIC_TLS flag set.
3955 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
3957 * include/link.h (struct link_map): Add l_flags field.
3958 * elf/elf.h (DF_STATIC_TLS): New definition.
3960 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
3961 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
3963 * elf/rtld.c (process_dl_debug): Correct printing help message.
3964 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
3967 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
3968 definition and pass &errno in use of this variable.
3969 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
3971 2002-02-04 Andreas Schwab <schwab@suse.de>
3973 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
3974 * locale/programs/charmap-dir.c: Wrap calls that output messages
3975 with WITH_CUR_LOCALE. Include "localedef.h" first.
3976 * locale/programs/charmap.c: Likewise.
3977 * locale/programs/ld-address.c: Likewise.
3978 * locale/programs/ld-collate.c: Likewise.
3979 * locale/programs/ld-ctype.c: Likewise.
3980 * locale/programs/ld-identification.c: Likewise.
3981 * locale/programs/ld-measurement.c: Likewise.
3982 * locale/programs/ld-messages.c: Likewise.
3983 * locale/programs/ld-monetary.c: Likewise.
3984 * locale/programs/ld-name.c: Likewise.
3985 * locale/programs/ld-numeric.c: Likewise.
3986 * locale/programs/ld-paper.c: Likewise.
3987 * locale/programs/ld-telephone.c: Likewise.
3988 * locale/programs/ld-time.c: Likewise.
3989 * locale/programs/linereader.c: Likewise.
3990 * locale/programs/linereader.h: Likewise.
3991 * locale/programs/localedef.c: Likewise.
3992 * locale/programs/locfile.c: Likewise.
3993 * locale/programs/repertoire.c: Likewise.
3995 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3997 * elf/rtld.c (_dl_start_final): Determine load address to locate
3998 ehdr with GL(dl_rtld_map).l_map_start.
4000 * po/ca.po: Update from translation team.
4002 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
4003 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
4005 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4007 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
4009 2002-02-04 Ulrich Drepper <drepper@redhat.com>
4011 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
4012 * include/link.h (struct link_map): Add various members for TLS
4014 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4015 _rtld_tlsoffset, add _dl_initimage_list.
4016 * sysdeps/i386/dl-lookupcfg.h: New file.
4017 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
4018 TLS relocation. When using TLS we now use RESOLVE_MAP.
4019 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
4022 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
4025 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
4026 thread-pointer as soon as possible.
4027 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
4028 elements in rtld_global.
4029 * sysdeps/generic/tls.h: New file.
4030 * elf/Makefile (distribute): Add tls.h.
4031 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
4032 relocations. Not complete yet.
4034 * resolv/resolv.h: Allow user to define __need_res_state and only
4035 define __res_start structure then.
4036 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
4038 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4039 dl_cpuclock_offset initialization to _dl_start_final.
4040 (_dl_show_auxv): Avoid unnecessary sign extension.
4041 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4043 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4045 * config.h.in: Add HAVE_TLS_SUPPORT.
4046 * sysdeps/i386/elf/configure.in: New file.
4048 2002-02-03 Andreas Schwab <schwab@suse.de>
4050 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4051 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
4053 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
4055 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4056 alloca if the memory reqirements are too high.
4058 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4060 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4061 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4062 the former is available anyway and speed isn't important here.
4063 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4064 * elf/dl-version.c (match_symbol): Likewise.
4065 (_dl_check_map_versions): Likewise.
4066 * elf/rtld.c (process_envvars): Likewise.
4067 (print_statistics): Likewise.
4068 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4069 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
4070 bases. Add assert to catch uses of unimplemented features.
4071 (__strsep): Add assert to catch uses of unimplemented features.
4072 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
4073 and avoid inline optimization.
4074 * elf/rtld.c (process_envvars): Likewise.
4075 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4076 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4077 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4079 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4081 * stdio-common/_itoa.h: Minor simplifications of the code.
4082 * stdio-common/_itoa.c: Likewise.
4084 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4085 instead of _dl_printf for debugging info output.
4087 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4088 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4090 2002-02-01 H.J. Lu <hjl@gnu.org>
4092 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
4093 (atomic_add): Likewise.
4094 (compare_and_swap): Return 0 only when failed to compare. Use
4097 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4100 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
4102 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4104 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4106 * elf/dl-minimal.c (__strsep): New minimal implementation.
4108 2002-02-02 Paul Eggert <eggert@twinsun.com>
4110 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4111 (__mktime_internal): If no tm_isdst is requested, prefer solutions
4112 with tm_isdst > 0 when the requested time falls within a
4113 spring-forward gap [PR libc/2894].
4115 2002-02-03 Andreas Schwab <schwab@suse.de>
4117 * stdio-common/tst-rndseek.c: Increase timeout.
4119 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4121 Change ld.so to not use functions which are exported. One cannot
4122 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
4124 * include/libc-symbols.h: Define INT and INTDEF.
4125 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4126 _dl_signal_error_internal, _dl_map_object_internal,
4127 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4128 _dl_lookup_versioned_symbol_internal,
4129 _dl_relocate_object_internal, _dl_debug_state_internal,
4130 _dl_start_profile_internal, and _dl_unload_cache_internal.
4131 * include/dlfcn.h: Declare _dl_catch_error_internal.
4132 * elf/rtld.c: Use INT for calls to any of the *_internal functions
4133 above. Add INTDEF to function definitions.
4134 * elf/dl-debug.c: Likewise.
4135 * elf/dl-deps.c: Likewise.
4136 * elf/dl-dst.h: Likewise.
4137 * elf/dl-error.c: Likewise.
4138 * elf/dl-fini.c: Likewise.
4139 * elf/dl-init.c: Likewise.
4140 * elf/dl-load.c: Likewise.
4141 * elf/dl-lookup.c: Likewise.
4142 * elf/dl-misc.c: Likewise.
4143 * elf/dl-open.c: Likewise.
4144 * elf/dl-profile.c: Likewise.
4145 * elf/dl-reloc.c: Likewise.
4146 * elf/dl-runtime.c: Likewise.
4147 * elf/dl-version.c: Likewise.
4148 * elf/do-lookup.h: Likewise.
4149 * sysdeps/generic/dl-cache.c: Likewise.
4150 * sysdeps/generic/dl-sysdep.c: Likewise.
4151 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4152 instead of _dl_init.
4153 * sysdeps/arm/dl-machine.h: Likewise.
4154 * sysdeps/cris/dl-machine.h: Likewise.
4155 * sysdeps/hppa/dl-machine.h: Likewise.
4156 * sysdeps/i386/dl-machine.h: Likewise.
4157 * sysdeps/ia64/dl-machine.h: Likewise.
4158 * sysdeps/m68k/dl-machine.h: Likewise.
4159 * sysdeps/mips/dl-machine.h: Likewise.
4160 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4161 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4162 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4163 * sysdeps/sh/dl-machine.h: Likewise.
4164 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4165 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4166 * sysdeps/x86_64/dl-machine.h: Likewise.
4167 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4169 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4170 and _dl_debug_initialize.
4172 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
4174 * elf/rtld.c (dl_main): Avoid strrchr.
4175 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4176 result of readlink. Search from the back for '/'.
4178 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4179 strncpy if possible.
4181 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
4183 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
4184 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4185 strspn, and strcspn.
4186 (process_envvars): Don't use strcspn.
4188 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4189 (_dl_dst_substitute): Likewise.
4191 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4193 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4194 code which is never used when relocating ld.so itself.
4196 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4197 starting ld.so itself. Move l_addr variable initialization closer
4199 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
4201 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4203 * Versions.def (libc): Add GLIBC_PRIVATE.
4204 (libdb, libnss_db, libdb1): Remove.
4205 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4206 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4207 (libpthread): Add GLIBC_PRIVATE.
4208 (libresolv): Likewise, remove GLIBC_2.1.
4209 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4210 GLIBC_2.2.3, GLIBC_2.3.
4211 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4212 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4213 _dl_sym, _dl_vsym): Likewise.
4214 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4215 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4216 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4217 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4218 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4219 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4220 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4221 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4223 (_dl_object_relocation_scope): Remove.
4224 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4225 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4226 __gconv_cache): Move to GLIBC_PRIVATE.
4227 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4228 __internal_setnetgrent): Likewise.
4229 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4230 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4231 * locale/Versions (__collate_element_hash, __collate_element_strings,
4232 __collate_symbol_classes, __collate_symbol_hash,
4233 __collate_symbol_strings, _nl_current_LC_COLLATE,
4234 _nl_current_LC_CTYPE): Likewise.
4235 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4236 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4237 (libnss_nis, libnss_nisplus): Likewise.
4238 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4239 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4240 (libnss_files): Move all symbols to GLIBC_PRIVATE.
4241 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4242 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4243 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4244 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4245 __ns_get16, __ns_samename): Likewise.
4246 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4247 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
4249 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
4250 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
4251 __libc_connect): Likewise.
4252 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
4254 * stdlib/Versions (__libc_system): Likewise.
4255 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
4256 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
4257 * sysdeps/ia64/fpu/Versions: Likewise.
4258 * sysdeps/ia64/Versions: Likewise.
4259 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4260 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
4262 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
4263 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
4264 __libc_sigaction): Likewise.
4265 * termios/Versions (__libc_tcdrain): Likewise.
4267 * misc/sys/cdefs (__attribute_noinline__): Define.
4268 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
4269 __attribute_noinline__.
4271 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
4272 * elf/dl-xstat64.c: New file.
4273 * elf/dl-fxstat64.c: New file.
4274 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
4275 don't export __fxstat64 at multiple versions.
4276 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
4277 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
4279 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
4281 * locale/program/ld-collate.c (collate_finish): Assign a wide
4282 char collation sequence value to multi character collating
4283 elements, and avoid over writing by non-character elements.
4285 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4287 * elf/Makefile (distribute): Add dl-procinfo.c.
4288 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
4289 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
4291 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4293 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
4295 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
4296 _rtld_global struct.
4297 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4298 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4299 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4300 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
4301 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
4302 _dl_fpu_control_set): Remove unused externs.
4303 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
4304 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
4305 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
4306 related variables in _rtld_global struct.
4307 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4308 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
4311 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4313 * sysdeps/generic/dl-procinfo.c: New file.
4315 2002-02-01 Andreas Schwab <schwab@suse.de>
4317 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
4319 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4321 * elf/rtld.c (_dl_start): Mark as internal_function.
4322 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
4324 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
4325 General pretty printing.
4327 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4329 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
4330 * elf/dl-reloc.c: Pretty printing.
4331 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
4332 procinfo-related variables in rtld_global struct.
4333 * elf/dl-support.c: Likewise.
4334 * elf/rtld.c: Likewise.
4335 * sysdeps/i386/i686/Makefile: Likewise.
4336 * sysdeps/i386/i686/hp-timing.c: Likewise.
4337 * sysdeps/i386/i686/hp-timing.h: Likewise.
4338 * sysdeps/ia64/Makefile: Likewise.
4339 * sysdeps/ia64/hp-timing.c: Likewise.
4340 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4341 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4342 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
4343 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
4344 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4345 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
4346 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4347 * sysdeps/x86_64/Makefile: Likewise.
4349 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4350 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
4351 _dl_debug_fd to rtld_global.
4352 * elf/Versions: Likewise.
4353 * elf/dl-close.c: Likewise.
4354 * elf/dl-iteratephdr.c: Likewise.
4355 * elf/dl-lookup.c: Likewise.
4356 * elf/dl-misc.c: Likewise.
4357 * elf/dl-open.c: Likewise.
4358 * elf/dl-support.c: Likewise.
4359 * elf/do-lookup.h: Likewise.
4360 * elf/rtld.c: Likewise.
4361 * sysdeps/generic/dl-cache.c: Likewise.
4362 * sysdeps/generic/dl-sysdep.c: Likewise.
4363 * sysdeps/ia64/Versions: Likewise.
4364 * sysdeps/unix/clock_gettime.c: Likewise.
4365 * sysdeps/unix/clock_settime.c: Likewise.
4366 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4367 * sysdeps/sparc/Versions: Removed.
4368 * sysdeps/i386/i686/Versions : Removed.
4369 * sysdeps/x86_64/Versions: Removed.
4370 * configure.in: Define HAVE_PROTECTED if .protected is available.
4371 * config.h.in: Add entry for HAVE_PROTECTED.
4373 2002-01-31 Jakub Jelinek <jakub@redhat.com.
4375 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
4376 code in struct _rtld_global. Export this struct, remove all
4377 exports for the signal variables.
4378 * sysdeps/arm/dl-machine: Likewise.
4379 * sysdeps/generic/dl-origin: Likewise.
4380 * sysdeps/generic/dl-sysdep: Likewise.
4381 * sysdeps/generic/dl-cache: Likewise.
4382 * sysdeps/hppa/dl-fptr: Likewise.
4383 * sysdeps/hppa/dl-machine: Likewise.
4384 * sysdeps/cris/dl-machine: Likewise.
4385 * sysdeps/i386/dl-machine: Likewise.
4386 * sysdeps/ia64/dl-machine: Likewise.
4387 * sysdeps/m68k/dl-machine: Likewise.
4388 * sysdeps/mach/hurd/dl-sysdep: Likewise.
4389 * sysdeps/mips/mips64/dl-machine: Likewise.
4390 * sysdeps/mips/dl-machine: Likewise.
4391 * sysdeps/powerpc/elf/libc-start: Likewise.
4392 * sysdeps/powerpc/dl-machine: Likewise.
4393 * sysdeps/powerpc/dl-start: Likewise.
4394 * sysdeps/sparc/sparc32/dl-machine: Likewise.
4395 * sysdeps/sparc/sparc64/dl-machine: Likewise.
4396 * sysdeps/sh/dl-machine: Likewise.
4397 * sysdeps/s390/s390-32/dl-machine: Likewise.
4398 * sysdeps/s390/s390-64/dl-machine: Likewise.
4399 * sysdeps/unix/sysv/aix/libc-start: Likewise.
4400 * sysdeps/unix/sysv/aix/start-libc: Likewise.
4401 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
4402 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
4403 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
4404 * sysdeps/x86_64/dl-machine: Likewise.
4406 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4408 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
4411 2002-01-31 Andreas Schwab <schwab@suse.de>
4413 * sysdeps/posix/readv.c: Check for ssize_t overflow.
4415 2002-01-31 Andreas Schwab <schwab@suse.de>
4417 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
4418 reference to _dl_pagesize.
4420 2002-01-30 Ulrich Drepper <drepper@redhat.com>
4422 * Versions.def [ld]: Add GLIBC_2.3.
4423 * elf/dl-addr.c: Move global variables for SHARED code in struct
4424 _rtld_global. Export this struct, remove all exports for the
4426 * elf/dl-close.c: Likewise.
4427 * elf/dl-conflict.c: Likewise.
4428 * elf/dl-debug.c: Likewise.
4429 * elf/dl-deps.c: Likewise.
4430 * elf/dl-dst.h: Likewise.
4431 * elf/dl-error.c: Likewise.
4432 * elf/dl-fini.c: Likewise.
4433 * elf/dl-init.c: Likewise.
4434 * elf/dl-iteratephdr.c: Likewise.
4435 * elf/dl-libc.c: Likewise.
4436 * elf/dl-load.c: Likewise.
4437 * elf/dl-lookup.c: Likewise.
4438 * elf/dl-minimal.c: Likewise.
4439 * elf/dl-object.c: Likewise.
4440 * elf/dl-open.c: Likewise.
4441 * elf/dl-profile.c: Likewise.
4442 * elf/dl-profstub.c: Likewise.
4443 * elf/dl-reloc.c: Likewise.
4444 * elf/dl-runtime.c: Likewise.
4445 * elf/dl-support.c: Likewise.
4446 * elf/dl-sym.c: Likewise.
4447 * elf/dl-version.c: Likewise.
4448 * elf/do-lookup.h: Likewise.
4449 * elf/do-rel.h: Likewise.
4450 * elf/dynamic-link.h: Likewise.
4451 * elf/rtld.c: Likewise.
4452 * sysdeps/generic/dl-cache.c: Likewise.
4453 * sysdeps/generic/dl-sysdep.c: Likewise.
4454 * sysdeps/generic/ldsodefs.h: Likewise.
4455 * sysdeps/generic/libc-start.c: Likewise.
4456 * sysdeps/i386/dl-machine.h: Likewise.
4457 * sysdeps/ia64/dl-fptr.c: Likewise.
4458 * sysdeps/ia64/dl-machine.h: Likewise.
4459 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
4460 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4461 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4462 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
4463 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4464 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4465 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
4466 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4468 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4470 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
4472 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
4474 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
4476 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
4478 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
4480 2002-01-29 Ben Collins <bcollins@debian.org>
4482 * string/bits/string2.h (__mempcpy): Protect size arg for
4483 addition when using __builtin_memcpy.
4485 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4487 * stdlib/Makefile (tests): Add tst-qsort.
4488 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
4490 * manual/signal.texi (Process Signal Mask): Document that
4491 pthread_sigmask, not sigprocmask, must be used in MT programs.
4492 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
4494 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
4496 * misc/Makefile (tests): Add tst-hsearch.
4497 * misc/tst-hsearch.c: New file.
4499 2002-01-18 Wolfram Gloger <wg@malloc.de>
4501 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
4502 * malloc/malloc.h: Likewise.
4503 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
4504 * malloc/arena.c: New file.
4505 * malloc/hooks.c: New file.
4506 * malloc/tst-mallocstate.c: New file.
4507 * malloc/Makefile: Add new testcase tst-mallocstate.
4508 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
4510 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4512 * stdlib/msort.c: Remove last patch. The optimization violates the
4513 same rule which qsort.c had problems with.
4515 2002-01-27 Paul Eggert <eggert@twinsun.com>
4517 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
4518 to a pivot element that lies outside the array to be sorted, as
4519 ISO C99 requires that the comparison function be called only with
4520 addresses of array elements [PR libc/2880].
4522 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4524 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
4525 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
4527 * timezone/asia: Update from tzdata2002b.
4528 * timezone/australasia: Likewise.
4529 * timezone/backward: Likewise.
4530 * timezone/europe: Likewise.
4531 * timezone/leapseconds: Likewise.
4532 * timezone/iso3166.tab: Likewise.
4533 * timezone/zone.tab: Likewise.
4535 2002-01-23 Richard Henderson <rth@redhat.com>
4537 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
4539 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4541 * string/strxfrm.c: Allocate one more byte for rulearr and clear
4542 this element [PR libc/2855].
4544 * string/strcoll.c: Handle zero-length arguments specially
4547 2002-01-23 Jakub Jelinek <jakub@redhat.com>
4549 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
4550 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
4551 short lengths and constant src.
4552 (strcpy): Don't optimize for gcc 3.0+.
4553 (__stpcpy): For gcc 3.0+, don't use
4554 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
4555 for short string literal src.
4557 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4559 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4562 2001-01-22 Paul Eggert <eggert@twinsun.com>
4564 * manual/llio.texi (Linked Channels, Cleaning Streams):
4565 Make it clearer that a just-opened input stream might need cleaning.
4567 2002-01-21 H.J. Lu <hjl@gnu.org>
4569 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4570 Don't use label at end of compound statement.
4572 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
4574 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
4575 Remove test for negative integer arg; sin_pi does it correctly.
4577 2002-01-20 Ulrich Drepper <drepper@redhat.com>
4579 * nscd/Makefile (distribute): Filter out xmalloc.c.
4581 2002-01-19 Ulrich Drepper <drepper@redhat.com>
4583 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
4584 Set offset if read end wasn't the buffer end.
4585 (_IO_file_seekoff_mmap): New function.
4586 (_IO_file_xsgetn_mmap): New function.
4587 (_IO_file_jumps_mmap): Use the two new functions.
4588 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
4590 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
4591 _IO_file_underflow_mmap.
4592 * libio/iofopen.c: Don't position file descriptor at end of file.
4593 * libio/tst-widetext.c: Improve error messages.
4594 * stdio-common/tst-rndseek.c: Likewise.
4596 2002-01-18 Ulrich Drepper <drepper@redhat.com>
4598 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
4599 end of enum for !_GNU_SOURCE.
4600 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
4601 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
4602 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
4603 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
4604 values unless _GNU_SOURCE.
4606 * iconvdata/tcvn5712-1.c: Minor cleanups.
4608 2002-01-18 Andreas Schwab <schwab@suse.de>
4610 * sysdeps/unix/sysv/linux/configure.in
4611 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
4613 2002-01-16 Roger Sayle <roger@eyesopen.com>
4615 * stdlib/msort.c (msort_with_tmp): Replace implementation with
4616 more efficient "Towers of Hanoi" mergesort.
4617 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
4618 for generic, sizeof(int) and sizeof(long) variants respectively.
4620 2002-01-17 Ulrich Drepper <drepper@redhat.com>
4622 * manual/syslog.texi (openlog): Describe possible problems with
4624 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4626 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
4627 * nscd/connections.c (begin_drop_privileges): New function.
4628 (finish_drop_privileges): New function.
4629 (nscd_init): Call the new functions which also install all groups
4630 for the server user.
4631 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
4632 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4634 2002-01-17 H.J. Lu <hjl@gnu.org>
4636 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
4639 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4641 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
4642 instructions for pointer operations.
4643 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4645 2002-01-17 Andreas Jaeger <aj@suse.de>
4647 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
4648 __uint128_t build-in.
4650 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
4651 PowerPC, sync with 2.2 branch.
4653 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4655 * posix/getconf.c: Update copyright year.
4656 * nss/getent.c: Likewise.
4657 * nscd/nscd_nischeck.c: Likewise.
4658 * iconv/iconvconfig.c: Likewise.
4659 * iconv/iconv_prog.c: Likewise.
4660 * elf/ldconfig.c: Likewise.
4661 * catgets/gencat.c: Likewise.
4662 * csu/version.c: Likewise.
4663 * elf/ldd.bash.in: Likewise.
4664 * elf/sprof.c (print_version): Likewise.
4665 * locale/programs/locale.c: Likewise.
4666 * locale/programs/localedef.c: Likewise.
4667 * nscd/nscd.c (print_version): Likewise.
4668 * debug/xtrace.sh: Likewise.
4669 * malloc/memusage.sh: Likewise.
4670 * malloc/mtrace.pl: Likewise.
4672 2002-01-16 Andreas Schwab <schwab@suse.de>
4674 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
4675 reliably remove "-ia64" from rtld name.
4677 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4679 * iconvdata/gb18030.c: Bug fixes and support for more characters.
4680 Patch by Yu Shao <yshao@redhat.com>.
4682 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
4684 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
4685 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
4686 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
4688 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
4690 * sysdeps/s390/fpu/libm-test-ulps: Update.
4692 2002-01-11 Ulrich Drepper <drepper@redhat.com>
4694 * elf/elf.h: Update x86 relocations.
4696 2002-01-10 Ulrich Drepper <drepper@redhat.com>
4698 * locale/programs/charmap.c (new_width): Check whether byte
4699 sequences for both ends of range have the same length.
4701 2002-01-09 Jakub Jelinek <jakub@redhat.com>
4703 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
4705 2002-01-09 Jakub Jelinek <jakub@redhat.com>
4707 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
4709 (__full_ieee754_sqrt): Add __attribute_used__.
4711 2002-01-10 Ulrich Drepper <drepper@redhat.com>
4713 * sysdeps/generic/group_member.c (__group_member): Also check
4714 groups[0] [PR libc/2781].
4716 2002-01-08 Ulrich Drepper <drepper@redhat.com>
4718 * Makefile (distribute): Add scripts/cpp.
4719 * elf/Makefile (distribute): Add reldep6mod[01234].c,
4720 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
4721 unwind-dw2-fde.h, and dwarf2.h.
4722 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
4723 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
4724 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
4725 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
4727 2002-01-07 Roland McGrath <roland@frob.com>
4729 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
4730 volatile on type of ARGC so the compiler doesn't get clever.
4732 2002-01-07 Andreas Jaeger <aj@suse.de>
4734 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
4735 * sysdeps/i386/bits/byteswap.h: Likewise.
4736 * sysdeps/ia64/bits/byteswap.h: Likewise.
4737 * sysdeps/m68k/bits/byteswap.h: Likewise.
4738 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
4739 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
4741 2002-01-02 Bruno Haible <bruno@clisp.org>
4743 * intl/plural.y: Fix %expect count.
4745 2002-01-03 Jakub Jelinek <jakub@redhat.com>
4747 * elf/Makefile (routines, shared-only-routines): Add
4748 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
4749 * elf/elf.h (PT_GNU_EH_FRAME): Define.
4750 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
4751 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
4752 Optimize if .eh_frame section contains no FDEs.
4753 (__register_frame, __deregister_frame_info_bases,
4754 __deregister_frame): Likewise.
4755 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
4756 DW_CFA_restore handling.
4758 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
4760 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
4762 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
4763 for x < 0.25 and restore original range reduction method.
4764 (__ieee754_lgammal_r): Make sure signgam is set before returning.
4766 2002-01-07 Ulrich Drepper <drepper@redhat.com>
4768 * libio/fileops.c (_IO_file_underflow_mmap): New function.
4769 (_IO_file_close_mmap): New function.
4770 (_IO_file_jumps_mmap): New variable.
4771 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
4772 trying to convert rest of byte buffer.
4773 (_IO_wfile_underflow_mmap): New function.
4774 (_IO_wfile_jumps_mmap): New variable.
4775 * libio/iofopen.c (__fopen_maybe_mmap): New function.
4776 (__fopen_internal): New function. Split out from _IO_new_fopen.
4777 (_IO_new_fopen): Call __fopen_internal.
4778 * libio/iofopen64.c: Just call __fopen_internal.
4779 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
4781 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
4782 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
4783 _IO_file_close_mmap.
4785 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
4786 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
4788 * stdio-common/Makefile (tests): Add tst-rndseek.
4789 * stdio-common/tst-rndseek.c: New file.
4791 2002-01-05 Roland McGrath <roland@frob.com>
4793 * config.h.in (HAVE_MIG_RETCODE): New #undef.
4794 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
4795 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
4796 * sysdeps/mach/hurd/configure: Regenerated.
4798 2002-01-03 Ulrich Drepper <drepper@redhat.com>
4800 * elf/elf.h: Add more TLS definitions.
4802 2002-01-02 Ulrich Drepper <drepper@redhat.com>
4804 * include/features.h (__GLIBC_MINOR__): Bump to 3.
4806 2002-01-02 Roland McGrath <roland@frob.com>
4808 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
4809 __sigisemptyset. Don't use MASK uninitialized.
4811 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
4812 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
4813 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
4814 __sigdelset, __sigaddset, __sigorset.
4816 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
4817 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
4819 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
4820 _hurd_ports is null.
4822 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
4823 for old CMU and new OSF Mach interface flavors.
4824 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
4825 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4827 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
4829 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
4830 Pass extra arguments to task_create for OSF variant.
4831 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4833 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
4834 conditional on [HAVE_AUX_VECTOR].
4836 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
4837 mach_msg_timeout_t as type of final argument.
4839 * hurd/privports.c (__get_privileged_ports):
4840 Change host_priv_t to mach_port_t in argument type.
4841 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
4844 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
4845 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
4846 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
4847 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
4848 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
4849 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
4851 2002-01-01 Roland McGrath <roland@frob.com>
4853 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
4855 2002-01-01 Ulrich Drepper <drepper@redhat.com>
4857 * include/stdlib.h: Define inlines for the _l variants of the strto*
4860 2002-01-01 Roland McGrath <roland@frob.com>
4862 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
4864 * mach/Machrules (MIG): Set CPP as well as CC.
4866 2001-12-31 Ulrich Drepper <drepper@redhat.com>
4868 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
4869 locale to parse /proc/loadavg [PR libc/2760].
4871 2001-12-31 Jakub Jelinek <jakub@redhat.com>
4873 * elf/dl-conflict.c: Include sys/param.h.
4874 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
4875 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
4877 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
4878 literals to avoid warnings.
4880 2001-12-31 Andreas Jaeger <aj@suse.de>
4882 * configure.in: Don't check for gsed since we do not use it anywhere.
4884 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
4886 * io/fts.c: Update from BSD to fix memory leaks.
4888 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
4890 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
4891 * elf/chroot_canon.c: Likewise.
4892 * elf/dl-object.c: Likewise.
4893 * iconv/iconv_charmap.c: Likewise.
4894 * iconv/iconv_prog.c: Likewise.
4895 * libio/iogetdelim.c: Likewise.
4896 * locale/lc-time.c: Likewise.
4897 * stdlib/canonicalize.c: Likewise.
4898 * sunrpc/svc.c: Likewise.
4899 * sysdeps/generic/glob.c: Likewise.
4901 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4903 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
4904 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
4905 remove high order bit from the program counter.
4906 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
4908 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4910 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
4911 unnecessary code and add missing reloc types.
4912 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
4913 case for reloc type R_390_NONE.
4915 2001-12-28 Andreas Jaeger <aj@suse.de>
4917 * io/bug-ftw3.c: Include string.h for prototypes.
4919 * crypt/md5test.c (main): Remove unused variable.
4921 * dlfcn/modstatic.c: Add prototype to avoid warning.
4923 2001-12-26 Roland McGrath <roland@frob.com>
4925 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
4926 check only (SS->pending & MASK) for the signal to return.
4927 From Jeroen Dekkers <jeroen@dekkers.cx>.
4929 2001-12-22 Roland McGrath <roland@frob.com>
4931 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
4932 Use preprocessor #if conditionals instead of `if' to avoid
4933 warnings about divide by zero in dead code.
4935 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
4936 _hurd_port_init, and __hurd_self_sigstate.
4938 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
4940 2001-12-21 Andreas Jaeger <aj@suse.de>
4942 * elf/dblloadmod1.c: Add prototype to avoid warning.
4943 * elf/dblloadmod2.c: Likewise.
4944 * elf/dblloadmod3.c: Likewise.
4945 * elf/reldepmod5.c: Likewise.
4946 * elf/reldepmod6.c: Likewise.
4948 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
4949 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
4950 used on all architectures.
4952 * sunrpc/svc_tcp.c: Add noreturn attribute for
4953 svctcp_rendezvous_abort.
4954 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
4956 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
4959 2001-12-19 Jakub Jelinek <jakub@redhat.com>
4961 * manual/llio.texi (aio_fsync): Fix a typo.
4962 Patch by Tammy Fox <tfox@redhat.com>.
4964 2001-12-18 Jakub Jelinek <jakub@redhat.com>
4966 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
4967 stack bias from child stack pointer before passing it to clone syscall.
4969 2001-12-18 Ulrich Drepper <drepper@redhat.com>
4971 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
4973 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
4974 Reported by Thorsten Kukuk <kukuk@suse.de>.
4976 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
4979 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
4981 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
4983 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
4984 conforming: return EBADF if file descriptor is invalid and EINVAL
4985 if file descriptor is no valid tty.
4986 * login/tst-grantpt.c: New file.
4987 * login/Makefile (tests): Add tst-grantpt.
4989 2001-12-17 Ulrich Drepper <drepper@redhat.com>
4991 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
4992 different than implemented in last patch.
4993 * io/bug-ftw3.c: Adjust test for changed handling of
4994 inaccessibility of toplevel dir.
4996 2001-12-16 Roland McGrath <roland@frob.com>
4998 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
4999 * grp/initgroups.c (internal_getgrouplist): Likewise.
5001 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
5002 `default:' to silence new GCC warning.
5003 Rewrite cast of lvalue to silence new GCC warning.
5005 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
5007 * sysdeps/mach/hurd/spawni.c: New file, by me with a
5008 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
5010 2001-12-14 Ulrich Drepper <drepper@redhat.com>
5012 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
5013 Patch by Stephen R. van den Berg.
5015 * crypt/md5.h: Define md5_uintptr.
5017 2001-12-13 Ulrich Drepper <drepper@redhat.com>
5019 * libio/tst_swprintf.c (main): Add test for string argument with
5021 * stdio-common/Makefile (tests): Add tst-sprintf.
5022 * stdio-common/tst-sprintf.c: New file.
5024 2001-12-13 Andreas Schwab <schwab@suse.de>
5026 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
5027 zero precision with wide character string format.
5029 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
5031 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
5032 but have a user supplied buffer, return the empty buffer, not NULL.
5034 2001-12-13 Ulrich Drepper <drepper@redhat.com>
5036 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
5037 Patch by Eric Sharkey <sharkey@netrics.com>.
5039 * crypt/md5test.c (main): Add test for multiple calls to
5040 __md5_process_bytes to itererate over input string.
5042 2001-12-12 Ulrich Drepper <drepper@redhat.com>
5044 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5045 from __nis_findfastest. Take timeout value from parameter.
5046 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
5047 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5048 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
5050 2001-12-12 Andreas Jaeger <aj@suse.de>
5052 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5053 combreloc test so that it works in this case.
5055 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
5057 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
5059 * sysdeps/sh/Makefile: New file.
5060 * sysdeps/sh/_mcount.S: New file.
5061 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5062 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5064 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5066 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5067 limitation [PR libc/2564].
5069 2001-12-11 Jakub Jelinek <jakub@redhat.com>
5071 * elf/Makefile (dl-routines): Add conflict.
5072 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5073 (ld.so): Add _begin local symbol.
5074 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5076 * elf/dl-deps.c (_dl_build_local_scope): New.
5077 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5079 * elf/do-rel.h (VALIDX): Define.
5080 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5081 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5083 * elf/dl-conflict.c: New file.
5084 * elf/dl-lookup.c (_dl_debug_bindings): New.
5085 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
5087 (_dl_lookup_symbol_skip): Likewise.
5088 (_dl_lookup_versioned_symbol): Likewise.
5089 (_dl_lookup_versioned_symbol_skip): Likewise.
5090 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5091 define to ElfW(Rel).
5092 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5093 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5095 Don't adjust address dynamic tags if l_addr is 0.
5096 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5097 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5098 (VALIDX, ADDRIDX): Define.
5099 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5100 (dl_main): Print library list for LD_TRACE_PRELINKING.
5101 If prelinking information can be used, skip relocating libraries and
5102 call _dl_resolve_conflicts instead.
5103 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5104 * elf/dl-load.c (_dl_map_object): Don't create fake libs
5105 if LD_TRACE_PRELINKING.
5106 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5108 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5109 (DL_DEBUG_PRELINK): Define.
5110 (_dl_resolve_conflicts): Add prototype.
5112 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5113 .plt for prelinked libraries where prelinking info cannot be used.
5114 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5115 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5116 * sysdeps/arm/bits/link.h: New file.
5117 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5119 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5120 (ELF_MACHINE_PLT_REL): Define.
5121 (elf_machine_rela, elf_machine_rela_relative): New.
5122 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5123 of adjusting it if prelinked and prelinking cannot be used.
5124 * sysdeps/i386/bits/link.h: New file.
5125 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5127 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5128 (ELF_MACHINE_PLT_REL): Define.
5129 (elf_machine_rela, elf_machine_rela_relative): New.
5130 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5131 of adjusting it if prelinked and prelinking cannot be used.
5132 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5133 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
5134 to find out map for R_PPC_JMP_SLOT relocs.
5135 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5136 (OPCODE_BA): Define.
5137 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5138 libraries where prelinking info cannot be used.
5139 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5140 (elf_machine_fixup_plt): Call sparc_fixup_plt.
5141 (elf_machine_rela): Set value to 0 if relocating conflicts.
5142 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5143 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5144 (sparc64_fixup_plt): Fix a typo.
5145 (elf_machine_rela): Set value to 0 if relocating conflicts.
5146 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5147 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5148 libraries where prelinking info cannot be used.
5149 * sysdeps/sh/bits/link.h: New file.
5150 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5152 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5153 of adjusting it if prelinked and prelinking cannot be used.
5154 * sysdeps/s390/s390-32/bits/link.h: New file.
5155 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5156 Save original content of .got[1].
5157 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5158 of adjusting it if prelinked and prelinking cannot be used.
5159 * sysdeps/s390/s390-64/bits/link.h: New file.
5160 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5161 Save original content of .got[1].
5162 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5163 of adjusting it if prelinked and prelinking cannot be used.
5164 * sysdeps/x86_64/bits/link.h: New file.
5165 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5166 Save original content of .got[1].
5167 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5168 of adjusting it if prelinked and prelinking cannot be used.
5170 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5172 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5173 where appropriate instead of numbers. Little optimizations.
5175 2001-12-10 Roland McGrath <roland@frob.com>
5177 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5180 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5181 set to GLIBC_2.2.5, not GLIBC_2.2.4.
5183 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5184 Fix conditionals so this is set by default for stdio and not for libio.
5185 * sysdeps/mach/hurd/configure: Regenerated.
5187 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
5189 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5191 2001-12-10 Ulrich Drepper <drepper@redhat.com>
5193 * io/Makefile (tests): Add bug-ftw3.
5194 * io/bug-ftw3.c: New file.
5196 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5197 matches and GLOB_NOCHECK is set.
5198 * posix/globtest.sh: Correct expected result for NOCHECK test.
5200 * po/ca.po: Update from translation team.
5202 2001-12-09 Ulrich Drepper <drepper@redhat.com>
5204 Implement transliteration of characters in strings of the locale
5206 * locale/programs/linereader.c: Adjust for additional parameter to
5208 (get_string): If character <Uxxxx> is not found try to transliterate
5210 * locale/programs/ld-ctype.c: Adjust for additional parameter to
5211 lr_token. Add const to charmap parameter of all functions.
5212 (find_translit, find_translit2): New functions.
5213 * locale/programs/charmap.c: Adjust for additional parameter to
5215 * locale/programs/repertoire.c: Likewise.
5216 * locale/programs/linereader.h: Likewise.
5217 * locale/programs/ld-address.c: Likewise. Add const to charmap
5218 parameter of all functions.
5219 * locale/programs/ld-collate.c: Likewise.
5220 * locale/programs/ld-identification.c: Likewise.
5221 * locale/programs/ld-measurement.c: Likewise.
5222 * locale/programs/ld-messages.c: Likewise.
5223 * locale/programs/ld-monetary.c: Likewise.
5224 * locale/programs/ld-name.c: Likewise.
5225 * locale/programs/ld-numeric.c: Likewise.
5226 * locale/programs/ld-paper.c: Likewise.
5227 * locale/programs/ld-paper.c: Likewise.
5228 * locale/programs/ld-telephone.c: Likewise.
5229 * locale/programs/ld-time.c: Likewise.
5230 * locale/programs/locfile.c: Likewise.
5231 * locale/programs/localedef.c: Likewise.
5232 * locale/programs/localedef.h: Likewise.
5233 * locale/programs/locfile.h: Likewise. Add declaration for
5235 * locale/programs/simple-hash.c: Add const to first parameter of
5236 find_entry, iterate_table, and lookup.
5237 * locale/programs/simple-hash.h: Likewise.
5238 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
5240 * include/locale.h: Define __LC_LAST.
5241 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5243 2001-12-07 Geoff Keating <geoffk@redhat.com>
5245 * sysdeps/powerpc/Dist: Update for recent FP changes.
5246 * sysdeps/powerpc/fpu/Dist: Likewise.
5248 2001-12-07 Andreas Schwab <schwab@suse.de>
5250 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5252 2001-12-06 Geoff Keating <geoffk@redhat.com>
5254 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
5255 save/restore functions here.
5256 (libm-support): Don't define these functions here.
5257 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
5259 * sysdeps/powerpc/fe_nomask.c: Move to...
5260 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
5261 * sysdeps/powerpc/fprrest.S: Move to...
5262 * sysdeps/powerpc/fpu/fprrest.S: ... here.
5263 * sysdeps/powerpc/fprsave.S: Move to...
5264 * sysdeps/powerpc/fpu/fprsave.S: ... here.
5266 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5268 * sysdeps/unix/sysv/linux/opensock.c: New file.
5270 2001-12-06 Geoff Keating <geoffk@redhat.com>
5272 * config.make.in (with-fp): Define from configure.
5273 * configure.in: Substitute with_fp.
5274 * configure: Regenerate.
5275 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
5276 specified, and don't change FPU environment.
5278 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5280 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
5281 * assert/assert.c: Check result of __asprintf call and don't use
5282 string if it failed.
5283 * assert/assert-perr.c: Likewise.
5284 * inet/rcmd.c: Likewise.
5285 * locale/programs/localedef.c (main): Check result of
5286 construct_output_path and exit if it failed.
5287 (construct_output_path): Check result of asprintf and mkdir calls and
5288 fail if they failed.
5289 * posix/getopt.c: Check result of __asprintf calls and fail if
5291 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
5293 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5295 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
5297 * sysdeps/generic/strncase.c: Likewise.
5298 * string/tester.c: Add tests for strcasecmp and strncasecmp.
5300 2001-12-05 Geoff Keating <geoffk@redhat.com>
5302 * scripts/cpp: Test the exit status from 'type', not 'awk'.
5304 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
5305 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
5306 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
5307 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
5308 * sysdeps/powerpc/fclrexcpt.c: Move to...
5309 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
5310 * sysdeps/powerpc/fpu_control.h: Move to...
5311 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
5313 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5315 * iconvdata/ibm1129.h: Remove duplicate mappings.
5316 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
5317 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
5318 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5320 * timezone/zic.c: Fix handling of turnaround times.
5321 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
5323 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
5325 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
5328 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5330 * posix/regex.c: For use outside glibc defined bounded pointer
5331 macros here. Patch by Jim Meyering <jim@meyering.net>.
5333 * iconvdata/Makefile (modules): Add TCVN5712-1.
5334 * iconvdata/TESTS: Add TCVN5712-1.
5335 * iconvdata/gconv-modules: Likewise.
5336 * iconvdata/tcvn5712-1.c: New file.
5337 * iconvdata/testdata/TCVN-5712: New file.
5338 * iconvdata/testdata/TCVN-5712..UTF8: New file.
5340 2001-12-04 Ulrich Drepper <drepper@redhat.com>
5342 * iconvdata/cp1258.c: Optimize conversion from UCS4.
5344 2001-12-02 Roland McGrath <roland@frob.com>
5346 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
5348 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
5349 Reported by Jeff Bailey <jbailey@nisa.net>.
5351 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
5352 Reported by Jeff Bailey <jbailey@nisa.net>.
5354 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
5355 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
5356 Reported by Jeff Bailey <jbailey@nisa.net>.
5358 2001-12-01 Roland McGrath <roland@frob.com>
5360 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
5361 missing backslash in test arguments.
5362 * sysdeps/mach/hurd/configure: Regenerated.
5364 2001-11-26 Roland McGrath <roland@frob.com>
5366 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
5367 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
5369 2001-11-30 Ulrich Drepper <drepper@redhat.com>
5371 * iconvdata/Makefile (modules): Add ARMSCII-8.
5372 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
5373 * iconvdata/armscii-8.c: New file.
5375 2001-11-29 Jakub Jelinek <jakub@redhat.com>
5377 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
5378 don't match, fix {{a,b},c} globbing, clean up.
5379 Patch by Flavio Veloso <flaviovs@magnux.com>.
5380 * posix/globtest.sh: Add new tests.
5382 2001-11-29 Andreas Jaeger <aj@suse.de>
5384 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
5385 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
5387 * sysdeps/generic/abort.c: Include libioP.h for
5388 _IO_flush_all_lockp prototype.
5390 2001-11-29 Ulrich Drepper <drepper@redhat.com>
5392 * posix/regex.h: Define __restrict_arr correctly.
5394 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5396 * iconvdata/ibm1163.c: New file.
5397 * iconvdata/ibm1163.h: New file.
5398 * iconvdata/ibm1164.c: New file.
5399 * iconvdata/ibm1164.h: New file.
5400 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
5401 * iconvdata/Makefile: Likewise.
5402 * iconvdata/testdata/IBM1163: New file.
5403 * iconvdata/testdata/IBM1163..UTF8: New file.
5404 * iconvdata/testdata/IBM1164: New file.
5405 * iconvdata/testdata/IBM1164..UTF8: New file.
5406 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5408 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
5409 * iconvdata/ibm1124.h: Likewise.
5410 * iconvdata/ibm1132.h: Likewise.
5411 * iconvdata/ibm1133.h: Likewise.
5412 * iconvdata/ibm1160.h: Likewise.
5413 * iconvdata/ibm1161.h: Likewise.
5414 * iconvdata/ibm1162.h: Likewise.
5415 * iconvdata/ibm856.h: Likewise.
5416 * iconvdata/ibm922.h: Likewise.
5417 * iconvdata/ibm930.h: Likewise.
5418 * iconvdata/ibm932.h: Likewise.
5419 * iconvdata/ibm933.h: Likewise.
5420 * iconvdata/ibm935.h: Likewise.
5421 * iconvdata/ibm937.h: Likewise.
5422 * iconvdata/ibm939.h: Likewise.
5423 * iconvdata/ibm943.h: Likewise.
5424 * iconvdata/ibm930.c: Pretty printing.
5425 * iconvdata/ibm937.c: Avoid access accross array boundary.
5427 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
5428 the current locale's codeset.
5429 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
5431 * iconv/iconv_prog.c: Pass empty strings as default value for to-
5432 and from-charset. Don't determine locale's charset here.
5434 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
5435 as the old _IO_flush_all but lock only if parameter is nonzero.
5436 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
5437 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
5438 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
5439 if libio is used [PR libc/2575].
5441 2001-11-28 Jakub Jelinek <jakub@redhat.com>
5443 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
5444 __signbitl): Only define for ISO C99.
5446 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5448 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
5449 herrnop to NETDB_INTERNAL if we run out of buffer space.
5451 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5453 * nss/nss_files/files-XXX.c (internal_getent): Correct input
5454 overflow test for platforms with signed char.
5455 Reported by Andrew Haley <aph@cambridge.redhat.com>.
5457 2001-11-28 Bruno Haible <bruno@clisp.org>
5459 * locale/programs/simple-hash.c (lookup_2): Remove function.
5460 (insert_entry_2): Call lookup instead of lookup_2.
5462 2001-03-04 Bruno Haible <bruno@clisp.org>
5464 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
5466 2001-10-31 Bruno Haible <bruno@clisp.org>
5468 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
5470 2001-03-21 Bruno Haible <bruno@clisp.org>
5472 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
5473 chokes on empty macro arguments.
5474 * intl/plural.y: Add #pragma for alloca on AIX 3.
5476 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5478 * intl/dcigettext.c (guess_category_value): Only implement for
5479 glibc. Otherwise rely on function _nl_locale_name which isn't
5480 present in the glibc sources.
5482 2001-09-24 Bruno Haible <bruno@clisp.org>
5484 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
5485 transliteration when building on a glibc system but outside glibc.
5487 2001-09-22 Bruno Haible <bruno@clisp.org>
5489 * intl/plural-eval.c: New file, extracted from dcigettext.c.
5490 * intl/dcigettext.c (plural_eval): Remove function, moved to
5492 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
5493 Include plural-eval.c.
5495 2001-09-22 Bruno Haible <bruno@clisp.org>
5497 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
5498 don't start with a digit; nplurals must be positive.
5500 2001-09-02 Bruno Haible <bruno@clisp.org>
5502 * intl/plural-exp.h: New file, extracted from gettextP.h.
5503 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
5504 * intl/gettextP.h (struct expression, struct parse_args,
5505 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
5506 * intl/loadmsgcat.c: Include plural-exp.h.
5507 (PLURAL_PARSE): Move macro to plural-exp.h.
5508 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
5510 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
5511 EXTRACT_PLURAL_EXPRESSION.
5512 (_nl_unload_domain): Update.
5513 * intl/dcigettext.c: Include plural-exp.h.
5514 * intl/plural.y: Include plural-exp.h, not gettextP.h.
5515 (FREE_EXPRESSION): Move macro to plural-exp.h.
5516 * intl/Makefile (routines): Add plural-exp.
5517 (distribute): Add plural-exp.h.
5519 2001-07-28 Bruno Haible <bruno@clisp.org>
5521 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
5522 isdigit, tolower argument to 'unsigned char'.
5523 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
5525 * intl/localealias.c (read_alias_file): Cast isspace argument to
5528 2001-10-20 Bruno Haible <bruno@clisp.org>
5530 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
5532 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
5533 with the variable 'index' in plural_lookup.
5534 * intl/l10nflist.c (strchr): Likewise.
5535 * intl/localealias.c (strchr): Likewise.
5537 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
5538 * intl/bindtextdom.c: Likewise.
5539 * intl/dcigettext.c: Likewise.
5540 * intl/dgettext.c: Likewise.
5541 * intl/dngettext.c: Likewise.
5542 * intl/explodename.c: Likewise.
5543 * intl/finddomain.c: Likewise.
5544 * intl/gettext.c: Likewise.
5545 * intl/l10nflist.c: Likewise.
5546 * intl/loadmsgcat.c: Likewise.
5547 * intl/localealias.c: Likewise.
5548 * intl/ngettext.c: Likewise.
5549 * intl/textdomain.c: Likewise.
5550 * intl/gettext.h: Assume <limits.h> exists.
5552 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5554 * stdio-common/Makefile (tests): Add scanf11.
5555 * stdio-common/scanf11.c: New file.
5557 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5559 * version.h (RELEASE): Define as development.
5560 (VERSION): Set to 2.2.90.
5562 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5564 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
5565 * nis/nss_nis/nis-grp.c: Likewise.
5566 * nis/nss_nisplus/nisplus-grp.c: Likewise.
5568 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
5569 * nis/nss_nis/nis-pwd.c: Likewise.
5570 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
5572 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
5573 * nis/nss_nisplus/nisplus-parser.c: Likewise.
5574 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5576 * nscd/grpcache.c: Use strtoul instead of atol.
5577 * nscd/pwdcache.c: Likewise.
5578 * nss/getent.c: Likewise.
5580 2001-11-27 Paul Eggert <eggert@twinsun.com>
5582 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5583 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5585 2001-11-19 Bruno Haible <bruno@clisp.org>
5587 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
5589 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
5590 improves the quality of the hash function, especially for short
5593 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5595 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
5596 are found call conv_error and not input_error [PR libc/2669].
5598 * math/bits/mathcalls.h: Mark ceil and floor as const.
5599 Reported by David Mosberger.
5601 2001-11-21 Jim Meyering <meyering@lucent.com>
5603 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
5604 Define to be __-prefixed.
5605 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
5607 2001-11-26 Andreas Jaeger <aj@suse.de>
5609 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
5612 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
5614 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
5617 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
5618 unused variables. Fix threshold for returning 1.0.
5620 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
5623 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
5624 remove unused variables.
5626 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
5628 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
5629 include local math header files.
5631 2001-11-22 Andreas Jaeger <aj@suse.de>
5633 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
5636 2001-11-21 Andreas Jaeger <aj@suse.de>
5638 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
5640 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
5643 2001-11-15 Andreas Jaeger <aj@suse.de>
5645 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
5646 compilers that support it.
5648 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
5649 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
5650 * stdlib/stdlib.h: Likewise.
5652 2001-11-17 Ulrich Drepper <drepper@redhat.com>
5654 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
5655 statement with gotos.
5656 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
5658 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
5660 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
5662 2001-11-15 Ulrich Drepper <drepper@redhat.com>
5664 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
5666 2001-10-02 Jakub Jelinek <jakub@redhat.com>
5667 H.J. Lu <hjl@gnu.org>
5669 * Versions.def (libc): Add GCC_3.0.
5670 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5671 if gcc supports this flag.
5672 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
5673 (gcc3): Allow glibc to be compiled with gcc 3.x.
5674 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
5675 * config.make.in (static-libgcc, unwind-find-fde): Add.
5676 * Makerules (build-shlib-helper, build-module-helper): Use it.
5677 * scripts/versions.awk: Make sure GLIBC_ versions come first.
5678 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
5680 (_fini): Call __deregister_frame_info_bases if
5681 __register_frame_info_bases was used to register.
5682 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
5684 (__register_frame_info_bases, __register_frame_info_table_bases,
5685 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
5686 * elf/Makefile (routines): Add unwind-dw2-fde.
5687 (shared-only-routines): Add unwind-dw2-fde.
5688 * sysdeps/alpha/gccframe.h: New file.
5689 * sysdeps/arm/gccframe.h: New file.
5690 * sysdeps/generic/framestate.c: New file.
5691 * sysdeps/generic/dwarf2.h: New file.
5692 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
5693 * sysdeps/generic/unwind-dw2-fde.c: New file.
5694 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
5695 * sysdeps/generic/unwind-dw2-fde.h: New file.
5696 * sysdeps/generic/unwind-dw2.c: New file.
5697 * sysdeps/generic/unwind-pe.h: New file.
5698 * sysdeps/generic/unwind.h: New file.
5699 * sysdeps/hppa/gccframe.h: New file.
5700 * sysdeps/i386/gccframe.h: New file.
5701 * sysdeps/m68k/gccframe.h: New file.
5702 * sysdeps/mips/gccframe.h: New file.
5703 * sysdeps/powerpc/gccframe.h: New file.
5704 * sysdeps/s390/gccframe.h: New file.
5705 * sysdeps/sh/gccframe.h: New file.
5706 * sysdeps/sparc/gccframe.h: New file.
5707 * sysdeps/vax/gccframe.h: New file.
5708 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5709 Set on all architectures except ia64.
5710 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
5712 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
5713 __deregister_frame_info): Move to elf/Versions.
5714 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
5715 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
5716 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
5717 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
5718 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
5719 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
5720 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5721 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5722 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
5723 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
5724 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5725 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5726 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5727 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5728 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5729 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5730 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5731 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5733 2001-11-15 Jeff Law <law@redhat.com>
5735 * posix/regex.c (uintptr_t): Do not provide a definition if the
5736 system provided one.
5738 2001-11-13 Roland McGrath <roland@frob.com>
5740 * stdio-common/tmpfile.c: Moved to ...
5741 * sysdeps/generic/tmpfile.c: ... here.
5742 * sysdeps/mach/hurd/tmpfile.c: New file.
5744 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
5745 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
5746 (fopenport): Define as weak alias.
5748 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
5749 * libio/libioP.h: ... to here.
5751 2001-11-12 Ulrich Drepper <drepper@redhat.com>
5753 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
5754 program header twice. Construct list with the needed information.
5756 2001-11-10 Ulrich Drepper <drepper@redhat.com>
5758 * po/ca.po: Update from translation team.
5760 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
5761 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
5762 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
5763 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5765 2001-11-10 Andreas Jaeger <aj@suse.de>
5767 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
5768 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5769 Contributed by Stephen L Moshier <moshier@mediaone.net>.
5771 2001-11-09 Ulrich Drepper <drepper@redhat.com>
5773 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
5775 * elf/dl-load.c (is_dst): New function.
5776 (_dl_dst_count): Use is_dst to check for DST variable.
5777 (_dl_dst_substitute): Likewise.
5779 2001-11-09 Roland McGrath <roland@frob.com>
5781 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
5782 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
5783 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
5784 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
5785 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
5786 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
5787 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
5788 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
5789 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
5790 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
5791 * sysdeps/mach/hurd/powerpc/Dist: New file.
5793 * hurd/privports.c (__get_privileged_ports):
5794 Only contact the proc server if necessary for this call.
5795 Suggested by Neal H Walfield <neal@cs.uml.edu>.
5796 Check error return for mach_port_mod_refs.
5798 2001-11-09 Andreas Schwab <schwab@suse.de>
5800 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
5802 2001-11-09 Ulrich Drepper <drepper@redhat.com>
5804 * elf/dl-load.c (lose): Remove some unnecessary code. The new
5805 object is always the last in the list.
5806 (_dl_map_object_from_fd): Delete code to remove from object list
5807 when DF_1_NOOPEN is seen. This is done in lose.
5809 2001-11-08 Ulrich Drepper <drepper@redhat.com>
5811 * elf/dl-object.c (_dl_new_object): Various small optimizations.
5813 2001-11-07 Ulrich Drepper <drepper@redhat.com>
5815 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
5816 HWCAP_CHECK macro code.
5818 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
5819 Now returns MAP_FAILED on error.
5820 * elf/rtld.c: Adjust caller.
5821 * sysdeps/generic/dl-cache.c: Likewise.
5822 * sysdeps/generic/ldsodefs.h: Adjust description.
5824 * elf/dl-version.c (match_symbol): Optimize error handling for size.
5825 (_dl_check_map_versions): Likewise.
5827 2001-11-06 Ulrich Drepper <drepper@redhat.com>
5829 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
5830 _dl_signal_error directly, always use lose. Set fd to -1 after
5832 (lose): Don't call close if fd == -1.
5834 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
5836 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
5837 Also fix typo @code {mbsinit} to @code{mbsinit}.
5839 2001-11-06 Ulrich Drepper <drepper@redhat.com>
5841 * elf/dl-profile.c: Replace state variable with simple flag named
5842 running. Remove commented-out code.
5844 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
5845 (_dl_init_paths): Likewise.
5846 (_dl_map_object_from_fd): Likewise.
5847 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5849 2001-11-06 Roland McGrath <roland@frob.com>
5851 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
5852 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
5854 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
5855 sysdeps/powerpc/elf/sysdep.h.
5856 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
5858 2001-11-05 Ulrich Drepper <drepper@redhat.com>
5860 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
5862 (process_envvars): Some more optimizations.
5863 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
5865 * elf/elf.h: Add dynamic tag definitions for prelinking.
5867 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
5868 Rewrite code to remove environment varables for SUID binaries.
5869 Small optimization in LD_PROFILE handling.
5870 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
5872 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5874 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
5876 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
5877 strings. Change type of second parameter.
5878 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
5881 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
5883 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
5885 * manual/string.texi: Fix typos.
5886 * manual/examples/argp-ex2.c: Likewise.
5888 2001-11-05 Roland McGrath <roland@frob.com>
5890 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
5891 the more-specific unix/sysv/linux/powerpc file and breaks everything.
5892 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
5893 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
5894 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
5895 here, put under [__ELF__].
5897 2001-11-05 Ulrich Drepper <drepper@redhat.com>
5899 * manual/charset.texi: Extensive editing work.
5900 * manual/nss.texi: Likewise.
5901 Changes by Dennis Grace <dgrace@us.ibm.com>.
5903 2001-11-04 Roland McGrath <roland@frob.com>
5905 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
5906 parameter to dir_mkfile.
5908 2001-11-02 Jakub Jelinek <jakub@redhat.com>
5910 * string/bits/string2.h (__strndup): If n is smaller than len, set
5912 * string/tester.c (test_strndup): New function.
5915 2001-11-01 Ulrich Drepper <drepper@redhat.com>
5917 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
5919 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
5920 * scripts/cpp: New file.
5922 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
5923 for rtld_search_dirs content. Minor optimizations.
5925 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5927 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
5928 avoiding unnecessary duplication.
5930 2001-10-31 Jakub Jelinek <jakub@redhat.com>
5932 * elf/dl-load.c (_dl_map_object): If library was found using
5933 LD_LIBRARY_PATH, don't try RUNPATH list.
5935 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
5937 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
5938 Correct second argument of register_dump call.
5939 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
5942 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5944 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
5946 * iconvdata/TESTS: Likewise.
5947 * iconvdata/gconv-modules: Likewise.
5948 * iconvdata/ibm1132.c: New file.
5949 * iconvdata/ibm1132.h: New file.
5950 * iconvdata/ibm1133.c: New file.
5951 * iconvdata/ibm1133.h: New file.
5952 * iconvdata/ibm1162.c: New file.
5953 * iconvdata/ibm1162.h: New file.
5954 * iconvdata/testdata/IBM1132: New file.
5955 * iconvdata/testdata/IBM1132..UTF8: New file.
5956 * iconvdata/testdata/IBM1133: New file.
5957 * iconvdata/testdata/IBM1133..UTF8: New file.
5958 * iconvdata/testdata/IBM1162: New file.
5959 * iconvdata/testdata/IBM1162..UTF8: New file.
5960 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
5962 * string/string.h: Fix typo in comment.
5963 * wcsmbs/wchar.h: Likewise.
5965 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
5967 * manual/getopt.texi (getopt_long, getopt_long_only): Include
5968 const in type of longopts parameter.
5970 2001-10-29 Andreas Jaeger <aj@suse.de>
5972 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
5974 2001-10-29 Kevin Ryde <user42@zip.com.au>
5976 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
5977 output, clarify `#' behaviour on 0.
5978 (Floating-Point Conversions): Clarify that %g only uses %e when
5979 the exponent would be greater than 1.
5981 2001-10-28 Roland McGrath <roland@frob.com>
5983 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
5984 * sysdeps/mach/powerpc/machine-sp.h: New file.
5985 * sysdeps/mach/powerpc/sysdep.h: New file.
5986 * sysdeps/mach/powerpc/thread_state.h: New file.
5988 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
5989 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
5990 expect to need the same thing on every platform.
5992 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
5993 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
5995 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
5996 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
5997 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
5998 Move all these assembly-related definitions to ...
5999 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
6001 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
6002 by Peter Bruin <pjbruin@dds.nl>.
6004 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
6005 packing results for a `poll' call.
6007 2001-10-26 Ulrich Drepper <drepper@redhat.com>
6009 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
6011 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
6014 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6016 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
6018 2001-10-24 H.J. Lu <hjl@gnu.org>
6020 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
6021 Use __BEGIN_DECLS/__END_DECLS around prototypes.
6022 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
6024 2001-10-21 Jim Meyering <meyering@lucent.com>
6026 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6027 this code would end up calling gettext even in packages built
6029 * posix/getopt.c (_): Likewise.
6030 * posix/regex.c (_): Likewise.
6032 2001-10-26 Ulrich Drepper <drepper@redhat.com>
6034 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
6036 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6037 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6039 2001-10-19 Jakub Jelinek <jakub@redhat.com>
6041 * misc/sys/cdefs.h (__attribute_used__): Define.
6042 * elf/rtld.c (_dl_start): Add __attribute_used__.
6043 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6045 2001-10-25 Andreas Schwab <schwab@suse.de>
6047 * stdlib/a64l.c: Expect least significant digit first.
6048 * stdlib/l64a.c: Produce least significant digit first.
6049 * stdlib/Makefile (tests): Add test-a64l.
6050 * stdlib/test-a64l.c: New file.
6051 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6053 2001-10-21 Ulrich Drepper <drepper@redhat.com>
6055 * po/sk.po: Update from translation team.
6057 2001-10-18 Ulrich Drepper <drepper@redhat.com>
6059 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6061 2001-10-18 Andreas Schwab <schwab@suse.de>
6063 * math/libm-test.inc (print_ulps): Print ulp values rounded to
6065 (print_function_ulps): Likewise.
6066 (print_complex_function_ulps): Likewise.
6067 (print_max_error): Likewise.
6068 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
6070 2001-10-16 Andreas Schwab <schwab@suse.de>
6072 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6075 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6076 BSD_SETJMP or BSD__SETJMP is defined, resp.
6077 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6078 a tail call to __sigsetjmp that would require extending the
6080 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6081 * sysdeps/m68k/bsd-setjmp.S: Deleted.
6082 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6083 Reported by Jes Sorensen <jes@trained-monkey.org>.
6085 2001-10-16 Andreas Jaeger <aj@suse.de>
6087 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
6088 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
6091 2001-10-15 Ulrich Drepper <drepper@redhat.com>
6093 * po/ca.po: New file. Contributed by the translation team.
6095 2001-10-15 Ralf Baechle <ralf@gnu.org>
6097 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6098 a varargs prototype. Remove dependency from kernel header files.
6100 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6101 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6103 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6105 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6106 to generate hexadecimal identifier.
6107 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6109 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
6111 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6113 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6115 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6116 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6117 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6119 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6120 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6121 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6122 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6123 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6124 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6126 * timezone/africa: Update from tzdata2001d.
6127 * timezone/asia: Likewise.
6128 * timezone/australasia: Likewise.
6129 * timezone/backward: Likewise.
6130 * timezone/europe: Likewise.
6131 * timezone/leapseconds: Likewise.
6132 * timezone/northamerica: Likewise.
6133 * timezone/southamerica: Likewise.
6134 * timezone/zone.tab: Likewise.
6136 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
6138 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6139 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6141 2001-10-12 Ulrich Drepper <drepper@redhat.com>
6143 * elf/elf.h (PT_TLS): New definition.
6145 2001-10-10 Jeff Bailey <jbailey@nisa.net>
6147 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6150 2001-10-07 Roland McGrath <roland@frob.com>
6152 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6154 2001-10-10 Ulrich Drepper <drepper@redhat.com>
6156 * elf/elf.h: Add more ELFOSABI_* constants.
6158 2001-10-04 Ben Collins <bcollins@debian.org>
6160 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6161 decleration of __need_wchar_t.
6163 2001-10-03 Jakub Jelinek <jakub@redhat.com>
6165 * string/bits/string2.h (__strsep_g): Add prototype.
6167 * string/Versions (__strsep): Remove.
6168 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6170 2001-10-07 Ulrich Drepper <drepper@redhat.com>
6172 * manua/llio.texi: Clarify file references added by mmap.
6173 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6175 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
6177 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6178 Add sc_loadrs and sc_rbs_bas to match current kernel.
6180 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6182 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6184 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6186 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6188 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6189 object has been bumped because of relocation dependency, avoid
6190 duplicates in l_scope.
6191 (show_scope): Fix typos.
6192 * elf/Makefile: Add rules to build and run reldep6.
6193 * elf/reldep6.c: New file.
6194 * elf/reldep6mod0.c: New file.
6195 * elf/reldep6mod1.c: New file.
6196 * elf/reldep6mod2.c: New file.
6197 * elf/reldep6mod3.c: New file.
6198 * elf/reldep6mod4.c: New file.
6200 2001-09-26 Jakub Jelinek <jakub@redhat.com>
6202 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6204 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
6205 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6206 for non-lazy binding. Fix .plt[32768+] handling.
6207 (elf_machine_plt_value): Don't add addend.
6208 (elf_machine_rela): Call sparc64_fixup_plt instead of
6209 elf_machine_fixup_plt.
6210 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6211 dynamic linker at 0xfffff800XXXXXXXX.
6213 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6215 2001-09-28 Ulrich Drepper <drepper@redhat.com>
6217 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6219 2001-09-25 Jakub Jelinek <jakub@redhat.com>
6221 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6222 declare __cmsg_data field if its size would be bigger than 0.
6223 (CMSG_DATA): Adjust accordingly.
6224 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6225 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6226 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6227 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6228 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6229 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6230 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6232 2001-09-25 Ulrich Drepper <drepper@redhat.com>
6234 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6235 * iconvdata/testdata/IBM1160: New file.
6236 * iconvdata/testdata/IBM1160..UTF8: New file.
6237 * iconvdata/testdata/IBM1161: New file.
6238 * iconvdata/testdata/IBM1161..UTF8: New file.
6239 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6241 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6243 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6244 UL_SETFSIZE computations better.
6246 * rt/Makefile: Remove use of filter for librt again.
6248 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
6249 UL_SETFSIZE computations better.
6251 * string/Versions: Export __strsep for GLIBC_2.2.5.
6252 * string/bits/string2.h: Define all __STRING_INLINE functions if
6253 _FORCE_INLINES is defined.
6254 Use int instead of char of parameter types.
6255 (__strsep): Don't use __strsep_g. Don't define it.
6256 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
6257 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
6259 (__stpcpy_a_small): Renamed from __stpcpy_small.
6260 (__strcspn_c1): Don't define if _FORCE_INLINES.
6261 (__strspn_c1): Likewise.
6263 2001-09-22 Ben Collins <bcollins@debian.org>
6265 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
6266 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
6267 * sysdeps/ia64/bits/sigaction.h: Likewise.
6268 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
6270 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6272 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
6274 2001-09-24 Jakub Jelinek <jakub@redhat.com>
6276 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
6278 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6280 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
6282 2001-09-20 H.J. Lu <hjl@gnu.org>
6284 * include/dlfcn.h (__RTLD_SPROF): New definiton.
6285 * elf/dl-open.c (dl_open_worker): Return immediately after loading
6287 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
6288 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
6290 2001-09-20 H.J. Lu <hjl@gnu.org>
6292 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
6295 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6297 * nss/getent.c: Accept -s parameter to overwrite rules in
6298 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
6300 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
6301 with as many ".0" as necessary to form a complete address
6302 inet_network understands.
6304 * nss/getent.c: Various cleanups. Use simpler and fewer function
6307 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6309 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
6311 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
6313 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6315 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
6317 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
6318 * iconvdata/ibm1160.c: New file.
6319 * iconvdata/ibm1160.h: New file.
6320 * iconvdata/ibm1161.c: New file.
6321 * iconvdata/ibm1161.h: New file.
6322 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6324 2001-09-19 Jakub Jelinek <jakub@redhat.com>
6326 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
6327 difference between base address and first PT_LOAD's virtual address,
6328 not the base address.
6330 2001-09-11 Tom Rix <trix@redhat.com>
6332 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
6333 ifdef for __getopt_clean_environment.
6334 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
6336 2001-09-22 Andreas Jaeger <aj@suse.de>
6338 * elf/reldep4.c (main): Add proper prototype to fix warning.
6340 * elf/reldep5.c (main): Remove unused variable.
6342 * math/math_private.h: Add prototypes.
6344 2001-09-21 Andreas Jaeger <aj@suse.de>
6346 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
6347 * sysdeps/x86_64/Dist: New file.
6348 * sysdeps/x86_64/soft-fp/Dist: New file.
6350 * sysdeps/gnu/Dist: Remove eval.c.
6352 2001-09-20 Ulrich Drepper <drepper@redhat.com>
6354 * malloc/memusage.c (realloc): Don't count already allocated
6356 (me): Always use dlsym() to find the real implementations.
6358 * malloc/memusage.sh: Make -n option actually do something.
6360 2001-09-20 Andreas Jaeger <aj@suse.de>
6362 * elf/elf.h (R_390_NUM): Correct value.
6364 * Versions.def: Add missing versions 2.2.3 for libthread_db and
6367 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
6368 for x86-64, install x86-64 into */lib64.
6370 * shlib-versions: Add x86-64.
6372 * elf/elf.h: Add x86-64 relocations.
6374 2001-09-19 Ulrich Drepper <drepper@redhat.com>
6376 * po/fr.po: Update from translation team.
6378 2001-09-19 Andreas Jaeger <aj@suse.de>
6380 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6381 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
6382 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
6383 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
6384 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
6385 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
6386 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
6387 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
6388 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
6389 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6390 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
6391 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
6392 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
6393 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
6394 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
6395 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
6396 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
6397 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
6398 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
6399 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
6400 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
6401 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
6402 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
6403 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
6404 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
6405 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
6406 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
6407 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
6408 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
6409 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
6410 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
6411 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
6412 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
6413 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
6414 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
6415 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
6416 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
6417 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
6418 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
6419 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
6420 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
6421 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
6422 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
6423 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
6424 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
6425 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
6426 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
6427 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
6428 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
6429 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
6430 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
6431 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6432 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
6433 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
6434 * sysdeps/unix/x86_64/sysdep.S: New file.
6435 * sysdeps/unix/x86_64/sysdep.h: New file.
6436 * sysdeps/x86_64/Implies: New file.
6437 * sysdeps/x86_64/Makefile: New file.
6438 * sysdeps/x86_64/Versions: New file.
6439 * sysdeps/x86_64/__longjmp.S: New file.
6440 * sysdeps/x86_64/abort-instr.h: New file.
6441 * sysdeps/x86_64/atomicity.h: New file.
6442 * sysdeps/x86_64/bits/endian.h: New file.
6443 * sysdeps/x86_64/bits/setjmp.h: New file.
6444 * sysdeps/x86_64/bits/string.h: New file.
6445 * sysdeps/x86_64/bp-asm.h: New file.
6446 * sysdeps/x86_64/bsd-_setjmp.S: New file.
6447 * sysdeps/x86_64/bsd-setjmp.S: New file.
6448 * sysdeps/x86_64/dl-machine.h: New file.
6449 * sysdeps/x86_64/elf/initfini.c: New file.
6450 * sysdeps/x86_64/elf/start.S: New file.
6451 * sysdeps/x86_64/ffs.c: New file.
6452 * sysdeps/x86_64/ffsll.c: New file.
6453 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
6454 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
6455 * sysdeps/x86_64/fpu/e_acosl.c: New file.
6456 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
6457 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
6458 * sysdeps/x86_64/fpu/e_expl.c: New file.
6459 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
6460 * sysdeps/x86_64/fpu/e_log10l.S: New file.
6461 * sysdeps/x86_64/fpu/e_log2l.S: New file.
6462 * sysdeps/x86_64/fpu/e_logl.S: New file.
6463 * sysdeps/x86_64/fpu/e_powl.S: New file.
6464 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
6465 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
6466 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
6467 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
6468 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
6469 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
6470 * sysdeps/x86_64/fpu/fegetenv.c: New file.
6471 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
6472 * sysdeps/x86_64/fpu/fegetround.c: New file.
6473 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
6474 * sysdeps/x86_64/fpu/fesetenv.c: New file.
6475 * sysdeps/x86_64/fpu/fesetround.c: New file.
6476 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
6477 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
6478 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
6479 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
6480 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
6481 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
6482 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
6483 * sysdeps/x86_64/fpu/s_atanl.c: New file.
6484 * sysdeps/x86_64/fpu/s_cosl.S: New file.
6485 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
6486 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
6487 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
6488 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
6489 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
6490 * sysdeps/x86_64/fpu/s_logbl.c: New file.
6491 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
6492 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
6493 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
6494 * sysdeps/x86_64/fpu/s_rintl.c: New file.
6495 * sysdeps/x86_64/fpu/s_significandl.c: New file.
6496 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
6497 * sysdeps/x86_64/fpu/s_sinl.S: New file.
6498 * sysdeps/x86_64/fpu/s_tanl.S: New file.
6499 * sysdeps/x86_64/gmp-mparam.h: New file.
6500 * sysdeps/x86_64/hp-timing.c: New file.
6501 * sysdeps/x86_64/hp-timing.h: New file.
6502 * sysdeps/x86_64/htonl.S: New file.
6503 * sysdeps/x86_64/memusage.h: New file.
6504 * sysdeps/x86_64/setjmp.S: New file.
6505 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
6506 * sysdeps/x86_64/stackinfo.h: New file.
6507 * sysdeps/x86_64/sysdep.h: New file.
6508 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
6510 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
6513 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6515 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
6516 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
6518 2001-09-18 Andreas Schwab <schwab@suse.de>
6520 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
6521 list, now that l_scope is a pointer.
6523 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
6526 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
6528 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
6529 (elf_machine_rela_relative): Add a missing declaration.
6531 2001-09-18 Jakub Jelinek <jakub@redhat.com>
6533 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
6534 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
6535 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
6536 ldd-rewrite scripts.
6538 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6540 * elf/ldd.bash.in: Update copyright message.
6542 2001-09-17 H.J. Lu <hjl@gnu.org>
6544 * hurd/hurdmalloc.c (bcopy): Removed.
6545 (realloc): Replace bcopy with memcpy.
6546 * hurd/path-lookup.c (file_name_path_scan): Likewise.
6547 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
6548 * sunrpc/rpcinfo.c (pmapdump): Likewise.
6550 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
6551 (gethostbyaddr): Likewise.
6552 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
6554 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6556 * sysdeps/gnu/eval.c: Removed.
6558 2001-09-18 Andreas Jaeger <aj@suse.de>
6560 * sysdeps/i386/fpu/s_logbl.S: Move to ...
6561 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
6563 * sysdeps/i386/fpu/s_rintl.S: Move to ...
6564 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
6566 * sysdeps/i386/fpu/s_significandl.S: Move to ...
6567 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
6569 2001-09-16 Ulrich Drepper <drepper@redhat.com>
6571 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6574 2001-09-14 H.J. Lu <hjl@gnu.org>
6576 * sysdeps/mips/fpu/libm-test-ulps: Updated.
6578 2001-09-14 Ulrich Drepper <drepper@redhat.com>
6580 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
6581 Patch by Florian La Roche <laroche@redhat.com>.
6583 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
6585 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
6588 2001-09-14 Andreas Schwab <schwab@suse.de>
6590 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
6591 Sumner <bls@sgi.com>.
6592 * posix/execlp.c: Likewise.
6594 2001-09-13 Jakub Jelinek <jakub@redhat.com>
6596 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
6597 is already found earlier in the search scope.
6599 2001-09-12 Jakub Jelinek <jakub@redhat.com>
6601 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
6604 2001-09-13 Ulrich Drepper <drepper@redhat.com>
6606 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
6608 2001-09-12 Ulrich Drepper <drepper@redhat.com>
6610 * config.h.in: Enforce optimization to be used.
6611 * Makeconfig (preprocess-versions): Define ASSEMBLER.
6612 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
6613 * posix/Makefile (annexc-CFLAGS): Define to -O.
6614 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
6616 2001-09-11 Ulrich Drepper <drepper@redhat.com>
6618 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
6619 Patch by Stephan Kulow.
6621 2001-09-08 Ben Collins <bcollins@debian.org>
6623 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
6624 usage of RESOLVE() (r_type, not reloc->r_type).
6626 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6628 * elf/dl-object.c: Avoid allocating extra memory block for name.
6629 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
6630 allocated separately.
6631 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6633 2001-09-08 H.J. Lu <hjl@gnu.org>
6635 * po/zh_TW.po: Fix a typo.
6637 2001-09-07 Tom Rix <trix@redhat.com>
6639 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
6641 2001-08-26 Tom Rix <trix@redhat.com>
6643 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
6644 command line options.
6645 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
6646 * sysdeps/unix/sysv/aix/start.c: Removed.
6647 * sysdeps/unix/sysv/aix/start-libc.c: New file.
6648 * sysdeps/unix/sysv/aix/init-first.c: New file.
6649 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
6651 2001-09-08 Ben Collins <bcollins@debian.org>
6653 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
6654 * sysdeps/generic/dl-machine.h: Likewise.
6655 * sysdeps/hppa/dl-fptr.c: Likewise.
6656 * sysdeps/ia64/dl-fptr.c: Likewise.
6657 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6658 * sysdeps/mips/dl-machine.h: Likewise.
6659 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6660 * sysdeps/powerpc/dl-machine.c: Likewise.
6662 2001-09-07 Ben Collins <bcollins@debian.org>
6664 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
6666 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
6668 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6670 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
6671 dependencies if necessary.
6673 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
6674 loaded directly) determine length if l_initfini list by iterating
6675 over its elements. Minor optimizations.
6676 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
6677 for dependency objects.
6678 If object was already loaded check whether any of the dependencies
6679 is already on the relocation dependency list. If yes, remove the
6680 latter. Minor optimizations.
6681 * elf/dl-lookup.c (add_dependency): Add check for self reference of
6682 maps here. Search l_initfini list only if the object was loaded
6683 directly and not only as a dependency.
6684 (_dl_lookup_symbol): Add relocation dependency also if object
6685 is not in global scope. Remove test for self-reference here.
6686 (_dl_lookup_versioned_symbol): Likewise.
6687 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
6688 element of first name record.
6689 * elf/loadtest.c: Add some more test to recognize early if an object
6691 * elf/Makefile: Add rules to build and run reldep5.
6692 * elf/reldep5.c: New file.
6693 * elf/reldepmod5.c: New file.
6694 * elf/reldepmod6.c: New file.
6696 * elf/reldep2.c: Fix typo.
6698 2001-09-07 Ulrich Drepper <drepper@redhat.com>
6700 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
6701 elements. Change l_scope to be a pointer only.
6702 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
6703 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
6704 here add searchlist of newly open file to the dependency's scope.
6705 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
6706 only searchlist from its scope. Free own scope array if necessary.
6707 * elf/Makefile (tests): Add dblload and dblunload now.
6709 2001-09-06 Andreas Jaeger <aj@suse.de>
6711 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
6714 2001-09-05 Ulrich Drepper <drepper@redhat.com>
6716 * elf/Makefile: Add rules to build new tests. Don't run them yet since
6718 * elf/dblload.c: New file.
6719 * elf/dblloadmod1.c: New file.
6720 * elf/dblloadmod2.c: New file.
6721 * elf/dblloadmod3.c: New file.
6722 * elf/dblunload.c: New file.
6724 2001-09-04 Richard Henderson <rth@redhat.com>
6726 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
6727 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
6729 2001-09-04 Ulrich Drepper <drepper@redhat.com>
6731 Correct very misleading message for error in failed runtime relocation.
6732 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
6734 (_dl_signal_cerror): Likewise.
6735 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6736 * elf/dl-close.c: Likewise.
6737 * elf/dl-deps.c: Likewise.
6738 * elf/dl-load.c: Likewise.
6739 * elf/dl-lookup.c: Likewise.
6740 * elf/dl-open.c: Likewise.
6741 * elf/dl-reloc.c: Likewise.
6742 * elf/dl-sym.c: Likewise.
6743 * elf/dl-version.c: Likewise.
6744 * sysdeps/generic/dl-sysdep.c: Likewise.
6746 2001-09-04 Jakub Jelinek <jakub@redhat.com>
6748 * iconv/strtab.c (strtabinit): Initialize null Strent.
6749 (newstring): Move len == 0 handling...
6750 (strtabadd): ...here.
6751 If len == 1, return null Strent.
6752 When inserting a suffix of an existing string, check if
6753 it is not equal to some suffix already recorded.
6754 Copy left and right members over if adding longer string.
6756 2001-09-04 Jakub Jelinek <jakub@redhat.com>
6758 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
6760 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
6761 (__syscall_gethostname): Add prototype.
6763 2001-09-04 Ulrich Drepper <drepper@redhat.com>
6765 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
6767 2001-09-02 Ulrich Drepper <drepper@redhat.com>
6769 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
6771 2001-08-27 Roland McGrath <roland@frob.com>
6773 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
6774 short, copy that much into NAME anyway before returning error.
6776 2001-09-01 Richard Henderson <rth@redhat.com>
6778 * sysdeps/alpha/elf/Dist: Remove file.
6779 * sysdeps/alpha/elf/Makefile: Remove file.
6780 * sysdeps/alpha/elf/crtbegin.S: Remove file.
6781 * sysdeps/alpha/elf/crtend.S: Remove file.
6782 * sysdeps/alpha/elf/initfini.c: New file.
6784 2001-09-01 Mark Kettenis <kettenis@gnu.org>
6786 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
6787 * iconv/tst-iconv3.c: Likewise.
6789 2001-09-01 Jakub Jelinek <jakub@redhat.com>
6791 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
6793 2001-09-01 Ulrich Drepper <drepper@redhat.com>
6795 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
6797 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
6798 * iconv/iconv_prog.c (insert_cache): New function.
6799 (print_known_names): If cache is used call insert_cache to use the
6800 information from the cache [PR libc/2509].
6802 2001-08-31 Ulrich Drepper <drepper@redhat.com>
6804 * time/strptime.c (strptime_internal): Recognize 'l' format and
6805 handle it like 'I' for symmetry with strftime.
6807 2001-08-31 Richard Henderson <rth@redhat.com>
6809 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
6810 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
6811 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
6812 (print_statistics): Make scalar unsigned long long.
6813 * sysdeps/alpha/hp-timing.h: New file.
6815 2001-08-31 Jakub Jelinek <jakub@redhat.com>
6817 * stdio-common/perror.c (perror): Save errno early, pass it
6818 down to perror_internal.
6819 (perror_internal): Add errnum argument.
6821 2001-08-31 Jakub Jelinek <jakub@redhat.com>
6823 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
6824 Don't add old memory content for R_ALPHA_REFQUAD.
6826 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6828 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
6831 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
6832 instead of open, __close instead of close, __getpagesize instead
6835 * string/argz-stringify.c (__argz_stringify): Use __strnlen
6837 * include/string.h (strndupa): Redefine here to use __strnlen
6839 * string/strndup.c (__strndup): Use __strnlen not strnlen.
6841 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
6844 2001-08-30 Jakub Jelinek <jakub@redhat.com>
6846 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
6847 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
6848 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
6849 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
6850 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
6851 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
6852 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
6854 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6856 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
6858 2001-08-30 Andreas Jaeger <aj@suse.de>
6860 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
6861 contributed Stephen L Moshier.
6863 2001-08-30 Jakub Jelinek <jakub@redhat.com>
6865 * sunrpc/etc.rpc (sgi_fam): Add.
6867 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6869 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
6871 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6873 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
6874 first is from a previous call.
6875 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
6877 2001-08-29 Andreas Schwab <schwab@suse.de>
6879 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
6881 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6883 * config.make.in (INSTALL_SCRIPT): Define.
6884 * Makeconfig (INSTALL_SCRIPT): Define.
6885 * Makerules (do-install-script): New macro to install scripts using
6887 (install-bin-script): New rule to install scripts with
6889 (install-bin-script-nosubdir): New rule.
6890 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
6891 (distinfo-vars): Add $(install-bin-script).
6892 * Rules (others): Likewise.
6893 * Makefile (glibcbug): Install with install-bin-script.
6894 * debug/Makefile (xtrace): Likewise.
6895 (catchsegv): Likewise.
6896 * elf/Makefile (ldd): Likewise.
6897 * malloc/Makefile (mtrace): Likewise.
6898 * timezone/Makefile (tzselect): Likewise.
6900 2001-08-29 H.J. Lu <hjl@gnu.org>
6902 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
6903 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
6904 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
6906 2001-08-29 Andreas Schwab <schwab@suse.de>
6908 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
6910 2001-08-28 H.J. Lu <hjl@gnu.org>
6912 * Makeconfig (combreloc-LDFLAGS): New variable.
6913 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
6914 * config.make.in (have-z-combreloc): New variable.
6915 * configure.in: Substitute libc_cv_z_combreloc.
6917 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6919 * po/sv.po: Update from translation team.
6920 * po/fr.po: Likewise.
6921 * po/da.po: Likewise.
6923 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6925 * Makerules: Fix a typo: MD% -> MD5.
6927 2001-08-28 Ulrich Drepper <drepper@redhat.com>
6929 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
6930 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
6932 2001-08-28 Andreas Jaeger <aj@suse.de>
6934 * manual/libc-texinfo.sh: Add entry about free manuals.
6936 * manual/contrib.texi (Contributors): Fix cross reference.
6938 * manual/libc.texinfo (Copying): Include freemanuals.
6940 * manual/Makefile (appendices): Add freemanuals.
6942 * manual/freemanuals.texi: New file.
6943 Patch by Brian Youmans <3diff@gnu.org>.
6945 * manual/libm-err-tab.pl: Pretty print more platforms, print a
6948 * manual/math.texi (Errors in Math Functions): Fix grammar, start
6949 table on separate page.
6950 Patch by Brian Youmans <3diff@gnu.org>.
6952 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6954 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
6955 the connection went down after we first used it try to connect
6956 again and resend the message before printing to the console.
6957 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
6959 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6961 * string/tst-strlen.c (main): Test strnlen (, -1) too.
6962 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
6965 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6967 * iconv/strtab.c (searchstring): Use correct length for comparison.
6968 (strtabadd): Account total size correct if new string has old string as
6971 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6973 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
6975 2001-08-27 Andreas Jaeger <aj@suse.de>
6977 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
6979 * math/libm-test.inc (j0_test): Add extra tests.
6980 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
6981 not x, in Hankel approximation.
6982 Patches by Stephen L Moshier.
6984 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6986 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
6989 * configure.in: Fix test for .rela.dyn section.
6991 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
6993 2001-08-26 Jakub Jelinek <jakub@redhat.com>
6995 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
6996 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
6997 Pass type_class to _dl_lookup_*.
6998 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
6999 Pass around just type_class instead of noexec, noplt pair.
7000 (_dl_lookup_versioned_symbol): Likewise.
7001 (_dl_lookup_symbol_skip): Pass around just type_class instead of
7003 (_dl_lookup_versioned_symbol_skip): Likewise.
7004 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
7005 * elf/do-lookup.h (do_lookup): Likewise.
7006 * include/link.h (struct link_map): Replace noexec and noplt fields
7007 in l_lookup_cache with type_class field.
7008 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
7009 ELF_RTYPE_CLASS_COPY): Define.
7010 Adjust prototypes for _dl_lookup_symbol and
7011 _dl_lookup_versioned_symbol.
7012 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
7013 elf_machine_lookup_noexec_p): Remove.
7014 (elf_machine_type_class): Define.
7015 * sysdeps/arm/dl-machine.h: Likewise.
7016 * sysdeps/hppa/dl-machine.h: Likewise.
7017 * sysdeps/cris/dl-machine.h: Likewise.
7018 * sysdeps/i386/dl-machine.h: Likewise.
7019 * sysdeps/ia64/dl-machine.h: Likewise.
7020 * sysdeps/m68k/dl-machine.h: Likewise.
7021 * sysdeps/mips/mips64/dl-machine.h: Likewise.
7022 * sysdeps/mips/dl-machine.h: Likewise.
7023 * sysdeps/powerpc/dl-machine.h: Likewise.
7024 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7025 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7026 * sysdeps/sh/dl-machine.h: Likewise.
7027 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7028 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7030 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7032 * manual/message.texi (Advanced gettext functions): Change
7033 description of plural forms for Slovak.
7034 Reported by Marcel Telka <marcel@telka.sk>.
7036 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
7037 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7039 2001-08-26 Jakub Jelinek <jakub@redhat.com>
7041 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7042 typo. Patch by Florian La Roche <laroche@redhat.com>.
7044 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7046 * include/link.h (struct link_map): Add l_lookup_cache element.
7047 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7048 (RESOLVE_MAP): Likewise.
7049 (_dl_relocate_object): Remove cache initialization.
7050 * elf/dl-lookup.c: Rip out cache handling code.
7051 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7054 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7055 remove some __builtin_expect.
7056 (_dl_lookup_versioned_symbol): Likewise.
7058 * config.h.in: Add HAVE_Z_COMBRELOC.
7059 * configure.in: Add test for -z combreloc.
7061 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7062 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
7063 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
7064 case to almost no code.
7066 2001-08-25 Ulrich Drepper <drepper@redhat.com>
7068 * po/tr.po: Update from translation team.
7070 2001-08-24 Andreas Jaeger <aj@suse.de>
7072 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7075 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7077 * elf/rtld.c (print_statistics): Printf % after percent values.
7078 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7080 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7081 don't have to compute the hash value and initialize current_value.
7082 Move reference_name variable to where it is needed.
7083 (_dl_lookup_versioned_symbol): Likewise.
7085 2001-08-24 Roland McGrath <roland@frob.com>
7087 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7088 Just test that strerror returns non-null for a few errno codes.
7090 2001-08-23 Roland McGrath <roland@frob.com>
7092 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7093 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7095 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7097 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7100 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7102 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7105 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7106 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7108 * elf/rtld.c: Include <sys/param.h>.
7109 * elf/dl-reloc.c: Likewise.
7111 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7113 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7114 empty to prevent junk from being generated.
7115 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7117 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7119 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7120 records. Rename endrel to relative, initialize it to r, and use it
7121 in elf_machine_rel_relative calls. Point r after relative relocs.
7123 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7125 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7128 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7130 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7131 necessary. Undefine newly defined macros at the end.
7132 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7133 Rename from elf_machine_rel_relative.
7134 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7135 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7136 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7137 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7139 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7141 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7143 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7145 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7146 Likewise. Fix argument types.
7147 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7148 Likewise. Fix argument types.
7149 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7151 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7152 ElfW(Rel) in argument.
7153 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7156 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
7158 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7160 2001-08-24 Andreas Jaeger <aj@suse.de>
7162 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7163 Stephen L Moshier <moshier@mediaone.net>.
7165 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7167 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7168 first if RELCOUNT is set.
7170 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7171 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7172 elf_machine_rel_relative.
7173 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7174 Minor optimizations.
7175 * sysdeps/arm/dl-machine.h: Likewise.
7176 * sysdeps/cris/dl-machine.h: Likewise.
7177 * sysdeps/hppa/dl-machine.h: Likewise.
7178 * sysdeps/i386/dl-machine.h: Likewise.
7179 * sysdeps/ia64/dl-machine.h: Likewise.
7180 * sysdeps/m68k/dl-machine.h: Likewise.
7181 * sysdeps/mips/dl-machine.h: Likewise.
7182 * sysdeps/powerpc/dl-machine.h: Likewise.
7183 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7184 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7185 * sysdeps/sh/dl-machine.h: Likewise.
7186 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7187 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7189 2001-08-23 Roland McGrath <roland@frob.com>
7191 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7193 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7194 sysdeps/mach version. Implement counting ("recursive") mutexes
7195 on top of cthreads mutexes.
7196 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7198 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7199 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7200 (__libc_cleanup_region_start, __libc_cleanup_region_end,
7201 __libc_clean_end): Define these to call the cleanup function after
7202 normal exit when they're supposed to.
7204 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7205 Take new first arg DOIT, a boolean saying whether to really install
7206 any cleanup handler.
7207 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7208 (__libc_cleanup_end): Likewise.
7209 * sysdeps/generic/bits/libc-lock.h: Same changes.
7210 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7211 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7212 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7214 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7215 * sysdeps/generic/bits/stdio-lock.h
7216 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7218 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7220 * elf/ldconfig.c (search_dir): Remove stale symlinks.
7222 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7224 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7225 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7227 (_dl_lookup_versioned_symbol): Likewise.
7228 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7230 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7231 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7232 (lookup_cache, lookup_cache_versioned): Add declarations.
7234 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7236 * stdlib/tst-random.c (main): Swap parameters in fail call.
7237 Patch by Pete Bevin <pete@petebevin.com>.
7239 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7241 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7243 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7245 * malloc/obstack.c: Indent preprocessor directives.
7246 Patch by Jim Meyering <meyering@ascend.com>.
7248 * po/ja.po: Update from translation team.
7250 2001-08-23 Roland McGrath <roland@frob.com>
7252 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
7254 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
7255 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
7257 2001-08-22 Roland McGrath <roland@frob.com>
7259 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
7260 __libc_lock_define_recursive.
7261 * elf/dl-open.c: Don't declare it here any more.
7262 * elf/dl-close.c: Likewise.
7263 * elf/dl-lookup.c: Likewise.
7264 * elf/dl-iteratephdr.c: Likewise.
7265 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
7266 __libc_lock_unlock_recursive.
7267 * elf/dl-close.c (_dl_close): Likewise
7268 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
7269 * elf/dl-open.c (_dl_open): Likewise
7271 * sysdeps/generic/bits/libc-lock.h
7272 (__libc_lock_define_recursive): New macro.
7273 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
7274 (_IO_lock_lock): Use __libc_lock_lock_recursive.
7275 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
7277 * conform/conformtest.pl (checknamespace): Sort the output list.
7279 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
7280 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
7281 definitions conditional on [__USE_XOPEN].
7283 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
7284 these unconditionally, not only use [__USE_BSD], so as to match
7285 the sysdeps/unix/sysv/linux files.
7287 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7289 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
7292 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
7295 2001-08-22 Roland McGrath <roland@frob.com>
7297 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
7298 conditionalization of sa_handler/sa_sigaction member types to
7299 match the sysdeps/unix/sysv/linux file.
7301 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7303 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
7304 symbol sizes a bit better.
7306 * sysdeps/ia64/strncpy.S: Complete rewrite.
7307 Contributed by Jakub Jelinek <jakub@redhat.com>.
7309 * string/stratcliff.c (main): Add strncpy test.
7311 2001-08-22 Roland McGrath <roland@frob.com>
7313 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
7314 and don't declare unsetenv or _environ directly.
7315 (unsetenv): Return int, not void. Use __environ instead of _environ.
7317 2001-08-01 Mark Kettenis <kettenis@gnu.org>
7319 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
7320 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
7321 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
7322 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7323 test for cmsg struct size.
7325 2001-04-23 Paul Eggert <eggert@twinsun.com>
7327 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
7328 Rename __argc to ___argc in prototypes to avoid compatibility
7329 problems with systems that reserve the identifier "__argc".
7330 Similarly for __argv.
7332 2001-08-21 Roland McGrath <roland@frob.com>
7334 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
7336 * mach/Makefile (tests): Removed.
7337 * mach/hello.c: File removed.
7339 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7341 * po/sv.po: Update from translation team.
7343 * stdio-common/vfscanf.c: Fix handling of %l[].
7344 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
7346 * libio/Makefile (tests): Add tst-sscanf.
7347 * libio/tst-sscanf.c: New file.
7349 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
7350 * malloc/mtrace.c (tr_where): dli_sname always points to a
7351 non-empty string if != NULL.
7352 Reported by Tim Janik <timj@gtk.org>.
7354 2001-08-22 Jakub Jelinek <jakub@redhat.com>
7356 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
7357 buf. Free resources on failure.
7358 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
7359 (makefd_xprt): Likewise.
7360 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7361 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
7362 * sunrpc/auth_unix.c (authunix_create): Likewise.
7364 2001-08-21 Jakub Jelinek <jakub@redhat.com>
7366 * string/strnlen.c: Remove.
7367 * sysdeps/generic/strnlen.c: New file.
7368 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
7370 2001-08-21 Roland McGrath <roland@frob.com>
7372 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
7373 as a macro, not an extern inline function.
7375 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
7376 * Versions.def (libc): Add GLIBC_2.2.5 set.
7377 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
7378 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
7380 2001-08-20 Roland McGrath <roland@frob.com>
7382 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
7383 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
7385 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7387 * string/bits/string2.h: Remove strnlen optimization here.
7388 * sysdeps/i386/i486/bits/string.h: Add it here.
7390 2001-08-21 Wolfram Gloger <wg@malloc.de>
7392 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
7394 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7396 * po/gl.po: Update from translation team.
7398 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7400 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
7401 * misc/err.c (convert_and_print): Likewise.
7403 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
7406 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7408 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
7409 change of the gregset_t type.
7410 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7412 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
7414 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
7416 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7418 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
7420 * string/strnlen.c: Fix the implementation. We cannot use memchr.
7422 2001-08-18 Mark Kettenis <kettenis@gnu.org>
7424 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
7425 before calling the cthreads initialization code.
7427 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7429 * argp/argp-help.c: Fix two problems introduced in last change.
7431 * include/dirent.h: Include <dirstream.h> first.
7433 2001-08-19 Ulrich Drepper <drepper@redhat.com>
7435 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
7437 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
7438 * sunrpc/xdr_rec.c: Likewise.
7439 * sunrpc/xdr_mem.c: Likewise.
7440 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
7441 * sunrpc/rpc_cmsg.c: Likewise.
7442 * sunrpc/getrpcport.c (getrpcport): Likewise.
7443 * sunrpc/clnt_simp.c (callrpc): Likewise.
7444 * sunrpc/clnt_gen.c (clnt_create): Likewise.
7445 * string/envz.c: Likewise.
7447 * po/ko.po: Update from translation team.
7449 * argp/argp-help.c: Handle wide oriented stderr stream.
7451 2001-08-18 Ulrich Drepper <drepper@redhat.com>
7453 * sysdeps/generic/strtol.c: Little optimizations. Add some
7456 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
7458 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
7459 * wcsmbs/wcwidth.c (wcwdith): Likewise.
7460 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
7462 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
7464 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
7466 * time/time.h (struct timespec): Use __time_t for tv_sec element.
7468 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
7469 wchar_t for function declarations and defintions.
7471 * misc/sys/select.h: Define __need_time_t before including <time.h>.
7472 Define suseconds_t if it hasn't happened yet.
7474 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
7476 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
7478 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
7481 * conform/data/stddef.h-data: Remove wint_t.
7483 * conform/conformtest.pl: Change namespace test to take #undef
7486 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
7488 * conform/data/sys/socket.h-data: Add sockatmark.
7490 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7492 * io/fts.c: Update from recent BSD source.
7494 2001-08-17 Roland McGrath <roland@frob.com>
7496 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
7497 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
7500 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7502 * locale/duplocale.c (__duplocale): Also initialize the special
7505 * conform/data/netdb.h-data: Adjust gai_strerror return type.
7507 2001-08-17 Andreas Jaeger <aj@suse.de>
7509 * misc/getpass.c: Include wchar.h for prototypes.
7510 * malloc/obstack.c: Likewise.
7512 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7514 * sunrpc/svc_simple.c (universal): Use __write instead of write.
7516 * wcsmbs/wcscoll.c: Also define __wcscoll.
7517 * include/wchar.h: Declare __wcscoll.
7519 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
7520 * libio/vwprintf.c: Likewise.
7521 * libio/wprintf.c: Likewise.
7523 * iconv/gconv_cache.c: Use __munmap instead of munmap.
7525 2001-08-16 Ulrich Drepper <drepper@redhat.com>
7527 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
7529 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
7530 wcslen, and __wcscoll instead of wcscoll.
7532 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
7534 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
7535 __getuid instead of getuid.
7537 * stdio-common/perror.c (perror): Use __close instead of close.
7538 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7539 * libio/freopen.c (freopen): Likewise.
7540 * libio/freopen64.c (freopen64): Likewise.
7542 * libio/tst-ungetwc2.c (main): Define str const.
7544 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
7545 * libio/fwprintf.c: Also define __fwprintf.
7546 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
7547 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
7548 * assert/assert-perr.c: Likewise.
7549 * assert/assert.c: Likewise.
7550 * gmon/gmon.c: Likewise.
7551 * inet/rcmd.c: Likewise.
7552 * malloc/obstack.c: Likewise.
7553 * misc/err.c: Likewise.
7554 * misc/error.c: Likewise.
7555 * misc/getpass.c: Likewise.
7556 * posix/getopt.c: Likewise.
7557 * resolv/res_hconf.c: Likewise.
7558 * stdio-common/perror.c: Likewise.
7559 * stdio-common/psignal.c: Likewise.
7560 * stdlib/fmtmsg.c: Likewise.
7561 * sunrpc/auth_unix.c: Likewise.
7562 * sunrpc/clnt_perr.c: Likewise.
7563 * sunrpc/clnt_tcp.c: Likewise.
7564 * sunrpc/clnt_udp.c: Likewise.
7565 * sunrpc/clnt_unix.c: Likewise.
7566 * sunrpc/svc_simple.c: Likewise.
7567 * sunrpc/svc_tcp.c: Likewise.
7568 * sunrpc/svc_udp.c: Likewise.
7569 * sunrpc/svc_unix.c: Likewise.
7570 * sunrpc/xdr.c: Likewise.
7571 * sunrpc/xdr_array.c: Likewise.
7572 * sunrpc/xdr_rec.c: Likewise.
7573 * sunrpc/xdr_ref.c: Likewise.
7574 * sysdeps/generic/wordexp.c: Likewise.
7576 * po/it.po: Update from translation team.
7578 * misc/err.c: Handle wide oriented stderr stream.
7580 2001-08-14 Tom Rix <trix@redhat.com>
7582 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
7583 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
7585 2001-08-13 Tom Rix <trix@redhat.com>
7587 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
7588 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
7591 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
7593 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
7594 Store the access registers to the ucontext structure.
7595 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
7598 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
7599 Load the access registers from the ucontext structure.
7600 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
7603 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
7604 offsets to the new ucontext layout.
7605 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
7607 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
7608 of the ucontext structure.
7609 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7611 2001-08-15 Ulrich Drepper <drepper@redhat.com>
7613 * misc/error.c (error): Handle wide oriented stderr stream correctly.
7614 (error_at_line): Likewise.
7616 * stdio-common/perror.c (perror): Implement according to standard.
7617 The stream orientation must not be changed if the stream was not
7618 oriented before the call.
7619 * stdio-common/Makefile (tests): Add tst-perror.
7620 * stdio-common/tst-perror.c: New file.
7623 See ChangeLog.12 for earlier changes.