1 2002-04-14 Bruno Haible <bruno@clisp.org>
3 * posix/regex.c (re_max_failures): Add back symbol for binary
6 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
8 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
9 of buffer building functions.
10 * posix/regex_internal.c (re_string_allocate): New function.
11 (re_string_realloc_buffers): New function.
12 (re_string_skip_chars): New function.
13 (re_string_reconstruct): New function.
14 (re_string_construct): Adapt it to new interface of buffer building
16 (re_string_construct_common): Likewise.
17 (build_wcs_buffer): Likewise.
18 (build_wcs_upper_buffer): Likewise.
19 (build_upper_buffer): Likewise.
20 (re_string_translate_buffer): Likewise.
21 (re_string_context_at): Adapt it to variable length buffers.
22 * posix/regex_internal.h (re_string_t): Add new fields to handle
23 variable length buffers.
24 (re_match_context_t): Likewise.
25 * posix/regexec.c (re_search_internal): Adapt it to new interface
26 of re_string_t and re_match_context_t.
27 (acquire_init_state_context): Likewise.
28 (check_matching): Likewise.
29 (check_halt_state_context): Likewise.
30 (proceed_next_node): Likewise.
32 (sift_states_backward): Likewise.
33 (clean_state_log_if_need): Likewise.
34 (sift_states_iter_mb): Likewise.
35 (sift_states_iter_bkref): Likewise.
36 (add_epsilon_backreference): Likewise.
37 (transit_state): Likewise.
38 (transit_state_sb): Likewise.
39 (transit_state_mb): Likewise.
40 (transit_state_bkref): Likewise.
41 (transit_state_bkref_loop): Likewise.
42 (check_node_accept): Likewise.
43 (match_ctx_init): Likewise.
44 (extend_buffers): New function.
46 2002-04-21 Bruno Haible <bruno@clisp.org>
48 * iconvdata/tst-table.sh: For the second check, use the truncated
49 GB18030 charmap table, like for the first check.
51 2002-04-24 Ulrich Drepper <drepper@redhat.com>
53 * elf/dl-load.c (open_verify): Correct __lseek parameters.
54 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
56 2002-04-23 H.J. Lu <hjl@gnu.org>
58 * include/math.h (isfinite): Fix a typo.
60 2002-04-24 Ulrich Drepper <drepper@redhat.com>
62 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
63 which is created by the test suite.
65 2002-04-20 Bruno Haible <bruno@clisp.org>
67 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
68 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
70 2002-04-20 Bruno Haible <bruno@clisp.org>
72 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
75 2002-04-20 Bruno Haible <bruno@clisp.org>
77 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
78 of data->__statep->__count.
80 2002-04-20 Bruno Haible <bruno@clisp.org>
82 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
84 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
86 2002-04-24 Roland McGrath <roland@frob.com>
88 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
89 use END macro instead of our own .end directive.
90 Use `callsys' insn mnemonic instead of `call_pal'.
92 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
94 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
95 macro; we need this for Hurd.
97 Log entry was missing for 2002/03/24 commit of rev 1.8,
98 goes with 2002-03-17 changes.
99 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
100 (sysdep_routines): Append ioperm here.
101 (sysdep_headers): Append sys/io.h here.
103 2002-04-23 Roland McGrath <roland@frob.com>
105 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
106 * sysdeps/mach/hurd/sendto.c: Likewise.
107 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
108 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
109 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
111 2002-04-22 Roland McGrath <roland@frob.com>
113 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
114 failure from i386_io_perm_* RPCs to ENOSYS.
116 2002-04-22 Andreas Jaeger <aj@suse.de>
118 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
120 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
122 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
123 register instead of destroying %rbx.
125 2002-04-21 Ulrich Drepper <drepper@redhat.com>
127 * string/string.h: Declare strerror_r also for XPG6.
129 2002-04-19 Roland McGrath <roland@frob.com>
131 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
133 2002-04-20 Ulrich Drepper <drepper@redhat.com>
135 * Makefile: Add handling of xtests and xcheck targets.
136 * MakeTAGS: Likewise.
137 * Makeconfig: Likewise.
138 * Makerules: Likewise.
140 * manual/Makefile: Likewise.
141 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
142 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
144 2002-04-11 Zack Weinberg <zack@codesourcery.com>
146 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
148 * sunrpc/auth_none.c: Include bits/libc-lock.h.
149 Delete #ifdef _RPC_THREAD_SAFE_ block.
150 (authnone_private): Make a struct, not a pointer to struct.
151 (authnone_private_guard): New once-control variable.
152 (authnone_create_once): New function, split out of
153 authnone_create. No need to allocate memory.
154 (authnone_create): Just call authnone_create_once via
155 __libc_once, then return &authnone_private->no_client.
156 (authnone_marshal): Access private data via CLIENT argument,
157 not authnone_private pointer.
158 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
159 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
162 2002-04-12 H.J. Lu <hjl@gnu.org>
164 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
166 2002-04-18 Bruno Haible <bruno@clisp.org>
168 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
169 FROM_DIRECTION): Make the FROM direction stateless.
170 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
171 FROM_DIRECTION): Likewise.
173 2002-04-15 Bruno Haible <bruno@clisp.org>
175 * iconvdata/JISX0213.TXT: New file.
176 * iconvdata/jisx0213.h: New file.
177 * iconvdata/jisx0213.c: New file.
178 * iconvdata/euc-jisx0213.c: New file.
179 * iconvdata/shift_jisx0213.c: New file.
180 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
181 * iconvdata/EUC-JISX0213.precomposed: New file.
182 * iconvdata/SHIFT_JISX0213.precomposed: New file.
183 * iconvdata/SHIFT_JISX0213.irreversible: New file.
184 * iconvdata/tst-table-to.c (main): Make it work for encodings for
185 which the "to" direction is stateful.
186 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
187 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
189 (libJISX0213-routines): New variable.
190 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
191 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
192 (LDFLAGS-libJISX0213.so): New variable.
193 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
194 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
195 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
197 2002-04-15 Bruno Haible <bruno@clisp.org>
199 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
200 uint32_t. Update to Unicode 3.2.
201 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
202 (BODY for TO_LOOP): Handle the ASCII range specially.
203 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
204 * iconvdata/testdata/BIG5HKSCS: Remove a character.
205 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
207 2002-04-15 Bruno Haible <bruno@clisp.org>
209 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
210 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
212 2002-04-15 Bruno Haible <bruno@clisp.org>
214 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
215 (ucs4_to_cns11643): Update.
216 * iconvdata/cns11643.c: Update to Unicode 3.2.
217 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
218 __cns11643_from_ucs4p2_tab): Regenerated.
219 (__cns11643_from_ucs4p2c_tab): New array.
220 * iconvdata/cvs11643l1.c: Update comments.
221 * iconvdata/EUC-TW.irreversible: Remove two entries.
223 2002-04-15 Bruno Haible <bruno@clisp.org>
225 * locale/C-translit.h.in: Update to Unicode 3.2.
226 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
227 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
229 2002-04-15 Bruno Haible <bruno@clisp.org>
231 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
232 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
234 2002-04-15 Bruno Haible <bruno@clisp.org>
236 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
237 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
238 always one byte, not 0 bytes in some cases and 2 bytes in others.
240 * iconvdata/tst-table-from.c (main): Correct the usage message.
242 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
244 * posix/regcomp.c (parse_expression): Fix incorrect error code.
245 (parse_dup_op): Fix error handling like "a{}".
246 (parse_bracket_exp): Add error handling.
247 (fetch_number): Add error handling for "a{<very_large_number>}".
249 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
251 * posix/regcomp.c (parse_bracket_symbol): Add error handling
252 in case that the symbol name is too long.
253 (build_charclass): Handle [:lower:]/[:uppper:] correctly
254 in case of REG_ICASE.
256 2002-04-19 Andreas Jaeger <aj@suse.de>
258 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
261 2002-04-15 H.J. Lu <hjl@gnu.org>
263 * include/math.h (__finitel_internal): Declare only if
264 __NO_LONG_DOUBLE_MATH is not defined.
265 (__isinfl_internal): Likewise.
266 (__isnanl_internal): Likewise.
268 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
269 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
270 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
271 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
272 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
273 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
274 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
276 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
279 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
280 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
282 2002-04-15 Bruno Haible <bruno@clisp.org>
284 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
285 (BODY for TO_LOOP): Likewise.
286 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
287 * iconvdata/tst-table.sh: Add support for encodings which contain
288 precomposed Unicode characters, known to the iconv converter in both
289 directions but not listed in the charmap.
290 * iconvdata/IBM856.irreversible: New file.
291 * iconvdata/IBM922.irreversible: New file.
292 * iconvdata/IBM1132.irreversible: New file.
293 * iconvdata/IBM1133.irreversible: New file.
294 * iconvdata/IBM1160.irreversible: New file.
295 * iconvdata/IBM1161.irreversible: New file.
296 * iconvdata/IBM1163.irreversible: New file.
297 * iconvdata/IBM1164.irreversible: New file.
298 * iconvdata/ARMSCII-8.irreversible: New file.
299 * iconvdata/TCVN5712-1.precomposed: New file.
300 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
301 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
302 ARMSCII-8, TCVN5712-1.
303 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
304 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
305 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
306 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
308 2002-04-17 Jakub Jelinek <jakub@redhat.com>
310 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
311 for EVENING69. Include offsets in TZ environment variable.
313 2002-04-18 Ulrich Drepper <drepper@redhat.com>
315 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
316 avoid compiler warnings.
318 * locale/programs/localedef.c (main): Always call
319 construct_output_path.
321 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
323 * locale/programs/locfile.c (to_archive): New variable. To collect
324 data which has to be added to the locale archive.
325 (write_all_categories): Take new third parameter with locale name.
326 Unless no_archive flag set add new locale data to the archive
327 (write_locale_data): Unless no-archive flag set store generated data
328 in to_archive data structure instead of generation output file.
329 Add new parameter with locale category index.
330 * locale/programs/locfile.h: Add new parameters in declaractions of
331 write_all_categories and write_locale_data.
332 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
333 --add-to-archive, and --delete-from-archive options. Pass extra
334 parameter to write_all_categories.
335 * locale/programs/localedef.h: Add prototypes for functions in
337 * locale/locarchive.h: New file.
338 * locale/programs/locarchive.c: New file.
339 * locale/Makefile (distribute): Add programs/locarchive.c and
341 (localedef-modules): Add md5 and locarchive.
342 Add vpath to crypt subdir for md5.c.
344 * locale/programs/ld-address.c: Pass locale category ID as new second
345 parameter to write_locale_data.
346 * locale/programs/ld-collate.c: Likewise.
347 * locale/programs/ld-ctype.c: Likewise.
348 * locale/programs/ld-identification.c: Likewise.
349 * locale/programs/ld-measurement.c: Likewise.
350 * locale/programs/ld-messages.c: Likewise.
351 * locale/programs/ld-monetary.c: Likewise.
352 * locale/programs/ld-name.c: Likewise.
353 * locale/programs/ld-numeric.c: Likewise.
354 * locale/programs/ld-paper.c: Likewise.
355 * locale/programs/ld-telephone.c: Likewise.
356 * locale/programs/ld-time.c: Likewise.
358 * locale/simple-hash.c: Move compute_hashval function from here...
359 * locale/hashval.h: ...to here. New file.
360 * locale/simple-hash.h: Add prototype for compute_hashval.
362 * include/libintl.h: Minor cleanups.
364 2002-04-16 Ulrich Drepper <drepper@redhat.com>
366 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
368 2002-04-15 Ulrich Drepper <drepper@redhat.com>
370 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
372 2002-04-14 Bruno Haible <bruno@clisp.org>
374 * locale/programs/charmap.c (charmap_read): Don't access result if
377 2002-02-17 Andreas Schwab <schwab@suse.de>
379 * elf/reldep7.c: New file.
380 * elf/reldep7mod1.c: New file.
381 * elf/reldep7mod2.c: New file.
382 * elf/Makefile: Add rules to build and run reldep7.
384 2002-04-14 Jakub Jelinek <jakub@redhat.com>
386 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
387 the end of the function. Pass original flags to recursive call if
388 add_dependency failed.
389 (_dl_lookup_versioned_symbol): Likewise.
391 2002-04-13 Jakub Jelinek <jakub@redhat.com>
393 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
394 early, but check whether it overflowed afterwards.
395 * time/tst-mktime.c (main): Add new tests.
397 2002-04-14 Ulrich Drepper <drepper@redhat.com>
399 * debug/xtrace.sh: Fix program name in help message.
400 Patch by Roger Luethi <rl@hellgate.ch>.
402 * include/sys/stat.h: Add prototypes for __lxstat_internal and
403 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
405 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
406 * sysdeps/mach/hurd/lxstat.c: Likewise.
407 * sysdeps/unix/common/lxstat.c: Likewise.
408 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
409 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
410 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
411 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
412 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
413 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
414 * sysdeps/mach/hurd/lxstat64.c: Likewise.
415 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
416 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
418 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
419 prototypes. Add __mbrlen and __mbrtowc macros.
420 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
421 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
423 * include/unistd.h: Add prototype for __write_internal and add
424 __libc_write macro is SHARED.
425 * sysdeps/generic/write.c: Use INTDEF for __write.
426 * sysdeps/mach/hurd/write.c: Likewise.
427 * sysdeps/unix/sysv/aix/write.c: Likewise.
428 * sysdeps/unix/syscalls.list: Add __libc_write alias.
430 * assert/assert.c: Replace STR_N_SIZE with something usable in
432 * assert/assert-perr.c: Likewise.
434 * include/sys/socket.h: Declare __libc_sa_len_internal and define
435 SA_LEN macro to use it if not NOT_IN_libc.
436 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
438 * include/fcntl.h: Declare __open_internal and define __open and
439 __libc_open macros if not NOT_IN_libc.
440 * sysdeps/generic/open.c: Use INTDEF for __open.
441 * sysdeps/mach/hurd/open.c: Likewise.
442 * sysdeps/unix/sysv/aix/open.c: Likewise.
443 * sysdeps/unix/syscalls.list: Add __open_internal alias.
445 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
448 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
449 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
450 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
451 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
453 * include/wctype.h: Declare __iswalpha_l_internal,
454 __iswdigit_l_internal, __iswspace_l_internal,
455 __iswxdigit_l_internal, and __iswctype_internal. Define
456 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
457 __iswxdigit_l macros if not NOT_IN_libc.
458 * wctype/iswctype.c: Use INTDEF for __iswctype.
459 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
461 * include/math.h: Declare __isinf_internal, __isinfl_internal,
462 __isnan_internal, and __isnanl_internal.
463 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
464 __isnan, and __isnanl.
465 * stdio-common/printf_size.c: Likewise.
466 * sysdeps/generic/printf_fphex.c: Likewise.
467 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
468 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
469 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
470 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
471 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
472 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
473 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
474 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
475 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
476 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
477 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
478 * sysdeps/m68k/s_isinfl.c: Likewise.
479 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
480 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
482 * include/sys/time.h: Declare __gettimeofday_internal and define
483 __gettimeofday macro if not NOT_IN_libc.
484 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
485 * sysdeps/mach/gettimeofday.c: Likewise.
486 * sysdeps/posix/gettimeofday.c: Likewise.
487 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
488 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
489 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
490 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
492 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
493 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
494 Remove __lstat and __fstat inline functions.
495 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
496 * sysdeps/mach/hurd/fxstat.c: Likewise.
497 * sysdeps/unix/fxstat.c: Likewise.
498 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
499 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
500 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
501 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
502 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
503 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
504 * sysdeps/mach/hurd/fxstat64.c: Likewise.
505 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
506 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
508 * include/unistd.h: Declare __getpid_internal and define
509 __getpid macro if not NOT_IN_libc.
510 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
511 * sysdeps/generic/getpid.c: Likewise.
512 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
513 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
515 * include/unistd.h: Declare __getpgid_internal and define
516 __getpgid macro if not NOT_IN_libc.
517 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
518 * sysdeps/mach/hurd/getpgid.c: Likewise.
519 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
520 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
521 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
522 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
524 * include/unistd.h: Declare __getpagesize_internal and define
525 __getpagesize macro if not NOT_IN_libc.
526 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
528 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
529 * sysdeps/mach/getpagesize.c: Likewise.
530 * sysdeps/posix/getpagesize.c: Likewise.
531 * sysdeps/unix/getpagesize.c: Likewise.
532 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
533 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
534 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
535 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
537 2002-04-13 Andreas Jaeger <aj@suse.de>
539 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
540 as clobber to reduce register pressure.
541 (__strpbrk_cg): Likewise.
542 (__mempcpy_by4): Likewise.
543 (__strstr_cg): Likewise.
544 Add prototype for __memrchr.
546 2002-04-13 Andreas Schwab <schwab@suse.de>
548 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
549 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
550 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
552 2002-04-13 Ulrich Drepper <drepper@redhat.com>
554 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
555 check whether the caller prefers getting the most recent version of
556 a symbol of the earliest version.
557 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
558 _dl_do_lookup to also take the new parameter and pass it on.
559 Change 'explicit' parameter of _dl_lookup_symbol and
560 _dl_lookup_versioned_symbol to flags. Adjust tests.
561 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
562 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
563 _dl_lookup_versioned_symbol.
564 * elf/dl-reloc.c: Likewise.
565 * elf/dl-runtime.c: Likewise.
566 * elf/dl-sym.c: Likewise.
567 * sysdeps/mips/dl-machine.h: Likewise.
569 2002-04-11 Jakub Jelinek <jakub@redhat.com>
571 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
573 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
575 2002-04-10 Andreas Jaeger <aj@suse.de>
577 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
579 * include/argz.h: Remove extra char from last patch.
581 2002-04-09 Ulrich Drepper <drepper@redhat.com>
583 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
584 * sysdeps/unix/sysv/aix/chown.c: Likewise.
585 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
586 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
587 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
588 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
590 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
592 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
593 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
594 * intl/ngettext.c: Likewise.
596 * include/sys/socket.h: Declare __connect_internal and define
597 __connect macro if not NOT_IN_libc.
598 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
599 * sysdeps/unix/sysv/aix/connect.c: Likewise.
600 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
602 * include/unistd.h: Declare __close_internal and define __close macro
604 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
605 WJUMP3): Add extra parenthesis to avoid expanding element names with
607 * sysdeps/unix/syscalls.list: Add __close_internal alias.
609 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
611 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
612 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
613 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
615 * include/unistd.h: Declare __fork_internal and define __fork macro
617 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
618 * sysdeps/unix/sysv/aix/fork.c: Likewise.
619 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
621 * include/stdio_ext.h: Declare __fsetlocking_internal and define
622 __fsetlocking macro to use it if not NOT_IN_libc.
623 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
625 * libio/__fbufsize.c: Correct copyright.
626 * libio/__flbf.c: Likewise.
627 * libio/__fpending.c: Likewise.
628 * libio/__fpurge.c: Likewise.
629 * libio/__freadable.c: Likewise.
630 * libio/__freading.c: Likewise.
631 * libio/__fsetlocking.c: Likewise.
632 * libio/__fwritable.c: Likewise.
633 * libio/__fwriting.c: Likewise.
635 * include/stdio.h: Declare __asprintf_internal and define __asprintf
636 macro to use it if not NOT_IN_libc.
637 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
639 * include/mntent.h: Declare __setmntent_internal,
640 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
641 __getmntent_r, and __endmntent macros to use these functions if not
643 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
646 * include/math.h: Declare __finite_internal, __finitef_internal, and
647 __finitel_internal. Redefine isfinite macro if in libc or libm using
649 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
650 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
651 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
652 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
653 * sysdeps/i386/fpu/s_finitef.S: Likewise.
654 * sysdeps/i386/fpu/s_finitel.S: Likewise.
655 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
656 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
657 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
658 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
660 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
661 to use this function if not NOT_IN_libc.
662 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
663 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
664 * sysdeps/mach/hurd/fcntl.c: Likewise.
665 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
666 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
668 * include/argz.h: Declare __argz_count_internal and
669 __argz_stringify_internal.
670 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
672 * string/argz-count.c: Use INTDEF for __argz_count.
673 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
675 * include/stdlib.h: Declare __cxa_atexit_internal and define
676 __cxa_atexit macro if not NOT_IN_libc.
677 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
678 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
680 * assert/assert.c: Use INTDEF for __assert_fail.
681 * assert/__assert.c: Use INTUSE for call to __assert_fail.
682 * include/assert.h: Declare __assert_fail_internal.
684 * extra-lib.mk: Mark assignment to lib with override.
686 2002-04-08 Ulrich Drepper <drepper@redhat.com>
688 * Makerules: Use cppflags-iterator.mk to add defines for all test
691 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
693 * elf/elf.h: Define R_SH_TLS_xxx macros.
694 * elf/rtld.c: Remove an extra parenthesis.
695 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
697 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
698 * sysdeps/sh/dl-lookupcfg.h: New file.
699 * sysdeps/sh/dl-tls.h: New file.
700 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
701 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
702 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
703 R_SH_TLS_TPOFF32 relocations.
705 2002-04-08 Ulrich Drepper <drepper@redhat.com>
707 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
709 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
710 * include/stdlib.h: Likewise.
712 2002-04-08 Jakub Jelinek <jakub@redhat.com>
714 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
715 instead of _RTLD_LOCAL.
716 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
717 * include/unistd.h: Likewise.
718 * sysdeps/generic/ldsodefs.h: Likewise.
720 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
723 2002-04-08 Andreas Jaeger <aj@suse.de>
725 * elf/cache.c (print_entry): Support x86-64.
727 2002-04-08 Ulrich Drepper <drepper@redhat.com>
729 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
730 with one accessing the locale data structures directly.
731 * stdio-common/printf-prs.c: Include localeinfo.h for new
732 MB_CUR_MAX definition.
734 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
735 is the name of the source file without extension.
736 * Makefile (distribute): Add cppflags-iterator.mk.
737 * cppflags-iterator.mk: New file.
738 * extra-lib.mk: For the sources of the library run
739 cppflags-iterator.mk.
741 * include/libintl.h: Declare __dcgettext_internal and
742 _libc_intl_domainname_internal. Define __dcgettext using these
743 two symbols if used in libc itself.
744 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
745 _libc_intl_domainname_internal.
746 * argp/argp-parse.c: Likewise.
747 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
748 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
749 * intl/gettext.c: Likewise.
750 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
752 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
754 * posix/regex_internal.c (gettext): Likewise.
756 2002-04-08 Andreas Jaeger <aj@suse.de>
758 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
760 * sysdeps/x86_64/fpu/s_llrint.S: New.
761 * sysdeps/x86_64/fpu/s_llrintf.S: New.
762 * sysdeps/x86_64/fpu/s_llrintl.S: New.
763 * sysdeps/x86_64/fpu/s_lrint.S: New.
764 * sysdeps/x86_64/fpu/s_lrintf.S: New
765 * sysdeps/x86_64/fpu/s_lrintl.S: New.
767 2002-04-08 Roland McGrath <roland@frob.com>
769 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
770 widening __hurd_fail value.
772 2002-04-07 Roland McGrath <roland@frob.com>
774 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
775 <mach/machine/alpha_instruction.h>.
776 (_hurd_setup_sighandler): Take proper arguments for current decls.
777 Update code to use _hurdsig_catch_fault.
778 Use `callsys' instruction instead of `call_pal'.
779 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
781 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
782 (ALIGN, at, AT, fp): New macros.
784 2002-04-06 Roland McGrath <roland@frob.com>
786 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
788 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
789 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
791 * sysdeps/mach/hurd/bind.c: Use prototype definition.
792 * sysdeps/mach/hurd/connect.c: Likewise.
793 * sysdeps/mach/hurd/getsockopt.c: Likewise.
794 * sysdeps/mach/hurd/setsockopt.c: Likewise.
796 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
799 * hurd/catch-exc.c: Use integer_t instead of int.
800 * hurd/hurdfault.c: Likewise.
802 * sysdeps/mach/hurd/alpha/exc2signal.c
803 (_hurd_exception2signal): Rewritten.
804 * sysdeps/mach/hurd/alpha/longjmp-ts.c
805 (_hurd_longjmp_thread_state): Rewritten.
807 2002-04-07 Ulrich Drepper <drepper@redhat.com>
809 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
810 DB_LOOKUP_FCT prototype.
811 * nss/getXXent_r.c: Likewise.
812 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
813 * inet/getaliasname_r.c: Likewise.
814 * inet/getnetbyad_r.c: Likewise.
815 * inet/getnetbynm_r.c: Likewise.
816 * inet/getnetent_r.c: Likewise.
817 * inet/getproto_r.c: Likewise.
818 * inet/getprtent_r.c: Likewise.
819 * inet/getprtname_r.c: Likewise.
820 * inet/getrpcbyname_r.c: Likewise.
821 * inet/getrpcbynumber_r.c: Likewise.
822 * inet/getrpcent_r.c: Likewise.
823 * inet/getservent_r.c: Likewise.
824 * inet/getsrvbynm_r.c: Likewise.
825 * inet/getsrvbypt_r.c: Likewise.
826 * shadow/getspent_r.c: Likewise.
827 * shadow/getspnam_r.c: Likewise.
829 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
831 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
832 Use i686-friendly PIC code.
833 * sysdeps/i386/elf/setjmp.S: Likewise.
835 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
837 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
839 * elf/Versions: Remove it here.
841 2002-04-06 Ulrich Drepper <drepper@redhat.com>
843 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
844 direction. Reported by H . J . Lu <hjl@lucon.org>.
846 2002-04-05 Ulrich Drepper <drepper@redhat.com>
848 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
849 test just before the test runs.
850 * intl/tst-translit.sh: Likewise.
851 * intl/tst-codeset.sh: Likewise.
853 * timezone/zic.c: Update from tzcode2002c.
854 * timezone/asia: Update from tzdata2002c.
855 * timezone/backward: Likewise.
856 * timezone/europe: Likewise.
857 * timezone/northamerica: Likewise.
858 * timezone/northamerica: Likewise.
859 * timezone/northamerica: Likewise.
860 * timezone/southamerica: Likewise.
861 * timezone/zone.tab: Likewise.
863 2002-03-23 Jakub Jelinek <jakub@redhat.com>
865 * sysdeps/generic/brk.c (__curbrk): Declare.
866 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
867 * sysdeps/generic/dl-sbrk.c: Likewise.
868 * sysdeps/unix/arm/dl-brk.S: New file.
869 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
870 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
871 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
872 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
873 * sysdeps/unix/i386/dl-brk.S: New file.
874 * sysdeps/unix/mips/dl-brk.S: New file.
875 * sysdeps/unix/sparc/dl-brk.S: New file.
876 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
877 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
878 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
879 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
881 2002-04-03 Andreas Schwab <schwab@suse.de>
883 * Makefile (headers): Add gnu/lib-names.h here instead of
885 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
887 (install-headers): Add dependency on install-headers-nosubdir.
888 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
889 instead of install-others.
890 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
893 2002-04-05 Ulrich Drepper <drepper@redhat.com>
895 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
896 Reported by Sam Roberts <sroberts@uniserve.com>.
898 2002-04-03 Jakub Jelinek <jakub@redhat.com>
900 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
901 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
902 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
903 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
905 2002-04-03 David Mosberger <davidm@hpl.hp.com>
907 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
909 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
910 dependency violation.
912 2002-04-05 Jakub Jelinek <jakub@redhat.com>
914 * time/mktime.c (__mktime_internal): Move check for year < 70 below
915 all variable declarations.
917 2002-04-04 Andreas Schwab <schwab@suse.de>
919 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
921 2002-04-04 Andreas Jaeger <aj@suse.de>
923 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
924 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
926 * sysdeps/x86_64/fpu/s_fabs.c: New file.
927 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
928 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
930 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
932 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
934 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
935 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
937 * configure.in: Handle all mips entries the same.
939 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
940 * sysdeps/mips/mips3/*: Likewise.
941 * sysdeps/mips/p40/bits/endian.h: Likewise.
943 2002-04-04 Ulrich Drepper <drepper@redhat.com>
945 * misc/dirname.c (dirname): Ignore trailing slashes at end of
946 non-null result [PR libc/2600].
948 * misc/tst-dirname.c: Add more tests.
950 2002-04-03 Ulrich Drepper <drepper@redhat.com>
952 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
953 define a code_set_name provide one based on the filename.
955 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
957 2001-12-28 Andreas Jaeger <aj@suse.de>
959 * time/mktime.c (__mktime_internal): Check for year < 70
962 2002-04-03 Andreas Jaeger <aj@suse.de>
964 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
966 Reported by Andi Kleen <ak@suse.de>.
968 2002-04-03 Ulrich Drepper <drepper@redhat.com>
970 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
971 * sysdeps/generic/w_lgammaf.c: Likewise.
972 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
974 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
975 Adjust for new output format of the backtrace functions.
977 * misc/syslog.c (vsyslog): Only use cleanup handler if
978 _LIBC_REENTRANT is defined [PR libc/2924].
980 * libio/Makefile (tests): Add bug-ungetwc2.
981 * libio/bug-ungetwc2.c: New file.
983 * manual/install.texi: Typographical and grammatical cleanup.
984 Patch by Dennis Grace <dgrace@us.ibm.com>.
986 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
987 parameter if mtflag. Patch by <jeongyun@innovay.com>.
989 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
990 always "&". Adjust callers.
991 Add "_" prefix to several generated definitions.
992 Patch by paul@serice.net [PR libc/3158].
994 2002-04-02 Ulrich Drepper <drepper@redhat.com>
996 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
997 size of _dl_arm_cap_flags.
998 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
1000 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
1003 2002-03-22 H.J. Lu <hjl@gnu.org>
1005 * scripts/firstversions.awk: Check the first version.
1007 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1009 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
1010 dependencies must be stable to work correctly.
1011 Reported by martin.lubich@datacon.at.
1013 * libio/bug-ungetwc1.c: New file.
1014 * libio/Makefile (tests): Add bug-ungetwc1.
1016 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
1017 if stream was last used for writing.
1019 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
1020 number [PR libc/3111].
1022 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
1024 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
1026 2002-04-02 Jakub Jelinek <jakub@redhat.com>
1028 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
1029 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1030 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
1031 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
1032 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
1034 2002-03-30 Jakub Jelinek <jakub@redhat.com>
1036 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
1039 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1041 * sysdeps/i386/fpu/s_fabs.S: New file.
1042 * sysdeps/i386/fpu/s_fabsf.S: New file.
1043 * sysdeps/i386/fpu/s_fabsl.S: New file.
1044 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
1045 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
1046 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
1048 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1050 * rt/tst-shm.c (do_test): Add one more test for size of shared
1053 2002-03-29 Wolfram Gloger <wg@malloc.de>
1055 * malloc/malloc.c: Add short description and prototypes for
1056 malloc_get_state, malloc_set_state and posix_memalign, for
1057 consistency and to avoid warnings with -Wstrict-prototypes.
1058 Reported by Andreas Jaeger <aj@suse.de>.
1060 2002-04-02 Ulrich Drepper <drepper@redhat.com>
1062 * po/gl.po: Update from translation team.
1064 2002-03-31 Roland McGrath <roland@frob.com>
1066 * hurd/hurdselect.c (_hurd_select): Fix
1067 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
1068 Use a union rather than casts to compare mach_msg_type_t as int.
1070 2002-03-25 Roland McGrath <roland@frob.com>
1072 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
1073 check off the end of NAME when it's shorter than 2 chars.
1074 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
1076 2002-03-17 Roland McGrath <roland@frob.com>
1078 * sysdeps/mach/hurd/i386/sys/io.h: New file.
1079 * sysdeps/mach/hurd/i386/ioperm.c: New file.
1080 * sysdeps/mach/hurd/i386/Dist: Add them.
1081 * sysdeps/mach/hurd/i386/Versions
1082 (libc: GLIBC_2.2.6): New set, add ioperm.
1083 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
1084 (mach_interface_list): Check for mach_i386.defs.
1085 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
1086 * sysdeps/mach/configure: Regenerated.
1088 2002-03-22 Ulrich Drepper <drepper@redhat.com>
1090 * po/fr.po: Update from translation team.
1092 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1094 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
1095 getpriority from syscalls list.
1097 2002-03-28 Andreas Jaeger <aj@suse.de>
1099 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
1100 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
1101 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
1102 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
1104 2002-03-27 Andreas Jaeger <aj@suse.de>
1106 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1107 sigcontext): Follow further kernel change.
1109 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
1112 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
1113 Change for struct sigcontext change.
1115 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1116 Follow changes in struct sigcontext.
1118 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
1119 sysycall, use wrapper instead.
1121 2002-03-26 Andreas Jaeger <aj@suse.de>
1123 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
1124 read and write accesses as detailed as possible.
1125 (__memcpy_by2): Likewise.
1126 (__memcpy_g): Likewise.
1127 (memmove): Likewise.
1129 (__memset_ccn_by4): Likewise.
1130 (__memset_ccn_by2): Likewise.
1131 (__memset_gcn_by4): Likewise.
1132 (__memset_gcn_by2): Likewise.
1134 (__memrchr): Likewise.
1135 (rawmemchr): Likewise.
1136 (__strlen_g): Likewise.
1137 (__strcpy_g): Likewise.
1138 (__mempcpy_by4): Likewise.
1139 (__mempcpy_by2): Likewise.
1140 (__mempcpy_byn): Likewise.
1141 (__stpcpy_g): Likewise.
1142 (__strncpy_by4): Likewise.
1143 (__strncpy_by2): Likewise.
1144 (__strncpy_byn): Likewise.
1145 (__strncpy_gg): Likewise.
1146 (__strcat_c): Likewise.
1147 (__strcat_g): Likewise.
1148 (__strncat_g): Likewise.
1149 (__strcmp_gg): Likewise.
1150 (__strncmp_g): Likewise.
1151 (__strchr_c): Likewise.
1152 (__strchr_g): Likewise.
1153 (__strchrnul_c): Likewise.
1154 (__strchrnul_g): Likewise.
1155 (__strrchr_c): Likewise.
1156 (__strrchr_g): Likewise.
1157 (__strrchr_c): Likewise.
1158 (__strrchr_g): Likewise.
1159 (__strcspn_c1): Likewise.
1160 (__strcspn_cg): Likewise.
1161 (__strcspn_g): Likewise.
1162 (__strcspn_g): Likewise.
1163 (__strspn_c1): Likewise.
1164 (__strspn_cg): Likewise.
1165 (__strspn_g): Likewise.
1166 (__strspn_g): Likewise.
1167 (__strpbrk_cg): Likewise.
1168 (__strpbrk_g): Likewise.
1169 (__strstr_cg): Likewise.
1170 (__strstr_g): Likewise.
1172 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
1173 Michal Ludvig <mludvig@suse.cz>.
1175 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
1176 compatibilty, adjust for kernel changes.
1178 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1179 sigcontext): Adjust for kernel changes.
1181 2002-03-25 Andreas Jaeger <aj@suse.de>
1183 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
1185 Reported by Artur Zaprzala <zybi@talex.com.pl>.
1187 2002-03-24 Andreas Jaeger <aj@suse.de>
1189 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
1191 * stdio-common/tst-fdopen.c (main): Remove unused variable.
1193 * iconv/tst-iconv3.c (main): Use correct printf strings.
1195 2002-03-18 Roland McGrath <roland@frob.com>
1197 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
1198 (CMGROUP_MAX): New macro.
1200 2002-03-23 Roland McGrath <roland@frob.com>
1202 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
1203 * sysdeps/posix/shm_unlink.c: Likewise.
1205 2002-03-22 Roland McGrath <roland@frob.com>
1207 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
1208 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
1209 under --enable-libio.
1210 * sysdeps/mach/hurd/configure: Regenerated.
1212 2002-03-23 Roland McGrath <roland@frob.com>
1214 * sysdeps/mach/hurd/i386/Makefile
1215 (sysdep_routines, shared-only-routines): Don't add framestate,
1216 reverting 2001-10-02 change.
1217 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1218 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1219 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1220 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1221 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1222 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1223 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1224 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1225 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
1226 Do it here instead, only if [$(unwind-find-fde) = yes].
1228 2002-03-23 Andreas Jaeger <aj@suse.de>
1230 * signal/signal.h: Fix typo. Patch by Steve Kemp
1231 <skx@tardis.ed.ac.uk>.
1233 2002-03-22 Andreas Jaeger <aj@suse.de>
1235 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
1238 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1239 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
1240 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
1241 user_fpregs_struct): Rename fwd.
1243 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1244 Follow sigcontext changes.
1246 2002-03-22 Andreas Jaeger <aj@suse.de>
1248 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
1249 changes for NaNs on MIPS.
1250 Patch by Hartvig Ekner <hartvige@mips.com>.
1252 2002-03-21 Ulrich Drepper <drepper@redhat.com>
1254 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
1255 Use realloc if too large.
1256 (addgrbyid): Likewise.
1257 * nscd/hstcache.c (addhstbyname): Likewise.
1258 (addhstbyaddr): Likewise.
1259 (addhstbynamev6): Likewise.
1260 (addhstbyaddrv6): Likewise.
1261 * nscd/pwdcache.c (addpwbyname): Likewise.
1262 (addpwbyuid): Likewise.
1264 2002-03-21 Andreas Jaeger <aj@suse.de>
1266 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
1267 _fpstate): Add separate struct for x86-64.
1269 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
1270 user_fpregs_struct): Change member names to follow kernel.
1272 2002-03-20 Ulrich Drepper <drepper@redhat.com>
1274 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
1275 Correctly close the UDP connection right away [PR libc/3120].
1277 2002-03-20 Andreas Jaeger <aj@suse.de>
1279 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
1280 user_fpregs_struct): Fix for changed kernel struct.
1281 (struct user_regs_struct): Likewise.
1282 (struct user): Likewise.
1283 Add 32-bit x86 compatibility.
1285 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
1287 2002-03-19 Andreas Jaeger <aj@suse.de>
1289 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
1291 2002-03-18 Andreas Jaeger <aj@suse.de>
1293 * iconvdata/Makefile: Only run tests when shared libs are
1296 2002-03-17 Andreas Jaeger <aj@suse.de>
1298 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
1300 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
1302 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
1305 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
1307 Patch by Hartvig Ekner <hartvige@mips.com>.
1309 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
1310 * sysdeps/generic/unwind-pe.h: Likewise.
1312 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
1315 * libio/stdio.c (AL2): Define variant when visibility attribute is
1318 * include/libc-symbols.h (_INTVARDEF): Define variant when
1319 visibility attribute is not supported.
1321 2002-03-16 Ulrich Drepper <drepper@redhat.com>
1323 * po/fr.po: Update from translation team.
1325 2002-02-25 Bruno Haible <bruno@clisp.org>
1327 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
1329 2002-03-15 Ulrich Drepper <drepper@redhat.com>
1331 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
1332 buffers if _IO_file_attach failed.
1334 * libio/fileops.c (_IO_file_open): Close file descriptor if
1335 _IO_SEEKOFF call failed.
1337 2002-03-15 H.J. Lu <hjl@gnu.org>
1338 Ulrich Drepper <drepper@redhat.com>
1340 * configure.in: Check for availability of
1341 init_array/fini_array/preinit_array handling in binutils.
1342 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
1343 * config.make.in (have-initfini-array): New variable.
1345 2002-03-15 Ulrich Drepper <drepper@redhat.com>
1347 * stdio-common/tst-printf.c (main): Comment out one test which
1348 checked the compiler's ability to fold floating-point constants
1349 but not really printf.
1350 (rfg3): Make s const.
1351 * stdio-common/tst-printf.sh: Adjust for removed test.
1353 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
1354 internal function. Adjust for internal_function calling convention.
1355 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
1356 as internal_function.
1358 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
1361 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
1362 declaration and definition.
1363 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
1365 * nss/getXXent_r.c: Likewise.
1366 * nss/nsswitch.h (db_lookup_function): Add internal_function to
1369 * include/time.h: Declare __localtime_r as hidden.
1371 * include/aliases.h: Declare __getaliasent_r as hidden.
1372 * include/grp.h: Declare __getgrent_r as hidden.
1373 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
1374 __getservent_r, and __getprotoent_r as hidden.
1375 * include/pwd.h: Declare __getpwent_r as hidden.
1376 * include/shadow.h: Declare __getspent_r as hidden.
1377 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
1379 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
1380 and __gconv_transliterate as hidden.
1381 Add internal_function to __gconv_get_path declaration.
1382 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
1383 definition. Add attribute_hidden to __gconv_read_conf definition.
1385 2002-03-14 Ulrich Drepper <drepper@redhat.com>
1387 * elf/rtld.c: Declare _environ as hidden.
1388 * sysdeps/generic/dl-environ.c: Likewise.
1389 * sysdeps/generic/dl-sysdep.c: Likewise.
1391 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
1392 _dl_mcount_internal as hidden.
1394 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
1395 * sysdeps/generic/dl-brk.c: New file.
1396 * sysdeps/generic/dl-sbrk.c: New file.
1397 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
1398 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
1400 * elf/dl-minimal.c (malloc): Declare _end as hidden.
1401 (__errno_location): New function. Declare errno as hidden.
1402 * elf/rtld.c (_dl_argc): Define as hidden.
1403 (_dl_skip_args): Define as hidden.
1404 (_begin, _end): Declare as hidden.
1405 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
1406 * sysdeps/generic/entry.h (_start): Declare as hidden.
1407 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
1408 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
1409 _dl_runtime_resolve and _dl_runtime_profile as hidden.
1410 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
1412 2002-03-14 Roland McGrath <roland@frob.com>
1414 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
1416 * Makeconfig (%.v.i, %.v): New implicit rules.
1417 (preprocess-versions): Variable removed.
1418 ($(common-objpfx)shlib-versions.v.i): New target giving just the
1419 shlib-versions input files as dependencies.
1420 ($(common-objpfx)soversions.i): Depend on that instead of the input
1421 files. Use it as input instead of using a pipeline.
1422 (postclean-generated): Append soversions.i, shlib-versions.v, and
1423 shlib-versions.v.i here.
1424 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
1425 the Versions.def input files as dependencies.
1426 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
1427 ($(common-objpfx)Versions.all): Depend on that instead of the input
1428 files. Use it as input instead of using a pipeline.
1429 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
1430 (postclean-generated): Append those .v and .v.i files here.
1432 2002-03-14 Jakub Jelinek <jakub@redhat.com>
1434 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
1435 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
1438 2002-03-14 Jakub Jelinek <jakub@redhat.com>
1440 * sysdeps/generic/mp_clz_tab.c: New file.
1441 * sysdeps/i386/mp_clz_tab.c: New file.
1442 * sysdeps/hppa/mp_clz_tab.c: New file.
1443 * sysdeps/powerpc/mp_clz_tab.c: New file.
1444 * stdlib/Makefile (aux): Revert last patch.
1445 * math/Makefile (gmp-objs): Likewise.
1447 2002-03-13 Paul Eggert <eggert@twinsun.com>
1449 * time/strftime.c: Comment fixes for references to obsolescent
1450 standards, In most cases the simplest fix is to remove the
1451 confusing comments. Cross-referencing all the standards properly
1452 is a bit of a pain, and it should be enough to put that info in
1453 the documentation as I did in my recent time.texi patch.
1455 2002-03-13 Paul Eggert <eggert@twinsun.com>
1457 * manual/time.texi (Formatting Calendar Time):
1458 ISO C99 also specifies the E and O modifiers.
1459 %P is a GNU extension, and is not in ISO C99.
1460 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
1461 %T is also in ISO C99.
1462 The RFC 822 example is not valid in arbitrary locales.
1463 Reword the POSIX.2 wording slightly, to make it a bit clearer
1464 that POSIX.2 formats are also supported by later POSIX versions.
1465 If a format was introduced in ISO C99 it is also required by
1468 2002-03-13 Ulrich Drepper <drepper@redhat.com>
1470 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
1471 _sys_nerr_internal with INTVARDEF2.
1472 * include/libc-symbols.h (INTVARDEF2): New macro.
1473 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
1474 (_sys_nerr_internal): Library.
1476 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
1477 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
1479 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
1481 2002-03-13 Wolfram Gloger <wg@malloc.de>
1483 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
1485 2002-03-02 Andreas Schwab <schwab@suse.de>
1487 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
1488 'h' flag and positional arg.
1489 * stdio-common/tst-printf.c (rfg3): New function to test
1490 positional arguments.
1491 (main): Fix some warnings.
1493 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1495 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
1496 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1498 2002-03-13 Ulrich Drepper <drepper@redhat.com>
1500 * grp/initgroups.c (__nss_group_data): Declare as hidden.
1502 * include/locale.h (_nl_C_locobj): Declare as hidden.
1504 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
1505 * time/strptime.c (_nl_C_LC_TIME): Likewise.
1507 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
1509 * include/sys/gmon.h: Declare _gmonparam as hidden.
1511 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
1512 (__ctype32_wctrans): Likewise.
1513 (__ctype32_width): Likewise.
1515 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
1518 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
1520 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
1521 hidden. Change all users of these variables.
1523 * posix/regex_internal.h (__re_error_msgid): Renamed from
1524 re_error_msgid. Declare as hidden.
1525 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
1528 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
1529 (__printf_function_table): Likewise.
1530 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
1532 (__printf_function_table): Likewise.
1534 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
1535 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
1537 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
1538 * nss/nsswitch.c: Declare _nss_*_database as hidden.
1540 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
1541 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
1543 2002-03-12 Ulrich Drepper <drepper@redhat.com>
1545 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
1546 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1547 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1548 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1549 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1550 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1551 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1552 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1553 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
1554 _nl_C_LC_CTYPE_width: Declare as hidden.
1555 * include/locale.h: Declare _nl_locale_file_list.
1556 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
1557 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
1558 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
1559 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
1560 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
1561 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
1562 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
1563 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
1564 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
1565 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
1566 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
1567 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
1568 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1569 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1570 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1571 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1572 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1573 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1574 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1575 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
1576 _nl_C_LC_CTYPE_width, and as hidden.
1577 * locale/findlocale.c: Declare _nl_C as hidden.
1578 * locale/newlocale.c: Likewise.
1579 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
1580 _nl_locale_file_list.
1581 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
1582 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
1583 Define _nl_C_locobj as hidden.
1585 * malloc/mtrace.c (_mtrace_file): Define as hidden.
1586 (_mtrace_line): Likewise.
1588 * include/time.h: Declare __mon_yday as hidden.
1589 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
1591 * libio/libioP.h: Declare __libio_codecvt as hidden.
1592 * libio/fileops.c: Declare __libio_translit as hidden.
1593 * libio/iofwide.c: Define __libio_translit as hidden.
1595 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
1596 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
1597 * login/getutline_r.c: Likewise.
1598 * login/utmpname.c: Likewise.
1600 * login/utmp-private.h: Declare __libc_utmp_file_functions,
1601 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
1602 __libc_utmp_file_name as hidden.
1604 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
1605 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
1606 * locale/freelocale.c: Likewise.
1607 * locale/lc-time.c: Likewise.
1609 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
1610 (__libc_ptyname2): Likewise.
1611 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
1613 (__libc_ptyname2): Likewise.
1615 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
1616 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
1617 * sysdeps/generic/init-first.c: Likewise.
1618 * sysdeps/i386/init-first.c: Likewise.
1619 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1620 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1621 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1622 * sysdeps/sh/init-first.c: Likewise.
1623 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1624 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1626 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
1627 (_itowa_upper_digits): Likewise.
1629 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
1630 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
1633 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
1634 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
1635 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
1636 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
1638 * gmon/gmon.c (__bb_head): Define as hidden.
1639 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
1641 * argp/argp-parse.c (_argp_hang): Define as static.
1643 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
1644 handling in latest compilers.
1646 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
1648 * libio/fileops.c (_IO_file_jumps): Likewise.
1649 * libio/stdfiles.c (_IO_list_all): Likewise.
1650 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
1652 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
1654 * include/malloc.h: Add __libc_malloc_initialized declaration
1655 here. Mark variable hidden.
1656 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
1658 * elf/dl-open.c (__libc_argc): Declare as hidden.
1659 (__libc_argv): Likewise.
1660 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
1661 (__libc_argv): Likewise.
1662 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
1663 __libc_argv as hidden.
1664 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1665 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1666 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1667 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1669 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
1670 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
1671 * stdlib/erand48.c: Likewise.
1672 * stdlib/jrand48.c: Likewise.
1673 * stdlib/lcong48.c: Likewise.
1674 * stdlib/lrand48.c: Likewise.
1675 * stdlib/mrand48.c: Likewise.
1676 * stdlib/nrand48.c: Likewise.
1677 * stdlib/seed48.c: Likewise.
1678 * stdlib/srand48.c: Likewise.
1680 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
1681 (_itoa_lower_digits_internal): New declaration.
1682 (_itoa_upper_digits_internal): New declaration.
1683 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
1684 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
1685 (_itoa_upper_digits_internal): New declaration.
1686 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
1688 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
1689 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
1691 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
1692 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1694 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
1695 (_itowa_lower_digits): Likewise.
1696 (_itowa_upper_digits): Likewise.
1697 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
1698 (_itowa_upper_digits): Likewise.
1700 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
1701 not already defined.
1702 (GERMANIC_PLURAL): Declare as hidden.
1704 * posix/getopt.c (__getopt_initialized): Declare as hidden.
1705 (attribute_hidden): Define as empty macro if not already defined.
1707 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
1708 (__gconv_max_path_elem_len): Likewise.
1709 (__gconv_path_envvar): Likewise.
1711 * math/Makefile (gmp-objs): Remove mp_clz_tab.
1712 * stdlib/Makefile (aux): Remove mp_clz_tab.
1713 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
1715 * stdlib/exit.h (__exit_funcs): Declare as hidden.
1717 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
1719 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
1720 _nl_category_names, _nl_category_name_sizes, _nl_current,
1721 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
1723 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
1724 (_nl_current_default_domain): Likewise
1725 (_nl_state_lock): Likewise.
1726 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
1727 (_nl_current_default_domain): Likewise
1728 (_nl_state_lock): Likewise.
1729 * intl/bindtextdom.c (_nl_state_lock): Likewise.
1731 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
1732 (_fpioconst_pow10): Likewise.
1734 * include/time.h (_tmbuf): Add attribute_hidden.
1736 * time/tzset.c (tzstring_list): Define as static.
1738 * include/time.h: Add attribute_hidden to __tzname_cur_max and
1739 __use_tzfile declaration.
1741 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
1742 and __wcsmbs_last_locale declaration.
1744 2002-02-25 Paul Eggert <eggert@twinsun.com>
1746 * timezone/Makefile (tzbases): Move systemv from here...
1747 (tzlinks): to here, since the entries in systemv were all changed
1748 from Zone to Link lines in tz-2001a. Bug reported (and patch
1749 tested) by Peter Breitenlohner.
1751 2002-03-07 Jakub Jelinek <jakub@redhat.com>
1753 * time/tst-posixtz.c (tests): Add new tests.
1754 (main): Test whether tzset() sets daylight properly.
1756 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1758 * time/tzset.c (tz_compute): Move __daylight, __tzname and
1759 __tzname_cur_max setting...
1760 (tzset_internal): ...here.
1762 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1764 * time/tzset.c (compute_change): Don't return any value.
1765 (tz_compute): Likewise. Don't handle southern hemisphere here.
1766 (__tz_convert): But here.
1768 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1770 * manual/examples/mkfsock.c: Include <string.h> as well.
1771 Patch by Alain De Carolis <alaind@wseurope.com>.
1773 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
1775 * posix/regexec.c (re_match): Fix incorrect register sizes.
1776 (re_search): Likewise.
1778 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1780 * posix/regcomp.c (regfree): Remove a disused condition.
1781 * posix/regex_internal.c (re_acquire_state): Likewise.
1782 (re_acquire_state_context): Likewise.
1783 (register_state): Remove a redundant malloc invocation.
1784 * posix/regex_internal.h: (re_state_table_entry): Simplify
1787 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1789 * posix/regcomp.c (regcomp): Add __builtin_expect to error
1790 handling conditions.
1791 (regerror): Likewise.
1792 (regfree): Likewise.
1793 (re_compile_internal): Likewise.
1794 (init_dfa): Likewise.
1795 (init_word_char): Likewise.
1796 (create_initial_state): Likewise.
1797 (analyze): Likewise.
1798 (analyze_tree): Likewise.
1799 (duplicate_node): Likewise.
1800 (calc_eclosure): Likewise.
1801 (calc_eclosure_iter): Likewise.
1803 (parse_reg_exp): Likewise.
1804 (parse_branch): Likewise.
1805 (parse_expression): Likewise.
1806 (parse_subexp): Likewise.
1807 (parse_dup_op): Likewise.
1808 (parse_bracket_exp): Likewise.
1809 (build_equiv_class): Likewise.
1810 (build_charclass): Likewise.
1811 (build_word_op): Likewise.
1812 (fetch_number): Likewise.
1813 (create_tree): Likewise.
1814 (duplicate_tree): Likewise.
1815 * posix/regex.c (BE): New macro.
1816 * posix/regexec.c (re_match): Add __builtin_expect to error
1817 handling conditions.
1818 (re_match_2): Likewise.
1819 (re_search): Likewise.
1820 (re_search_internal): Likewise.
1821 (check_matching): Likewise.
1822 (proceed_next_node): Likewise.
1823 (set_regs): Likewise.
1824 (sift_states_backward): Likewise.
1825 (add_epsilon_backreference): Likewise.
1826 (transit_state): Likewise.
1827 (transit_state_sb): Likewise.
1828 (transit_state_mb): Likewise.
1829 (transit_state_bkref): Likewise.
1830 (transit_state_bkref_loop): Likewise.
1831 (build_trtable): Likewise.
1832 (group_nodes_into_DFAstates): Likewise.
1833 (match_ctx_init): Likewise.
1834 (match_ctx_add_entry): Likewise.
1835 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
1836 to error handling conditions.
1837 (re_string_construct_toupper): Likewise.
1838 (build_wcs_buffer): Likewise.
1839 (build_wcs_upper_buffer): Likewise.
1840 (build_upper_buffer): Likewise.
1841 (re_string_translate_buffer): Likewise.
1842 (re_node_set_alloc): Likewise.
1843 (re_node_set_init_1): Likewise.
1844 (re_node_set_init_2): Likewise.
1845 (re_node_set_init_copy): Likewise.
1846 (re_node_set_intersect): Likewise.
1847 (re_node_set_init_union): Likewise.
1848 (re_node_set_merge): Likewise.
1849 (re_node_set_insert): Likewise.
1850 (re_dfa_add_node): Likewise.
1851 (re_acquire_state): Likewise.
1852 (re_acquire_state_context): Likewise.
1853 (create_new_state_common): Likewise.
1854 (register_state): Likewise.
1855 (create_ci_new_state): Likewise.
1856 (create_cd_new_state): Likewise.
1857 (re_string_context_at): Remove redundant condition.
1859 2002-01-16 Roger Sayle <roger@eyesopen.com>
1861 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
1863 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
1865 2002-03-11 Jakub Jelinek <jakub@redhat.com>
1867 * sysdeps/i386/elf/configure.in: Fix comment.
1869 * sysdeps/sparc/sparc64/configure.in: New.
1870 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
1871 if .dynamic comes before .got.
1872 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
1874 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
1875 HP_TIMING_ACCUM): Fix typos.
1877 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1879 * string/strfry.c: Add some more randomness to the seed.
1880 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
1882 * po/es.po: Update from translation team.
1883 * po/fr.po: Likewise.
1885 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
1887 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
1888 when determining type of format.
1889 Patch by James Antill <james@anqd.org> [PR libc/2787].
1891 2002-03-04 Jakub Jelinek <jakub@redhat.com>
1893 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
1895 2002-03-11 Roland McGrath <roland@frob.com>
1897 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
1899 * Versions.def (libc): Add GLIBC_2.2.6.
1900 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
1901 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
1902 __errno_location instead of __hurd_errno_location, and don't inline it.
1903 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1904 * hurd/errno.c: New file.
1905 * hurd/Makefile (routines): Add errno.
1907 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1909 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
1910 ridiculously large widths and precisions [PR libc/3026].
1912 2002-03-11 Andreas Jaeger <aj@suse.de>
1914 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
1916 Patch by Susanne Oberhauser <froh@SuSE.de>.
1918 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1920 * inet/rexec.c (ahostbuf): Define as static.
1922 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
1923 (__ctype32_wctrans): Likewise.
1924 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
1925 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
1926 (__ctype32_wctrans): Likewise.
1927 (__ctype32_width): Likewise.
1929 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
1930 They were never exported anyway.
1932 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
1933 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
1935 * include/sys/gmon.h: Declare _gmonparam.
1937 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
1938 symbols for getdents64. They were never exported.
1940 2002-03-09 Roland McGrath <roland@frob.com>
1942 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
1943 Reported by Jon Arney <jarney1@cox.net>.
1945 2002-02-23 Roland McGrath <roland@frob.com>
1947 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
1949 (__hurd_errno_location): Function removed.
1951 2002-03-06 Andreas Jaeger <aj@suse.de>
1953 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
1956 2002-03-04 Andreas Jaeger <aj@suse.de>
1958 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
1960 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
1963 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
1965 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
1967 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
1969 * sysdeps/x86_64/bits/setjmp.h: New.
1971 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
1973 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
1975 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
1977 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
1978 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
1980 2002-02-28 Bo Thorsen <bo@suse.de>
1982 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
1985 2002-03-03 Andreas Jaeger <aj@suse.de>
1987 * sysdeps/x86_64/bits/wordsize.h: New file.
1989 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
1990 * elf/tst-tlsmod1.c: Likewise.
1992 * posix/regcomp.c: Get regex.h from include dir for internal
1995 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
1996 to libc-internal.h and include it.
1997 * include/libc-internal.h: Add __init_misc.
1999 * misc/init-misc.c: Include libc-internal.h for prototypes.
2001 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
2003 * misc/error.c [_LIBC]: Include libioP.h for prototype of
2006 2002-03-03 Ulrich Drepper <drepper@redhat.com>
2008 * posix/regcomp.c: Compatibility changes to allow using the code
2011 2002-02-28 Hartvig Ekner <hartvige@mips.com>
2013 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
2016 2002-03-02 Ulrich Drepper <drepper@redhat.com>
2018 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
2019 of .str elements in the returned data structure.
2021 * elf/elf.h: Add Alpha TLS bits.
2023 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2025 * sysdeps/unix/sysv/linux/nice.c: New file.
2027 2002-03-01 Ulrich Drepper <drepper@redhat.com>
2029 * elf/Makefile (dl-routines): Add dl-origin.
2030 (elide-routines.os): Add dl-origin.
2031 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
2032 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
2034 * include/libc-symbols.c: Define attribute_hidden depending on
2035 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
2037 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
2038 * elf/dl-load.c: Likewise.
2039 * elf/rtld.c: Likewise.
2040 * include/unistd.h: Declare __libc_enable_secure_internal.
2041 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
2042 Use INTUSE with __libc_enable_secure.
2043 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2045 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
2046 * elf/dl-error.c: Likewise,
2047 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
2049 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
2050 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
2051 function definition. Use INTDEF with _dl_get_origin.
2052 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2054 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
2055 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
2057 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
2058 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
2059 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
2061 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
2062 * elf/dl-deps.c: Likewise.
2063 * elf/dl-error.c: Likewise.
2064 * elf/dl-fini.c: Likewise.
2065 * elf/dl-init.c: Likewise.
2066 * elf/dl-load.c: Likewise.
2067 * elf/dl-lookup.c: Likewise.
2068 * elf/dl-reloc.c: Likewise.
2069 * elf/dl-version.c: Likewise.
2070 * elf/do-lookup.h: Likewise.
2071 * sysdeps/arm/dl-machine.h: Likewise.
2072 * sysdeps/cris/dl-machine.h: Likewise.
2073 * sysdeps/hppa/dl-machine.h: Likewise.
2074 * sysdeps/i386/dl-machine.h: Likewise.
2075 * sysdeps/m68k/dl-machine.h: Likewise.
2076 * sysdeps/powerpc/dl-machine.h: Likewise.
2077 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2078 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2079 * sysdeps/sh/dl-machine.h: Likewise.
2080 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
2081 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
2082 * sysdeps/x86_64/dl-machine.h: Likewise.
2083 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
2084 _dl_argv[0]. Use INTUSE with _dl_argv.
2085 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
2086 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
2088 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2090 * elf/rtld.c (_rtld_global): Remove .protected.
2091 (_rtld_local): Strong alias to _rtld_global.
2092 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
2094 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
2095 _rtld_local instead of _rtld_global.
2096 (_rtld_local): Add hidden extern, possibly in .sdata section.
2097 * configure.in: Add tests for visibility attribute and .sdata.
2098 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
2099 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
2100 * sysdeps/arm/dl-machine.h: Likewise.
2101 * sysdeps/generic/ldsodefs.h: Likewise.
2102 * sysdeps/hppa/dl-machine.h: Likewise.
2103 * sysdeps/cris/dl-machine.h: Likewise.
2104 * sysdeps/i386/dl-machine.h: Likewise.
2105 * sysdeps/ia64/dl-machine.h: Likewise.
2106 * sysdeps/m68k/dl-machine.h: Likewise.
2107 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2108 * sysdeps/mips/dl-machine.h: Likewise.
2109 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2110 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2111 * sysdeps/sh/dl-machine.h: Likewise.
2112 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2113 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2114 * sysdeps/x86_64/dl-machine.h: Likewise.
2116 2002-02-28 Ulrich Drepper <drepper@redhat.com>
2118 * login/login.c (login): Always initialize ut_line field
2121 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2123 * sysdeps/i386/Makefile (sysdep_routines): Add
2125 (shared-only-routines): Likewise.
2126 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
2127 (shared-only-routines): Likewise.
2128 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
2129 (shared-only-routines): Likewise.
2130 * sysdeps/wordsize-32/divdi3.c: New file.
2132 2002-02-28 Ulrich Drepper <drepper@redhat.com>
2134 * locale/iso-4217.def: Remove obsolete currencies for countries
2137 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2139 * posix/regcomp.c (regcomp): Remove a redundant condition.
2140 (init_word_char): Add a check on malloc failure.
2141 (create_initial_state): Likewise.
2142 (duplicate_node): Likewise.
2143 (calc_eclosure): Likewise.
2144 (calc_eclosure_iter): Likewise.
2145 (parse_expression): Likewise.
2146 (parse_bracket_exp): Remove unnecessary malloc invocations.
2147 (build_equiv_class): Likewise.
2148 (build_charclass): Likewise.
2149 * posix/regex_internal.c (re_node_set_intersect): Add a check
2151 (re_node_set_add_intersect): Likewise.
2152 (re_node_set_merge): Likewise.
2153 (re_acquire_state): Likewise.
2154 (re_acquire_state_context): Likewise.
2155 (create_newstate_common): Likewise.
2156 (register_state): Likewise.
2157 (create_ci_newstate): Likewise.
2158 (create_cd_newstate): Likewise.
2159 * posix/regex_internal.h: Fix prototypes of re_acquire_state
2160 and re_acquire_state_context.
2161 * posix/regexec.c (regexec): Suit it to the error handling of
2163 (re_match): Likewise.
2164 (re_search): Likewise.
2165 (re_search_internal): Add a check on malloc failure.
2166 (acquire_init_state_context): Likewise.
2167 (check_matching): Likewise.
2168 (proceed_next_node): Likewise.
2169 (set_regs): Likewise.
2170 (sift_states_backward): Likewise.
2171 (sift_states_iter_bkref): Likewise.
2172 (add_epsilon_backreference): Likewise.
2173 (transit_state): Likewise.
2174 (transit_state_sb): Likewise.
2175 (transit_state_mb): Likewise.
2176 (transit_state_bkref_loop): Likewise.
2177 (build_trtable): Likewise.
2178 (group_nodes_into_DFAstates): Likewise.
2179 (match_ctx_init): Likewise.
2180 (match_ctx_add_entry): Likewise.
2182 2002-02-27 Ulrich Drepper <drepper@redhat.com>
2184 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
2185 l_libname if profiling is enabled [PR libc/2916].
2187 * sysdeps/ia64/dl-tls.h: New file.
2189 2002-02-27 Jakub Jelinek <jakub@redhat.com>
2191 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
2192 Work around an Alpha gas bug.
2194 2002-02-27 Ulrich Drepper <drepper@redhat.com>
2196 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
2197 uses read to load the catalog.
2198 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
2200 2002-02-26 Ulrich Drepper <drepper@redhat.com>
2202 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
2203 regex_internal.c, and regex_internal.h.
2204 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
2205 * posix/regex.c: Complete rewrite.
2206 * posix/regexec.c: New file.
2207 * posix/regcomp.c: New file.
2208 * posix/regex_internal.c: New file.
2209 * posix/regex_internal.h: New file.
2210 * posix/regex.h (RE_ICASE): New macro.
2211 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
2213 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
2214 ungetwc. It's a macro.
2215 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
2217 Reported by Jason Merrill <jason@redhat.com>.
2219 2002-02-25 Jakub Jelinek <jakub@redhat.com>
2221 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
2222 position to fp->_offset if it is set.
2223 * stdio-common/Makefile (tests): Add tst-fdopen.
2224 * stdio-common/tst-fdopen.c: New test.
2226 2002-02-25 Jakub Jelinek <jakub@redhat.com>
2228 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
2229 * stdio-common/tst-ungetc.c (main): Add another test.
2231 2002-02-25 Ulrich Drepper <drepper@redhat.com>
2233 * assert/assert-perr.c: Use INTUSE to reference functions and variables
2234 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
2235 aliases. Add prototypes for the new aliases.
2236 * assert/assert.c: Likewise.
2237 * include/libc-symbols.h: Likewise.
2238 * include/stdio.h: Likewise.
2239 * include/netinet/in.h: Likewise.
2240 * include/rpc/auth.h: Likewise.
2241 * include/rpc/auth_unix.h: Likewise.
2242 * include/rpc/key_prot.h: Likewise.
2243 * include/rpc/pmap_prot.h: Likewise.
2244 * include/rpc/pmap_rmt.h: Likewise.
2245 * include/rpc/rpc_msg.h: Likewise.
2246 * include/rpc/xdr.h: Likewise.
2247 * inet/gethstbyad_r.c: Likewise.
2248 * inet/gethstbynm2_r.c: Likewise.
2249 * inet/gethstbynm_r.c: Likewise.
2250 * inet/gethstent_r.c: Likewise.
2251 * inet/in6_addr.c: Likewise.
2252 * libio/__fpurge.c: Likewise.
2253 * libio/filedoalloc.c: Likewise.
2254 * libio/fileops.c: Likewise.
2255 * libio/ftello.c: Likewise.
2256 * libio/ftello64.c: Likewise.
2257 * libio/genops.c: Likewise.
2258 * libio/iofclose.c: Likewise.
2259 * libio/iofdopen.c: Likewise.
2260 * libio/iofflush.c: Likewise.
2261 * libio/iofflush_u.c: Likewise.
2262 * libio/iofgetpos.c: Likewise.
2263 * libio/iofgetpos64.c: Likewise.
2264 * libio/iofgets.c: Likewise.
2265 * libio/iofgets_u.c: Likewise.
2266 * libio/iofopen.c: Likewise.
2267 * libio/iofopncook.c: Likewise.
2268 * libio/iofputs.c: Likewise.
2269 * libio/iofread.c: Likewise.
2270 * libio/iofread_u.c: Likewise.
2271 * libio/iofsetpos.c: Likewise.
2272 * libio/iofsetpos64.c: Likewise.
2273 * libio/ioftell.c: Likewise.
2274 * libio/iofwrite.c: Likewise.
2275 * libio/iogetline.c: Likewise.
2276 * libio/iogets.c: Likewise.
2277 * libio/iogetwline.c: Likewise.
2278 * libio/iolibio.h: Likewise.
2279 * libio/iopadn.c: Likewise.
2280 * libio/iopopen.c: Likewise.
2281 * libio/ioseekoff.c: Likewise.
2282 * libio/ioseekpos.c: Likewise.
2283 * libio/iosetbuffer.c: Likewise.
2284 * libio/iosetvbuf.c: Likewise.
2285 * libio/ioungetc.c: Likewise.
2286 * libio/ioungetwc.c: Likewise.
2287 * libio/iovdprintf.c: Likewise.
2288 * libio/iovsprintf.c: Likewise.
2289 * libio/iovsscanf.c: Likewise.
2290 * libio/libioP.h: Likewise.
2291 * libio/memstream.c: Likewise.
2292 * libio/obprintf.c: Likewise.
2293 * libio/oldfileops.c: Likewise.
2294 * libio/oldiofclose.c: Likewise.
2295 * libio/oldiofdopen.c: Likewise.
2296 * libio/oldiofgetpos.c: Likewise.
2297 * libio/oldiofgetpos64.c: Likewise.
2298 * libio/oldiofopen.c: Likewise.
2299 * libio/oldiofsetpos.c: Likewise.
2300 * libio/oldiofsetpos64.c: Likewise.
2301 * libio/oldiopopen.c: Likewise.
2302 * libio/oldstdfiles.c: Likewise.
2303 * libio/putc.c: Likewise.
2304 * libio/setbuf.c: Likewise.
2305 * libio/setlinebuf.c: Likewise.
2306 * libio/stdfiles.c: Likewise.
2307 * libio/stdio.c: Likewise.
2308 * libio/strops.c: Likewise.
2309 * libio/vasprintf.c: Likewise.
2310 * libio/vscanf.c: Likewise.
2311 * libio/vsnprintf.c: Likewise.
2312 * libio/vswprintf.c: Likewise.
2313 * libio/wfiledoalloc.c: Likewise.
2314 * libio/wfileops.c: Likewise.
2315 * libio/wgenops.c: Likewise.
2316 * libio/wstrops.c: Likewise.
2317 * malloc/mtrace.c: Likewise.
2318 * misc/error.c: Likewise.
2319 * misc/syslog.c: Likewise.
2320 * nss/getXXbyYY_r.c: Likewise.
2321 * nss/getXXent_r.c: Likewise.
2322 * nss/hosts-lookup.c: Likewise.
2323 * stdio-common/getw.c
2324 * stdio-common/printf-prs.c: Likewise.
2325 * stdio-common/printf_fp.c: Likewise.
2326 * stdio-common/printf_size.c: Likewise.
2327 * stdio-common/putw.c: Likewise.
2328 * stdio-common/scanf.c: Likewise.
2329 * stdio-common/sprintf.c: Likewise.
2330 * stdio-common/tmpfile64.c: Likewise.
2331 * stdio-common/vfprintf.c: Likewise.
2332 * stdio-common/vfscanf.c: Likewise.
2333 * stdlib/strfmon.c: Likewise.
2334 * sunrpc/auth_des.c: Likewise.
2335 * sunrpc/auth_none.c: Likewise.
2336 * sunrpc/auth_unix.c: Likewise.
2337 * sunrpc/authdes_prot.c: Likewise.
2338 * sunrpc/authuxprot.c: Likewise.
2339 * sunrpc/clnt_perr.c: Likewise.
2340 * sunrpc/clnt_raw.c: Likewise.
2341 * sunrpc/clnt_tcp.c: Likewise.
2342 * sunrpc/clnt_udp.c: Likewise.
2343 * sunrpc/clnt_unix.c: Likewise.
2344 * sunrpc/key_call.c: Likewise.
2345 * sunrpc/key_prot.c: Likewise.
2346 * sunrpc/openchild.c: Likewise.
2347 * sunrpc/pm_getmaps.c: Likewise.
2348 * sunrpc/pm_getport.c: Likewise.
2349 * sunrpc/pmap_clnt.c: Likewise.
2350 * sunrpc/pmap_prot.c: Likewise.
2351 * sunrpc/pmap_prot2.c: Likewise.
2352 * sunrpc/pmap_rmt.c: Likewise.
2353 * sunrpc/rpc_cmsg.c: Likewise.
2354 * sunrpc/rpc_prot.c: Likewise.
2355 * sunrpc/svc_authux.c: Likewise.
2356 * sunrpc/svc_raw.c: Likewise.
2357 * sunrpc/svc_simple.c: Likewise.
2358 * sunrpc/svc_tcp.c: Likewise.
2359 * sunrpc/svc_udp.c: Likewise.
2360 * sunrpc/svc_unix.c: Likewise.
2361 * sunrpc/xdr.c: Likewise.
2362 * sunrpc/xdr_array.c: Likewise.
2363 * sunrpc/xdr_mem.c: Likewise.
2364 * sunrpc/xdr_rec.c: Likewise.
2365 * sunrpc/xdr_ref.c: Likewise.
2366 * sunrpc/xdr_stdio.c: Likewise.
2367 * sysdeps/generic/_strerror.c: Likewise.
2368 * sysdeps/generic/printf_fphex.c: Likewise.
2369 * sysdeps/generic/tmpfile.c: Likewise.
2370 * sysdeps/gnu/errlist.awk: Likewise.
2371 * sysdeps/gnu/errlist.c: Likewise.
2373 * libio/Makefile (routines): Remove iosprint.
2374 * libio/iosprintf.c: Removed
2377 2002-02-24 Ulrich Drepper <drepper@redhat.com>
2379 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
2380 non_dynamic_init and exported now.
2381 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
2382 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
2384 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2385 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2386 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2388 2002-02-23 Ulrich Drepper <drepper@redhat.com>
2390 * elf/dl-close.c (free_slotinfo): Check for end of list and return
2393 * locale/iso-639.def: Add language codes for Walloon.
2395 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
2396 total number of relocations performed.
2398 * elf/sprof.c (load_profdata): If do_test provide information as
2399 to why loading failed.
2400 * elf/dl-profile.c (_dl_start_profile): Initialize all of
2403 * csu/set-init.c: Moved to...
2404 * sysdeps/mach/hurd/set-init.c: ...here. New file.
2405 * csu/Makefile: Don't compile set-init.
2406 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
2407 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
2409 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2410 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2411 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
2413 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
2416 2002-02-22 Ulrich Drepper <drepper@redhat.com>
2418 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
2419 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
2420 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
2421 (_dl_deallocate_tls): New function.
2422 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
2425 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2427 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
2428 * stdio-common/tst-fseek.c (main): Add test for this.
2430 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
2432 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
2434 2002-02-19 Jakub Jelinek <jakub@redhat.com>
2436 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
2437 pointer before dereferencing.
2439 2002-02-18 Roland McGrath <roland@frob.com>
2441 * sysdeps/mach/hurd/times.c: Fix typo in last change.
2443 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
2444 Use task_policy in place of task_priority.
2446 * sysdeps/generic/bits/mman.h
2447 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
2448 * sysdeps/mach/msync.c: New file.
2450 * sysdeps/mach/powerpc/syscall.S: New file.
2452 * mach/msg.c [MACH_MSG_OVERWRITE]
2453 (__mach_msg_trap, __mach_msg_overwrite): New functions.
2454 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
2456 * sysdeps/mach/configure.in: Check for clock.defs to put into
2457 mach_interface_list.
2458 * sysdeps/mach/configure: Regenerated.
2460 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
2461 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
2462 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
2463 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
2464 (mach-shortcuts): Add device_read_overwrite_request,
2465 device_read_overwrite, vm_read_overwrite, thread_switch.
2467 * configure.in (base_machine): Set to $machine by default.
2468 * configure: Regenerated.
2470 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
2471 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
2472 * sysdeps/mach/configure: Regenerated.
2473 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
2475 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
2477 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
2479 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
2480 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
2482 2002-02-17 Roland McGrath <roland@frob.com>
2484 * sysdeps/mach/hurd/times.c
2485 [NO_CREATION_TIME] (startup_time): New static variable.
2486 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
2487 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
2488 creation_time from task_basic_info.
2489 (__times): Use __gettimeofday instead of __host_get_time.
2491 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
2492 Use untyped Mach IPC message format.
2494 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
2496 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
2497 _S_catch_exception_raise_state_identity,
2498 _hurdsig_fault_catch_exception_raise_state,
2499 _hurdsig_fault_catch_exception_raise_state_identity.
2501 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
2503 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
2504 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
2506 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
2507 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
2509 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
2510 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
2511 them as no-op macros.
2512 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
2513 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
2515 * sysdeps/powerpc/dl-machine.h
2516 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
2518 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
2519 Use untyped Mach IPC message format.
2521 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
2522 Handle untyped Mach IPC message formats.
2524 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
2525 Expect different argument conventions when this is defined.
2526 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
2527 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
2528 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
2529 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
2530 for OSF Mach variant.
2531 (faulted): Use mig_reply_error_t for REPLY.
2532 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
2533 in __thread_set_exception_ports call.
2534 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
2535 __mach_port_set_attributes in place of __mach_port_set_qlimit.
2537 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
2538 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
2539 on Darwin, which includes bogons.
2541 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
2542 variable LOADBASE so it's not declared when it's not used.
2544 2002-02-16 Roland McGrath <roland@frob.com>
2546 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
2547 to use BI.creation_time.
2549 * mach/Machrules (MIG): Add -x c to CPP value passed down.
2551 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
2552 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
2553 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
2554 host_page_size instead of vm_statistics.
2556 * sysdeps/mach/Makefile (mach-before-compile): Don't include
2557 mach_interface.h here, since not all variants use that name.
2559 * sysdeps/mach/configure.in: Add some checks for Mach headers
2560 to ensure a sane installation.
2561 (mach_interface_list): Define this variable by checking for .defs
2562 files found in various variants.
2563 * configure.in (mach_interface_list): AC_SUBST this.
2564 * config.make.in (mach-interface-list): New substituted variable.
2565 * mach/Makefile (user-interfaces): Define this using the value
2566 of $(mach-interface-list) instead of mach, mach4.
2567 Updated other references to mach_interface to use it as well.
2569 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
2571 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
2572 mig_reply_error_t for OSF Mach variant.
2574 * mach/Makefile (routines): Remove bootprivport.
2575 * mach/bootprivport.c: File removed. It has never been used.
2577 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
2578 Grok the OSF flavor of message format.
2579 (mach_msg_destroy_port): For MAKE_SEND and
2580 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
2581 no-senders notification.
2583 2002-02-06 Roland McGrath <roland@frob.com>
2585 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
2586 to here if 2.0 compatibility enabled ...
2587 (libc: GLIBC_2.1.3): ... from here.
2589 2002-02-15 Ulrich Drepper <drepper@redhat.com>
2591 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
2593 * elf/dl-close.c (_dl_close): Likewise.
2595 2002-02-14 Ulrich Drepper <drepper@redhat.com>
2597 * elf/Makefile: Add rules to build and run tst-tls8.
2598 * elf/tst-tls8.c: New file.
2599 * elf/tst-tlsmod4.c: New file.
2601 * stdlib/test-a64l.c (tests): Add more test cases.
2603 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
2604 Reported by Walter Harms <WHarms@bfs.de>.
2606 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
2608 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
2609 definitions for struct sigcontext.
2610 Suggested by David Mosberger-Tang.
2612 2002-02-13 Ulrich Drepper <drepper@redhat.com>
2614 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
2615 for removing reference of module in slotinfo list.
2616 (_dl_close): Use remove_slotinfo.
2617 * sysdeps/generic/dl-tls.c: General pretty printing.
2618 (oom): Define only if SHARED.
2619 (_dl_next_tls_modid): Correct starting point for the case we assume
2620 there is a gap. Add missing instruction grouping (doh!). Correct
2621 tests for reaching maximum index.
2622 * elf/Makefile: Add rules to build and run tst-tls7.
2623 * elf/tst-tls7.c: New file.
2624 * elf/tst-tlsmod3.c: New file.
2626 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
2628 * elf/tst-tlsmod2.c: Likewise.
2630 * elf/dl-close.c (_dl_close): When closing an object using TLS
2631 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
2632 true. Increment dl_tls_generation only if we closed any TLS-using
2634 * elf/tst-tls6.c: New file.
2635 * elf/Makefile: Add rules to build and run tst-tls6.
2637 * po/da.po: Update from translation team.
2639 * locale/categories.def: Fix typo [PR libc/2948].
2640 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
2642 * locale/iso-4217.def: Update from official version [PR libc/2950].
2643 * glibcbug.in: Honor TMPDIR [PR libc/2951].
2644 * locale/programs/ld-collate.c (collate_finish): Bail out with a
2645 message if input is too confusion instead of using assert.
2646 (collate_read): Don't crash on unknown symbol [PR libc/2952].
2647 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
2649 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
2650 * elf/tst-tls2.c: Likewise.
2651 * elf/tst-tls3.c: Likewise.
2653 2002-02-13 Jakub Jelinek <jakub@redhat.com>
2655 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
2657 2002-02-13 Ulrich Drepper <drepper@redhat.com>
2659 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
2660 if this is really necessary.
2662 * elf/dl-close.c (_dl_close): Implement freeing entries in the
2664 (free_mem): Free memory for the slotinfo array if possible.
2666 2002-02-12 Andreas Schwab <schwab@suse.de>
2668 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
2670 2002-02-12 Ulrich Drepper <drepper@redhat.com>
2672 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
2674 (oom): New function.
2675 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
2676 (_dl_determine_tlsoffset): Likewise.
2677 (_dl_allocate_tls): Likewise.
2678 (__TLS_GET_ADDR): Define if not already defined.
2679 (_dl_tls_symaddr): New function.
2680 (allocate_and_init): New function.
2681 (__tls_get_addr): Actually implement handling of generation counter
2682 and deferred allocation.
2683 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
2684 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2686 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
2687 Declare _dl_tls_symaddr.
2688 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
2690 * include/link.h (struct link_map): Remove l_tls_nextimage and
2692 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
2693 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
2694 (_dl_vsym): Likewise.
2695 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
2697 (dl_main): Allow PT_TLS be present for empty segment. Remove
2698 nextimage list handling. Instead add all modules using TLS to
2699 dl_tls_dtv_slotinfo_list.
2700 * elf/dl-open.c (dl_open_worker): After successfully loading all
2701 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
2702 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
2703 empty segment don't do anything. Remove handling of initimage list.
2704 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
2705 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
2706 * elf/dl-minimal.c: Define __libc_memalign.
2707 * elf/dl-support.c: Remove _dl_initimage_list. Add
2708 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2710 * include/stdlib.h: Declare __libc_memalign.
2712 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
2713 * elf/tst-tls4.c: New file.
2714 * elf/tst-tls5.c: New file.
2715 * elf/tst-tlsmod2.c: New file.
2717 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
2719 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
2721 * elf/tst-tls1.c: Use test-skeleton.c.
2722 * elf/tst-tls2.c: Likewise.
2723 * elf/tst-tls3.c: Likewise.
2725 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
2727 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2729 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
2731 2002-02-10 Ulrich Drepper <drepper@redhat.com>
2733 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
2735 * elf/tst-tls3.c: New file.
2736 * elf/tst-tlsmod1.c: New file.
2737 * elf/Makefile: Add rules to build and run tst-tls3.
2739 * sysdeps/i386/dl-machine.h: Include <tls.h>.
2740 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
2743 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
2745 * po/fr.po: Update from translation team.
2747 * elf/tls-macros.h: Add alternative macros for use in PIC.
2749 * elf/dl-lookup.c: Include <tls.h>.
2750 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
2752 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
2753 required by passing pointer to last element of the list.
2755 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
2756 l_tls_initimage to a place where it actually is performed.
2758 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
2759 after globfree() calls.
2761 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
2762 (openaux): Pass open_mode as new last argument to _dl_map_object.
2763 (_dl_map_object_deps): Add new argument open_mode. Initialize
2764 open_mode element of args variable with it.
2765 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
2766 _dl_map_object_deps.
2767 * elf/rtld.c (dl_main): Add zero as last parameter to
2768 _dl_map_object_deps call.
2769 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
2770 * elf/nodlopen2.c: New file.
2771 * elf/nodlopenmod2.c: New file.
2772 * elf/Makefile: Add rules to build and run nodlopen2.
2774 * elf/tst-tls1.c: Move TLS helper macros to...
2775 * elf/tls-macros.h: ...here. New file.
2776 * elf/tst-tls2.c: New file.
2777 * elf/Makefile (tests): Add tst-tls2.
2778 (distribute): Add tls-macros.h.
2780 * po/sv.po: Update from translation team.
2782 * elf/tst-tls1.c (main): Add complete set of tests. Split
2783 architecture specific definitions from the actual test code.
2785 * po/tr.po: Update from translation team.
2787 2002-02-09 Ulrich Drepper <drepper@redhat.com>
2789 * elf/Makefile (tests): Add tst-tls1.
2790 * elf/tst-tls1.c: New file.
2792 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
2793 alignment of TCB for now.
2795 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
2796 initialization image for the application itself.
2798 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
2799 loop to initialize TLS block.
2801 2002-02-08 Richard Henderson <rth@redhat.com>
2803 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
2804 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
2806 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
2808 2002-02-09 Jakub Jelinek <jakub@redhat.com>
2810 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
2812 2002-02-08 Ulrich Drepper <drepper@redhat.com>
2814 * po/ca.po: Update from translation team.
2815 * po/sk.po: Likewise.
2817 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
2818 (dl_main): Move dtv/static TLS handling before relocation.
2819 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
2820 TLS_INIT_TP to allocate and install the dtv/static TLS block.
2821 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
2822 so far uses TLS initialize GL(dl_tls_static_size) and
2823 GL(dl_tls_static_align) to account for the TCB.
2824 (_dl_allocate_tls): New function.
2825 * sysdeps/generic/ldsodefs.h (rtld_global): Add
2826 _dl_initial_dtv_malloced.
2828 * configure.in: Test for __builtin_memset more realistically.
2830 * csu/version.c (banner): If TLS support is available say so.
2832 2002-02-04 H.J. Lu <hjl@gnu.org>
2834 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
2836 (__dl_runtime_resolve): Likewise.
2838 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
2841 2001-11-15 H.J. Lu <hjl@gnu.org>
2843 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
2844 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
2846 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
2848 2002-02-07 H.J. Lu <hjl@gnu.org>
2850 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
2852 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
2855 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2857 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
2859 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
2860 ___tls_get_addr_internal.
2861 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
2863 * po/ko.po: Update from translation team.
2865 2002-02-07 Jakub Jelinek <jakub@redhat.com>
2867 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
2868 attribute, change __pad{1,2} type to unsigned int.
2869 (struct stat64): Remove packed attribute.
2871 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2873 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
2875 2002-02-07 Andreas Schwab <schwab@suse.de>
2877 * configure.in: Fix check for -zcombreloc.
2879 2002-02-06 H.J. Lu <hjl@gnu.org>
2881 * config.h.in (HAVE_BUILTIN_MEMSET): New.
2882 * configure.in: Check if __builtin_memset really works.
2883 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
2884 __GNUC_PREREQ (2, 96) before using __builtin_memset.
2886 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2888 * io/bug-ftw3.c (main): Don't try the test if root.
2890 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2892 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
2894 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
2895 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
2896 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
2898 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
2899 a weak alias for __clone.
2900 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
2901 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
2902 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
2903 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
2904 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
2905 a weak alias for __mmap64.
2907 2002-02-05 H.J. Lu <hjl@gnu.org>
2909 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
2910 (atomic_add): Likewise.
2911 (compare_and_swap): Likewise.
2912 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
2914 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2916 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
2918 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
2919 alignment of the TCB and store total size and alignment of static
2920 TLS block in _dl_tls_static_size and _dl_tls_static_align.
2921 tls_index is a typedef.
2922 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
2923 _dl_tls_static_align.
2924 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
2925 * elf/dl-support.c: Define _dl_tls_static_size and
2926 _dl_tls_static_align.
2928 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2930 * configure.in: Add --without-tls option.
2931 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
2932 --without-tls is given.
2934 * sysdeps/generic/dl-tls.c: Include <tls.h>.
2936 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
2938 2002-02-06 Roland McGrath <roland@frob.com>
2940 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
2941 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
2943 * scripts/versions.awk: Improve error message for missing version.
2944 Each version inherits from the last one only if they have the same
2945 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
2946 but not GLIBC_x and FOO_y.
2948 * scripts/firstversions.awk: Handle libraries that don't have each
2949 particular version named in the third column of shlib-versions.
2951 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
2953 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2955 * Versions.def [ld]: Add GLIBC_2.3.
2956 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
2957 * elf/Makefile (dl-routines): Add dl-tls.
2958 (distribute): Add dl-tls.h.
2959 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2960 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2961 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
2962 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
2963 along with the other info in the link map. Change queueing of init
2964 images for double linked list. Use _dl_next_tls_modid to compute
2966 * elf/rtld.c (_dl_start_final): Store alignment requirement
2967 along with the other info in rtld map and executable map.
2968 (dl_main): Add ld.so to the init image list if necessary. Compute
2969 final module ID with _dl_next_tls_modid.
2970 * include/link.h (struct link_map): Add l_tls_previmage and
2972 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2973 * sysdeps/i386/elf/Versions: New file.
2974 * sysdeps/generic/dl-tls.c: New file.
2975 * sysdeps/generic/dl-tls.h: New file.
2976 * sysdeps/i386/dl-tls.h: New file.
2978 2002-02-06 Roland McGrath <roland@frob.com>
2980 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
2981 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
2983 2002-01-05 Roland McGrath <roland@frob.com>
2985 * sysdeps/mach/configure.in: New file.
2986 * sysdeps/mach/configure: New generated file.
2988 * mach/Makefile (user-interfaces): Remove default_pager_helper.
2989 It has never been used by anything.
2991 2002-02-06 H.J. Lu <hjl@gnu.org>
2993 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
2996 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2998 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
2999 attribute((packed)) to counter stupid people misusing gcc options.
3000 (struct stat64): Likewise.
3002 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3004 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
3005 the variables which are used as booleans.
3007 2002-02-06 Andreas Jaeger <aj@suse.de>
3009 * include/libc-symbols.h (INTUSE): Renamed from INT.
3010 * elf/dl-deps.c: Change users.
3011 * sysdeps/generic/dl-sysdep.c: Likewise.
3012 * sysdeps/generic/dl-cache.c: Likewise.
3013 * elf/dl-reloc.c: Likewise.
3014 * elf/rtld.c: Likewise.
3015 * elf/dl-version.c: Likewise.
3016 * elf/dl-load.c: Likewise.
3017 * elf/dl-dst.h: Likewise.
3018 * elf/dl-init.c: Likewise.
3019 * elf/dl-error.c: Likewise.
3020 * elf/dl-fini.c: Likewise.
3021 * elf/dl-runtime.c: Likewise.
3022 * elf/do-lookup.h: Likewise.
3024 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
3026 * stdio-common/_itowa.h: Likewise.
3028 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3030 * elf/dl-minimal.c: Define _itoa_lower_digits.
3032 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
3035 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
3036 loading modules with the DF_STATIC_TLS flag set.
3037 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
3039 * include/link.h (struct link_map): Add l_flags field.
3040 * elf/elf.h (DF_STATIC_TLS): New definition.
3042 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
3043 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
3045 * elf/rtld.c (process_dl_debug): Correct printing help message.
3046 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
3049 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
3050 definition and pass &errno in use of this variable.
3051 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
3053 2002-02-04 Andreas Schwab <schwab@suse.de>
3055 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
3056 * locale/programs/charmap-dir.c: Wrap calls that output messages
3057 with WITH_CUR_LOCALE. Include "localedef.h" first.
3058 * locale/programs/charmap.c: Likewise.
3059 * locale/programs/ld-address.c: Likewise.
3060 * locale/programs/ld-collate.c: Likewise.
3061 * locale/programs/ld-ctype.c: Likewise.
3062 * locale/programs/ld-identification.c: Likewise.
3063 * locale/programs/ld-measurement.c: Likewise.
3064 * locale/programs/ld-messages.c: Likewise.
3065 * locale/programs/ld-monetary.c: Likewise.
3066 * locale/programs/ld-name.c: Likewise.
3067 * locale/programs/ld-numeric.c: Likewise.
3068 * locale/programs/ld-paper.c: Likewise.
3069 * locale/programs/ld-telephone.c: Likewise.
3070 * locale/programs/ld-time.c: Likewise.
3071 * locale/programs/linereader.c: Likewise.
3072 * locale/programs/linereader.h: Likewise.
3073 * locale/programs/localedef.c: Likewise.
3074 * locale/programs/locfile.c: Likewise.
3075 * locale/programs/repertoire.c: Likewise.
3077 2002-02-05 Ulrich Drepper <drepper@redhat.com>
3079 * elf/rtld.c (_dl_start_final): Determine load address to locate
3080 ehdr with GL(dl_rtld_map).l_map_start.
3082 * po/ca.po: Update from translation team.
3084 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
3085 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
3087 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3089 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
3091 2002-02-04 Ulrich Drepper <drepper@redhat.com>
3093 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
3094 * include/link.h (struct link_map): Add various members for TLS
3096 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3097 _rtld_tlsoffset, add _dl_initimage_list.
3098 * sysdeps/i386/dl-lookupcfg.h: New file.
3099 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
3100 TLS relocation. When using TLS we now use RESOLVE_MAP.
3101 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
3104 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
3107 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
3108 thread-pointer as soon as possible.
3109 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
3110 elements in rtld_global.
3111 * sysdeps/generic/tls.h: New file.
3112 * elf/Makefile (distribute): Add tls.h.
3113 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
3114 relocations. Not complete yet.
3116 * resolv/resolv.h: Allow user to define __need_res_state and only
3117 define __res_start structure then.
3118 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
3120 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
3121 dl_cpuclock_offset initialization to _dl_start_final.
3122 (_dl_show_auxv): Avoid unnecessary sign extension.
3123 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
3125 2002-02-03 Ulrich Drepper <drepper@redhat.com>
3127 * config.h.in: Add HAVE_TLS_SUPPORT.
3128 * sysdeps/i386/elf/configure.in: New file.
3130 2002-02-03 Andreas Schwab <schwab@suse.de>
3132 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
3133 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
3135 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
3137 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
3138 alloca if the memory reqirements are too high.
3140 2002-02-03 Ulrich Drepper <drepper@redhat.com>
3142 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
3143 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
3144 the former is available anyway and speed isn't important here.
3145 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
3146 * elf/dl-version.c (match_symbol): Likewise.
3147 (_dl_check_map_versions): Likewise.
3148 * elf/rtld.c (process_envvars): Likewise.
3149 (print_statistics): Likewise.
3150 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
3151 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
3152 bases. Add assert to catch uses of unimplemented features.
3153 (__strsep): Add assert to catch uses of unimplemented features.
3154 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
3155 and avoid inline optimization.
3156 * elf/rtld.c (process_envvars): Likewise.
3157 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
3158 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
3159 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
3161 2002-02-02 Ulrich Drepper <drepper@redhat.com>
3163 * stdio-common/_itoa.h: Minor simplifications of the code.
3164 * stdio-common/_itoa.c: Likewise.
3166 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
3167 instead of _dl_printf for debugging info output.
3169 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
3170 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
3172 2002-02-01 H.J. Lu <hjl@gnu.org>
3174 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
3175 (atomic_add): Likewise.
3176 (compare_and_swap): Return 0 only when failed to compare. Use
3179 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
3182 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
3184 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
3186 2002-02-02 Ulrich Drepper <drepper@redhat.com>
3188 * elf/dl-minimal.c (__strsep): New minimal implementation.
3190 2002-02-02 Paul Eggert <eggert@twinsun.com>
3192 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
3193 (__mktime_internal): If no tm_isdst is requested, prefer solutions
3194 with tm_isdst > 0 when the requested time falls within a
3195 spring-forward gap [PR libc/2894].
3197 2002-02-03 Andreas Schwab <schwab@suse.de>
3199 * stdio-common/tst-rndseek.c: Increase timeout.
3201 2002-02-02 Ulrich Drepper <drepper@redhat.com>
3203 Change ld.so to not use functions which are exported. One cannot
3204 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
3206 * include/libc-symbols.h: Define INT and INTDEF.
3207 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
3208 _dl_signal_error_internal, _dl_map_object_internal,
3209 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
3210 _dl_lookup_versioned_symbol_internal,
3211 _dl_relocate_object_internal, _dl_debug_state_internal,
3212 _dl_start_profile_internal, and _dl_unload_cache_internal.
3213 * include/dlfcn.h: Declare _dl_catch_error_internal.
3214 * elf/rtld.c: Use INT for calls to any of the *_internal functions
3215 above. Add INTDEF to function definitions.
3216 * elf/dl-debug.c: Likewise.
3217 * elf/dl-deps.c: Likewise.
3218 * elf/dl-dst.h: Likewise.
3219 * elf/dl-error.c: Likewise.
3220 * elf/dl-fini.c: Likewise.
3221 * elf/dl-init.c: Likewise.
3222 * elf/dl-load.c: Likewise.
3223 * elf/dl-lookup.c: Likewise.
3224 * elf/dl-misc.c: Likewise.
3225 * elf/dl-open.c: Likewise.
3226 * elf/dl-profile.c: Likewise.
3227 * elf/dl-reloc.c: Likewise.
3228 * elf/dl-runtime.c: Likewise.
3229 * elf/dl-version.c: Likewise.
3230 * elf/do-lookup.h: Likewise.
3231 * sysdeps/generic/dl-cache.c: Likewise.
3232 * sysdeps/generic/dl-sysdep.c: Likewise.
3233 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
3234 instead of _dl_init.
3235 * sysdeps/arm/dl-machine.h: Likewise.
3236 * sysdeps/cris/dl-machine.h: Likewise.
3237 * sysdeps/hppa/dl-machine.h: Likewise.
3238 * sysdeps/i386/dl-machine.h: Likewise.
3239 * sysdeps/ia64/dl-machine.h: Likewise.
3240 * sysdeps/m68k/dl-machine.h: Likewise.
3241 * sysdeps/mips/dl-machine.h: Likewise.
3242 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3243 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3244 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3245 * sysdeps/sh/dl-machine.h: Likewise.
3246 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3247 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3248 * sysdeps/x86_64/dl-machine.h: Likewise.
3249 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
3251 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
3252 and _dl_debug_initialize.
3254 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
3256 * elf/rtld.c (dl_main): Avoid strrchr.
3257 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
3258 result of readlink. Search from the back for '/'.
3260 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
3261 strncpy if possible.
3263 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
3265 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
3266 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
3267 strspn, and strcspn.
3268 (process_envvars): Don't use strcspn.
3270 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
3271 (_dl_dst_substitute): Likewise.
3273 2002-02-01 Ulrich Drepper <drepper@redhat.com>
3275 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
3276 code which is never used when relocating ld.so itself.
3278 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
3279 starting ld.so itself. Move l_addr variable initialization closer
3281 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
3283 2002-02-01 Jakub Jelinek <jakub@redhat.com>
3285 * Versions.def (libc): Add GLIBC_PRIVATE.
3286 (libdb, libnss_db, libdb1): Remove.
3287 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
3288 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
3289 (libpthread): Add GLIBC_PRIVATE.
3290 (libresolv): Likewise, remove GLIBC_2.1.
3291 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
3292 GLIBC_2.2.3, GLIBC_2.3.
3293 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
3294 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
3295 _dl_sym, _dl_vsym): Likewise.
3296 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
3297 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
3298 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
3299 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
3300 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
3301 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
3302 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
3303 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
3305 (_dl_object_relocation_scope): Remove.
3306 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
3307 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
3308 __gconv_cache): Move to GLIBC_PRIVATE.
3309 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
3310 __internal_setnetgrent): Likewise.
3311 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
3312 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
3313 * locale/Versions (__collate_element_hash, __collate_element_strings,
3314 __collate_symbol_classes, __collate_symbol_hash,
3315 __collate_symbol_strings, _nl_current_LC_COLLATE,
3316 _nl_current_LC_CTYPE): Likewise.
3317 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
3318 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
3319 (libnss_nis, libnss_nisplus): Likewise.
3320 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
3321 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
3322 (libnss_files): Move all symbols to GLIBC_PRIVATE.
3323 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
3324 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
3325 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
3326 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
3327 __ns_get16, __ns_samename): Likewise.
3328 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
3329 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
3331 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
3332 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
3333 __libc_connect): Likewise.
3334 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
3336 * stdlib/Versions (__libc_system): Likewise.
3337 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
3338 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
3339 * sysdeps/ia64/fpu/Versions: Likewise.
3340 * sysdeps/ia64/Versions: Likewise.
3341 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3342 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
3344 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
3345 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
3346 __libc_sigaction): Likewise.
3347 * termios/Versions (__libc_tcdrain): Likewise.
3349 * misc/sys/cdefs (__attribute_noinline__): Define.
3350 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
3351 __attribute_noinline__.
3353 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
3354 * elf/dl-xstat64.c: New file.
3355 * elf/dl-fxstat64.c: New file.
3356 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
3357 don't export __fxstat64 at multiple versions.
3358 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
3359 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
3361 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
3363 * locale/program/ld-collate.c (collate_finish): Assign a wide
3364 char collation sequence value to multi character collating
3365 elements, and avoid over writing by non-character elements.
3367 2002-02-01 Ulrich Drepper <drepper@redhat.com>
3369 * elf/Makefile (distribute): Add dl-procinfo.c.
3370 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
3371 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
3373 2002-02-01 Jakub Jelinek <jakub@redhat.com>
3375 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
3377 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
3378 _rtld_global struct.
3379 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
3380 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
3381 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
3382 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
3383 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
3384 _dl_fpu_control_set): Remove unused externs.
3385 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
3386 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
3387 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
3388 related variables in _rtld_global struct.
3389 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
3390 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
3393 2002-02-01 Ulrich Drepper <drepper@redhat.com>
3395 * sysdeps/generic/dl-procinfo.c: New file.
3397 2002-02-01 Andreas Schwab <schwab@suse.de>
3399 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
3401 2002-02-01 Ulrich Drepper <drepper@redhat.com>
3403 * elf/rtld.c (_dl_start): Mark as internal_function.
3404 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
3406 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
3407 General pretty printing.
3409 2002-01-31 Ulrich Drepper <drepper@redhat.com>
3411 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
3412 * elf/dl-reloc.c: Pretty printing.
3413 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
3414 procinfo-related variables in rtld_global struct.
3415 * elf/dl-support.c: Likewise.
3416 * elf/rtld.c: Likewise.
3417 * sysdeps/i386/i686/Makefile: Likewise.
3418 * sysdeps/i386/i686/hp-timing.c: Likewise.
3419 * sysdeps/i386/i686/hp-timing.h: Likewise.
3420 * sysdeps/ia64/Makefile: Likewise.
3421 * sysdeps/ia64/hp-timing.c: Likewise.
3422 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
3423 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
3424 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
3425 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
3426 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3427 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
3428 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
3429 * sysdeps/x86_64/Makefile: Likewise.
3431 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
3432 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
3433 _dl_debug_fd to rtld_global.
3434 * elf/Versions: Likewise.
3435 * elf/dl-close.c: Likewise.
3436 * elf/dl-iteratephdr.c: Likewise.
3437 * elf/dl-lookup.c: Likewise.
3438 * elf/dl-misc.c: Likewise.
3439 * elf/dl-open.c: Likewise.
3440 * elf/dl-support.c: Likewise.
3441 * elf/do-lookup.h: Likewise.
3442 * elf/rtld.c: Likewise.
3443 * sysdeps/generic/dl-cache.c: Likewise.
3444 * sysdeps/generic/dl-sysdep.c: Likewise.
3445 * sysdeps/ia64/Versions: Likewise.
3446 * sysdeps/unix/clock_gettime.c: Likewise.
3447 * sysdeps/unix/clock_settime.c: Likewise.
3448 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3449 * sysdeps/sparc/Versions: Removed.
3450 * sysdeps/i386/i686/Versions : Removed.
3451 * sysdeps/x86_64/Versions: Removed.
3452 * configure.in: Define HAVE_PROTECTED if .protected is available.
3453 * config.h.in: Add entry for HAVE_PROTECTED.
3455 2002-01-31 Jakub Jelinek <jakub@redhat.com.
3457 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
3458 code in struct _rtld_global. Export this struct, remove all
3459 exports for the signal variables.
3460 * sysdeps/arm/dl-machine: Likewise.
3461 * sysdeps/generic/dl-origin: Likewise.
3462 * sysdeps/generic/dl-sysdep: Likewise.
3463 * sysdeps/generic/dl-cache: Likewise.
3464 * sysdeps/hppa/dl-fptr: Likewise.
3465 * sysdeps/hppa/dl-machine: Likewise.
3466 * sysdeps/cris/dl-machine: Likewise.
3467 * sysdeps/i386/dl-machine: Likewise.
3468 * sysdeps/ia64/dl-machine: Likewise.
3469 * sysdeps/m68k/dl-machine: Likewise.
3470 * sysdeps/mach/hurd/dl-sysdep: Likewise.
3471 * sysdeps/mips/mips64/dl-machine: Likewise.
3472 * sysdeps/mips/dl-machine: Likewise.
3473 * sysdeps/powerpc/elf/libc-start: Likewise.
3474 * sysdeps/powerpc/dl-machine: Likewise.
3475 * sysdeps/powerpc/dl-start: Likewise.
3476 * sysdeps/sparc/sparc32/dl-machine: Likewise.
3477 * sysdeps/sparc/sparc64/dl-machine: Likewise.
3478 * sysdeps/sh/dl-machine: Likewise.
3479 * sysdeps/s390/s390-32/dl-machine: Likewise.
3480 * sysdeps/s390/s390-64/dl-machine: Likewise.
3481 * sysdeps/unix/sysv/aix/libc-start: Likewise.
3482 * sysdeps/unix/sysv/aix/start-libc: Likewise.
3483 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
3484 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
3485 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
3486 * sysdeps/x86_64/dl-machine: Likewise.
3488 2002-01-31 Ulrich Drepper <drepper@redhat.com>
3490 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
3493 2002-01-31 Andreas Schwab <schwab@suse.de>
3495 * sysdeps/posix/readv.c: Check for ssize_t overflow.
3497 2002-01-31 Andreas Schwab <schwab@suse.de>
3499 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
3500 reference to _dl_pagesize.
3502 2002-01-30 Ulrich Drepper <drepper@redhat.com>
3504 * Versions.def [ld]: Add GLIBC_2.3.
3505 * elf/dl-addr.c: Move global variables for SHARED code in struct
3506 _rtld_global. Export this struct, remove all exports for the
3508 * elf/dl-close.c: Likewise.
3509 * elf/dl-conflict.c: Likewise.
3510 * elf/dl-debug.c: Likewise.
3511 * elf/dl-deps.c: Likewise.
3512 * elf/dl-dst.h: Likewise.
3513 * elf/dl-error.c: Likewise.
3514 * elf/dl-fini.c: Likewise.
3515 * elf/dl-init.c: Likewise.
3516 * elf/dl-iteratephdr.c: Likewise.
3517 * elf/dl-libc.c: Likewise.
3518 * elf/dl-load.c: Likewise.
3519 * elf/dl-lookup.c: Likewise.
3520 * elf/dl-minimal.c: Likewise.
3521 * elf/dl-object.c: Likewise.
3522 * elf/dl-open.c: Likewise.
3523 * elf/dl-profile.c: Likewise.
3524 * elf/dl-profstub.c: Likewise.
3525 * elf/dl-reloc.c: Likewise.
3526 * elf/dl-runtime.c: Likewise.
3527 * elf/dl-support.c: Likewise.
3528 * elf/dl-sym.c: Likewise.
3529 * elf/dl-version.c: Likewise.
3530 * elf/do-lookup.h: Likewise.
3531 * elf/do-rel.h: Likewise.
3532 * elf/dynamic-link.h: Likewise.
3533 * elf/rtld.c: Likewise.
3534 * sysdeps/generic/dl-cache.c: Likewise.
3535 * sysdeps/generic/dl-sysdep.c: Likewise.
3536 * sysdeps/generic/ldsodefs.h: Likewise.
3537 * sysdeps/generic/libc-start.c: Likewise.
3538 * sysdeps/i386/dl-machine.h: Likewise.
3539 * sysdeps/ia64/dl-fptr.c: Likewise.
3540 * sysdeps/ia64/dl-machine.h: Likewise.
3541 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
3542 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3543 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3544 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
3545 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3546 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
3547 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
3548 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3550 2002-01-29 Ulrich Drepper <drepper@redhat.com>
3552 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
3554 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
3556 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
3558 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
3560 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
3562 2002-01-29 Ben Collins <bcollins@debian.org>
3564 * string/bits/string2.h (__mempcpy): Protect size arg for
3565 addition when using __builtin_memcpy.
3567 2002-01-29 Ulrich Drepper <drepper@redhat.com>
3569 * stdlib/Makefile (tests): Add tst-qsort.
3570 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
3572 * manual/signal.texi (Process Signal Mask): Document that
3573 pthread_sigmask, not sigprocmask, must be used in MT programs.
3574 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
3576 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
3578 * misc/Makefile (tests): Add tst-hsearch.
3579 * misc/tst-hsearch.c: New file.
3581 2002-01-18 Wolfram Gloger <wg@malloc.de>
3583 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
3584 * malloc/malloc.h: Likewise.
3585 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
3586 * malloc/arena.c: New file.
3587 * malloc/hooks.c: New file.
3588 * malloc/tst-mallocstate.c: New file.
3589 * malloc/Makefile: Add new testcase tst-mallocstate.
3590 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
3592 2002-01-28 Ulrich Drepper <drepper@redhat.com>
3594 * stdlib/msort.c: Remove last patch. The optimization violates the
3595 same rule which qsort.c had problems with.
3597 2002-01-27 Paul Eggert <eggert@twinsun.com>
3599 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
3600 to a pivot element that lies outside the array to be sorted, as
3601 ISO C99 requires that the comparison function be called only with
3602 addresses of array elements [PR libc/2880].
3604 2002-01-28 Ulrich Drepper <drepper@redhat.com>
3606 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
3607 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
3609 * timezone/asia: Update from tzdata2002b.
3610 * timezone/australasia: Likewise.
3611 * timezone/backward: Likewise.
3612 * timezone/europe: Likewise.
3613 * timezone/leapseconds: Likewise.
3614 * timezone/iso3166.tab: Likewise.
3615 * timezone/zone.tab: Likewise.
3617 2002-01-23 Richard Henderson <rth@redhat.com>
3619 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
3621 2002-01-28 Ulrich Drepper <drepper@redhat.com>
3623 * string/strxfrm.c: Allocate one more byte for rulearr and clear
3624 this element [PR libc/2855].
3626 * string/strcoll.c: Handle zero-length arguments specially
3629 2002-01-23 Jakub Jelinek <jakub@redhat.com>
3631 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
3632 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
3633 short lengths and constant src.
3634 (strcpy): Don't optimize for gcc 3.0+.
3635 (__stpcpy): For gcc 3.0+, don't use
3636 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
3637 for short string literal src.
3639 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3641 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3644 2001-01-22 Paul Eggert <eggert@twinsun.com>
3646 * manual/llio.texi (Linked Channels, Cleaning Streams):
3647 Make it clearer that a just-opened input stream might need cleaning.
3649 2002-01-21 H.J. Lu <hjl@gnu.org>
3651 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3652 Don't use label at end of compound statement.
3654 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
3656 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
3657 Remove test for negative integer arg; sin_pi does it correctly.
3659 2002-01-20 Ulrich Drepper <drepper@redhat.com>
3661 * nscd/Makefile (distribute): Filter out xmalloc.c.
3663 2002-01-19 Ulrich Drepper <drepper@redhat.com>
3665 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
3666 Set offset if read end wasn't the buffer end.
3667 (_IO_file_seekoff_mmap): New function.
3668 (_IO_file_xsgetn_mmap): New function.
3669 (_IO_file_jumps_mmap): Use the two new functions.
3670 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
3672 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
3673 _IO_file_underflow_mmap.
3674 * libio/iofopen.c: Don't position file descriptor at end of file.
3675 * libio/tst-widetext.c: Improve error messages.
3676 * stdio-common/tst-rndseek.c: Likewise.
3678 2002-01-18 Ulrich Drepper <drepper@redhat.com>
3680 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
3681 end of enum for !_GNU_SOURCE.
3682 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
3683 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
3684 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
3685 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
3686 values unless _GNU_SOURCE.
3688 * iconvdata/tcvn5712-1.c: Minor cleanups.
3690 2002-01-18 Andreas Schwab <schwab@suse.de>
3692 * sysdeps/unix/sysv/linux/configure.in
3693 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
3695 2002-01-16 Roger Sayle <roger@eyesopen.com>
3697 * stdlib/msort.c (msort_with_tmp): Replace implementation with
3698 more efficient "Towers of Hanoi" mergesort.
3699 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
3700 for generic, sizeof(int) and sizeof(long) variants respectively.
3702 2002-01-17 Ulrich Drepper <drepper@redhat.com>
3704 * manual/syslog.texi (openlog): Describe possible problems with
3706 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3708 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
3709 * nscd/connections.c (begin_drop_privileges): New function.
3710 (finish_drop_privileges): New function.
3711 (nscd_init): Call the new functions which also install all groups
3712 for the server user.
3713 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
3714 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3716 2002-01-17 H.J. Lu <hjl@gnu.org>
3718 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
3721 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3723 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
3724 instructions for pointer operations.
3725 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3727 2002-01-17 Andreas Jaeger <aj@suse.de>
3729 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
3730 __uint128_t build-in.
3732 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
3733 PowerPC, sync with 2.2 branch.
3735 2002-01-16 Ulrich Drepper <drepper@redhat.com>
3737 * posix/getconf.c: Update copyright year.
3738 * nss/getent.c: Likewise.
3739 * nscd/nscd_nischeck.c: Likewise.
3740 * iconv/iconvconfig.c: Likewise.
3741 * iconv/iconv_prog.c: Likewise.
3742 * elf/ldconfig.c: Likewise.
3743 * catgets/gencat.c: Likewise.
3744 * csu/version.c: Likewise.
3745 * elf/ldd.bash.in: Likewise.
3746 * elf/sprof.c (print_version): Likewise.
3747 * locale/programs/locale.c: Likewise.
3748 * locale/programs/localedef.c: Likewise.
3749 * nscd/nscd.c (print_version): Likewise.
3750 * debug/xtrace.sh: Likewise.
3751 * malloc/memusage.sh: Likewise.
3752 * malloc/mtrace.pl: Likewise.
3754 2002-01-16 Andreas Schwab <schwab@suse.de>
3756 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
3757 reliably remove "-ia64" from rtld name.
3759 2002-01-16 Ulrich Drepper <drepper@redhat.com>
3761 * iconvdata/gb18030.c: Bug fixes and support for more characters.
3762 Patch by Yu Shao <yshao@redhat.com>.
3764 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
3766 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
3767 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
3768 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
3770 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
3772 * sysdeps/s390/fpu/libm-test-ulps: Update.
3774 2002-01-11 Ulrich Drepper <drepper@redhat.com>
3776 * elf/elf.h: Update x86 relocations.
3778 2002-01-10 Ulrich Drepper <drepper@redhat.com>
3780 * locale/programs/charmap.c (new_width): Check whether byte
3781 sequences for both ends of range have the same length.
3783 2002-01-09 Jakub Jelinek <jakub@redhat.com>
3785 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
3787 2002-01-09 Jakub Jelinek <jakub@redhat.com>
3789 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
3791 (__full_ieee754_sqrt): Add __attribute_used__.
3793 2002-01-10 Ulrich Drepper <drepper@redhat.com>
3795 * sysdeps/generic/group_member.c (__group_member): Also check
3796 groups[0] [PR libc/2781].
3798 2002-01-08 Ulrich Drepper <drepper@redhat.com>
3800 * Makefile (distribute): Add scripts/cpp.
3801 * elf/Makefile (distribute): Add reldep6mod[01234].c,
3802 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
3803 unwind-dw2-fde.h, and dwarf2.h.
3804 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
3805 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
3806 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
3807 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
3809 2002-01-07 Roland McGrath <roland@frob.com>
3811 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
3812 volatile on type of ARGC so the compiler doesn't get clever.
3814 2002-01-07 Andreas Jaeger <aj@suse.de>
3816 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
3817 * sysdeps/i386/bits/byteswap.h: Likewise.
3818 * sysdeps/ia64/bits/byteswap.h: Likewise.
3819 * sysdeps/m68k/bits/byteswap.h: Likewise.
3820 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
3821 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
3823 2002-01-02 Bruno Haible <bruno@clisp.org>
3825 * intl/plural.y: Fix %expect count.
3827 2002-01-03 Jakub Jelinek <jakub@redhat.com>
3829 * elf/Makefile (routines, shared-only-routines): Add
3830 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
3831 * elf/elf.h (PT_GNU_EH_FRAME): Define.
3832 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
3833 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
3834 Optimize if .eh_frame section contains no FDEs.
3835 (__register_frame, __deregister_frame_info_bases,
3836 __deregister_frame): Likewise.
3837 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
3838 DW_CFA_restore handling.
3840 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
3842 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
3844 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
3845 for x < 0.25 and restore original range reduction method.
3846 (__ieee754_lgammal_r): Make sure signgam is set before returning.
3848 2002-01-07 Ulrich Drepper <drepper@redhat.com>
3850 * libio/fileops.c (_IO_file_underflow_mmap): New function.
3851 (_IO_file_close_mmap): New function.
3852 (_IO_file_jumps_mmap): New variable.
3853 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
3854 trying to convert rest of byte buffer.
3855 (_IO_wfile_underflow_mmap): New function.
3856 (_IO_wfile_jumps_mmap): New variable.
3857 * libio/iofopen.c (__fopen_maybe_mmap): New function.
3858 (__fopen_internal): New function. Split out from _IO_new_fopen.
3859 (_IO_new_fopen): Call __fopen_internal.
3860 * libio/iofopen64.c: Just call __fopen_internal.
3861 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
3863 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
3864 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
3865 _IO_file_close_mmap.
3867 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
3868 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
3870 * stdio-common/Makefile (tests): Add tst-rndseek.
3871 * stdio-common/tst-rndseek.c: New file.
3873 2002-01-05 Roland McGrath <roland@frob.com>
3875 * config.h.in (HAVE_MIG_RETCODE): New #undef.
3876 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
3877 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
3878 * sysdeps/mach/hurd/configure: Regenerated.
3880 2002-01-03 Ulrich Drepper <drepper@redhat.com>
3882 * elf/elf.h: Add more TLS definitions.
3884 2002-01-02 Ulrich Drepper <drepper@redhat.com>
3886 * include/features.h (__GLIBC_MINOR__): Bump to 3.
3888 2002-01-02 Roland McGrath <roland@frob.com>
3890 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
3891 __sigisemptyset. Don't use MASK uninitialized.
3893 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
3894 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
3895 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
3896 __sigdelset, __sigaddset, __sigorset.
3898 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
3899 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
3901 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
3902 _hurd_ports is null.
3904 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
3905 for old CMU and new OSF Mach interface flavors.
3906 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
3907 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3909 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
3911 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
3912 Pass extra arguments to task_create for OSF variant.
3913 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3915 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
3916 conditional on [HAVE_AUX_VECTOR].
3918 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
3919 mach_msg_timeout_t as type of final argument.
3921 * hurd/privports.c (__get_privileged_ports):
3922 Change host_priv_t to mach_port_t in argument type.
3923 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
3926 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
3927 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
3928 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
3929 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
3930 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
3931 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
3933 2002-01-01 Roland McGrath <roland@frob.com>
3935 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
3937 2002-01-01 Ulrich Drepper <drepper@redhat.com>
3939 * include/stdlib.h: Define inlines for the _l variants of the strto*
3942 2002-01-01 Roland McGrath <roland@frob.com>
3944 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
3946 * mach/Machrules (MIG): Set CPP as well as CC.
3948 2001-12-31 Ulrich Drepper <drepper@redhat.com>
3950 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
3951 locale to parse /proc/loadavg [PR libc/2760].
3953 2001-12-31 Jakub Jelinek <jakub@redhat.com>
3955 * elf/dl-conflict.c: Include sys/param.h.
3956 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
3957 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
3959 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
3960 literals to avoid warnings.
3962 2001-12-31 Andreas Jaeger <aj@suse.de>
3964 * configure.in: Don't check for gsed since we do not use it anywhere.
3966 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
3968 * io/fts.c: Update from BSD to fix memory leaks.
3970 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
3972 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
3973 * elf/chroot_canon.c: Likewise.
3974 * elf/dl-object.c: Likewise.
3975 * iconv/iconv_charmap.c: Likewise.
3976 * iconv/iconv_prog.c: Likewise.
3977 * libio/iogetdelim.c: Likewise.
3978 * locale/lc-time.c: Likewise.
3979 * stdlib/canonicalize.c: Likewise.
3980 * sunrpc/svc.c: Likewise.
3981 * sysdeps/generic/glob.c: Likewise.
3983 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3985 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
3986 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
3987 remove high order bit from the program counter.
3988 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
3990 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3992 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
3993 unnecessary code and add missing reloc types.
3994 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
3995 case for reloc type R_390_NONE.
3997 2001-12-28 Andreas Jaeger <aj@suse.de>
3999 * io/bug-ftw3.c: Include string.h for prototypes.
4001 * crypt/md5test.c (main): Remove unused variable.
4003 * dlfcn/modstatic.c: Add prototype to avoid warning.
4005 2001-12-26 Roland McGrath <roland@frob.com>
4007 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
4008 check only (SS->pending & MASK) for the signal to return.
4009 From Jeroen Dekkers <jeroen@dekkers.cx>.
4011 2001-12-22 Roland McGrath <roland@frob.com>
4013 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
4014 Use preprocessor #if conditionals instead of `if' to avoid
4015 warnings about divide by zero in dead code.
4017 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
4018 _hurd_port_init, and __hurd_self_sigstate.
4020 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
4022 2001-12-21 Andreas Jaeger <aj@suse.de>
4024 * elf/dblloadmod1.c: Add prototype to avoid warning.
4025 * elf/dblloadmod2.c: Likewise.
4026 * elf/dblloadmod3.c: Likewise.
4027 * elf/reldepmod5.c: Likewise.
4028 * elf/reldepmod6.c: Likewise.
4030 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
4031 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
4032 used on all architectures.
4034 * sunrpc/svc_tcp.c: Add noreturn attribute for
4035 svctcp_rendezvous_abort.
4036 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
4038 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
4041 2001-12-19 Jakub Jelinek <jakub@redhat.com>
4043 * manual/llio.texi (aio_fsync): Fix a typo.
4044 Patch by Tammy Fox <tfox@redhat.com>.
4046 2001-12-18 Jakub Jelinek <jakub@redhat.com>
4048 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
4049 stack bias from child stack pointer before passing it to clone syscall.
4051 2001-12-18 Ulrich Drepper <drepper@redhat.com>
4053 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
4055 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
4056 Reported by Thorsten Kukuk <kukuk@suse.de>.
4058 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
4061 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
4063 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
4065 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
4066 conforming: return EBADF if file descriptor is invalid and EINVAL
4067 if file descriptor is no valid tty.
4068 * login/tst-grantpt.c: New file.
4069 * login/Makefile (tests): Add tst-grantpt.
4071 2001-12-17 Ulrich Drepper <drepper@redhat.com>
4073 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
4074 different than implemented in last patch.
4075 * io/bug-ftw3.c: Adjust test for changed handling of
4076 inaccessibility of toplevel dir.
4078 2001-12-16 Roland McGrath <roland@frob.com>
4080 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
4081 * grp/initgroups.c (internal_getgrouplist): Likewise.
4083 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
4084 `default:' to silence new GCC warning.
4085 Rewrite cast of lvalue to silence new GCC warning.
4087 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
4089 * sysdeps/mach/hurd/spawni.c: New file, by me with a
4090 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
4092 2001-12-14 Ulrich Drepper <drepper@redhat.com>
4094 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
4095 Patch by Stephen R. van den Berg.
4097 * crypt/md5.h: Define md5_uintptr.
4099 2001-12-13 Ulrich Drepper <drepper@redhat.com>
4101 * libio/tst_swprintf.c (main): Add test for string argument with
4103 * stdio-common/Makefile (tests): Add tst-sprintf.
4104 * stdio-common/tst-sprintf.c: New file.
4106 2001-12-13 Andreas Schwab <schwab@suse.de>
4108 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
4109 zero precision with wide character string format.
4111 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
4113 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
4114 but have a user supplied buffer, return the empty buffer, not NULL.
4116 2001-12-13 Ulrich Drepper <drepper@redhat.com>
4118 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
4119 Patch by Eric Sharkey <sharkey@netrics.com>.
4121 * crypt/md5test.c (main): Add test for multiple calls to
4122 __md5_process_bytes to itererate over input string.
4124 2001-12-12 Ulrich Drepper <drepper@redhat.com>
4126 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
4127 from __nis_findfastest. Take timeout value from parameter.
4128 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
4129 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
4130 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
4132 2001-12-12 Andreas Jaeger <aj@suse.de>
4134 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
4135 combreloc test so that it works in this case.
4137 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
4139 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
4141 * sysdeps/sh/Makefile: New file.
4142 * sysdeps/sh/_mcount.S: New file.
4143 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
4144 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
4146 2001-12-11 Ulrich Drepper <drepper@redhat.com>
4148 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
4149 limitation [PR libc/2564].
4151 2001-12-11 Jakub Jelinek <jakub@redhat.com>
4153 * elf/Makefile (dl-routines): Add conflict.
4154 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
4155 (ld.so): Add _begin local symbol.
4156 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
4158 * elf/dl-deps.c (_dl_build_local_scope): New.
4159 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
4161 * elf/do-rel.h (VALIDX): Define.
4162 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
4163 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
4165 * elf/dl-conflict.c: New file.
4166 * elf/dl-lookup.c (_dl_debug_bindings): New.
4167 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
4169 (_dl_lookup_symbol_skip): Likewise.
4170 (_dl_lookup_versioned_symbol): Likewise.
4171 (_dl_lookup_versioned_symbol_skip): Likewise.
4172 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
4173 define to ElfW(Rel).
4174 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
4175 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
4177 Don't adjust address dynamic tags if l_addr is 0.
4178 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
4179 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
4180 (VALIDX, ADDRIDX): Define.
4181 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
4182 (dl_main): Print library list for LD_TRACE_PRELINKING.
4183 If prelinking information can be used, skip relocating libraries and
4184 call _dl_resolve_conflicts instead.
4185 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
4186 * elf/dl-load.c (_dl_map_object): Don't create fake libs
4187 if LD_TRACE_PRELINKING.
4188 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
4190 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
4191 (DL_DEBUG_PRELINK): Define.
4192 (_dl_resolve_conflicts): Add prototype.
4194 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
4195 .plt for prelinked libraries where prelinking info cannot be used.
4196 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
4197 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
4198 * sysdeps/arm/bits/link.h: New file.
4199 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
4201 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
4202 (ELF_MACHINE_PLT_REL): Define.
4203 (elf_machine_rela, elf_machine_rela_relative): New.
4204 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
4205 of adjusting it if prelinked and prelinking cannot be used.
4206 * sysdeps/i386/bits/link.h: New file.
4207 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
4209 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
4210 (ELF_MACHINE_PLT_REL): Define.
4211 (elf_machine_rela, elf_machine_rela_relative): New.
4212 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
4213 of adjusting it if prelinked and prelinking cannot be used.
4214 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
4215 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
4216 to find out map for R_PPC_JMP_SLOT relocs.
4217 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
4218 (OPCODE_BA): Define.
4219 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
4220 libraries where prelinking info cannot be used.
4221 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
4222 (elf_machine_fixup_plt): Call sparc_fixup_plt.
4223 (elf_machine_rela): Set value to 0 if relocating conflicts.
4224 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
4225 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
4226 (sparc64_fixup_plt): Fix a typo.
4227 (elf_machine_rela): Set value to 0 if relocating conflicts.
4228 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
4229 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
4230 libraries where prelinking info cannot be used.
4231 * sysdeps/sh/bits/link.h: New file.
4232 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
4234 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
4235 of adjusting it if prelinked and prelinking cannot be used.
4236 * sysdeps/s390/s390-32/bits/link.h: New file.
4237 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4238 Save original content of .got[1].
4239 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
4240 of adjusting it if prelinked and prelinking cannot be used.
4241 * sysdeps/s390/s390-64/bits/link.h: New file.
4242 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
4243 Save original content of .got[1].
4244 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
4245 of adjusting it if prelinked and prelinking cannot be used.
4246 * sysdeps/x86_64/bits/link.h: New file.
4247 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
4248 Save original content of .got[1].
4249 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
4250 of adjusting it if prelinked and prelinking cannot be used.
4252 2001-12-11 Ulrich Drepper <drepper@redhat.com>
4254 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
4255 where appropriate instead of numbers. Little optimizations.
4257 2001-12-10 Roland McGrath <roland@frob.com>
4259 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
4262 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
4263 set to GLIBC_2.2.5, not GLIBC_2.2.4.
4265 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
4266 Fix conditionals so this is set by default for stdio and not for libio.
4267 * sysdeps/mach/hurd/configure: Regenerated.
4269 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
4271 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
4273 2001-12-10 Ulrich Drepper <drepper@redhat.com>
4275 * io/Makefile (tests): Add bug-ftw3.
4276 * io/bug-ftw3.c: New file.
4278 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
4279 matches and GLOB_NOCHECK is set.
4280 * posix/globtest.sh: Correct expected result for NOCHECK test.
4282 * po/ca.po: Update from translation team.
4284 2001-12-09 Ulrich Drepper <drepper@redhat.com>
4286 Implement transliteration of characters in strings of the locale
4288 * locale/programs/linereader.c: Adjust for additional parameter to
4290 (get_string): If character <Uxxxx> is not found try to transliterate
4292 * locale/programs/ld-ctype.c: Adjust for additional parameter to
4293 lr_token. Add const to charmap parameter of all functions.
4294 (find_translit, find_translit2): New functions.
4295 * locale/programs/charmap.c: Adjust for additional parameter to
4297 * locale/programs/repertoire.c: Likewise.
4298 * locale/programs/linereader.h: Likewise.
4299 * locale/programs/ld-address.c: Likewise. Add const to charmap
4300 parameter of all functions.
4301 * locale/programs/ld-collate.c: Likewise.
4302 * locale/programs/ld-identification.c: Likewise.
4303 * locale/programs/ld-measurement.c: Likewise.
4304 * locale/programs/ld-messages.c: Likewise.
4305 * locale/programs/ld-monetary.c: Likewise.
4306 * locale/programs/ld-name.c: Likewise.
4307 * locale/programs/ld-numeric.c: Likewise.
4308 * locale/programs/ld-paper.c: Likewise.
4309 * locale/programs/ld-paper.c: Likewise.
4310 * locale/programs/ld-telephone.c: Likewise.
4311 * locale/programs/ld-time.c: Likewise.
4312 * locale/programs/locfile.c: Likewise.
4313 * locale/programs/localedef.c: Likewise.
4314 * locale/programs/localedef.h: Likewise.
4315 * locale/programs/locfile.h: Likewise. Add declaration for
4317 * locale/programs/simple-hash.c: Add const to first parameter of
4318 find_entry, iterate_table, and lookup.
4319 * locale/programs/simple-hash.h: Likewise.
4320 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
4322 * include/locale.h: Define __LC_LAST.
4323 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
4325 2001-12-07 Geoff Keating <geoffk@redhat.com>
4327 * sysdeps/powerpc/Dist: Update for recent FP changes.
4328 * sysdeps/powerpc/fpu/Dist: Likewise.
4330 2001-12-07 Andreas Schwab <schwab@suse.de>
4332 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
4334 2001-12-06 Geoff Keating <geoffk@redhat.com>
4336 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
4337 save/restore functions here.
4338 (libm-support): Don't define these functions here.
4339 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
4341 * sysdeps/powerpc/fe_nomask.c: Move to...
4342 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
4343 * sysdeps/powerpc/fprrest.S: Move to...
4344 * sysdeps/powerpc/fpu/fprrest.S: ... here.
4345 * sysdeps/powerpc/fprsave.S: Move to...
4346 * sysdeps/powerpc/fpu/fprsave.S: ... here.
4348 2001-12-06 Ulrich Drepper <drepper@redhat.com>
4350 * sysdeps/unix/sysv/linux/opensock.c: New file.
4352 2001-12-06 Geoff Keating <geoffk@redhat.com>
4354 * config.make.in (with-fp): Define from configure.
4355 * configure.in: Substitute with_fp.
4356 * configure: Regenerate.
4357 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
4358 specified, and don't change FPU environment.
4360 2001-12-06 Ulrich Drepper <drepper@redhat.com>
4362 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
4363 * assert/assert.c: Check result of __asprintf call and don't use
4364 string if it failed.
4365 * assert/assert-perr.c: Likewise.
4366 * inet/rcmd.c: Likewise.
4367 * locale/programs/localedef.c (main): Check result of
4368 construct_output_path and exit if it failed.
4369 (construct_output_path): Check result of asprintf and mkdir calls and
4370 fail if they failed.
4371 * posix/getopt.c: Check result of __asprintf calls and fail if
4373 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
4375 2001-12-05 Ulrich Drepper <drepper@redhat.com>
4377 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
4379 * sysdeps/generic/strncase.c: Likewise.
4380 * string/tester.c: Add tests for strcasecmp and strncasecmp.
4382 2001-12-05 Geoff Keating <geoffk@redhat.com>
4384 * scripts/cpp: Test the exit status from 'type', not 'awk'.
4386 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
4387 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
4388 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
4389 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
4390 * sysdeps/powerpc/fclrexcpt.c: Move to...
4391 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
4392 * sysdeps/powerpc/fpu_control.h: Move to...
4393 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
4395 2001-12-05 Ulrich Drepper <drepper@redhat.com>
4397 * iconvdata/ibm1129.h: Remove duplicate mappings.
4398 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
4399 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
4400 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4402 * timezone/zic.c: Fix handling of turnaround times.
4403 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
4405 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
4407 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
4410 2001-12-05 Ulrich Drepper <drepper@redhat.com>
4412 * posix/regex.c: For use outside glibc defined bounded pointer
4413 macros here. Patch by Jim Meyering <jim@meyering.net>.
4415 * iconvdata/Makefile (modules): Add TCVN5712-1.
4416 * iconvdata/TESTS: Add TCVN5712-1.
4417 * iconvdata/gconv-modules: Likewise.
4418 * iconvdata/tcvn5712-1.c: New file.
4419 * iconvdata/testdata/TCVN-5712: New file.
4420 * iconvdata/testdata/TCVN-5712..UTF8: New file.
4422 2001-12-04 Ulrich Drepper <drepper@redhat.com>
4424 * iconvdata/cp1258.c: Optimize conversion from UCS4.
4426 2001-12-02 Roland McGrath <roland@frob.com>
4428 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
4430 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
4431 Reported by Jeff Bailey <jbailey@nisa.net>.
4433 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
4434 Reported by Jeff Bailey <jbailey@nisa.net>.
4436 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
4437 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
4438 Reported by Jeff Bailey <jbailey@nisa.net>.
4440 2001-12-01 Roland McGrath <roland@frob.com>
4442 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
4443 missing backslash in test arguments.
4444 * sysdeps/mach/hurd/configure: Regenerated.
4446 2001-11-26 Roland McGrath <roland@frob.com>
4448 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
4449 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
4451 2001-11-30 Ulrich Drepper <drepper@redhat.com>
4453 * iconvdata/Makefile (modules): Add ARMSCII-8.
4454 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
4455 * iconvdata/armscii-8.c: New file.
4457 2001-11-29 Jakub Jelinek <jakub@redhat.com>
4459 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
4460 don't match, fix {{a,b},c} globbing, clean up.
4461 Patch by Flavio Veloso <flaviovs@magnux.com>.
4462 * posix/globtest.sh: Add new tests.
4464 2001-11-29 Andreas Jaeger <aj@suse.de>
4466 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
4467 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
4469 * sysdeps/generic/abort.c: Include libioP.h for
4470 _IO_flush_all_lockp prototype.
4472 2001-11-29 Ulrich Drepper <drepper@redhat.com>
4474 * posix/regex.h: Define __restrict_arr correctly.
4476 2001-11-28 Ulrich Drepper <drepper@redhat.com>
4478 * iconvdata/ibm1163.c: New file.
4479 * iconvdata/ibm1163.h: New file.
4480 * iconvdata/ibm1164.c: New file.
4481 * iconvdata/ibm1164.h: New file.
4482 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
4483 * iconvdata/Makefile: Likewise.
4484 * iconvdata/testdata/IBM1163: New file.
4485 * iconvdata/testdata/IBM1163..UTF8: New file.
4486 * iconvdata/testdata/IBM1164: New file.
4487 * iconvdata/testdata/IBM1164..UTF8: New file.
4488 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4490 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
4491 * iconvdata/ibm1124.h: Likewise.
4492 * iconvdata/ibm1132.h: Likewise.
4493 * iconvdata/ibm1133.h: Likewise.
4494 * iconvdata/ibm1160.h: Likewise.
4495 * iconvdata/ibm1161.h: Likewise.
4496 * iconvdata/ibm1162.h: Likewise.
4497 * iconvdata/ibm856.h: Likewise.
4498 * iconvdata/ibm922.h: Likewise.
4499 * iconvdata/ibm930.h: Likewise.
4500 * iconvdata/ibm932.h: Likewise.
4501 * iconvdata/ibm933.h: Likewise.
4502 * iconvdata/ibm935.h: Likewise.
4503 * iconvdata/ibm937.h: Likewise.
4504 * iconvdata/ibm939.h: Likewise.
4505 * iconvdata/ibm943.h: Likewise.
4506 * iconvdata/ibm930.c: Pretty printing.
4507 * iconvdata/ibm937.c: Avoid access accross array boundary.
4509 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
4510 the current locale's codeset.
4511 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
4513 * iconv/iconv_prog.c: Pass empty strings as default value for to-
4514 and from-charset. Don't determine locale's charset here.
4516 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
4517 as the old _IO_flush_all but lock only if parameter is nonzero.
4518 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
4519 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
4520 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
4521 if libio is used [PR libc/2575].
4523 2001-11-28 Jakub Jelinek <jakub@redhat.com>
4525 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
4526 __signbitl): Only define for ISO C99.
4528 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
4530 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
4531 herrnop to NETDB_INTERNAL if we run out of buffer space.
4533 2001-11-28 Ulrich Drepper <drepper@redhat.com>
4535 * nss/nss_files/files-XXX.c (internal_getent): Correct input
4536 overflow test for platforms with signed char.
4537 Reported by Andrew Haley <aph@cambridge.redhat.com>.
4539 2001-11-28 Bruno Haible <bruno@clisp.org>
4541 * locale/programs/simple-hash.c (lookup_2): Remove function.
4542 (insert_entry_2): Call lookup instead of lookup_2.
4544 2001-03-04 Bruno Haible <bruno@clisp.org>
4546 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
4548 2001-10-31 Bruno Haible <bruno@clisp.org>
4550 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
4552 2001-03-21 Bruno Haible <bruno@clisp.org>
4554 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
4555 chokes on empty macro arguments.
4556 * intl/plural.y: Add #pragma for alloca on AIX 3.
4558 2001-11-27 Ulrich Drepper <drepper@redhat.com>
4560 * intl/dcigettext.c (guess_category_value): Only implement for
4561 glibc. Otherwise rely on function _nl_locale_name which isn't
4562 present in the glibc sources.
4564 2001-09-24 Bruno Haible <bruno@clisp.org>
4566 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
4567 transliteration when building on a glibc system but outside glibc.
4569 2001-09-22 Bruno Haible <bruno@clisp.org>
4571 * intl/plural-eval.c: New file, extracted from dcigettext.c.
4572 * intl/dcigettext.c (plural_eval): Remove function, moved to
4574 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
4575 Include plural-eval.c.
4577 2001-09-22 Bruno Haible <bruno@clisp.org>
4579 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
4580 don't start with a digit; nplurals must be positive.
4582 2001-09-02 Bruno Haible <bruno@clisp.org>
4584 * intl/plural-exp.h: New file, extracted from gettextP.h.
4585 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
4586 * intl/gettextP.h (struct expression, struct parse_args,
4587 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
4588 * intl/loadmsgcat.c: Include plural-exp.h.
4589 (PLURAL_PARSE): Move macro to plural-exp.h.
4590 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
4592 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
4593 EXTRACT_PLURAL_EXPRESSION.
4594 (_nl_unload_domain): Update.
4595 * intl/dcigettext.c: Include plural-exp.h.
4596 * intl/plural.y: Include plural-exp.h, not gettextP.h.
4597 (FREE_EXPRESSION): Move macro to plural-exp.h.
4598 * intl/Makefile (routines): Add plural-exp.
4599 (distribute): Add plural-exp.h.
4601 2001-07-28 Bruno Haible <bruno@clisp.org>
4603 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
4604 isdigit, tolower argument to 'unsigned char'.
4605 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
4607 * intl/localealias.c (read_alias_file): Cast isspace argument to
4610 2001-10-20 Bruno Haible <bruno@clisp.org>
4612 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
4614 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
4615 with the variable 'index' in plural_lookup.
4616 * intl/l10nflist.c (strchr): Likewise.
4617 * intl/localealias.c (strchr): Likewise.
4619 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
4620 * intl/bindtextdom.c: Likewise.
4621 * intl/dcigettext.c: Likewise.
4622 * intl/dgettext.c: Likewise.
4623 * intl/dngettext.c: Likewise.
4624 * intl/explodename.c: Likewise.
4625 * intl/finddomain.c: Likewise.
4626 * intl/gettext.c: Likewise.
4627 * intl/l10nflist.c: Likewise.
4628 * intl/loadmsgcat.c: Likewise.
4629 * intl/localealias.c: Likewise.
4630 * intl/ngettext.c: Likewise.
4631 * intl/textdomain.c: Likewise.
4632 * intl/gettext.h: Assume <limits.h> exists.
4634 2001-11-27 Ulrich Drepper <drepper@redhat.com>
4636 * stdio-common/Makefile (tests): Add scanf11.
4637 * stdio-common/scanf11.c: New file.
4639 2001-11-26 Ulrich Drepper <drepper@redhat.com>
4641 * version.h (RELEASE): Define as development.
4642 (VERSION): Set to 2.2.90.
4644 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
4646 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
4647 * nis/nss_nis/nis-grp.c: Likewise.
4648 * nis/nss_nisplus/nisplus-grp.c: Likewise.
4650 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
4651 * nis/nss_nis/nis-pwd.c: Likewise.
4652 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
4654 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
4655 * nis/nss_nisplus/nisplus-parser.c: Likewise.
4656 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4658 * nscd/grpcache.c: Use strtoul instead of atol.
4659 * nscd/pwdcache.c: Likewise.
4660 * nss/getent.c: Likewise.
4662 2001-11-27 Paul Eggert <eggert@twinsun.com>
4664 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4665 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4667 2001-11-19 Bruno Haible <bruno@clisp.org>
4669 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
4671 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
4672 improves the quality of the hash function, especially for short
4675 2001-11-26 Ulrich Drepper <drepper@redhat.com>
4677 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
4678 are found call conv_error and not input_error [PR libc/2669].
4680 * math/bits/mathcalls.h: Mark ceil and floor as const.
4681 Reported by David Mosberger.
4683 2001-11-21 Jim Meyering <meyering@lucent.com>
4685 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
4686 Define to be __-prefixed.
4687 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
4689 2001-11-26 Andreas Jaeger <aj@suse.de>
4691 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
4694 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
4696 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
4699 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
4700 unused variables. Fix threshold for returning 1.0.
4702 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
4705 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
4706 remove unused variables.
4708 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
4710 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
4711 include local math header files.
4713 2001-11-22 Andreas Jaeger <aj@suse.de>
4715 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
4718 2001-11-21 Andreas Jaeger <aj@suse.de>
4720 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
4722 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
4725 2001-11-15 Andreas Jaeger <aj@suse.de>
4727 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
4728 compilers that support it.
4730 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
4731 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4732 * stdlib/stdlib.h: Likewise.
4734 2001-11-17 Ulrich Drepper <drepper@redhat.com>
4736 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
4737 statement with gotos.
4738 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
4740 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
4742 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
4744 2001-11-15 Ulrich Drepper <drepper@redhat.com>
4746 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
4748 2001-10-02 Jakub Jelinek <jakub@redhat.com>
4749 H.J. Lu <hjl@gnu.org>
4751 * Versions.def (libc): Add GCC_3.0.
4752 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
4753 if gcc supports this flag.
4754 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
4755 (gcc3): Allow glibc to be compiled with gcc 3.x.
4756 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
4757 * config.make.in (static-libgcc, unwind-find-fde): Add.
4758 * Makerules (build-shlib-helper, build-module-helper): Use it.
4759 * scripts/versions.awk: Make sure GLIBC_ versions come first.
4760 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
4762 (_fini): Call __deregister_frame_info_bases if
4763 __register_frame_info_bases was used to register.
4764 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
4766 (__register_frame_info_bases, __register_frame_info_table_bases,
4767 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
4768 * elf/Makefile (routines): Add unwind-dw2-fde.
4769 (shared-only-routines): Add unwind-dw2-fde.
4770 * sysdeps/alpha/gccframe.h: New file.
4771 * sysdeps/arm/gccframe.h: New file.
4772 * sysdeps/generic/framestate.c: New file.
4773 * sysdeps/generic/dwarf2.h: New file.
4774 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
4775 * sysdeps/generic/unwind-dw2-fde.c: New file.
4776 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
4777 * sysdeps/generic/unwind-dw2-fde.h: New file.
4778 * sysdeps/generic/unwind-dw2.c: New file.
4779 * sysdeps/generic/unwind-pe.h: New file.
4780 * sysdeps/generic/unwind.h: New file.
4781 * sysdeps/hppa/gccframe.h: New file.
4782 * sysdeps/i386/gccframe.h: New file.
4783 * sysdeps/m68k/gccframe.h: New file.
4784 * sysdeps/mips/gccframe.h: New file.
4785 * sysdeps/powerpc/gccframe.h: New file.
4786 * sysdeps/s390/gccframe.h: New file.
4787 * sysdeps/sh/gccframe.h: New file.
4788 * sysdeps/sparc/gccframe.h: New file.
4789 * sysdeps/vax/gccframe.h: New file.
4790 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4791 Set on all architectures except ia64.
4792 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
4794 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
4795 __deregister_frame_info): Move to elf/Versions.
4796 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
4797 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
4798 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
4799 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
4800 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
4801 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
4802 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
4803 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
4804 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
4805 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
4806 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4807 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4808 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4809 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4810 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4811 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4812 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4813 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4815 2001-11-15 Jeff Law <law@redhat.com>
4817 * posix/regex.c (uintptr_t): Do not provide a definition if the
4818 system provided one.
4820 2001-11-13 Roland McGrath <roland@frob.com>
4822 * stdio-common/tmpfile.c: Moved to ...
4823 * sysdeps/generic/tmpfile.c: ... here.
4824 * sysdeps/mach/hurd/tmpfile.c: New file.
4826 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
4827 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
4828 (fopenport): Define as weak alias.
4830 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
4831 * libio/libioP.h: ... to here.
4833 2001-11-12 Ulrich Drepper <drepper@redhat.com>
4835 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
4836 program header twice. Construct list with the needed information.
4838 2001-11-10 Ulrich Drepper <drepper@redhat.com>
4840 * po/ca.po: Update from translation team.
4842 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
4843 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
4844 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
4845 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4847 2001-11-10 Andreas Jaeger <aj@suse.de>
4849 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
4850 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4851 Contributed by Stephen L Moshier <moshier@mediaone.net>.
4853 2001-11-09 Ulrich Drepper <drepper@redhat.com>
4855 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
4857 * elf/dl-load.c (is_dst): New function.
4858 (_dl_dst_count): Use is_dst to check for DST variable.
4859 (_dl_dst_substitute): Likewise.
4861 2001-11-09 Roland McGrath <roland@frob.com>
4863 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
4864 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
4865 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
4866 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
4867 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
4868 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
4869 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
4870 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
4871 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
4872 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
4873 * sysdeps/mach/hurd/powerpc/Dist: New file.
4875 * hurd/privports.c (__get_privileged_ports):
4876 Only contact the proc server if necessary for this call.
4877 Suggested by Neal H Walfield <neal@cs.uml.edu>.
4878 Check error return for mach_port_mod_refs.
4880 2001-11-09 Andreas Schwab <schwab@suse.de>
4882 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
4884 2001-11-09 Ulrich Drepper <drepper@redhat.com>
4886 * elf/dl-load.c (lose): Remove some unnecessary code. The new
4887 object is always the last in the list.
4888 (_dl_map_object_from_fd): Delete code to remove from object list
4889 when DF_1_NOOPEN is seen. This is done in lose.
4891 2001-11-08 Ulrich Drepper <drepper@redhat.com>
4893 * elf/dl-object.c (_dl_new_object): Various small optimizations.
4895 2001-11-07 Ulrich Drepper <drepper@redhat.com>
4897 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
4898 HWCAP_CHECK macro code.
4900 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
4901 Now returns MAP_FAILED on error.
4902 * elf/rtld.c: Adjust caller.
4903 * sysdeps/generic/dl-cache.c: Likewise.
4904 * sysdeps/generic/ldsodefs.h: Adjust description.
4906 * elf/dl-version.c (match_symbol): Optimize error handling for size.
4907 (_dl_check_map_versions): Likewise.
4909 2001-11-06 Ulrich Drepper <drepper@redhat.com>
4911 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
4912 _dl_signal_error directly, always use lose. Set fd to -1 after
4914 (lose): Don't call close if fd == -1.
4916 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
4918 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
4919 Also fix typo @code {mbsinit} to @code{mbsinit}.
4921 2001-11-06 Ulrich Drepper <drepper@redhat.com>
4923 * elf/dl-profile.c: Replace state variable with simple flag named
4924 running. Remove commented-out code.
4926 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
4927 (_dl_init_paths): Likewise.
4928 (_dl_map_object_from_fd): Likewise.
4929 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4931 2001-11-06 Roland McGrath <roland@frob.com>
4933 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
4934 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
4936 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
4937 sysdeps/powerpc/elf/sysdep.h.
4938 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
4940 2001-11-05 Ulrich Drepper <drepper@redhat.com>
4942 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
4944 (process_envvars): Some more optimizations.
4945 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
4947 * elf/elf.h: Add dynamic tag definitions for prelinking.
4949 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
4950 Rewrite code to remove environment varables for SUID binaries.
4951 Small optimization in LD_PROFILE handling.
4952 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
4954 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4956 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
4958 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
4959 strings. Change type of second parameter.
4960 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
4963 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
4965 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
4967 * manual/string.texi: Fix typos.
4968 * manual/examples/argp-ex2.c: Likewise.
4970 2001-11-05 Roland McGrath <roland@frob.com>
4972 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
4973 the more-specific unix/sysv/linux/powerpc file and breaks everything.
4974 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
4975 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
4976 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
4977 here, put under [__ELF__].
4979 2001-11-05 Ulrich Drepper <drepper@redhat.com>
4981 * manual/charset.texi: Extensive editing work.
4982 * manual/nss.texi: Likewise.
4983 Changes by Dennis Grace <dgrace@us.ibm.com>.
4985 2001-11-04 Roland McGrath <roland@frob.com>
4987 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
4988 parameter to dir_mkfile.
4990 2001-11-02 Jakub Jelinek <jakub@redhat.com>
4992 * string/bits/string2.h (__strndup): If n is smaller than len, set
4994 * string/tester.c (test_strndup): New function.
4997 2001-11-01 Ulrich Drepper <drepper@redhat.com>
4999 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
5001 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
5002 * scripts/cpp: New file.
5004 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
5005 for rtld_search_dirs content. Minor optimizations.
5007 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5009 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
5010 avoiding unnecessary duplication.
5012 2001-10-31 Jakub Jelinek <jakub@redhat.com>
5014 * elf/dl-load.c (_dl_map_object): If library was found using
5015 LD_LIBRARY_PATH, don't try RUNPATH list.
5017 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
5019 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
5020 Correct second argument of register_dump call.
5021 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
5024 2001-10-31 Ulrich Drepper <drepper@redhat.com>
5026 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
5028 * iconvdata/TESTS: Likewise.
5029 * iconvdata/gconv-modules: Likewise.
5030 * iconvdata/ibm1132.c: New file.
5031 * iconvdata/ibm1132.h: New file.
5032 * iconvdata/ibm1133.c: New file.
5033 * iconvdata/ibm1133.h: New file.
5034 * iconvdata/ibm1162.c: New file.
5035 * iconvdata/ibm1162.h: New file.
5036 * iconvdata/testdata/IBM1132: New file.
5037 * iconvdata/testdata/IBM1132..UTF8: New file.
5038 * iconvdata/testdata/IBM1133: New file.
5039 * iconvdata/testdata/IBM1133..UTF8: New file.
5040 * iconvdata/testdata/IBM1162: New file.
5041 * iconvdata/testdata/IBM1162..UTF8: New file.
5042 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
5044 * string/string.h: Fix typo in comment.
5045 * wcsmbs/wchar.h: Likewise.
5047 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
5049 * manual/getopt.texi (getopt_long, getopt_long_only): Include
5050 const in type of longopts parameter.
5052 2001-10-29 Andreas Jaeger <aj@suse.de>
5054 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
5056 2001-10-29 Kevin Ryde <user42@zip.com.au>
5058 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
5059 output, clarify `#' behaviour on 0.
5060 (Floating-Point Conversions): Clarify that %g only uses %e when
5061 the exponent would be greater than 1.
5063 2001-10-28 Roland McGrath <roland@frob.com>
5065 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
5066 * sysdeps/mach/powerpc/machine-sp.h: New file.
5067 * sysdeps/mach/powerpc/sysdep.h: New file.
5068 * sysdeps/mach/powerpc/thread_state.h: New file.
5070 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
5071 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
5072 expect to need the same thing on every platform.
5074 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
5075 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
5077 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
5078 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
5079 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
5080 Move all these assembly-related definitions to ...
5081 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
5083 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
5084 by Peter Bruin <pjbruin@dds.nl>.
5086 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
5087 packing results for a `poll' call.
5089 2001-10-26 Ulrich Drepper <drepper@redhat.com>
5091 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
5093 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
5096 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5098 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
5100 2001-10-24 H.J. Lu <hjl@gnu.org>
5102 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
5103 Use __BEGIN_DECLS/__END_DECLS around prototypes.
5104 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
5106 2001-10-21 Jim Meyering <meyering@lucent.com>
5108 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
5109 this code would end up calling gettext even in packages built
5111 * posix/getopt.c (_): Likewise.
5112 * posix/regex.c (_): Likewise.
5114 2001-10-26 Ulrich Drepper <drepper@redhat.com>
5116 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
5118 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
5119 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
5121 2001-10-19 Jakub Jelinek <jakub@redhat.com>
5123 * misc/sys/cdefs.h (__attribute_used__): Define.
5124 * elf/rtld.c (_dl_start): Add __attribute_used__.
5125 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
5127 2001-10-25 Andreas Schwab <schwab@suse.de>
5129 * stdlib/a64l.c: Expect least significant digit first.
5130 * stdlib/l64a.c: Produce least significant digit first.
5131 * stdlib/Makefile (tests): Add test-a64l.
5132 * stdlib/test-a64l.c: New file.
5133 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
5135 2001-10-21 Ulrich Drepper <drepper@redhat.com>
5137 * po/sk.po: Update from translation team.
5139 2001-10-18 Ulrich Drepper <drepper@redhat.com>
5141 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
5143 2001-10-18 Andreas Schwab <schwab@suse.de>
5145 * math/libm-test.inc (print_ulps): Print ulp values rounded to
5147 (print_function_ulps): Likewise.
5148 (print_complex_function_ulps): Likewise.
5149 (print_max_error): Likewise.
5150 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
5152 2001-10-16 Andreas Schwab <schwab@suse.de>
5154 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
5157 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
5158 BSD_SETJMP or BSD__SETJMP is defined, resp.
5159 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
5160 a tail call to __sigsetjmp that would require extending the
5162 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5163 * sysdeps/m68k/bsd-setjmp.S: Deleted.
5164 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
5165 Reported by Jes Sorensen <jes@trained-monkey.org>.
5167 2001-10-16 Andreas Jaeger <aj@suse.de>
5169 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
5170 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
5173 2001-10-15 Ulrich Drepper <drepper@redhat.com>
5175 * po/ca.po: New file. Contributed by the translation team.
5177 2001-10-15 Ralf Baechle <ralf@gnu.org>
5179 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
5180 a varargs prototype. Remove dependency from kernel header files.
5182 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
5183 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
5185 2001-10-14 Ulrich Drepper <drepper@redhat.com>
5187 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
5188 to generate hexadecimal identifier.
5189 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
5191 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
5193 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
5195 2001-10-14 Ulrich Drepper <drepper@redhat.com>
5197 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
5198 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
5199 Contributed by Stephen L Moshier <moshier@mediaone.net>.
5201 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
5202 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5203 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
5204 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
5205 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
5206 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
5208 * timezone/africa: Update from tzdata2001d.
5209 * timezone/asia: Likewise.
5210 * timezone/australasia: Likewise.
5211 * timezone/backward: Likewise.
5212 * timezone/europe: Likewise.
5213 * timezone/leapseconds: Likewise.
5214 * timezone/northamerica: Likewise.
5215 * timezone/southamerica: Likewise.
5216 * timezone/zone.tab: Likewise.
5218 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
5220 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
5221 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
5223 2001-10-12 Ulrich Drepper <drepper@redhat.com>
5225 * elf/elf.h (PT_TLS): New definition.
5227 2001-10-10 Jeff Bailey <jbailey@nisa.net>
5229 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
5232 2001-10-07 Roland McGrath <roland@frob.com>
5234 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
5236 2001-10-10 Ulrich Drepper <drepper@redhat.com>
5238 * elf/elf.h: Add more ELFOSABI_* constants.
5240 2001-10-04 Ben Collins <bcollins@debian.org>
5242 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
5243 decleration of __need_wchar_t.
5245 2001-10-03 Jakub Jelinek <jakub@redhat.com>
5247 * string/bits/string2.h (__strsep_g): Add prototype.
5249 * string/Versions (__strsep): Remove.
5250 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
5252 2001-10-07 Ulrich Drepper <drepper@redhat.com>
5254 * manua/llio.texi: Clarify file references added by mmap.
5255 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
5257 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
5259 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
5260 Add sc_loadrs and sc_rbs_bas to match current kernel.
5262 2001-09-27 Jakub Jelinek <jakub@redhat.com>
5264 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
5266 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
5268 2001-09-27 Jakub Jelinek <jakub@redhat.com>
5270 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
5271 object has been bumped because of relocation dependency, avoid
5272 duplicates in l_scope.
5273 (show_scope): Fix typos.
5274 * elf/Makefile: Add rules to build and run reldep6.
5275 * elf/reldep6.c: New file.
5276 * elf/reldep6mod0.c: New file.
5277 * elf/reldep6mod1.c: New file.
5278 * elf/reldep6mod2.c: New file.
5279 * elf/reldep6mod3.c: New file.
5280 * elf/reldep6mod4.c: New file.
5282 2001-09-26 Jakub Jelinek <jakub@redhat.com>
5284 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
5286 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
5287 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
5288 for non-lazy binding. Fix .plt[32768+] handling.
5289 (elf_machine_plt_value): Don't add addend.
5290 (elf_machine_rela): Call sparc64_fixup_plt instead of
5291 elf_machine_fixup_plt.
5292 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
5293 dynamic linker at 0xfffff800XXXXXXXX.
5295 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
5297 2001-09-28 Ulrich Drepper <drepper@redhat.com>
5299 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
5301 2001-09-25 Jakub Jelinek <jakub@redhat.com>
5303 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
5304 declare __cmsg_data field if its size would be bigger than 0.
5305 (CMSG_DATA): Adjust accordingly.
5306 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
5307 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
5308 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
5309 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
5310 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5311 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
5312 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5314 2001-09-25 Ulrich Drepper <drepper@redhat.com>
5316 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
5317 * iconvdata/testdata/IBM1160: New file.
5318 * iconvdata/testdata/IBM1160..UTF8: New file.
5319 * iconvdata/testdata/IBM1161: New file.
5320 * iconvdata/testdata/IBM1161..UTF8: New file.
5321 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5323 2001-09-24 Ulrich Drepper <drepper@redhat.com>
5325 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
5326 UL_SETFSIZE computations better.
5328 * rt/Makefile: Remove use of filter for librt again.
5330 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
5331 UL_SETFSIZE computations better.
5333 * string/Versions: Export __strsep for GLIBC_2.2.5.
5334 * string/bits/string2.h: Define all __STRING_INLINE functions if
5335 _FORCE_INLINES is defined.
5336 Use int instead of char of parameter types.
5337 (__strsep): Don't use __strsep_g. Don't define it.
5338 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
5339 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
5341 (__stpcpy_a_small): Renamed from __stpcpy_small.
5342 (__strcspn_c1): Don't define if _FORCE_INLINES.
5343 (__strspn_c1): Likewise.
5345 2001-09-22 Ben Collins <bcollins@debian.org>
5347 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
5348 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
5349 * sysdeps/ia64/bits/sigaction.h: Likewise.
5350 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
5352 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
5354 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
5356 2001-09-24 Jakub Jelinek <jakub@redhat.com>
5358 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
5360 2001-09-24 Ulrich Drepper <drepper@redhat.com>
5362 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
5364 2001-09-20 H.J. Lu <hjl@gnu.org>
5366 * include/dlfcn.h (__RTLD_SPROF): New definiton.
5367 * elf/dl-open.c (dl_open_worker): Return immediately after loading
5369 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
5370 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
5372 2001-09-20 H.J. Lu <hjl@gnu.org>
5374 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
5377 2001-09-22 Ulrich Drepper <drepper@redhat.com>
5379 * nss/getent.c: Accept -s parameter to overwrite rules in
5380 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
5382 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
5383 with as many ".0" as necessary to form a complete address
5384 inet_network understands.
5386 * nss/getent.c: Various cleanups. Use simpler and fewer function
5389 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5391 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
5393 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
5395 2001-09-22 Ulrich Drepper <drepper@redhat.com>
5397 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
5399 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
5400 * iconvdata/ibm1160.c: New file.
5401 * iconvdata/ibm1160.h: New file.
5402 * iconvdata/ibm1161.c: New file.
5403 * iconvdata/ibm1161.h: New file.
5404 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5406 2001-09-19 Jakub Jelinek <jakub@redhat.com>
5408 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
5409 difference between base address and first PT_LOAD's virtual address,
5410 not the base address.
5412 2001-09-11 Tom Rix <trix@redhat.com>
5414 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
5415 ifdef for __getopt_clean_environment.
5416 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
5418 2001-09-22 Andreas Jaeger <aj@suse.de>
5420 * elf/reldep4.c (main): Add proper prototype to fix warning.
5422 * elf/reldep5.c (main): Remove unused variable.
5424 * math/math_private.h: Add prototypes.
5426 2001-09-21 Andreas Jaeger <aj@suse.de>
5428 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
5429 * sysdeps/x86_64/Dist: New file.
5430 * sysdeps/x86_64/soft-fp/Dist: New file.
5432 * sysdeps/gnu/Dist: Remove eval.c.
5434 2001-09-20 Ulrich Drepper <drepper@redhat.com>
5436 * malloc/memusage.c (realloc): Don't count already allocated
5438 (me): Always use dlsym() to find the real implementations.
5440 * malloc/memusage.sh: Make -n option actually do something.
5442 2001-09-20 Andreas Jaeger <aj@suse.de>
5444 * elf/elf.h (R_390_NUM): Correct value.
5446 * Versions.def: Add missing versions 2.2.3 for libthread_db and
5449 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
5450 for x86-64, install x86-64 into */lib64.
5452 * shlib-versions: Add x86-64.
5454 * elf/elf.h: Add x86-64 relocations.
5456 2001-09-19 Ulrich Drepper <drepper@redhat.com>
5458 * po/fr.po: Update from translation team.
5460 2001-09-19 Andreas Jaeger <aj@suse.de>
5462 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
5463 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
5464 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
5465 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
5466 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
5467 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
5468 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
5469 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
5470 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
5471 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
5472 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
5473 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
5474 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
5475 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
5476 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
5477 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
5478 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
5479 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
5480 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
5481 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
5482 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
5483 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
5484 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
5485 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
5486 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
5487 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
5488 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
5489 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
5490 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
5491 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
5492 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
5493 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
5494 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
5495 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
5496 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
5497 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
5498 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
5499 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
5500 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
5501 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
5502 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
5503 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
5504 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
5505 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
5506 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
5507 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
5508 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
5509 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
5510 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
5511 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
5512 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
5513 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
5514 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
5515 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
5516 * sysdeps/unix/x86_64/sysdep.S: New file.
5517 * sysdeps/unix/x86_64/sysdep.h: New file.
5518 * sysdeps/x86_64/Implies: New file.
5519 * sysdeps/x86_64/Makefile: New file.
5520 * sysdeps/x86_64/Versions: New file.
5521 * sysdeps/x86_64/__longjmp.S: New file.
5522 * sysdeps/x86_64/abort-instr.h: New file.
5523 * sysdeps/x86_64/atomicity.h: New file.
5524 * sysdeps/x86_64/bits/endian.h: New file.
5525 * sysdeps/x86_64/bits/setjmp.h: New file.
5526 * sysdeps/x86_64/bits/string.h: New file.
5527 * sysdeps/x86_64/bp-asm.h: New file.
5528 * sysdeps/x86_64/bsd-_setjmp.S: New file.
5529 * sysdeps/x86_64/bsd-setjmp.S: New file.
5530 * sysdeps/x86_64/dl-machine.h: New file.
5531 * sysdeps/x86_64/elf/initfini.c: New file.
5532 * sysdeps/x86_64/elf/start.S: New file.
5533 * sysdeps/x86_64/ffs.c: New file.
5534 * sysdeps/x86_64/ffsll.c: New file.
5535 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
5536 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
5537 * sysdeps/x86_64/fpu/e_acosl.c: New file.
5538 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
5539 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
5540 * sysdeps/x86_64/fpu/e_expl.c: New file.
5541 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
5542 * sysdeps/x86_64/fpu/e_log10l.S: New file.
5543 * sysdeps/x86_64/fpu/e_log2l.S: New file.
5544 * sysdeps/x86_64/fpu/e_logl.S: New file.
5545 * sysdeps/x86_64/fpu/e_powl.S: New file.
5546 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
5547 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
5548 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
5549 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
5550 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
5551 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
5552 * sysdeps/x86_64/fpu/fegetenv.c: New file.
5553 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
5554 * sysdeps/x86_64/fpu/fegetround.c: New file.
5555 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
5556 * sysdeps/x86_64/fpu/fesetenv.c: New file.
5557 * sysdeps/x86_64/fpu/fesetround.c: New file.
5558 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
5559 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
5560 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
5561 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
5562 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
5563 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
5564 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
5565 * sysdeps/x86_64/fpu/s_atanl.c: New file.
5566 * sysdeps/x86_64/fpu/s_cosl.S: New file.
5567 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
5568 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
5569 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
5570 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
5571 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
5572 * sysdeps/x86_64/fpu/s_logbl.c: New file.
5573 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
5574 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
5575 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
5576 * sysdeps/x86_64/fpu/s_rintl.c: New file.
5577 * sysdeps/x86_64/fpu/s_significandl.c: New file.
5578 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
5579 * sysdeps/x86_64/fpu/s_sinl.S: New file.
5580 * sysdeps/x86_64/fpu/s_tanl.S: New file.
5581 * sysdeps/x86_64/gmp-mparam.h: New file.
5582 * sysdeps/x86_64/hp-timing.c: New file.
5583 * sysdeps/x86_64/hp-timing.h: New file.
5584 * sysdeps/x86_64/htonl.S: New file.
5585 * sysdeps/x86_64/memusage.h: New file.
5586 * sysdeps/x86_64/setjmp.S: New file.
5587 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
5588 * sysdeps/x86_64/stackinfo.h: New file.
5589 * sysdeps/x86_64/sysdep.h: New file.
5590 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
5592 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
5595 2001-09-18 Ulrich Drepper <drepper@redhat.com>
5597 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
5598 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
5600 2001-09-18 Andreas Schwab <schwab@suse.de>
5602 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
5603 list, now that l_scope is a pointer.
5605 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
5608 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
5610 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
5611 (elf_machine_rela_relative): Add a missing declaration.
5613 2001-09-18 Jakub Jelinek <jakub@redhat.com>
5615 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
5616 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
5617 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
5618 ldd-rewrite scripts.
5620 2001-09-18 Ulrich Drepper <drepper@redhat.com>
5622 * elf/ldd.bash.in: Update copyright message.
5624 2001-09-17 H.J. Lu <hjl@gnu.org>
5626 * hurd/hurdmalloc.c (bcopy): Removed.
5627 (realloc): Replace bcopy with memcpy.
5628 * hurd/path-lookup.c (file_name_path_scan): Likewise.
5629 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
5630 * sunrpc/rpcinfo.c (pmapdump): Likewise.
5632 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
5633 (gethostbyaddr): Likewise.
5634 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
5636 2001-09-18 Ulrich Drepper <drepper@redhat.com>
5638 * sysdeps/gnu/eval.c: Removed.
5640 2001-09-18 Andreas Jaeger <aj@suse.de>
5642 * sysdeps/i386/fpu/s_logbl.S: Move to ...
5643 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
5645 * sysdeps/i386/fpu/s_rintl.S: Move to ...
5646 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
5648 * sysdeps/i386/fpu/s_significandl.S: Move to ...
5649 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
5651 2001-09-16 Ulrich Drepper <drepper@redhat.com>
5653 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5656 2001-09-14 H.J. Lu <hjl@gnu.org>
5658 * sysdeps/mips/fpu/libm-test-ulps: Updated.
5660 2001-09-14 Ulrich Drepper <drepper@redhat.com>
5662 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
5663 Patch by Florian La Roche <laroche@redhat.com>.
5665 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
5667 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
5670 2001-09-14 Andreas Schwab <schwab@suse.de>
5672 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
5673 Sumner <bls@sgi.com>.
5674 * posix/execlp.c: Likewise.
5676 2001-09-13 Jakub Jelinek <jakub@redhat.com>
5678 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
5679 is already found earlier in the search scope.
5681 2001-09-12 Jakub Jelinek <jakub@redhat.com>
5683 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
5686 2001-09-13 Ulrich Drepper <drepper@redhat.com>
5688 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
5690 2001-09-12 Ulrich Drepper <drepper@redhat.com>
5692 * config.h.in: Enforce optimization to be used.
5693 * Makeconfig (preprocess-versions): Define ASSEMBLER.
5694 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
5695 * posix/Makefile (annexc-CFLAGS): Define to -O.
5696 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
5698 2001-09-11 Ulrich Drepper <drepper@redhat.com>
5700 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
5701 Patch by Stephan Kulow.
5703 2001-09-08 Ben Collins <bcollins@debian.org>
5705 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
5706 usage of RESOLVE() (r_type, not reloc->r_type).
5708 2001-09-08 Ulrich Drepper <drepper@redhat.com>
5710 * elf/dl-object.c: Avoid allocating extra memory block for name.
5711 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
5712 allocated separately.
5713 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5715 2001-09-08 H.J. Lu <hjl@gnu.org>
5717 * po/zh_TW.po: Fix a typo.
5719 2001-09-07 Tom Rix <trix@redhat.com>
5721 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
5723 2001-08-26 Tom Rix <trix@redhat.com>
5725 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
5726 command line options.
5727 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
5728 * sysdeps/unix/sysv/aix/start.c: Removed.
5729 * sysdeps/unix/sysv/aix/start-libc.c: New file.
5730 * sysdeps/unix/sysv/aix/init-first.c: New file.
5731 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
5733 2001-09-08 Ben Collins <bcollins@debian.org>
5735 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
5736 * sysdeps/generic/dl-machine.h: Likewise.
5737 * sysdeps/hppa/dl-fptr.c: Likewise.
5738 * sysdeps/ia64/dl-fptr.c: Likewise.
5739 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5740 * sysdeps/mips/dl-machine.h: Likewise.
5741 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5742 * sysdeps/powerpc/dl-machine.c: Likewise.
5744 2001-09-07 Ben Collins <bcollins@debian.org>
5746 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
5748 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
5750 2001-09-08 Ulrich Drepper <drepper@redhat.com>
5752 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
5753 dependencies if necessary.
5755 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
5756 loaded directly) determine length if l_initfini list by iterating
5757 over its elements. Minor optimizations.
5758 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
5759 for dependency objects.
5760 If object was already loaded check whether any of the dependencies
5761 is already on the relocation dependency list. If yes, remove the
5762 latter. Minor optimizations.
5763 * elf/dl-lookup.c (add_dependency): Add check for self reference of
5764 maps here. Search l_initfini list only if the object was loaded
5765 directly and not only as a dependency.
5766 (_dl_lookup_symbol): Add relocation dependency also if object
5767 is not in global scope. Remove test for self-reference here.
5768 (_dl_lookup_versioned_symbol): Likewise.
5769 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
5770 element of first name record.
5771 * elf/loadtest.c: Add some more test to recognize early if an object
5773 * elf/Makefile: Add rules to build and run reldep5.
5774 * elf/reldep5.c: New file.
5775 * elf/reldepmod5.c: New file.
5776 * elf/reldepmod6.c: New file.
5778 * elf/reldep2.c: Fix typo.
5780 2001-09-07 Ulrich Drepper <drepper@redhat.com>
5782 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
5783 elements. Change l_scope to be a pointer only.
5784 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
5785 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
5786 here add searchlist of newly open file to the dependency's scope.
5787 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
5788 only searchlist from its scope. Free own scope array if necessary.
5789 * elf/Makefile (tests): Add dblload and dblunload now.
5791 2001-09-06 Andreas Jaeger <aj@suse.de>
5793 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
5796 2001-09-05 Ulrich Drepper <drepper@redhat.com>
5798 * elf/Makefile: Add rules to build new tests. Don't run them yet since
5800 * elf/dblload.c: New file.
5801 * elf/dblloadmod1.c: New file.
5802 * elf/dblloadmod2.c: New file.
5803 * elf/dblloadmod3.c: New file.
5804 * elf/dblunload.c: New file.
5806 2001-09-04 Richard Henderson <rth@redhat.com>
5808 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
5809 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
5811 2001-09-04 Ulrich Drepper <drepper@redhat.com>
5813 Correct very misleading message for error in failed runtime relocation.
5814 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
5816 (_dl_signal_cerror): Likewise.
5817 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5818 * elf/dl-close.c: Likewise.
5819 * elf/dl-deps.c: Likewise.
5820 * elf/dl-load.c: Likewise.
5821 * elf/dl-lookup.c: Likewise.
5822 * elf/dl-open.c: Likewise.
5823 * elf/dl-reloc.c: Likewise.
5824 * elf/dl-sym.c: Likewise.
5825 * elf/dl-version.c: Likewise.
5826 * sysdeps/generic/dl-sysdep.c: Likewise.
5828 2001-09-04 Jakub Jelinek <jakub@redhat.com>
5830 * iconv/strtab.c (strtabinit): Initialize null Strent.
5831 (newstring): Move len == 0 handling...
5832 (strtabadd): ...here.
5833 If len == 1, return null Strent.
5834 When inserting a suffix of an existing string, check if
5835 it is not equal to some suffix already recorded.
5836 Copy left and right members over if adding longer string.
5838 2001-09-04 Jakub Jelinek <jakub@redhat.com>
5840 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
5842 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
5843 (__syscall_gethostname): Add prototype.
5845 2001-09-04 Ulrich Drepper <drepper@redhat.com>
5847 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
5849 2001-09-02 Ulrich Drepper <drepper@redhat.com>
5851 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
5853 2001-08-27 Roland McGrath <roland@frob.com>
5855 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
5856 short, copy that much into NAME anyway before returning error.
5858 2001-09-01 Richard Henderson <rth@redhat.com>
5860 * sysdeps/alpha/elf/Dist: Remove file.
5861 * sysdeps/alpha/elf/Makefile: Remove file.
5862 * sysdeps/alpha/elf/crtbegin.S: Remove file.
5863 * sysdeps/alpha/elf/crtend.S: Remove file.
5864 * sysdeps/alpha/elf/initfini.c: New file.
5866 2001-09-01 Mark Kettenis <kettenis@gnu.org>
5868 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
5869 * iconv/tst-iconv3.c: Likewise.
5871 2001-09-01 Jakub Jelinek <jakub@redhat.com>
5873 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
5875 2001-09-01 Ulrich Drepper <drepper@redhat.com>
5877 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
5879 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
5880 * iconv/iconv_prog.c (insert_cache): New function.
5881 (print_known_names): If cache is used call insert_cache to use the
5882 information from the cache [PR libc/2509].
5884 2001-08-31 Ulrich Drepper <drepper@redhat.com>
5886 * time/strptime.c (strptime_internal): Recognize 'l' format and
5887 handle it like 'I' for symmetry with strftime.
5889 2001-08-31 Richard Henderson <rth@redhat.com>
5891 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
5892 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
5893 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
5894 (print_statistics): Make scalar unsigned long long.
5895 * sysdeps/alpha/hp-timing.h: New file.
5897 2001-08-31 Jakub Jelinek <jakub@redhat.com>
5899 * stdio-common/perror.c (perror): Save errno early, pass it
5900 down to perror_internal.
5901 (perror_internal): Add errnum argument.
5903 2001-08-31 Jakub Jelinek <jakub@redhat.com>
5905 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
5906 Don't add old memory content for R_ALPHA_REFQUAD.
5908 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5910 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
5913 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
5914 instead of open, __close instead of close, __getpagesize instead
5917 * string/argz-stringify.c (__argz_stringify): Use __strnlen
5919 * include/string.h (strndupa): Redefine here to use __strnlen
5921 * string/strndup.c (__strndup): Use __strnlen not strnlen.
5923 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
5926 2001-08-30 Jakub Jelinek <jakub@redhat.com>
5928 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
5929 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
5930 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5931 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
5932 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
5933 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
5934 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
5936 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5938 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
5940 2001-08-30 Andreas Jaeger <aj@suse.de>
5942 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
5943 contributed Stephen L Moshier.
5945 2001-08-30 Jakub Jelinek <jakub@redhat.com>
5947 * sunrpc/etc.rpc (sgi_fam): Add.
5949 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5951 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
5953 2001-08-29 Ulrich Drepper <drepper@redhat.com>
5955 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
5956 first is from a previous call.
5957 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
5959 2001-08-29 Andreas Schwab <schwab@suse.de>
5961 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
5963 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5965 * config.make.in (INSTALL_SCRIPT): Define.
5966 * Makeconfig (INSTALL_SCRIPT): Define.
5967 * Makerules (do-install-script): New macro to install scripts using
5969 (install-bin-script): New rule to install scripts with
5971 (install-bin-script-nosubdir): New rule.
5972 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
5973 (distinfo-vars): Add $(install-bin-script).
5974 * Rules (others): Likewise.
5975 * Makefile (glibcbug): Install with install-bin-script.
5976 * debug/Makefile (xtrace): Likewise.
5977 (catchsegv): Likewise.
5978 * elf/Makefile (ldd): Likewise.
5979 * malloc/Makefile (mtrace): Likewise.
5980 * timezone/Makefile (tzselect): Likewise.
5982 2001-08-29 H.J. Lu <hjl@gnu.org>
5984 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
5985 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
5986 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
5988 2001-08-29 Andreas Schwab <schwab@suse.de>
5990 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
5992 2001-08-28 H.J. Lu <hjl@gnu.org>
5994 * Makeconfig (combreloc-LDFLAGS): New variable.
5995 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
5996 * config.make.in (have-z-combreloc): New variable.
5997 * configure.in: Substitute libc_cv_z_combreloc.
5999 2001-08-29 Ulrich Drepper <drepper@redhat.com>
6001 * po/sv.po: Update from translation team.
6002 * po/fr.po: Likewise.
6003 * po/da.po: Likewise.
6005 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6007 * Makerules: Fix a typo: MD% -> MD5.
6009 2001-08-28 Ulrich Drepper <drepper@redhat.com>
6011 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
6012 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
6014 2001-08-28 Andreas Jaeger <aj@suse.de>
6016 * manual/libc-texinfo.sh: Add entry about free manuals.
6018 * manual/contrib.texi (Contributors): Fix cross reference.
6020 * manual/libc.texinfo (Copying): Include freemanuals.
6022 * manual/Makefile (appendices): Add freemanuals.
6024 * manual/freemanuals.texi: New file.
6025 Patch by Brian Youmans <3diff@gnu.org>.
6027 * manual/libm-err-tab.pl: Pretty print more platforms, print a
6030 * manual/math.texi (Errors in Math Functions): Fix grammar, start
6031 table on separate page.
6032 Patch by Brian Youmans <3diff@gnu.org>.
6034 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6036 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
6037 the connection went down after we first used it try to connect
6038 again and resend the message before printing to the console.
6039 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
6041 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6043 * string/tst-strlen.c (main): Test strnlen (, -1) too.
6044 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
6047 2001-08-27 Ulrich Drepper <drepper@redhat.com>
6049 * iconv/strtab.c (searchstring): Use correct length for comparison.
6050 (strtabadd): Account total size correct if new string has old string as
6053 2001-08-27 Jakub Jelinek <jakub@redhat.com>
6055 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
6057 2001-08-27 Andreas Jaeger <aj@suse.de>
6059 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
6061 * math/libm-test.inc (j0_test): Add extra tests.
6062 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
6063 not x, in Hankel approximation.
6064 Patches by Stephen L Moshier.
6066 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6068 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
6071 * configure.in: Fix test for .rela.dyn section.
6073 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
6075 2001-08-26 Jakub Jelinek <jakub@redhat.com>
6077 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
6078 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
6079 Pass type_class to _dl_lookup_*.
6080 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
6081 Pass around just type_class instead of noexec, noplt pair.
6082 (_dl_lookup_versioned_symbol): Likewise.
6083 (_dl_lookup_symbol_skip): Pass around just type_class instead of
6085 (_dl_lookup_versioned_symbol_skip): Likewise.
6086 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
6087 * elf/do-lookup.h (do_lookup): Likewise.
6088 * include/link.h (struct link_map): Replace noexec and noplt fields
6089 in l_lookup_cache with type_class field.
6090 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
6091 ELF_RTYPE_CLASS_COPY): Define.
6092 Adjust prototypes for _dl_lookup_symbol and
6093 _dl_lookup_versioned_symbol.
6094 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
6095 elf_machine_lookup_noexec_p): Remove.
6096 (elf_machine_type_class): Define.
6097 * sysdeps/arm/dl-machine.h: Likewise.
6098 * sysdeps/hppa/dl-machine.h: Likewise.
6099 * sysdeps/cris/dl-machine.h: Likewise.
6100 * sysdeps/i386/dl-machine.h: Likewise.
6101 * sysdeps/ia64/dl-machine.h: Likewise.
6102 * sysdeps/m68k/dl-machine.h: Likewise.
6103 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6104 * sysdeps/mips/dl-machine.h: Likewise.
6105 * sysdeps/powerpc/dl-machine.h: Likewise.
6106 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6107 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6108 * sysdeps/sh/dl-machine.h: Likewise.
6109 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6110 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6112 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6114 * manual/message.texi (Advanced gettext functions): Change
6115 description of plural forms for Slovak.
6116 Reported by Marcel Telka <marcel@telka.sk>.
6118 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
6119 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
6121 2001-08-26 Jakub Jelinek <jakub@redhat.com>
6123 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
6124 typo. Patch by Florian La Roche <laroche@redhat.com>.
6126 2001-08-26 Ulrich Drepper <drepper@redhat.com>
6128 * include/link.h (struct link_map): Add l_lookup_cache element.
6129 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
6130 (RESOLVE_MAP): Likewise.
6131 (_dl_relocate_object): Remove cache initialization.
6132 * elf/dl-lookup.c: Rip out cache handling code.
6133 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
6136 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
6137 remove some __builtin_expect.
6138 (_dl_lookup_versioned_symbol): Likewise.
6140 * config.h.in: Add HAVE_Z_COMBRELOC.
6141 * configure.in: Add test for -z combreloc.
6143 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
6144 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
6145 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
6146 case to almost no code.
6148 2001-08-25 Ulrich Drepper <drepper@redhat.com>
6150 * po/tr.po: Update from translation team.
6152 2001-08-24 Andreas Jaeger <aj@suse.de>
6154 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
6157 2001-08-24 Ulrich Drepper <drepper@redhat.com>
6159 * elf/rtld.c (print_statistics): Printf % after percent values.
6160 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
6162 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
6163 don't have to compute the hash value and initialize current_value.
6164 Move reference_name variable to where it is needed.
6165 (_dl_lookup_versioned_symbol): Likewise.
6167 2001-08-24 Roland McGrath <roland@frob.com>
6169 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
6170 Just test that strerror returns non-null for a few errno codes.
6172 2001-08-23 Roland McGrath <roland@frob.com>
6174 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
6175 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
6177 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
6179 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
6182 2001-08-24 Ulrich Drepper <drepper@redhat.com>
6184 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
6187 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
6188 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
6190 * elf/rtld.c: Include <sys/param.h>.
6191 * elf/dl-reloc.c: Likewise.
6193 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6195 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
6196 empty to prevent junk from being generated.
6197 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
6199 2001-08-24 Jakub Jelinek <jakub@redhat.com>
6201 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
6202 records. Rename endrel to relative, initialize it to r, and use it
6203 in elf_machine_rel_relative calls. Point r after relative relocs.
6205 2001-08-24 Ulrich Drepper <drepper@redhat.com>
6207 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
6210 2001-08-24 Jakub Jelinek <jakub@redhat.com>
6212 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
6213 necessary. Undefine newly defined macros at the end.
6214 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
6215 Rename from elf_machine_rel_relative.
6216 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
6217 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
6218 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
6219 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
6221 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
6223 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
6225 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
6227 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
6228 Likewise. Fix argument types.
6229 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
6230 Likewise. Fix argument types.
6231 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
6233 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
6234 ElfW(Rel) in argument.
6235 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
6238 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
6240 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
6242 2001-08-24 Andreas Jaeger <aj@suse.de>
6244 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
6245 Stephen L Moshier <moshier@mediaone.net>.
6247 2001-08-24 Ulrich Drepper <drepper@redhat.com>
6249 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
6250 first if RELCOUNT is set.
6252 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
6253 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
6254 elf_machine_rel_relative.
6255 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
6256 Minor optimizations.
6257 * sysdeps/arm/dl-machine.h: Likewise.
6258 * sysdeps/cris/dl-machine.h: Likewise.
6259 * sysdeps/hppa/dl-machine.h: Likewise.
6260 * sysdeps/i386/dl-machine.h: Likewise.
6261 * sysdeps/ia64/dl-machine.h: Likewise.
6262 * sysdeps/m68k/dl-machine.h: Likewise.
6263 * sysdeps/mips/dl-machine.h: Likewise.
6264 * sysdeps/powerpc/dl-machine.h: Likewise.
6265 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6266 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6267 * sysdeps/sh/dl-machine.h: Likewise.
6268 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6269 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6271 2001-08-23 Roland McGrath <roland@frob.com>
6273 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
6275 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
6276 sysdeps/mach version. Implement counting ("recursive") mutexes
6277 on top of cthreads mutexes.
6278 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
6280 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
6281 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
6282 (__libc_cleanup_region_start, __libc_cleanup_region_end,
6283 __libc_clean_end): Define these to call the cleanup function after
6284 normal exit when they're supposed to.
6286 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
6287 Take new first arg DOIT, a boolean saying whether to really install
6288 any cleanup handler.
6289 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
6290 (__libc_cleanup_end): Likewise.
6291 * sysdeps/generic/bits/libc-lock.h: Same changes.
6292 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
6293 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
6294 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
6296 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
6297 * sysdeps/generic/bits/stdio-lock.h
6298 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
6300 2001-08-23 Jakub Jelinek <jakub@redhat.com>
6302 * elf/ldconfig.c (search_dir): Remove stale symlinks.
6304 2001-08-23 Jakub Jelinek <jakub@redhat.com>
6306 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
6307 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
6309 (_dl_lookup_versioned_symbol): Likewise.
6310 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
6312 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
6313 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
6314 (lookup_cache, lookup_cache_versioned): Add declarations.
6316 2001-08-23 Ulrich Drepper <drepper@redhat.com>
6318 * stdlib/tst-random.c (main): Swap parameters in fail call.
6319 Patch by Pete Bevin <pete@petebevin.com>.
6321 2001-08-23 Jakub Jelinek <jakub@redhat.com>
6323 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
6325 2001-08-23 Ulrich Drepper <drepper@redhat.com>
6327 * malloc/obstack.c: Indent preprocessor directives.
6328 Patch by Jim Meyering <meyering@ascend.com>.
6330 * po/ja.po: Update from translation team.
6332 2001-08-23 Roland McGrath <roland@frob.com>
6334 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
6336 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
6337 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
6339 2001-08-22 Roland McGrath <roland@frob.com>
6341 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
6342 __libc_lock_define_recursive.
6343 * elf/dl-open.c: Don't declare it here any more.
6344 * elf/dl-close.c: Likewise.
6345 * elf/dl-lookup.c: Likewise.
6346 * elf/dl-iteratephdr.c: Likewise.
6347 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
6348 __libc_lock_unlock_recursive.
6349 * elf/dl-close.c (_dl_close): Likewise
6350 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
6351 * elf/dl-open.c (_dl_open): Likewise
6353 * sysdeps/generic/bits/libc-lock.h
6354 (__libc_lock_define_recursive): New macro.
6355 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
6356 (_IO_lock_lock): Use __libc_lock_lock_recursive.
6357 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
6359 * conform/conformtest.pl (checknamespace): Sort the output list.
6361 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
6362 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
6363 definitions conditional on [__USE_XOPEN].
6365 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
6366 these unconditionally, not only use [__USE_BSD], so as to match
6367 the sysdeps/unix/sysv/linux files.
6369 2001-08-22 Ulrich Drepper <drepper@redhat.com>
6371 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
6374 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
6377 2001-08-22 Roland McGrath <roland@frob.com>
6379 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
6380 conditionalization of sa_handler/sa_sigaction member types to
6381 match the sysdeps/unix/sysv/linux file.
6383 2001-08-22 Ulrich Drepper <drepper@redhat.com>
6385 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
6386 symbol sizes a bit better.
6388 * sysdeps/ia64/strncpy.S: Complete rewrite.
6389 Contributed by Jakub Jelinek <jakub@redhat.com>.
6391 * string/stratcliff.c (main): Add strncpy test.
6393 2001-08-22 Roland McGrath <roland@frob.com>
6395 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
6396 and don't declare unsetenv or _environ directly.
6397 (unsetenv): Return int, not void. Use __environ instead of _environ.
6399 2001-08-01 Mark Kettenis <kettenis@gnu.org>
6401 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
6402 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
6403 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
6404 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
6405 test for cmsg struct size.
6407 2001-04-23 Paul Eggert <eggert@twinsun.com>
6409 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
6410 Rename __argc to ___argc in prototypes to avoid compatibility
6411 problems with systems that reserve the identifier "__argc".
6412 Similarly for __argv.
6414 2001-08-21 Roland McGrath <roland@frob.com>
6416 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
6418 * mach/Makefile (tests): Removed.
6419 * mach/hello.c: File removed.
6421 2001-08-22 Ulrich Drepper <drepper@redhat.com>
6423 * po/sv.po: Update from translation team.
6425 * stdio-common/vfscanf.c: Fix handling of %l[].
6426 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
6428 * libio/Makefile (tests): Add tst-sscanf.
6429 * libio/tst-sscanf.c: New file.
6431 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
6432 * malloc/mtrace.c (tr_where): dli_sname always points to a
6433 non-empty string if != NULL.
6434 Reported by Tim Janik <timj@gtk.org>.
6436 2001-08-22 Jakub Jelinek <jakub@redhat.com>
6438 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
6439 buf. Free resources on failure.
6440 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
6441 (makefd_xprt): Likewise.
6442 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
6443 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
6444 * sunrpc/auth_unix.c (authunix_create): Likewise.
6446 2001-08-21 Jakub Jelinek <jakub@redhat.com>
6448 * string/strnlen.c: Remove.
6449 * sysdeps/generic/strnlen.c: New file.
6450 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
6452 2001-08-21 Roland McGrath <roland@frob.com>
6454 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
6455 as a macro, not an extern inline function.
6457 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
6458 * Versions.def (libc): Add GLIBC_2.2.5 set.
6459 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
6460 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
6462 2001-08-20 Roland McGrath <roland@frob.com>
6464 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
6465 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
6467 2001-08-21 Ulrich Drepper <drepper@redhat.com>
6469 * string/bits/string2.h: Remove strnlen optimization here.
6470 * sysdeps/i386/i486/bits/string.h: Add it here.
6472 2001-08-21 Wolfram Gloger <wg@malloc.de>
6474 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
6476 2001-08-21 Ulrich Drepper <drepper@redhat.com>
6478 * po/gl.po: Update from translation team.
6480 2001-08-20 Ulrich Drepper <drepper@redhat.com>
6482 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
6483 * misc/err.c (convert_and_print): Likewise.
6485 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
6488 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6490 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
6491 change of the gregset_t type.
6492 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6494 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
6496 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
6498 2001-08-20 Ulrich Drepper <drepper@redhat.com>
6500 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
6502 * string/strnlen.c: Fix the implementation. We cannot use memchr.
6504 2001-08-18 Mark Kettenis <kettenis@gnu.org>
6506 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
6507 before calling the cthreads initialization code.
6509 2001-08-20 Ulrich Drepper <drepper@redhat.com>
6511 * argp/argp-help.c: Fix two problems introduced in last change.
6513 * include/dirent.h: Include <dirstream.h> first.
6515 2001-08-19 Ulrich Drepper <drepper@redhat.com>
6517 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
6519 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
6520 * sunrpc/xdr_rec.c: Likewise.
6521 * sunrpc/xdr_mem.c: Likewise.
6522 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
6523 * sunrpc/rpc_cmsg.c: Likewise.
6524 * sunrpc/getrpcport.c (getrpcport): Likewise.
6525 * sunrpc/clnt_simp.c (callrpc): Likewise.
6526 * sunrpc/clnt_gen.c (clnt_create): Likewise.
6527 * string/envz.c: Likewise.
6529 * po/ko.po: Update from translation team.
6531 * argp/argp-help.c: Handle wide oriented stderr stream.
6533 2001-08-18 Ulrich Drepper <drepper@redhat.com>
6535 * sysdeps/generic/strtol.c: Little optimizations. Add some
6538 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
6540 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
6541 * wcsmbs/wcwidth.c (wcwdith): Likewise.
6542 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
6544 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
6546 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
6548 * time/time.h (struct timespec): Use __time_t for tv_sec element.
6550 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
6551 wchar_t for function declarations and defintions.
6553 * misc/sys/select.h: Define __need_time_t before including <time.h>.
6554 Define suseconds_t if it hasn't happened yet.
6556 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
6558 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
6560 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
6563 * conform/data/stddef.h-data: Remove wint_t.
6565 * conform/conformtest.pl: Change namespace test to take #undef
6568 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
6570 * conform/data/sys/socket.h-data: Add sockatmark.
6572 2001-08-17 Ulrich Drepper <drepper@redhat.com>
6574 * io/fts.c: Update from recent BSD source.
6576 2001-08-17 Roland McGrath <roland@frob.com>
6578 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
6579 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
6582 2001-08-17 Ulrich Drepper <drepper@redhat.com>
6584 * locale/duplocale.c (__duplocale): Also initialize the special
6587 * conform/data/netdb.h-data: Adjust gai_strerror return type.
6589 2001-08-17 Andreas Jaeger <aj@suse.de>
6591 * misc/getpass.c: Include wchar.h for prototypes.
6592 * malloc/obstack.c: Likewise.
6594 2001-08-17 Ulrich Drepper <drepper@redhat.com>
6596 * sunrpc/svc_simple.c (universal): Use __write instead of write.
6598 * wcsmbs/wcscoll.c: Also define __wcscoll.
6599 * include/wchar.h: Declare __wcscoll.
6601 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
6602 * libio/vwprintf.c: Likewise.
6603 * libio/wprintf.c: Likewise.
6605 * iconv/gconv_cache.c: Use __munmap instead of munmap.
6607 2001-08-16 Ulrich Drepper <drepper@redhat.com>
6609 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6611 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6612 wcslen, and __wcscoll instead of wcscoll.
6614 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
6616 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
6617 __getuid instead of getuid.
6619 * stdio-common/perror.c (perror): Use __close instead of close.
6620 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6621 * libio/freopen.c (freopen): Likewise.
6622 * libio/freopen64.c (freopen64): Likewise.
6624 * libio/tst-ungetwc2.c (main): Define str const.
6626 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
6627 * libio/fwprintf.c: Also define __fwprintf.
6628 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
6629 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
6630 * assert/assert-perr.c: Likewise.
6631 * assert/assert.c: Likewise.
6632 * gmon/gmon.c: Likewise.
6633 * inet/rcmd.c: Likewise.
6634 * malloc/obstack.c: Likewise.
6635 * misc/err.c: Likewise.
6636 * misc/error.c: Likewise.
6637 * misc/getpass.c: Likewise.
6638 * posix/getopt.c: Likewise.
6639 * resolv/res_hconf.c: Likewise.
6640 * stdio-common/perror.c: Likewise.
6641 * stdio-common/psignal.c: Likewise.
6642 * stdlib/fmtmsg.c: Likewise.
6643 * sunrpc/auth_unix.c: Likewise.
6644 * sunrpc/clnt_perr.c: Likewise.
6645 * sunrpc/clnt_tcp.c: Likewise.
6646 * sunrpc/clnt_udp.c: Likewise.
6647 * sunrpc/clnt_unix.c: Likewise.
6648 * sunrpc/svc_simple.c: Likewise.
6649 * sunrpc/svc_tcp.c: Likewise.
6650 * sunrpc/svc_udp.c: Likewise.
6651 * sunrpc/svc_unix.c: Likewise.
6652 * sunrpc/xdr.c: Likewise.
6653 * sunrpc/xdr_array.c: Likewise.
6654 * sunrpc/xdr_rec.c: Likewise.
6655 * sunrpc/xdr_ref.c: Likewise.
6656 * sysdeps/generic/wordexp.c: Likewise.
6658 * po/it.po: Update from translation team.
6660 * misc/err.c: Handle wide oriented stderr stream.
6662 2001-08-14 Tom Rix <trix@redhat.com>
6664 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
6665 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
6667 2001-08-13 Tom Rix <trix@redhat.com>
6669 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
6670 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
6673 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
6675 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
6676 Store the access registers to the ucontext structure.
6677 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
6680 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
6681 Load the access registers from the ucontext structure.
6682 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
6685 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
6686 offsets to the new ucontext layout.
6687 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
6689 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
6690 of the ucontext structure.
6691 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6693 2001-08-15 Ulrich Drepper <drepper@redhat.com>
6695 * misc/error.c (error): Handle wide oriented stderr stream correctly.
6696 (error_at_line): Likewise.
6698 * stdio-common/perror.c (perror): Implement according to standard.
6699 The stream orientation must not be changed if the stream was not
6700 oriented before the call.
6701 * stdio-common/Makefile (tests): Add tst-perror.
6702 * stdio-common/tst-perror.c: New file.
6705 See ChangeLog.12 for earlier changes.