1 2002-06-13 Roland McGrath <roland@frob.com>
3 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
4 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5 Use intptr_t instead of int for argc in stack layout.
6 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
7 (_dl_init_first): Likewise.
8 (_hurd_stack_setup): Likewise.
10 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
12 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
13 argument to pfinet_siocgifconf RPC.
15 2002-06-13 Andreas Schwab <schwab@suse.de>
17 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
20 2002-06-12 Roland McGrath <roland@frob.com>
22 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
24 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
25 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
27 2002-06-11 Roland McGrath <roland@frob.com>
29 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
30 file on [!RTLD_STAT64].
31 * sysdeps/mach/hurd/fxstat64.c: Likewise.
33 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
34 (__fdopen): Use INTUSE.
35 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
37 * stdio-common/tmpfile64.c: File removed.
38 * sysdeps/generic/tmpfile64.c: New file.
39 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
40 if not already defined.
41 (tmpfile): Use it in place of __GT_FILE.
43 * include/unistd.h: Declare __chown_internal.
45 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
46 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
48 2002-06-09 Roland McGrath <roland@frob.com>
50 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
51 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
52 value of HURD_INTERFACE_VERSION >= 20020609.
53 * sysdeps/mach/hurd/configure: Regenerated.
54 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
55 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
56 convert a struct stat64 into a struct stat and return 0 or -1
57 with errno set to EOVERFLOW.
58 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
59 for struct statfs64 to struct statfs.
60 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
61 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
62 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
63 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
64 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
65 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
66 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
67 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
68 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
69 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
70 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
71 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
72 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
73 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
74 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
75 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
76 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
77 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
78 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
79 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
80 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
81 Use struct stat64 for io_stat argument.
82 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
83 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
85 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
86 * hurd/fd-write.c (_hurd_fd_write): Likewise.
87 * hurd/hurd/fd.h: Update decls.
88 * sysdeps/mach/hurd/getcwd.c
89 (_hurd_canonicalize_directory_name_internal): Use ino64_t
91 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
92 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
93 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
94 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
96 2002-06-08 Roland McGrath <roland@frob.com>
98 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
99 instead of unsigned long int for __allocation and __size members.
101 2002-06-09 Jakub Jelinek <jakub@redhat.com>
103 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
104 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
105 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
106 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
108 2002-06-07 Roland McGrath <roland@frob.com>
110 * sysdeps/mach/hurd/bits/environments.h: File removed.
112 2002-06-07 Jakub Jelinek <jakub@redhat.com>
114 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New.
115 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New.
116 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New.
117 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New.
118 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
119 (sendfile64): Likewise.
120 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
121 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
122 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
124 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
126 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
129 2002-06-04 Bruno Haible <bruno@clisp.org>
131 * sysdeps/cris/stackinfo.h: New file.
133 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
134 to an integer type before performing bit operations on it.
136 2002-06-05 Roland McGrath <roland@frob.com>
138 * sysdeps/generic/sendfile.c: Include <errno.h>.
139 * sysdeps/generic/sendfile64.c: Likewise.
141 * io/Makefile (routines): Add sendfile and sendfile64.
142 (headers): Add sys/sendfile.h to the list.
143 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
144 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
145 * io/sys/sendfile.h: ... here.
146 * sysdeps/generic/sendfile.c: New file.
147 * sysdeps/generic/sendfile64.c: New file.
149 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
150 Move sendfile, sendfile64 to ...
151 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
152 * sysdeps/mach/hurd/sendfile.c: New file.
153 * sysdeps/mach/hurd/sendfile64.c: New file.
155 * sysdeps/mach/nanosleep.c: New file.
157 2002-06-04 Roland McGrath <roland@frob.com>
159 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
160 * sysdeps/alpha/elf/configure: New file (generated).
162 2002-06-02 Roland McGrath <roland@frob.com>
164 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
166 2002-06-01 Roland McGrath <roland@frob.com>
168 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
169 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
171 2002-05-19 Ulrich Drepper <drepper@redhat.com>
173 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
175 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
176 Remove nstimes setting.
177 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
178 * resolv/res_send.c (res_nsend): Don't close unconditionally if
179 there is mix of IPv6 and IPv4 nameservers.
180 Use nsmap array to find free slots and preserve nameserver ordering.
183 2002-05-30 Ulrich Drepper <drepper@redhat.com>
185 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
186 use this header with LFS.
188 * po/sk.po: Update from translation team.
190 2002-05-28 Andreas Schwab <schwab@suse.de>
192 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
193 message when finding object of wrong class.
195 2002-05-28 Jakub Jelinek <jakub@redhat.com>
197 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
198 Patch by <radu@netsoft.ro>.
200 2002-05-30 Ulrich Drepper <drepper@redhat.com>
202 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
204 * sysdeps/unix/sysv/linux/readahead.c: New file.
205 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
206 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
207 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
208 Add sendfile64 alias to sendfile syscall.
209 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
210 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
211 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
212 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
215 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
216 special section for PIC register loading.
217 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
219 * config.h.in: Define HAVE_HIDDEN.
220 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
222 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
224 2002-05-28 Roland McGrath <roland@frob.com>
226 * sysdeps/mach/alpha/setfpucw.c: New file.
228 2002-05-26 Roland McGrath <roland@frob.com>
230 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
231 Use integer_t instead of int for IOC_VOID case.
233 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
235 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
237 2002-05-26 Bruno Haible <bruno@clisp.org>
239 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
240 end of the ISO-8859-7 from idx table.
242 2002-05-27 Ulrich Drepper <drepper@redhat.com>
244 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
246 2002-05-24 David S. Miller <davem@redhat.com>
248 * string/bits/string2.h (memset): Do not try to optimize when
249 not _STRING_ARCH_unaligned if GCC will do the right thing.
251 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
253 * posix/regex.c: Define `inline' as a macro into nothing for the
254 compilers which lack the keyword.
255 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
256 for the compatibility of gawk.
257 * posix/regcomp.c: Add fake implementation of isblank() for the
258 environments which lack the function.
259 Don't use free_charset() in case of non-i18n envs.
260 (build_range_exp): Don't use i18n related code in case of non-i18n
262 (build_collating_symbol): Likewise.
263 (build_equiv_class): Likewise.
264 (build_charclass): Likewise.
265 (re_compile_fastmap_iter): Likewise.
266 (parse_bracket_exp): Likewise.
267 (build_word_op): Likewise.
268 (regfree): Don't use free_charset() in case of non-i18n envs.
269 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
270 re_token_type_t in case of non-i18n envs.
271 Don't define re_charset_t in case of non-i18n envs.
272 Change the type of wcs of re_string_t from wchar_t to wint_t,
273 since we store also WEOF.
274 * posix/regex_internal.c: (re_string_realloc_buffers): Change
275 the type of wcs of re_string_t from wchar_t to wint_t.
276 (re_string_reconstruct): Likewise.
277 (create_ci_newstate): Don't use i18n related code in case of
279 (create_cd_newstate): Likewise.
281 2002-05-24 Ulrich Drepper <drepper@redhat.com>
283 * iconv/loop.c: Fix typo.
285 2002-05-23 Jakub Jelinek <jakub@redhat.com>
287 * inet/ether_line.c (ether_line): Fix a typo causing only
288 lower 4 bits of each ethernet address byte being assigned.
289 Don't modify what line points to.
290 * inet/tst-ether_aton.c (main): Add ether_line tests.
292 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
294 * manual/filesys.texi: Don't make readlink example leak memory
297 2002-05-20 Ulrich Drepper <drepper@redhat.com>
299 * iconv/loop.c: Fix condition for defining unaligned loop. Add
300 some more security checks.
302 2002-05-17 David S. Miller <davem@redhat.com>
304 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
306 2002-05-16 David S. Miller <davem@redhat.com>
308 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
309 (elf_machine_dynamic): Use it to force PIC register to be loaded.
310 (elf_machine_load_address): Likewise.
311 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
313 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
314 is unaligned, do not forget to fully initialize %g1 magic value.
316 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
317 register definitions and provide 32-bit variants of structures
318 during 64-bit builds.
320 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
321 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
322 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
323 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
324 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
325 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
326 Do not clear implicit one bit here, it must be done post-rounding.
327 Only pad to the left using left shift if value uses less than the
328 available fractional bits.
330 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
332 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
333 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
334 (shared-only-routines): Likewise.
335 * sysdeps/powerpc/libgcc-compat.c: New file.
336 * sysdeps/wordsize-32/cmpdi2.c: Removed.
337 * sysdeps/wordsize-32/fixdfdi.c: Removed.
338 * sysdeps/wordsize-32/fixsfdi.c: Removed.
339 * sysdeps/wordsize-32/shdi3.c: Removed.
341 2002-05-16 Bruno Haible <bruno@clisp.org>
343 * MakeTAGS (libc.pot): Don't sort the output.
344 * po/header.pot: Update to match xgettext 0.11 output.
346 2002-05-16 Bruno Haible <bruno@clisp.org>
348 * MakeTAGS (subdirs): Remove duplicates.
350 2002-05-19 Ulrich Drepper <drepper@redhat.com>
352 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
353 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
356 2002-05-19 Andreas Jaeger <aj@suse.de>
358 * sysdeps/unix/sysv/linux/configure.in: Warn against an
359 installation in /usr/local.
361 2002-05-16 Bruno Haible <bruno@clisp.org>
363 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
364 string as argument of #error.
366 2002-05-15 Ulrich Drepper <drepper@redhat.com>
368 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
369 don't define static. Remove old __realpath function. TC1 of
370 POSIX 2001 will allow the second parameter to be NULL.
371 * stdlib/test-canon.c: Comment out test for NULL as second
372 parameter of realpath.
374 * time/offtime.c (__offtime): Set errno if overflow is detected.
376 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
377 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
380 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
383 2002-05-15 Roland McGrath <roland@frob.com>
385 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
387 2002-05-12 Bruno Haible <bruno@clisp.org>
389 * iconvdata/testdata/EUC-JISX0213: New file.
390 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
391 * iconvdata/testdata/SHIFT_JISX0213: New file.
392 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
393 * iconvdata/testdata/ISO-2022-JP-3: New file.
394 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
395 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
396 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
397 contains comments indicating precomposed characters.
399 2002-04-21 Bruno Haible <bruno@clisp.org>
401 * iconvdata/iso-2022-jp-3.c: New file.
402 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
403 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
404 (LDFLAGS-ISO-2022-JP-3.so): New variable.
405 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
406 (distribute): Add iso-2022-jp-3.c.
408 2002-05-12 Bruno Haible <bruno@clisp.org>
410 * iconvdata/tst-table-to.c (main): Restore handling of
411 transliterations, broken by last patch.
413 2002-05-12 Bruno Haible <bruno@clisp.org>
415 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
417 2002-05-12 Bruno Haible <bruno@clisp.org>
419 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
420 when there is not enough room in the output buffer.
421 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
423 2002-04-20 Bruno Haible <bruno@clisp.org>
425 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
427 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
428 Also make this macro work if FROM_DIRECTION evaluates to 0.
429 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
430 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
431 of consume_incomplete.
432 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
433 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
435 * iconvdata/cp1258.c: Likewise.
436 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
437 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
439 * iconvdata/ibm933.c: Likewise.
440 * iconvdata/ibm935.c: Likewise.
441 * iconvdata/ibm937.c: Likewise.
442 * iconvdata/ibm939.c: Likewise.
443 * iconvdata/iso-2022-cn.c: Define
444 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
445 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
446 * iconvdata/iso-2022-cn-ext.c: Likewise.
447 * iconvdata/iso-2022-jp.c: Define
448 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
449 {MIN,MAX}_NEEDED_{FROM,TO}.
450 * iconvdata/tcvn5712-1.c: Define
451 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
452 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
453 * iconvdata/euc-jisx0213.c: Define
454 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
455 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
456 * iconvdata/shift_jisx0213.c: Likewise.
458 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
460 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
461 shdi3, fixdfdi, fixsfdi in csu dir.
462 (shared-only-routines): Likewise.
463 * sysdeps/wordsize-32/cmpdi2.c: New file.
464 * sysdeps/wordsize-32/shdi3.c: New file.
465 * sysdeps/wordsize-32/fixdfdi.c: New file.
466 * sysdeps/wordsize-32/fixsfdi.c: New file.
467 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
468 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
469 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
471 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
472 Only use va_arg if the argument will be used [PR libc/3259].
474 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
476 * catgets/catgets.c (catopen): Free buffer if internal catalog
479 2002-05-14 Ulrich Drepper <drepper@redhat.com>
481 * debug/xtrace.sh: Make more robust. For realtime tracking use
482 non-buffering methods.
483 * debug/pcprofiledump.c: Implement -u option.
484 Patch by Roger Luethi <rl@hellgate.ch>.
486 2002-05-11 Jakub Jelinek <jakub@redhat.com>
488 * include/netinet/in.h (bindresvport_internal): Add prototype.
489 * include/rpc/auth.h (authunix_create_internal,
490 authunix_create_default_internal, authnone_create_internal,
491 authdes_pk_create_internal): Add prototypes.
492 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
493 clntudp_create_internal, clntudp_bufcreate_internal,
494 clntunix_create_internal): Add prototypes.
495 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
496 svc_getreq_internal, svc_getreq_common_internal,
497 svc_getreqset_internal, svc_getreq_poll_internal,
498 svc_register_internal, svc_unregister_internal,
499 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
500 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
501 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
502 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
503 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
504 * inet/rcmd.c (rcmd_af): Use __listen.
505 (rresvport_af): Use __bind.
506 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
507 authunix_create, authunix_create_default, authnone_create,
508 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
509 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
510 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
511 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
512 _authenticate, add INTDEF after such function definitions.
513 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
514 __setsockopt, __getsockname instead of non-__ variants.
515 * sunrpc/pmap_rmt.c: Likewise.
516 * sunrpc/rtime.c: Likewise.
517 * sunrpc/svc_udp.c: Likewise.
518 * sunrpc/clnt_unix.c: Likewise.
519 * sunrpc/svc_unix.c: Likewise.
520 * sunrpc/bindrsvprt.c: Likewise.
521 * sunrpc/svc_tcp.c: Likewise.
522 * sunrpc/auth_none.c: Likewise.
523 * sunrpc/clnt_raw.c: Likewise.
524 * sunrpc/clnt_tcp.c: Likewise.
525 * sunrpc/auth_unix.c: Likewise.
526 * sunrpc/key_call.c: Likewise.
527 * sunrpc/clnt_gen.c: Likewise.
528 * sunrpc/pm_getmaps.c: Likewise.
529 * sunrpc/clnt_simp.c: Likewise.
530 * sunrpc/pmap_clnt.c: Likewise.
531 * sunrpc/svc_run.c: Likewise.
532 * sunrpc/svc.c: Likewise.
533 * sunrpc/svc_simple.c: Likewise.
534 * sunrpc/pm_getport.c: Likewise.
535 * sunrpc/auth_des.c: Likewise.
536 * sunrpc/svc_auth.c: Likewise.
537 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
538 __register_frame_info_table_bases, __deregister_frame_info_bases):
540 (__register_frame_info_bases_internal,
541 __register_frame_info_table_bases_internal,
542 __deregister_frame_info_bases_internal): Add prototypes.
543 (__register_frame_info, __register_frame): Use INTUSE in call to
544 __register_frame_info_bases.
545 (__register_frame_info_table): Similarly.
546 (__deregister_frame_info, __deregister_frame): Similarly.
547 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
548 sendto as weak alias.
549 * sysdeps/mach/hurd/sendto.c: Likewise.
550 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
551 recvfrom as weak alias.
552 * sysdeps/mach/hurd/recvfrom.c: Likewise.
553 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
554 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
555 recvmsg as weak alias.
556 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
557 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
558 sendmsg as weak alias.
559 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
560 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
561 setsockopt, add setsockopt as weak alias.
562 * sysdeps/mach/hurd/setsockopt.c: Likewise.
563 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
565 * sysdeps/mach/hurd/bind.c: Likewise.
566 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
568 * sysdeps/mach/hurd/listen.c: Likewise.
569 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
570 getsockname, add getsockname as weak alias.
571 * sysdeps/mach/hurd/getsockname.c: Likewise.
572 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
573 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
574 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
575 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
576 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
577 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
579 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
580 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
581 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
582 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
583 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
584 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
585 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
586 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
587 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
588 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
589 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
590 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
592 2002-05-10 Jakub Jelinek <jakub@redhat.com>
594 * locale/programs/localedef.h (show_archive_content): Add verbose
596 * locale/programs/localedef.c (main): Adjust caller.
597 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
598 (nameentcmp, dataentcmp): New functions.
600 (show_archive_content): Print verbose listing with --list-archive -v.
602 2002-05-14 Ulrich Drepper <drepper@redhat.com>
604 * locale/programs/locarchive.c (open_archive): Take extra argument
605 readonly. If true open file with O_RDONLY and don't create the
606 archive if it doesn't exist.
608 (close_archive): Don't do anything if fd element is -1.
609 * locale/programs/localedef.h (open_archive): Adjust prototype.
610 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
613 * malloc/malloc.c (__posix_memalign): Correct check for size of
614 alignment value [PR libc/3444].
616 * include/stdio.h: Remove references to old stdio implementation.
618 * libio/Makefile (bug-ungetwc2-ENV): Define.
620 2002-05-13 Roland McGrath <roland@frob.com>
622 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
624 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
626 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
628 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
629 Allocate three, not two, more than LEN when appending '/.'.
630 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
631 if NAME ends with '/.' if it is shorter than 2 chars.
633 2002-05-12 Roland McGrath <roland@frob.com>
635 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
636 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
638 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
639 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
641 2002-05-10 Jakub Jelinek <jakub@redhat.com>
643 * sysdeps/ia64/Makefile: Remove extra endif.
644 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
646 2002-05-10 Andreas Schwab <schwab@suse.de>
648 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
650 2002-05-09 Andreas Jaeger <aj@suse.de>
652 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
653 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
654 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
656 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
657 * sysdeps/wordsize-64/glob.c: ...here.
658 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
659 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
660 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
662 2002-05-08 Roland McGrath <roland@frob.com>
664 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
665 O_NOTRANS flag in "." lookup.
667 2002-05-05 Ulrich Drepper <drepper@redhat.com>
669 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
671 2002-05-04 Ulrich Drepper <drepper@redhat.com>
673 * locale/duplocale.c (__duplocale): Update special members only
674 when allocation succeeded.
676 2002-05-03 Roland McGrath <roland@frob.com>
678 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
679 we can only build libc.so.0.3(GLIBC_2.2.6) now.
681 2002-05-02 Jakub Jelinek <jakub@redhat.com>
683 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
684 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
685 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
686 * sysdeps/ia64/ia64libgcc.S: New file.
688 2002-05-02 Ulrich Drepper <drepper@redhat.com>
690 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
692 * malloc/memusage.c: Distinguish anonymous mmap.
694 2002-05-01 Roland McGrath <roland@frob.com>
696 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
697 and use INTDEF on it.
698 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
700 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
702 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
704 2002-05-01 Ulrich Drepper <drepper@redhat.com>
706 * malloc/memusage.c: Add support for tracking mmap & friends.
707 * malloc/memusage.sh: Implement -m/--mmap option.
709 2002-04-30 Jakub Jelinek <jakub@redhat.com>
711 * locale/programs/locarchive.c (create_archive): Add archivefname
712 argument, create fname from it.
713 (enlarge_archive): Honour output_prefix.
714 (open_archive): Likewise.
716 2002-04-30 Jakub Jelinek <jakub@redhat.com>
718 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
719 too many stpcpy macros.
721 2002-04-26 Bruno Haible <bruno@clisp.org>
723 * locale/programs/ld-collate.c (collate_read): Cast first argument
726 2002-04-26 Bruno Haible <bruno@clisp.org>
728 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
729 __dcngettext_internal): New declarations.
730 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
731 attribute declarations.
733 2002-04-30 Roland McGrath <roland@frob.com>
735 Removed old GNU stdio implementation; GNU libio is now the only option.
736 * configure.in: Removed --enable-libio option and @stdio@ subst var.
737 Define USE_IN_LIBIO unconditionally.
738 * configure: Regenerated.
739 * Makeconfig (stdio): Set to libio by default.
740 * config.make.in (stdio): Variable removed.
741 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
742 * sysdeps/unix/sysv/linux/configure: Regenerated.
743 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
744 * sysdeps/mach/hurd/configure: Regenerated.
745 * stdio/.cvsignore: File removed.
746 * stdio/Makefile: File removed.
747 * stdio/Versions: File removed.
748 * stdio/__fbufsize.c: File removed.
749 * stdio/__flbf.c: File removed.
750 * stdio/__fpending.c: File removed.
751 * stdio/__fpurge.c: File removed.
752 * stdio/__freadable.c: File removed.
753 * stdio/__freading.c: File removed.
754 * stdio/__fsetlocking.c: File removed.
755 * stdio/__fwritable.c: File removed.
756 * stdio/__fwriting.c: File removed.
757 * stdio/clearerr.c: File removed.
758 * stdio/fclose.c: File removed.
759 * stdio/fcloseall.c: File removed.
760 * stdio/feof.c: File removed.
761 * stdio/ferror.c: File removed.
762 * stdio/fflush.c: File removed.
763 * stdio/fgetc.c: File removed.
764 * stdio/fgetpos.c: File removed.
765 * stdio/fgets.c: File removed.
766 * stdio/fileno.c: File removed.
767 * stdio/fmemopen.c: File removed.
768 * stdio/fopen.c: File removed.
769 * stdio/fopncook.c: File removed.
770 * stdio/fputc.c: File removed.
771 * stdio/fputs.c: File removed.
772 * stdio/fread.c: File removed.
773 * stdio/freopen.c: File removed.
774 * stdio/fseek.c: File removed.
775 * stdio/fsetpos.c: File removed.
776 * stdio/ftell.c: File removed.
777 * stdio/fwrite.c: File removed.
778 * stdio/getc.c: File removed.
779 * stdio/getchar.c: File removed.
780 * stdio/getdelim.c: File removed.
781 * stdio/gets.c: File removed.
782 * stdio/glue.c: File removed.
783 * stdio/internals.c: File removed.
784 * stdio/linewrap.c: File removed.
785 * stdio/linewrap.h: File removed.
786 * stdio/memstream.c: File removed.
787 * stdio/newstream.c: File removed.
788 * stdio/obstream.c: File removed.
789 * stdio/putc.c: File removed.
790 * stdio/putchar.c: File removed.
791 * stdio/puts.c: File removed.
792 * stdio/rewind.c: File removed.
793 * stdio/setbuf.c: File removed.
794 * stdio/setbuffer.c: File removed.
795 * stdio/setlinebuf.c: File removed.
796 * stdio/setvbuf.c: File removed.
797 * stdio/stdio.h: File removed.
798 * stdio/ungetc.c: File removed.
799 * stdio/vasprintf.c: File removed.
800 * stdio/vscanf.c: File removed.
801 * stdio/vsnprintf.c: File removed.
802 * stdio/vsprintf.c: File removed.
803 * stdio/vsscanf.c: File removed.
804 * sysdeps/generic/defs.c: File removed.
805 * sysdeps/generic/fdopen.c: File removed.
806 * sysdeps/generic/pipestream.c: File removed.
807 * sysdeps/generic/stdio_init.c: File removed.
808 * sysdeps/generic/sysd-stdio.c: File removed.
809 * sysdeps/generic/vdprintf.c: File removed.
810 * sysdeps/mach/hurd/defs.c: File removed.
811 * sysdeps/mach/hurd/fdopen.c: File removed.
812 * sysdeps/mach/hurd/pipestream.c: File removed.
813 * sysdeps/mach/hurd/stdio_init.c: File removed.
814 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
815 * sysdeps/mach/hurd/vdprintf.c: File removed.
816 * sysdeps/posix/defs.c: File removed.
817 * sysdeps/posix/fdopen.c: File removed.
818 * sysdeps/posix/pipestream.c: File removed.
819 * sysdeps/posix/stdio_init.c: File removed.
820 * sysdeps/posix/vdprintf.c: File removed.
821 * sysdeps/unix/pipestream.c: File removed.
822 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
823 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
824 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
826 2002-04-29 Roland McGrath <roland@frob.com>
828 * include/libc-symbols.h (link_warning): Use `unused' attribute.
830 2002-04-28 Ulrich Drepper <drepper@redhat.com>
832 * sysdeps/generic/tls.h: Describe what must be defined.
834 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
835 glob_in_dir [PR libc/3385].
836 * posix/globtest.sh: Add test case.
838 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
841 2002-04-27 Ulrich Drepper <drepper@redhat.com>
843 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
844 _internal symbol handling.
845 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
847 2002-04-26 Ulrich Drepper <drepper@redhat.com>
849 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
850 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
852 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
854 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
855 not _LIBC and RE_ENABLE_I18N.
856 (build_range_exp): Implement for not _LIBC.
857 (build_collating_symbol): Likewise.
858 (parse_bracket_exp): Unify redundant error handlings.
859 Don't erase mbcset for non matching list in multibyte envs.
860 (build_word_op): Add '_' to matching list for \w operator.
861 * posix/regex_internal.c (re_string_construct): Invoke
862 build_upper_buffer in case of not RE_ENABLE_I18N.
863 (re_string_reconstruct): Don't touch cur_state in case of not
865 * posix/regex_internal.h (attribute_hidden): New macro in case of
867 (re_charset_t): Define range_starts/ends in case of not _LIBC.
868 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
870 (transit_state_mb): Likewise.
871 (check_node_accept_bytes): Implement the code evaluating range
872 expression in case of not _LIBC.
873 (find_collation_sequence_value): Hide in case of not _LIBC.
875 2002-04-26 Jakub Jelinek <jakub@redhat.com>
877 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
879 (__old_semctl, __new_semctl): Only use va_arg if the argument will
882 2002-04-26 Ulrich Drepper <drepper@redhat.com>
884 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
886 * sysdeps/ia64/strncpy.S: Fix recovery code.
887 Patch by David Mosberger <davidm@hpl.hp.com>.
889 2002-04-24 Ulrich Drepper <drepper@redhat.com>
891 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
894 2002-04-14 Bruno Haible <bruno@clisp.org>
896 * posix/regex.c (re_max_failures): Add back symbol for binary
899 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
901 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
902 of buffer building functions.
903 * posix/regex_internal.c (re_string_allocate): New function.
904 (re_string_realloc_buffers): New function.
905 (re_string_skip_chars): New function.
906 (re_string_reconstruct): New function.
907 (re_string_construct): Adapt it to new interface of buffer building
909 (re_string_construct_common): Likewise.
910 (build_wcs_buffer): Likewise.
911 (build_wcs_upper_buffer): Likewise.
912 (build_upper_buffer): Likewise.
913 (re_string_translate_buffer): Likewise.
914 (re_string_context_at): Adapt it to variable length buffers.
915 * posix/regex_internal.h (re_string_t): Add new fields to handle
916 variable length buffers.
917 (re_match_context_t): Likewise.
918 * posix/regexec.c (re_search_internal): Adapt it to new interface
919 of re_string_t and re_match_context_t.
920 (acquire_init_state_context): Likewise.
921 (check_matching): Likewise.
922 (check_halt_state_context): Likewise.
923 (proceed_next_node): Likewise.
924 (set_regs): Likewise.
925 (sift_states_backward): Likewise.
926 (clean_state_log_if_need): Likewise.
927 (sift_states_iter_mb): Likewise.
928 (sift_states_iter_bkref): Likewise.
929 (add_epsilon_backreference): Likewise.
930 (transit_state): Likewise.
931 (transit_state_sb): Likewise.
932 (transit_state_mb): Likewise.
933 (transit_state_bkref): Likewise.
934 (transit_state_bkref_loop): Likewise.
935 (check_node_accept): Likewise.
936 (match_ctx_init): Likewise.
937 (extend_buffers): New function.
939 2002-04-21 Bruno Haible <bruno@clisp.org>
941 * iconvdata/tst-table.sh: For the second check, use the truncated
942 GB18030 charmap table, like for the first check.
944 2002-04-24 Ulrich Drepper <drepper@redhat.com>
946 * elf/dl-load.c (open_verify): Correct __lseek parameters.
947 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
949 2002-04-23 H.J. Lu <hjl@gnu.org>
951 * include/math.h (isfinite): Fix a typo.
953 2002-04-24 Ulrich Drepper <drepper@redhat.com>
955 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
956 which is created by the test suite.
958 2002-04-20 Bruno Haible <bruno@clisp.org>
960 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
961 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
963 2002-04-20 Bruno Haible <bruno@clisp.org>
965 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
966 to avoid gcc warning.
968 2002-04-20 Bruno Haible <bruno@clisp.org>
970 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
971 of data->__statep->__count.
973 2002-04-20 Bruno Haible <bruno@clisp.org>
975 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
977 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
979 2002-04-24 Roland McGrath <roland@frob.com>
981 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
982 use END macro instead of our own .end directive.
983 Use `callsys' insn mnemonic instead of `call_pal'.
985 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
987 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
988 macro; we need this for Hurd.
990 Log entry was missing for 2002/03/24 commit of rev 1.8,
991 goes with 2002-03-17 changes.
992 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
993 (sysdep_routines): Append ioperm here.
994 (sysdep_headers): Append sys/io.h here.
996 2002-04-23 Roland McGrath <roland@frob.com>
998 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
999 * sysdeps/mach/hurd/sendto.c: Likewise.
1000 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1001 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1002 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1004 2002-04-22 Roland McGrath <roland@frob.com>
1006 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1007 failure from i386_io_perm_* RPCs to ENOSYS.
1009 2002-04-22 Andreas Jaeger <aj@suse.de>
1011 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
1013 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1015 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1016 register instead of destroying %rbx.
1018 2002-04-21 Ulrich Drepper <drepper@redhat.com>
1020 * string/string.h: Declare strerror_r also for XPG6.
1022 2002-04-19 Roland McGrath <roland@frob.com>
1024 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1026 2002-04-20 Ulrich Drepper <drepper@redhat.com>
1028 * Makefile: Add handling of xtests and xcheck targets.
1029 * MakeTAGS: Likewise.
1030 * Makeconfig: Likewise.
1031 * Makerules: Likewise.
1033 * manual/Makefile: Likewise.
1034 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1035 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
1037 2002-04-11 Zack Weinberg <zack@codesourcery.com>
1039 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1041 * sunrpc/auth_none.c: Include bits/libc-lock.h.
1042 Delete #ifdef _RPC_THREAD_SAFE_ block.
1043 (authnone_private): Make a struct, not a pointer to struct.
1044 (authnone_private_guard): New once-control variable.
1045 (authnone_create_once): New function, split out of
1046 authnone_create. No need to allocate memory.
1047 (authnone_create): Just call authnone_create_once via
1048 __libc_once, then return &authnone_private->no_client.
1049 (authnone_marshal): Access private data via CLIENT argument,
1050 not authnone_private pointer.
1051 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1052 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1055 2002-04-12 H.J. Lu <hjl@gnu.org>
1057 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1059 2002-04-18 Bruno Haible <bruno@clisp.org>
1061 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1062 FROM_DIRECTION): Make the FROM direction stateless.
1063 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1064 FROM_DIRECTION): Likewise.
1066 2002-04-15 Bruno Haible <bruno@clisp.org>
1068 * iconvdata/JISX0213.TXT: New file.
1069 * iconvdata/jisx0213.h: New file.
1070 * iconvdata/jisx0213.c: New file.
1071 * iconvdata/euc-jisx0213.c: New file.
1072 * iconvdata/shift_jisx0213.c: New file.
1073 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1074 * iconvdata/EUC-JISX0213.precomposed: New file.
1075 * iconvdata/SHIFT_JISX0213.precomposed: New file.
1076 * iconvdata/SHIFT_JISX0213.irreversible: New file.
1077 * iconvdata/tst-table-to.c (main): Make it work for encodings for
1078 which the "to" direction is stateful.
1079 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1080 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1082 (libJISX0213-routines): New variable.
1083 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1084 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1085 (LDFLAGS-libJISX0213.so): New variable.
1086 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1087 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1088 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1090 2002-04-15 Bruno Haible <bruno@clisp.org>
1092 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1093 uint32_t. Update to Unicode 3.2.
1094 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1095 (BODY for TO_LOOP): Handle the ASCII range specially.
1096 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1097 * iconvdata/testdata/BIG5HKSCS: Remove a character.
1098 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1100 2002-04-15 Bruno Haible <bruno@clisp.org>
1102 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1103 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1105 2002-04-15 Bruno Haible <bruno@clisp.org>
1107 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1108 (ucs4_to_cns11643): Update.
1109 * iconvdata/cns11643.c: Update to Unicode 3.2.
1110 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1111 __cns11643_from_ucs4p2_tab): Regenerated.
1112 (__cns11643_from_ucs4p2c_tab): New array.
1113 * iconvdata/cvs11643l1.c: Update comments.
1114 * iconvdata/EUC-TW.irreversible: Remove two entries.
1116 2002-04-15 Bruno Haible <bruno@clisp.org>
1118 * locale/C-translit.h.in: Update to Unicode 3.2.
1119 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1120 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1122 2002-04-15 Bruno Haible <bruno@clisp.org>
1124 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1125 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1127 2002-04-15 Bruno Haible <bruno@clisp.org>
1129 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1130 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1131 always one byte, not 0 bytes in some cases and 2 bytes in others.
1133 * iconvdata/tst-table-from.c (main): Correct the usage message.
1135 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1137 * posix/regcomp.c (parse_expression): Fix incorrect error code.
1138 (parse_dup_op): Fix error handling like "a{}".
1139 (parse_bracket_exp): Add error handling.
1140 (fetch_number): Add error handling for "a{<very_large_number>}".
1142 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
1144 * posix/regcomp.c (parse_bracket_symbol): Add error handling
1145 in case that the symbol name is too long.
1146 (build_charclass): Handle [:lower:]/[:uppper:] correctly
1147 in case of REG_ICASE.
1149 2002-04-19 Andreas Jaeger <aj@suse.de>
1151 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1152 <hartvige@mips.com>.
1154 2002-04-15 H.J. Lu <hjl@gnu.org>
1156 * include/math.h (__finitel_internal): Declare only if
1157 __NO_LONG_DOUBLE_MATH is not defined.
1158 (__isinfl_internal): Likewise.
1159 (__isnanl_internal): Likewise.
1161 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1162 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1163 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1164 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1165 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1166 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1167 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1169 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1172 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1173 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1175 2002-04-15 Bruno Haible <bruno@clisp.org>
1177 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1178 (BODY for TO_LOOP): Likewise.
1179 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1180 * iconvdata/tst-table.sh: Add support for encodings which contain
1181 precomposed Unicode characters, known to the iconv converter in both
1182 directions but not listed in the charmap.
1183 * iconvdata/IBM856.irreversible: New file.
1184 * iconvdata/IBM922.irreversible: New file.
1185 * iconvdata/IBM1132.irreversible: New file.
1186 * iconvdata/IBM1133.irreversible: New file.
1187 * iconvdata/IBM1160.irreversible: New file.
1188 * iconvdata/IBM1161.irreversible: New file.
1189 * iconvdata/IBM1163.irreversible: New file.
1190 * iconvdata/IBM1164.irreversible: New file.
1191 * iconvdata/ARMSCII-8.irreversible: New file.
1192 * iconvdata/TCVN5712-1.precomposed: New file.
1193 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1194 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1195 ARMSCII-8, TCVN5712-1.
1196 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1197 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1198 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1199 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1201 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1203 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
1204 for EVENING69. Include offsets in TZ environment variable.
1206 2002-04-18 Ulrich Drepper <drepper@redhat.com>
1208 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1209 avoid compiler warnings.
1211 * locale/programs/localedef.c (main): Always call
1212 construct_output_path.
1214 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1216 * locale/programs/locfile.c (to_archive): New variable. To collect
1217 data which has to be added to the locale archive.
1218 (write_all_categories): Take new third parameter with locale name.
1219 Unless no_archive flag set add new locale data to the archive
1220 (write_locale_data): Unless no-archive flag set store generated data
1221 in to_archive data structure instead of generation output file.
1222 Add new parameter with locale category index.
1223 * locale/programs/locfile.h: Add new parameters in declaractions of
1224 write_all_categories and write_locale_data.
1225 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
1226 --add-to-archive, and --delete-from-archive options. Pass extra
1227 parameter to write_all_categories.
1228 * locale/programs/localedef.h: Add prototypes for functions in
1230 * locale/locarchive.h: New file.
1231 * locale/programs/locarchive.c: New file.
1232 * locale/Makefile (distribute): Add programs/locarchive.c and
1234 (localedef-modules): Add md5 and locarchive.
1235 Add vpath to crypt subdir for md5.c.
1237 * locale/programs/ld-address.c: Pass locale category ID as new second
1238 parameter to write_locale_data.
1239 * locale/programs/ld-collate.c: Likewise.
1240 * locale/programs/ld-ctype.c: Likewise.
1241 * locale/programs/ld-identification.c: Likewise.
1242 * locale/programs/ld-measurement.c: Likewise.
1243 * locale/programs/ld-messages.c: Likewise.
1244 * locale/programs/ld-monetary.c: Likewise.
1245 * locale/programs/ld-name.c: Likewise.
1246 * locale/programs/ld-numeric.c: Likewise.
1247 * locale/programs/ld-paper.c: Likewise.
1248 * locale/programs/ld-telephone.c: Likewise.
1249 * locale/programs/ld-time.c: Likewise.
1251 * locale/simple-hash.c: Move compute_hashval function from here...
1252 * locale/hashval.h: ...to here. New file.
1253 * locale/simple-hash.h: Add prototype for compute_hashval.
1255 * include/libintl.h: Minor cleanups.
1257 2002-04-16 Ulrich Drepper <drepper@redhat.com>
1259 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
1261 2002-04-15 Ulrich Drepper <drepper@redhat.com>
1263 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
1265 2002-04-14 Bruno Haible <bruno@clisp.org>
1267 * locale/programs/charmap.c (charmap_read): Don't access result if
1270 2002-02-17 Andreas Schwab <schwab@suse.de>
1272 * elf/reldep7.c: New file.
1273 * elf/reldep7mod1.c: New file.
1274 * elf/reldep7mod2.c: New file.
1275 * elf/Makefile: Add rules to build and run reldep7.
1277 2002-04-14 Jakub Jelinek <jakub@redhat.com>
1279 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
1280 the end of the function. Pass original flags to recursive call if
1281 add_dependency failed.
1282 (_dl_lookup_versioned_symbol): Likewise.
1284 2002-04-13 Jakub Jelinek <jakub@redhat.com>
1286 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
1287 early, but check whether it overflowed afterwards.
1288 * time/tst-mktime.c (main): Add new tests.
1290 2002-04-14 Ulrich Drepper <drepper@redhat.com>
1292 * debug/xtrace.sh: Fix program name in help message.
1293 Patch by Roger Luethi <rl@hellgate.ch>.
1295 * include/sys/stat.h: Add prototypes for __lxstat_internal and
1296 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
1298 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
1299 * sysdeps/mach/hurd/lxstat.c: Likewise.
1300 * sysdeps/unix/common/lxstat.c: Likewise.
1301 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
1302 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1303 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1304 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1305 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1306 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
1307 * sysdeps/mach/hurd/lxstat64.c: Likewise.
1308 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
1309 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1311 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
1312 prototypes. Add __mbrlen and __mbrtowc macros.
1313 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
1314 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
1316 * include/unistd.h: Add prototype for __write_internal and add
1317 __libc_write macro is SHARED.
1318 * sysdeps/generic/write.c: Use INTDEF for __write.
1319 * sysdeps/mach/hurd/write.c: Likewise.
1320 * sysdeps/unix/sysv/aix/write.c: Likewise.
1321 * sysdeps/unix/syscalls.list: Add __libc_write alias.
1323 * assert/assert.c: Replace STR_N_SIZE with something usable in
1325 * assert/assert-perr.c: Likewise.
1327 * include/sys/socket.h: Declare __libc_sa_len_internal and define
1328 SA_LEN macro to use it if not NOT_IN_libc.
1329 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
1331 * include/fcntl.h: Declare __open_internal and define __open and
1332 __libc_open macros if not NOT_IN_libc.
1333 * sysdeps/generic/open.c: Use INTDEF for __open.
1334 * sysdeps/mach/hurd/open.c: Likewise.
1335 * sysdeps/unix/sysv/aix/open.c: Likewise.
1336 * sysdeps/unix/syscalls.list: Add __open_internal alias.
1338 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
1341 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
1342 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
1343 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1344 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1346 * include/wctype.h: Declare __iswalpha_l_internal,
1347 __iswdigit_l_internal, __iswspace_l_internal,
1348 __iswxdigit_l_internal, and __iswctype_internal. Define
1349 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
1350 __iswxdigit_l macros if not NOT_IN_libc.
1351 * wctype/iswctype.c: Use INTDEF for __iswctype.
1352 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
1354 * include/math.h: Declare __isinf_internal, __isinfl_internal,
1355 __isnan_internal, and __isnanl_internal.
1356 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
1357 __isnan, and __isnanl.
1358 * stdio-common/printf_size.c: Likewise.
1359 * sysdeps/generic/printf_fphex.c: Likewise.
1360 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
1361 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1362 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
1363 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
1364 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1365 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1366 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1367 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1368 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1369 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1370 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1371 * sysdeps/m68k/s_isinfl.c: Likewise.
1372 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1373 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1375 * include/sys/time.h: Declare __gettimeofday_internal and define
1376 __gettimeofday macro if not NOT_IN_libc.
1377 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
1378 * sysdeps/mach/gettimeofday.c: Likewise.
1379 * sysdeps/posix/gettimeofday.c: Likewise.
1380 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1381 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
1382 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1383 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
1385 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
1386 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
1387 Remove __lstat and __fstat inline functions.
1388 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
1389 * sysdeps/mach/hurd/fxstat.c: Likewise.
1390 * sysdeps/unix/fxstat.c: Likewise.
1391 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
1392 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1393 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1394 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1395 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1396 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
1397 * sysdeps/mach/hurd/fxstat64.c: Likewise.
1398 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
1399 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1401 * include/unistd.h: Declare __getpid_internal and define
1402 __getpid macro if not NOT_IN_libc.
1403 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
1404 * sysdeps/generic/getpid.c: Likewise.
1405 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
1406 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
1408 * include/unistd.h: Declare __getpgid_internal and define
1409 __getpgid macro if not NOT_IN_libc.
1410 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
1411 * sysdeps/mach/hurd/getpgid.c: Likewise.
1412 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
1413 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1414 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1415 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
1417 * include/unistd.h: Declare __getpagesize_internal and define
1418 __getpagesize macro if not NOT_IN_libc.
1419 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
1421 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
1422 * sysdeps/mach/getpagesize.c: Likewise.
1423 * sysdeps/posix/getpagesize.c: Likewise.
1424 * sysdeps/unix/getpagesize.c: Likewise.
1425 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1426 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1427 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
1428 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1430 2002-04-13 Andreas Jaeger <aj@suse.de>
1432 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
1433 as clobber to reduce register pressure.
1434 (__strpbrk_cg): Likewise.
1435 (__mempcpy_by4): Likewise.
1436 (__strstr_cg): Likewise.
1437 Add prototype for __memrchr.
1439 2002-04-13 Andreas Schwab <schwab@suse.de>
1441 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
1442 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1443 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1445 2002-04-13 Ulrich Drepper <drepper@redhat.com>
1447 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
1448 check whether the caller prefers getting the most recent version of
1449 a symbol of the earliest version.
1450 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
1451 _dl_do_lookup to also take the new parameter and pass it on.
1452 Change 'explicit' parameter of _dl_lookup_symbol and
1453 _dl_lookup_versioned_symbol to flags. Adjust tests.
1454 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1455 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
1456 _dl_lookup_versioned_symbol.
1457 * elf/dl-reloc.c: Likewise.
1458 * elf/dl-runtime.c: Likewise.
1459 * elf/dl-sym.c: Likewise.
1460 * sysdeps/mips/dl-machine.h: Likewise.
1462 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1464 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
1466 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
1468 2002-04-10 Andreas Jaeger <aj@suse.de>
1470 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
1472 * include/argz.h: Remove extra char from last patch.
1474 2002-04-09 Ulrich Drepper <drepper@redhat.com>
1476 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
1477 * sysdeps/unix/sysv/aix/chown.c: Likewise.
1478 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
1479 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1480 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1481 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
1483 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1485 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
1486 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
1487 * intl/ngettext.c: Likewise.
1489 * include/sys/socket.h: Declare __connect_internal and define
1490 __connect macro if not NOT_IN_libc.
1491 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
1492 * sysdeps/unix/sysv/aix/connect.c: Likewise.
1493 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
1495 * include/unistd.h: Declare __close_internal and define __close macro
1497 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
1498 WJUMP3): Add extra parenthesis to avoid expanding element names with
1499 macors like __close.
1500 * sysdeps/unix/syscalls.list: Add __close_internal alias.
1502 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
1504 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
1505 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
1506 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
1508 * include/unistd.h: Declare __fork_internal and define __fork macro
1510 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
1511 * sysdeps/unix/sysv/aix/fork.c: Likewise.
1512 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
1514 * include/stdio_ext.h: Declare __fsetlocking_internal and define
1515 __fsetlocking macro to use it if not NOT_IN_libc.
1516 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
1518 * libio/__fbufsize.c: Correct copyright.
1519 * libio/__flbf.c: Likewise.
1520 * libio/__fpending.c: Likewise.
1521 * libio/__fpurge.c: Likewise.
1522 * libio/__freadable.c: Likewise.
1523 * libio/__freading.c: Likewise.
1524 * libio/__fsetlocking.c: Likewise.
1525 * libio/__fwritable.c: Likewise.
1526 * libio/__fwriting.c: Likewise.
1528 * include/stdio.h: Declare __asprintf_internal and define __asprintf
1529 macro to use it if not NOT_IN_libc.
1530 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
1532 * include/mntent.h: Declare __setmntent_internal,
1533 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
1534 __getmntent_r, and __endmntent macros to use these functions if not
1536 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
1539 * include/math.h: Declare __finite_internal, __finitef_internal, and
1540 __finitel_internal. Redefine isfinite macro if in libc or libm using
1542 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
1543 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
1544 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
1545 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
1546 * sysdeps/i386/fpu/s_finitef.S: Likewise.
1547 * sysdeps/i386/fpu/s_finitel.S: Likewise.
1548 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1549 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1550 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1551 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1553 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
1554 to use this function if not NOT_IN_libc.
1555 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
1556 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
1557 * sysdeps/mach/hurd/fcntl.c: Likewise.
1558 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1559 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1561 * include/argz.h: Declare __argz_count_internal and
1562 __argz_stringify_internal.
1563 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
1565 * string/argz-count.c: Use INTDEF for __argz_count.
1566 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
1568 * include/stdlib.h: Declare __cxa_atexit_internal and define
1569 __cxa_atexit macro if not NOT_IN_libc.
1570 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
1571 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
1573 * assert/assert.c: Use INTDEF for __assert_fail.
1574 * assert/__assert.c: Use INTUSE for call to __assert_fail.
1575 * include/assert.h: Declare __assert_fail_internal.
1577 * extra-lib.mk: Mark assignment to lib with override.
1579 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1581 * Makerules: Use cppflags-iterator.mk to add defines for all test
1584 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
1586 * elf/elf.h: Define R_SH_TLS_xxx macros.
1587 * elf/rtld.c: Remove an extra parenthesis.
1588 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
1590 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
1591 * sysdeps/sh/dl-lookupcfg.h: New file.
1592 * sysdeps/sh/dl-tls.h: New file.
1593 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
1594 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
1595 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
1596 R_SH_TLS_TPOFF32 relocations.
1598 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1600 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
1602 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
1603 * include/stdlib.h: Likewise.
1605 2002-04-08 Jakub Jelinek <jakub@redhat.com>
1607 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
1608 instead of _RTLD_LOCAL.
1609 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
1610 * include/unistd.h: Likewise.
1611 * sysdeps/generic/ldsodefs.h: Likewise.
1613 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
1614 if in libc or ld.so.
1616 2002-04-08 Andreas Jaeger <aj@suse.de>
1618 * elf/cache.c (print_entry): Support x86-64.
1620 2002-04-08 Ulrich Drepper <drepper@redhat.com>
1622 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
1623 with one accessing the locale data structures directly.
1624 * stdio-common/printf-prs.c: Include localeinfo.h for new
1625 MB_CUR_MAX definition.
1627 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
1628 is the name of the source file without extension.
1629 * Makefile (distribute): Add cppflags-iterator.mk.
1630 * cppflags-iterator.mk: New file.
1631 * extra-lib.mk: For the sources of the library run
1632 cppflags-iterator.mk.
1634 * include/libintl.h: Declare __dcgettext_internal and
1635 _libc_intl_domainname_internal. Define __dcgettext using these
1636 two symbols if used in libc itself.
1637 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
1638 _libc_intl_domainname_internal.
1639 * argp/argp-parse.c: Likewise.
1640 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
1641 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
1642 * intl/gettext.c: Likewise.
1643 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
1645 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
1647 * posix/regex_internal.c (gettext): Likewise.
1649 2002-04-08 Andreas Jaeger <aj@suse.de>
1651 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
1653 * sysdeps/x86_64/fpu/s_llrint.S: New.
1654 * sysdeps/x86_64/fpu/s_llrintf.S: New.
1655 * sysdeps/x86_64/fpu/s_llrintl.S: New.
1656 * sysdeps/x86_64/fpu/s_lrint.S: New.
1657 * sysdeps/x86_64/fpu/s_lrintf.S: New
1658 * sysdeps/x86_64/fpu/s_lrintl.S: New.
1660 2002-04-08 Roland McGrath <roland@frob.com>
1662 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
1663 widening __hurd_fail value.
1665 2002-04-07 Roland McGrath <roland@frob.com>
1667 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
1668 <mach/machine/alpha_instruction.h>.
1669 (_hurd_setup_sighandler): Take proper arguments for current decls.
1670 Update code to use _hurdsig_catch_fault.
1671 Use `callsys' instruction instead of `call_pal'.
1672 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
1674 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
1675 (ALIGN, at, AT, fp): New macros.
1677 2002-04-06 Roland McGrath <roland@frob.com>
1679 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
1681 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
1682 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
1684 * sysdeps/mach/hurd/bind.c: Use prototype definition.
1685 * sysdeps/mach/hurd/connect.c: Likewise.
1686 * sysdeps/mach/hurd/getsockopt.c: Likewise.
1687 * sysdeps/mach/hurd/setsockopt.c: Likewise.
1689 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
1692 * hurd/catch-exc.c: Use integer_t instead of int.
1693 * hurd/hurdfault.c: Likewise.
1695 * sysdeps/mach/hurd/alpha/exc2signal.c
1696 (_hurd_exception2signal): Rewritten.
1697 * sysdeps/mach/hurd/alpha/longjmp-ts.c
1698 (_hurd_longjmp_thread_state): Rewritten.
1700 2002-04-07 Ulrich Drepper <drepper@redhat.com>
1702 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
1703 DB_LOOKUP_FCT prototype.
1704 * nss/getXXent_r.c: Likewise.
1705 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
1706 * inet/getaliasname_r.c: Likewise.
1707 * inet/getnetbyad_r.c: Likewise.
1708 * inet/getnetbynm_r.c: Likewise.
1709 * inet/getnetent_r.c: Likewise.
1710 * inet/getproto_r.c: Likewise.
1711 * inet/getprtent_r.c: Likewise.
1712 * inet/getprtname_r.c: Likewise.
1713 * inet/getrpcbyname_r.c: Likewise.
1714 * inet/getrpcbynumber_r.c: Likewise.
1715 * inet/getrpcent_r.c: Likewise.
1716 * inet/getservent_r.c: Likewise.
1717 * inet/getsrvbynm_r.c: Likewise.
1718 * inet/getsrvbypt_r.c: Likewise.
1719 * shadow/getspent_r.c: Likewise.
1720 * shadow/getspnam_r.c: Likewise.
1722 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
1724 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
1725 Use i686-friendly PIC code.
1726 * sysdeps/i386/elf/setjmp.S: Likewise.
1728 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
1730 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
1732 * elf/Versions: Remove it here.
1734 2002-04-06 Ulrich Drepper <drepper@redhat.com>
1736 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
1737 direction. Reported by H . J . Lu <hjl@lucon.org>.
1739 2002-04-05 Ulrich Drepper <drepper@redhat.com>
1741 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
1742 test just before the test runs.
1743 * intl/tst-translit.sh: Likewise.
1744 * intl/tst-codeset.sh: Likewise.
1746 * timezone/zic.c: Update from tzcode2002c.
1747 * timezone/asia: Update from tzdata2002c.
1748 * timezone/backward: Likewise.
1749 * timezone/europe: Likewise.
1750 * timezone/northamerica: Likewise.
1751 * timezone/northamerica: Likewise.
1752 * timezone/northamerica: Likewise.
1753 * timezone/southamerica: Likewise.
1754 * timezone/zone.tab: Likewise.
1756 2002-03-23 Jakub Jelinek <jakub@redhat.com>
1758 * sysdeps/generic/brk.c (__curbrk): Declare.
1759 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
1760 * sysdeps/generic/dl-sbrk.c: Likewise.
1761 * sysdeps/unix/arm/dl-brk.S: New file.
1762 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
1763 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
1764 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
1765 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
1766 * sysdeps/unix/i386/dl-brk.S: New file.
1767 * sysdeps/unix/mips/dl-brk.S: New file.
1768 * sysdeps/unix/sparc/dl-brk.S: New file.
1769 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
1770 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
1771 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
1772 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
1774 2002-04-03 Andreas Schwab <schwab@suse.de>
1776 * Makefile (headers): Add gnu/lib-names.h here instead of
1778 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
1780 (install-headers): Add dependency on install-headers-nosubdir.
1781 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
1782 instead of install-others.
1783 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
1786 2002-04-05 Ulrich Drepper <drepper@redhat.com>
1788 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
1789 Reported by Sam Roberts <sroberts@uniserve.com>.
1791 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1793 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
1794 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
1795 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1796 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1798 2002-04-03 David Mosberger <davidm@hpl.hp.com>
1800 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
1801 (RTLD_START): Ditto.
1802 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
1803 dependency violation.
1805 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1807 * time/mktime.c (__mktime_internal): Move check for year < 70 below
1808 all variable declarations.
1810 2002-04-04 Andreas Schwab <schwab@suse.de>
1812 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
1814 2002-04-04 Andreas Jaeger <aj@suse.de>
1816 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
1817 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
1819 * sysdeps/x86_64/fpu/s_fabs.c: New file.
1820 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
1821 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
1823 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
1825 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
1827 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
1828 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
1830 * configure.in: Handle all mips entries the same.
1832 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
1833 * sysdeps/mips/mips3/*: Likewise.
1834 * sysdeps/mips/p40/bits/endian.h: Likewise.
1836 2002-04-04 Ulrich Drepper <drepper@redhat.com>
1838 * misc/dirname.c (dirname): Ignore trailing slashes at end of
1839 non-null result [PR libc/2600].
1841 * misc/tst-dirname.c: Add more tests.
1843 2002-04-03 Ulrich Drepper <drepper@redhat.com>
1845 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
1846 define a code_set_name provide one based on the filename.
1848 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
1850 2001-12-28 Andreas Jaeger <aj@suse.de>
1852 * time/mktime.c (__mktime_internal): Check for year < 70
1855 2002-04-03 Andreas Jaeger <aj@suse.de>
1857 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
1859 Reported by Andi Kleen <ak@suse.de>.
1861 2002-04-03 Ulrich Drepper <drepper@redhat.com>
1863 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
1864 * sysdeps/generic/w_lgammaf.c: Likewise.
1865 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
1867 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
1868 Adjust for new output format of the backtrace functions.
1870 * misc/syslog.c (vsyslog): Only use cleanup handler if
1871 _LIBC_REENTRANT is defined [PR libc/2924].
1873 * libio/Makefile (tests): Add bug-ungetwc2.
1874 * libio/bug-ungetwc2.c: New file.
1876 * manual/install.texi: Typographical and grammatical cleanup.
1877 Patch by Dennis Grace <dgrace@us.ibm.com>.
1879 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
1880 parameter if mtflag. Patch by <jeongyun@innovay.com>.
1882 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
1883 always "&". Adjust callers.
1884 Add "_" prefix to several generated definitions.
1885 Patch by paul@serice.net [PR libc/3158].
1887 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1889 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
1890 size of _dl_arm_cap_flags.
1891 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
1893 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
1896 2002-03-22 H.J. Lu <hjl@gnu.org>
1898 * scripts/firstversions.awk: Check the first version.
1900 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1902 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
1903 dependencies must be stable to work correctly.
1904 Reported by martin.lubich@datacon.at.
1906 * libio/bug-ungetwc1.c: New file.
1907 * libio/Makefile (tests): Add bug-ungetwc1.
1909 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
1910 if stream was last used for writing.
1912 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
1913 number [PR libc/3111].
1915 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
1917 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
1919 2002-04-02 Jakub Jelinek <jakub@redhat.com>
1921 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
1922 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1923 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
1924 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
1925 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
1927 2002-03-30 Jakub Jelinek <jakub@redhat.com>
1929 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
1932 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1934 * sysdeps/i386/fpu/s_fabs.S: New file.
1935 * sysdeps/i386/fpu/s_fabsf.S: New file.
1936 * sysdeps/i386/fpu/s_fabsl.S: New file.
1937 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
1938 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
1939 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
1941 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1943 * rt/tst-shm.c (do_test): Add one more test for size of shared
1946 2002-03-29 Wolfram Gloger <wg@malloc.de>
1948 * malloc/malloc.c: Add short description and prototypes for
1949 malloc_get_state, malloc_set_state and posix_memalign, for
1950 consistency and to avoid warnings with -Wstrict-prototypes.
1951 Reported by Andreas Jaeger <aj@suse.de>.
1953 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1955 * po/gl.po: Update from translation team.
1957 2002-03-31 Roland McGrath <roland@frob.com>
1959 * hurd/hurdselect.c (_hurd_select): Fix
1960 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
1961 Use a union rather than casts to compare mach_msg_type_t as int.
1963 2002-03-25 Roland McGrath <roland@frob.com>
1965 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
1966 check off the end of NAME when it's shorter than 2 chars.
1967 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
1969 2002-03-17 Roland McGrath <roland@frob.com>
1971 * sysdeps/mach/hurd/i386/sys/io.h: New file.
1972 * sysdeps/mach/hurd/i386/ioperm.c: New file.
1973 * sysdeps/mach/hurd/i386/Dist: Add them.
1974 * sysdeps/mach/hurd/i386/Versions
1975 (libc: GLIBC_2.2.6): New set, add ioperm.
1976 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
1977 (mach_interface_list): Check for mach_i386.defs.
1978 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
1979 * sysdeps/mach/configure: Regenerated.
1981 2002-03-22 Ulrich Drepper <drepper@redhat.com>
1983 * po/fr.po: Update from translation team.
1985 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1987 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
1988 getpriority from syscalls list.
1990 2002-03-28 Andreas Jaeger <aj@suse.de>
1992 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
1993 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
1994 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
1995 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
1997 2002-03-27 Andreas Jaeger <aj@suse.de>
1999 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2000 sigcontext): Follow further kernel change.
2002 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2005 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2006 Change for struct sigcontext change.
2008 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2009 Follow changes in struct sigcontext.
2011 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2012 sysycall, use wrapper instead.
2014 2002-03-26 Andreas Jaeger <aj@suse.de>
2016 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2017 read and write accesses as detailed as possible.
2018 (__memcpy_by2): Likewise.
2019 (__memcpy_g): Likewise.
2020 (memmove): Likewise.
2022 (__memset_ccn_by4): Likewise.
2023 (__memset_ccn_by2): Likewise.
2024 (__memset_gcn_by4): Likewise.
2025 (__memset_gcn_by2): Likewise.
2027 (__memrchr): Likewise.
2028 (rawmemchr): Likewise.
2029 (__strlen_g): Likewise.
2030 (__strcpy_g): Likewise.
2031 (__mempcpy_by4): Likewise.
2032 (__mempcpy_by2): Likewise.
2033 (__mempcpy_byn): Likewise.
2034 (__stpcpy_g): Likewise.
2035 (__strncpy_by4): Likewise.
2036 (__strncpy_by2): Likewise.
2037 (__strncpy_byn): Likewise.
2038 (__strncpy_gg): Likewise.
2039 (__strcat_c): Likewise.
2040 (__strcat_g): Likewise.
2041 (__strncat_g): Likewise.
2042 (__strcmp_gg): Likewise.
2043 (__strncmp_g): Likewise.
2044 (__strchr_c): Likewise.
2045 (__strchr_g): Likewise.
2046 (__strchrnul_c): Likewise.
2047 (__strchrnul_g): Likewise.
2048 (__strrchr_c): Likewise.
2049 (__strrchr_g): Likewise.
2050 (__strrchr_c): Likewise.
2051 (__strrchr_g): Likewise.
2052 (__strcspn_c1): Likewise.
2053 (__strcspn_cg): Likewise.
2054 (__strcspn_g): Likewise.
2055 (__strcspn_g): Likewise.
2056 (__strspn_c1): Likewise.
2057 (__strspn_cg): Likewise.
2058 (__strspn_g): Likewise.
2059 (__strspn_g): Likewise.
2060 (__strpbrk_cg): Likewise.
2061 (__strpbrk_g): Likewise.
2062 (__strstr_cg): Likewise.
2063 (__strstr_g): Likewise.
2065 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
2066 Michal Ludvig <mludvig@suse.cz>.
2068 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2069 compatibilty, adjust for kernel changes.
2071 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2072 sigcontext): Adjust for kernel changes.
2074 2002-03-25 Andreas Jaeger <aj@suse.de>
2076 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2078 Reported by Artur Zaprzala <zybi@talex.com.pl>.
2080 2002-03-24 Andreas Jaeger <aj@suse.de>
2082 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2084 * stdio-common/tst-fdopen.c (main): Remove unused variable.
2086 * iconv/tst-iconv3.c (main): Use correct printf strings.
2088 2002-03-18 Roland McGrath <roland@frob.com>
2090 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2091 (CMGROUP_MAX): New macro.
2093 2002-03-23 Roland McGrath <roland@frob.com>
2095 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2096 * sysdeps/posix/shm_unlink.c: Likewise.
2098 2002-03-22 Roland McGrath <roland@frob.com>
2100 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2101 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2102 under --enable-libio.
2103 * sysdeps/mach/hurd/configure: Regenerated.
2105 2002-03-23 Roland McGrath <roland@frob.com>
2107 * sysdeps/mach/hurd/i386/Makefile
2108 (sysdep_routines, shared-only-routines): Don't add framestate,
2109 reverting 2001-10-02 change.
2110 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2111 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2112 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2113 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2114 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2115 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2116 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2117 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2118 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2119 Do it here instead, only if [$(unwind-find-fde) = yes].
2121 2002-03-23 Andreas Jaeger <aj@suse.de>
2123 * signal/signal.h: Fix typo. Patch by Steve Kemp
2124 <skx@tardis.ed.ac.uk>.
2126 2002-03-22 Andreas Jaeger <aj@suse.de>
2128 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2131 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2132 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2133 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2134 user_fpregs_struct): Rename fwd.
2136 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2137 Follow sigcontext changes.
2139 2002-03-22 Andreas Jaeger <aj@suse.de>
2141 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
2142 changes for NaNs on MIPS.
2143 Patch by Hartvig Ekner <hartvige@mips.com>.
2145 2002-03-21 Ulrich Drepper <drepper@redhat.com>
2147 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2148 Use realloc if too large.
2149 (addgrbyid): Likewise.
2150 * nscd/hstcache.c (addhstbyname): Likewise.
2151 (addhstbyaddr): Likewise.
2152 (addhstbynamev6): Likewise.
2153 (addhstbyaddrv6): Likewise.
2154 * nscd/pwdcache.c (addpwbyname): Likewise.
2155 (addpwbyuid): Likewise.
2157 2002-03-21 Andreas Jaeger <aj@suse.de>
2159 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2160 _fpstate): Add separate struct for x86-64.
2162 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2163 user_fpregs_struct): Change member names to follow kernel.
2165 2002-03-20 Ulrich Drepper <drepper@redhat.com>
2167 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2168 Correctly close the UDP connection right away [PR libc/3120].
2170 2002-03-20 Andreas Jaeger <aj@suse.de>
2172 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2173 user_fpregs_struct): Fix for changed kernel struct.
2174 (struct user_regs_struct): Likewise.
2175 (struct user): Likewise.
2176 Add 32-bit x86 compatibility.
2178 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2180 2002-03-19 Andreas Jaeger <aj@suse.de>
2182 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2184 2002-03-18 Andreas Jaeger <aj@suse.de>
2186 * iconvdata/Makefile: Only run tests when shared libs are
2189 2002-03-17 Andreas Jaeger <aj@suse.de>
2191 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2193 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2195 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2198 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2200 Patch by Hartvig Ekner <hartvige@mips.com>.
2202 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2203 * sysdeps/generic/unwind-pe.h: Likewise.
2205 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2208 * libio/stdio.c (AL2): Define variant when visibility attribute is
2211 * include/libc-symbols.h (_INTVARDEF): Define variant when
2212 visibility attribute is not supported.
2214 2002-03-16 Ulrich Drepper <drepper@redhat.com>
2216 * po/fr.po: Update from translation team.
2218 2002-02-25 Bruno Haible <bruno@clisp.org>
2220 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2222 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2224 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
2225 buffers if _IO_file_attach failed.
2227 * libio/fileops.c (_IO_file_open): Close file descriptor if
2228 _IO_SEEKOFF call failed.
2230 2002-03-15 H.J. Lu <hjl@gnu.org>
2231 Ulrich Drepper <drepper@redhat.com>
2233 * configure.in: Check for availability of
2234 init_array/fini_array/preinit_array handling in binutils.
2235 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
2236 * config.make.in (have-initfini-array): New variable.
2238 2002-03-15 Ulrich Drepper <drepper@redhat.com>
2240 * stdio-common/tst-printf.c (main): Comment out one test which
2241 checked the compiler's ability to fold floating-point constants
2242 but not really printf.
2243 (rfg3): Make s const.
2244 * stdio-common/tst-printf.sh: Adjust for removed test.
2246 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
2247 internal function. Adjust for internal_function calling convention.
2248 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
2249 as internal_function.
2251 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
2254 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
2255 declaration and definition.
2256 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
2258 * nss/getXXent_r.c: Likewise.
2259 * nss/nsswitch.h (db_lookup_function): Add internal_function to
2262 * include/time.h: Declare __localtime_r as hidden.
2264 * include/aliases.h: Declare __getaliasent_r as hidden.
2265 * include/grp.h: Declare __getgrent_r as hidden.
2266 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
2267 __getservent_r, and __getprotoent_r as hidden.
2268 * include/pwd.h: Declare __getpwent_r as hidden.
2269 * include/shadow.h: Declare __getspent_r as hidden.
2270 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
2272 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
2273 and __gconv_transliterate as hidden.
2274 Add internal_function to __gconv_get_path declaration.
2275 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
2276 definition. Add attribute_hidden to __gconv_read_conf definition.
2278 2002-03-14 Ulrich Drepper <drepper@redhat.com>
2280 * elf/rtld.c: Declare _environ as hidden.
2281 * sysdeps/generic/dl-environ.c: Likewise.
2282 * sysdeps/generic/dl-sysdep.c: Likewise.
2284 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
2285 _dl_mcount_internal as hidden.
2287 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
2288 * sysdeps/generic/dl-brk.c: New file.
2289 * sysdeps/generic/dl-sbrk.c: New file.
2290 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
2291 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
2293 * elf/dl-minimal.c (malloc): Declare _end as hidden.
2294 (__errno_location): New function. Declare errno as hidden.
2295 * elf/rtld.c (_dl_argc): Define as hidden.
2296 (_dl_skip_args): Define as hidden.
2297 (_begin, _end): Declare as hidden.
2298 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
2299 * sysdeps/generic/entry.h (_start): Declare as hidden.
2300 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
2301 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
2302 _dl_runtime_resolve and _dl_runtime_profile as hidden.
2303 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
2305 2002-03-14 Roland McGrath <roland@frob.com>
2307 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
2309 * Makeconfig (%.v.i, %.v): New implicit rules.
2310 (preprocess-versions): Variable removed.
2311 ($(common-objpfx)shlib-versions.v.i): New target giving just the
2312 shlib-versions input files as dependencies.
2313 ($(common-objpfx)soversions.i): Depend on that instead of the input
2314 files. Use it as input instead of using a pipeline.
2315 (postclean-generated): Append soversions.i, shlib-versions.v, and
2316 shlib-versions.v.i here.
2317 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
2318 the Versions.def input files as dependencies.
2319 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
2320 ($(common-objpfx)Versions.all): Depend on that instead of the input
2321 files. Use it as input instead of using a pipeline.
2322 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
2323 (postclean-generated): Append those .v and .v.i files here.
2325 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2327 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
2328 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
2331 2002-03-14 Jakub Jelinek <jakub@redhat.com>
2333 * sysdeps/generic/mp_clz_tab.c: New file.
2334 * sysdeps/i386/mp_clz_tab.c: New file.
2335 * sysdeps/hppa/mp_clz_tab.c: New file.
2336 * sysdeps/powerpc/mp_clz_tab.c: New file.
2337 * stdlib/Makefile (aux): Revert last patch.
2338 * math/Makefile (gmp-objs): Likewise.
2340 2002-03-13 Paul Eggert <eggert@twinsun.com>
2342 * time/strftime.c: Comment fixes for references to obsolescent
2343 standards, In most cases the simplest fix is to remove the
2344 confusing comments. Cross-referencing all the standards properly
2345 is a bit of a pain, and it should be enough to put that info in
2346 the documentation as I did in my recent time.texi patch.
2348 2002-03-13 Paul Eggert <eggert@twinsun.com>
2350 * manual/time.texi (Formatting Calendar Time):
2351 ISO C99 also specifies the E and O modifiers.
2352 %P is a GNU extension, and is not in ISO C99.
2353 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
2354 %T is also in ISO C99.
2355 The RFC 822 example is not valid in arbitrary locales.
2356 Reword the POSIX.2 wording slightly, to make it a bit clearer
2357 that POSIX.2 formats are also supported by later POSIX versions.
2358 If a format was introduced in ISO C99 it is also required by
2361 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2363 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
2364 _sys_nerr_internal with INTVARDEF2.
2365 * include/libc-symbols.h (INTVARDEF2): New macro.
2366 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
2367 (_sys_nerr_internal): Library.
2369 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
2370 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
2372 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
2374 2002-03-13 Wolfram Gloger <wg@malloc.de>
2376 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
2378 2002-03-02 Andreas Schwab <schwab@suse.de>
2380 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
2381 'h' flag and positional arg.
2382 * stdio-common/tst-printf.c (rfg3): New function to test
2383 positional arguments.
2384 (main): Fix some warnings.
2386 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2388 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
2389 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2391 2002-03-13 Ulrich Drepper <drepper@redhat.com>
2393 * grp/initgroups.c (__nss_group_data): Declare as hidden.
2395 * include/locale.h (_nl_C_locobj): Declare as hidden.
2397 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
2398 * time/strptime.c (_nl_C_LC_TIME): Likewise.
2400 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
2402 * include/sys/gmon.h: Declare _gmonparam as hidden.
2404 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
2405 (__ctype32_wctrans): Likewise.
2406 (__ctype32_width): Likewise.
2408 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
2411 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
2413 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
2414 hidden. Change all users of these variables.
2416 * posix/regex_internal.h (__re_error_msgid): Renamed from
2417 re_error_msgid. Declare as hidden.
2418 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
2421 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
2422 (__printf_function_table): Likewise.
2423 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
2425 (__printf_function_table): Likewise.
2427 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
2428 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
2430 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
2431 * nss/nsswitch.c: Declare _nss_*_database as hidden.
2433 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
2434 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
2436 2002-03-12 Ulrich Drepper <drepper@redhat.com>
2438 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
2439 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2440 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2441 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2442 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2443 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2444 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2445 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2446 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
2447 _nl_C_LC_CTYPE_width: Declare as hidden.
2448 * include/locale.h: Declare _nl_locale_file_list.
2449 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
2450 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
2451 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
2452 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
2453 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
2454 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
2455 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
2456 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
2457 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
2458 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
2459 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
2460 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
2461 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2462 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2463 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2464 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2465 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2466 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2467 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2468 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
2469 _nl_C_LC_CTYPE_width, and as hidden.
2470 * locale/findlocale.c: Declare _nl_C as hidden.
2471 * locale/newlocale.c: Likewise.
2472 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
2473 _nl_locale_file_list.
2474 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
2475 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
2476 Define _nl_C_locobj as hidden.
2478 * malloc/mtrace.c (_mtrace_file): Define as hidden.
2479 (_mtrace_line): Likewise.
2481 * include/time.h: Declare __mon_yday as hidden.
2482 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
2484 * libio/libioP.h: Declare __libio_codecvt as hidden.
2485 * libio/fileops.c: Declare __libio_translit as hidden.
2486 * libio/iofwide.c: Define __libio_translit as hidden.
2488 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
2489 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
2490 * login/getutline_r.c: Likewise.
2491 * login/utmpname.c: Likewise.
2493 * login/utmp-private.h: Declare __libc_utmp_file_functions,
2494 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
2495 __libc_utmp_file_name as hidden.
2497 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
2498 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
2499 * locale/freelocale.c: Likewise.
2500 * locale/lc-time.c: Likewise.
2502 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
2503 (__libc_ptyname2): Likewise.
2504 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
2506 (__libc_ptyname2): Likewise.
2508 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
2509 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
2510 * sysdeps/generic/init-first.c: Likewise.
2511 * sysdeps/i386/init-first.c: Likewise.
2512 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2513 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2514 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2515 * sysdeps/sh/init-first.c: Likewise.
2516 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2517 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2519 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
2520 (_itowa_upper_digits): Likewise.
2522 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
2523 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
2526 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
2527 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
2528 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
2529 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
2531 * gmon/gmon.c (__bb_head): Define as hidden.
2532 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
2534 * argp/argp-parse.c (_argp_hang): Define as static.
2536 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
2537 handling in latest compilers.
2539 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
2541 * libio/fileops.c (_IO_file_jumps): Likewise.
2542 * libio/stdfiles.c (_IO_list_all): Likewise.
2543 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
2545 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
2547 * include/malloc.h: Add __libc_malloc_initialized declaration
2548 here. Mark variable hidden.
2549 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
2551 * elf/dl-open.c (__libc_argc): Declare as hidden.
2552 (__libc_argv): Likewise.
2553 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
2554 (__libc_argv): Likewise.
2555 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
2556 __libc_argv as hidden.
2557 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2558 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2559 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2560 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2562 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
2563 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
2564 * stdlib/erand48.c: Likewise.
2565 * stdlib/jrand48.c: Likewise.
2566 * stdlib/lcong48.c: Likewise.
2567 * stdlib/lrand48.c: Likewise.
2568 * stdlib/mrand48.c: Likewise.
2569 * stdlib/nrand48.c: Likewise.
2570 * stdlib/seed48.c: Likewise.
2571 * stdlib/srand48.c: Likewise.
2573 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
2574 (_itoa_lower_digits_internal): New declaration.
2575 (_itoa_upper_digits_internal): New declaration.
2576 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
2577 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
2578 (_itoa_upper_digits_internal): New declaration.
2579 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
2581 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
2582 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
2584 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
2585 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2587 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
2588 (_itowa_lower_digits): Likewise.
2589 (_itowa_upper_digits): Likewise.
2590 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
2591 (_itowa_upper_digits): Likewise.
2593 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
2594 not already defined.
2595 (GERMANIC_PLURAL): Declare as hidden.
2597 * posix/getopt.c (__getopt_initialized): Declare as hidden.
2598 (attribute_hidden): Define as empty macro if not already defined.
2600 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
2601 (__gconv_max_path_elem_len): Likewise.
2602 (__gconv_path_envvar): Likewise.
2604 * math/Makefile (gmp-objs): Remove mp_clz_tab.
2605 * stdlib/Makefile (aux): Remove mp_clz_tab.
2606 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
2608 * stdlib/exit.h (__exit_funcs): Declare as hidden.
2610 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
2612 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
2613 _nl_category_names, _nl_category_name_sizes, _nl_current,
2614 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
2616 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
2617 (_nl_current_default_domain): Likewise
2618 (_nl_state_lock): Likewise.
2619 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
2620 (_nl_current_default_domain): Likewise
2621 (_nl_state_lock): Likewise.
2622 * intl/bindtextdom.c (_nl_state_lock): Likewise.
2624 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
2625 (_fpioconst_pow10): Likewise.
2627 * include/time.h (_tmbuf): Add attribute_hidden.
2629 * time/tzset.c (tzstring_list): Define as static.
2631 * include/time.h: Add attribute_hidden to __tzname_cur_max and
2632 __use_tzfile declaration.
2634 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
2635 and __wcsmbs_last_locale declaration.
2637 2002-02-25 Paul Eggert <eggert@twinsun.com>
2639 * timezone/Makefile (tzbases): Move systemv from here...
2640 (tzlinks): to here, since the entries in systemv were all changed
2641 from Zone to Link lines in tz-2001a. Bug reported (and patch
2642 tested) by Peter Breitenlohner.
2644 2002-03-07 Jakub Jelinek <jakub@redhat.com>
2646 * time/tst-posixtz.c (tests): Add new tests.
2647 (main): Test whether tzset() sets daylight properly.
2649 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2651 * time/tzset.c (tz_compute): Move __daylight, __tzname and
2652 __tzname_cur_max setting...
2653 (tzset_internal): ...here.
2655 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2657 * time/tzset.c (compute_change): Don't return any value.
2658 (tz_compute): Likewise. Don't handle southern hemisphere here.
2659 (__tz_convert): But here.
2661 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2663 * manual/examples/mkfsock.c: Include <string.h> as well.
2664 Patch by Alain De Carolis <alaind@wseurope.com>.
2666 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2668 * posix/regexec.c (re_match): Fix incorrect register sizes.
2669 (re_search): Likewise.
2671 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2673 * posix/regcomp.c (regfree): Remove a disused condition.
2674 * posix/regex_internal.c (re_acquire_state): Likewise.
2675 (re_acquire_state_context): Likewise.
2676 (register_state): Remove a redundant malloc invocation.
2677 * posix/regex_internal.h: (re_state_table_entry): Simplify
2680 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2682 * posix/regcomp.c (regcomp): Add __builtin_expect to error
2683 handling conditions.
2684 (regerror): Likewise.
2685 (regfree): Likewise.
2686 (re_compile_internal): Likewise.
2687 (init_dfa): Likewise.
2688 (init_word_char): Likewise.
2689 (create_initial_state): Likewise.
2690 (analyze): Likewise.
2691 (analyze_tree): Likewise.
2692 (duplicate_node): Likewise.
2693 (calc_eclosure): Likewise.
2694 (calc_eclosure_iter): Likewise.
2696 (parse_reg_exp): Likewise.
2697 (parse_branch): Likewise.
2698 (parse_expression): Likewise.
2699 (parse_subexp): Likewise.
2700 (parse_dup_op): Likewise.
2701 (parse_bracket_exp): Likewise.
2702 (build_equiv_class): Likewise.
2703 (build_charclass): Likewise.
2704 (build_word_op): Likewise.
2705 (fetch_number): Likewise.
2706 (create_tree): Likewise.
2707 (duplicate_tree): Likewise.
2708 * posix/regex.c (BE): New macro.
2709 * posix/regexec.c (re_match): Add __builtin_expect to error
2710 handling conditions.
2711 (re_match_2): Likewise.
2712 (re_search): Likewise.
2713 (re_search_internal): Likewise.
2714 (check_matching): Likewise.
2715 (proceed_next_node): Likewise.
2716 (set_regs): Likewise.
2717 (sift_states_backward): Likewise.
2718 (add_epsilon_backreference): Likewise.
2719 (transit_state): Likewise.
2720 (transit_state_sb): Likewise.
2721 (transit_state_mb): Likewise.
2722 (transit_state_bkref): Likewise.
2723 (transit_state_bkref_loop): Likewise.
2724 (build_trtable): Likewise.
2725 (group_nodes_into_DFAstates): Likewise.
2726 (match_ctx_init): Likewise.
2727 (match_ctx_add_entry): Likewise.
2728 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
2729 to error handling conditions.
2730 (re_string_construct_toupper): Likewise.
2731 (build_wcs_buffer): Likewise.
2732 (build_wcs_upper_buffer): Likewise.
2733 (build_upper_buffer): Likewise.
2734 (re_string_translate_buffer): Likewise.
2735 (re_node_set_alloc): Likewise.
2736 (re_node_set_init_1): Likewise.
2737 (re_node_set_init_2): Likewise.
2738 (re_node_set_init_copy): Likewise.
2739 (re_node_set_intersect): Likewise.
2740 (re_node_set_init_union): Likewise.
2741 (re_node_set_merge): Likewise.
2742 (re_node_set_insert): Likewise.
2743 (re_dfa_add_node): Likewise.
2744 (re_acquire_state): Likewise.
2745 (re_acquire_state_context): Likewise.
2746 (create_new_state_common): Likewise.
2747 (register_state): Likewise.
2748 (create_ci_new_state): Likewise.
2749 (create_cd_new_state): Likewise.
2750 (re_string_context_at): Remove redundant condition.
2752 2002-01-16 Roger Sayle <roger@eyesopen.com>
2754 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
2756 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
2758 2002-03-11 Jakub Jelinek <jakub@redhat.com>
2760 * sysdeps/i386/elf/configure.in: Fix comment.
2762 * sysdeps/sparc/sparc64/configure.in: New.
2763 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
2764 if .dynamic comes before .got.
2765 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
2767 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
2768 HP_TIMING_ACCUM): Fix typos.
2770 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2772 * string/strfry.c: Add some more randomness to the seed.
2773 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
2775 * po/es.po: Update from translation team.
2776 * po/fr.po: Likewise.
2778 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
2780 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
2781 when determining type of format.
2782 Patch by James Antill <james@anqd.org> [PR libc/2787].
2784 2002-03-04 Jakub Jelinek <jakub@redhat.com>
2786 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
2788 2002-03-11 Roland McGrath <roland@frob.com>
2790 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
2792 * Versions.def (libc): Add GLIBC_2.2.6.
2793 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
2794 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
2795 __errno_location instead of __hurd_errno_location, and don't inline it.
2796 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2797 * hurd/errno.c: New file.
2798 * hurd/Makefile (routines): Add errno.
2800 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2802 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
2803 ridiculously large widths and precisions [PR libc/3026].
2805 2002-03-11 Andreas Jaeger <aj@suse.de>
2807 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
2809 Patch by Susanne Oberhauser <froh@SuSE.de>.
2811 2002-03-11 Ulrich Drepper <drepper@redhat.com>
2813 * inet/rexec.c (ahostbuf): Define as static.
2815 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
2816 (__ctype32_wctrans): Likewise.
2817 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
2818 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
2819 (__ctype32_wctrans): Likewise.
2820 (__ctype32_width): Likewise.
2822 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
2823 They were never exported anyway.
2825 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
2826 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
2828 * include/sys/gmon.h: Declare _gmonparam.
2830 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
2831 symbols for getdents64. They were never exported.
2833 2002-03-09 Roland McGrath <roland@frob.com>
2835 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
2836 Reported by Jon Arney <jarney1@cox.net>.
2838 2002-02-23 Roland McGrath <roland@frob.com>
2840 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
2842 (__hurd_errno_location): Function removed.
2844 2002-03-06 Andreas Jaeger <aj@suse.de>
2846 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
2849 2002-03-04 Andreas Jaeger <aj@suse.de>
2851 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
2853 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
2856 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
2858 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
2860 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
2862 * sysdeps/x86_64/bits/setjmp.h: New.
2864 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
2866 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
2868 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
2870 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
2871 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
2873 2002-02-28 Bo Thorsen <bo@suse.de>
2875 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
2878 2002-03-03 Andreas Jaeger <aj@suse.de>
2880 * sysdeps/x86_64/bits/wordsize.h: New file.
2882 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
2883 * elf/tst-tlsmod1.c: Likewise.
2885 * posix/regcomp.c: Get regex.h from include dir for internal
2888 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
2889 to libc-internal.h and include it.
2890 * include/libc-internal.h: Add __init_misc.
2892 * misc/init-misc.c: Include libc-internal.h for prototypes.
2894 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
2896 * misc/error.c [_LIBC]: Include libioP.h for prototype of
2899 2002-03-03 Ulrich Drepper <drepper@redhat.com>
2901 * posix/regcomp.c: Compatibility changes to allow using the code
2904 2002-02-28 Hartvig Ekner <hartvige@mips.com>
2906 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
2909 2002-03-02 Ulrich Drepper <drepper@redhat.com>
2911 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
2912 of .str elements in the returned data structure.
2914 * elf/elf.h: Add Alpha TLS bits.
2916 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2918 * sysdeps/unix/sysv/linux/nice.c: New file.
2920 2002-03-01 Ulrich Drepper <drepper@redhat.com>
2922 * elf/Makefile (dl-routines): Add dl-origin.
2923 (elide-routines.os): Add dl-origin.
2924 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
2925 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
2927 * include/libc-symbols.c: Define attribute_hidden depending on
2928 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
2930 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
2931 * elf/dl-load.c: Likewise.
2932 * elf/rtld.c: Likewise.
2933 * include/unistd.h: Declare __libc_enable_secure_internal.
2934 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
2935 Use INTUSE with __libc_enable_secure.
2936 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2938 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
2939 * elf/dl-error.c: Likewise,
2940 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
2942 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
2943 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
2944 function definition. Use INTDEF with _dl_get_origin.
2945 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2947 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
2948 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
2950 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
2951 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
2952 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
2954 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
2955 * elf/dl-deps.c: Likewise.
2956 * elf/dl-error.c: Likewise.
2957 * elf/dl-fini.c: Likewise.
2958 * elf/dl-init.c: Likewise.
2959 * elf/dl-load.c: Likewise.
2960 * elf/dl-lookup.c: Likewise.
2961 * elf/dl-reloc.c: Likewise.
2962 * elf/dl-version.c: Likewise.
2963 * elf/do-lookup.h: Likewise.
2964 * sysdeps/arm/dl-machine.h: Likewise.
2965 * sysdeps/cris/dl-machine.h: Likewise.
2966 * sysdeps/hppa/dl-machine.h: Likewise.
2967 * sysdeps/i386/dl-machine.h: Likewise.
2968 * sysdeps/m68k/dl-machine.h: Likewise.
2969 * sysdeps/powerpc/dl-machine.h: Likewise.
2970 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2971 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2972 * sysdeps/sh/dl-machine.h: Likewise.
2973 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
2974 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
2975 * sysdeps/x86_64/dl-machine.h: Likewise.
2976 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
2977 _dl_argv[0]. Use INTUSE with _dl_argv.
2978 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
2979 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
2981 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2983 * elf/rtld.c (_rtld_global): Remove .protected.
2984 (_rtld_local): Strong alias to _rtld_global.
2985 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
2987 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
2988 _rtld_local instead of _rtld_global.
2989 (_rtld_local): Add hidden extern, possibly in .sdata section.
2990 * configure.in: Add tests for visibility attribute and .sdata.
2991 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
2992 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
2993 * sysdeps/arm/dl-machine.h: Likewise.
2994 * sysdeps/generic/ldsodefs.h: Likewise.
2995 * sysdeps/hppa/dl-machine.h: Likewise.
2996 * sysdeps/cris/dl-machine.h: Likewise.
2997 * sysdeps/i386/dl-machine.h: Likewise.
2998 * sysdeps/ia64/dl-machine.h: Likewise.
2999 * sysdeps/m68k/dl-machine.h: Likewise.
3000 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3001 * sysdeps/mips/dl-machine.h: Likewise.
3002 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3003 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3004 * sysdeps/sh/dl-machine.h: Likewise.
3005 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3006 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3007 * sysdeps/x86_64/dl-machine.h: Likewise.
3009 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3011 * login/login.c (login): Always initialize ut_line field
3014 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3016 * sysdeps/i386/Makefile (sysdep_routines): Add
3018 (shared-only-routines): Likewise.
3019 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3020 (shared-only-routines): Likewise.
3021 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3022 (shared-only-routines): Likewise.
3023 * sysdeps/wordsize-32/divdi3.c: New file.
3025 2002-02-28 Ulrich Drepper <drepper@redhat.com>
3027 * locale/iso-4217.def: Remove obsolete currencies for countries
3030 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
3032 * posix/regcomp.c (regcomp): Remove a redundant condition.
3033 (init_word_char): Add a check on malloc failure.
3034 (create_initial_state): Likewise.
3035 (duplicate_node): Likewise.
3036 (calc_eclosure): Likewise.
3037 (calc_eclosure_iter): Likewise.
3038 (parse_expression): Likewise.
3039 (parse_bracket_exp): Remove unnecessary malloc invocations.
3040 (build_equiv_class): Likewise.
3041 (build_charclass): Likewise.
3042 * posix/regex_internal.c (re_node_set_intersect): Add a check
3044 (re_node_set_add_intersect): Likewise.
3045 (re_node_set_merge): Likewise.
3046 (re_acquire_state): Likewise.
3047 (re_acquire_state_context): Likewise.
3048 (create_newstate_common): Likewise.
3049 (register_state): Likewise.
3050 (create_ci_newstate): Likewise.
3051 (create_cd_newstate): Likewise.
3052 * posix/regex_internal.h: Fix prototypes of re_acquire_state
3053 and re_acquire_state_context.
3054 * posix/regexec.c (regexec): Suit it to the error handling of
3056 (re_match): Likewise.
3057 (re_search): Likewise.
3058 (re_search_internal): Add a check on malloc failure.
3059 (acquire_init_state_context): Likewise.
3060 (check_matching): Likewise.
3061 (proceed_next_node): Likewise.
3062 (set_regs): Likewise.
3063 (sift_states_backward): Likewise.
3064 (sift_states_iter_bkref): Likewise.
3065 (add_epsilon_backreference): Likewise.
3066 (transit_state): Likewise.
3067 (transit_state_sb): Likewise.
3068 (transit_state_mb): Likewise.
3069 (transit_state_bkref_loop): Likewise.
3070 (build_trtable): Likewise.
3071 (group_nodes_into_DFAstates): Likewise.
3072 (match_ctx_init): Likewise.
3073 (match_ctx_add_entry): Likewise.
3075 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3077 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3078 l_libname if profiling is enabled [PR libc/2916].
3080 * sysdeps/ia64/dl-tls.h: New file.
3082 2002-02-27 Jakub Jelinek <jakub@redhat.com>
3084 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3085 Work around an Alpha gas bug.
3087 2002-02-27 Ulrich Drepper <drepper@redhat.com>
3089 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3090 uses read to load the catalog.
3091 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3093 2002-02-26 Ulrich Drepper <drepper@redhat.com>
3095 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3096 regex_internal.c, and regex_internal.h.
3097 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3098 * posix/regex.c: Complete rewrite.
3099 * posix/regexec.c: New file.
3100 * posix/regcomp.c: New file.
3101 * posix/regex_internal.c: New file.
3102 * posix/regex_internal.h: New file.
3103 * posix/regex.h (RE_ICASE): New macro.
3104 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3106 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3107 ungetwc. It's a macro.
3108 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3110 Reported by Jason Merrill <jason@redhat.com>.
3112 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3114 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3115 position to fp->_offset if it is set.
3116 * stdio-common/Makefile (tests): Add tst-fdopen.
3117 * stdio-common/tst-fdopen.c: New test.
3119 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3121 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3122 * stdio-common/tst-ungetc.c (main): Add another test.
3124 2002-02-25 Ulrich Drepper <drepper@redhat.com>
3126 * assert/assert-perr.c: Use INTUSE to reference functions and variables
3127 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
3128 aliases. Add prototypes for the new aliases.
3129 * assert/assert.c: Likewise.
3130 * include/libc-symbols.h: Likewise.
3131 * include/stdio.h: Likewise.
3132 * include/netinet/in.h: Likewise.
3133 * include/rpc/auth.h: Likewise.
3134 * include/rpc/auth_unix.h: Likewise.
3135 * include/rpc/key_prot.h: Likewise.
3136 * include/rpc/pmap_prot.h: Likewise.
3137 * include/rpc/pmap_rmt.h: Likewise.
3138 * include/rpc/rpc_msg.h: Likewise.
3139 * include/rpc/xdr.h: Likewise.
3140 * inet/gethstbyad_r.c: Likewise.
3141 * inet/gethstbynm2_r.c: Likewise.
3142 * inet/gethstbynm_r.c: Likewise.
3143 * inet/gethstent_r.c: Likewise.
3144 * inet/in6_addr.c: Likewise.
3145 * libio/__fpurge.c: Likewise.
3146 * libio/filedoalloc.c: Likewise.
3147 * libio/fileops.c: Likewise.
3148 * libio/ftello.c: Likewise.
3149 * libio/ftello64.c: Likewise.
3150 * libio/genops.c: Likewise.
3151 * libio/iofclose.c: Likewise.
3152 * libio/iofdopen.c: Likewise.
3153 * libio/iofflush.c: Likewise.
3154 * libio/iofflush_u.c: Likewise.
3155 * libio/iofgetpos.c: Likewise.
3156 * libio/iofgetpos64.c: Likewise.
3157 * libio/iofgets.c: Likewise.
3158 * libio/iofgets_u.c: Likewise.
3159 * libio/iofopen.c: Likewise.
3160 * libio/iofopncook.c: Likewise.
3161 * libio/iofputs.c: Likewise.
3162 * libio/iofread.c: Likewise.
3163 * libio/iofread_u.c: Likewise.
3164 * libio/iofsetpos.c: Likewise.
3165 * libio/iofsetpos64.c: Likewise.
3166 * libio/ioftell.c: Likewise.
3167 * libio/iofwrite.c: Likewise.
3168 * libio/iogetline.c: Likewise.
3169 * libio/iogets.c: Likewise.
3170 * libio/iogetwline.c: Likewise.
3171 * libio/iolibio.h: Likewise.
3172 * libio/iopadn.c: Likewise.
3173 * libio/iopopen.c: Likewise.
3174 * libio/ioseekoff.c: Likewise.
3175 * libio/ioseekpos.c: Likewise.
3176 * libio/iosetbuffer.c: Likewise.
3177 * libio/iosetvbuf.c: Likewise.
3178 * libio/ioungetc.c: Likewise.
3179 * libio/ioungetwc.c: Likewise.
3180 * libio/iovdprintf.c: Likewise.
3181 * libio/iovsprintf.c: Likewise.
3182 * libio/iovsscanf.c: Likewise.
3183 * libio/libioP.h: Likewise.
3184 * libio/memstream.c: Likewise.
3185 * libio/obprintf.c: Likewise.
3186 * libio/oldfileops.c: Likewise.
3187 * libio/oldiofclose.c: Likewise.
3188 * libio/oldiofdopen.c: Likewise.
3189 * libio/oldiofgetpos.c: Likewise.
3190 * libio/oldiofgetpos64.c: Likewise.
3191 * libio/oldiofopen.c: Likewise.
3192 * libio/oldiofsetpos.c: Likewise.
3193 * libio/oldiofsetpos64.c: Likewise.
3194 * libio/oldiopopen.c: Likewise.
3195 * libio/oldstdfiles.c: Likewise.
3196 * libio/putc.c: Likewise.
3197 * libio/setbuf.c: Likewise.
3198 * libio/setlinebuf.c: Likewise.
3199 * libio/stdfiles.c: Likewise.
3200 * libio/stdio.c: Likewise.
3201 * libio/strops.c: Likewise.
3202 * libio/vasprintf.c: Likewise.
3203 * libio/vscanf.c: Likewise.
3204 * libio/vsnprintf.c: Likewise.
3205 * libio/vswprintf.c: Likewise.
3206 * libio/wfiledoalloc.c: Likewise.
3207 * libio/wfileops.c: Likewise.
3208 * libio/wgenops.c: Likewise.
3209 * libio/wstrops.c: Likewise.
3210 * malloc/mtrace.c: Likewise.
3211 * misc/error.c: Likewise.
3212 * misc/syslog.c: Likewise.
3213 * nss/getXXbyYY_r.c: Likewise.
3214 * nss/getXXent_r.c: Likewise.
3215 * nss/hosts-lookup.c: Likewise.
3216 * stdio-common/getw.c
3217 * stdio-common/printf-prs.c: Likewise.
3218 * stdio-common/printf_fp.c: Likewise.
3219 * stdio-common/printf_size.c: Likewise.
3220 * stdio-common/putw.c: Likewise.
3221 * stdio-common/scanf.c: Likewise.
3222 * stdio-common/sprintf.c: Likewise.
3223 * stdio-common/tmpfile64.c: Likewise.
3224 * stdio-common/vfprintf.c: Likewise.
3225 * stdio-common/vfscanf.c: Likewise.
3226 * stdlib/strfmon.c: Likewise.
3227 * sunrpc/auth_des.c: Likewise.
3228 * sunrpc/auth_none.c: Likewise.
3229 * sunrpc/auth_unix.c: Likewise.
3230 * sunrpc/authdes_prot.c: Likewise.
3231 * sunrpc/authuxprot.c: Likewise.
3232 * sunrpc/clnt_perr.c: Likewise.
3233 * sunrpc/clnt_raw.c: Likewise.
3234 * sunrpc/clnt_tcp.c: Likewise.
3235 * sunrpc/clnt_udp.c: Likewise.
3236 * sunrpc/clnt_unix.c: Likewise.
3237 * sunrpc/key_call.c: Likewise.
3238 * sunrpc/key_prot.c: Likewise.
3239 * sunrpc/openchild.c: Likewise.
3240 * sunrpc/pm_getmaps.c: Likewise.
3241 * sunrpc/pm_getport.c: Likewise.
3242 * sunrpc/pmap_clnt.c: Likewise.
3243 * sunrpc/pmap_prot.c: Likewise.
3244 * sunrpc/pmap_prot2.c: Likewise.
3245 * sunrpc/pmap_rmt.c: Likewise.
3246 * sunrpc/rpc_cmsg.c: Likewise.
3247 * sunrpc/rpc_prot.c: Likewise.
3248 * sunrpc/svc_authux.c: Likewise.
3249 * sunrpc/svc_raw.c: Likewise.
3250 * sunrpc/svc_simple.c: Likewise.
3251 * sunrpc/svc_tcp.c: Likewise.
3252 * sunrpc/svc_udp.c: Likewise.
3253 * sunrpc/svc_unix.c: Likewise.
3254 * sunrpc/xdr.c: Likewise.
3255 * sunrpc/xdr_array.c: Likewise.
3256 * sunrpc/xdr_mem.c: Likewise.
3257 * sunrpc/xdr_rec.c: Likewise.
3258 * sunrpc/xdr_ref.c: Likewise.
3259 * sunrpc/xdr_stdio.c: Likewise.
3260 * sysdeps/generic/_strerror.c: Likewise.
3261 * sysdeps/generic/printf_fphex.c: Likewise.
3262 * sysdeps/generic/tmpfile.c: Likewise.
3263 * sysdeps/gnu/errlist.awk: Likewise.
3264 * sysdeps/gnu/errlist.c: Likewise.
3266 * libio/Makefile (routines): Remove iosprint.
3267 * libio/iosprintf.c: Removed
3270 2002-02-24 Ulrich Drepper <drepper@redhat.com>
3272 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
3273 non_dynamic_init and exported now.
3274 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
3275 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
3277 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3278 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3279 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3281 2002-02-23 Ulrich Drepper <drepper@redhat.com>
3283 * elf/dl-close.c (free_slotinfo): Check for end of list and return
3286 * locale/iso-639.def: Add language codes for Walloon.
3288 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
3289 total number of relocations performed.
3291 * elf/sprof.c (load_profdata): If do_test provide information as
3292 to why loading failed.
3293 * elf/dl-profile.c (_dl_start_profile): Initialize all of
3296 * csu/set-init.c: Moved to...
3297 * sysdeps/mach/hurd/set-init.c: ...here. New file.
3298 * csu/Makefile: Don't compile set-init.
3299 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
3300 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
3302 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3303 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3304 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
3306 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
3309 2002-02-22 Ulrich Drepper <drepper@redhat.com>
3311 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
3312 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
3313 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
3314 (_dl_deallocate_tls): New function.
3315 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
3318 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3320 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
3321 * stdio-common/tst-fseek.c (main): Add test for this.
3323 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
3325 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
3327 2002-02-19 Jakub Jelinek <jakub@redhat.com>
3329 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
3330 pointer before dereferencing.
3332 2002-02-18 Roland McGrath <roland@frob.com>
3334 * sysdeps/mach/hurd/times.c: Fix typo in last change.
3336 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
3337 Use task_policy in place of task_priority.
3339 * sysdeps/generic/bits/mman.h
3340 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
3341 * sysdeps/mach/msync.c: New file.
3343 * sysdeps/mach/powerpc/syscall.S: New file.
3345 * mach/msg.c [MACH_MSG_OVERWRITE]
3346 (__mach_msg_trap, __mach_msg_overwrite): New functions.
3347 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
3349 * sysdeps/mach/configure.in: Check for clock.defs to put into
3350 mach_interface_list.
3351 * sysdeps/mach/configure: Regenerated.
3353 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
3354 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
3355 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
3356 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
3357 (mach-shortcuts): Add device_read_overwrite_request,
3358 device_read_overwrite, vm_read_overwrite, thread_switch.
3360 * configure.in (base_machine): Set to $machine by default.
3361 * configure: Regenerated.
3363 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
3364 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
3365 * sysdeps/mach/configure: Regenerated.
3366 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
3368 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
3370 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
3372 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
3373 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
3375 2002-02-17 Roland McGrath <roland@frob.com>
3377 * sysdeps/mach/hurd/times.c
3378 [NO_CREATION_TIME] (startup_time): New static variable.
3379 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
3380 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
3381 creation_time from task_basic_info.
3382 (__times): Use __gettimeofday instead of __host_get_time.
3384 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
3385 Use untyped Mach IPC message format.
3387 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
3389 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
3390 _S_catch_exception_raise_state_identity,
3391 _hurdsig_fault_catch_exception_raise_state,
3392 _hurdsig_fault_catch_exception_raise_state_identity.
3394 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
3396 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
3397 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
3399 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
3400 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
3402 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
3403 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
3404 them as no-op macros.
3405 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
3406 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
3408 * sysdeps/powerpc/dl-machine.h
3409 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
3411 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
3412 Use untyped Mach IPC message format.
3414 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
3415 Handle untyped Mach IPC message formats.
3417 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
3418 Expect different argument conventions when this is defined.
3419 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
3420 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
3421 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
3422 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
3423 for OSF Mach variant.
3424 (faulted): Use mig_reply_error_t for REPLY.
3425 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
3426 in __thread_set_exception_ports call.
3427 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
3428 __mach_port_set_attributes in place of __mach_port_set_qlimit.
3430 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
3431 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
3432 on Darwin, which includes bogons.
3434 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
3435 variable LOADBASE so it's not declared when it's not used.
3437 2002-02-16 Roland McGrath <roland@frob.com>
3439 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
3440 to use BI.creation_time.
3442 * mach/Machrules (MIG): Add -x c to CPP value passed down.
3444 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
3445 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
3446 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
3447 host_page_size instead of vm_statistics.
3449 * sysdeps/mach/Makefile (mach-before-compile): Don't include
3450 mach_interface.h here, since not all variants use that name.
3452 * sysdeps/mach/configure.in: Add some checks for Mach headers
3453 to ensure a sane installation.
3454 (mach_interface_list): Define this variable by checking for .defs
3455 files found in various variants.
3456 * configure.in (mach_interface_list): AC_SUBST this.
3457 * config.make.in (mach-interface-list): New substituted variable.
3458 * mach/Makefile (user-interfaces): Define this using the value
3459 of $(mach-interface-list) instead of mach, mach4.
3460 Updated other references to mach_interface to use it as well.
3462 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
3464 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
3465 mig_reply_error_t for OSF Mach variant.
3467 * mach/Makefile (routines): Remove bootprivport.
3468 * mach/bootprivport.c: File removed. It has never been used.
3470 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
3471 Grok the OSF flavor of message format.
3472 (mach_msg_destroy_port): For MAKE_SEND and
3473 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
3474 no-senders notification.
3476 2002-02-06 Roland McGrath <roland@frob.com>
3478 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
3479 to here if 2.0 compatibility enabled ...
3480 (libc: GLIBC_2.1.3): ... from here.
3482 2002-02-15 Ulrich Drepper <drepper@redhat.com>
3484 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
3486 * elf/dl-close.c (_dl_close): Likewise.
3488 2002-02-14 Ulrich Drepper <drepper@redhat.com>
3490 * elf/Makefile: Add rules to build and run tst-tls8.
3491 * elf/tst-tls8.c: New file.
3492 * elf/tst-tlsmod4.c: New file.
3494 * stdlib/test-a64l.c (tests): Add more test cases.
3496 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
3497 Reported by Walter Harms <WHarms@bfs.de>.
3499 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
3501 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
3502 definitions for struct sigcontext.
3503 Suggested by David Mosberger-Tang.
3505 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3507 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
3508 for removing reference of module in slotinfo list.
3509 (_dl_close): Use remove_slotinfo.
3510 * sysdeps/generic/dl-tls.c: General pretty printing.
3511 (oom): Define only if SHARED.
3512 (_dl_next_tls_modid): Correct starting point for the case we assume
3513 there is a gap. Add missing instruction grouping (doh!). Correct
3514 tests for reaching maximum index.
3515 * elf/Makefile: Add rules to build and run tst-tls7.
3516 * elf/tst-tls7.c: New file.
3517 * elf/tst-tlsmod3.c: New file.
3519 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
3521 * elf/tst-tlsmod2.c: Likewise.
3523 * elf/dl-close.c (_dl_close): When closing an object using TLS
3524 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
3525 true. Increment dl_tls_generation only if we closed any TLS-using
3527 * elf/tst-tls6.c: New file.
3528 * elf/Makefile: Add rules to build and run tst-tls6.
3530 * po/da.po: Update from translation team.
3532 * locale/categories.def: Fix typo [PR libc/2948].
3533 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
3535 * locale/iso-4217.def: Update from official version [PR libc/2950].
3536 * glibcbug.in: Honor TMPDIR [PR libc/2951].
3537 * locale/programs/ld-collate.c (collate_finish): Bail out with a
3538 message if input is too confusion instead of using assert.
3539 (collate_read): Don't crash on unknown symbol [PR libc/2952].
3540 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
3542 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
3543 * elf/tst-tls2.c: Likewise.
3544 * elf/tst-tls3.c: Likewise.
3546 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3548 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
3550 2002-02-13 Ulrich Drepper <drepper@redhat.com>
3552 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
3553 if this is really necessary.
3555 * elf/dl-close.c (_dl_close): Implement freeing entries in the
3557 (free_mem): Free memory for the slotinfo array if possible.
3559 2002-02-12 Andreas Schwab <schwab@suse.de>
3561 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
3563 2002-02-12 Ulrich Drepper <drepper@redhat.com>
3565 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
3567 (oom): New function.
3568 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
3569 (_dl_determine_tlsoffset): Likewise.
3570 (_dl_allocate_tls): Likewise.
3571 (__TLS_GET_ADDR): Define if not already defined.
3572 (_dl_tls_symaddr): New function.
3573 (allocate_and_init): New function.
3574 (__tls_get_addr): Actually implement handling of generation counter
3575 and deferred allocation.
3576 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
3577 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3579 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
3580 Declare _dl_tls_symaddr.
3581 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
3583 * include/link.h (struct link_map): Remove l_tls_nextimage and
3585 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
3586 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
3587 (_dl_vsym): Likewise.
3588 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
3590 (dl_main): Allow PT_TLS be present for empty segment. Remove
3591 nextimage list handling. Instead add all modules using TLS to
3592 dl_tls_dtv_slotinfo_list.
3593 * elf/dl-open.c (dl_open_worker): After successfully loading all
3594 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
3595 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
3596 empty segment don't do anything. Remove handling of initimage list.
3597 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
3598 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
3599 * elf/dl-minimal.c: Define __libc_memalign.
3600 * elf/dl-support.c: Remove _dl_initimage_list. Add
3601 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3603 * include/stdlib.h: Declare __libc_memalign.
3605 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
3606 * elf/tst-tls4.c: New file.
3607 * elf/tst-tls5.c: New file.
3608 * elf/tst-tlsmod2.c: New file.
3610 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
3612 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
3614 * elf/tst-tls1.c: Use test-skeleton.c.
3615 * elf/tst-tls2.c: Likewise.
3616 * elf/tst-tls3.c: Likewise.
3618 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
3620 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3622 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
3624 2002-02-10 Ulrich Drepper <drepper@redhat.com>
3626 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
3628 * elf/tst-tls3.c: New file.
3629 * elf/tst-tlsmod1.c: New file.
3630 * elf/Makefile: Add rules to build and run tst-tls3.
3632 * sysdeps/i386/dl-machine.h: Include <tls.h>.
3633 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
3636 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
3638 * po/fr.po: Update from translation team.
3640 * elf/tls-macros.h: Add alternative macros for use in PIC.
3642 * elf/dl-lookup.c: Include <tls.h>.
3643 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
3645 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
3646 required by passing pointer to last element of the list.
3648 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
3649 l_tls_initimage to a place where it actually is performed.
3651 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
3652 after globfree() calls.
3654 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
3655 (openaux): Pass open_mode as new last argument to _dl_map_object.
3656 (_dl_map_object_deps): Add new argument open_mode. Initialize
3657 open_mode element of args variable with it.
3658 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
3659 _dl_map_object_deps.
3660 * elf/rtld.c (dl_main): Add zero as last parameter to
3661 _dl_map_object_deps call.
3662 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
3663 * elf/nodlopen2.c: New file.
3664 * elf/nodlopenmod2.c: New file.
3665 * elf/Makefile: Add rules to build and run nodlopen2.
3667 * elf/tst-tls1.c: Move TLS helper macros to...
3668 * elf/tls-macros.h: ...here. New file.
3669 * elf/tst-tls2.c: New file.
3670 * elf/Makefile (tests): Add tst-tls2.
3671 (distribute): Add tls-macros.h.
3673 * po/sv.po: Update from translation team.
3675 * elf/tst-tls1.c (main): Add complete set of tests. Split
3676 architecture specific definitions from the actual test code.
3678 * po/tr.po: Update from translation team.
3680 2002-02-09 Ulrich Drepper <drepper@redhat.com>
3682 * elf/Makefile (tests): Add tst-tls1.
3683 * elf/tst-tls1.c: New file.
3685 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
3686 alignment of TCB for now.
3688 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
3689 initialization image for the application itself.
3691 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
3692 loop to initialize TLS block.
3694 2002-02-08 Richard Henderson <rth@redhat.com>
3696 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
3697 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
3699 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
3701 2002-02-09 Jakub Jelinek <jakub@redhat.com>
3703 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
3705 2002-02-08 Ulrich Drepper <drepper@redhat.com>
3707 * po/ca.po: Update from translation team.
3708 * po/sk.po: Likewise.
3710 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
3711 (dl_main): Move dtv/static TLS handling before relocation.
3712 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
3713 TLS_INIT_TP to allocate and install the dtv/static TLS block.
3714 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
3715 so far uses TLS initialize GL(dl_tls_static_size) and
3716 GL(dl_tls_static_align) to account for the TCB.
3717 (_dl_allocate_tls): New function.
3718 * sysdeps/generic/ldsodefs.h (rtld_global): Add
3719 _dl_initial_dtv_malloced.
3721 * configure.in: Test for __builtin_memset more realistically.
3723 * csu/version.c (banner): If TLS support is available say so.
3725 2002-02-04 H.J. Lu <hjl@gnu.org>
3727 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
3729 (__dl_runtime_resolve): Likewise.
3731 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
3734 2001-11-15 H.J. Lu <hjl@gnu.org>
3736 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
3737 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
3739 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
3741 2002-02-07 H.J. Lu <hjl@gnu.org>
3743 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
3745 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
3748 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3750 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
3752 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
3753 ___tls_get_addr_internal.
3754 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
3756 * po/ko.po: Update from translation team.
3758 2002-02-07 Jakub Jelinek <jakub@redhat.com>
3760 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
3761 attribute, change __pad{1,2} type to unsigned int.
3762 (struct stat64): Remove packed attribute.
3764 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3766 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
3768 2002-02-07 Andreas Schwab <schwab@suse.de>
3770 * configure.in: Fix check for -zcombreloc.
3772 2002-02-06 H.J. Lu <hjl@gnu.org>
3774 * config.h.in (HAVE_BUILTIN_MEMSET): New.
3775 * configure.in: Check if __builtin_memset really works.
3776 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
3777 __GNUC_PREREQ (2, 96) before using __builtin_memset.
3779 2002-02-06 Jakub Jelinek <jakub@redhat.com>
3781 * io/bug-ftw3.c (main): Don't try the test if root.
3783 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3785 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
3787 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
3788 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
3789 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
3791 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
3792 a weak alias for __clone.
3793 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
3794 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
3795 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
3796 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
3797 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
3798 a weak alias for __mmap64.
3800 2002-02-05 H.J. Lu <hjl@gnu.org>
3802 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
3803 (atomic_add): Likewise.
3804 (compare_and_swap): Likewise.
3805 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
3807 2002-02-07 Ulrich Drepper <drepper@redhat.com>
3809 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
3811 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
3812 alignment of the TCB and store total size and alignment of static
3813 TLS block in _dl_tls_static_size and _dl_tls_static_align.
3814 tls_index is a typedef.
3815 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
3816 _dl_tls_static_align.
3817 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
3818 * elf/dl-support.c: Define _dl_tls_static_size and
3819 _dl_tls_static_align.
3821 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3823 * configure.in: Add --without-tls option.
3824 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
3825 --without-tls is given.
3827 * sysdeps/generic/dl-tls.c: Include <tls.h>.
3829 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
3831 2002-02-06 Roland McGrath <roland@frob.com>
3833 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
3834 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
3836 * scripts/versions.awk: Improve error message for missing version.
3837 Each version inherits from the last one only if they have the same
3838 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
3839 but not GLIBC_x and FOO_y.
3841 * scripts/firstversions.awk: Handle libraries that don't have each
3842 particular version named in the third column of shlib-versions.
3844 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
3846 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3848 * Versions.def [ld]: Add GLIBC_2.3.
3849 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
3850 * elf/Makefile (dl-routines): Add dl-tls.
3851 (distribute): Add dl-tls.h.
3852 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3853 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3854 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
3855 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
3856 along with the other info in the link map. Change queueing of init
3857 images for double linked list. Use _dl_next_tls_modid to compute
3859 * elf/rtld.c (_dl_start_final): Store alignment requirement
3860 along with the other info in rtld map and executable map.
3861 (dl_main): Add ld.so to the init image list if necessary. Compute
3862 final module ID with _dl_next_tls_modid.
3863 * include/link.h (struct link_map): Add l_tls_previmage and
3865 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
3866 * sysdeps/i386/elf/Versions: New file.
3867 * sysdeps/generic/dl-tls.c: New file.
3868 * sysdeps/generic/dl-tls.h: New file.
3869 * sysdeps/i386/dl-tls.h: New file.
3871 2002-02-06 Roland McGrath <roland@frob.com>
3873 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
3874 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
3876 2002-01-05 Roland McGrath <roland@frob.com>
3878 * sysdeps/mach/configure.in: New file.
3879 * sysdeps/mach/configure: New generated file.
3881 * mach/Makefile (user-interfaces): Remove default_pager_helper.
3882 It has never been used by anything.
3884 2002-02-06 H.J. Lu <hjl@gnu.org>
3886 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
3889 2002-02-06 Ulrich Drepper <drepper@redhat.com>
3891 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
3892 attribute((packed)) to counter stupid people misusing gcc options.
3893 (struct stat64): Likewise.
3895 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3897 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
3898 the variables which are used as booleans.
3900 2002-02-06 Andreas Jaeger <aj@suse.de>
3902 * include/libc-symbols.h (INTUSE): Renamed from INT.
3903 * elf/dl-deps.c: Change users.
3904 * sysdeps/generic/dl-sysdep.c: Likewise.
3905 * sysdeps/generic/dl-cache.c: Likewise.
3906 * elf/dl-reloc.c: Likewise.
3907 * elf/rtld.c: Likewise.
3908 * elf/dl-version.c: Likewise.
3909 * elf/dl-load.c: Likewise.
3910 * elf/dl-dst.h: Likewise.
3911 * elf/dl-init.c: Likewise.
3912 * elf/dl-error.c: Likewise.
3913 * elf/dl-fini.c: Likewise.
3914 * elf/dl-runtime.c: Likewise.
3915 * elf/do-lookup.h: Likewise.
3917 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
3919 * stdio-common/_itowa.h: Likewise.
3921 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3923 * elf/dl-minimal.c: Define _itoa_lower_digits.
3925 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
3928 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
3929 loading modules with the DF_STATIC_TLS flag set.
3930 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
3932 * include/link.h (struct link_map): Add l_flags field.
3933 * elf/elf.h (DF_STATIC_TLS): New definition.
3935 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
3936 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
3938 * elf/rtld.c (process_dl_debug): Correct printing help message.
3939 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
3942 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
3943 definition and pass &errno in use of this variable.
3944 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
3946 2002-02-04 Andreas Schwab <schwab@suse.de>
3948 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
3949 * locale/programs/charmap-dir.c: Wrap calls that output messages
3950 with WITH_CUR_LOCALE. Include "localedef.h" first.
3951 * locale/programs/charmap.c: Likewise.
3952 * locale/programs/ld-address.c: Likewise.
3953 * locale/programs/ld-collate.c: Likewise.
3954 * locale/programs/ld-ctype.c: Likewise.
3955 * locale/programs/ld-identification.c: Likewise.
3956 * locale/programs/ld-measurement.c: Likewise.
3957 * locale/programs/ld-messages.c: Likewise.
3958 * locale/programs/ld-monetary.c: Likewise.
3959 * locale/programs/ld-name.c: Likewise.
3960 * locale/programs/ld-numeric.c: Likewise.
3961 * locale/programs/ld-paper.c: Likewise.
3962 * locale/programs/ld-telephone.c: Likewise.
3963 * locale/programs/ld-time.c: Likewise.
3964 * locale/programs/linereader.c: Likewise.
3965 * locale/programs/linereader.h: Likewise.
3966 * locale/programs/localedef.c: Likewise.
3967 * locale/programs/locfile.c: Likewise.
3968 * locale/programs/repertoire.c: Likewise.
3970 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3972 * elf/rtld.c (_dl_start_final): Determine load address to locate
3973 ehdr with GL(dl_rtld_map).l_map_start.
3975 * po/ca.po: Update from translation team.
3977 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
3978 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
3980 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3982 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
3984 2002-02-04 Ulrich Drepper <drepper@redhat.com>
3986 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
3987 * include/link.h (struct link_map): Add various members for TLS
3989 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3990 _rtld_tlsoffset, add _dl_initimage_list.
3991 * sysdeps/i386/dl-lookupcfg.h: New file.
3992 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
3993 TLS relocation. When using TLS we now use RESOLVE_MAP.
3994 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
3997 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
4000 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
4001 thread-pointer as soon as possible.
4002 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
4003 elements in rtld_global.
4004 * sysdeps/generic/tls.h: New file.
4005 * elf/Makefile (distribute): Add tls.h.
4006 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
4007 relocations. Not complete yet.
4009 * resolv/resolv.h: Allow user to define __need_res_state and only
4010 define __res_start structure then.
4011 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
4013 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4014 dl_cpuclock_offset initialization to _dl_start_final.
4015 (_dl_show_auxv): Avoid unnecessary sign extension.
4016 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4018 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4020 * config.h.in: Add HAVE_TLS_SUPPORT.
4021 * sysdeps/i386/elf/configure.in: New file.
4023 2002-02-03 Andreas Schwab <schwab@suse.de>
4025 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4026 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
4028 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
4030 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4031 alloca if the memory reqirements are too high.
4033 2002-02-03 Ulrich Drepper <drepper@redhat.com>
4035 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4036 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4037 the former is available anyway and speed isn't important here.
4038 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4039 * elf/dl-version.c (match_symbol): Likewise.
4040 (_dl_check_map_versions): Likewise.
4041 * elf/rtld.c (process_envvars): Likewise.
4042 (print_statistics): Likewise.
4043 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4044 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
4045 bases. Add assert to catch uses of unimplemented features.
4046 (__strsep): Add assert to catch uses of unimplemented features.
4047 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
4048 and avoid inline optimization.
4049 * elf/rtld.c (process_envvars): Likewise.
4050 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4051 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4052 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4054 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4056 * stdio-common/_itoa.h: Minor simplifications of the code.
4057 * stdio-common/_itoa.c: Likewise.
4059 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4060 instead of _dl_printf for debugging info output.
4062 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4063 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4065 2002-02-01 H.J. Lu <hjl@gnu.org>
4067 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
4068 (atomic_add): Likewise.
4069 (compare_and_swap): Return 0 only when failed to compare. Use
4072 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4075 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
4077 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4079 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4081 * elf/dl-minimal.c (__strsep): New minimal implementation.
4083 2002-02-02 Paul Eggert <eggert@twinsun.com>
4085 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4086 (__mktime_internal): If no tm_isdst is requested, prefer solutions
4087 with tm_isdst > 0 when the requested time falls within a
4088 spring-forward gap [PR libc/2894].
4090 2002-02-03 Andreas Schwab <schwab@suse.de>
4092 * stdio-common/tst-rndseek.c: Increase timeout.
4094 2002-02-02 Ulrich Drepper <drepper@redhat.com>
4096 Change ld.so to not use functions which are exported. One cannot
4097 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
4099 * include/libc-symbols.h: Define INT and INTDEF.
4100 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4101 _dl_signal_error_internal, _dl_map_object_internal,
4102 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4103 _dl_lookup_versioned_symbol_internal,
4104 _dl_relocate_object_internal, _dl_debug_state_internal,
4105 _dl_start_profile_internal, and _dl_unload_cache_internal.
4106 * include/dlfcn.h: Declare _dl_catch_error_internal.
4107 * elf/rtld.c: Use INT for calls to any of the *_internal functions
4108 above. Add INTDEF to function definitions.
4109 * elf/dl-debug.c: Likewise.
4110 * elf/dl-deps.c: Likewise.
4111 * elf/dl-dst.h: Likewise.
4112 * elf/dl-error.c: Likewise.
4113 * elf/dl-fini.c: Likewise.
4114 * elf/dl-init.c: Likewise.
4115 * elf/dl-load.c: Likewise.
4116 * elf/dl-lookup.c: Likewise.
4117 * elf/dl-misc.c: Likewise.
4118 * elf/dl-open.c: Likewise.
4119 * elf/dl-profile.c: Likewise.
4120 * elf/dl-reloc.c: Likewise.
4121 * elf/dl-runtime.c: Likewise.
4122 * elf/dl-version.c: Likewise.
4123 * elf/do-lookup.h: Likewise.
4124 * sysdeps/generic/dl-cache.c: Likewise.
4125 * sysdeps/generic/dl-sysdep.c: Likewise.
4126 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4127 instead of _dl_init.
4128 * sysdeps/arm/dl-machine.h: Likewise.
4129 * sysdeps/cris/dl-machine.h: Likewise.
4130 * sysdeps/hppa/dl-machine.h: Likewise.
4131 * sysdeps/i386/dl-machine.h: Likewise.
4132 * sysdeps/ia64/dl-machine.h: Likewise.
4133 * sysdeps/m68k/dl-machine.h: Likewise.
4134 * sysdeps/mips/dl-machine.h: Likewise.
4135 * sysdeps/mips/mips64/dl-machine.h: Likewise.
4136 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4137 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4138 * sysdeps/sh/dl-machine.h: Likewise.
4139 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4140 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4141 * sysdeps/x86_64/dl-machine.h: Likewise.
4142 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4144 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4145 and _dl_debug_initialize.
4147 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
4149 * elf/rtld.c (dl_main): Avoid strrchr.
4150 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4151 result of readlink. Search from the back for '/'.
4153 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4154 strncpy if possible.
4156 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
4158 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
4159 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4160 strspn, and strcspn.
4161 (process_envvars): Don't use strcspn.
4163 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4164 (_dl_dst_substitute): Likewise.
4166 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4168 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4169 code which is never used when relocating ld.so itself.
4171 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4172 starting ld.so itself. Move l_addr variable initialization closer
4174 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
4176 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4178 * Versions.def (libc): Add GLIBC_PRIVATE.
4179 (libdb, libnss_db, libdb1): Remove.
4180 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4181 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4182 (libpthread): Add GLIBC_PRIVATE.
4183 (libresolv): Likewise, remove GLIBC_2.1.
4184 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4185 GLIBC_2.2.3, GLIBC_2.3.
4186 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4187 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4188 _dl_sym, _dl_vsym): Likewise.
4189 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4190 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4191 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4192 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4193 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4194 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4195 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4196 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4198 (_dl_object_relocation_scope): Remove.
4199 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4200 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4201 __gconv_cache): Move to GLIBC_PRIVATE.
4202 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4203 __internal_setnetgrent): Likewise.
4204 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4205 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4206 * locale/Versions (__collate_element_hash, __collate_element_strings,
4207 __collate_symbol_classes, __collate_symbol_hash,
4208 __collate_symbol_strings, _nl_current_LC_COLLATE,
4209 _nl_current_LC_CTYPE): Likewise.
4210 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4211 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4212 (libnss_nis, libnss_nisplus): Likewise.
4213 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4214 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4215 (libnss_files): Move all symbols to GLIBC_PRIVATE.
4216 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4217 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4218 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4219 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4220 __ns_get16, __ns_samename): Likewise.
4221 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4222 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
4224 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
4225 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
4226 __libc_connect): Likewise.
4227 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
4229 * stdlib/Versions (__libc_system): Likewise.
4230 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
4231 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
4232 * sysdeps/ia64/fpu/Versions: Likewise.
4233 * sysdeps/ia64/Versions: Likewise.
4234 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4235 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
4237 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
4238 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
4239 __libc_sigaction): Likewise.
4240 * termios/Versions (__libc_tcdrain): Likewise.
4242 * misc/sys/cdefs (__attribute_noinline__): Define.
4243 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
4244 __attribute_noinline__.
4246 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
4247 * elf/dl-xstat64.c: New file.
4248 * elf/dl-fxstat64.c: New file.
4249 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
4250 don't export __fxstat64 at multiple versions.
4251 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
4252 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
4254 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
4256 * locale/program/ld-collate.c (collate_finish): Assign a wide
4257 char collation sequence value to multi character collating
4258 elements, and avoid over writing by non-character elements.
4260 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4262 * elf/Makefile (distribute): Add dl-procinfo.c.
4263 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
4264 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
4266 2002-02-01 Jakub Jelinek <jakub@redhat.com>
4268 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
4270 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
4271 _rtld_global struct.
4272 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4273 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4274 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4275 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
4276 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
4277 _dl_fpu_control_set): Remove unused externs.
4278 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
4279 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
4280 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
4281 related variables in _rtld_global struct.
4282 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4283 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
4286 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4288 * sysdeps/generic/dl-procinfo.c: New file.
4290 2002-02-01 Andreas Schwab <schwab@suse.de>
4292 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
4294 2002-02-01 Ulrich Drepper <drepper@redhat.com>
4296 * elf/rtld.c (_dl_start): Mark as internal_function.
4297 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
4299 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
4300 General pretty printing.
4302 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4304 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
4305 * elf/dl-reloc.c: Pretty printing.
4306 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
4307 procinfo-related variables in rtld_global struct.
4308 * elf/dl-support.c: Likewise.
4309 * elf/rtld.c: Likewise.
4310 * sysdeps/i386/i686/Makefile: Likewise.
4311 * sysdeps/i386/i686/hp-timing.c: Likewise.
4312 * sysdeps/i386/i686/hp-timing.h: Likewise.
4313 * sysdeps/ia64/Makefile: Likewise.
4314 * sysdeps/ia64/hp-timing.c: Likewise.
4315 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4316 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4317 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
4318 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
4319 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4320 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
4321 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4322 * sysdeps/x86_64/Makefile: Likewise.
4324 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4325 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
4326 _dl_debug_fd to rtld_global.
4327 * elf/Versions: Likewise.
4328 * elf/dl-close.c: Likewise.
4329 * elf/dl-iteratephdr.c: Likewise.
4330 * elf/dl-lookup.c: Likewise.
4331 * elf/dl-misc.c: Likewise.
4332 * elf/dl-open.c: Likewise.
4333 * elf/dl-support.c: Likewise.
4334 * elf/do-lookup.h: Likewise.
4335 * elf/rtld.c: Likewise.
4336 * sysdeps/generic/dl-cache.c: Likewise.
4337 * sysdeps/generic/dl-sysdep.c: Likewise.
4338 * sysdeps/ia64/Versions: Likewise.
4339 * sysdeps/unix/clock_gettime.c: Likewise.
4340 * sysdeps/unix/clock_settime.c: Likewise.
4341 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4342 * sysdeps/sparc/Versions: Removed.
4343 * sysdeps/i386/i686/Versions : Removed.
4344 * sysdeps/x86_64/Versions: Removed.
4345 * configure.in: Define HAVE_PROTECTED if .protected is available.
4346 * config.h.in: Add entry for HAVE_PROTECTED.
4348 2002-01-31 Jakub Jelinek <jakub@redhat.com.
4350 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
4351 code in struct _rtld_global. Export this struct, remove all
4352 exports for the signal variables.
4353 * sysdeps/arm/dl-machine: Likewise.
4354 * sysdeps/generic/dl-origin: Likewise.
4355 * sysdeps/generic/dl-sysdep: Likewise.
4356 * sysdeps/generic/dl-cache: Likewise.
4357 * sysdeps/hppa/dl-fptr: Likewise.
4358 * sysdeps/hppa/dl-machine: Likewise.
4359 * sysdeps/cris/dl-machine: Likewise.
4360 * sysdeps/i386/dl-machine: Likewise.
4361 * sysdeps/ia64/dl-machine: Likewise.
4362 * sysdeps/m68k/dl-machine: Likewise.
4363 * sysdeps/mach/hurd/dl-sysdep: Likewise.
4364 * sysdeps/mips/mips64/dl-machine: Likewise.
4365 * sysdeps/mips/dl-machine: Likewise.
4366 * sysdeps/powerpc/elf/libc-start: Likewise.
4367 * sysdeps/powerpc/dl-machine: Likewise.
4368 * sysdeps/powerpc/dl-start: Likewise.
4369 * sysdeps/sparc/sparc32/dl-machine: Likewise.
4370 * sysdeps/sparc/sparc64/dl-machine: Likewise.
4371 * sysdeps/sh/dl-machine: Likewise.
4372 * sysdeps/s390/s390-32/dl-machine: Likewise.
4373 * sysdeps/s390/s390-64/dl-machine: Likewise.
4374 * sysdeps/unix/sysv/aix/libc-start: Likewise.
4375 * sysdeps/unix/sysv/aix/start-libc: Likewise.
4376 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
4377 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
4378 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
4379 * sysdeps/x86_64/dl-machine: Likewise.
4381 2002-01-31 Ulrich Drepper <drepper@redhat.com>
4383 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
4386 2002-01-31 Andreas Schwab <schwab@suse.de>
4388 * sysdeps/posix/readv.c: Check for ssize_t overflow.
4390 2002-01-31 Andreas Schwab <schwab@suse.de>
4392 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
4393 reference to _dl_pagesize.
4395 2002-01-30 Ulrich Drepper <drepper@redhat.com>
4397 * Versions.def [ld]: Add GLIBC_2.3.
4398 * elf/dl-addr.c: Move global variables for SHARED code in struct
4399 _rtld_global. Export this struct, remove all exports for the
4401 * elf/dl-close.c: Likewise.
4402 * elf/dl-conflict.c: Likewise.
4403 * elf/dl-debug.c: Likewise.
4404 * elf/dl-deps.c: Likewise.
4405 * elf/dl-dst.h: Likewise.
4406 * elf/dl-error.c: Likewise.
4407 * elf/dl-fini.c: Likewise.
4408 * elf/dl-init.c: Likewise.
4409 * elf/dl-iteratephdr.c: Likewise.
4410 * elf/dl-libc.c: Likewise.
4411 * elf/dl-load.c: Likewise.
4412 * elf/dl-lookup.c: Likewise.
4413 * elf/dl-minimal.c: Likewise.
4414 * elf/dl-object.c: Likewise.
4415 * elf/dl-open.c: Likewise.
4416 * elf/dl-profile.c: Likewise.
4417 * elf/dl-profstub.c: Likewise.
4418 * elf/dl-reloc.c: Likewise.
4419 * elf/dl-runtime.c: Likewise.
4420 * elf/dl-support.c: Likewise.
4421 * elf/dl-sym.c: Likewise.
4422 * elf/dl-version.c: Likewise.
4423 * elf/do-lookup.h: Likewise.
4424 * elf/do-rel.h: Likewise.
4425 * elf/dynamic-link.h: Likewise.
4426 * elf/rtld.c: Likewise.
4427 * sysdeps/generic/dl-cache.c: Likewise.
4428 * sysdeps/generic/dl-sysdep.c: Likewise.
4429 * sysdeps/generic/ldsodefs.h: Likewise.
4430 * sysdeps/generic/libc-start.c: Likewise.
4431 * sysdeps/i386/dl-machine.h: Likewise.
4432 * sysdeps/ia64/dl-fptr.c: Likewise.
4433 * sysdeps/ia64/dl-machine.h: Likewise.
4434 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
4435 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4436 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4437 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
4438 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4439 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4440 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
4441 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4443 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4445 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
4447 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
4449 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
4451 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
4453 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
4455 2002-01-29 Ben Collins <bcollins@debian.org>
4457 * string/bits/string2.h (__mempcpy): Protect size arg for
4458 addition when using __builtin_memcpy.
4460 2002-01-29 Ulrich Drepper <drepper@redhat.com>
4462 * stdlib/Makefile (tests): Add tst-qsort.
4463 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
4465 * manual/signal.texi (Process Signal Mask): Document that
4466 pthread_sigmask, not sigprocmask, must be used in MT programs.
4467 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
4469 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
4471 * misc/Makefile (tests): Add tst-hsearch.
4472 * misc/tst-hsearch.c: New file.
4474 2002-01-18 Wolfram Gloger <wg@malloc.de>
4476 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
4477 * malloc/malloc.h: Likewise.
4478 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
4479 * malloc/arena.c: New file.
4480 * malloc/hooks.c: New file.
4481 * malloc/tst-mallocstate.c: New file.
4482 * malloc/Makefile: Add new testcase tst-mallocstate.
4483 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
4485 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4487 * stdlib/msort.c: Remove last patch. The optimization violates the
4488 same rule which qsort.c had problems with.
4490 2002-01-27 Paul Eggert <eggert@twinsun.com>
4492 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
4493 to a pivot element that lies outside the array to be sorted, as
4494 ISO C99 requires that the comparison function be called only with
4495 addresses of array elements [PR libc/2880].
4497 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4499 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
4500 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
4502 * timezone/asia: Update from tzdata2002b.
4503 * timezone/australasia: Likewise.
4504 * timezone/backward: Likewise.
4505 * timezone/europe: Likewise.
4506 * timezone/leapseconds: Likewise.
4507 * timezone/iso3166.tab: Likewise.
4508 * timezone/zone.tab: Likewise.
4510 2002-01-23 Richard Henderson <rth@redhat.com>
4512 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
4514 2002-01-28 Ulrich Drepper <drepper@redhat.com>
4516 * string/strxfrm.c: Allocate one more byte for rulearr and clear
4517 this element [PR libc/2855].
4519 * string/strcoll.c: Handle zero-length arguments specially
4522 2002-01-23 Jakub Jelinek <jakub@redhat.com>
4524 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
4525 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
4526 short lengths and constant src.
4527 (strcpy): Don't optimize for gcc 3.0+.
4528 (__stpcpy): For gcc 3.0+, don't use
4529 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
4530 for short string literal src.
4532 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4534 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4537 2001-01-22 Paul Eggert <eggert@twinsun.com>
4539 * manual/llio.texi (Linked Channels, Cleaning Streams):
4540 Make it clearer that a just-opened input stream might need cleaning.
4542 2002-01-21 H.J. Lu <hjl@gnu.org>
4544 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4545 Don't use label at end of compound statement.
4547 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
4549 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
4550 Remove test for negative integer arg; sin_pi does it correctly.
4552 2002-01-20 Ulrich Drepper <drepper@redhat.com>
4554 * nscd/Makefile (distribute): Filter out xmalloc.c.
4556 2002-01-19 Ulrich Drepper <drepper@redhat.com>
4558 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
4559 Set offset if read end wasn't the buffer end.
4560 (_IO_file_seekoff_mmap): New function.
4561 (_IO_file_xsgetn_mmap): New function.
4562 (_IO_file_jumps_mmap): Use the two new functions.
4563 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
4565 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
4566 _IO_file_underflow_mmap.
4567 * libio/iofopen.c: Don't position file descriptor at end of file.
4568 * libio/tst-widetext.c: Improve error messages.
4569 * stdio-common/tst-rndseek.c: Likewise.
4571 2002-01-18 Ulrich Drepper <drepper@redhat.com>
4573 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
4574 end of enum for !_GNU_SOURCE.
4575 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
4576 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
4577 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
4578 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
4579 values unless _GNU_SOURCE.
4581 * iconvdata/tcvn5712-1.c: Minor cleanups.
4583 2002-01-18 Andreas Schwab <schwab@suse.de>
4585 * sysdeps/unix/sysv/linux/configure.in
4586 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
4588 2002-01-16 Roger Sayle <roger@eyesopen.com>
4590 * stdlib/msort.c (msort_with_tmp): Replace implementation with
4591 more efficient "Towers of Hanoi" mergesort.
4592 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
4593 for generic, sizeof(int) and sizeof(long) variants respectively.
4595 2002-01-17 Ulrich Drepper <drepper@redhat.com>
4597 * manual/syslog.texi (openlog): Describe possible problems with
4599 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4601 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
4602 * nscd/connections.c (begin_drop_privileges): New function.
4603 (finish_drop_privileges): New function.
4604 (nscd_init): Call the new functions which also install all groups
4605 for the server user.
4606 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
4607 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4609 2002-01-17 H.J. Lu <hjl@gnu.org>
4611 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
4614 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4616 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
4617 instructions for pointer operations.
4618 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4620 2002-01-17 Andreas Jaeger <aj@suse.de>
4622 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
4623 __uint128_t build-in.
4625 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
4626 PowerPC, sync with 2.2 branch.
4628 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4630 * posix/getconf.c: Update copyright year.
4631 * nss/getent.c: Likewise.
4632 * nscd/nscd_nischeck.c: Likewise.
4633 * iconv/iconvconfig.c: Likewise.
4634 * iconv/iconv_prog.c: Likewise.
4635 * elf/ldconfig.c: Likewise.
4636 * catgets/gencat.c: Likewise.
4637 * csu/version.c: Likewise.
4638 * elf/ldd.bash.in: Likewise.
4639 * elf/sprof.c (print_version): Likewise.
4640 * locale/programs/locale.c: Likewise.
4641 * locale/programs/localedef.c: Likewise.
4642 * nscd/nscd.c (print_version): Likewise.
4643 * debug/xtrace.sh: Likewise.
4644 * malloc/memusage.sh: Likewise.
4645 * malloc/mtrace.pl: Likewise.
4647 2002-01-16 Andreas Schwab <schwab@suse.de>
4649 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
4650 reliably remove "-ia64" from rtld name.
4652 2002-01-16 Ulrich Drepper <drepper@redhat.com>
4654 * iconvdata/gb18030.c: Bug fixes and support for more characters.
4655 Patch by Yu Shao <yshao@redhat.com>.
4657 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
4659 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
4660 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
4661 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
4663 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
4665 * sysdeps/s390/fpu/libm-test-ulps: Update.
4667 2002-01-11 Ulrich Drepper <drepper@redhat.com>
4669 * elf/elf.h: Update x86 relocations.
4671 2002-01-10 Ulrich Drepper <drepper@redhat.com>
4673 * locale/programs/charmap.c (new_width): Check whether byte
4674 sequences for both ends of range have the same length.
4676 2002-01-09 Jakub Jelinek <jakub@redhat.com>
4678 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
4680 2002-01-09 Jakub Jelinek <jakub@redhat.com>
4682 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
4684 (__full_ieee754_sqrt): Add __attribute_used__.
4686 2002-01-10 Ulrich Drepper <drepper@redhat.com>
4688 * sysdeps/generic/group_member.c (__group_member): Also check
4689 groups[0] [PR libc/2781].
4691 2002-01-08 Ulrich Drepper <drepper@redhat.com>
4693 * Makefile (distribute): Add scripts/cpp.
4694 * elf/Makefile (distribute): Add reldep6mod[01234].c,
4695 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
4696 unwind-dw2-fde.h, and dwarf2.h.
4697 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
4698 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
4699 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
4700 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
4702 2002-01-07 Roland McGrath <roland@frob.com>
4704 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
4705 volatile on type of ARGC so the compiler doesn't get clever.
4707 2002-01-07 Andreas Jaeger <aj@suse.de>
4709 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
4710 * sysdeps/i386/bits/byteswap.h: Likewise.
4711 * sysdeps/ia64/bits/byteswap.h: Likewise.
4712 * sysdeps/m68k/bits/byteswap.h: Likewise.
4713 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
4714 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
4716 2002-01-02 Bruno Haible <bruno@clisp.org>
4718 * intl/plural.y: Fix %expect count.
4720 2002-01-03 Jakub Jelinek <jakub@redhat.com>
4722 * elf/Makefile (routines, shared-only-routines): Add
4723 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
4724 * elf/elf.h (PT_GNU_EH_FRAME): Define.
4725 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
4726 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
4727 Optimize if .eh_frame section contains no FDEs.
4728 (__register_frame, __deregister_frame_info_bases,
4729 __deregister_frame): Likewise.
4730 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
4731 DW_CFA_restore handling.
4733 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
4735 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
4737 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
4738 for x < 0.25 and restore original range reduction method.
4739 (__ieee754_lgammal_r): Make sure signgam is set before returning.
4741 2002-01-07 Ulrich Drepper <drepper@redhat.com>
4743 * libio/fileops.c (_IO_file_underflow_mmap): New function.
4744 (_IO_file_close_mmap): New function.
4745 (_IO_file_jumps_mmap): New variable.
4746 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
4747 trying to convert rest of byte buffer.
4748 (_IO_wfile_underflow_mmap): New function.
4749 (_IO_wfile_jumps_mmap): New variable.
4750 * libio/iofopen.c (__fopen_maybe_mmap): New function.
4751 (__fopen_internal): New function. Split out from _IO_new_fopen.
4752 (_IO_new_fopen): Call __fopen_internal.
4753 * libio/iofopen64.c: Just call __fopen_internal.
4754 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
4756 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
4757 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
4758 _IO_file_close_mmap.
4760 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
4761 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
4763 * stdio-common/Makefile (tests): Add tst-rndseek.
4764 * stdio-common/tst-rndseek.c: New file.
4766 2002-01-05 Roland McGrath <roland@frob.com>
4768 * config.h.in (HAVE_MIG_RETCODE): New #undef.
4769 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
4770 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
4771 * sysdeps/mach/hurd/configure: Regenerated.
4773 2002-01-03 Ulrich Drepper <drepper@redhat.com>
4775 * elf/elf.h: Add more TLS definitions.
4777 2002-01-02 Ulrich Drepper <drepper@redhat.com>
4779 * include/features.h (__GLIBC_MINOR__): Bump to 3.
4781 2002-01-02 Roland McGrath <roland@frob.com>
4783 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
4784 __sigisemptyset. Don't use MASK uninitialized.
4786 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
4787 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
4788 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
4789 __sigdelset, __sigaddset, __sigorset.
4791 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
4792 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
4794 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
4795 _hurd_ports is null.
4797 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
4798 for old CMU and new OSF Mach interface flavors.
4799 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
4800 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4802 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
4804 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
4805 Pass extra arguments to task_create for OSF variant.
4806 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4808 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
4809 conditional on [HAVE_AUX_VECTOR].
4811 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
4812 mach_msg_timeout_t as type of final argument.
4814 * hurd/privports.c (__get_privileged_ports):
4815 Change host_priv_t to mach_port_t in argument type.
4816 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
4819 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
4820 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
4821 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
4822 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
4823 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
4824 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
4826 2002-01-01 Roland McGrath <roland@frob.com>
4828 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
4830 2002-01-01 Ulrich Drepper <drepper@redhat.com>
4832 * include/stdlib.h: Define inlines for the _l variants of the strto*
4835 2002-01-01 Roland McGrath <roland@frob.com>
4837 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
4839 * mach/Machrules (MIG): Set CPP as well as CC.
4841 2001-12-31 Ulrich Drepper <drepper@redhat.com>
4843 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
4844 locale to parse /proc/loadavg [PR libc/2760].
4846 2001-12-31 Jakub Jelinek <jakub@redhat.com>
4848 * elf/dl-conflict.c: Include sys/param.h.
4849 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
4850 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
4852 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
4853 literals to avoid warnings.
4855 2001-12-31 Andreas Jaeger <aj@suse.de>
4857 * configure.in: Don't check for gsed since we do not use it anywhere.
4859 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
4861 * io/fts.c: Update from BSD to fix memory leaks.
4863 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
4865 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
4866 * elf/chroot_canon.c: Likewise.
4867 * elf/dl-object.c: Likewise.
4868 * iconv/iconv_charmap.c: Likewise.
4869 * iconv/iconv_prog.c: Likewise.
4870 * libio/iogetdelim.c: Likewise.
4871 * locale/lc-time.c: Likewise.
4872 * stdlib/canonicalize.c: Likewise.
4873 * sunrpc/svc.c: Likewise.
4874 * sysdeps/generic/glob.c: Likewise.
4876 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4878 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
4879 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
4880 remove high order bit from the program counter.
4881 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
4883 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4885 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
4886 unnecessary code and add missing reloc types.
4887 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
4888 case for reloc type R_390_NONE.
4890 2001-12-28 Andreas Jaeger <aj@suse.de>
4892 * io/bug-ftw3.c: Include string.h for prototypes.
4894 * crypt/md5test.c (main): Remove unused variable.
4896 * dlfcn/modstatic.c: Add prototype to avoid warning.
4898 2001-12-26 Roland McGrath <roland@frob.com>
4900 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
4901 check only (SS->pending & MASK) for the signal to return.
4902 From Jeroen Dekkers <jeroen@dekkers.cx>.
4904 2001-12-22 Roland McGrath <roland@frob.com>
4906 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
4907 Use preprocessor #if conditionals instead of `if' to avoid
4908 warnings about divide by zero in dead code.
4910 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
4911 _hurd_port_init, and __hurd_self_sigstate.
4913 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
4915 2001-12-21 Andreas Jaeger <aj@suse.de>
4917 * elf/dblloadmod1.c: Add prototype to avoid warning.
4918 * elf/dblloadmod2.c: Likewise.
4919 * elf/dblloadmod3.c: Likewise.
4920 * elf/reldepmod5.c: Likewise.
4921 * elf/reldepmod6.c: Likewise.
4923 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
4924 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
4925 used on all architectures.
4927 * sunrpc/svc_tcp.c: Add noreturn attribute for
4928 svctcp_rendezvous_abort.
4929 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
4931 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
4934 2001-12-19 Jakub Jelinek <jakub@redhat.com>
4936 * manual/llio.texi (aio_fsync): Fix a typo.
4937 Patch by Tammy Fox <tfox@redhat.com>.
4939 2001-12-18 Jakub Jelinek <jakub@redhat.com>
4941 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
4942 stack bias from child stack pointer before passing it to clone syscall.
4944 2001-12-18 Ulrich Drepper <drepper@redhat.com>
4946 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
4948 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
4949 Reported by Thorsten Kukuk <kukuk@suse.de>.
4951 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
4954 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
4956 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
4958 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
4959 conforming: return EBADF if file descriptor is invalid and EINVAL
4960 if file descriptor is no valid tty.
4961 * login/tst-grantpt.c: New file.
4962 * login/Makefile (tests): Add tst-grantpt.
4964 2001-12-17 Ulrich Drepper <drepper@redhat.com>
4966 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
4967 different than implemented in last patch.
4968 * io/bug-ftw3.c: Adjust test for changed handling of
4969 inaccessibility of toplevel dir.
4971 2001-12-16 Roland McGrath <roland@frob.com>
4973 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
4974 * grp/initgroups.c (internal_getgrouplist): Likewise.
4976 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
4977 `default:' to silence new GCC warning.
4978 Rewrite cast of lvalue to silence new GCC warning.
4980 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
4982 * sysdeps/mach/hurd/spawni.c: New file, by me with a
4983 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
4985 2001-12-14 Ulrich Drepper <drepper@redhat.com>
4987 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
4988 Patch by Stephen R. van den Berg.
4990 * crypt/md5.h: Define md5_uintptr.
4992 2001-12-13 Ulrich Drepper <drepper@redhat.com>
4994 * libio/tst_swprintf.c (main): Add test for string argument with
4996 * stdio-common/Makefile (tests): Add tst-sprintf.
4997 * stdio-common/tst-sprintf.c: New file.
4999 2001-12-13 Andreas Schwab <schwab@suse.de>
5001 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
5002 zero precision with wide character string format.
5004 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
5006 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
5007 but have a user supplied buffer, return the empty buffer, not NULL.
5009 2001-12-13 Ulrich Drepper <drepper@redhat.com>
5011 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
5012 Patch by Eric Sharkey <sharkey@netrics.com>.
5014 * crypt/md5test.c (main): Add test for multiple calls to
5015 __md5_process_bytes to itererate over input string.
5017 2001-12-12 Ulrich Drepper <drepper@redhat.com>
5019 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5020 from __nis_findfastest. Take timeout value from parameter.
5021 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
5022 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5023 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
5025 2001-12-12 Andreas Jaeger <aj@suse.de>
5027 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5028 combreloc test so that it works in this case.
5030 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
5032 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
5034 * sysdeps/sh/Makefile: New file.
5035 * sysdeps/sh/_mcount.S: New file.
5036 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5037 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5039 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5041 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5042 limitation [PR libc/2564].
5044 2001-12-11 Jakub Jelinek <jakub@redhat.com>
5046 * elf/Makefile (dl-routines): Add conflict.
5047 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5048 (ld.so): Add _begin local symbol.
5049 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5051 * elf/dl-deps.c (_dl_build_local_scope): New.
5052 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5054 * elf/do-rel.h (VALIDX): Define.
5055 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5056 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5058 * elf/dl-conflict.c: New file.
5059 * elf/dl-lookup.c (_dl_debug_bindings): New.
5060 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
5062 (_dl_lookup_symbol_skip): Likewise.
5063 (_dl_lookup_versioned_symbol): Likewise.
5064 (_dl_lookup_versioned_symbol_skip): Likewise.
5065 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5066 define to ElfW(Rel).
5067 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5068 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5070 Don't adjust address dynamic tags if l_addr is 0.
5071 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5072 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5073 (VALIDX, ADDRIDX): Define.
5074 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5075 (dl_main): Print library list for LD_TRACE_PRELINKING.
5076 If prelinking information can be used, skip relocating libraries and
5077 call _dl_resolve_conflicts instead.
5078 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5079 * elf/dl-load.c (_dl_map_object): Don't create fake libs
5080 if LD_TRACE_PRELINKING.
5081 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5083 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5084 (DL_DEBUG_PRELINK): Define.
5085 (_dl_resolve_conflicts): Add prototype.
5087 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5088 .plt for prelinked libraries where prelinking info cannot be used.
5089 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5090 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5091 * sysdeps/arm/bits/link.h: New file.
5092 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5094 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5095 (ELF_MACHINE_PLT_REL): Define.
5096 (elf_machine_rela, elf_machine_rela_relative): New.
5097 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5098 of adjusting it if prelinked and prelinking cannot be used.
5099 * sysdeps/i386/bits/link.h: New file.
5100 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5102 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5103 (ELF_MACHINE_PLT_REL): Define.
5104 (elf_machine_rela, elf_machine_rela_relative): New.
5105 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5106 of adjusting it if prelinked and prelinking cannot be used.
5107 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5108 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
5109 to find out map for R_PPC_JMP_SLOT relocs.
5110 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5111 (OPCODE_BA): Define.
5112 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5113 libraries where prelinking info cannot be used.
5114 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5115 (elf_machine_fixup_plt): Call sparc_fixup_plt.
5116 (elf_machine_rela): Set value to 0 if relocating conflicts.
5117 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5118 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5119 (sparc64_fixup_plt): Fix a typo.
5120 (elf_machine_rela): Set value to 0 if relocating conflicts.
5121 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5122 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5123 libraries where prelinking info cannot be used.
5124 * sysdeps/sh/bits/link.h: New file.
5125 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5127 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5128 of adjusting it if prelinked and prelinking cannot be used.
5129 * sysdeps/s390/s390-32/bits/link.h: New file.
5130 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5131 Save original content of .got[1].
5132 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5133 of adjusting it if prelinked and prelinking cannot be used.
5134 * sysdeps/s390/s390-64/bits/link.h: New file.
5135 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5136 Save original content of .got[1].
5137 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5138 of adjusting it if prelinked and prelinking cannot be used.
5139 * sysdeps/x86_64/bits/link.h: New file.
5140 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5141 Save original content of .got[1].
5142 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5143 of adjusting it if prelinked and prelinking cannot be used.
5145 2001-12-11 Ulrich Drepper <drepper@redhat.com>
5147 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5148 where appropriate instead of numbers. Little optimizations.
5150 2001-12-10 Roland McGrath <roland@frob.com>
5152 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5155 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5156 set to GLIBC_2.2.5, not GLIBC_2.2.4.
5158 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5159 Fix conditionals so this is set by default for stdio and not for libio.
5160 * sysdeps/mach/hurd/configure: Regenerated.
5162 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
5164 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5166 2001-12-10 Ulrich Drepper <drepper@redhat.com>
5168 * io/Makefile (tests): Add bug-ftw3.
5169 * io/bug-ftw3.c: New file.
5171 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5172 matches and GLOB_NOCHECK is set.
5173 * posix/globtest.sh: Correct expected result for NOCHECK test.
5175 * po/ca.po: Update from translation team.
5177 2001-12-09 Ulrich Drepper <drepper@redhat.com>
5179 Implement transliteration of characters in strings of the locale
5181 * locale/programs/linereader.c: Adjust for additional parameter to
5183 (get_string): If character <Uxxxx> is not found try to transliterate
5185 * locale/programs/ld-ctype.c: Adjust for additional parameter to
5186 lr_token. Add const to charmap parameter of all functions.
5187 (find_translit, find_translit2): New functions.
5188 * locale/programs/charmap.c: Adjust for additional parameter to
5190 * locale/programs/repertoire.c: Likewise.
5191 * locale/programs/linereader.h: Likewise.
5192 * locale/programs/ld-address.c: Likewise. Add const to charmap
5193 parameter of all functions.
5194 * locale/programs/ld-collate.c: Likewise.
5195 * locale/programs/ld-identification.c: Likewise.
5196 * locale/programs/ld-measurement.c: Likewise.
5197 * locale/programs/ld-messages.c: Likewise.
5198 * locale/programs/ld-monetary.c: Likewise.
5199 * locale/programs/ld-name.c: Likewise.
5200 * locale/programs/ld-numeric.c: Likewise.
5201 * locale/programs/ld-paper.c: Likewise.
5202 * locale/programs/ld-paper.c: Likewise.
5203 * locale/programs/ld-telephone.c: Likewise.
5204 * locale/programs/ld-time.c: Likewise.
5205 * locale/programs/locfile.c: Likewise.
5206 * locale/programs/localedef.c: Likewise.
5207 * locale/programs/localedef.h: Likewise.
5208 * locale/programs/locfile.h: Likewise. Add declaration for
5210 * locale/programs/simple-hash.c: Add const to first parameter of
5211 find_entry, iterate_table, and lookup.
5212 * locale/programs/simple-hash.h: Likewise.
5213 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
5215 * include/locale.h: Define __LC_LAST.
5216 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5218 2001-12-07 Geoff Keating <geoffk@redhat.com>
5220 * sysdeps/powerpc/Dist: Update for recent FP changes.
5221 * sysdeps/powerpc/fpu/Dist: Likewise.
5223 2001-12-07 Andreas Schwab <schwab@suse.de>
5225 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5227 2001-12-06 Geoff Keating <geoffk@redhat.com>
5229 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
5230 save/restore functions here.
5231 (libm-support): Don't define these functions here.
5232 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
5234 * sysdeps/powerpc/fe_nomask.c: Move to...
5235 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
5236 * sysdeps/powerpc/fprrest.S: Move to...
5237 * sysdeps/powerpc/fpu/fprrest.S: ... here.
5238 * sysdeps/powerpc/fprsave.S: Move to...
5239 * sysdeps/powerpc/fpu/fprsave.S: ... here.
5241 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5243 * sysdeps/unix/sysv/linux/opensock.c: New file.
5245 2001-12-06 Geoff Keating <geoffk@redhat.com>
5247 * config.make.in (with-fp): Define from configure.
5248 * configure.in: Substitute with_fp.
5249 * configure: Regenerate.
5250 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
5251 specified, and don't change FPU environment.
5253 2001-12-06 Ulrich Drepper <drepper@redhat.com>
5255 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
5256 * assert/assert.c: Check result of __asprintf call and don't use
5257 string if it failed.
5258 * assert/assert-perr.c: Likewise.
5259 * inet/rcmd.c: Likewise.
5260 * locale/programs/localedef.c (main): Check result of
5261 construct_output_path and exit if it failed.
5262 (construct_output_path): Check result of asprintf and mkdir calls and
5263 fail if they failed.
5264 * posix/getopt.c: Check result of __asprintf calls and fail if
5266 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
5268 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5270 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
5272 * sysdeps/generic/strncase.c: Likewise.
5273 * string/tester.c: Add tests for strcasecmp and strncasecmp.
5275 2001-12-05 Geoff Keating <geoffk@redhat.com>
5277 * scripts/cpp: Test the exit status from 'type', not 'awk'.
5279 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
5280 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
5281 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
5282 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
5283 * sysdeps/powerpc/fclrexcpt.c: Move to...
5284 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
5285 * sysdeps/powerpc/fpu_control.h: Move to...
5286 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
5288 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5290 * iconvdata/ibm1129.h: Remove duplicate mappings.
5291 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
5292 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
5293 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5295 * timezone/zic.c: Fix handling of turnaround times.
5296 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
5298 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
5300 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
5303 2001-12-05 Ulrich Drepper <drepper@redhat.com>
5305 * posix/regex.c: For use outside glibc defined bounded pointer
5306 macros here. Patch by Jim Meyering <jim@meyering.net>.
5308 * iconvdata/Makefile (modules): Add TCVN5712-1.
5309 * iconvdata/TESTS: Add TCVN5712-1.
5310 * iconvdata/gconv-modules: Likewise.
5311 * iconvdata/tcvn5712-1.c: New file.
5312 * iconvdata/testdata/TCVN-5712: New file.
5313 * iconvdata/testdata/TCVN-5712..UTF8: New file.
5315 2001-12-04 Ulrich Drepper <drepper@redhat.com>
5317 * iconvdata/cp1258.c: Optimize conversion from UCS4.
5319 2001-12-02 Roland McGrath <roland@frob.com>
5321 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
5323 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
5324 Reported by Jeff Bailey <jbailey@nisa.net>.
5326 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
5327 Reported by Jeff Bailey <jbailey@nisa.net>.
5329 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
5330 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
5331 Reported by Jeff Bailey <jbailey@nisa.net>.
5333 2001-12-01 Roland McGrath <roland@frob.com>
5335 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
5336 missing backslash in test arguments.
5337 * sysdeps/mach/hurd/configure: Regenerated.
5339 2001-11-26 Roland McGrath <roland@frob.com>
5341 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
5342 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
5344 2001-11-30 Ulrich Drepper <drepper@redhat.com>
5346 * iconvdata/Makefile (modules): Add ARMSCII-8.
5347 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
5348 * iconvdata/armscii-8.c: New file.
5350 2001-11-29 Jakub Jelinek <jakub@redhat.com>
5352 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
5353 don't match, fix {{a,b},c} globbing, clean up.
5354 Patch by Flavio Veloso <flaviovs@magnux.com>.
5355 * posix/globtest.sh: Add new tests.
5357 2001-11-29 Andreas Jaeger <aj@suse.de>
5359 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
5360 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
5362 * sysdeps/generic/abort.c: Include libioP.h for
5363 _IO_flush_all_lockp prototype.
5365 2001-11-29 Ulrich Drepper <drepper@redhat.com>
5367 * posix/regex.h: Define __restrict_arr correctly.
5369 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5371 * iconvdata/ibm1163.c: New file.
5372 * iconvdata/ibm1163.h: New file.
5373 * iconvdata/ibm1164.c: New file.
5374 * iconvdata/ibm1164.h: New file.
5375 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
5376 * iconvdata/Makefile: Likewise.
5377 * iconvdata/testdata/IBM1163: New file.
5378 * iconvdata/testdata/IBM1163..UTF8: New file.
5379 * iconvdata/testdata/IBM1164: New file.
5380 * iconvdata/testdata/IBM1164..UTF8: New file.
5381 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5383 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
5384 * iconvdata/ibm1124.h: Likewise.
5385 * iconvdata/ibm1132.h: Likewise.
5386 * iconvdata/ibm1133.h: Likewise.
5387 * iconvdata/ibm1160.h: Likewise.
5388 * iconvdata/ibm1161.h: Likewise.
5389 * iconvdata/ibm1162.h: Likewise.
5390 * iconvdata/ibm856.h: Likewise.
5391 * iconvdata/ibm922.h: Likewise.
5392 * iconvdata/ibm930.h: Likewise.
5393 * iconvdata/ibm932.h: Likewise.
5394 * iconvdata/ibm933.h: Likewise.
5395 * iconvdata/ibm935.h: Likewise.
5396 * iconvdata/ibm937.h: Likewise.
5397 * iconvdata/ibm939.h: Likewise.
5398 * iconvdata/ibm943.h: Likewise.
5399 * iconvdata/ibm930.c: Pretty printing.
5400 * iconvdata/ibm937.c: Avoid access accross array boundary.
5402 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
5403 the current locale's codeset.
5404 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
5406 * iconv/iconv_prog.c: Pass empty strings as default value for to-
5407 and from-charset. Don't determine locale's charset here.
5409 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
5410 as the old _IO_flush_all but lock only if parameter is nonzero.
5411 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
5412 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
5413 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
5414 if libio is used [PR libc/2575].
5416 2001-11-28 Jakub Jelinek <jakub@redhat.com>
5418 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
5419 __signbitl): Only define for ISO C99.
5421 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5423 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
5424 herrnop to NETDB_INTERNAL if we run out of buffer space.
5426 2001-11-28 Ulrich Drepper <drepper@redhat.com>
5428 * nss/nss_files/files-XXX.c (internal_getent): Correct input
5429 overflow test for platforms with signed char.
5430 Reported by Andrew Haley <aph@cambridge.redhat.com>.
5432 2001-11-28 Bruno Haible <bruno@clisp.org>
5434 * locale/programs/simple-hash.c (lookup_2): Remove function.
5435 (insert_entry_2): Call lookup instead of lookup_2.
5437 2001-03-04 Bruno Haible <bruno@clisp.org>
5439 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
5441 2001-10-31 Bruno Haible <bruno@clisp.org>
5443 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
5445 2001-03-21 Bruno Haible <bruno@clisp.org>
5447 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
5448 chokes on empty macro arguments.
5449 * intl/plural.y: Add #pragma for alloca on AIX 3.
5451 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5453 * intl/dcigettext.c (guess_category_value): Only implement for
5454 glibc. Otherwise rely on function _nl_locale_name which isn't
5455 present in the glibc sources.
5457 2001-09-24 Bruno Haible <bruno@clisp.org>
5459 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
5460 transliteration when building on a glibc system but outside glibc.
5462 2001-09-22 Bruno Haible <bruno@clisp.org>
5464 * intl/plural-eval.c: New file, extracted from dcigettext.c.
5465 * intl/dcigettext.c (plural_eval): Remove function, moved to
5467 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
5468 Include plural-eval.c.
5470 2001-09-22 Bruno Haible <bruno@clisp.org>
5472 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
5473 don't start with a digit; nplurals must be positive.
5475 2001-09-02 Bruno Haible <bruno@clisp.org>
5477 * intl/plural-exp.h: New file, extracted from gettextP.h.
5478 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
5479 * intl/gettextP.h (struct expression, struct parse_args,
5480 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
5481 * intl/loadmsgcat.c: Include plural-exp.h.
5482 (PLURAL_PARSE): Move macro to plural-exp.h.
5483 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
5485 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
5486 EXTRACT_PLURAL_EXPRESSION.
5487 (_nl_unload_domain): Update.
5488 * intl/dcigettext.c: Include plural-exp.h.
5489 * intl/plural.y: Include plural-exp.h, not gettextP.h.
5490 (FREE_EXPRESSION): Move macro to plural-exp.h.
5491 * intl/Makefile (routines): Add plural-exp.
5492 (distribute): Add plural-exp.h.
5494 2001-07-28 Bruno Haible <bruno@clisp.org>
5496 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
5497 isdigit, tolower argument to 'unsigned char'.
5498 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
5500 * intl/localealias.c (read_alias_file): Cast isspace argument to
5503 2001-10-20 Bruno Haible <bruno@clisp.org>
5505 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
5507 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
5508 with the variable 'index' in plural_lookup.
5509 * intl/l10nflist.c (strchr): Likewise.
5510 * intl/localealias.c (strchr): Likewise.
5512 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
5513 * intl/bindtextdom.c: Likewise.
5514 * intl/dcigettext.c: Likewise.
5515 * intl/dgettext.c: Likewise.
5516 * intl/dngettext.c: Likewise.
5517 * intl/explodename.c: Likewise.
5518 * intl/finddomain.c: Likewise.
5519 * intl/gettext.c: Likewise.
5520 * intl/l10nflist.c: Likewise.
5521 * intl/loadmsgcat.c: Likewise.
5522 * intl/localealias.c: Likewise.
5523 * intl/ngettext.c: Likewise.
5524 * intl/textdomain.c: Likewise.
5525 * intl/gettext.h: Assume <limits.h> exists.
5527 2001-11-27 Ulrich Drepper <drepper@redhat.com>
5529 * stdio-common/Makefile (tests): Add scanf11.
5530 * stdio-common/scanf11.c: New file.
5532 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5534 * version.h (RELEASE): Define as development.
5535 (VERSION): Set to 2.2.90.
5537 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
5539 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
5540 * nis/nss_nis/nis-grp.c: Likewise.
5541 * nis/nss_nisplus/nisplus-grp.c: Likewise.
5543 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
5544 * nis/nss_nis/nis-pwd.c: Likewise.
5545 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
5547 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
5548 * nis/nss_nisplus/nisplus-parser.c: Likewise.
5549 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5551 * nscd/grpcache.c: Use strtoul instead of atol.
5552 * nscd/pwdcache.c: Likewise.
5553 * nss/getent.c: Likewise.
5555 2001-11-27 Paul Eggert <eggert@twinsun.com>
5557 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5558 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5560 2001-11-19 Bruno Haible <bruno@clisp.org>
5562 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
5564 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
5565 improves the quality of the hash function, especially for short
5568 2001-11-26 Ulrich Drepper <drepper@redhat.com>
5570 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
5571 are found call conv_error and not input_error [PR libc/2669].
5573 * math/bits/mathcalls.h: Mark ceil and floor as const.
5574 Reported by David Mosberger.
5576 2001-11-21 Jim Meyering <meyering@lucent.com>
5578 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
5579 Define to be __-prefixed.
5580 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
5582 2001-11-26 Andreas Jaeger <aj@suse.de>
5584 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
5587 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
5589 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
5592 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
5593 unused variables. Fix threshold for returning 1.0.
5595 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
5598 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
5599 remove unused variables.
5601 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
5603 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
5604 include local math header files.
5606 2001-11-22 Andreas Jaeger <aj@suse.de>
5608 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
5611 2001-11-21 Andreas Jaeger <aj@suse.de>
5613 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
5615 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
5618 2001-11-15 Andreas Jaeger <aj@suse.de>
5620 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
5621 compilers that support it.
5623 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
5624 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
5625 * stdlib/stdlib.h: Likewise.
5627 2001-11-17 Ulrich Drepper <drepper@redhat.com>
5629 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
5630 statement with gotos.
5631 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
5633 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
5635 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
5637 2001-11-15 Ulrich Drepper <drepper@redhat.com>
5639 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
5641 2001-10-02 Jakub Jelinek <jakub@redhat.com>
5642 H.J. Lu <hjl@gnu.org>
5644 * Versions.def (libc): Add GCC_3.0.
5645 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5646 if gcc supports this flag.
5647 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
5648 (gcc3): Allow glibc to be compiled with gcc 3.x.
5649 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
5650 * config.make.in (static-libgcc, unwind-find-fde): Add.
5651 * Makerules (build-shlib-helper, build-module-helper): Use it.
5652 * scripts/versions.awk: Make sure GLIBC_ versions come first.
5653 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
5655 (_fini): Call __deregister_frame_info_bases if
5656 __register_frame_info_bases was used to register.
5657 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
5659 (__register_frame_info_bases, __register_frame_info_table_bases,
5660 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
5661 * elf/Makefile (routines): Add unwind-dw2-fde.
5662 (shared-only-routines): Add unwind-dw2-fde.
5663 * sysdeps/alpha/gccframe.h: New file.
5664 * sysdeps/arm/gccframe.h: New file.
5665 * sysdeps/generic/framestate.c: New file.
5666 * sysdeps/generic/dwarf2.h: New file.
5667 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
5668 * sysdeps/generic/unwind-dw2-fde.c: New file.
5669 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
5670 * sysdeps/generic/unwind-dw2-fde.h: New file.
5671 * sysdeps/generic/unwind-dw2.c: New file.
5672 * sysdeps/generic/unwind-pe.h: New file.
5673 * sysdeps/generic/unwind.h: New file.
5674 * sysdeps/hppa/gccframe.h: New file.
5675 * sysdeps/i386/gccframe.h: New file.
5676 * sysdeps/m68k/gccframe.h: New file.
5677 * sysdeps/mips/gccframe.h: New file.
5678 * sysdeps/powerpc/gccframe.h: New file.
5679 * sysdeps/s390/gccframe.h: New file.
5680 * sysdeps/sh/gccframe.h: New file.
5681 * sysdeps/sparc/gccframe.h: New file.
5682 * sysdeps/vax/gccframe.h: New file.
5683 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5684 Set on all architectures except ia64.
5685 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
5687 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
5688 __deregister_frame_info): Move to elf/Versions.
5689 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
5690 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
5691 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
5692 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
5693 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
5694 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
5695 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5696 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5697 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
5698 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
5699 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5700 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5701 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5702 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5703 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5704 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5705 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5706 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5708 2001-11-15 Jeff Law <law@redhat.com>
5710 * posix/regex.c (uintptr_t): Do not provide a definition if the
5711 system provided one.
5713 2001-11-13 Roland McGrath <roland@frob.com>
5715 * stdio-common/tmpfile.c: Moved to ...
5716 * sysdeps/generic/tmpfile.c: ... here.
5717 * sysdeps/mach/hurd/tmpfile.c: New file.
5719 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
5720 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
5721 (fopenport): Define as weak alias.
5723 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
5724 * libio/libioP.h: ... to here.
5726 2001-11-12 Ulrich Drepper <drepper@redhat.com>
5728 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
5729 program header twice. Construct list with the needed information.
5731 2001-11-10 Ulrich Drepper <drepper@redhat.com>
5733 * po/ca.po: Update from translation team.
5735 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
5736 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
5737 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
5738 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5740 2001-11-10 Andreas Jaeger <aj@suse.de>
5742 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
5743 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5744 Contributed by Stephen L Moshier <moshier@mediaone.net>.
5746 2001-11-09 Ulrich Drepper <drepper@redhat.com>
5748 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
5750 * elf/dl-load.c (is_dst): New function.
5751 (_dl_dst_count): Use is_dst to check for DST variable.
5752 (_dl_dst_substitute): Likewise.
5754 2001-11-09 Roland McGrath <roland@frob.com>
5756 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
5757 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
5758 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
5759 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
5760 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
5761 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
5762 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
5763 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
5764 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
5765 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
5766 * sysdeps/mach/hurd/powerpc/Dist: New file.
5768 * hurd/privports.c (__get_privileged_ports):
5769 Only contact the proc server if necessary for this call.
5770 Suggested by Neal H Walfield <neal@cs.uml.edu>.
5771 Check error return for mach_port_mod_refs.
5773 2001-11-09 Andreas Schwab <schwab@suse.de>
5775 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
5777 2001-11-09 Ulrich Drepper <drepper@redhat.com>
5779 * elf/dl-load.c (lose): Remove some unnecessary code. The new
5780 object is always the last in the list.
5781 (_dl_map_object_from_fd): Delete code to remove from object list
5782 when DF_1_NOOPEN is seen. This is done in lose.
5784 2001-11-08 Ulrich Drepper <drepper@redhat.com>
5786 * elf/dl-object.c (_dl_new_object): Various small optimizations.
5788 2001-11-07 Ulrich Drepper <drepper@redhat.com>
5790 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
5791 HWCAP_CHECK macro code.
5793 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
5794 Now returns MAP_FAILED on error.
5795 * elf/rtld.c: Adjust caller.
5796 * sysdeps/generic/dl-cache.c: Likewise.
5797 * sysdeps/generic/ldsodefs.h: Adjust description.
5799 * elf/dl-version.c (match_symbol): Optimize error handling for size.
5800 (_dl_check_map_versions): Likewise.
5802 2001-11-06 Ulrich Drepper <drepper@redhat.com>
5804 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
5805 _dl_signal_error directly, always use lose. Set fd to -1 after
5807 (lose): Don't call close if fd == -1.
5809 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
5811 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
5812 Also fix typo @code {mbsinit} to @code{mbsinit}.
5814 2001-11-06 Ulrich Drepper <drepper@redhat.com>
5816 * elf/dl-profile.c: Replace state variable with simple flag named
5817 running. Remove commented-out code.
5819 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
5820 (_dl_init_paths): Likewise.
5821 (_dl_map_object_from_fd): Likewise.
5822 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5824 2001-11-06 Roland McGrath <roland@frob.com>
5826 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
5827 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
5829 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
5830 sysdeps/powerpc/elf/sysdep.h.
5831 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
5833 2001-11-05 Ulrich Drepper <drepper@redhat.com>
5835 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
5837 (process_envvars): Some more optimizations.
5838 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
5840 * elf/elf.h: Add dynamic tag definitions for prelinking.
5842 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
5843 Rewrite code to remove environment varables for SUID binaries.
5844 Small optimization in LD_PROFILE handling.
5845 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
5847 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5849 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
5851 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
5852 strings. Change type of second parameter.
5853 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
5856 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
5858 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
5860 * manual/string.texi: Fix typos.
5861 * manual/examples/argp-ex2.c: Likewise.
5863 2001-11-05 Roland McGrath <roland@frob.com>
5865 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
5866 the more-specific unix/sysv/linux/powerpc file and breaks everything.
5867 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
5868 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
5869 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
5870 here, put under [__ELF__].
5872 2001-11-05 Ulrich Drepper <drepper@redhat.com>
5874 * manual/charset.texi: Extensive editing work.
5875 * manual/nss.texi: Likewise.
5876 Changes by Dennis Grace <dgrace@us.ibm.com>.
5878 2001-11-04 Roland McGrath <roland@frob.com>
5880 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
5881 parameter to dir_mkfile.
5883 2001-11-02 Jakub Jelinek <jakub@redhat.com>
5885 * string/bits/string2.h (__strndup): If n is smaller than len, set
5887 * string/tester.c (test_strndup): New function.
5890 2001-11-01 Ulrich Drepper <drepper@redhat.com>
5892 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
5894 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
5895 * scripts/cpp: New file.
5897 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
5898 for rtld_search_dirs content. Minor optimizations.
5900 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5902 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
5903 avoiding unnecessary duplication.
5905 2001-10-31 Jakub Jelinek <jakub@redhat.com>
5907 * elf/dl-load.c (_dl_map_object): If library was found using
5908 LD_LIBRARY_PATH, don't try RUNPATH list.
5910 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
5912 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
5913 Correct second argument of register_dump call.
5914 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
5917 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5919 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
5921 * iconvdata/TESTS: Likewise.
5922 * iconvdata/gconv-modules: Likewise.
5923 * iconvdata/ibm1132.c: New file.
5924 * iconvdata/ibm1132.h: New file.
5925 * iconvdata/ibm1133.c: New file.
5926 * iconvdata/ibm1133.h: New file.
5927 * iconvdata/ibm1162.c: New file.
5928 * iconvdata/ibm1162.h: New file.
5929 * iconvdata/testdata/IBM1132: New file.
5930 * iconvdata/testdata/IBM1132..UTF8: New file.
5931 * iconvdata/testdata/IBM1133: New file.
5932 * iconvdata/testdata/IBM1133..UTF8: New file.
5933 * iconvdata/testdata/IBM1162: New file.
5934 * iconvdata/testdata/IBM1162..UTF8: New file.
5935 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
5937 * string/string.h: Fix typo in comment.
5938 * wcsmbs/wchar.h: Likewise.
5940 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
5942 * manual/getopt.texi (getopt_long, getopt_long_only): Include
5943 const in type of longopts parameter.
5945 2001-10-29 Andreas Jaeger <aj@suse.de>
5947 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
5949 2001-10-29 Kevin Ryde <user42@zip.com.au>
5951 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
5952 output, clarify `#' behaviour on 0.
5953 (Floating-Point Conversions): Clarify that %g only uses %e when
5954 the exponent would be greater than 1.
5956 2001-10-28 Roland McGrath <roland@frob.com>
5958 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
5959 * sysdeps/mach/powerpc/machine-sp.h: New file.
5960 * sysdeps/mach/powerpc/sysdep.h: New file.
5961 * sysdeps/mach/powerpc/thread_state.h: New file.
5963 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
5964 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
5965 expect to need the same thing on every platform.
5967 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
5968 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
5970 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
5971 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
5972 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
5973 Move all these assembly-related definitions to ...
5974 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
5976 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
5977 by Peter Bruin <pjbruin@dds.nl>.
5979 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
5980 packing results for a `poll' call.
5982 2001-10-26 Ulrich Drepper <drepper@redhat.com>
5984 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
5986 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
5989 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5991 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
5993 2001-10-24 H.J. Lu <hjl@gnu.org>
5995 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
5996 Use __BEGIN_DECLS/__END_DECLS around prototypes.
5997 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
5999 2001-10-21 Jim Meyering <meyering@lucent.com>
6001 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6002 this code would end up calling gettext even in packages built
6004 * posix/getopt.c (_): Likewise.
6005 * posix/regex.c (_): Likewise.
6007 2001-10-26 Ulrich Drepper <drepper@redhat.com>
6009 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
6011 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6012 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6014 2001-10-19 Jakub Jelinek <jakub@redhat.com>
6016 * misc/sys/cdefs.h (__attribute_used__): Define.
6017 * elf/rtld.c (_dl_start): Add __attribute_used__.
6018 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6020 2001-10-25 Andreas Schwab <schwab@suse.de>
6022 * stdlib/a64l.c: Expect least significant digit first.
6023 * stdlib/l64a.c: Produce least significant digit first.
6024 * stdlib/Makefile (tests): Add test-a64l.
6025 * stdlib/test-a64l.c: New file.
6026 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6028 2001-10-21 Ulrich Drepper <drepper@redhat.com>
6030 * po/sk.po: Update from translation team.
6032 2001-10-18 Ulrich Drepper <drepper@redhat.com>
6034 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6036 2001-10-18 Andreas Schwab <schwab@suse.de>
6038 * math/libm-test.inc (print_ulps): Print ulp values rounded to
6040 (print_function_ulps): Likewise.
6041 (print_complex_function_ulps): Likewise.
6042 (print_max_error): Likewise.
6043 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
6045 2001-10-16 Andreas Schwab <schwab@suse.de>
6047 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6050 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6051 BSD_SETJMP or BSD__SETJMP is defined, resp.
6052 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6053 a tail call to __sigsetjmp that would require extending the
6055 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6056 * sysdeps/m68k/bsd-setjmp.S: Deleted.
6057 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6058 Reported by Jes Sorensen <jes@trained-monkey.org>.
6060 2001-10-16 Andreas Jaeger <aj@suse.de>
6062 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
6063 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
6066 2001-10-15 Ulrich Drepper <drepper@redhat.com>
6068 * po/ca.po: New file. Contributed by the translation team.
6070 2001-10-15 Ralf Baechle <ralf@gnu.org>
6072 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6073 a varargs prototype. Remove dependency from kernel header files.
6075 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6076 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6078 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6080 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6081 to generate hexadecimal identifier.
6082 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6084 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
6086 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6088 2001-10-14 Ulrich Drepper <drepper@redhat.com>
6090 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6091 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6092 Contributed by Stephen L Moshier <moshier@mediaone.net>.
6094 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6095 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6096 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6097 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6098 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6099 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6101 * timezone/africa: Update from tzdata2001d.
6102 * timezone/asia: Likewise.
6103 * timezone/australasia: Likewise.
6104 * timezone/backward: Likewise.
6105 * timezone/europe: Likewise.
6106 * timezone/leapseconds: Likewise.
6107 * timezone/northamerica: Likewise.
6108 * timezone/southamerica: Likewise.
6109 * timezone/zone.tab: Likewise.
6111 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
6113 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6114 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6116 2001-10-12 Ulrich Drepper <drepper@redhat.com>
6118 * elf/elf.h (PT_TLS): New definition.
6120 2001-10-10 Jeff Bailey <jbailey@nisa.net>
6122 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6125 2001-10-07 Roland McGrath <roland@frob.com>
6127 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6129 2001-10-10 Ulrich Drepper <drepper@redhat.com>
6131 * elf/elf.h: Add more ELFOSABI_* constants.
6133 2001-10-04 Ben Collins <bcollins@debian.org>
6135 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6136 decleration of __need_wchar_t.
6138 2001-10-03 Jakub Jelinek <jakub@redhat.com>
6140 * string/bits/string2.h (__strsep_g): Add prototype.
6142 * string/Versions (__strsep): Remove.
6143 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6145 2001-10-07 Ulrich Drepper <drepper@redhat.com>
6147 * manua/llio.texi: Clarify file references added by mmap.
6148 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6150 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
6152 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6153 Add sc_loadrs and sc_rbs_bas to match current kernel.
6155 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6157 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6159 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6161 2001-09-27 Jakub Jelinek <jakub@redhat.com>
6163 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6164 object has been bumped because of relocation dependency, avoid
6165 duplicates in l_scope.
6166 (show_scope): Fix typos.
6167 * elf/Makefile: Add rules to build and run reldep6.
6168 * elf/reldep6.c: New file.
6169 * elf/reldep6mod0.c: New file.
6170 * elf/reldep6mod1.c: New file.
6171 * elf/reldep6mod2.c: New file.
6172 * elf/reldep6mod3.c: New file.
6173 * elf/reldep6mod4.c: New file.
6175 2001-09-26 Jakub Jelinek <jakub@redhat.com>
6177 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6179 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
6180 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6181 for non-lazy binding. Fix .plt[32768+] handling.
6182 (elf_machine_plt_value): Don't add addend.
6183 (elf_machine_rela): Call sparc64_fixup_plt instead of
6184 elf_machine_fixup_plt.
6185 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6186 dynamic linker at 0xfffff800XXXXXXXX.
6188 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6190 2001-09-28 Ulrich Drepper <drepper@redhat.com>
6192 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6194 2001-09-25 Jakub Jelinek <jakub@redhat.com>
6196 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6197 declare __cmsg_data field if its size would be bigger than 0.
6198 (CMSG_DATA): Adjust accordingly.
6199 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6200 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6201 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6202 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6203 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6204 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6205 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6207 2001-09-25 Ulrich Drepper <drepper@redhat.com>
6209 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6210 * iconvdata/testdata/IBM1160: New file.
6211 * iconvdata/testdata/IBM1160..UTF8: New file.
6212 * iconvdata/testdata/IBM1161: New file.
6213 * iconvdata/testdata/IBM1161..UTF8: New file.
6214 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6216 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6218 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6219 UL_SETFSIZE computations better.
6221 * rt/Makefile: Remove use of filter for librt again.
6223 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
6224 UL_SETFSIZE computations better.
6226 * string/Versions: Export __strsep for GLIBC_2.2.5.
6227 * string/bits/string2.h: Define all __STRING_INLINE functions if
6228 _FORCE_INLINES is defined.
6229 Use int instead of char of parameter types.
6230 (__strsep): Don't use __strsep_g. Don't define it.
6231 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
6232 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
6234 (__stpcpy_a_small): Renamed from __stpcpy_small.
6235 (__strcspn_c1): Don't define if _FORCE_INLINES.
6236 (__strspn_c1): Likewise.
6238 2001-09-22 Ben Collins <bcollins@debian.org>
6240 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
6241 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
6242 * sysdeps/ia64/bits/sigaction.h: Likewise.
6243 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
6245 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6247 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
6249 2001-09-24 Jakub Jelinek <jakub@redhat.com>
6251 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
6253 2001-09-24 Ulrich Drepper <drepper@redhat.com>
6255 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
6257 2001-09-20 H.J. Lu <hjl@gnu.org>
6259 * include/dlfcn.h (__RTLD_SPROF): New definiton.
6260 * elf/dl-open.c (dl_open_worker): Return immediately after loading
6262 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
6263 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
6265 2001-09-20 H.J. Lu <hjl@gnu.org>
6267 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
6270 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6272 * nss/getent.c: Accept -s parameter to overwrite rules in
6273 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
6275 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
6276 with as many ".0" as necessary to form a complete address
6277 inet_network understands.
6279 * nss/getent.c: Various cleanups. Use simpler and fewer function
6282 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6284 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
6286 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
6288 2001-09-22 Ulrich Drepper <drepper@redhat.com>
6290 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
6292 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
6293 * iconvdata/ibm1160.c: New file.
6294 * iconvdata/ibm1160.h: New file.
6295 * iconvdata/ibm1161.c: New file.
6296 * iconvdata/ibm1161.h: New file.
6297 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6299 2001-09-19 Jakub Jelinek <jakub@redhat.com>
6301 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
6302 difference between base address and first PT_LOAD's virtual address,
6303 not the base address.
6305 2001-09-11 Tom Rix <trix@redhat.com>
6307 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
6308 ifdef for __getopt_clean_environment.
6309 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
6311 2001-09-22 Andreas Jaeger <aj@suse.de>
6313 * elf/reldep4.c (main): Add proper prototype to fix warning.
6315 * elf/reldep5.c (main): Remove unused variable.
6317 * math/math_private.h: Add prototypes.
6319 2001-09-21 Andreas Jaeger <aj@suse.de>
6321 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
6322 * sysdeps/x86_64/Dist: New file.
6323 * sysdeps/x86_64/soft-fp/Dist: New file.
6325 * sysdeps/gnu/Dist: Remove eval.c.
6327 2001-09-20 Ulrich Drepper <drepper@redhat.com>
6329 * malloc/memusage.c (realloc): Don't count already allocated
6331 (me): Always use dlsym() to find the real implementations.
6333 * malloc/memusage.sh: Make -n option actually do something.
6335 2001-09-20 Andreas Jaeger <aj@suse.de>
6337 * elf/elf.h (R_390_NUM): Correct value.
6339 * Versions.def: Add missing versions 2.2.3 for libthread_db and
6342 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
6343 for x86-64, install x86-64 into */lib64.
6345 * shlib-versions: Add x86-64.
6347 * elf/elf.h: Add x86-64 relocations.
6349 2001-09-19 Ulrich Drepper <drepper@redhat.com>
6351 * po/fr.po: Update from translation team.
6353 2001-09-19 Andreas Jaeger <aj@suse.de>
6355 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6356 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
6357 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
6358 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
6359 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
6360 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
6361 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
6362 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
6363 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
6364 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6365 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
6366 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
6367 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
6368 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
6369 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
6370 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
6371 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
6372 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
6373 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
6374 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
6375 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
6376 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
6377 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
6378 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
6379 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
6380 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
6381 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
6382 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
6383 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
6384 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
6385 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
6386 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
6387 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
6388 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
6389 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
6390 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
6391 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
6392 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
6393 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
6394 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
6395 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
6396 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
6397 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
6398 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
6399 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
6400 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
6401 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
6402 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
6403 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
6404 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
6405 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
6406 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6407 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
6408 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
6409 * sysdeps/unix/x86_64/sysdep.S: New file.
6410 * sysdeps/unix/x86_64/sysdep.h: New file.
6411 * sysdeps/x86_64/Implies: New file.
6412 * sysdeps/x86_64/Makefile: New file.
6413 * sysdeps/x86_64/Versions: New file.
6414 * sysdeps/x86_64/__longjmp.S: New file.
6415 * sysdeps/x86_64/abort-instr.h: New file.
6416 * sysdeps/x86_64/atomicity.h: New file.
6417 * sysdeps/x86_64/bits/endian.h: New file.
6418 * sysdeps/x86_64/bits/setjmp.h: New file.
6419 * sysdeps/x86_64/bits/string.h: New file.
6420 * sysdeps/x86_64/bp-asm.h: New file.
6421 * sysdeps/x86_64/bsd-_setjmp.S: New file.
6422 * sysdeps/x86_64/bsd-setjmp.S: New file.
6423 * sysdeps/x86_64/dl-machine.h: New file.
6424 * sysdeps/x86_64/elf/initfini.c: New file.
6425 * sysdeps/x86_64/elf/start.S: New file.
6426 * sysdeps/x86_64/ffs.c: New file.
6427 * sysdeps/x86_64/ffsll.c: New file.
6428 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
6429 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
6430 * sysdeps/x86_64/fpu/e_acosl.c: New file.
6431 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
6432 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
6433 * sysdeps/x86_64/fpu/e_expl.c: New file.
6434 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
6435 * sysdeps/x86_64/fpu/e_log10l.S: New file.
6436 * sysdeps/x86_64/fpu/e_log2l.S: New file.
6437 * sysdeps/x86_64/fpu/e_logl.S: New file.
6438 * sysdeps/x86_64/fpu/e_powl.S: New file.
6439 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
6440 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
6441 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
6442 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
6443 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
6444 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
6445 * sysdeps/x86_64/fpu/fegetenv.c: New file.
6446 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
6447 * sysdeps/x86_64/fpu/fegetround.c: New file.
6448 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
6449 * sysdeps/x86_64/fpu/fesetenv.c: New file.
6450 * sysdeps/x86_64/fpu/fesetround.c: New file.
6451 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
6452 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
6453 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
6454 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
6455 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
6456 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
6457 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
6458 * sysdeps/x86_64/fpu/s_atanl.c: New file.
6459 * sysdeps/x86_64/fpu/s_cosl.S: New file.
6460 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
6461 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
6462 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
6463 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
6464 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
6465 * sysdeps/x86_64/fpu/s_logbl.c: New file.
6466 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
6467 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
6468 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
6469 * sysdeps/x86_64/fpu/s_rintl.c: New file.
6470 * sysdeps/x86_64/fpu/s_significandl.c: New file.
6471 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
6472 * sysdeps/x86_64/fpu/s_sinl.S: New file.
6473 * sysdeps/x86_64/fpu/s_tanl.S: New file.
6474 * sysdeps/x86_64/gmp-mparam.h: New file.
6475 * sysdeps/x86_64/hp-timing.c: New file.
6476 * sysdeps/x86_64/hp-timing.h: New file.
6477 * sysdeps/x86_64/htonl.S: New file.
6478 * sysdeps/x86_64/memusage.h: New file.
6479 * sysdeps/x86_64/setjmp.S: New file.
6480 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
6481 * sysdeps/x86_64/stackinfo.h: New file.
6482 * sysdeps/x86_64/sysdep.h: New file.
6483 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
6485 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
6488 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6490 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
6491 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
6493 2001-09-18 Andreas Schwab <schwab@suse.de>
6495 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
6496 list, now that l_scope is a pointer.
6498 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
6501 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
6503 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
6504 (elf_machine_rela_relative): Add a missing declaration.
6506 2001-09-18 Jakub Jelinek <jakub@redhat.com>
6508 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
6509 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
6510 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
6511 ldd-rewrite scripts.
6513 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6515 * elf/ldd.bash.in: Update copyright message.
6517 2001-09-17 H.J. Lu <hjl@gnu.org>
6519 * hurd/hurdmalloc.c (bcopy): Removed.
6520 (realloc): Replace bcopy with memcpy.
6521 * hurd/path-lookup.c (file_name_path_scan): Likewise.
6522 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
6523 * sunrpc/rpcinfo.c (pmapdump): Likewise.
6525 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
6526 (gethostbyaddr): Likewise.
6527 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
6529 2001-09-18 Ulrich Drepper <drepper@redhat.com>
6531 * sysdeps/gnu/eval.c: Removed.
6533 2001-09-18 Andreas Jaeger <aj@suse.de>
6535 * sysdeps/i386/fpu/s_logbl.S: Move to ...
6536 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
6538 * sysdeps/i386/fpu/s_rintl.S: Move to ...
6539 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
6541 * sysdeps/i386/fpu/s_significandl.S: Move to ...
6542 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
6544 2001-09-16 Ulrich Drepper <drepper@redhat.com>
6546 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6549 2001-09-14 H.J. Lu <hjl@gnu.org>
6551 * sysdeps/mips/fpu/libm-test-ulps: Updated.
6553 2001-09-14 Ulrich Drepper <drepper@redhat.com>
6555 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
6556 Patch by Florian La Roche <laroche@redhat.com>.
6558 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
6560 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
6563 2001-09-14 Andreas Schwab <schwab@suse.de>
6565 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
6566 Sumner <bls@sgi.com>.
6567 * posix/execlp.c: Likewise.
6569 2001-09-13 Jakub Jelinek <jakub@redhat.com>
6571 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
6572 is already found earlier in the search scope.
6574 2001-09-12 Jakub Jelinek <jakub@redhat.com>
6576 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
6579 2001-09-13 Ulrich Drepper <drepper@redhat.com>
6581 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
6583 2001-09-12 Ulrich Drepper <drepper@redhat.com>
6585 * config.h.in: Enforce optimization to be used.
6586 * Makeconfig (preprocess-versions): Define ASSEMBLER.
6587 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
6588 * posix/Makefile (annexc-CFLAGS): Define to -O.
6589 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
6591 2001-09-11 Ulrich Drepper <drepper@redhat.com>
6593 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
6594 Patch by Stephan Kulow.
6596 2001-09-08 Ben Collins <bcollins@debian.org>
6598 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
6599 usage of RESOLVE() (r_type, not reloc->r_type).
6601 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6603 * elf/dl-object.c: Avoid allocating extra memory block for name.
6604 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
6605 allocated separately.
6606 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6608 2001-09-08 H.J. Lu <hjl@gnu.org>
6610 * po/zh_TW.po: Fix a typo.
6612 2001-09-07 Tom Rix <trix@redhat.com>
6614 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
6616 2001-08-26 Tom Rix <trix@redhat.com>
6618 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
6619 command line options.
6620 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
6621 * sysdeps/unix/sysv/aix/start.c: Removed.
6622 * sysdeps/unix/sysv/aix/start-libc.c: New file.
6623 * sysdeps/unix/sysv/aix/init-first.c: New file.
6624 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
6626 2001-09-08 Ben Collins <bcollins@debian.org>
6628 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
6629 * sysdeps/generic/dl-machine.h: Likewise.
6630 * sysdeps/hppa/dl-fptr.c: Likewise.
6631 * sysdeps/ia64/dl-fptr.c: Likewise.
6632 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6633 * sysdeps/mips/dl-machine.h: Likewise.
6634 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6635 * sysdeps/powerpc/dl-machine.c: Likewise.
6637 2001-09-07 Ben Collins <bcollins@debian.org>
6639 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
6641 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
6643 2001-09-08 Ulrich Drepper <drepper@redhat.com>
6645 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
6646 dependencies if necessary.
6648 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
6649 loaded directly) determine length if l_initfini list by iterating
6650 over its elements. Minor optimizations.
6651 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
6652 for dependency objects.
6653 If object was already loaded check whether any of the dependencies
6654 is already on the relocation dependency list. If yes, remove the
6655 latter. Minor optimizations.
6656 * elf/dl-lookup.c (add_dependency): Add check for self reference of
6657 maps here. Search l_initfini list only if the object was loaded
6658 directly and not only as a dependency.
6659 (_dl_lookup_symbol): Add relocation dependency also if object
6660 is not in global scope. Remove test for self-reference here.
6661 (_dl_lookup_versioned_symbol): Likewise.
6662 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
6663 element of first name record.
6664 * elf/loadtest.c: Add some more test to recognize early if an object
6666 * elf/Makefile: Add rules to build and run reldep5.
6667 * elf/reldep5.c: New file.
6668 * elf/reldepmod5.c: New file.
6669 * elf/reldepmod6.c: New file.
6671 * elf/reldep2.c: Fix typo.
6673 2001-09-07 Ulrich Drepper <drepper@redhat.com>
6675 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
6676 elements. Change l_scope to be a pointer only.
6677 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
6678 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
6679 here add searchlist of newly open file to the dependency's scope.
6680 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
6681 only searchlist from its scope. Free own scope array if necessary.
6682 * elf/Makefile (tests): Add dblload and dblunload now.
6684 2001-09-06 Andreas Jaeger <aj@suse.de>
6686 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
6689 2001-09-05 Ulrich Drepper <drepper@redhat.com>
6691 * elf/Makefile: Add rules to build new tests. Don't run them yet since
6693 * elf/dblload.c: New file.
6694 * elf/dblloadmod1.c: New file.
6695 * elf/dblloadmod2.c: New file.
6696 * elf/dblloadmod3.c: New file.
6697 * elf/dblunload.c: New file.
6699 2001-09-04 Richard Henderson <rth@redhat.com>
6701 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
6702 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
6704 2001-09-04 Ulrich Drepper <drepper@redhat.com>
6706 Correct very misleading message for error in failed runtime relocation.
6707 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
6709 (_dl_signal_cerror): Likewise.
6710 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6711 * elf/dl-close.c: Likewise.
6712 * elf/dl-deps.c: Likewise.
6713 * elf/dl-load.c: Likewise.
6714 * elf/dl-lookup.c: Likewise.
6715 * elf/dl-open.c: Likewise.
6716 * elf/dl-reloc.c: Likewise.
6717 * elf/dl-sym.c: Likewise.
6718 * elf/dl-version.c: Likewise.
6719 * sysdeps/generic/dl-sysdep.c: Likewise.
6721 2001-09-04 Jakub Jelinek <jakub@redhat.com>
6723 * iconv/strtab.c (strtabinit): Initialize null Strent.
6724 (newstring): Move len == 0 handling...
6725 (strtabadd): ...here.
6726 If len == 1, return null Strent.
6727 When inserting a suffix of an existing string, check if
6728 it is not equal to some suffix already recorded.
6729 Copy left and right members over if adding longer string.
6731 2001-09-04 Jakub Jelinek <jakub@redhat.com>
6733 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
6735 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
6736 (__syscall_gethostname): Add prototype.
6738 2001-09-04 Ulrich Drepper <drepper@redhat.com>
6740 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
6742 2001-09-02 Ulrich Drepper <drepper@redhat.com>
6744 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
6746 2001-08-27 Roland McGrath <roland@frob.com>
6748 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
6749 short, copy that much into NAME anyway before returning error.
6751 2001-09-01 Richard Henderson <rth@redhat.com>
6753 * sysdeps/alpha/elf/Dist: Remove file.
6754 * sysdeps/alpha/elf/Makefile: Remove file.
6755 * sysdeps/alpha/elf/crtbegin.S: Remove file.
6756 * sysdeps/alpha/elf/crtend.S: Remove file.
6757 * sysdeps/alpha/elf/initfini.c: New file.
6759 2001-09-01 Mark Kettenis <kettenis@gnu.org>
6761 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
6762 * iconv/tst-iconv3.c: Likewise.
6764 2001-09-01 Jakub Jelinek <jakub@redhat.com>
6766 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
6768 2001-09-01 Ulrich Drepper <drepper@redhat.com>
6770 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
6772 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
6773 * iconv/iconv_prog.c (insert_cache): New function.
6774 (print_known_names): If cache is used call insert_cache to use the
6775 information from the cache [PR libc/2509].
6777 2001-08-31 Ulrich Drepper <drepper@redhat.com>
6779 * time/strptime.c (strptime_internal): Recognize 'l' format and
6780 handle it like 'I' for symmetry with strftime.
6782 2001-08-31 Richard Henderson <rth@redhat.com>
6784 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
6785 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
6786 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
6787 (print_statistics): Make scalar unsigned long long.
6788 * sysdeps/alpha/hp-timing.h: New file.
6790 2001-08-31 Jakub Jelinek <jakub@redhat.com>
6792 * stdio-common/perror.c (perror): Save errno early, pass it
6793 down to perror_internal.
6794 (perror_internal): Add errnum argument.
6796 2001-08-31 Jakub Jelinek <jakub@redhat.com>
6798 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
6799 Don't add old memory content for R_ALPHA_REFQUAD.
6801 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6803 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
6806 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
6807 instead of open, __close instead of close, __getpagesize instead
6810 * string/argz-stringify.c (__argz_stringify): Use __strnlen
6812 * include/string.h (strndupa): Redefine here to use __strnlen
6814 * string/strndup.c (__strndup): Use __strnlen not strnlen.
6816 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
6819 2001-08-30 Jakub Jelinek <jakub@redhat.com>
6821 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
6822 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
6823 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
6824 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
6825 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
6826 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
6827 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
6829 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6831 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
6833 2001-08-30 Andreas Jaeger <aj@suse.de>
6835 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
6836 contributed Stephen L Moshier.
6838 2001-08-30 Jakub Jelinek <jakub@redhat.com>
6840 * sunrpc/etc.rpc (sgi_fam): Add.
6842 2001-08-30 Ulrich Drepper <drepper@redhat.com>
6844 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
6846 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6848 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
6849 first is from a previous call.
6850 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
6852 2001-08-29 Andreas Schwab <schwab@suse.de>
6854 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
6856 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6858 * config.make.in (INSTALL_SCRIPT): Define.
6859 * Makeconfig (INSTALL_SCRIPT): Define.
6860 * Makerules (do-install-script): New macro to install scripts using
6862 (install-bin-script): New rule to install scripts with
6864 (install-bin-script-nosubdir): New rule.
6865 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
6866 (distinfo-vars): Add $(install-bin-script).
6867 * Rules (others): Likewise.
6868 * Makefile (glibcbug): Install with install-bin-script.
6869 * debug/Makefile (xtrace): Likewise.
6870 (catchsegv): Likewise.
6871 * elf/Makefile (ldd): Likewise.
6872 * malloc/Makefile (mtrace): Likewise.
6873 * timezone/Makefile (tzselect): Likewise.
6875 2001-08-29 H.J. Lu <hjl@gnu.org>
6877 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
6878 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
6879 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
6881 2001-08-29 Andreas Schwab <schwab@suse.de>
6883 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
6885 2001-08-28 H.J. Lu <hjl@gnu.org>
6887 * Makeconfig (combreloc-LDFLAGS): New variable.
6888 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
6889 * config.make.in (have-z-combreloc): New variable.
6890 * configure.in: Substitute libc_cv_z_combreloc.
6892 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6894 * po/sv.po: Update from translation team.
6895 * po/fr.po: Likewise.
6896 * po/da.po: Likewise.
6898 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6900 * Makerules: Fix a typo: MD% -> MD5.
6902 2001-08-28 Ulrich Drepper <drepper@redhat.com>
6904 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
6905 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
6907 2001-08-28 Andreas Jaeger <aj@suse.de>
6909 * manual/libc-texinfo.sh: Add entry about free manuals.
6911 * manual/contrib.texi (Contributors): Fix cross reference.
6913 * manual/libc.texinfo (Copying): Include freemanuals.
6915 * manual/Makefile (appendices): Add freemanuals.
6917 * manual/freemanuals.texi: New file.
6918 Patch by Brian Youmans <3diff@gnu.org>.
6920 * manual/libm-err-tab.pl: Pretty print more platforms, print a
6923 * manual/math.texi (Errors in Math Functions): Fix grammar, start
6924 table on separate page.
6925 Patch by Brian Youmans <3diff@gnu.org>.
6927 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6929 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
6930 the connection went down after we first used it try to connect
6931 again and resend the message before printing to the console.
6932 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
6934 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6936 * string/tst-strlen.c (main): Test strnlen (, -1) too.
6937 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
6940 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6942 * iconv/strtab.c (searchstring): Use correct length for comparison.
6943 (strtabadd): Account total size correct if new string has old string as
6946 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6948 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
6950 2001-08-27 Andreas Jaeger <aj@suse.de>
6952 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
6954 * math/libm-test.inc (j0_test): Add extra tests.
6955 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
6956 not x, in Hankel approximation.
6957 Patches by Stephen L Moshier.
6959 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6961 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
6964 * configure.in: Fix test for .rela.dyn section.
6966 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
6968 2001-08-26 Jakub Jelinek <jakub@redhat.com>
6970 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
6971 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
6972 Pass type_class to _dl_lookup_*.
6973 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
6974 Pass around just type_class instead of noexec, noplt pair.
6975 (_dl_lookup_versioned_symbol): Likewise.
6976 (_dl_lookup_symbol_skip): Pass around just type_class instead of
6978 (_dl_lookup_versioned_symbol_skip): Likewise.
6979 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
6980 * elf/do-lookup.h (do_lookup): Likewise.
6981 * include/link.h (struct link_map): Replace noexec and noplt fields
6982 in l_lookup_cache with type_class field.
6983 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
6984 ELF_RTYPE_CLASS_COPY): Define.
6985 Adjust prototypes for _dl_lookup_symbol and
6986 _dl_lookup_versioned_symbol.
6987 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
6988 elf_machine_lookup_noexec_p): Remove.
6989 (elf_machine_type_class): Define.
6990 * sysdeps/arm/dl-machine.h: Likewise.
6991 * sysdeps/hppa/dl-machine.h: Likewise.
6992 * sysdeps/cris/dl-machine.h: Likewise.
6993 * sysdeps/i386/dl-machine.h: Likewise.
6994 * sysdeps/ia64/dl-machine.h: Likewise.
6995 * sysdeps/m68k/dl-machine.h: Likewise.
6996 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6997 * sysdeps/mips/dl-machine.h: Likewise.
6998 * sysdeps/powerpc/dl-machine.h: Likewise.
6999 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7000 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7001 * sysdeps/sh/dl-machine.h: Likewise.
7002 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7003 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7005 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7007 * manual/message.texi (Advanced gettext functions): Change
7008 description of plural forms for Slovak.
7009 Reported by Marcel Telka <marcel@telka.sk>.
7011 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
7012 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7014 2001-08-26 Jakub Jelinek <jakub@redhat.com>
7016 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7017 typo. Patch by Florian La Roche <laroche@redhat.com>.
7019 2001-08-26 Ulrich Drepper <drepper@redhat.com>
7021 * include/link.h (struct link_map): Add l_lookup_cache element.
7022 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7023 (RESOLVE_MAP): Likewise.
7024 (_dl_relocate_object): Remove cache initialization.
7025 * elf/dl-lookup.c: Rip out cache handling code.
7026 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7029 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7030 remove some __builtin_expect.
7031 (_dl_lookup_versioned_symbol): Likewise.
7033 * config.h.in: Add HAVE_Z_COMBRELOC.
7034 * configure.in: Add test for -z combreloc.
7036 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7037 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
7038 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
7039 case to almost no code.
7041 2001-08-25 Ulrich Drepper <drepper@redhat.com>
7043 * po/tr.po: Update from translation team.
7045 2001-08-24 Andreas Jaeger <aj@suse.de>
7047 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7050 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7052 * elf/rtld.c (print_statistics): Printf % after percent values.
7053 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7055 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7056 don't have to compute the hash value and initialize current_value.
7057 Move reference_name variable to where it is needed.
7058 (_dl_lookup_versioned_symbol): Likewise.
7060 2001-08-24 Roland McGrath <roland@frob.com>
7062 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7063 Just test that strerror returns non-null for a few errno codes.
7065 2001-08-23 Roland McGrath <roland@frob.com>
7067 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7068 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7070 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7072 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7075 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7077 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7080 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7081 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7083 * elf/rtld.c: Include <sys/param.h>.
7084 * elf/dl-reloc.c: Likewise.
7086 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7088 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7089 empty to prevent junk from being generated.
7090 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7092 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7094 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7095 records. Rename endrel to relative, initialize it to r, and use it
7096 in elf_machine_rel_relative calls. Point r after relative relocs.
7098 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7100 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7103 2001-08-24 Jakub Jelinek <jakub@redhat.com>
7105 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7106 necessary. Undefine newly defined macros at the end.
7107 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7108 Rename from elf_machine_rel_relative.
7109 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7110 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7111 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7112 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7114 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7116 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7118 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7120 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7121 Likewise. Fix argument types.
7122 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7123 Likewise. Fix argument types.
7124 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7126 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7127 ElfW(Rel) in argument.
7128 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7131 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
7133 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7135 2001-08-24 Andreas Jaeger <aj@suse.de>
7137 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7138 Stephen L Moshier <moshier@mediaone.net>.
7140 2001-08-24 Ulrich Drepper <drepper@redhat.com>
7142 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7143 first if RELCOUNT is set.
7145 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7146 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7147 elf_machine_rel_relative.
7148 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7149 Minor optimizations.
7150 * sysdeps/arm/dl-machine.h: Likewise.
7151 * sysdeps/cris/dl-machine.h: Likewise.
7152 * sysdeps/hppa/dl-machine.h: Likewise.
7153 * sysdeps/i386/dl-machine.h: Likewise.
7154 * sysdeps/ia64/dl-machine.h: Likewise.
7155 * sysdeps/m68k/dl-machine.h: Likewise.
7156 * sysdeps/mips/dl-machine.h: Likewise.
7157 * sysdeps/powerpc/dl-machine.h: Likewise.
7158 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7159 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7160 * sysdeps/sh/dl-machine.h: Likewise.
7161 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7162 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7164 2001-08-23 Roland McGrath <roland@frob.com>
7166 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7168 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7169 sysdeps/mach version. Implement counting ("recursive") mutexes
7170 on top of cthreads mutexes.
7171 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7173 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7174 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7175 (__libc_cleanup_region_start, __libc_cleanup_region_end,
7176 __libc_clean_end): Define these to call the cleanup function after
7177 normal exit when they're supposed to.
7179 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7180 Take new first arg DOIT, a boolean saying whether to really install
7181 any cleanup handler.
7182 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7183 (__libc_cleanup_end): Likewise.
7184 * sysdeps/generic/bits/libc-lock.h: Same changes.
7185 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7186 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7187 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7189 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7190 * sysdeps/generic/bits/stdio-lock.h
7191 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7193 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7195 * elf/ldconfig.c (search_dir): Remove stale symlinks.
7197 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7199 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7200 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7202 (_dl_lookup_versioned_symbol): Likewise.
7203 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7205 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7206 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7207 (lookup_cache, lookup_cache_versioned): Add declarations.
7209 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7211 * stdlib/tst-random.c (main): Swap parameters in fail call.
7212 Patch by Pete Bevin <pete@petebevin.com>.
7214 2001-08-23 Jakub Jelinek <jakub@redhat.com>
7216 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7218 2001-08-23 Ulrich Drepper <drepper@redhat.com>
7220 * malloc/obstack.c: Indent preprocessor directives.
7221 Patch by Jim Meyering <meyering@ascend.com>.
7223 * po/ja.po: Update from translation team.
7225 2001-08-23 Roland McGrath <roland@frob.com>
7227 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
7229 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
7230 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
7232 2001-08-22 Roland McGrath <roland@frob.com>
7234 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
7235 __libc_lock_define_recursive.
7236 * elf/dl-open.c: Don't declare it here any more.
7237 * elf/dl-close.c: Likewise.
7238 * elf/dl-lookup.c: Likewise.
7239 * elf/dl-iteratephdr.c: Likewise.
7240 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
7241 __libc_lock_unlock_recursive.
7242 * elf/dl-close.c (_dl_close): Likewise
7243 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
7244 * elf/dl-open.c (_dl_open): Likewise
7246 * sysdeps/generic/bits/libc-lock.h
7247 (__libc_lock_define_recursive): New macro.
7248 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
7249 (_IO_lock_lock): Use __libc_lock_lock_recursive.
7250 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
7252 * conform/conformtest.pl (checknamespace): Sort the output list.
7254 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
7255 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
7256 definitions conditional on [__USE_XOPEN].
7258 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
7259 these unconditionally, not only use [__USE_BSD], so as to match
7260 the sysdeps/unix/sysv/linux files.
7262 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7264 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
7267 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
7270 2001-08-22 Roland McGrath <roland@frob.com>
7272 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
7273 conditionalization of sa_handler/sa_sigaction member types to
7274 match the sysdeps/unix/sysv/linux file.
7276 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7278 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
7279 symbol sizes a bit better.
7281 * sysdeps/ia64/strncpy.S: Complete rewrite.
7282 Contributed by Jakub Jelinek <jakub@redhat.com>.
7284 * string/stratcliff.c (main): Add strncpy test.
7286 2001-08-22 Roland McGrath <roland@frob.com>
7288 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
7289 and don't declare unsetenv or _environ directly.
7290 (unsetenv): Return int, not void. Use __environ instead of _environ.
7292 2001-08-01 Mark Kettenis <kettenis@gnu.org>
7294 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
7295 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
7296 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
7297 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7298 test for cmsg struct size.
7300 2001-04-23 Paul Eggert <eggert@twinsun.com>
7302 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
7303 Rename __argc to ___argc in prototypes to avoid compatibility
7304 problems with systems that reserve the identifier "__argc".
7305 Similarly for __argv.
7307 2001-08-21 Roland McGrath <roland@frob.com>
7309 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
7311 * mach/Makefile (tests): Removed.
7312 * mach/hello.c: File removed.
7314 2001-08-22 Ulrich Drepper <drepper@redhat.com>
7316 * po/sv.po: Update from translation team.
7318 * stdio-common/vfscanf.c: Fix handling of %l[].
7319 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
7321 * libio/Makefile (tests): Add tst-sscanf.
7322 * libio/tst-sscanf.c: New file.
7324 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
7325 * malloc/mtrace.c (tr_where): dli_sname always points to a
7326 non-empty string if != NULL.
7327 Reported by Tim Janik <timj@gtk.org>.
7329 2001-08-22 Jakub Jelinek <jakub@redhat.com>
7331 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
7332 buf. Free resources on failure.
7333 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
7334 (makefd_xprt): Likewise.
7335 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7336 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
7337 * sunrpc/auth_unix.c (authunix_create): Likewise.
7339 2001-08-21 Jakub Jelinek <jakub@redhat.com>
7341 * string/strnlen.c: Remove.
7342 * sysdeps/generic/strnlen.c: New file.
7343 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
7345 2001-08-21 Roland McGrath <roland@frob.com>
7347 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
7348 as a macro, not an extern inline function.
7350 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
7351 * Versions.def (libc): Add GLIBC_2.2.5 set.
7352 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
7353 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
7355 2001-08-20 Roland McGrath <roland@frob.com>
7357 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
7358 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
7360 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7362 * string/bits/string2.h: Remove strnlen optimization here.
7363 * sysdeps/i386/i486/bits/string.h: Add it here.
7365 2001-08-21 Wolfram Gloger <wg@malloc.de>
7367 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
7369 2001-08-21 Ulrich Drepper <drepper@redhat.com>
7371 * po/gl.po: Update from translation team.
7373 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7375 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
7376 * misc/err.c (convert_and_print): Likewise.
7378 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
7381 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7383 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
7384 change of the gregset_t type.
7385 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7387 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
7389 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
7391 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7393 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
7395 * string/strnlen.c: Fix the implementation. We cannot use memchr.
7397 2001-08-18 Mark Kettenis <kettenis@gnu.org>
7399 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
7400 before calling the cthreads initialization code.
7402 2001-08-20 Ulrich Drepper <drepper@redhat.com>
7404 * argp/argp-help.c: Fix two problems introduced in last change.
7406 * include/dirent.h: Include <dirstream.h> first.
7408 2001-08-19 Ulrich Drepper <drepper@redhat.com>
7410 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
7412 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
7413 * sunrpc/xdr_rec.c: Likewise.
7414 * sunrpc/xdr_mem.c: Likewise.
7415 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
7416 * sunrpc/rpc_cmsg.c: Likewise.
7417 * sunrpc/getrpcport.c (getrpcport): Likewise.
7418 * sunrpc/clnt_simp.c (callrpc): Likewise.
7419 * sunrpc/clnt_gen.c (clnt_create): Likewise.
7420 * string/envz.c: Likewise.
7422 * po/ko.po: Update from translation team.
7424 * argp/argp-help.c: Handle wide oriented stderr stream.
7426 2001-08-18 Ulrich Drepper <drepper@redhat.com>
7428 * sysdeps/generic/strtol.c: Little optimizations. Add some
7431 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
7433 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
7434 * wcsmbs/wcwidth.c (wcwdith): Likewise.
7435 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
7437 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
7439 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
7441 * time/time.h (struct timespec): Use __time_t for tv_sec element.
7443 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
7444 wchar_t for function declarations and defintions.
7446 * misc/sys/select.h: Define __need_time_t before including <time.h>.
7447 Define suseconds_t if it hasn't happened yet.
7449 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
7451 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
7453 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
7456 * conform/data/stddef.h-data: Remove wint_t.
7458 * conform/conformtest.pl: Change namespace test to take #undef
7461 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
7463 * conform/data/sys/socket.h-data: Add sockatmark.
7465 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7467 * io/fts.c: Update from recent BSD source.
7469 2001-08-17 Roland McGrath <roland@frob.com>
7471 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
7472 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
7475 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7477 * locale/duplocale.c (__duplocale): Also initialize the special
7480 * conform/data/netdb.h-data: Adjust gai_strerror return type.
7482 2001-08-17 Andreas Jaeger <aj@suse.de>
7484 * misc/getpass.c: Include wchar.h for prototypes.
7485 * malloc/obstack.c: Likewise.
7487 2001-08-17 Ulrich Drepper <drepper@redhat.com>
7489 * sunrpc/svc_simple.c (universal): Use __write instead of write.
7491 * wcsmbs/wcscoll.c: Also define __wcscoll.
7492 * include/wchar.h: Declare __wcscoll.
7494 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
7495 * libio/vwprintf.c: Likewise.
7496 * libio/wprintf.c: Likewise.
7498 * iconv/gconv_cache.c: Use __munmap instead of munmap.
7500 2001-08-16 Ulrich Drepper <drepper@redhat.com>
7502 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
7504 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
7505 wcslen, and __wcscoll instead of wcscoll.
7507 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
7509 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
7510 __getuid instead of getuid.
7512 * stdio-common/perror.c (perror): Use __close instead of close.
7513 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7514 * libio/freopen.c (freopen): Likewise.
7515 * libio/freopen64.c (freopen64): Likewise.
7517 * libio/tst-ungetwc2.c (main): Define str const.
7519 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
7520 * libio/fwprintf.c: Also define __fwprintf.
7521 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
7522 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
7523 * assert/assert-perr.c: Likewise.
7524 * assert/assert.c: Likewise.
7525 * gmon/gmon.c: Likewise.
7526 * inet/rcmd.c: Likewise.
7527 * malloc/obstack.c: Likewise.
7528 * misc/err.c: Likewise.
7529 * misc/error.c: Likewise.
7530 * misc/getpass.c: Likewise.
7531 * posix/getopt.c: Likewise.
7532 * resolv/res_hconf.c: Likewise.
7533 * stdio-common/perror.c: Likewise.
7534 * stdio-common/psignal.c: Likewise.
7535 * stdlib/fmtmsg.c: Likewise.
7536 * sunrpc/auth_unix.c: Likewise.
7537 * sunrpc/clnt_perr.c: Likewise.
7538 * sunrpc/clnt_tcp.c: Likewise.
7539 * sunrpc/clnt_udp.c: Likewise.
7540 * sunrpc/clnt_unix.c: Likewise.
7541 * sunrpc/svc_simple.c: Likewise.
7542 * sunrpc/svc_tcp.c: Likewise.
7543 * sunrpc/svc_udp.c: Likewise.
7544 * sunrpc/svc_unix.c: Likewise.
7545 * sunrpc/xdr.c: Likewise.
7546 * sunrpc/xdr_array.c: Likewise.
7547 * sunrpc/xdr_rec.c: Likewise.
7548 * sunrpc/xdr_ref.c: Likewise.
7549 * sysdeps/generic/wordexp.c: Likewise.
7551 * po/it.po: Update from translation team.
7553 * misc/err.c: Handle wide oriented stderr stream.
7555 2001-08-14 Tom Rix <trix@redhat.com>
7557 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
7558 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
7560 2001-08-13 Tom Rix <trix@redhat.com>
7562 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
7563 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
7566 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
7568 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
7569 Store the access registers to the ucontext structure.
7570 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
7573 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
7574 Load the access registers from the ucontext structure.
7575 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
7578 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
7579 offsets to the new ucontext layout.
7580 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
7582 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
7583 of the ucontext structure.
7584 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7586 2001-08-15 Ulrich Drepper <drepper@redhat.com>
7588 * misc/error.c (error): Handle wide oriented stderr stream correctly.
7589 (error_at_line): Likewise.
7591 * stdio-common/perror.c (perror): Implement according to standard.
7592 The stream orientation must not be changed if the stream was not
7593 oriented before the call.
7594 * stdio-common/Makefile (tests): Add tst-perror.
7595 * stdio-common/tst-perror.c: New file.
7598 See ChangeLog.12 for earlier changes.