1 2000-07-31 Ulrich Drepper <drepper@redhat.com>
3 * iconvdata/gb18030.c: Don't map to and from positions in ISO
4 10646 which are not yet assigned.
5 Patch by wang shouhua <shouhuawang@redflag-linux.com>.
7 2000-07-31 Andreas Jaeger <aj@suse.de>
9 * inet/Versions: Remove getipnodebyaddr and friends from
12 * resolv/netdb.h: Remove getipnodebyaddr and friends.
14 2000-07-30 Bruno Haible <haible@clisp.cons.org>
16 * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
17 ch >= 0x81 && ch2 < 0x40 as invalid.
19 2000-07-30 Bruno Haible <haible@clisp.cons.org>
21 * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
22 (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
24 2000-07-30 Bruno Haible <haible@clisp.cons.org>
26 * iconvdata/johab.c (BODY for TO_LOOP): After calling
27 ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
29 2000-07-30 Bruno Haible <haible@clisp.cons.org>
31 * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
33 (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
35 2000-07-30 Bruno Haible <haible@clisp.cons.org>
37 * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
39 2000-07-30 Bruno Haible <haible@clisp.cons.org>
41 * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
42 (from_ucs4): Change values of U+00A4 and U+00ED.
43 (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
45 2000-07-30 Bruno Haible <haible@clisp.cons.org>
47 * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
48 (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
50 2000-07-30 Bruno Haible <haible@clisp.cons.org>
52 * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
53 * iconvdata/isiri-3342.h: New file.
54 * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
57 2000-07-30 Bruno Haible <haible@clisp.cons.org>
59 * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
60 (utf8_encode): Use simple shifts instead. Fix return value.
62 2000-07-31 Ulrich Drepper <drepper@redhat.com>
64 * timezone/private.h: Update from tzcode2000e.
65 * timezone/asia: Update from tzdata2000e.
66 * timezone/australasia: Likewise.
67 * timezone/europe: Likewise.
68 * timezone/northamerica: Likewise.
69 * timezone/zone-tab: Likewise.
71 2000-07-30 Ralf Baechle <ralf@gnu.org>
73 * sysdeps/unix/sysv/linux/mips/bits/sigstack.h: New file. On MIPS
74 the order of struct sigaltstack members is different.
76 2000-07-26 Philip Blundell <philb@gnu.org>
78 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
80 2000-07-29 Ulrich Drepper <drepper@redhat.com>
82 * locale/langinfo.h: Add entries for extra tables in CTYPE data.
83 * locale/programs/ld-ctype.c: Adjust for this.
85 * locale/programs/ld-collate.c: Add more alignment checks.
86 * locale/string/strcoll.c: Likewise.
88 2000-07-30 Mark Kettenis <kettenis@gnu.org>
90 * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
91 outside USE_IN_LIBIO block.
93 2000-07-26 Philip Blundell <philb@gnu.org>
95 * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
96 (elf_machine_rel): Use it for out-of-range PC24 relocs.
98 2000-07-28 Philip Blundell <philb@gnu.org>
100 * math/test-fpucw.c: Ignore reserved bits in control word.
102 2000-07-28 Philip Blundell <philb@gnu.org>
104 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
105 (ret): Redefine to PSEUDO_RET.
106 (PSEUDO): Remove jump to syscall_error.
108 2000-07-29 Mark Kettenis <kettenis@gnu.org>
110 * resolv/README: Add some information about using the resolver in
111 multi-threaded code and with C++. Spelling fixes.
113 2000-07-29 Mark Kettenis <kettenis@gnu.org>
115 * resolv/resolv.h (struct __sockaddr_in): Remove.
116 (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
118 2000-07-29 Greg McGary <greg@mcgary.org>
120 * Rules (test-bp-inputs, make-test-out): New variables.
121 ($(objpfx)%-bp.out): New rule.
122 ($(objpfx)%.out): Rewrite in terms of new variables.
124 * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
125 internal function that uses vtable.
126 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
127 * libio/vswprintf.c (_IO_vswprintf): Likewise.
129 * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
130 (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
131 (chunk_align): Likewise.
133 * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
134 in a way that conforms to decl, and avoids spurious bounds violation.
136 * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
137 * sysdeps/generic/frame.h: Likewise.
138 * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
140 (__backtrace): Qualify frame-pointer chain and return address
141 pointers as __unbounded. Wrap bounds around variable `current'.
142 * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
144 (catch_segfault): Qualify frame-pointer chain and return address
145 pointers as __unbounded. Wrap bounds around variable `current'.
146 * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
147 (ADVANCE_STACK_FRAME): Wrap bounds around return value.
148 * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
150 (__backtrace): Qualify frame-pointer chain and return address
151 pointers as __unbounded. Wrap bounds around variable `current'.
153 * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
154 * sysdeps/i386/mul_1.S: Likewise.
155 * sysdeps/i386/submul_1.S: Likewise.
156 * sysdeps/i386/i586/addmul_1.S: Likewise.
157 * sysdeps/i386/i586/mul_1.S: Add bounds checks.
158 * sysdeps/i386/i586/submul_1.S: Likewise.
160 2000-07-27 Andreas Jaeger <aj@suse.de>
162 * libio/Depend: New file, libio needs localedata for tests.
163 * posix/Depend: Likewise.
165 2000-07-28 Ulrich Drepper <drepper@redhat.com>
167 * stdio-common/_i18n_itoa.c: Removed.
168 * stdio-common/_i18n_itoa.h: Removed.
169 * stdio-common/_i18n_itowa.c: Removed.
170 * stdio-common/_i18n_itowa.h: Removed.
171 * stdio-common/_i18n_number.h: New file.
172 * stdio-common/Depend: New file.
173 * stdio-common/printf-parse.h: Handle I modifier correctly. Optimize.
174 * stdio-common/vfprintf.c: Rewrite buffer handling for integer
175 printing. Change printing of numbers with locale specific digits to
176 use new code in _i18n_number.h.
177 * stdio-common/Makefile (routines): Remove _i18n_itoa and
180 * stdio-common/bug13.c: Improve messages.
182 * locale/programs/ld-ctype.c (ctype_read): Improve error message.
183 (set_class_defaults): Always search also for Uxxxx names.
184 Detect insufficient number of outdigits.
186 * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
188 2000-07-27 Bruno Haible <haible@clisp.cons.org>
190 * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
192 * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
193 * wctype/wcfuncs.c (towlower, towupper): Use them.
194 * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
195 * wctype/wctrans.c (wctrans): Likewise.
196 * wctype/wctrans_l.c (__wctrans_l): Likewise.
198 2000-07-27 Bruno Haible <haible@clisp.cons.org>
200 * posix/fnmatch.c (is_char_class): Fix logic. Avoid buffer overrun.
201 Use the optimized version of this function outside glibc as well.
203 2000-07-27 Jakub Jelinek <jakub@redhat.com>
205 * locale/indigits.h (indigit_value): Correct.
206 * locale/indigitswc.h (indigitwc_value): Correct.
207 * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
208 conversion, add GROUP checking for it, fix GROUP number
209 conversion with strlen(thousands) > 1.
210 Honour width correctly in the presence of floating
211 decimal points and thousands separators.
212 * stdio-common/tst-sscanf.c: New test.
213 * stdio-common/Makefile: Add it to tests.
214 * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
215 thousands separators and group argument is non-zero.
217 2000-07-25 Bruno Haible <haible@clisp.cons.org>
219 * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
222 2000-07-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
224 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
225 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
227 (headers): Add sys/tas.h.
228 * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
230 * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
231 * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
234 2000-07-28 Andreas Jaeger <aj@suse.de>
236 * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
238 * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
239 ($(objpfx)tst-dladdr.out): new.
240 (tests): Add tst-dladdr.
241 ($(objpfx)glrefmain): Use libdl.
243 * dlfcn/tst-dladdr.c: New file. Based on a test by Volkmar Sieh
246 2000-07-27 Jes Sorensen <jes@linuxcare.com>
248 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
251 2000-07-27 Jes Sorensen <jes@linuxcare.com>
253 * intl/tst-translit.c: Include string.h to get prototype for
256 2000-07-27 Jes Sorensen <jes@linuxcare.com>
258 * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
259 name and add weak alias for __fork.
261 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
262 & pwrite to use __libc_<name> as strong names instead of
265 * include/sched.h: Add clone2 prototype.
267 2000-07-26 Jes Sorensen <jes@linuxcare.com>
269 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
270 procedure name twice.
272 2000-07-27 Philip Blundell <philb@gnu.org>
274 * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
276 2000-07-27 Andreas Jaeger <aj@suse.de>
278 * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
279 MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
280 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
281 Reported by Andi Kleen <ak@suse.de>.
283 * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
284 (do_wait): Test requests with aio_return64.
285 (do_test): Change callers of do_wait.
287 2000-07-26 Andreas Jaeger <aj@suse.de>
289 * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
290 (do_wait): Test requests with aio_return.
291 (do_test): Change callers of do_wait.
293 2000-07-27 Ulrich Drepper <drepper@redhat.com>
295 * rt/aio_misc.c (__aio_remove_request): New function. Handle removing
296 from request list. Don't do the list handling here, call
297 __aio_remove_request.
298 * rt/aio_misc.h: Add prototype for __aio_remove_request.
299 * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
300 request might already be processed. Don't do the list handling
301 here, call __aio_remove_request.
303 * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
306 * rt/aio_misc.c: Add comment explaining why writer memory barriers
309 2000-07-27 Greg McGary <greg@mcgary.org>
311 * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
312 * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
313 in union init. Pass zero for ignored semnum arg to semctl.
314 * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
316 2000-07-26 Greg McGary <greg@mcgary.org>
318 * sysdeps/gnu/bits/msq.h: Qualify kernel's
319 data structure pointers as __unbounded.
320 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
321 * sysdeps/generic/bp-semctl.h: New file.
322 * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
323 pointers as __unbounded. Check bounds of syscall args.
324 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
325 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
326 * sysdeps/unix/sysv/linux/semctl.c: Likewise.
327 * sysdeps/unix/sysv/linux/semop.c: Likewise.
328 * sysdeps/unix/sysv/linux/shmat.c: Likewise.
329 * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
330 * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
331 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
332 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
333 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
334 * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
335 * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
336 * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
337 * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
338 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
339 * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
341 2000-07-26 Ulrich Drepper <drepper@redhat.com>
343 * libio/iofwide.c: Enable transliteration for conversion from wchar_t
345 * locale/C-ctype.c: Likewise.
346 * wcsmbs/wcsmbsload.c: Likewise.
348 2000-07-26 Greg McGary <greg@mcgary.org>
350 * Makeconfig (+link-bounded, link-libc-bounded,
351 link-extra-libs-bounded): New variables.
352 (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
353 * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
354 * Rules (tests-bp.out): New variable.
355 (tests): Conditionally add BP tests.
356 (binaries-bounded): Add variable and associated rule.
357 * csu/Makefile [build-bounded] (extra-objs, install-lib):
358 Move conditional stuff after place where condition is defined.
360 * malloc/malloc.c (bp-checks.h): Add #include.
361 (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
362 (_bin_at): Add unbounded version of bin_at.
363 (IAV, chunk_alloc): Use unbounded _bin_at.
364 (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
365 chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
366 Wrap BOUNDED_N around return value.
367 (chunk_realloc): Adjust oldsize once.
369 * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
370 (__ubp_memchr): Add correct decl.
371 (_CHECK_STRING): Use __ubp_memchr.
372 * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
373 New alias for unbounded-pointer __memchr.
374 * sysdeps/i386/memchr.S: Likewise.
375 * sysdeps/ia64/memchr.S: Likewise.
376 * sysdeps/m68k/memchr.S: Likewise.
377 * sysdeps/sparc/sparc32/memchr.S: Likewise.
378 * sysdeps/sparc/sparc64/memchr.S: Likewise.
379 * sysdeps/vax/memchr.s: Likewise.
381 * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
382 (SAVE_PTR): New macro. (save_ptr): Expand size as BP.
383 (strtok): Don't bother to write into SAVE_PTR when returning NULL.
384 * sysdeps/i386/i686/strtok.S: Likewise.
385 * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
386 RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
388 * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
389 * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
391 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
392 bounds of copy_result to mount_proc.
394 2000-07-25 Bruno Haible <haible@clisp.cons.org>
396 * wctype/wctype.h (__wctrans_l): New declaration.
397 * wctype/wctrans_l.c: New file.
398 * wctype/Makefile (routines): Add wctrans_l.
400 2000-07-26 Ulrich Drepper <drepper@redhat.com>
402 * posix/fnmatch_loop.c: Fixes for use outside glibc.
403 Patch by MacGyver <macgyver@tos.net>.
405 2000-07-26 Andreas Jaeger <aj@suse.de>
407 * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
408 * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
409 * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
411 * rt/tst-aio.c (test_file): Fix typo.
412 * rt/tst-aio64.c (test_file): Likewise.
414 * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
415 * rt/Makefile: Add rules to build and run tst-aio3.
417 * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
418 it's not needed and confuses only.
420 2000-07-26 Ulrich Drepper <drepper@redhat.com>
422 * resolv/res_init.c: Add support for nameserver communication with
424 * resolv/res_send.c: Likewise.
425 * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
427 Patch by <venaas@nvg.ntnu.no>.
429 2000-07-25 Bruno Haible <haible@clisp.cons.org>
431 * locale/programs/ld-ctype.c (wctype_table_get): New function.
432 (wcwidth_table_get): New function.
433 (wcwidth_table_add): Call it.
434 (wctrans_table_get): New function.
435 (wctrans_table_add): Call it.
437 2000-07-25 Ulrich Drepper <drepper@redhat.com>
439 * rt/lio_listio.c (lio_listio): Always disable individual
441 * rt/Makefile: Add rules to build and run tst-aio2.
442 * rt/tst-aio2.c: New file.
444 * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
445 Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
447 2000-07-25 Mark Kettenis <kettenis@gnu.org>
449 * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
450 (_nss_netgroup_parseline): Use strip_whitespace to strip off any
451 leading and trailing spaces from host, user and domain name.
453 2000-07-25 Jes Sorensen <jes@linuxcare.com>
455 * csu/defs.awk: Add support for need_endp.
457 2000-07-25 Mark Kettenis <kettenis@gnu.org>
459 * resolv/resolv.h: Remove __P from res_send_qhook and
460 res_send_rhook typedefs.
462 2000-07-25 Bruno Haible <haible@clisp.cons.org>
464 * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
466 2000-07-25 Ulrich Drepper <drepper@redhat.com>
468 * iconv/gconv_builtin.h: Add WCHAR_T alias.
470 2000-07-25 Mark Kettenis <kettenis@gnu.org>
472 * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
473 calling thread, set the cancellation flag and return success
476 2000-07-25 Ulrich Drepper <drepper@redhat.com>
478 * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
479 * libio/tst-widetext.c: New file.
480 * libio/tst-widetext.input: New file.
482 * libio/iogetwline.c (_IO_getwline_info): Pretty print.
484 * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
485 empty external buffer correctly.
487 2000-07-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
489 * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
490 __STRING(entry) and not #entry.
491 (_RTLD_EPILOGUE): Likewise.
492 * sysdeps/mips/mips64/dl-machine.h: Likewise.
494 2000-07-25 Andreas Jaeger <aj@suse.de>
496 * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
497 according to changes in test program, run also with static only
499 ($(objpfx)tst-printf.out): Likewise.
501 * stdio-common/tst-unbputc.sh: Likewise.
502 * stdio-common/tst-printf.sh: Likewise.
504 2000-07-25 Ulrich Drepper <drepper@redhat.com>
506 * libio/wfileops.c (_IO_wdo_write): Correct return value.
508 * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
511 * libio/fileops.c: Pretty print.
513 2000-07-23 Bruno Haible <haible@clisp.cons.org>
515 * wctype/wchar-lookup.h: New file.
516 * wctype/iswctype.c: Include "wchar-lookup.h".
517 (__iswctype): Support alternate locale format with 3-level tables.
518 * wctype/iswctype_l.c (__iswctype_l): Likewise.
519 * wctype/towctrans.c (__towctrans): Likewise.
520 * wctype/towctrans_l.c (__towctrans_l): Likewise.
521 * wctype/wcfuncs.c: Include "wchar-lookup.h".
522 (__ctype32_wctype, __ctype32_wctrans): Declare external.
523 (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
524 __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
525 __iswxdigit, towlower, towupper): Support alternate locale format
527 * wctype/wcextra.c (iswblank): Likewise.
528 * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
529 (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
530 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
531 __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
532 format with 3-level tables.
533 * wctype/wcextra_l.c (__iswblank_l): Likewise.
534 * wctype/wctype.c (__wctype): Likewise. In the alternate locale
535 format, return a 3-level table pointer.
536 * wctype/wctype_l.c (__wctype_l): Likewise.
537 * wctype/wctrans.c (wctrans): Likewise.
538 * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
539 __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
540 __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
541 (iswctype): Remove macro definition.
542 * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
543 (internal_wcwidth): Support alternate locale format with 3-level
545 * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
547 * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
548 Define them as being type "word".
549 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
550 * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
551 __ctype32_width): New exported variables.
552 * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
553 alternate locale format. Don't initialize __ctype_names and
554 __ctype_width in the alternate locale format.
555 * locale/programs/localedef.h (oldstyle_tables): New declaration.
556 * locale/programs/localedef.c (oldstyle_tables): New variable.
557 (OPT_OLDSTYLE): New macro.
558 (options): Add --old-style option.
559 (parse_opt): Handle --old-style option.
560 * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
561 map_offset, class_3level, map_3level, width_3level members.
562 (ctype_output): Support for alternate locale format: Computation of
563 nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
564 _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
565 New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
566 _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
567 now contain both class and map tables.
568 (struct wctype_table): New type.
569 (wctype_table_init, wctype_table_add, wctype_table_finalize): New
571 (struct wcwidth_table): New type.
572 (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
574 (struct wctrans_table): New type.
575 (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
577 (allocate_arrays): Support for alternate locale format: Set
578 plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
579 256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
580 to the first 256 characters. Compute ctype->map_3level. Set
581 ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
582 instead of ctype->width.
584 2000-07-24 Ulrich Drepper <drepper@redhat.com>
586 * libio/iogetwline.c (_IO_getwline_info): Use wide character
589 2000-07-24 Jakub Jelinek <jakub@redhat.com>
591 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
592 in wide characters, not bytes.
593 * libio/tst_putwc.c (do_test): Add test for writing lots of data
596 2000-07-22 Bruno Haible <haible@clisp.cons.org>
598 * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
599 new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
600 LC_MEASUREMENT, LC_IDENTIFICATION.
602 * locale/xlocale.h (struct __locale_struct): Increase size of
604 * locale/duplocale.c (__duplocale): Copy newly added categories as
606 * locale/freelocale.c (__freelocale): Free newly added categories.
607 * locale/newlocale.c (__newlocale): Fix typo in sanity check.
608 If a base is given, use it, don't simply return it.
610 2000-07-22 Bruno Haible <haible@clisp.cons.org>
612 * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
613 variables, copied_key and copied_salt, instead of boolean variables.
615 2000-07-24 Andreas Jaeger <aj@suse.de>
617 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
620 * grp/initgroups.c (initgroups_dyn_function): Renamed from
621 initgroups_function, adopted prototype for change from 2000-07-23.
622 (initgroups): Follow type change.
624 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
625 & PAGE_MASK case, reformat.
627 * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
628 from stdin and setup environment.
630 2000-07-24 Andreas Schwab <schwab@suse.de>
632 * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
634 2000-07-23 Ulrich Drepper <drepper@redhat.com>
636 * string/endian.h: Explain the _*_ENDIAN constant values a bit
637 more. Patch by scarlet@mit.edu [PR libc/1799].
639 * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
642 * argp/argp-parse.c (parser_finalize): Reverse order in which
643 parsers are run for ARGP_KEY_END. [PR libc/1755].
645 * grp/initgroups.c (initgroups): Don't limit the possible number
646 of groups to NGROUPS_MAX. Allow dynamic resizing. Loop around
647 the setgroups call while the call fails and descrease the number
648 of groups each round.
649 The name of the initgroups function in the NSS modules changed.
650 (compat_call): Adapt for dynamic resizing.
651 * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
652 Implement dynamic resizing.
653 * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
655 * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
656 * hesiod/Versions: Change exported interface name.
657 * nis/Versions: Change exported interface name.
659 2000-07-23 Ulrich Drepper <drepper@redhat.com>
661 * locale/iso-639.def: Some errors corrected.
662 Patch by Keld Simonsen.
664 * include/limits.h: Update non-gcc portion.
665 Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
667 2000-07-22 Mark Kettenis <kettenis@gnu.org>
669 * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
670 program's data space, reallocate only the space that was just
671 deallocated to release its backing space.
673 2000-07-23 Ulrich Drepper <drepper@redhat.com>
675 * stdio-common/vfprintf.c (process_string_arg): For wide character
676 version, handle precision also correctly.
678 * nss/nss_files/files-hosts.c: Correct problem with three or more
679 entries with the same name.
681 * nss/nss_files/files-hosts.c: Implement multi handling.
682 * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
684 2000-07-22 Ulrich Drepper <drepper@redhat.com>
686 * nss/nss_files/files-parse.c: Don't pollute namespace by using
689 * grp/Makefile: Change Makefiles and tests to run only when necessary.
690 * malloc/Makefile: Likewise.
691 * malloc/tst-mtrace.sh: Likewise.
692 * posix/Makefile: Likewise.
693 * posix/globtest.sh: Likewise.
694 * posix/wordexp-tst.sh: Likewise.
695 * string/Makefile: Likewise.
697 2000-07-22 Mark Kettenis <kettenis@gnu.org>
699 * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
700 size instead of LC_ALL to take into account the new locale
703 2000-07-22 Ulrich Drepper <drepper@redhat.com>
705 * iconv/gconv_trans.c: Correct a few bugs in the search loop. Remove
706 remainders of hash table.
707 * locale/categories.def: Remove remainders of transliteration
709 * locale/langinfo.h: Likewise.
710 * locale/programs/ld-ctype.c: Likewise. Fix code to write out
711 transliteration tables.
713 * locale/gen-translit.pl: New file.
714 * locale/C-translit.h.in: New file.
715 * locale/C-ctype.c: Include C-translit.h. Initialize transliteration
716 data pointers with data from this file.
717 * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
719 Add rule to generate C-translit.h.
720 * intl/tst-translit.c (main): Update for now performed
723 * stdio-common/vfscanf.c: Handle input -- with format %f correctly
724 (it's no input error).
725 * stdio-common/tstscanf.c: Add test case for format %f with input --.
726 * stdio-common/scanf12.c: Correct expected result for first scanf.
728 * stdio-common/vfprintf.c (process_string_arg): Correct handling
729 of multibyte character strings in %s format with precision.
731 2000-07-21 Ulrich Drepper <drepper@redhat.com>
733 * locale/programs/ld-collate.c (collate_read): Allow collating
734 symbols and elements be named in reorder-after instructions.
735 Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
737 * locale/programs/ld-collate.c (handle_ellipsis): Test for
738 duplication with generated name, not the name of the first
740 Patch by Yong Li <yong.li@asu.edu>.
742 * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
743 Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
745 2000-07-21 Wolfram Gloger <wg@malloc.de>
747 * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
748 allocations only if a non-main arena cannot be extended.
750 2000-07-21 Ulrich Drepper <drepper@redhat.com>
752 * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
753 in DF_1_NODEFLIB handling.
755 2000-07-21 Andreas Jaeger <aj@suse.de>
757 * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
760 * libio/fwide.c: Include <wchar.h> for prototype.
762 2000-07-21 Greg McGary <greg@mcgary.org>
764 * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
765 set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
766 Define in terms of chunk_at_offset.
767 (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
768 (next_bin, prev_bin): offset by size of real array elements.
769 (chunk_align): Make `m' a scalar, since that's how it's used.
771 2000-07-21 Greg McGary <greg@mcgary.org>
773 * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
775 * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
776 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
777 Wrap bounds around argv & envp and each of their string members.
778 * sysdeps/powerpc/elf/start.S: Designate BP symbols.
779 * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
780 symbol in BP_SYM (). Discard bounds of address arg.
781 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
782 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
783 Discard bounds on address arg, add bounds to return value.
785 2000-07-20 Ulrich Drepper <drepper@redhat.com>
787 * elf/Makefile (tests): Add filter. Add rules to generate filter.
788 * elf/filter.c: New file.
789 * elf/filtmod1.c: New file.
790 * elf/filtmod2.c: New file.
792 * elf/rtld.c: Define _dl_bind_not variable.
793 (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
794 * elf/dl-support.c: Likewise.
795 * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
796 * elf/dl-runtime.c (fixup): Don't remember looked up value if
798 (profile_fixup): Likewise.
800 * libio/Makefile (routines): Add fwide.
801 * libio/iofwide.c (_IO_fwide): Remove locking. This is done in
802 fwide now. Internal calls to _IO_fwide must do locking themselves
803 or don't need locking.
804 * libio/fwide.c: New file.
806 * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
808 * elf/Makefile: Add no modules for nodelete test.
809 * elf/nodelmod3.c: New file.
810 * elf/nodelmod4.c: New file.
811 * elf/nodelete.c: Also test case where dependency of dlopen() object
814 * elf/Makefile (tests): Add nodlopen. Add rules to generate nodlopen.
815 * elf/nodlopen.c: New file.
816 * elf/nodlopenmod.c: New file.
817 * include/dlfcn.h: Define __RTLD_DLOPEN.
818 * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
819 and this is a dlopen() call, do not load the binary.
820 * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
821 * dlfcn/dlopenold.c: Likewise.
822 * configure.in: Add test for -z nodelete option.
823 * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
825 2000-07-20 Mark Kettenis <kettenis@gnu.org>
827 Make Hesiod NSS module thread-safe.
829 * hesiod/README.hesiod: Update.
831 * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
832 _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
833 _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
834 * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
836 * hesiod/nss_hesiod/hesiod-init.c: New file.
837 * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
838 * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
839 * hesiod/nss_hesiod/nss_hesiod.h: New file.
840 * hesiod/nss_hesiod/hesiod-service.c
841 (_nss_hesiod_getservbyport_r): New function. Provide support for
842 looking up services by port number.
843 * hesiod/nss_hesiod/hesiod-proto.c: New file.
845 * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
846 * hesiod/hesiod.h: Likewise.
847 * hesiod/hesiod_p.h: Likewise.
849 2000-07-20 Mark Kettenis <kettenis@gnu.org>
851 Fix problems with `struct __res_state' getting too big.
852 * resolv/resolv.h (struct __sockaddr_in): New definition.
853 (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
854 the private parts of the structure to save some space.
855 * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
856 (struct sockaddr_in *) in call to sock_eq.
857 Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
859 2000-07-20 Ulrich Drepper <drepper@redhat.com>
861 * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
862 * elf/dl-close.c (_dl_close): Don't close an object if it is marked
864 * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
865 to _dl_map_object. Return immediately if no object loaded.
866 Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
867 * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
868 if it exists into l_flags_1 word.
869 * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
870 it to determine whether loading is wanted or not.
871 (_dl_map_object): Likewise.
872 Call _dl_map_object_from_fd with new parameter.
873 * sysdeps/generic/ldsodefs.h: Update prototype.
874 * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
875 * elf/rtld.c: Likewise.
876 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
877 * elf/Makefile (tests): Add noload. Add rules to generate noload.
878 * elf/noload.c: New file.
879 * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
880 * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
881 * sysdeps/mips/bits/dlfcn.h: Likewise.
882 * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
883 (tests-nodelete-yes): Define.
884 (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
885 Add rules to build nodelete and modules.
886 * elf/nodelete.c: New file.
887 * elf/nodelmod1.c: New file.
888 * elf/nodelmod2.c: New file.
889 * configure.in: Add test for -z nodelete option.
890 * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
892 * libio/Makefile (tests): Add tst_wprintf2.
893 (tst_wprintf2-ARGS): Define.
894 * libio/tst_wprintf2.c: New file.
895 Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
897 * libio/wfiledoalloc.c: Only allocate external buffer if this
900 * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
901 something in the buffer. gconv call can write up to end of the
902 buffer, not only _IO_write_end.
903 (_IO_wfile_overflow): Allocate also external buffer.
905 2000-07-19 Ulrich Drepper <drepper@redhat.com>
907 * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
908 strings with precision in vfwprintf correctly.
909 * stdio-common/vfprintf.c: Fix completely broken handling of
910 unbuffered wide character streams.
911 Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
913 * resolv/Makefile (distribute): Add README.
915 * resolv/README: New file. By Mark Kettenis <kettenis@gnu.org>.
917 2000-07-18 Mark Kettenis <kettenis@gnu.org>
919 Update resolver code to BIND 8.2.3-T5B.
921 * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
923 [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
924 __res_mkquery, __res_nsend, __res_query, __res_querydomain and
926 * resolv/Banner: BIND-8.2.3-T5B.
928 * resolv/base64.c: Update from BIND 8.2.3-T5B.
929 * resolv/herror.c: Likewise.
930 * resolv/inet_addr.c: Likewise.
931 * resolv/inet_net_ntop.c: Likewise.
932 * resolv/inet_net_pton.c: Likewise.
933 * resolv/inet_neta.c: Likewise.
934 * resolv/inet_ntop.c: Likewise.
935 * resolv/nsap_addr.c: Likewise.
936 * resolv/inet_pton.c: Likewise. Reject a few more more invalid
937 IPv6 addresses (ISC bug #520).
939 * resolv/ns_name.c: Avoid emitting RCS ID in object file.
940 * resolv/ns_parse.c: Likewise.
941 * resolv/ns_netint.c: Likewise.
942 * resolv/ns_samedomain.c: Likewise.
943 * resolv/ns_ttl.c: Likewise.
944 * resolv/ns_print.c: Update from BIND 8.2.3-T5B. Avoid emitting
945 RCS ID in object file.
947 * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
948 * resolv/res_mkquery.c: Likewise.
949 * resolv/res_query.c: Likewise.
950 * resolv/res_init.c: Likewise.
951 (res_setoptions): Mark internal.
952 * resolv/res_send.c: Likewise.
953 [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
954 by using poll instead.
955 * resolv/res_comp.c: Likewise.
956 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
957 weak alias for __dn_expand.
958 * resolv/res_data.c: Likewise.
959 (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
960 in _res.options. Avoids a potential security risk by avoiding a
962 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
963 res_mkquery, res_query, res_querydomain adn res_search weak
964 aliases for __res_mkquery, __res_query, __res_querydomain and
966 * resolv/res_libc.c: (_res): Don't initialize. Fix res_close
967 instead to avoid close(0).
968 (res_init): Always use the static resolver context.
969 [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
970 alias for __res_init.
972 * resolv/resolv.h: Update from BIND 8.2.3-T5B. Move definition of
973 RES_SET_H_ERRNO and accompanying comment to...
974 * include/resolv.h: ... here.
976 * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
977 * resolv/arpa/nameser_compat.h: Likewise.
979 2000-07-18 Ulrich Drepper <drepper@redhat.com>
981 * nss/makedb.c (main): Compare result of load_db with
982 NSS_STATUS_SUCCESS and not 0.
983 Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
985 * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
987 2000-07-18 Greg McGary <greg@mcgary.org>
989 * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
990 (EXTEND_BUFFER): Use it.
992 2000-07-18 Ulrich Drepper <drepper@redhat.com>
994 * include/libc-symbols.h: Define RETURN_ADDRESS macro.
995 * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
996 __builtin_return_address.
997 * dlfcn/dlopenold.c: Likewise.
998 * dlfcn/dlsym.c: Likewise.
999 * dlfcn/dlvsym.c: Likewise.
1000 * elf/dl-profstub.c: Likewise.
1001 * malloc/malloc.c: Likewise.
1002 * sysdeps/generic/machine-gmon.h: Likewise.
1003 Based on a patch by schwidefsky@de.ibm.com.
1005 2000-07-18 Andreas Jaeger <aj@suse.de>
1007 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
1008 NULL to elf_machine_fixup_plt t argument to silence GCC.
1010 * include/string.h: Add prototype for __memchr.
1012 * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
1014 * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
1017 2000-07-18 Ulrich Drepper <drepper@redhat.com>
1019 * intl/Makefile: Make sure tst-translit is run after tst-gettext.
1021 * locale/C-ctype.c: Add initializers for gap elements.
1022 * locale/programs/ld-ctype.c (ctype_output): Write out index entries
1025 2000-07-16 Ulrich Drepper <drepper@redhat.com>
1027 * nscd/nscd.c (print_version): Update copyright year.
1029 2000-07-17 Greg McGary <greg@mcgary.org>
1031 * sysdeps/unix/make-syscalls.sh: Handle new arg signature
1032 keyletters F, I, S, W. Remove unused keyletter V. Surround
1033 signature argnames with angle-brackets for use as word delimiters,
1034 and to induce syntax errors for any args not handled. Split
1035 multi-echo echoes and comment each stage.
1036 * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
1037 * sysdeps/unix/inet/syscalls.list: Likewise.
1038 * sysdeps/unix/mman/syscalls.list: Likewise.
1039 * sysdeps/unix/syscalls.list: Likewise.
1040 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1041 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1042 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1043 * sysdeps/unix/sysv/syscalls.list: Likewise.
1044 * sysdeps/unix/sysv/linux/powerpc/syscalls.list
1046 * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
1047 * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
1048 qualifiers. Don't check NULL-terminator of argv & envp.
1049 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
1050 unbounded pointer type in word-size assertion.
1051 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
1052 cases to stifle warnings.
1054 * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
1056 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
1058 * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
1059 * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods. Qualify
1062 * Makerules (o-objects): Supplement with $(o-objects$o).
1063 * string/Makefile (o-objects.ob): Add variable to pull
1064 unbounded versions of memcpy, memset and memchr into libc_b.
1066 * sysdeps/generic/bp-checks.h: Use unbounded __memchr
1067 rather than non-existent __ubp_memchr.
1068 (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
1069 (_CHECK_STRING, _CHECK_N): New macros.
1070 (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
1071 (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
1072 * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
1073 Add weak alias "memchr".
1074 * sysdeps/generic/memchr.c: Likewise.
1075 * sysdeps/i386/memchr.S: Likewise.
1076 * sysdeps/ia64/memchr.S: Likewise.
1077 * sysdeps/m68k/memchr.S: Likewise.
1078 * sysdeps/sparc/sparc32/memchr.S: Likewise.
1079 * sysdeps/sparc/sparc64/memchr.S: Likewise.
1080 * sysdeps/vax/memchr.s: Likewise.
1082 * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
1084 * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
1085 (profile_fixup): Don't define for __BOUNDED_POINTERS__.
1086 * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
1087 __BOUNDED_POINTERS__.
1088 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
1089 for __BOUNDED_POINTERS__.
1091 2000-07-17 Bruno Haible <haible@clisp.cons.org>
1093 * iconv/gconv_open.c (__gconv_open): Initialize the __data
1094 field of struct __gconv_trans_data differently. Don't pass NULL to
1095 trans_init_fct. Simplify list append operation.
1097 2000-07-14 Bruno Haible <haible@clisp.cons.org>
1099 * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
1100 not only those having tsearch.
1102 2000-07-17 Ulrich Drepper <drepper@redhat.com>
1104 * locale/langinfo.h: Add placeholder values in enum for removed
1107 2000-07-17 Jakub Jelinek <jakub@redhat.com>
1109 * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
1110 chain if the PHDR check fails.
1112 2000-07-17 Mark Kettenis <kettenis@gnu.org>
1114 * nss/getent.c (print_hosts): Make sure we always print a space
1115 between numeric addresses and hostnames.
1117 2000-07-17 Wolfram Gloger <wg@malloc.de>
1119 * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
1120 i.e. if n_mmaps_max>0.
1122 2000-07-16 Mark Kettenis <kettenis@gnu.org>
1124 * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
1125 values to remove possible clash with other AI_* constants.
1126 (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
1127 hexadecimal constants to stress the fact they're in fact
1130 2000-07-15 Mark Kettenis <kettenis@gnu.org>
1132 * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
1133 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
1134 instead of res_init.
1136 2000-07-16 Ulrich Drepper <drepper@redhat.com>
1138 * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
1139 parameters of memset calls to avoid warnings.
1141 2000-07-15 Ulrich Drepper <drepper@redhat.com>
1143 * stdlib/Makefile: Rewrite rules to avoid running isomac unless
1146 * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
1147 Patch by Greg McGary <greg@mcgary.org>.
1149 * io/Makefile (tests): Add tst-getcwd.
1150 * io/tst-getcwd.c: New file.
1152 * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
1154 2000-07-15 Jakub Jelinek <jakub@redhat.com>
1156 * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
1159 2000-07-13 Jakub Jelinek <jakub@redhat.com>
1161 * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
1162 * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
1164 2000-07-12 H.J. Lu <hjl@gnu.org>
1166 * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
1168 * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
1169 * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
1170 (sysdep-routines): Add clone2.
1171 * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
1173 2000-07-13 Jes Sorensen <jes@linuxcare.com>
1175 * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
1176 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
1178 2000-06-05 David Mosberger <davidm@hpl.hp.com>
1180 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
1181 based on sysdeps/unix/sysv/linux/bits/siginfo.h.
1182 Change type of si_band from "int" to "long".
1183 (si_imm) [USE_GNU]: Define
1184 (si_isr) [USE_GNU]: Ditto.
1185 (ILL_BREAK) [USE_GNU]: Ditto.
1186 (FPE_DECOVF) [USE_GNU]: Ditto.
1187 (FPE_DECDIV) [USE_GNU]: Ditto.
1188 (FPE_DECERR) [USE_GNU]: Ditto.
1189 (FPE_INVASC) [USE_GNU]: Ditto.
1190 (FPE_INVDEC) [USE_GNU]: Ditto.
1191 (TRAP_BRANCH) [USE_GNU]: Ditto.
1192 (TRAP_HWBKPT) [USE_GNU]: Ditto.
1194 2000-07-06 Jes Sorensen <jes@linuxcare.com>
1196 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
1197 bits/sigcontext as struct mcontext does not depend on it.
1199 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
1201 2000-07-04 Jes Sorensen <jes@linuxcare.com>
1203 * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
1205 2000-07-04 David Mosberger-Tang <davidm@hpl.hp.com>
1207 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
1209 2000-06-22 Jes Sorensen <jes@linuxcare.com>
1211 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
1213 2000-07-15 Ulrich Drepper <drepper@redhat.com>
1215 * intl/Makefile (test-srcs): Add tst-translit.
1217 Add rules to build and run tst-translit.
1218 * intl/tst-translit.c: New file.
1219 * intl/tst-translit.sh: New file.
1220 * intl/translit.po: New file.
1222 2000-07-14 Ulrich Drepper <drepper@redhat.com>
1224 * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
1225 transliteration function did its job, continue, don't stop.
1227 * iconvdata/iso646.c: Little optimizations in body for conversion
1230 2000-07-14 Mark Kettenis <kettenis@gnu.org>
1232 * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
1234 2000-07-14 Mark Kettenis <kettenis@gnu.org>
1236 * configure.in: Check for pwd binary.
1237 * config.make.in: Add PWD_P to be subsituted.
1238 * Makerules: Use $(PWD_P) instead of /bin/pwd.
1240 2000-07-14 Ulrich Drepper <drepper@redhat.com>
1242 * iconvdata/Makefile (modules): Add GB18030.
1243 (distribute): Add gb18030.c.
1244 * iconvdata/gconv-modules: Add entries for GB18030 module.
1245 * iconvdata/gb18030.c: New file.
1246 Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
1249 2000-07-13 Andreas Jaeger <aj@suse.de>
1251 * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
1254 * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
1255 * inet/getnetgrent.c (free_mem): Likewise.
1256 * misc/mntent.c (free_mem): Likewise.
1257 * nss/getXXbyYY.c (free_mem): Likewise.
1258 * nss/getXXent.c (free_mem): Likewise.
1259 * pwd/fgetpwent.c (free_mem): Likewise.
1260 * shadow/fgetspent.c (free_mem): Likewise.
1262 2000-07-14 Ulrich Drepper <drepper@redhat.com>
1264 * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
1265 64-bit architecture correctly [PR libc/1794].
1267 2000-07-13 Ulrich Drepper <drepper@redhat.com>
1269 * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
1270 * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
1271 report that we are out of memory.
1272 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
1273 * elf/dl-libc.c (dlerror_run): Likewise.
1274 * elf/dl-open.c (_dl_open): Likewise.
1275 * elf/rtld.c (dl_main): Likewise.
1276 * elf/dl-error.c: Define _dl_out_of_memory.
1277 (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
1279 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
1282 * dlfcn/dlerror.c (free_key_mem): Also free error string.
1284 * iconv/loop.c: Fix comment.
1286 * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
1288 2000-07-13 Andreas Jaeger <aj@suse.de>
1290 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
1291 getcwd (NULL, size) with size > 0.
1292 Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
1294 2000-07-13 Andreas Jaeger <aj@suse.de>
1296 * posix/Makefile: Remove build rules for libposix.
1298 2000-07-13 Andreas Schwab <schwab@suse.de>
1300 * sysdeps/generic/glob.c (glob): Fix memory leak.
1301 [SHELL]: Remove reference to undefined variable `files'.
1304 2000-07-13 Andreas Jaeger <aj@suse.de>
1306 * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
1309 * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
1310 memory if it was allocated.
1312 2000-07-12 Ulrich Drepper <drepper@redhat.com>
1314 * iconv/gconv_db.c (gen_steps): Always initialize __data field of
1317 * iconv/gconv_open.c (__gconv_open): Reapply
1318 2000-07-12 Bruno Haible <haible@clisp.cons.org>
1320 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
1322 * iconv/gconv_open.c: Undo last two changes for now. They break
1325 2000-07-12 Andreas Jaeger <aj@suse.de>
1327 * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
1329 (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
1330 (CFLAGS-dl-cache.c): Likewise.
1331 (CFLAGS-ldconfig.c): Added, passes directory locations.
1333 * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
1335 * elf/ldconfig.c (LD_SO_CONF): Likewise.
1336 (main): Use configured LIBDIR and SLIBDIR.
1338 2000-07-11 Jakub Jelinek <jakub@redhat.com>
1340 * math/bits/cmathcalls.h (cimag): Add __THROW.
1341 (creal, conj): Likewise.
1342 * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
1345 2000-07-12 H.J. Lu <hjl@gnu.org>
1347 * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
1348 for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
1350 2000-07-12 Ulrich Drepper <drepper@redhat.com>
1352 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
1355 2000-07-12 Bruno Haible <haible@clisp.cons.org>
1357 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
1359 2000-07-12 Bruno Haible <haible@clisp.cons.org>
1361 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
1364 2000-07-12 Bruno Haible <haible@clisp.cons.org>
1366 * iconv/gconv_open.c (__gconv_open): Initialize
1367 result->__steps[cnt].__data.
1369 2000-07-12 Mark Kettenis <kettenis@gnu.org>
1371 * nss/getent.c (services_keys): Pass port number in network byte
1372 order in call to getservbyport.
1374 2000-07-11 Andreas Jaeger <aj@suse.de>
1376 * stdlib/Makefile (test-canon-ARGS): Fix for building in the
1378 * intl/Makefile (do-gettext-test): Likewise.
1379 * dirent/Makefile (opendir-tst1-ARGS): Likewise.
1381 2000-07-11 Andreas Schwab <schwab@suse.de>
1383 * Makeconfig (run-program-prefix): New rule.
1384 (built-program-cmd): Use run-program-prefix.
1386 2000-07-12 Ulrich Drepper <drepper@redhat.com>
1388 * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
1389 and NOEXPR unconditionally available.
1391 2000-07-12 Greg McGary <greg@mcgary.org>
1393 * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
1394 * sysdeps/posix/open64.c: Likewise.
1395 * sysdeps/generic/fegetenv.c: Likewise.
1396 * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
1397 * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
1398 * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
1399 * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
1400 * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
1401 * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
1403 2000-07-11 Greg McGary <greg@mcgary.org>
1405 * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
1406 Add extra level of macro expansion.
1407 [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
1408 * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
1409 is available at the time `select' prototype is declared.
1410 * sysdeps/unix/make-syscalls.sh: Remove unused variables.
1411 Collect non-versioned weak aliases. Consider only non-versioned
1412 aliases for the user-visible systemcall name. Do checks inline with
1413 call to primitive system call.
1414 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
1415 stand-alone bounds checks to suppress unused value warnings.
1416 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
1418 2000-07-10 Mark Kettenis <kettenis@gnu.org>
1420 * sysdeps/mach/hurd/check_fds.c: New file. Implements
1421 file descriptor checking in SUID programs for the Hurd.
1423 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
1424 res_hostalias instead of __hostalias for thread-safety.
1426 2000-07-09 Mark Kettenis <kettenis@gnu.org>
1428 * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
1429 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
1431 2000-07-10 Ulrich Drepper <drepper@redhat.com>
1433 * include/features.h: Include ISO C99 features if the compiler used
1434 is an ISO C99 compiler.
1435 Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1437 2000-07-08 Mark Kettenis <kettenis@gnu.org>
1439 * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
1441 2000-07-10 Andreas Jaeger <aj@suse.de>
1443 * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
1444 it's overridden by libpthreads.
1445 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1446 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1447 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1448 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1449 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1451 * malloc/Makefile: Run tst-mtrace only with shared libs.
1453 * stdio-common/Makefile: Run unbputc and tst-printf tests only
1456 2000-07-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1458 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
1459 that gpreg really points to the GOT section of the calling object.
1460 Scan all PT_LOAD segments of objects for stub_pc, instead of only
1461 checking a start address of first one.
1463 * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
1466 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
1468 2000-07-10 Andreas Jaeger <aj@suse.de>
1470 * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
1471 (string_alias->strong_alias).
1473 2000-07-08 Mark Kettenis <kettenis@gnu.org>
1475 * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
1477 2000-07-07 Greg McGary <greg@mcgary.org>
1479 * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
1480 have no names without leading underscores.
1482 2000-07-07 Ulrich Drepper <drepper@redhat.com>
1484 * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
1487 * stdio-common/Makefile (tests): Remove tst-printf here...
1488 (tests-srcs): ...and add it here.
1489 (distribute): Add tst-unbputc.sh and tst-printf.sh.
1490 Add rules to run tst-printf.sh.
1491 * stdio-common/tst-printf.c: Move code around so that there is really
1492 no further output where it's stated.
1493 * stdio-common/tst-printf.sh: New file.
1495 2000-07-07 Mark Kettenis <kettenis@gnu.org>
1497 * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
1498 (do_write): Renamed from pwrite.
1499 (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
1500 `struct _IO_cookie_file'.
1502 2000-07-07 Ulrich Drepper <drepper@redhat.com>
1504 * malloc/mtrace.pl: Exit with exit code 1 if any leak was
1506 * malloc/tst-mtrace.sh: Run mtrace script.
1508 2000-07-07 Greg McGary <greg@mcgary.org>
1510 * posix/regex.c (EXTEND_BUFFER): Compute increment once.
1511 Move all three components of a bounded pointer.
1513 2000-07-07 Ulrich Drepper <drepper@redhat.com>
1515 * locale/programs/locale.c (write_locales): Don't simply add all
1516 directories found in the subdir, test whether at least the
1517 LC_CTYPE file is in there.
1519 2000-07-06 Ulrich Drepper <drepper@redhat.com>
1521 * iconvdata/euc-jp.c: Map characters in C1 area to itself.
1522 * iconvdata/euc-kr.c: Likewise.
1524 * stdio-common/vfprintf.c (process_string_arg): Check result of
1525 wcrtomb call and bail out if it failed.
1527 * malloc/Makefile (test-srcs): Add tst-mtrace.
1528 (distribute): Add tst-mtrace.sh.
1529 Add rule to run tst-mtrace.sh.
1530 * malloc/tst-mtrace.c: New file.
1531 * malloc/tst-mtrace.sh: New file.
1533 * include/signal.h: Declare __libc_sigaction.
1534 * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
1535 * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
1536 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1537 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1538 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1539 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1540 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1542 * configure.in: Fix CFLAGS-memprofstat.c definition after
1544 Patch by Bradford W. Johnson <bradford@math.umn.edu>.
1546 2000-07-06 Jakub Jelinek <jakub@redhat.com>
1548 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
1549 instead of NULL to elf_machine_fixup_plt t argument.
1550 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1551 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
1554 2000-07-06 Andreas Jaeger <aj@suse.de>
1556 * crypt/Makefile (LDLIBS-cert): Removed.
1557 (LDLIBS-md5c-test): Removed.
1558 ($(objpfx)cert): Renamed from cert.out to fix dependencies.
1559 ($(objpfx)md5c-test): Likewise for md5c-test.out.
1561 2000-07-06 Andreas Jaeger <aj@suse.de>
1563 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
1564 of the proc system is "proc".
1566 * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
1567 thread library for static programs.
1569 2000-07-06 Greg McGary <greg@mcgary.org>
1571 * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
1573 * sysdeps/generic/strcpy.c: Add bounds checks.
1574 * sysdeps/unix/fxstat.c: Likewise.
1575 * sysdeps/unix/xstat.c: Likewise.
1576 * sysdeps/unix/common/lxstat.c: Likewise.
1577 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1578 * sysdeps/unix/sysv/linux/execve.c: Likewise.
1579 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1580 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1581 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
1582 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
1583 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
1584 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1585 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1586 * sysdeps/unix/sysv/linux/poll.c: Likewise.
1587 * sysdeps/unix/sysv/linux/pread.c: Likewise.
1588 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1589 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
1590 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1591 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1592 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1593 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1594 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
1595 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1596 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
1597 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1598 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1599 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1600 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1601 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1602 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
1603 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1604 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1605 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1606 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1607 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1608 * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
1609 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1610 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1611 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1612 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
1613 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
1614 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
1615 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
1616 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1617 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1618 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
1619 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1620 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1621 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1622 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1623 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1624 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
1625 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
1626 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
1627 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
1628 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1629 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1630 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1631 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1632 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1633 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1634 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
1635 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1636 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
1637 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1638 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1639 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
1640 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
1642 * string/endian.h (__LONG_LONG_PAIR): New macro.
1643 * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
1644 * sysdeps/unix/sysv/linux/pread.c: Likewise.
1645 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1646 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1647 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1648 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1649 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
1650 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1651 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1652 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1653 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1654 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1656 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
1658 2000-07-06 Andreas Jaeger <aj@suse.de>
1660 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
1663 * math/test-fpucw.c: Include <stdio.h> for printf.
1665 2000-07-05 Greg McGary <greg@mcgary.org>
1667 * sysdeps/generic/bp-checks.h: New file.
1668 * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
1669 with list of #include files.
1670 * sysdeps/unix/make-syscalls.sh: Handle new arg signature
1671 keyletters a, b, B, f, n, N, P, v, V. Fixup some indentation.
1672 Don't generate BP thunk if `V' appears in signature.
1673 Generate thunks with complete bounds checks.
1674 * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
1675 * sysdeps/unix/inet/syscalls.list: Likewise.
1676 * sysdeps/unix/mman/syscalls.list: Likewise.
1677 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1678 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1679 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1680 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
1682 2000-07-05 Ulrich Drepper <drepper@redhat.com>
1684 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
1685 result. Search first in /etc/mtab (proc/mounts would be stupid).
1686 If mount not in the file fall back on /proc.
1688 * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
1689 string got copied in.
1690 Patch by Solar Designer <solar@false.com>.
1692 2000-07-05 Andreas Jaeger <aj@suse.de>
1694 * manual/install.texi (Installation): Update information about
1696 (Configuring and compiling): Update for glibc 2.2.
1698 2000-07-04 Andreas Jaeger <aj@suse.de>
1700 * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
1701 (_FPU_IEEE): Likewise.
1703 * math/Makefile (tests): Add test-fpucw.
1705 * math/test-fpucw.c (main): New file.
1707 2000-07-05 Ulrich Drepper <drepper@redhat.com>
1709 * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
1711 * locale/programs/ld-collate.c (collate_output): Also write out the
1712 collation sequence values and the wide character string for the
1713 collation symbol table.
1715 * posix/fnmatch.c: Include "../locale/elem-hash.h".
1716 * posix/fnmatch_loop.c: Implement collating symbol handling.
1717 * posix/tst-fnmatch.input: Add more tests, especially for collating
1720 * posix/regex.c: Fix comment.
1722 2000-07-05 Andreas Jaeger <aj@suse.de>
1724 * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
1725 (_FPU_GETCW): Remove extra colon.
1726 Patch by Ralf Baechle <ralf@uni-koblenz.de>.
1728 * posix/fnmatch_loop.c (FCT): Only declare len if
1729 !WIDE_CHAR_VERSION to silence GCC.
1731 * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
1733 * sysdeps/generic/strchrnul.c: Likewise.
1734 * sysdeps/generic/strlen.c: Likewise.
1735 * sysdeps/generic/strchr.c: Likewise.
1736 * sysdeps/generic/memchr.c: Likewise.
1738 2000-07-04 Ulrich Drepper <drepper@redhat.com>
1740 * posix/fnmatch_loop.c: Implement equivalence class handling.
1741 * posix/tst-fnmatch.input: Add tests for equivalence class
1744 * posix/fnmatch_loop.c: Improve performance for single-byte
1745 character sets by not using btowc.
1747 * posix/tst-fnmatch.input: Add tests for locale dependent
1749 * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
1751 * posix/tst-fnmatch.input: Add more test cases.
1753 * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
1754 are not aligned to alignof(md5_uint32) do it before calling
1755 __md5_process_bytes.
1756 * crypt/md5.c: Make sure buffers are aligned.
1757 * crypt/md5.h: Likewise.
1758 Reported by Solar Designer <solar@false.com>.
1760 * crypt/Makefile: Add dependencies for test programs.
1762 * Rules: Define LC_ALL=C in environments of all programs we run.
1764 * intl/tst-gettext.sh (LC_ALL): Define to C and export.
1766 2000-07-03 H.J. Lu <hjl@gnu.org>
1768 * locale/programs/ld-ctype.c (ctype_output): The size of iov
1769 is 2 + elem + offset, not 2 + elem + offset + 2.
1771 2000-07-04 Ulrich Drepper <drepper@redhat.com>
1773 * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
1775 * posix/Makefile (tests): Add tst-fnmatch.
1776 (tst-fnmatch-ENV): Define.
1777 * posix/tst-fnmatch.c: New file.
1778 * posix/tst-fnmatch.sh: New file.
1780 2000-07-04 NIIBE Yutaka <gniibe@chroot.org>
1782 * locale/programs/charmap.c (charmap_read): Prepend
1783 the condition filename == NULL.
1785 2000-07-03 Greg McGary <greg@mcgary.org>
1787 * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
1789 * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
1790 ($(objpfx)b$(start-installed-name)): Add non-elf rule.
1792 * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
1793 * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
1794 (FILEBUF_LITERAL): Add cast for CHAIN init.
1795 * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
1796 (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
1797 Revert type of `fp' to _IO_FILE*.
1798 (_IO_iter_file): Remove cast.
1799 (_IO_iter_next): Elide intermediate member reference.
1801 * sysdeps/powerpc/strchr.S: Check bounds.
1802 Wrap extern symbols in BP_SYM ().
1804 2000-07-03 Andreas Jaeger <aj@suse.de>
1806 * dlfcn/Makefile (generated): New.
1808 2000-07-03 Ulrich Drepper <drepper@redhat.com>
1810 * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
1811 (__uflow): Likewise.
1812 (__underflow): Likewise.
1813 * libio/wgenops.c (__wunderflow): Likewise.
1814 * stdio-common/tst-unbputc.c: New file.
1815 * stdio-common/tst-unbputc.sh: New file.
1816 * stdio-common/Makefile: Add rules to build and run tst-unbputc.
1818 * po/en_GB.po: New file.
1819 Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
1821 2000-07-01 Andreas Jaeger <aj@suse.de>
1823 * intl/Makefile (generated-dirs): New.
1825 * elf/Makefile (generated): trusted-dirs.h is always generated,
1826 move out of build-shared condition.
1827 (generated): Merge the two entries for build-shared.
1829 2000-07-01 Ulrich Drepper <drepper@redhat.com>
1831 * debug/Makefile (distribute): Add xtrace.sh.
1833 2000-06-30 Ulrich Drepper <drepper@redhat.com>
1835 * version.h (VERSION): Bump to 2.1.91.
1837 * configure.in: Update warning comment. glibc should not be
1840 * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content. Add
1841 ioperm.c, sys/procfs.h, and sys/io.h.
1843 * sysdeps/powerpc/Dist: Add bp-asm.h.
1845 * assert/Depend: Add localedata.
1846 * assert/Makefile (test-assert-ENV): New. Define LANGUAGE=C.
1847 (test-assert-perr-ENV): New. Define LANGUAGE=C.
1849 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
1850 R_ALPHA_REFQUAD]: Use memcpy to load and store value from
1851 relocation address to prevent unaligned trap.
1852 Suggested by Richard Henderson <rth@cygnus.com>.
1854 2000-06-30 Jakub Jelinek <jakub@redhat.com>
1856 * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
1857 if redirecting and either redirection is done using defines or
1860 2000-06-30 Ulrich Drepper <drepper@redhat.com>
1862 * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
1863 generated expressions.
1864 Patch by Darren McClelland <dmcclell@zetec.com>.
1866 * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
1867 since zic uses setlocale and gettext but we cannot make it use the
1868 new locale data since zic calls a shell which might not use the
1871 * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
1872 handling the internation currency symbol. POSIX says that the
1873 fourth character is used to separate the currency symbol from the
1874 value. Therefore it does not have to be printed. But we cannot
1875 remove the space if the currency symbol is printed before the
1876 number since this is what many locales expect.
1878 * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
1879 whether this information is available.
1881 * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
1882 buffers in case the translation is too large. Remember allocated
1883 memory blocks in a list.
1884 (free_mem): Free memory for translations.
1886 * intl/tst-gettext.c: Use correct locale. Improve error messages.
1888 * locale/programs/ld-ctype.c (ctype_output): If no default_missing
1889 information is available set the string length to zero.
1891 * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
1893 2000-06-30 Greg McGary <greg@mcgary.org>
1895 * sysdeps/powerpc/bp-asm.h: New file.
1896 * sysdeps/powerpc/__longjmp.S: Check bounds.
1897 Wrap extern symbols in BP_SYM ().
1898 * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
1899 * sysdeps/powerpc/bsd-setjmp.S: Likewise.
1900 * sysdeps/powerpc/setjmp.S: Likewise.
1901 * sysdeps/powerpc/add_n.S: Likewise.
1902 * sysdeps/powerpc/addmul_1.S: Likewise.
1903 * sysdeps/powerpc/lshift.S: Likewise.
1904 * sysdeps/powerpc/rshift.S: Likewise.
1905 * sysdeps/powerpc/mul_1.S: Likewise.
1906 * sysdeps/powerpc/sub_n.S: Likewise.
1907 * sysdeps/powerpc/submul_1.S: Likewise.
1908 * sysdeps/powerpc/strlen.S: Likewise.
1909 * sysdeps/powerpc/memset.S: Likewise.
1910 * sysdeps/powerpc/stpcpy.S: Likewise.
1911 * sysdeps/powerpc/strcmp.S: Likewise.
1912 * sysdeps/powerpc/strcpy.S: Likewise.
1913 * sysdeps/powerpc/elf/bzero.S: Likewise.
1915 * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
1916 Line up operands column with tabs.
1918 2000-06-30 Ulrich Drepper <drepper@redhat.com>
1920 * elf/Makefile (LDFLAGS-origtest): Actually add it.
1922 * sysdeps/ia64/htonl.S: New file.
1923 * sysdeps/ia64/htons.S: New file.
1924 * sysdeps/ia64/memcpy.S: Replace with version which does not use
1925 floating point registers.
1926 Patches by Dan Pop <Dan.Pop@cern.ch>.
1928 2000-06-30 Andreas Jaeger <aj@suse.de>
1930 * posix/Makefile (tests): tst-exec and tst-spawn only work with
1933 * io/Makefile (CFLAGS-test-lfs.c): New.
1934 (tests): Add test-lfs.
1936 * io/test-lfs.c: New file.
1938 2000-06-30 Jakub Jelinek <jakub@redhat.com>
1940 * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
1943 2000-06-29 David Mosberger-Tang <davidm@hpl.hp.com>
1945 * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
1947 2000-06-29 Jes Sorensen <jes@linuxcare.com>
1949 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
1950 alias to the fstatfs call.
1952 * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
1953 * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
1955 * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
1956 * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
1958 * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
1959 * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
1960 * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
1961 * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
1963 * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
1964 * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
1966 * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
1967 * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
1969 * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
1970 * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
1972 * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
1974 2000-06-29 Andreas Jaeger <aj@suse.de>
1976 * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
1978 (print_err_message): Likewise.
1979 Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
1981 2000-06-29 Ulrich Drepper <drepper@redhat.com>
1983 * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
1984 used as words is properly aligned.
1986 * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
1989 2000-06-29 Greg McGary <greg@mcgary.org>
1991 * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
1992 * sysdeps/unix/make-syscalls.sh: Handle signatures of
1993 length 7..9, just in case...
1994 * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
1996 * sysdeps/i386/bp-asm.h (PCOFF): New constant.
1997 (POP_ERRNO_LOCATION_RETURN): Fold insns.
1998 * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
1999 (PUSH_SIGNAL_MASK): New macro.
2000 * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
2001 LEAVE is unnecessary. Check bounds of jmp_buf.
2002 * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK. Wrap symbols
2003 in BP_SYM (). Check bounds of jmp_buf. Don't call LEAVE until
2004 immediately before tail-call.
2005 * sysdeps/i386/setjmp.S: Likewise.
2006 * sysdeps/i386/bsd-_setjmp.S: Likewise.
2007 * sysdeps/i386/bsd-setjmp.S: Likewise.
2009 2000-06-29 Jakub Jelinek <jakub@redhat.com>
2011 * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
2013 * sysdeps/sparc/fpu/fesetenv.c: Likewise.
2014 * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
2015 * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
2016 * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
2017 * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
2018 * sysdeps/sparc/fpu/fegetenv.c: Likewise.
2019 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
2020 * shlib-versions: Make sparc64 GLIBC_2.2+ only.
2022 2000-06-29 Ulrich Drepper <drepper@redhat.com>
2024 * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
2025 we later need to calling free().
2026 Patch by Matt Wilson <msw@redhat.com>.
2028 * stdio-common/tst-printf.c: Add test for above problem.
2030 2000-06-27 David Mosberger-Tang <davidm@hpl.hp.com>
2032 * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
2033 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
2035 2000-06-28 Jes Sorensen <jes@linuxcare.com>
2037 * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
2038 prototype for abs().
2039 * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
2041 2000-06-23 Andreas Jaeger <aj@suse.de>
2043 * config.h.in: Don't use regparm with bounded pointers.
2045 2000-06-29 Ulrich Drepper <drepper@redhat.com>
2047 * stdlib/grouping.h: Correctly handle multibyte thousands
2048 separator and decimal point.
2049 * stdlib/stdtod.c: Likewise.
2050 * sysdeps/generic/strtol.c: Likewise.
2052 * locale/categories.def: Add entries for wide character decimal point
2053 and thousands separator in numeric and monetary category.
2055 2000-06-28 Ulrich Drepper <drepper@redhat.com>
2057 * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
2058 second definition and initialization of decimal.
2060 2000-06-28 Greg McGary <greg@mcgary.org>
2062 * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
2064 (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
2065 * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
2067 (_IO_JUMPS): Don't cast THIS--expect arg to be a
2068 (struct _IO_FILE_plus *).
2069 (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
2070 THIS, since _IO_JUMPS no longer does it implicitly.
2071 (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
2072 arg type as (struct _IO_FILE_plus *).
2073 (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
2074 arg as (_IO_strfile *).
2075 * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
2076 Declare 1st arg as (_IO_strfile *).
2077 * libio/fileops.c (_IO_new_file_init): Declare
2078 arg type as (struct _IO_FILE_plus *).
2079 * libio/oldfileops.c (_IO_old_file_init): Likewise.
2080 * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
2081 (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
2082 Declare iteration pointer as (struct _IO_FILE_plus *).
2083 (_IO_iter_next, _IO_iter_file): _IO_ITER is now
2084 (struct _IO_FILE_plus *).
2085 * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
2086 * libio/oldstdfiles.c (_IO_list_all): Likewise.
2087 (_IO_check_libio): Set user-visible handles to
2088 (struct _IO_FILE_plus *).
2089 * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
2090 to (struct _IO_FILE_plus *).
2092 * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
2093 whose high bound includes vtable to all functions that will use
2094 vtable. For streambufs, pass pointer whose bounds include struct
2096 * libio/wgenops.c (_IO_wdefault_finish): Likewise.
2097 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2098 * libio/iofopen.c (_IO_new_fopen): Likewise.
2099 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2100 * libio/iofopen64.c (_IO_fopen64): Likewise.
2101 * libio/iopopen.c (_IO_new_popen): Likewise.
2102 * libio/oldiopopen.c (_IO_old_popen): Likewise.
2103 * libio/memstream.c (open_memstream): Likewise.
2104 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2105 * libio/iovsprintf.c (_IO_vsprintf): Likewise.
2106 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2107 * libio/iofopncook.c (_IO_cookie_init): Likewise.
2108 * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
2109 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2110 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2111 * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
2112 * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
2113 * stdlib/strfmon.c (__strfmon_l): Likewise.
2114 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
2115 (vfprintf): Qualify computed-goto targets as unbounded.
2117 2000-06-28 Ulrich Drepper <drepper@redhat.com>
2119 * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
2120 thousands separator correctly.
2122 * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
2123 * stdio-common/vfwscanf.c: Likewise.
2125 2000-06-27 Jes Sorensen <jes@linuxcare.com>
2127 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
2128 count into signatures for most calls.
2130 2000-06-28 Ulrich Drepper <drepper@redhat.com>
2132 * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed. We can use
2133 the generic parser now.
2135 2000-06-28 Jes Sorensen <jes@linuxcare.com>
2137 * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted. Hash
2138 table entries are 32 bit on the ia64 (as specified by the ABI),
2139 not 64 bit as on the Alpha.
2141 * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
2142 change of objects to use 32 bit hash table indices (see above).
2144 2000-06-28 Jes Sorensen <jes@linuxcare.com>
2146 * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
2147 prototype for abs().
2149 2000-06-28 Wolfram Gloger <wg@malloc.de>
2151 * malloc/malloc.c (chunk_alloc): If extension of the linear heap
2152 fails, try mmap_chunk() as a last resort even though n_mmaps_max
2153 may have been reached.
2155 2000-06-28 Ulrich Drepper <drepper@redhat.com>
2157 * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
2158 symbols in multi-character weights correctly.
2160 * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
2161 depending on whether the input string is empty or not.
2163 * wcsmbs/mbrtowc.c: Calling function without input means clearing the
2164 given state and not avoiding this by modifying a local object.
2165 * wcsmbs/wcrtomb.c: Likewise.
2167 * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
2168 object since some incomplete characters might be in there.
2170 * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
2171 sequences with first byte 0x8e correctly.
2173 * iconvdata/jis0208.h: Remove redundant test.
2175 2000-06-27 Ulrich Drepper <drepper@redhat.com>
2177 * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
2178 Add it where it is needed now.
2180 * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
2181 the input charset into account when generating the hash table.
2182 (allocate_arrays): Correct setting default width. Not all empty slots
2183 in the table are filled, only those not covert explicitly by the
2184 locale description and in the charset.
2186 * wctype/towctrans.c (__towctrans): Be graceful and accept error
2187 return values from the wctrans function.
2189 * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
2190 wide character version.
2191 For %C handling, test correct pointer variable for NULL.
2193 * wcsmbs/wctob.c: Handle WEOF special.
2195 * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
2197 * wctype/wctype.h: Protect gcc-isms with __extension__. Avoid
2198 always-true test to avoid warning.
2200 2000-06-27 Greg McGary <greg@mcgary.org>
2202 * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
2203 * include/libc-symbols.h (weak_extern): Add extra level of expansion.
2204 (symbol_version, default_symbol_version): Factor redundant
2205 definitions out of conditional.
2207 2000-06-27 Jakub Jelinek <jakub@redhat.com>
2209 * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
2212 2000-06-26 Ulrich Drepper <drepper@redhat.com>
2214 * include/libc-symbols.h (symbol_version): Add extra level of
2216 (default_symbol_version): Likewise.
2218 2000-06-26 Greg McGary <greg@mcgary.org>
2220 * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
2221 for BP return value & push implicit struct-return pointer to
2223 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2224 (SYSCALL_ERROR_HANDLER): Likewise.
2225 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
2226 (SYSCALL_ERROR_HANDLER): Likewise.
2228 * Makeconfig: Add missing comment.
2229 * csu/Makefile (extra-objs, omit-deps, install-lib): Add
2230 BP-flavored startup object.
2231 ($(objpfx)b$(start-installed-name)): New rule.
2232 * include/libc-symbols.h (symbol_set_declare): Change type
2233 of `__start_##set' and `__stop_##set' to pointer-to-function.
2234 (symbol_set_declare): Change type of `set' to array of
2235 pointer-to-function.
2236 * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
2237 pointer-to-function.
2239 * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
2241 * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
2242 Remove clock_* and timer_* entries.
2243 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
2244 arg-count with signatures.
2246 * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
2247 Check bounds of arguments.
2248 * sysdeps/i386/addmul_1.S: Likewise.
2249 * sysdeps/i386/lshift.S: Likewise.
2250 * sysdeps/i386/mul_1.S: Likewise.
2251 * sysdeps/i386/rshift.S: Likewise.
2252 * sysdeps/i386/sub_n.S: Likewise.
2253 * sysdeps/i386/submul_1.S: Likewise.
2254 * sysdeps/i386/i586/add_n.S: Likewise.
2255 * sysdeps/i386/i586/addmul_1.S: Likewise.
2256 * sysdeps/i386/i586/lshift.S: Likewise.
2257 * sysdeps/i386/i586/rshift.S: Likewise.
2258 * sysdeps/i386/i586/sub_n.S: Likewise.
2259 * sysdeps/i386/i686/add_n.S: Likewise.
2261 * sysdeps/i386/memchr.S: Likewise.
2262 * sysdeps/i386/memcmp.S: Likewise.
2263 * sysdeps/i386/rawmemchr.S: Likewise.
2264 * sysdeps/i386/i586/bzero.S: Likewise.
2265 * sysdeps/i386/i586/memcpy.S: Likewise.
2266 * sysdeps/i386/i586/mempcpy.S: Likewise.
2267 * sysdeps/i386/i586/memset.S: Likewise.
2268 * sysdeps/i386/i686/bzero.S: Likewise.
2269 * sysdeps/i386/i686/memcpy.S: Likewise.
2270 * sysdeps/i386/i686/mempcpy.S: Likewise.
2271 * sysdeps/i386/i686/memset.S: Likewise.
2273 * sysdeps/i386/stpcpy.S: Likewise.
2274 * sysdeps/i386/stpncpy.S: Likewise.
2275 * sysdeps/i386/strchr.S: Likewise.
2276 * sysdeps/i386/strchrnul.S: Likewise.
2277 * sysdeps/i386/strcspn.S: Likewise.
2278 * sysdeps/i386/strpbrk.S: Likewise.
2279 * sysdeps/i386/strrchr.S: Likewise.
2280 * sysdeps/i386/strspn.S: Likewise.
2281 * sysdeps/i386/strtok.S: Likewise.
2282 * sysdeps/i386/strtok_r.S: Likewise.
2283 * sysdeps/i386/i486/strcat.S: Likewise.
2284 * sysdeps/i386/i486/strlen.S: Likewise.
2285 * sysdeps/i386/i586/strchr.S: Likewise.
2286 * sysdeps/i386/i586/strcpy.S: Likewise.
2287 * sysdeps/i386/i586/strlen.S: Likewise.
2288 * sysdeps/i386/i686/strcmp.S: Likewise.
2289 * sysdeps/i386/i686/strtok.S: Likewise.
2290 * sysdeps/i386/i686/strtok_r.S: Likewise.
2292 * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
2293 * sysdeps/i386/fpu/fesetenv.c: Likewise.
2294 * sysdeps/i386/fpu/feupdateenv.c: Likewise.
2295 * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
2296 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
2298 * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
2299 * sysdeps/i386/mul_1.S: Likewise.
2300 * sysdeps/i386/submul_1.S: Likewise.
2301 * sysdeps/i386/i586/add_n.S: Likewise.
2302 * sysdeps/i386/i586/addmul_1.S: Likewise.
2303 * sysdeps/i386/i586/lshift.S: Likewise.
2304 * sysdeps/i386/i586/mul_1.S: Likewise.
2305 * sysdeps/i386/i586/rshift.S: Likewise.
2306 * sysdeps/i386/i586/sub_n.S: Likewise.
2307 * sysdeps/i386/i586/submul_1.S: Likewise.
2309 2000-06-26 Ulrich Drepper <drepper@redhat.com>
2311 * rt/Makefile (librt-routines): Add clock_nanosleep.
2312 * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
2313 * sysdeps/generic/clock_nanosleep.c: New file.
2314 * sysdeps/unix/clock_nanosleep.c: New file.
2315 * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
2316 * time/time.h: Declare clock_nanosleep.
2318 2000-06-26 Greg McGary <greg@mcgary.org>
2320 * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
2321 INSN1, INSN2, TEXT, GLOBL): Remove macros.
2322 (ALIGN): Cleanup surrounding conditionals.
2324 * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
2325 Call ENTER/LEAVE macros.
2326 * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
2327 * sysdeps/i386/submul_1.S: Likewise.
2329 * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
2330 syntax. Define & use symbolic argument stack offsets. Call
2332 * sysdeps/i386/i586/mul_1.S: Likewise.
2333 * sysdeps/i386/i586/submul_1.S: Likewise.
2335 2000-06-25 Greg McGary <greg@mcgary.org>
2337 * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
2340 2000-06-25 Ulrich Drepper <drepper@redhat.com>
2342 * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
2343 * iconvdata/gen-8bit-gap.sh: Likewise.
2344 * iconvdata/gen-8bit.sh: Likewise.
2346 * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
2348 * locale/programs/ld-collate.c (collate_read): Don't actually read
2349 the copy locale if we are ignoring the content.
2351 * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
2354 * locale/programs/ld-collate.c: Correct handling of different
2356 * locale/programs/localedef.c (add_to_readlist): Take locale pointer
2357 as extra parameter from which to copy category information.
2359 (load_locale): Likewise.
2360 * locale/programs/localedef.h: Update prototypes of add_to_readlist
2362 * locale/programs/ld-ctype.c: Update call to add_to_readlist.
2363 * locale/programs/locfile.h: Likewise.
2364 * locale/programs/locfile-kw.gperf: Add entry for script.
2365 * locale/programs/locfile-token.h: Add tok_script.
2367 * locale/programs/locale.c: Update copyright year.
2368 * locale/programs/localedef.c: Likewise.
2370 2000-06-23 Thorsten Kukuk <kukuk@suse.de>
2372 * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
2373 Jens Moeller <jens.moeller@waii.com>.
2375 2000-06-24 Ulrich Drepper <drepper@redhat.com>
2377 * locale/programs/ld-name.c (name_finish): Add missing format
2378 specifier to test for name_fmt.
2380 * locale/programs/ld-address.c (iso639): Correct length of string
2382 (iso3166): Likewise.
2384 * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
2386 * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
2389 * elf/elf.h (NT_PRFPXREG): Define.
2391 2000-06-23 Ulrich Drepper <drepper@redhat.com>
2393 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
2394 PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
2396 2000-06-23 Andreas Schwab <schwab@suse.de>
2398 * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
2401 2000-06-23 Andreas Jaeger <aj@suse.de>
2403 * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
2405 * io/test-stat.c: Add copyright header, mention Maciej.
2407 * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
2408 SYS_mincore, SYS_madvise): Added.
2410 * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
2413 2000-06-22 Ulrich Drepper <drepper@redhat.com>
2415 * libio/Makefile (tests): Add tst-getwc and tst_putwc.
2416 (CFLAGS-tst_putwc.c): New definition.
2417 * libio/tst_getwc.c: New file.
2418 * libio/tst_getwc.input: New file.
2419 * libio/tst_putwc.c: New file.
2421 * include/string.h: Add prototype for __strdup.
2423 2000-06-22 Greg McGary <greg@mcgary.org>
2425 * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
2426 * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
2429 2000-06-23 Jes Sorensen <jes@linuxcare.com>
2431 * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
2433 2000-06-22 Jes Sorensen <jes@linuxcare.com>
2435 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
2437 2000-06-22 Jes Sorensen <jes@linuxcare.com>
2439 * shlib-versions: Bump so versions to 6.1 for libc and libm on the
2440 ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
2442 2000-06-22 Ulrich Drepper <drepper@redhat.com>
2444 * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
2445 * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
2447 * sysdeps/mach/hurd/bits/stat.h: Likewise.
2448 * sysdeps/unix/bsd/bits/stat.h: Likewise.
2449 * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
2450 * sysdeps/unix/sysv/bits/stat.h: Likewise.
2451 * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
2452 * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
2453 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2454 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2455 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2456 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2457 * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
2458 * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
2459 * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
2460 * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
2463 2000-06-22 Andreas Jaeger <aj@suse.de>
2465 * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
2468 * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
2470 * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
2472 2000-06-21 Ulrich Drepper <drepper@redhat.com>
2474 * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
2477 2000-06-21 Greg McGary <greg@mcgary.org>
2479 * Makerules (elide-routines.*, elide-bp-thunks):
2480 Define unconditionally.
2482 2000-06-21 Jes Sorensen <jes@linuxcare.com>
2484 * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
2486 2000-06-21 Andreas Jaeger <aj@suse.de>
2488 * io/Makefile (tests): Add test-stat.
2489 (CFLAGS-test-stat.c): New.
2491 * io/test-stat.c: New file from Maciej W. Rozycki
2492 <macro@ds2.pg.gda.pl>.
2494 2000-06-21 Jes Sorensen <jes@linuxcare.com>
2496 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
2497 in __rlimit_resource to make them match the kernel order.
2498 rlim_t is always 64 bit, use __rlim64_t to declare it
2501 2000-05-04 Jes Sorensen <jes@linuxcare.com>
2503 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
2504 RLIM_INFINITY before defining it to avoid clash with kernel header
2506 2000-05-03 Jes Sorensen <jes@linuxcare.com>
2508 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
2510 2000-06-21 Ulrich Drepper <drepper@redhat.com>
2512 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
2514 2000-06-21 Andreas Jaeger <aj@suse.de>
2516 * stdio-common/temptest.c: Include <stdlib.h>.
2517 * stdio-common/tst-fileno.c: Likewise.
2518 * stdio-common/scanf4.c: Likewise.
2519 * stdio-common/scanf5.c: Likewise.
2520 * time/clocktest.c: Likewise.
2521 * posix/test-vfork.c: Likewise.
2522 * posix/globtest.c: Likewise.
2523 * io/test-utime.c: Likewise.
2524 * wctype/test_wcfuncs.c: Likewise.
2525 * crypt/cert.c: Likewise.
2527 * stdio-common/tst-printfsz.c: Include <string.h>.
2528 * libio/tst_swscanf.c: Likewise.
2529 * libio/tst_wscanf.c: Likewise.
2530 * posix/runtests.c: Likewise.
2531 * posix/tst-getaddrinfo.c: Likewise.
2532 * posix/wordexp-test.c: Likewise.
2533 * misc/tst-efgcvt.c: Likewise.
2535 * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
2536 * nss/test-netdb.c: Likewise.
2538 * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
2539 supported kernel for MIPS.
2541 * elf/vismod2.c: Include <stdlib.h> for abort prototype.
2542 * rt/aio_suspend.c: Likewise.
2544 2000-06-20 Ulrich Drepper <drepper@redhat.com>
2546 * math/libm-test.inc: Include <string.h>.
2548 2000-06-20 Jes Sorensen <jes@linuxcare.com>
2550 * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
2552 2000-06-20 Jes Sorensen <jes@linuxcare.com>
2554 * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
2555 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
2557 2000-06-20 David Mosberger-Tang <davidm@hpl.hp.com>
2559 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
2561 2000-06-20 Jes Sorensen <jes@linuxcare.com>
2563 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
2565 2000-06-20 Ulrich Drepper <drepper@redhat.com>
2567 * locale/programs/ld-collate.c (insert_value): Now take string and
2568 length instead of struct token* parameter. Adjust use of token.
2569 (handle_ellipsis): Likewise.
2570 (collate_read): Allow <Uxxxx> names and transform them into names
2571 to be passed to insert_value and handle_ellipsis.
2573 * locale/programs/ld-ctype.c (uninames): New array with names of
2574 digits in <Uxxxxxxxx> format.
2575 (ctype_finish): Correct search for space character value. Likewise
2576 for default outdigits values.
2578 2000-06-20 Greg McGary <greg@mcgary.org>
2580 * Makerules (objects): Add BP thunks.
2582 2000-06-20 Ulrich Drepper <drepper@redhat.com>
2584 * locale/programs/charmap.c (parse_charmap): Handle UCS names also
2585 in width definitions.
2587 2000-06-20 Andreas Jaeger <aj@suse.de>
2589 * sysdeps/mips/fpu/libm-test-ulps: New file.
2591 * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
2594 * sysdeps/mips/fpu/feholdexcpt.c: New file.
2596 * sysdeps/mips/fpu/fraiseexcpt.c: New file.
2598 2000-06-19 Ulrich Drepper <drepper@redhat.com>
2600 * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
2601 change in gconv_builtin.h.
2603 * malloc/Makefile: Change all references to memprof into memusage.
2604 * malloc/memprof.c: Rename to...
2605 * malloc/memusage.c: ...this. New file.
2606 * malloc/memprof.sh: Rename to...
2607 * malloc/memusage.sh: ...this. New file.
2608 * malloc/memprofstat.c: Rename to...
2609 * malloc/memusagestat.c: ...this. New file.
2610 * sysdeps/alpha/memprof.h: Rename to..
2611 * sysdeps/alpha/memusage.h: ...this. New file.
2612 * sysdeps/arm/memprof.h: Rename to..
2613 * sysdeps/arm/memusage.h: ...this. New file.
2614 * sysdeps/generic/memprof.h: Rename to..
2615 * sysdeps/generic/memusage.h: ...this. New file.
2616 * sysdeps/i386/memprof.h: Rename to..
2617 * sysdeps/i386/memusage.h: ...this. New file.
2618 * sysdeps/ia64/memprof.h: Rename to..
2619 * sysdeps/ia64/memusage.h: ...this. New file.
2620 * sysdeps/m68k/memprof.h: Rename to..
2621 * sysdeps/m68k/memusage.h: ...this. New file.
2622 * sysdeps/mips/memprof.h: Rename to..
2623 * sysdeps/mips/memusage.h: ...this. New file.
2624 * sysdeps/powerpc/memprof.h: Rename to..
2625 * sysdeps/powerpc/memusage.h: ...this. New file.
2626 * sysdeps/sparc/memprof.h: Rename to..
2627 * sysdeps/sparc/memusage.h: ...this. New file.
2628 * sysdeps/sh/memprof.h: Rename to..
2629 * sysdeps/sh/memusage.h: ...this. New file.
2631 * elf/sprof.c (print_version): Update year.
2633 * elf/sprof.c (load_shobj): Don't always add load address to dynamic
2634 table entry values. Use D_PTR.
2635 * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
2636 binaries without PLT. Patches by James Mathiesen <james@curl.com>.
2638 2000-06-20 Jes Sorensen <jes@linuxcare.com>
2640 * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
2641 * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
2642 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
2643 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
2645 2000-05-05 Jes Sorensen <jes@linuxcare.com>
2647 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
2649 2000-06-16 Jes Sorensen <jes@linuxcare.com>
2651 * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
2652 * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
2653 * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
2655 * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
2657 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
2660 * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
2661 __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
2663 Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
2666 2000-06-15 Jes Sorensen <jes@linuxcare.com>
2668 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
2670 2000-06-08 Jes Sorensen <jes@linuxcare.com>
2672 * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
2674 2000-06-19 Ulrich Drepper <drepper@redhat.com>
2676 * iconv/gconv_int.h (strict gconv_module): Remove all members
2677 associated with regular expressions. Use a simple string as the
2679 * iconv/gconv_db.c: Remove code handling regular expressions.
2680 * iconv/gconv_conf.c: Likewise.
2681 * iconv/iconv_prog.c: Likewise.
2682 * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
2684 * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
2685 General namespace cleanup.
2686 (struct __gconv_trans_data): Add next field.
2687 (struct __gconv_step_data): Make __trans a pointer.
2688 * iconv/gconv_conf.c: Split out code to find gconv directories from
2689 __gconv_read_conf in new functions.
2690 * iconv/gconv_int.h: Define new data structure and declare new
2691 functions for handling of gconv directory list.
2692 * iconv/gconv_open.c: Allow more than one error handling step being
2693 used. Call function to load error handling module if it is none
2694 of the builtin transformations.
2695 * iconv/gconv_close.c: Add code to free transliteration data.
2696 * iconv/gconv_trans.c: Add functions to load and unload modules
2697 implementing transliteration etc.
2698 * iconv/skeleton.c: Call all context functions now that more than
2699 one module is allowed.
2700 * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
2701 * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
2702 where the full error handling using transliteration is needed.
2703 * iconvdata/8bit-gap.c: Likewise.
2704 * iconvdata/8bit-generic.c: Likewise.
2705 * iconvdata/ansi_x3.110.c: Likewise.
2706 * iconvdata/big5.c: Likewise.
2707 * iconvdata/big5hkscs.c: Likewise.
2708 * iconvdata/euc-cn.c: Likewise.
2709 * iconvdata/euc-jp.c: Likewise.
2710 * iconvdata/euc-kr.c: Likewise.
2711 * iconvdata/euc-tw.c: Likewise.
2712 * iconvdata/gbgbk.c: Likewise.
2713 * iconvdata/gbk.c: Likewise.
2714 * iconvdata/iso-2022-cn.c: Likewise.
2715 * iconvdata/iso-2022-jp.c: Likewise.
2716 * iconvdata/iso-2022-kr.c: Likewise.
2717 * iconvdata/iso646.c: Likewise.
2718 * iconvdata/iso8859-1.c: Likewise.
2719 * iconvdata/iso_6937-2.c: Likewise.
2720 * iconvdata/iso_6937.c: Likewise.
2721 * iconvdata/johab.c: Likewise.
2722 * iconvdata/sjis.c: Likewise.
2723 * iconvdata/t.61.c: Likewise.
2724 * iconvdata/uhc.c: Likewise.
2725 * iconvdata/unicode.c: Likewise.
2726 * iconvdata/utf-16.c: Likewise.
2727 * libio/iofwide.c: Reset __trans member of __gconv_trans_data
2728 structure correctly after last change.
2729 * wcsmbs/btowc.c: Likewise.
2730 * wcsmbs/mbrtowc.c: Likewise.
2731 * wcsmbs/mbsnrtowcs.c: Likewise.
2732 * wcsmbs/mbsrtowcs.c: Likewise.
2733 * wcsmbs/wcrtomb.c: Likewise.
2734 * wcsmbs/wcsnrtombs.c: Likewise.
2735 * wcsmbs/wcsrtombs.c: Likewise.
2736 * wcsmbs/wctob.c: Likewise.
2738 * localedata/Makefile: Set -Wno-format for some files since gcc does
2739 not know all the format specifiers.
2741 2000-06-18 Ulrich Drepper <drepper@redhat.com>
2743 * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
2745 * locale/lc-time.c (_nl_init_era_entries): Likewise.
2747 2000-06-18 Andreas Jaeger <aj@suse.de>
2749 * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
2750 Patch by Ralf Baechle <ralf@uni-koblenz.de>.
2752 2000-06-17 Ulrich Drepper <drepper@redhat.com>
2754 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
2756 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
2758 * locale/programs/ld-ctype.c (ctype_output): Really write out
2759 mboutdigits information.
2760 * localedata/tst-trans.c: Add code to test printf's I flag with locale.
2761 * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
2762 * localedata/tests/trans.def: Add outdigit information.
2764 * localedata/tst-mbswcs3.c: Remove comment.
2766 * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
2767 * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
2768 * libio/tst_wprintf.c (main): Add test for I flag.
2770 * iconv/gconv_trans.c: Implement handling if translit_ignore.
2771 * locale/langinfo.h: Add entries for translit_ignore information.
2772 * locale/categories.def: Add entries for new LC_CTYPE elements.
2773 * locale/C-ctype.c: Add initializers for new fields. Use NULL
2774 pointer instead of "" where possible.
2775 * locale/programs/ld-ctype.c: Write out translit_ignore information.
2776 * intl/Depend: Add localedata.
2777 * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
2778 * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
2780 2000-06-16 Ulrich Drepper <drepper@redhat.com>
2782 * locale/langinfo.h: Add entries for default_missing information.
2783 * locale/C-ctype.c: Add initializers for new fields.
2784 * iconv/gconv_trans.c: If nothing matched, try to use default_missing
2786 * locale/categories.h: Add entries for all LC_CTYPE values.
2787 * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
2790 * localedata/tst-trans.c: Write out an error message if class is
2793 * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
2794 * iconv/gconv_open.c: Remove error handling specification from `from'
2796 * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
2797 new parameter to always enable transliteration.
2798 * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
2800 (struct locale_data): Add new members use_translit and options.
2801 * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
2802 character set name contained modifier TRANSLIT.
2803 * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
2805 (_nl_unload_locale): Free options string if necessary.
2806 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
2807 the locale names suggested this.
2808 * locale/C-address.c: Add two new initialilzers to adjust data
2809 structure for new format.
2810 * locale/C-collate.c: Likewise.
2811 * locale/C-ctype.c: Likewise.
2812 * locale/C-identification.c: Likewise.
2813 * locale/C-measurement.c: Likewise.
2814 * locale/C-messages.c: Likewise.
2815 * locale/C-monetary.c: Likewise.
2816 * locale/C-name.c: Likewise.
2817 * locale/C-numeric.c: Likewise.
2818 * locale/C-paper.c: Likewise.
2819 * locale/C-telephone.c: Likewise.
2820 * locale/C-time.c: Likewise.
2822 * locale/setlocale.c: Add some more __builtin_expect.
2824 2000-06-15 Ulrich Drepper <drepper@redhat.com>
2826 * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
2828 (__gconv_init_fct): Remove two parameters.
2829 * iconv/gconv_int.h (__gconv_transliterate): Renamed from
2830 gconv_transliterate. Remove two parameters.
2831 Change prototypes of builtin functions according to __gconv_fct change.
2832 * iconv/skeleton.c: Change type of fifth parameter. make sure it is
2833 != NULL only during error handling. Stop in this case after the
2835 * iconv/gconv_trans.c: Replace with real implementation for
2836 __gconv_transliterate.
2837 * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
2838 * iconv/gconv.c: Change calls to downstream functions once again.
2839 Use NULL for the fifth parameter instead of pointer to output buffer.
2840 * libio/iofwide.c: Likewise.
2841 * wcsmbs/btowc.c: Likewise.
2842 * wcsmbs/mbrtowc.c: Likewise.
2843 * wcsmbs/mbsnrtowcs.c: Likewise.
2844 * wcsmbs/mbsrtowcs.c: Likewise.
2845 * wcsmbs/wcrtomb.c: Likewise.
2846 * wcsmbs/wcsnrtombs.c: Likewise.
2847 * wcsmbs/wcsrtombs.c: Likewise.
2848 * wcsmbs/wctob.c: Likewise.
2849 * iconv/gconv_simple.c: Remove two parameters from error handling
2851 * iconvdata/8bit-gap.c: Likewise.
2852 * iconvdata/8bit-generic.c: Likewise.
2853 * iconvdata/ansi_x3.110.c: Likewise.
2854 * iconvdata/big5.c: Likewise.
2855 * iconvdata/big5hkscs.c: Likewise.
2856 * iconvdata/euc-cn.c: Likewise.
2857 * iconvdata/euc-jp.c: Likewise.
2858 * iconvdata/euc-kr.c: Likewise.
2859 * iconvdata/euc-tw.c: Likewise.
2860 * iconvdata/gbgbk.c: Likewise.
2861 * iconvdata/gbk.c: Likewise.
2862 * iconvdata/iso-2022-cn.c: Likewise.
2863 * iconvdata/iso-2022-jp.c: Likewise.
2864 * iconvdata/iso-2022-kr.c: Likewise.
2865 * iconvdata/iso646.c: Likewise.
2866 * iconvdata/iso8859-1.c: Likewise.
2867 * iconvdata/iso_6937-2.c: Likewise.
2868 * iconvdata/iso_6937.c: Likewise.
2869 * iconvdata/johab.c: Likewise.
2870 * iconvdata/sjis.c: Likewise.
2871 * iconvdata/t.61.c: Likewise.
2872 * iconvdata/uhc.c: Likewise.
2873 * iconvdata/unicode.c: Likewise.
2874 * iconvdata/utf-16.c: Likewise.
2876 2000-06-15 Greg McGary <greg@mcgary.org>
2878 * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
2879 of callnum assignment. Tolerate callnum expressions containing
2882 2000-06-14 Ulrich Drepper <drepper@redhat.com>
2884 * login/Makefile (utmpd): Remove rule to build utmpd.
2886 * csu/Versions: Move libgcc frame handling functions from here...
2887 * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
2888 * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
2889 * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
2890 * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
2891 * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
2892 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
2894 * sysdeps/mach/hurd/i386/Versions: ...and here. New file.
2896 * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
2898 * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
2900 2000-06-14 Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
2902 * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
2904 * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
2905 * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
2906 * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
2907 * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
2909 2000-06-14 Jakub Jelinek <jakub@redhat.com>
2911 * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
2912 defined, terminate quotes and read them after the comment char.
2913 * configure.in (HAVE_SECTION_QUOTES): Test whether
2914 __attribute__((section ("x"))) puts quotes around x or not.
2915 * config.h.in (HAVE_SECTION_QUOTES): Add.
2916 * configure: Rebuilt.
2918 2000-06-14 Andreas Jaeger <aj@suse.de>
2920 * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
2921 depending on the configure option --sysconfdir.
2922 Closes PR libc/1762.
2923 Patch by Andreas Schwab <schwab@suse.de>.
2925 * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
2927 Reported by Jim Pick <jim@jimpick.com>.
2929 2000-06-14 Ulrich Drepper <drepper@redhat.com>
2931 * misc/syslog.c (vsyslog): Allow open_memstream to fail without
2932 crashing the application. Emit some simple error message.
2933 Reported by mju@panasas.com [PR libc/1769].
2935 2000-06-13 Ulrich Drepper <drepper@redhat.com>
2937 * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
2939 * crypt/Makefile (distribute): Add md5.h.
2941 * Makefile (distribute): Add include/shlib-compat.h.
2943 * Make-dist: Search for tests also in sysdeps hierachy.
2945 * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
2946 ufc.c, speeds.c, README.ufc-crypt, and Banner.
2948 * sysdeps/sparc/Subdirs: New file.
2950 * locale/Makefile (distribute): Add weightwc.h and
2951 programs/localedef.h.
2953 * time/Makefile (distribute): Add datemsk.
2955 * sysdeps/ia64/Dist: Add softpipe.h.
2957 * sysdeps/unix/sysv/aix/Dist: New file.
2959 * posix/setpgrp.c: Moved to...
2960 * sysdeps/generic/setpgrp.c: ...here. New file.
2961 * io/mknod.c: Moved to...
2962 * sysdeps/generic/mknod.c: ...here. New file.
2964 * sysdeps/unix/sysv/linux/ia64/Dist: New file.
2966 * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
2968 * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
2970 * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
2971 gprsave0.S, gprrest1.S, and gprrest0.S.
2973 * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
2975 * posix/Makefile (routines): Add spawnattr_getsigmask,
2976 spawnattr_getschedpolicy, spawnattr_getschedparam,
2977 spawnattr_setsigmask, spawnattr_setschedpolicy, and
2978 spawnattr_setschedparam.
2979 * posix/Versions: Add posix_spawnattr_getschedpolicy,
2980 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
2981 posix_spawnattr_setschedparam.
2983 * posix/spawnattr_setschedparam.c: Fix typo.
2985 * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
2988 * login/programs/utmpd.c: Removed.
2989 * login/programs/utmpd.h: Removed.
2990 * login/programs/utmpd-private.h: Removed.
2992 * Makefile (distribute): Add include/db_185.h and include/db.h.
2994 * iconvdata/Makefile (distribute): Add iso-ir-165.c and
2997 * elf/Makefile (distribute): Add missing files.
2999 * dlfcn/Makefile: Add back rules to include eval in libdl.so.
3000 * elf/eval.c: Moved to...
3001 * dlfcn/eval.c: ...here. New file.
3003 * Makefile (distribute): Also distribute ChangeLog.1?.
3005 * Make-dist (+tsrcs): Remove .args handling here as well.
3007 * rt/Makefile (tests): Add tst-timer.
3008 * sysdeps/generic/tst-timer.c: New file.
3010 * Makerules (sources): Don't add BP sources here.
3012 * login/Makefile (distribute): Remove xtmp.h.
3014 * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
3015 is true. Reported by Bruno Haible <haible@ilog.fr>.
3017 2000-06-13 Andreas Jaeger <aj@suse.de>
3019 * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
3020 Patch by Ralf Baechle <ralf@gnu.org>.
3022 2000-06-13 Ulrich Drepper <drepper@redhat.com>
3024 * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
3025 for mincore syscall.
3027 * misc/sys/cdefs.h: Define __bounded and __unbounded if
3028 __BOUNDED_POINTERS__ is not defined.
3030 2000-06-07 Greg McGary <greg@mcgary.org>
3032 * sysdeps/generic/bp-sym.h: New file.
3033 * sysdeps/generic/bp-start.h: New file.
3034 * sysdeps/i386/elf/start.S: Designate BP symbols.
3035 * sysdeps/generic/libc-start.c: Wrap bounds around
3036 argv & envp and each of their string members.
3038 2000-06-07 Greg McGary <greg@mcgary.org>
3040 * sysdeps/unix/make-syscalls.sh: Add comments to
3041 output that aid debugging & comprehension.
3042 Map simple syscall signatures to number of args.
3043 Generate BP syscall thunk definitions.
3044 * sysdeps/generic/bp-thunks.h: New file.
3045 * sysdeps/unix/syscalls.list: Replace arg-count with
3046 simple return+arg signature.
3047 * sysdeps/unix/common/syscalls.list: Likewise.
3048 * sysdeps/unix/inet/syscalls.list: Likewise.
3049 * sysdeps/unix/mman/syscalls.list: Likewise.
3050 * sysdeps/unix/sysv/syscalls.list: Likewise.
3051 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3052 * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
3054 2000-06-07 Greg McGary <greg@mcgary.org>
3056 * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
3057 for all files *.[cS].
3058 (CFLAGS-.ob): Don't optimize sibling calls.
3059 (bppfx): New variable.
3060 * Makerules (elide-bp-thunks): New variable.
3061 (elide-routines.*): Elide BP-* files for all but *.ob.
3062 (sources): Include bp-thunks.
3064 2000-06-12 Ulrich Drepper <drepper@redhat.com>
3066 * iconv/gconv_simple.c: Remove unnecessary prototype.
3068 * iconv/gconv_trans.c: Pretty print.
3070 * elf/elf.h (R_SH_NUM): Got accidently dropped.
3072 * sysdeps/unix/sysv/linux/configure.in: Improve handling of
3073 minimal kernel versions. Add information about IA-64 kernel.
3075 * sysdeps/unix/sysv/linux/configure.in: Allow architecture
3076 specific minimal supported kernel versions to be specified.
3078 * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
3079 step data structure.
3080 * wcsmbs/btowc.c: Likewise.
3081 * wcsmbs/mbrtowc.c: Likewise.
3082 * wcsmbs/mbsnrtowcs.c: Likewise.
3083 * wcsmbs/mbsrtowcs.c: Likewise.
3084 * wcsmbs/wcrtomb.c: Likewise.
3085 * wcsmbs/wcsnrtombs.c: Likewise.
3086 * wcsmbs/wcsrtombs.c: Likewise.
3087 * wcsmbs/wctob.c: Likewise.
3089 * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
3090 * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
3092 * shlib-versions: Earliest backward compatible version for SH is 2.2.
3094 * misc/sys/cdefs.h: Remove one more __P.
3096 * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
3099 * sysdeps/sh/sh3/bits/setjmp.h: Removed.
3100 * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
3101 * sysdeps/sh/bits/setjmp.h: ...here. New file.
3103 2000-06-12 Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
3104 Yutaka Niibe <gniibe@chroot.org>
3106 * configure.in: Add machine sh3, sh4.
3107 * elf/elf.h: Add SH specific declarations of relocations.
3108 * shlib-versions: Add sh*-*-linux* cases.
3110 2000-06-12 Ulrich Drepper <drepper@redhat.com>
3112 * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
3113 * sysdeps/sh/bsd-_setjmp.S: ...here. New file.
3114 * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
3115 * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
3116 * sysdeps/sh/bsd-setjmp.S: ...here. New file.
3117 * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
3119 * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
3120 instead of KERNEL_MATH_EMULATION.
3121 * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
3122 KERNEL_MATH_EMULATION.
3124 * sysdeps/sh/Dist: Removed. There is no ieee754.h file.
3125 * sysdeps/sh/sh3/dl-machine.h: Moved to...
3126 * sysdeps/sh/dl-machine.h: ...here. New file.
3127 * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
3128 and include generic SH version.
3129 * sysdeps/sh/sh3/bits/endian.h: Move to...
3130 * sysdeps/sh/bits/endian.h: ...here. New file.
3131 * sysdeps/sh/sh4/bits/endian.h: Removed.
3132 * sysdeps/sh/sh3/bits/huge_val.h: Move to...
3133 * sysdeps/sh/bits/huge_val.h: ...here. New file.
3134 * sysdeps/sh/sh4/bits/huge_val.h: Removed.
3136 * include/libc-symbols.h (link_warning): Work around a change in
3137 GAS which warns about changing section attributes.
3138 Proposed by Nick Clifton <nickc@redhat.com>.
3140 2000-06-12 H.J. Lu <hjl@gnu.org>
3142 * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
3144 2000-06-11 H.J. Lu <hjl@gnu.org>
3146 * sysdeps/i386/fpu/Versions: New file.
3148 2000-06-12 Ulrich Drepper <drepper@redhat.com>
3150 * iconv/gconv.h (__gconv_trans_context_fct): Remove two
3152 * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
3155 2000-06-12 Jes Sorensen <jes@linuxcare.com>
3157 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
3158 * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
3159 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
3161 * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
3162 * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
3163 * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
3165 2000-06-12 Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
3166 Yutaka Niibe <gniibe@chroot.org>
3168 * sysdeps/sh/Dist: New file.
3169 * sysdeps/sh/Implies: New file.
3170 * sysdeps/sh/elf/initfini.c: New file.
3171 * sysdeps/sh/gmp-mparam.h: New file.
3172 * sysdeps/sh/init-first.c: New file.
3173 * sysdeps/sh/machine-gmon.h: New file.
3174 * sysdeps/sh/memcpy.S: New file.
3175 * sysdeps/sh/memprof.h: New file.
3176 * sysdeps/sh/memset.S: New file.
3177 * sysdeps/sh/sh3/__longjmp.S: New file.
3178 * sysdeps/sh/sh3/bits/endian.h: New file.
3179 * sysdeps/sh/sh3/bits/huge_val.h: New file.
3180 * sysdeps/sh/sh3/bits/setjmp.h: New file.
3181 * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
3182 * sysdeps/sh/sh3/bsd-setjmp.S: New file.
3183 * sysdeps/sh/sh3/dl-machine.h: New file.
3184 * sysdeps/sh/sh3/setjmp.S: New file.
3185 * sysdeps/sh/sh4/__longjmp.S: New file.
3186 * sysdeps/sh/sh4/bits/endian.h: New file.
3187 * sysdeps/sh/sh4/bits/huge_val.h: New file.
3188 * sysdeps/sh/sh4/bits/setjmp.h: New file.
3189 * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
3190 * sysdeps/sh/sh4/bsd-setjmp.S: New file.
3191 * sysdeps/sh/sh4/dl-machine.h: New file.
3192 * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
3193 * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
3194 * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
3195 * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
3196 * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
3197 * sysdeps/sh/sh4/fpu/fegetround.c: New file.
3198 * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
3199 * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
3200 * sysdeps/sh/sh4/fpu/fesetround.c: New file.
3201 * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
3202 * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
3203 * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
3204 * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
3205 * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
3206 * sysdeps/sh/sh4/setjmp.S: New file.
3207 * sysdeps/sh/elf/start.S: New file.
3208 * sysdeps/sh/sys/ucontext.h: New file.
3209 * sysdeps/sh/strlen.S: New file.
3210 * sysdeps/sh/sysdep.h: New file.
3211 * sysdeps/unix/sh/sysdep.S: New file.
3212 * sysdeps/unix/sh/sysdep.h: New file.
3213 * sysdeps/unix/sysv/linux/sh/Dist: New file.
3214 * sysdeps/unix/sysv/linux/sh/Makefile: New file.
3215 * sysdeps/unix/sysv/linux/sh/Versions: New file.
3216 * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
3217 * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
3218 * sysdeps/unix/sysv/linux/sh/brk.c: New file.
3219 * sysdeps/unix/sysv/linux/sh/chown.c: New file.
3220 * sysdeps/unix/sysv/linux/sh/clone.S: New file.
3221 * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
3222 * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
3223 * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
3224 * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
3225 * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
3226 * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
3227 * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
3228 * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
3229 * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
3230 * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
3231 * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
3232 * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
3233 * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
3234 * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
3235 * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
3236 * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
3237 * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
3238 * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
3239 * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
3240 * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
3241 * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
3242 * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
3243 * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
3244 * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
3245 * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
3246 * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
3247 * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
3248 * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
3249 * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
3250 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
3251 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
3252 * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
3253 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
3254 * sysdeps/unix/sysv/linux/sh/socket.S: New file.
3255 * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
3256 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
3257 * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
3258 * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
3259 * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
3260 * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
3261 * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
3262 * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
3264 2000-06-12 Ulrich Drepper <drepper@redhat.com>
3266 * Rules (%.out): Define GCONV_PATH in the environment.
3267 * assert/Depend: New file.
3268 * iconvdata/Depend: New file.
3269 * intl/Depend: New file.
3270 * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
3271 * intl/tst-gettext.sh: Likewise.
3272 * iconv/Makefile (routines): Add gconv_trans.
3273 * iconv/gconv_trans.c: New file.
3274 * iconv/gconv.h (struct __gconv_trans_data): New type.
3275 (__gconv_fct): New parameter with starting position in output buffer.
3276 (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
3277 __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
3278 (struct __gconv_step): Add new member __trans.
3279 * iconv/gconv_int.h: Pretty print prototypes.
3280 (gconv_transliterate): New prototype.
3281 (__BUILTIN_TRANS): Update for new conversion function interface.
3282 * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
3283 * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
3284 in names, find appropriate function, and install in the conversion
3285 steps it can be used.
3286 * iconv/skeleton.c: Add additional parameter for beginning of output
3287 buffer. Change calls of downstream functions.
3288 * iconv/loop.c: Change loop function interface completely. Pass in
3289 step and step_data structure. Remove optimization for BODY with
3290 NEED_LENGTH_TEST == 0.
3291 * iconv/gconv_simple.c: Update interfaces of functions. Insert
3292 appropriate error handling code to use transliteration steps. Remove
3293 optimization for BODY with NEED_LENGTH_TEST == 0.
3294 * iconvdata/8bit-gap.c: Likewise.
3295 * iconvdata/8bit-generic.c: Likewise.
3296 * iconvdata/ansi_x3.110.c: Likewise.
3297 * iconvdata/big5.c: Likewise.
3298 * iconvdata/big5hkscs.c: Likewise.
3299 * iconvdata/euc-cn.c: Likewise.
3300 * iconvdata/euc-jp.c: Likewise.
3301 * iconvdata/euc-kr.c: Likewise.
3302 * iconvdata/euc-tw.c: Likewise.
3303 * iconvdata/gbgbk.c: Likewise.
3304 * iconvdata/gbk.c: Likewise.
3305 * iconvdata/iso-2022-cn.c: Likewise.
3306 * iconvdata/iso-2022-jp.c: Likewise.
3307 * iconvdata/iso-2022-kr.c: Likewise.
3308 * iconvdata/iso646.c: Likewise.
3309 * iconvdata/iso8859-1.c: Likewise.
3310 * iconvdata/iso_6937-2.c: Likewise.
3311 * iconvdata/iso_6937.c: Likewise.
3312 * iconvdata/johab.c: Likewise.
3313 * iconvdata/sjis.c: Likewise.
3314 * iconvdata/t.61.c: Likewise.
3315 * iconvdata/uhc.c: Likewise.
3316 * iconvdata/unicode.c: Likewise.
3317 * iconvdata/utf-16.c: Likewise.
3318 * libio/iofwide.c: Adjust to new interface of gconv functions. Use
3320 * wcsmbs/btowc.c: Likewise.
3321 * wcsmbs/mbrtowc.c: Likewise.
3322 * wcsmbs/mbsnrtowcs.c: Likewise.
3323 * wcsmbs/mbsrtowcs.c: Likewise.
3324 * wcsmbs/wcrtomb.c: Likewise.
3325 * wcsmbs/wcsnrtombs.c: Likewise.
3326 * wcsmbs/wcsrtombs.c: Likewise.
3327 * wcsmbs/wctob.c: Likewise.
3329 2000-04-11 Geoff Keating <geoffk@cygnus.com>
3331 * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
3332 other header files. Mention about 128-byte cache line sizes.
3333 (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
3334 * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
3335 for current calling sequence.
3336 * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
3338 * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
3339 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3341 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
3342 and setrlimit syscalls for backwards compatibility.
3344 2000-06-10 Ulrich Drepper <drepper@redhat.com>
3346 * iconv/skeleton.c: Rename converted written to correcter name
3348 * iconv/gconv.c: Rename converted variable to correcter name
3350 * iconv/gconv_int.h: Likewise.
3351 * iconv/gconv_simple.c: Likewise.
3352 * iconv/iconv.c: Likewise.
3353 * iconv/loop.c: Likewise.
3354 * iconvdata/8bit-gap.c: Likewise.
3355 * iconvdata/8bit-generic.c: Likewise.
3356 * iconvdata/ansi_x3.110.c: Likewise.
3357 * iconvdata/big5.c: Likewise.
3358 * iconvdata/big5hkscs.c: Likewise.
3359 * iconvdata/euc-cn.c: Likewise.
3360 * iconvdata/euc-jp.c: Likewise.
3361 * iconvdata/euc-kr.c: Likewise.
3362 * iconvdata/gbgbk.c: Likewise.
3363 * iconvdata/gbk.c: Likewise.
3364 * iconvdata/iso-2022-cn.c: Likewise.
3365 * iconvdata/iso-2022-jp.c: Likewise.
3366 * iconvdata/iso-2022-kr.c: Likewise.
3367 * iconvdata/iso646.c: Likewise.
3368 * iconvdata/iso8859-1.c: Likewise.
3369 * iconvdata/iso_6937-2.c: Likewise.
3370 * iconvdata/iso_6937.c: Likewise.
3371 * iconvdata/johab.c: Likewise.
3372 * iconvdata/sjis.c: Likewise.
3373 * iconvdata/t.61.c: Likewise.
3374 * iconvdata/uhc.c: Likewise.
3375 * iconvdata/unicode.c: Likewise.
3376 * iconvdata/utf-16.c: Likewise.
3378 * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
3379 __cmsg_data field with __extension__.
3381 2000-06-10 David Mosberger <davidm@hpl.hp.com>
3383 * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
3385 2000-06-10 Ulrich Drepper <drepper@redhat.com>
3387 * iconv/gconv_simple.c: Fix various small bugs in several
3390 * iconv/loop.c: Fix comment.
3392 2000-06-10 Jakub Jelinek <jakub@redhat.com>
3394 * elf/link.h: Remove libc internal declarations.
3395 * include/link.h: Move them here.
3397 2000-06-09 Ulrich Drepper <drepper@redhat.com>
3399 * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
3400 Patch by Dan Pop <Dan.Pop@cern.ch>.
3402 Rewrite error message handling.
3403 * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
3405 * elf/dl-error (struct catch): Add objname member.
3406 (_dl_signal_error): Take new parameter with object name. When
3407 passing message on simply store object name and duplicate error
3409 (_dl_catch_error): Take new parameter. Store object name in the
3411 * include/dlfcn.h: Adjust _dl_catch_error prototype.
3412 * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
3413 * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
3414 (dlerror): Add objname to asprintf() parameters.
3415 (_dl_error_run): Pass new parameter to _dl_catch_error.
3416 * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
3417 * elf/dl-open.c (_dl_open): Likewise.
3418 * elf/rtld.c (dl_main): Likewise.
3419 * elf/dl-close.c: Mark error messages with N_().
3420 * elf/dl-deps.c: Likewise.
3421 * elf/dl-error.c: Likewise.
3422 * elf/dl-load.c: Likewise.
3423 * elf/dl-open.c: Likewise.
3424 * elf/dl-reloc.c: Likewise.
3425 * elf/dl-support.c: Likewise.
3426 * elf/dl-sym.c: Likewise.
3427 * elf/dl-version.c: Likewise.
3428 * elf/dl-lookup.c: Add comments about problems with error message
3430 * elf/dl-reloc.c: Likewise.
3431 * elf/dl-version.c: Likewise.
3433 2000-06-09 H.J. Lu <hjl@gnu.org>
3435 * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
3438 * dlfcn/Makefile (distribute): Add failtestmod.c.
3439 (tests): Add failtest.
3440 Add rules to build and run failtest.
3441 * dlfcn/failtest.c: New file.
3442 * dlfcn/failtestmod.c: New file.
3444 2000-06-09 David Mosberger-Tang <davidm@hpl.hp.com>
3446 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
3447 * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
3448 * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
3449 * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
3450 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
3452 2000-06-09 Jes Sorensen <jes@linuxcare.com>
3454 * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
3455 * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
3457 2000-06-09 Jes Sorensen <jes@linuxcare.com>
3458 Ulrich Drepper <drepper@redhat.com>
3460 * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
3461 * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
3462 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
3463 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
3464 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
3465 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
3467 2000-06-09 Ulrich Drepper <drepper@redhat.com>
3469 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
3470 to find correct mount point despite wrong information from the
3473 2000-06-09 Jes Sorensen <jes@linuxcare.com>
3475 * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
3476 the address of a symbol so function pointers are handled properly.
3478 2000-06-08 Ulrich Drepper <drepper@redhat.com>
3480 * sysdeps/i386/Dist: Add bp-asm.h.
3482 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
3483 defaultdir variable instead of "/var/shm" everywhere.
3484 (defaultdir): Change to /dev/shm/.
3486 2000-06-08 Greg McGary <greg@mcgary.org>
3488 * sysdeps/i386/bp-asm.h: New file.
3489 * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
3490 offsets. Add ENTER/LEAVE macros for optionally maintaining
3491 frame-pointer chain when debugging.
3492 * sysdeps/i386/add_n.S: Likewise.
3493 * sysdeps/i386/addmul_1.S: Likewise.
3494 * sysdeps/i386/lshift.S: Likewise.
3495 * sysdeps/i386/memchr.S: Likewise.
3496 * sysdeps/i386/memcmp.S: Likewise.
3497 * sysdeps/i386/mul_1.S: Likewise.
3498 * sysdeps/i386/rawmemchr.S: Likewise.
3499 * sysdeps/i386/rshift.S: Likewise.
3500 * sysdeps/i386/stpcpy.S: Likewise.
3501 * sysdeps/i386/stpncpy.S: Likewise.
3502 * sysdeps/i386/strchr.S: Likewise.
3503 * sysdeps/i386/strchrnul.S: Likewise.
3504 * sysdeps/i386/strcspn.S: Likewise.
3505 * sysdeps/i386/strpbrk.S: Likewise.
3506 * sysdeps/i386/strrchr.S: Likewise.
3507 * sysdeps/i386/strspn.S: Likewise.
3508 * sysdeps/i386/strtok.S: Likewise.
3509 * sysdeps/i386/sub_n.S: Likewise.
3510 * sysdeps/i386/submul_1.S: Likewise.
3511 * sysdeps/i386/elf/setjmp.S: Likewise.
3512 * sysdeps/i386/i486/strcat.S: Likewise.
3513 * sysdeps/i386/i486/strlen.S: Likewise.
3514 * sysdeps/i386/i586/add_n.S: Likewise.
3515 * sysdeps/i386/i586/lshift.S: Likewise.
3516 * sysdeps/i386/i586/memcpy.S: Likewise.
3517 * sysdeps/i386/i586/memset.S: Likewise.
3518 * sysdeps/i386/i586/rshift.S: Likewise.
3519 * sysdeps/i386/i586/strchr.S: Likewise.
3520 * sysdeps/i386/i586/strcpy.S: Likewise.
3521 * sysdeps/i386/i586/strlen.S: Likewise.
3522 * sysdeps/i386/i586/sub_n.S: Likewise.
3523 * sysdeps/i386/i686/add_n.S: Likewise.
3524 * sysdeps/i386/i686/memcpy.S: Likewise.
3525 * sysdeps/i386/i686/mempcpy.S: Likewise.
3526 * sysdeps/i386/i686/memset.S: Likewise.
3527 * sysdeps/i386/i686/strcmp.S: Likewise.
3529 2000-06-08 Ulrich Drepper <drepper@redhat.com>
3531 * sysdeps/unix/sysv/linux/getdtsz.c: New file.
3533 * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
3534 256 and don't use OPEN_MAX.
3536 * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
3537 use it instead of LINK_MAX.
3538 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3540 2000-06-08 Andreas Jaeger <aj@suse.de>
3542 * libio/genops.c (_IO_list_lock): Only compile body if we're
3544 (_IO_list_unlock): Likewise.
3545 (_IO_list_resetlock): Likewise.
3547 2000-06-07 Ulrich Drepper <drepper@redhat.com>
3549 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
3550 unless user defined it.
3552 * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
3553 if not defined by the user.
3555 * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
3556 * libio/iofwrite.c (_IO_fwrite): Likewise.
3558 * time/time.h: Add missing __THROW for clock_getcpuclockid
3561 * elf/Makefile (distribute): Add dl-dtprocnum.h.
3562 * include/elf.h: Include also <dl-dtprocnum.h>.
3563 * elf/dl-deps.c: Likewise.
3564 * elf/dl-lookup.c: Likewise.
3565 * elf/dl-runtime.c: Likewise.
3566 * elf/dl-version.c: Likewise.
3567 * elf/do-rel.h: Likewise.
3568 * elf/dynamic-link.h: Likewise.
3569 * elf/link.h: Likewise.
3570 * elf/rtld.c: Likewise.
3571 * sysdeps/generic/dl-dtprocnum.h: New file.
3572 * sysdeps/ia64/dl-dtprocnum.h: New file.
3573 * sysdeps/mips/dl-dtprocnum.h: New file.
3574 * sysdeps/sparc/dl-dtprocnum.h: New file.
3576 * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
3578 * elf/do-lookup.h: Add some __builtin_expect.
3580 * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
3582 * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
3583 (_dl_dynamic_weak): New variable.
3584 * elf/dl-support.c: Likewise.
3585 * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
3586 * elf/do-lookup.h: If we find a weak definition treat it like a
3587 normal symbol unless _dl_dynamic_weak is nonzero. In the latter
3588 case treat it like before.
3590 * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
3592 * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
3594 * elf/dl-addr.c (_dl_addr): Do exact testing of address range
3595 using l_map_start and l_map_end.
3597 * elf/dl-version.c: Add __builtin_expect in many places.
3599 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
3602 2000-06-04 Kaz Kylheku <kaz@ashi.footprints.net>
3604 Lock for stdio stream list becomes global, for use in LinuxThreads.
3606 * libio/genops.c (_IO_iter_begin, _IO_iter_end,
3607 _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
3608 _IO_list_resetlock): New interface for iterating global list of
3609 streams without accessing the _IO_list_all global variable,
3610 and for manipulating the lock which protects this list.
3611 * libio/libioP.h: Likewise.
3612 * libio/Version: Add entries for the new functions.
3614 * libio/libioP.h (_IO_ITER): New typedef, just an alias for
3615 pointer to _IO_FILE.
3617 2000-06-07 Ulrich Drepper <drepper@redhat.com>
3619 * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
3620 BIT() must actually be BITw().
3622 * locale/programs/ld-ctype.c: Handle SP and space consistently.
3624 * locale/programs/charmap.c: Allow string arguments for
3625 code_set_name and repertoiremap.
3627 2000-06-07 Andreas Jaeger <aj@suse.de>
3629 * elf/Makefile: Build ldconfig only when building shared libraries.
3631 2000-06-07 Jakub Jelinek <jakub@redhat.com>
3633 * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
3635 (fdimf, __fdim, fdim): Likewise.
3637 2000-06-07 Ulrich Drepper <drepper@redhat.com>
3639 * locale/findlocale.c: Add __builtin_expect in many places.
3640 * locale/loadlocale.c: Likewise.
3642 2000-06-06 Greg McGary <greg@mcgary.org>
3644 * sysdeps/mips/elf/start.S: Trim redundant code.
3646 * sysdeps/powerpc/memset.S: Define & use symbolic register names.
3647 Use C comments throughout. Line up operands column with tabs.
3648 * sysdeps/powerpc/strchr.S: Likewise.
3649 * sysdeps/powerpc/strcmp.S: Likewise.
3650 * sysdeps/powerpc/strcpy.S: Likewise.
3651 * sysdeps/powerpc/strlen.S: Likewise.
3653 * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
3654 Get low part of &__curbrk with @l.
3656 2000-06-06 Ulrich Drepper <drepper@redhat.com>
3658 * iconvdata/utf-16.c: Add __builtin_expect in many places.
3659 * iconvdata/unicode.c: Likewise.
3660 * iconvdata/uhc.c: Likewise.
3661 * iconvdata/t.61.c: Likewise.
3662 * iconvdata/sjis.c: Likewise.
3663 * iconvdata/johab.c: Likewise.
3664 * iconvdata/iso_6937.c: Likewise.
3665 * iconvdata/iso_6937-2.c: Likewise.
3666 * iconvdata/iso8859-1.c: Likewise.
3667 * iconvdata/iso646.c: Likewise.
3668 * iconvdata/iso-2022-kr.c: Likewise.
3669 * iconvdata/iso-2022-jp.c: Likewise.
3670 * iconvdata/iso-2022-cn.c: Likewise.
3671 * iconvdata/gbgbk.c: Likewise.
3672 * iconvdata/gbk.c: Likewise.
3673 * iconvdata/euc-kr.c: Likewise.
3674 * iconvdata/euc-jp.c: Likewise.
3675 * iconvdata/euc-cn.c: Likewise.
3677 2000-06-05 Ulrich Drepper <drepper@redhat.com>
3679 * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
3680 * iconvdata/big5.c: Likewise.
3681 * iconvdata/ansi_x3.110.c: Likewise.
3682 * iconvdata/8bit-generic.c: Likewise.
3683 * iconvdata/8bit-gap.c: Likewise.
3684 * iconv/loop.c: Likewise.
3685 * iconv/gconv_db.c: Likewise.
3686 * iconv/gconv_dl.c: Likewise.
3687 * iconv/gconv_simple.c: Likewise.
3688 * iconv/skeleton.c: Likewise.
3690 * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
3691 (struct __gconv_step_data): Rename __is_last to __flags.
3692 * iconv/gconv_close.c: Change all uses of __is_last.
3693 * iconv/skeleton.c: Likewise.
3694 * iconvdata/iso-2022-cn.c: Likewise.
3695 * iconvdata/iso-2022-jp.c: Likewise.
3696 * iconvdata/iso-2022-kr.c: Likewise.
3697 * iconv/gconv_open.c: Likewise. Avoid unneeded initializations.
3698 Recognize IGNORE error handling, set flag, and remove from name.
3699 * iconv/loop.c (ignore_errors_p): Define.
3700 Add flags parameter to both functions.
3701 * iconv/skeleton.c: Pass flags to all conversion functions.
3702 * iconv/gconv_simple.c: Add flags parameter to all functions.
3703 Don't return error for invald error if ignore flag is set.
3704 (ucs4_internal_loop_single): Add missing pointer increment.
3705 (internal_ucs4le_loop_single): Likewise.
3706 * iconv/iconv_prog.c: Implement handling of -c parameter.
3707 * iconvdata/8bit-gap.c: Don't return error for invald error if
3709 * iconvdata/8bit-generic.c: Likewise.
3710 * iconvdata/ansi_x3.110.c: Likewise.
3711 * iconvdata/big5.c: Likewise.
3712 * iconvdata/big5hkscs.c: Likewise.
3713 * iconvdata/euc-cn.c: Likewise.
3714 * iconvdata/euc-jp.c: Likewise.
3715 * iconvdata/euc-kr.c: Likewise.
3716 * iconvdata/gbgbk.c: Likewise.
3717 * iconvdata/gbk.c: Likewise.
3718 * iconvdata/iso-2022-cn.c: Likewise.
3719 * iconvdata/iso-2022-jp.c: Likewise.
3720 * iconvdata/iso-2022-kr.c: Likewise.
3721 * iconvdata/iso646.c: Likewise.
3722 * iconvdata/iso8859-1.c: Likewise.
3723 * iconvdata/iso_6937-2.c: Likewise.
3724 * iconvdata/iso_6937.c: Likewise.
3725 * iconvdata/johab.c: Likewise.
3726 * iconvdata/sjis.c: Likewise.
3727 * iconvdata/t.61.c: Likewise.
3728 * iconvdata/uhc.c: Likewise.
3729 * iconvdata/unicode.c: Likewise.
3730 * iconvdata/utf-16.c: Likewise.
3731 * libio/fileops.c: Likewise.
3732 * libio/iofwide.c: Likewise.
3733 * wcsmbs/btowc.c: Likewise.
3734 * wcsmbs/mbrtowc.c: Likewise.
3735 * wcsmbs/mbsnrtowcs.c: Likewise.
3736 * wcsmbs/mbsrtowcs.c: Likewise.
3737 * wcsmbs/wcrtomb.c: Likewise.
3738 * wcsmbs/wcsnrtombs.c: Likewise.
3739 * wcsmbs/wcsrtombs.c: Likewise.
3740 * wcsmbs/wctob.c: Likewise.
3742 * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
3745 2000-06-04 Ulrich Drepper <drepper@redhat.com>
3747 * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
3748 counter for the object we are releasing, just decrement it.
3749 Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
3751 2000-06-04 Jakub Jelinek <jakub@redhat.com>
3753 * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
3756 2000-06-04 Ulrich Drepper <drepper@redhat.com>
3758 * iconvdata/big5hkscs.c: New file.
3759 Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
3761 * iconvdata/gconv-modules: Add entry for new module.
3762 * iconvdata/Makefile (modules): Add BIG5HKSCS.
3763 (distribute): Add big5hkscs.c.
3765 2000-06-01 Jakub Jelinek <jakub@redhat.com>
3767 * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
3768 inlines to match prototypes in mathcalls.h.
3769 * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3770 * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
3771 * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3772 * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3774 2000-06-03 Ulrich Drepper <drepper@redhat.com>
3776 * elf/elf.h (SHT_SUNW_move): Define.
3778 * elf/elf.h: Add more Solaris compatiblity definitions.
3780 2000-06-03 Andreas Jaeger <aj@suse.de>
3782 * sysdeps/powerpc/dl-start.S: Close open comment.
3784 2000-06-03 Jakub Jelinek <jakub@redhat.com>
3786 * inet/Versions: Fix typo in rresvport_af export.
3788 2000-06-02 Ulrich Drepper <drepper@redhat.com>
3790 * math/tgmath.h: Pretty print.
3792 2000-06-02 Andreas Jaeger <aj@suse.de>
3794 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
3795 Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3797 2000-06-02 Ulrich Drepper <drepper@redhat.com>
3799 * elf/rtld.c (process_envvars): Test for = after variable name.
3801 2000-06-01 Ulrich Drepper <drepper@redhat.com>
3803 * sysdeps/generic/initfini.c (_init): One less relocation. Don't
3804 have extra call to __gmon_start__, use the pointer we already have.
3806 * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
3809 * sysdeps/i386/elf/setjmp.S: Work around change is recent
3810 binutils. gas now emits a jump through the PLT instead of a
3811 relative jump if the jump target is an exported symbol.
3813 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3815 * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
3817 2000-05-31 Andreas Jaeger <aj@suse.de>
3819 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
3822 * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
3823 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3825 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
3827 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3829 2000-05-30 Ulrich Drepper <drepper@redhat.com>
3831 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
3833 * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
3834 * locale/localeconv.c: Make function versioned (with same definition).
3836 * elf/Makefile (modules-names): Strip before using it.
3838 2000-05-30 Andreas Jaeger <aj@suse.de>
3840 * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
3841 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
3842 * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
3843 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
3844 * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
3845 * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
3847 2000-05-29 Ulrich Drepper <drepper@redhat.com>
3849 * Makefile: Add GNU make magic.
3851 * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
3853 * inet/rcmd.c: Remove __P. Remove unused variables.
3854 (iruserfopen): Make first parameter const.
3855 (ruserok_sa): Return result of ruserok2_sa.
3856 (__checkhost_sa): Correctly iterate through results of getaddrinfo.
3857 * inet/rexec.c: Remove unused variables. Other small cleanups.
3858 * inet/ruserpass.c: Remove __P. Remove unused variables.
3859 (ruserpass): Check results of memory allocation.
3860 * include/netdb.h: Add prototype for ruserpass.
3862 2000-05-29 Andreas Jaeger <aj@suse.de>
3864 * elf/readlib.c (interpreters): Use LD_SO since this is supported
3867 2000-05-29 Jakub Jelinek <jakub@redhat.com>
3869 * inet/rcmd.c (rresvport_af): Use correct port number.
3871 2000-05-26 Andreas Schwab <schwab@suse.de>
3873 * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
3874 entries in all-sonames.
3875 ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
3876 preserving the old name if different for compatibility.
3878 2000-05-29 Ulrich Drepper <drepper@redhat.com>
3880 * posix/Makefile (tests): Add tst-spawn.
3881 (tst-spawn-ARGS): New variable.
3882 * posix/tst-spawn.c: New file.
3884 * posix/spawn_faction_addclose.c: Correctly account for new entry.
3885 * posix/spawn_faction_adddup2.c: Likewise.
3886 * posix/spawn_faction_addopen.c: Likewise.
3887 * posix/spawni.c: Correctly test for success of dup2 calls.
3889 * posix/tst-preadwrite.c: Check success of malloc call.
3891 2000-05-28 Ulrich Drepper <drepper@redhat.com>
3893 * posix/Makefile (tests): Add tst-exec.
3894 (tst-exec-ARGS): New variable.
3895 * posix/tst-exec.c: New file.
3897 * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
3899 2000-05-04 Andreas Jaeger <aj@suse.de>
3901 * string/string.h: Remove __strdup prototype, it's not needed in
3904 2000-05-28 Ulrich Drepper <drepper@redhat.com>
3906 * posix/Makefile (tests): Add tst-fork.
3907 * posix/tst-fork.c: New file.
3909 * resolv/inet_pton.c: Loose __P.
3911 2000-05-21 Jakub Jelinek <jakub@redhat.com>
3913 * libio/libioP.h (_IO_CHECK_WIDE): Define.
3914 * libio/iosetbuffer.c (_IO_setbuffer): Use it.
3915 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3916 * libio/fileops.c (_IO_new_file_fopen): Return NULL if
3917 _IO_CHECK_WIDE fails.
3919 2000-05-28 Ulrich Drepper <drepper@redhat.com>
3921 * po/da.po: New file.
3923 * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
3924 Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
3926 * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
3927 (Other iconv Implementations): Fix typo.
3928 Patch by Martin Pool <mbp@wistful.humbug.org.au>.
3930 2000-05-27 Andreas Jaeger <aj@suse.de>
3932 * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
3934 * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
3935 * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
3936 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3937 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3938 * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
3939 * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
3941 * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
3942 endianness to decide how to pass arguments.
3943 * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
3945 * elf/vismain.c: Use test-skeleton interface.
3946 (TEST_FUNCTION): New macro.
3947 (do_test): Renamed from main.
3949 2000-05-27 Ulrich Drepper <drepper@redhat.com>
3951 * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
3952 AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
3954 * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify. Correct
3955 handling of AI_V4MAPPED flag.
3957 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
3958 of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
3959 perform lookup for T_A type and tell getanswer_r to convert the
3960 result with new argument.
3961 (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
3962 Don't convert addresses from IPv4 to IPv6 here.
3963 (getanswer_r): Take new parameter indicating if mapping from IPv4 to
3964 IPv6 is wanted. Allow qtype and type from reply to disagree if
3965 IPv4 mapping has to be done. Perform mappings if required by the
3966 caller and not if RES_USE_INET6 bit in _res.options is set.
3967 Add several __builtin_expect.
3969 2000-05-26 Ulrich Drepper <drepper@redhat.com>
3971 * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
3973 * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
3976 * posix/tst-preadwrite.c: Allow parallel execution of
3977 tst-preadwrite and tst-preadwrite64.
3979 * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
3980 * posix/tst-truncate.c: New file.
3981 * posix/tst-truncate64.c: New file.
3983 * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
3986 * posix/Makefile (tests): Add tst-preadwrite64.
3987 * posix/tst-preadwrite.c: Alloc file being used also for testing
3988 pread64 and pwrite64.
3989 * posix/tst-preadwrite64.c: New file.
3991 2000-05-26 Andreas Jaeger <aj@suse.de>
3993 * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
3994 of arguments dependend on endianness.
3995 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3997 * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
3999 * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
4000 * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
4001 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4002 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4004 * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
4005 endianness to check how to pass argument.
4006 * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
4008 * elf/ldconfig.h: Update parameter list for process_elf_file.
4010 * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
4011 Add parameter file_length and pass it ot process_elf*file.
4013 * sysdeps/generic/readelflib.c (check_ptr): New.
4014 (process_elf_file): Use check_ptr to check all accesses to the
4015 mmapped file. Add parameter file_length.
4017 * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
4020 * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
4021 Closes PR libc/1573, reported by Bradley White
4022 <bww@laurelnetworks.com>.
4024 2000-05-25 Ulrich Drepper <drepper@redhat.com>
4026 * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
4027 __FAST_MATH__ is defined.
4029 2000-05-22 Andreas Jaeger <aj@suse.de>
4031 * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
4032 CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
4034 * manual/math.texi (FP Function Optimizations): Document gcc
4035 -ffast-math behaviour with mathinlines.
4037 * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
4038 functions unless -ffast-math is given to gcc.
4040 2000-05-23 Jakub Jelinek <jakub@redhat.com>
4042 * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
4043 __sincosl): Guard with __USE_GNU.
4045 2000-05-24 Ulrich Drepper <drepper@redhat.com>
4047 * csu/Makefile (routines): Add check_fds.
4048 * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
4049 binaries. Add various __builtin_expect.
4050 * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
4051 * sysdeps/generic/check_fds.c: ...here. New file.
4053 * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
4054 binaries if file /etc/suid-debug is available.
4056 * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
4057 and wcseqorder members.
4058 (struct locale_collate_t): Likewise.
4059 (collate_finish): Assign collation sequence value to each character.
4060 Create tables for output.
4061 (collate_output): Write out tables with collation sequence information.
4062 * locale/C-collate.c: Provide C locale data for collation sequence
4064 * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
4065 _NL_COLLATE_COLLSEQWC.
4066 * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
4067 _NL_COLLATE_COLLSEQWC.
4068 * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
4069 include fnmatch_loop.c.
4070 * posix/fnmatch_loop.c: Don't use strcoll while determining whether
4071 character is matched by range expression. Use collation sequence
4072 table. Outside glibc fall back on simple character value comparison.
4074 2000-05-24 Andreas Jaeger <aj@suse.de>
4076 * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
4079 * intl/Makefile: Run gettext-test only if msgfmt is available.
4081 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
4082 Define it for newer kernels.
4084 2000-05-23 Ulrich Drepper <drepper@redhat.com>
4086 * elf/dl-sym.c: Minor cleanups.
4088 * configure.in: Add test for .protected.
4089 * config.make.in: Add have-protected variable.
4090 * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
4091 (tests-vis-yes): Add vismain.
4092 (modules-names): Add $(modules-vis-$(have-protected)).
4093 (modules-vis-yes): Add vismod1, vismod2, and vismod3.
4094 Add rules to generate and run vismain.
4095 * elf/vismain.c: New file.
4096 * elf/vismod1.c: New file.
4097 * elf/vismod2.c: New file.
4098 * elf/vismod3.c: New file.
4100 2000-05-23 Andreas Jaeger <aj@suse.de>
4102 * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
4104 * manual/search.texi (Array Sort Function): Document that qsort is
4105 not necessarily in-place.
4107 * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
4108 Closes PR libc/1731.
4110 * csu/munch-tmpl.c (__libc_init): Remove K&R support.
4111 * dirent/scandir64.c: Likewise.
4112 * pwd/getpw.c: Likewise.
4113 * stdlib/bsearch.c (bsearch): Likewise.
4114 * stdlib/tst-strtoll.c: Likewise.
4115 * localedata/collate-test.c: Likewise.
4116 * localedata/xfrm-test.c: Likewise.
4117 * posix/bsd-getpgrp.c: Likewise.
4118 * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
4119 * sysdeps/generic/bits/siginfo.h: Likewise.
4120 * sysdeps/generic/bits/sockaddr.h: Likewise.
4121 * sysdeps/generic/sys/swap.h: Likewise.
4122 * sysdeps/generic/sys/sysinfo.h: Likewise.
4123 * sysdeps/generic/vfork.c: Likewise.
4124 * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
4125 * sysdeps/mach/hurd/fdopen.c: Likewise.
4126 * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
4127 * sysdeps/unix/sysv/linux/poll.c: Likewise.
4128 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4129 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4130 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4131 * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
4132 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
4134 * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
4135 * shadow/lckpwdf.c: Likewise.
4136 * stdlib/tst-strtol.c: Likewise.
4137 * sysdeps/generic/tcsetattr.c: Likewise.
4138 * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4139 * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4141 2000-05-22 Jakub Jelinek <jakub@redhat.com>
4143 * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
4144 free it and set to (void *) -1.
4146 2000-05-22 Jakub Jelinek <jakub@redhat.com>
4148 * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
4149 not the second character in the range.
4150 * stdio-common/tstscanf.c (main): Add testcase for the above.
4151 Reported by jik@kamens.brookline.ma.us.
4153 2000-05-21 H.J. Lu <hjl@gnu.org>
4155 * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
4156 with noexec and noplt parameter.
4157 (do_lookup): Likewise.
4159 * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
4160 do_lookup. Support STV_PROTECTED.
4161 (_dl_lookup_symbol_skip): Likewise.
4162 (_dl_lookup_versioned_symbol): Likewise.
4163 (_dl_lookup_versioned_symbol_skip): Likewise.
4165 * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
4167 * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
4169 2000-05-21 Jakub Jelinek <jakub@redhat.com>
4171 * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
4172 * sysdeps/i386/bits/huge_val.h: Likewise.
4173 * sysdeps/ieee754/bits/huge_val.h: Likewise.
4174 * sysdeps/m68k/bits/huge_val.h: Likewise.
4175 * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
4176 * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
4178 2000-05-22 Andreas Jaeger <aj@suse.de>
4180 * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
4183 2000-05-19 Andreas Jaeger <aj@suse.de>
4185 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
4186 (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
4187 breaks compilation without linuxthreads.
4189 2000-05-21 Ulrich Drepper <drepper@redhat.com>
4191 * sysdeps/ia64/memccpy.S: New file.
4192 * sysdeps/ia64/memchr.S: New file.
4193 * sysdeps/ia64/memcmp.S: New file.
4194 * sysdeps/ia64/memcpy.S: New file.
4195 * sysdeps/ia64/memmove.S: New file.
4196 * sysdeps/ia64/memset.S: New file.
4197 * sysdeps/ia64/strcat.S: New file.
4198 * sysdeps/ia64/strchr.S: New file.
4199 * sysdeps/ia64/strcmp.S: New file.
4200 * sysdeps/ia64/strcpy.S: New file.
4201 * sysdeps/ia64/strlen.S: New file.
4202 * sysdeps/ia64/strncmp.S: New file.
4203 * sysdeps/ia64/strncpy.S: New file.
4204 * sysdeps/ia64/softpipe.h: New file.
4205 Patches by Dan Pop <Dan.Pop@cern.ch>.
4207 * manual/memory.texi: Document memory handling functions (mlock,
4208 munlock, mlockall, munlockall, brk, and sbrk)
4209 * manual/time.texi: Document timespec and friends.
4210 * manual/conf.texi: Fix references.
4211 * manual/ctype.texi: Likewise.
4212 * manual/errno.texi: Likewise.
4213 * manual/intro.texi: Likewise.
4214 * manual/locale.texi: Likewise.
4215 * manual/sysinfo.texi: Likewise.
4216 Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4218 2000-05-09 Jes Sorensen <jes@linuxcare.com>
4220 * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
4221 * sysdeps/ia64/dl-lookupcfg.h: ...here.
4223 2000-05-21 Jakub Jelinek <jakub@redhat.com>
4225 * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
4228 2000-05-21 Ulrich Drepper <drepper@redhat.com>
4230 * locale/locale.h (struct lconv): Add new elements from ISO C99.
4231 * locale/localeconv.c: Initialize new elements from ISO C99.
4232 * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
4233 new standard elements.
4234 * locale/categories.def: Adjust accordingly.
4236 * iconv/iconv.h (iconv): Remove const from inbuf parameter.
4237 * iconv/iconv.c: Likewise.
4238 * conform/data/iconv.h-data: Likewise.
4239 * iconv/iconv_prog.c (process_block): Remove const from second
4241 (main): Remove const from addr definition.
4242 * manual/charset.texi (Generic Conversion Interface): Remove from
4243 inbuf parameter of iconv.
4245 * intl/dcigettext.c: Fix typo in comment.
4247 2000-05-20 2000 H.J. Lu <hjl@gnu.org>
4249 * resolv/res_libc.c (_res): Initialize _sock to -1.
4251 2000-05-18 Jakub Jelinek <jakub@redhat.com>
4253 * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
4254 (fopencookie@@GLIBC_2.2): New.
4255 (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
4256 (fopencookie@GLIBC_2.0): New.
4257 * libio/Versions: Add fopencookie to GLIBC_2.2.
4259 2000-05-18 Andreas Jaeger <aj@suse.de>
4261 * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
4262 Closes PR libc/1731.
4264 * manual/arith.texi (Parsing of Integers): Fix typo.
4265 Closes PR libc/1744, reported by blp@gnu.org.
4267 2000-05-17 Jakub Jelinek <jakub@redhat.com>
4269 * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
4270 __extension__ to hexadecimal floating constant notation.
4271 * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
4273 * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
4274 * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
4276 * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
4277 HUGE_VALL): Likewise.
4278 * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
4279 HUGE_VALL): Likewise.
4280 (HUGE_VALL): Set to HUGE_VAL on sparc32.
4282 2000-05-17 Andreas Jaeger <aj@suse.de>
4284 * string/envz.h: Add pure attributes if possible.
4286 * string/argz.h: argz_count is a pure function.
4288 * string/strings.h: Add pure and const attributes if possible.
4290 * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
4291 possibly searching through the whole memory.
4292 Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
4294 2000-05-17 Jakub Jelinek <jakub@redhat.com>
4296 * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
4298 (_dl_cache_check_flags): Likewise.
4299 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
4302 2000-05-17 Andreas Jaeger <aj@suse.de>
4304 * manual/creature.texi (Feature Test Macros): Remove paragraph
4305 since the description is wrong.
4306 Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
4308 * scripts/config.sub: New version.
4309 * scripts/config.guess: Likewise.
4310 * manual/texinfo.tex: Likewise.
4312 * time/test_time.args: Removed.
4313 * time/Makefile (test_time-ARGS): Added contents here instead.
4315 * posix/tstgetopt.args: Removed.
4316 * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
4318 * Rules: Allow arguments for test files to be specified in
4319 Makefile with testname-ARGS; remove rules with .args in it.
4321 * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
4322 remove old bogus rule for opendir-tst1.args.
4324 * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
4326 * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
4327 into objdir. This allows a readonly sourcetree.
4328 Reported by lrgallardo@yahoo.com, closes PR libc/1421.
4330 2000-05-16 Andreas Jaeger <aj@suse.de>,
4331 David Huggins-Daines <dhd@linuxcare.com>
4333 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
4334 cache_data in case of only new cache format correctly.
4336 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
4339 * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
4340 struct cache_file_new.
4342 * elf/cache.c (save_cache): Fix str_offset if only new cache is
4345 * elf/cache.c (save_cache): Align struct new_file_cache.
4346 (print_cache): Likewise.
4348 2000-05-13 Jakub Jelinek <jakub@redhat.com>
4350 * elf/soinit.c (__libc_global_ctors): Move
4351 __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
4352 * resolv/resolv.h (__res_state): Added __attribute__((const)).
4353 (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
4354 variable, don't define it to __res_state call.
4356 2000-05-13 Andreas Jaeger <aj@suse.de>
4358 * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
4360 (AF_PPPOX): Likewise.
4361 * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
4362 (AF_PPPOX): Likewise.
4364 2000-05-12 Andreas Jaeger <aj@suse.de>
4366 * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
4367 Reported by tmoestl@gmx.net, closes PR libc/1732.
4369 2000-05-11 Jan Hubicka <jh@suse.cz>
4371 * misc/sys/cdefs.h: Add support for pure attribute.
4373 * include/string.h: Add __attribute_pure__ to various functions.
4374 * string/string.h: Likewise.
4376 2000-05-10 Jakub Jelinek <jakub@redhat.com>
4378 * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
4380 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
4382 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
4384 2000-05-10 Jakub Jelinek <jakub@redhat.com>
4386 * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
4387 at proper place. Compute the high nibble correctly.
4389 2000-05-09 Jakub Jelinek <jakub@redhat.com>
4391 * elf/ldconfig.c: Include elf.h.
4393 * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
4394 (_dl_vsym): Likewise.
4395 Reported by Owen Taylor <otaylor@redhat.com>.
4397 * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
4400 2000-05-08 Andreas Jaeger <aj@suse.de>
4402 * include/libintl.h: Add prototype for __bind_textdomain_codeset.
4404 * intl/bindtextdom.c (set_binding_values): Add prototype.
4406 2000-05-08 Jakub Jelinek <jakub@redhat.com>
4408 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
4409 call to elf_machine_fixup_plt.
4410 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
4411 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4413 2000-05-08 Jakub Jelinek <jakub@redhat.com>
4415 * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
4416 they are not dlclose'd from underneath us.
4418 2000-05-08 Andreas Schwab <schwab@suse.de>
4420 * posix/execle.c: Fix size parameter of memcpy.
4422 2000-05-08 Andreas Schwab <schwab@suse.de>
4424 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file. Use
4425 getpagesize syscall if available.
4427 2000-05-08 Andreas Jaeger <aj@suse.de>
4429 * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
4432 2000-05-08 Jakub Jelinek <jakub@redhat.com>
4434 * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
4435 sizeof(struct link_map *) chunks, not in bytes.
4437 2000-05-07 Ulrich Drepper <drepper@redhat.com>
4439 * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS. It's
4440 only needed for locale.
4441 * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
4442 It's only needed for catgets.
4443 Patches by Greg McGary <gkm@eng.ascend.com>.
4445 2000-05-07 Mark Kettenis <kettenis@gnu.org>
4447 * nss/nss_db/db-open.c: Cleanup and add comments. Pretty print.
4448 Remove duplicate <errno.h> include. Remove inclusion of
4449 <libintl.h> and "nsswitch.h".
4450 (set_cloexec_flag): New function, broken out of dbopen.
4451 (dbopen): Changed return type to `enum
4452 nss_status'. Mostly rewritten to make sure that we do not report
4453 NSS_STATUS_SUCCESS if something went wrong. Remove unnecessary casts.
4454 (internal_setent): Change return type to nss_status.
4455 Document, and make sure that the function
4456 behaves accordingly. Make dynamically loading the database
4457 library really thread-safe and return NSS_STATUS_UNAVAIL if it
4459 (db_cursor): Return ENOMEM is memory allocation failed. Remove
4461 * nss/nss_db/dummy-db.h: Add copyright notice. Improve
4463 (struct dbc24, struct dbc27): Use DBT type in parameter lists for
4464 c_get function member.
4465 * nss/nss_db/nss_db.h: Add and tweak some comments.
4466 (DBT): Move typedef before NSS_DBC typedef.
4467 (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
4469 2000-05-07 H.J. Lu <hjl@gnu.org>
4471 * csu/initfini.c: Moved to ....
4472 * sysdeps/generic/initfini.c: ...here.
4474 * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
4476 2000-05-07 Ulrich Drepper <drepper@redhat.com>
4478 * manual/resource.texi: Document POSIX scheduling functions.
4479 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4481 * inet/rcmd.c (rcmd_af): errno is not set if read returns without
4482 reading anything. Reported by Andries.Brouwer@cwi.nl.
4484 * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
4485 for x since promotion in comparison might leads to unexpected
4486 results. Reported by Dan Pop <Dan.Pop@cern.ch>.
4488 * iconv/Makefile (tests): Add tst-iconv1.
4489 * iconv/tst-iconv1.c: New file.
4490 * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
4491 empty input buffer over full output buffer.
4492 (ucs4_internal_loop): Likewise.
4493 (ucs4_internal_loop_unaligned): Likewise.
4494 (internal_ucs4le_loop): Likewise.
4495 (internal_ucs4le_loop_unaligned): Likewise.
4496 (ucs4le_internal_loop): Likewise.
4497 (ucs4le_internal_loop_unaligned): Likewise.
4498 Reported by yaoz@nih.gov.
4500 2000-05-06 Bruno Haible <haible@clisp.cons.org>
4502 * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
4503 returned != __GCONV_OK, there is nothing to clean up.
4505 2000-05-06 Bruno Haible <haible@clisp.cons.org>
4507 * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
4508 OUTPUT_CHARSET environment variables.
4510 2000-05-06 Andreas Jaeger <aj@suse.de>
4512 * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
4513 (struct cache_file_new): New.
4514 (struct file_entry): New (moved from cache.c).
4515 (struct cache_file): New (moved from cache.c).
4517 * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
4518 from _dl_load_cache_lookup.
4519 (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
4520 the different cache formats.
4521 New variable cache_new for new format.
4523 * elf/ldconfig.h: Change according to changes in cache.c and
4524 ldconfig.c; remove cache_libcmp; add opt_format.
4526 * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
4527 stuff that's defined in those headers.
4528 Add hwcap to struct lib_entry.
4529 (opt_format): New variable to select cache format.
4530 (options): Add format parameter.
4531 (is_hwcap): New function.
4532 (path_hwcap): New function.
4533 (parse_opt): Handle new format parameter.
4534 (search_dir): Handle hwcap, search also subdirectories with hwcap.
4536 * elf/cache.c (_GNU_SOURCE): Removed. Not needed anymore since
4537 ldconfig is part of glibc.
4538 Include dl-cache.h and remove stuff that's defined there.
4539 (struct cache_entry): Add new member hwcap.
4540 (print_entry): Print hwcap, cleanup a bit.
4541 (print_cache): Print new and old formats.
4542 (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
4543 (save_cache): Save new and old formats.
4544 (add_to_cache): Handle hwcap.
4546 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
4547 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
4548 * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
4549 * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
4550 * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
4551 * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
4553 2000-05-05 Bruno Haible <haible@clisp.cons.org>
4555 * intl/dcigettext.c (alignof): New macro.
4556 (_nl_find_msg): Use it instead of __alignof__. Pass correct output
4557 buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
4560 2000-05-05 Bruno Haible <haible@clisp.cons.org>
4562 * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
4565 2000-05-06 Ulrich Drepper <drepper@redhat.com>
4567 * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
4568 (mempcpy): Correct typo is parameter list.
4570 2000-05-06 Andreas Jaeger <aj@suse.de>
4572 * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
4573 functions unless -ffast-math is given to gcc.
4575 2000-05-06 Ulrich Drepper <drepper@redhat.com>
4577 * po/ko.po: Update from translation team.
4579 2000-05-05 Ulrich Drepper <drepper@redhat.com>
4581 * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
4582 * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
4583 * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
4584 * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
4585 * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
4586 * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
4588 * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
4589 * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
4590 * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
4592 * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
4593 * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
4594 * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
4595 * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
4597 * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
4598 * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
4600 2000-05-05 Jes Sorensen <jes@linuxcare.com>
4602 * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
4603 * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
4605 * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
4606 * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
4608 * sysdeps/ia64/Implies: New file.
4609 * sysdeps/ia64/Versions: New file. Declare _dl_symbol_address.
4610 * sysdeps/ia64/Makefile: New file.
4611 * sysdeps/ia64/gmp-mparam.h: New file,
4613 * sysdeps/ia64/elf/start.S: New file.
4615 * sysdeps/ia64/bits/fenv.h: New file.
4617 2000-05-05 David Mosberger-Tang <davidm@hpl.hp.com>
4619 * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
4621 2000-04-26 Jes Sorensen <Jes.Sorensen@cern.ch>
4623 * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file. The
4624 ia64 has 64 bit .hash entries just as the Alpha.
4626 2000-04-25 Jes Sorensen <Jes.Sorensen@cern.ch>
4628 * sysdeps/ia64/memprof.h: New file. Provide GETSP() macro.
4630 2000-04-17 Jes Sorensen <Jes.Sorensen@cern.ch>
4632 * sysdeps/ia64/fpu/fclrexcpt.c: New file.
4633 * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
4634 * sysdeps/ia64/fpu/feenablxcpt.c: New file.
4635 * sysdeps/ia64/fpu/fegetenv.c: New file.
4636 * sysdeps/ia64/fpu/fegetexcept.c: New file.
4637 * sysdeps/ia64/fpu/fegetround.c: New file.
4638 * sysdeps/ia64/fpu/feholdexcpt.c: New file.
4639 * sysdeps/ia64/fpu/fesetenv.c: New file.
4640 * sysdeps/ia64/fpu/fesetround.c: New file.
4641 * sysdeps/ia64/fpu/feupdateenv.c: New file.
4642 * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
4643 * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
4644 * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
4645 * sysdeps/ia64/fpu/ftestexcept.c: New file.
4647 2000-05-05 Andreas Jaeger <aj@suse.de>
4649 * misc/tst-tsearch.c (main): Correct type for initstate argument.
4651 * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
4652 (_dl_string_hwcap): New, does nothing.
4654 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
4655 (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4656 (_dl_string_hwcap): New function, converts from string to hwcap
4658 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
4659 (_DL_HWCAP_COUNT): New.
4660 (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4661 (_dl_string_hwcap): New function, converts from string to hwcap
4663 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
4664 (_DL_HWCAP_COUNT): New.
4665 (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4666 (_dl_string_hwcap): New function, converts from string to hwcap
4669 2000-05-05 Ulrich Drepper <drepper@redhat.com>
4671 * elf/Makefile (distribute): Add dl-lookupcfg.h.
4672 * sysdeps/ia64/Dist: New file.
4674 * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
4675 parameter to mprotect and for variable assignments.
4677 2000-05-03 Jes Sorensen <jes@linuxcare.com>
4679 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
4680 validity of map before dereferencing it.
4682 * elf/dl-reloc.c (RESOLVE_MAP): Define.
4684 2000-05-02 Jes Sorensen <jes@linuxcare.com>
4686 * elf/dl-runtime.c (fixup): Add the value returned in the symbol
4687 lookup to the arguments to elf_machine_fixup_plt().
4689 * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
4690 of the symbol being resolved to input argument list and make the
4691 function return the pointer to the reloc.
4693 * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
4694 return valuie to lookup_t and return the value.
4695 * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
4696 * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
4697 * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
4698 * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
4699 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
4700 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
4702 * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
4703 Make it an inline function returning value after calling
4704 __elf_machine_fixup_plt().
4706 * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
4709 * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
4710 obtain the symbol address.
4712 * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
4713 depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
4715 * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
4716 _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
4719 2000-04-28 Jes Sorensen <jes@linuxcare.com>
4721 * elf/dl-runtime.c (fixup): Use the portable macros to get the
4722 symbol address of an object.
4724 * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
4725 the symbol address of an object.
4727 * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
4728 * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
4729 (_dl_lookup_symbol_skip): Likewise.
4730 (_dl_lookup_versioned_symbol): Likewise.
4731 (_dl_lookup_versioned_symbol_skip): Likewise.
4733 2000-04-27 Jes Sorensen <jes@linuxcare.com>
4735 * elf/rtld.c (_dl_start): Get the function pointer return address
4736 via _dl_start_address for architectures that need a function
4737 pointer descriptor rather than just a pointer (ia64).
4739 * sysdeps/generic/dl-lookupcfg.h: New file.
4740 * sysdeps/ia64/dl-lookupcfg.h: New file.
4741 * sysdeps/ia64/dl-machine.h: New file.
4742 * sysdeps/ia64/dl-symaddr.c: New file.
4743 * sysdeps/ia64/dl-fptr.c: New file.
4745 * elf/elf.h: Add IA-64 specific definitions.
4747 2000-05-04 Jakub Jelinek <jakub@redhat.com>
4749 * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
4752 2000-05-04 Jakub Jelinek <jakub@redhat.com>
4754 * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
4757 2000-04-11 Geoff Keating <geoffk@cygnus.com>
4759 * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
4760 symbol. Call _dl_init rather than the old way.
4762 2000-05-04 Ulrich Drepper <drepper@redhat.com>
4764 * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
4765 test for pointer in range of DSO address space.
4767 2000-05-04 Andreas Jaeger <aj@suse.de>
4769 * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
4771 2000-05-03 Ulrich Drepper <drepper@redhat.com>
4773 * locale/findlocale.c (_nl_find_locale): Add new parameter to
4774 calls of _nl_make_l10nflist.
4776 * libio/stdio.h: Make fseeko and ftello prototypes available is
4777 __USE_LARGEFILE. Patch by Paul Eggert <eggert@twinsun.com>.
4779 * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
4780 real unsetenv implementation from 1999-07-29 [PR libc/1714].
4782 2000-05-03 Bruno Haible <haible@clisp.cons.org>
4784 * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
4785 before calling tfind.
4787 2000-03-05 Jakub Jelinek <jakub@redhat.com>
4789 * resolv/resolv.h (res_querydomain): Remove redefinition to
4790 __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
4792 2000-05-03 Ulrich Drepper <drepper@redhat.com>
4794 * po/gl.po: Update from translation team.
4796 * manual/intro.texi (Program Basics): Change section title.
4797 * manual/process.texi: Fix reference.
4798 (Executing a File): Add reference exec in other section.
4799 * manual/signal.texi: Fix reference.
4800 * manual/startup.texi: Document syscall function.
4801 Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4803 2000-04-29 Bruno Haible <haible@clisp.cons.org>
4805 * intl/libintl.h (bind_textdomain_codeset): New declaration.
4806 * intl/bindtextdom.c (set_binding_values): New function.
4807 (bindtextdomain): Call it.
4808 (bind_textdomain_codeset): New function.
4809 * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
4810 (free_mem): Free each binding's codeset.
4811 * intl/gettextP.h (struct binding): Add codeset field.
4812 (_nl_find_domain): Add domainbinding argument.
4813 * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
4814 Pass it to _nl_make_l10nflist.
4815 * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
4816 (_nl_make_l10nflist): Add domainbinding argument.
4817 * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
4818 * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
4819 codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
4821 * manual/message.texi: New node "Charset conversion in gettext".
4823 2000-04-30 Bruno Haible <haible@clisp.cons.org>
4825 * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
4826 appropriate. Handle possible __read error.
4828 2000-04-29 Bruno Haible <haible@clisp.cons.org>
4830 * intl/gettextP.h (__builtin_expect): Define as empty if not a
4832 * intl/loadinfo.h (__builtin_expect): Likewise.
4833 * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
4834 __builtin_expect where appropriate.
4835 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
4836 * intl/localealias.c (extend_alias_table): Return an error indicator.
4837 (read_alias_file): Bail out if extend_alias_table fails.
4839 2000-04-29 Bruno Haible <haible@clisp.cons.org>
4841 * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
4842 * intl/localealias.c: Likewise.
4844 2000-05-01 Bruno Haible <haible@clisp.cons.org>
4846 * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
4847 Initialize domain->plural and domain->nplurals even if there is no
4850 2000-05-01 Bruno Haible <haible@clisp.cons.org>
4852 * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
4853 value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
4854 In case of failure, goto converted.
4856 2000-05-01 Bruno Haible <haible@clisp.cons.org>
4858 * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
4859 * iconv/gconv_int.h (norm_add_slashes): Move to here.
4860 * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
4863 2000-04-29 Bruno Haible <haible@clisp.cons.org>
4865 * intl/dcigettext.c (transcmp): Compare the domains as well.
4866 (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
4868 * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
4871 2000-05-03 Ulrich Drepper <drepper@redhat.com>
4873 * string/bits/string2.h: Declare __strdup and __strndup if necessary.
4874 Reported by Bruno Haible.
4876 2000-04-29 Bruno Haible <haible@clisp.cons.org>
4878 * manual/arith.texi: Remove @w from @itemize.
4880 2000-05-02 Andreas Jaeger <aj@suse.de>
4882 * conform/data/tar.h-data: Add some checks for specific values.
4884 * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
4887 * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
4890 * conform/data/netinet/in.h-data: Add exact checks for the values
4891 fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
4893 * conform/data/float.h-data: Add some minimal values.
4895 * conform/conformtest.pl: Test for macros with string constants,
4896 check for minimum and maximum values.
4897 Add limits.h to headers.
4899 * conform/data/cpio.h-data: Test for value of MAGIC.
4901 * conform/data/limits.h-data: New file.
4903 2000-04-30 Bruno Haible <haible@clisp.cons.org>
4905 * math/Makefile (headers): Add bits/fenvinline.h.
4907 2000-05-01 Ulrich Drepper <drepper@redhat.com>
4909 * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
4910 * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
4912 * posix/Versions: Change posix_spawnattr_getdefault and
4913 posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
4914 and posix_spawnattr_setsigdefault respectively.
4915 * posix/spawn.h: Likewise.
4916 * posix/spawnattr_getdefault.h: Likewise.
4917 * posix/spawnattr_setdefault.h: Likewise.
4918 * conform/data/spawn.h-data: Likewise.
4920 2000-05-01 Andreas Jaeger <aj@suse.de>
4922 * nscd/nscd.c: Include <grp.h> for setgroups prototype.
4924 2000-04-30 Ulrich Drepper <drepper@redhat.com>
4926 * manual/sysinfo.texi: Document getdomainname, setdomainname
4928 * manual/string.texi: Fix typo.
4929 * manual/terminal.texi: Document gtty and stty.
4930 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4932 2000-04-30 Andreas Jaeger <aj@suse.de>
4934 * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
4935 accordance with Austin Draft.
4937 2000-04-30 Ulrich Drepper <drepper@redhat.com>
4939 * catgets/gencat.c (read_input_file): Use isblank and not isspace
4940 to recognize second character in comment line.
4942 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
4943 ENOBUFS if we are out of memory.
4945 * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
4946 available if __USE_XOPEN2K.
4947 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
4948 * sysdeps/unix/common/bits/fcntl.h: Likewise.
4949 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4950 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4951 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
4952 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4953 * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
4954 * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
4956 2000-04-29 Ulrich Drepper <drepper@redhat.com>
4958 * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
4959 Recognize option -s, -c, and -l.
4961 2000-04-20 Thorsten Kukuk <kukuk@suse.de>
4963 * nscd/nscd.c: Start new session for nscd, drop privilegs
4964 to configured user if requested and no -S parameter are used.
4965 * nscd/nscd.conf: Add new option "server-user".
4966 * nscd/nscd_conf.c: Add support for new "server-user" option.
4967 * nscd/nscd.h: Add declaration for server_user variable.
4968 Based on patch by Chris Wing <wingc@engin.umich.edu>
4970 2000-04-29 Mark Kettenis <kettenis@gnu.org>
4972 * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
4973 that changing the __restore and __restore_rt signal return code
4976 2000-04-29 Mark Kettenis <kettenis@gnu.org>
4978 * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
4981 2000-04-29 Mark Kettenis <kettenis@gnu.org>
4983 * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
4985 2000-04-29 Ulrich Drepper <drepper@redhat.com>
4987 * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
4988 sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
4990 * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
4991 SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
4992 S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
4993 S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
4994 S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
4995 POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
4996 POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
4997 posix_fallocate, and posix_madvise.
4998 * conform/data/netdb.h-data: New file.
4999 * conform/data/pthread.h-data: Add pthread_barrier_t,
5000 pthread_barrierattr_t, pthread_barrier_destroy,
5001 pthread_barrier_init, pthread_barrier_wait,
5002 pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
5003 pthread_barrierattr_init, pthread_barrierattr_setpshared,
5004 pthread_condattr_getclock, pthread_condattr_setclock,
5005 pthread_getcpuclockid, pthread_mutex_timedlock,
5006 pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
5007 pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
5008 pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
5009 * conform/data/sched.h-data: Add sched_ss_low_priority,
5010 sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
5012 * conform/data/semaphore.h-data: Add sem_timedwait.
5013 * conform/data/signal.h-data: Add SIGIO.
5014 * conform/data/spawn.h-data: New file.
5015 * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
5016 * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
5017 CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
5018 Fix typo in gmtime_r definition.
5019 * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
5020 _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
5021 _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
5022 _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
5023 _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
5024 _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
5025 _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
5026 _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
5027 _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
5028 _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
5029 _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
5030 _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
5031 _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
5032 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
5033 _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
5034 _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
5035 _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
5036 _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
5037 _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
5038 _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid. Fix
5039 typo in off_t definition.
5040 * conform/data/net/if.h-data: New file.
5041 * conform/data/netinet/in.h-data: New file.
5042 * conform/data/netinet/tcp.h-data: New file.
5043 * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
5044 POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
5045 POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
5046 POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
5047 posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
5048 and posix_typed_mem_open.
5049 * conform/data/sys/socket.h-data: New file.
5050 * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
5051 * conform/data/sys/types.h-data: Add pthread_barrier_t,
5052 pthread_barrierattr_t, and pthread_spinlock_t.
5053 * conform/data/sys/un.h-data: New file.
5054 * conform/data/sys/utsname.h-data: New file.
5056 * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
5058 * inet/gethstbyad.c (gethostbyname): Likewise.
5059 * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
5060 * inet/getipnodebyad.c (getipnodebyad): Likewise.
5061 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
5062 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
5064 * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
5065 * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
5066 * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
5067 * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
5068 * resolv/gethnamaddr.c (gethostbyname): Likewise.
5069 * resolv/netdb.h (struct hostent): Fix type of h_length member.
5070 (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
5071 and second parameter.
5073 * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
5076 2000-04-29 Andreas Jaeger <aj@suse.de>
5078 * conform/data/arpa/inet.h-data: New file.
5080 2000-04-28 Geoff Clare <gwc@unisoft.com>
5082 * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
5083 path passed to ftw() or nftw() is an empty string.
5084 Closes PR libc/1710.
5086 2000-04-27 Ulrich Drepper <drepper@redhat.com>
5088 * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
5089 (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
5090 * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
5091 * localedata/tst-mbswcs4.c: New file.
5092 * localedata/tst-mbswcs5.c: New file.
5094 * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
5095 == NULL. Little optimization.
5097 * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
5098 DT_PREINIT_ARRAYSZ).
5099 Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
5101 * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
5102 overflows in conversion from ASCII.
5104 2000-04-26 Jakub Jelinek <jakub@redhat.com>
5106 * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
5107 * Makerules (full_config_sysdirs): Likewise.
5108 * MakeTAGS (full_config_sysdirs): Likewise.
5110 2000-04-26 Jakub Jelinek <jakub@redhat.com>
5112 * .cvsignore: Remove linuxthreads.
5113 * po/.cvsignore: Remove *.pot.
5114 * posix/glob/.cvsignore: Removed.
5115 * sysdeps/unix/bsd/osf/.cvsignore: Removed.
5117 2000-04-25 Andreas Jaeger <aj@suse.de>
5119 * conform/Makefile (distribute): Also distribute contents of
5122 * Makerules (no_deps): Remove abi-versions.h.
5124 * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
5126 2000-04-25 Jakub Jelinek <jakub@redhat.com>
5128 * sysdeps/sparc/sparc64/elf/Dist: Remove.
5129 * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
5130 * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
5131 * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
5132 * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
5133 * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
5136 2000-04-25 Thorsten Kukuk <kukuk@suse.de>
5138 * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
5140 2000-04-23 Bruno Haible <haible@clisp.cons.org>
5142 * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
5143 * intl/l10nflist.c: Likewise.
5145 2000-04-23 Bruno Haible <haible@clisp.cons.org>
5147 * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
5148 __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
5149 * intl/textdomain.c [!_LIBC]: Likewise.
5150 * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
5151 __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
5152 * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
5155 2000-04-23 Bruno Haible <haible@clisp.cons.org>
5157 * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
5158 character set conversion also in the case the translation was found
5159 after a hash collision or through binary search. Store the maximum
5160 index together with the converted message. Use iconv() when available.
5161 In case of out of memory during conversion, return the unconverted
5162 translated string, not NULL.
5164 2000-04-25 Jes Sorensen <Jes.Sorensen@cern.ch>
5166 * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
5167 to avoid name clashes with the ia32 linker.
5169 2000-04-25 Jakub Jelinek <jakub@redhat.com>
5171 * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
5174 2000-04-27 Ulrich Drepper <drepper@redhat.com>
5176 * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
5177 strtoumax, strfry, and memfrob.
5178 * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
5179 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5181 * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
5182 if this function is available.
5184 * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
5187 2000-04-27 Jakub Jelinek <jakub@redhat.com>
5189 * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
5191 2000-04-27 Ulrich Drepper <drepper@redhat.com>
5193 * localedata/Makefile (test-srcs); Add tst-mbswcs3.
5194 Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
5195 * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
5196 * localedata/tst-mbswcs3.c: New file.
5198 2000-04-26 Ulrich Drepper <drepper@redhat.com>
5200 * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
5201 characters. Don't handle incomplete characters as errors.
5202 * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
5203 * localedata/Makefile (test-srcs): Add tst-mbswcs2.
5204 Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
5205 * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
5206 * localedata/tst-mbswcs2.c: New file.
5208 * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
5209 stored character in state in UNPACK_BYTES macro.
5210 * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work. Correct
5211 test for available characters, handle result of BODY code correctly.
5212 * localedata/Makefile (test-srcs): Add tst-mbswcs1.
5213 (distribute): Add tst-mbswcs.sh.
5214 Add rule to run tst-mbswcs.sh.
5215 * localedata/tst-mbswcs.sh: New file.
5216 * localedata/tst-mbswcs1.c: New file.
5218 2000-04-26 Jakub Jelinek <jakub@redhat.com>
5220 * nis/nis_callback.c (__nis_create_callback): Do failed memory
5221 allocation fixups centrally, fix __builtin_expect call, return NULL
5222 on failure, not NIS_NOMEMORY.
5224 2000-04-27 Bruno Haible <haible@clisp.cons.org>
5226 * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
5228 * intl/loadinfo.h (internal_function): Define if not already defined.
5230 2000-04-27 Andreas Jaeger <aj@suse.de>
5232 * intl/libintl.h: Fix typo, reported by Bruno Haible
5233 <haible@clisp.cons.org>.
5235 2000-04-25 Ulrich Drepper <drepper@redhat.com>
5237 * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
5238 setting the state to GMON_PROF_BUSY.
5240 2000-04-24 Ulrich Drepper <drepper@redhat.com>
5242 * elf/dl-profile.c (_dl_start_profile): define all variables which
5243 do not have to be global as local variables.
5245 * nis/nis_callback.c (__nis_create_callback): Partially undo last
5246 patch. Keep needed tests for failed memory allocation.
5248 * elf/dl-reloc.c (_dl_relocate_object): Add one more
5249 __builtin_expect saying that we don't normally expect to profile.
5251 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
5252 __builtin_expect where desirable.
5254 2000-04-23 Ulrich Drepper <drepper@redhat.com>
5256 * manual/Makefile (chapters): Add syslog.
5257 * manual/syslog.texi: New file.
5258 * manual/math.texi: Fix references.
5259 * manual/terminal.texi: Likewise.
5260 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5262 2000-04-18 Jakub Jelinek <jakub@redhat.com>
5264 * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
5265 stdlib.h was not included or __USE_XOPEN not defined.
5267 2000-04-23 Ulrich Drepper <drepper@redhat.com>
5269 * nss/Makefile (libnss_db-dbs): Remove stray backslash.
5270 Patch by Zack Weinberg <zack@wolery.cumb.org>.
5272 2000-04-22 Ulrich Drepper <drepper@redhat.com>
5274 * manual/examples/subopt.c (mount_opts): Add missing terminating
5276 Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
5278 * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
5279 * libio/ftello.c: Likewise.
5280 * libio/ftello64.c: Likewise.
5281 * libio/ioftell.c: Likewise.
5282 * sysdeps/generic/memrchr.c: Likewise.
5283 * sysdeps/posix/libc_fatal.c: Likewise.
5284 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5285 * misc/fstab.c: Include <string.h> for strcmp prototype.
5286 * sysdeps/generic/ldsodefs.h: Likewise.
5287 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5288 Patch by Kurt Roeckx <Q@ping.be>.
5290 * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
5291 Remove db-open. Change all uses.
5292 (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
5294 2000-04-21 Jakub Jelinek <jakub@redhat.com>
5296 * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
5297 * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
5298 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
5299 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
5300 with .set noat/at to shut up warnings.
5301 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
5302 * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
5303 compilation if __NR_pciconfig_iobase is not defined.
5304 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
5307 2000-04-21 Ulrich Drepper <drepper@redhat.com>
5309 * manual/sysinfo.texi: Fix typo.
5310 * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
5311 Replace "high precision time" with "high accuracy clock".
5313 Patches by Bryan Henderson <bryanh@giraffe-data.com>.
5315 * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
5316 * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
5318 * nis/nis_subr.c: Use __builtin_expect.
5319 * nis/ypclnt.c: Likewise.
5320 * nis/nis_getservlist.c: Likewise.
5321 * nis/nis_creategroup.c: Likewise.
5323 * nis/nis_callback.c (__nis_create_callback): Check result of
5324 memory allocation. Fix memory leaks. Use __builtin_expect.
5325 (__nis_destroy_callback): Fix memory leaks.
5327 2000-04-21 Andreas Jaeger <aj@suse.de>
5329 * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
5330 * sysdeps/mips/mips64/add_n.S: Likewise.
5331 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5332 * sysdeps/mips/mips64/lshift.S: Likewise.
5333 * sysdeps/mips/mips64/mul_1.S: Likewise.
5334 * sysdeps/mips/mips64/rshift.S: Likewise.
5335 * sysdeps/mips/mips64/setjmp.S: Likewise.
5336 * sysdeps/mips/mips64/sub_n.S: Likewise.
5337 * sysdeps/mips/mips64/submul_1.S: Likewise
5338 * sysdeps/unix/mips/sysdep.S: Likewise.
5340 * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
5341 and update comment. The strtab from _dl_relocate_object can be
5344 2000-04-21 Ulrich Drepper <drepper@redhat.com>
5346 * iconv/iconv.c (iconv): Add __builtin_expect where useful.
5347 * iconv/iconv_close.c (iconv_close): Likewise.
5348 * iconv/iconv_open.c (iconv_open): Likewise.
5350 * grp/putgrent.c (putgrent): Unlock steam if fprintf failed. Add
5351 __builtin_expect where useful.
5353 * grp/initgroups.c (initgroups): Test for result of memory
5354 allocation and punt if it fails.
5356 * dirent/scandir.c (scandir): Add __builtin_expect where useful.
5357 * grp/fgetgrent.c (fgetfrent): Likewise.
5358 * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
5360 2000-04-21 Jakub Jelinek <jakub@redhat.com>
5362 * libio/vasprintf.c: Include string.h to get memcpy prototype.
5364 2000-04-20 Ulrich Drepper <drepper@redhat.com>
5366 * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
5367 don't search for NUL byte to decrement counter.
5368 Reported by Ulrich.Brink@sap.com.
5370 * iconv/gconv_simple.c: Define separate functions to convert from
5371 UCS4/UCS4-LE to the internal encoding.
5372 * iconv/gconv_builtin.h: Use separate functions to convert from
5373 UCS4/UCS4-LE to the internal encoding.
5374 * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
5375 __gconv_transform_ucs4le_internal.
5377 * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
5378 output buffer overflow. Reported by Ulrich.Brink@sap.com.
5380 * iconv/skeleton.c: Add some more __builtin_expect.
5381 * iconv/loop.c: Likewise.
5383 2000-03-08 H.J. Lu <hjl@gnu.org>
5385 * posix/regex.c (regex_compile): Correctly handle "\{" when
5386 the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
5388 2000-04-20 Ulrich Drepper <drepper@redhat.com>
5390 * manual/stdio.texi: Give advise about handling error when using
5392 Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
5394 2000-04-19 Jakub Jelinek <jakub@redhat.com>
5396 * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
5397 field to nelems * sizeof (uint32_t).
5398 * locale/programs/ld-address.c (address_output): Align word fields
5400 * locale/programs/ld-monetary.c (monetary_output): Likewise.
5401 Don't restart idx pointers to idx end at the duo_int_curr_symbol
5403 Avoid giving arbitrary garbage in the crncystr field.
5404 Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
5405 uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
5407 * locale/programs/ld-numeric.c (numeric_output): Likewise.
5408 Don't restart idx pointers to idx end at the decimal_point_wc field.
5409 * locale/programs/ld-time.c (time_output): week_1stday should be
5410 word, not byte. Align it properly.
5412 2000-04-19 H.J. Lu <hjl@gnu.org>
5414 * csu/gmon-start.c (_start): Declared as "extern void".
5417 2000-04-18 Andreas Jaeger <aj@suse.de>
5419 * manual/install.texi (Running make install): Don't mention utmpd
5422 2000-04-18 Andreas Jaeger <aj@suse.de>
5424 * linuxthreads/Versions: Use ld instead of ld.so.
5426 * elf/Makefile (ld-map): Use ld.map.
5428 * Versions.def: Use ld instead of ld.so.
5429 * elf/Versions: Likewise.
5430 * sysdeps/mach/hurd/Versions: Likewise.
5432 2000-04-20 Andreas Jaeger <aj@suse.de>
5434 * elf/rtld.c (print_statistics): Move ifndef further up.
5435 (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
5436 (dl_main): Likewise.
5438 2000-04-18 Ulrich Drepper <drepper@redhat.com>
5440 * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
5441 * gmon/Versions: Move moncontrol to GLIBC_2.2.
5443 * po/cs.po: Update from translation team.
5445 * sysdeps/generic/updwtmp.c: Remove daemon support.
5447 * login/Makefile (routines): Remove utmp_daemon.
5449 * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
5450 * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
5451 * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
5452 * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
5454 * elf/rtld.c: Display statitics option also if hp timing is not
5457 * login/programs/connection.c: Removed.
5458 * login/programs/database.c Removed.
5459 * login/programs/error.c: Removed.
5460 * login/programs/request.c: Removed.
5461 * login/programs/xtmp.c: Removed.
5462 * login/programs/xtmp.h: Removed.
5463 * login/Makefile: Remove rules for utmpd.
5464 * login/README.utmpd: Removed.
5465 * login/utmp_daemon.c: Removed.
5466 * login/getutent_r.c: Remove references to daemon functions.
5467 * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
5470 2000-04-18 Andreas Jaeger <aj@suse.de>
5472 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5473 2.2 for libnsl, libresolv, librt, libnss_*.
5475 * elf/rtld.c (process_dl_debug): Remove obsolete comment.
5477 * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
5479 2000-04-18 Ulrich Drepper <drepper@redhat.com>
5481 * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
5482 * sysdeps/unix/sysv/aix/getegid.c: Likewise.
5483 * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
5484 * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
5485 * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
5486 * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
5487 * sysdeps/unix/sysv/aix/setregid.c: Likewise.
5488 * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
5489 * sysdeps/unix/sysv/aix/setgid.c: Likewise.
5490 * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
5491 * sysdeps/unix/sysv/aix/setegid.c: Likewise.
5492 * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
5493 * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
5495 * sysdeps/unix/sysv/aix/msync.c: New file.
5496 * sysdeps/unix/sysv/aix/msgsnd.c: New file.
5497 * sysdeps/unix/sysv/aix/net/if.h: New file.
5498 * sysdeps/unix/sysv/aix/pipe.c: New file.
5499 * sysdeps/unix/sysv/aix/poll.c: New file.
5500 * sysdeps/unix/sysv/aix/rename.c: New file.
5501 * sysdeps/unix/sysv/aix/rmdir.c: New file.
5502 * sysdeps/unix/sysv/aix/select.c: New file.
5503 * sysdeps/unix/sysv/aix/semctl.c: New file.
5504 * sysdeps/unix/sysv/aix/semget.c: New file.
5505 * sysdeps/unix/sysv/aix/semop.c: New file.
5506 * sysdeps/unix/sysv/aix/sendto.c: New file.
5507 * sysdeps/unix/sysv/aix/setgroups.c: New file.
5508 * sysdeps/unix/sysv/aix/setpgid.c: New file.
5509 * sysdeps/unix/sysv/aix/setpgrp.c: New file.
5510 * sysdeps/unix/sysv/aix/setpriority.c: New file.
5511 * sysdeps/unix/sysv/aix/setrlimit.c: New file.
5512 * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
5513 * sysdeps/unix/sysv/aix/setsid.c: New file.
5514 * sysdeps/unix/sysv/aix/setsockopt.c: New file.
5515 * sysdeps/unix/sysv/aix/shmat.c: New file.
5516 * sysdeps/unix/sysv/aix/shmctl.c: New file.
5517 * sysdeps/unix/sysv/aix/shmdt.c: New file.
5518 * sysdeps/unix/sysv/aix/shmget.c: New file.
5519 * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
5520 * sysdeps/unix/sysv/aix/sigstack.c: New file.
5521 * sysdeps/unix/sysv/aix/socket.c: New file.
5522 * sysdeps/unix/sysv/aix/socketpair.c: New file.
5523 * sysdeps/unix/sysv/aix/speed.c: New file.
5524 * sysdeps/unix/sysv/aix/symlink.c: New file.
5525 * sysdeps/unix/sysv/aix/sync.c: New file.
5526 * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
5527 * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
5528 * sysdeps/unix/sysv/aix/times.c: New file.
5529 * sysdeps/unix/sysv/aix/ulimit.c: New file.
5530 * sysdeps/unix/sysv/aix/umask.c: New file.
5531 * sysdeps/unix/sysv/aix/unlink.c: New file.
5532 * sysdeps/unix/sysv/aix/ustat.c: New file.
5533 * sysdeps/unix/sysv/aix/utimes.c: New file.
5535 2000-04-18 Andreas Jaeger <aj@suse.de>
5537 * manual/startup.texi (Environment Access): Fix putenv prototype
5538 according to recent changes.
5539 Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
5542 * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
5545 2000-04-18 Ulrich Drepper <drepper@redhat.com>
5547 * posix/Makefile (tests): Add tst-getaddrinfo.
5548 * posix/tst-getaddrinfo.c: New file.
5550 2000-04-17 Ulrich Drepper <drepper@redhat.com>
5552 * manual/sysinfo.texi: Document that umount2 is not widely available.
5554 * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
5555 signal timing is not really implemented.
5557 2000-04-17 Andreas Jaeger <aj@suse.de>
5559 * elf/rtld.c (process_dl_debug): Mention statistics in help message.
5561 2000-04-17 Jakub Jelinek <jakub@redhat.com>
5563 * Makefile (install): Use slibdir and libdir instead of inst_slibdir
5566 2000-04-17 Ulrich Drepper <drepper@redhat.com>
5568 * manual/intro.texi: Change reference from System Information to
5570 * manual/users.texi: Likewise.
5571 * manual/conf.texi: Likewise.
5572 * manual/sysinfo.texi: Document mount, umount, and umount2.
5573 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5575 2000-04-17 Jakub Jelinek <jakub@redhat.com>
5577 * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
5578 Create wnumstr as well as numstr to support wide character output
5581 2000-04-15 Jakub Jelinek <jakub@redhat.com>
5583 * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
5584 modification and move it...
5585 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
5586 Add -melf64_sparc switch to $(LD) on sparc64-linux.
5587 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
5588 switch to $(LD) on sparc-linux.
5590 2000-04-17 Thorsten Kukuk <kukuk@suse.de>
5592 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
5593 and setresuid from sysdep_routines.
5595 2000-04-17 Ulrich Drepper <drepper@redhat.com>
5597 * manual/Makefile (chapters): Add resource.
5599 * manual/time.texi: Move section on resources to...
5600 * manual/resource.texi: ...here. New file. Document ulimit, vlimit,
5602 * manual/setjmp.texi: Adjust back reference.
5603 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5605 * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
5607 * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
5608 * sysdeps/unix/sysv/aix/kill.c: Add copyright.
5609 * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
5610 * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
5611 * sysdeps/unix/sysv/aix/execve.c: Add copyright.
5612 * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
5613 * sysdeps/unix/sysv/aix/close.c: Add copyright.
5614 * sysdeps/unix/sysv/aix/brk.c: Add copyright.
5615 * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
5616 * sysdeps/unix/sysv/aix/access.c: Add copyright.
5617 * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
5618 * sysdeps/unix/sysv/aix/Implies: New file.
5619 * sysdeps/unix/sysv/aix/Versions: New file.
5620 * sysdeps/unix/sysv/aix/bind.c: New file.
5621 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
5622 * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
5623 * sysdeps/unix/sysv/aix/bits/poll.h: New file.
5624 * sysdeps/unix/sysv/aix/bits/termios.h: New file.
5625 * sysdeps/unix/sysv/aix/chdir.c: New file.
5626 * sysdeps/unix/sysv/aix/chmod.c: New file.
5627 * sysdeps/unix/sysv/aix/chroot.c: New file.
5628 * sysdeps/unix/sysv/aix/creat.c: New file.
5629 * sysdeps/unix/sysv/aix/dl-close.c: New file.
5630 * sysdeps/unix/sysv/aix/dl-open.c: New file.
5631 * sysdeps/unix/sysv/aix/dl-sym.c: New file.
5632 * sysdeps/unix/sysv/aix/fchdir.c: New file.
5633 * sysdeps/unix/sysv/aix/fchmod.c: New file.
5634 * sysdeps/unix/sysv/aix/getgroups.c: New file.
5635 * sysdeps/unix/sysv/aix/gethostname.c: New file.
5636 * sysdeps/unix/sysv/aix/getpriority.c: New file.
5637 * sysdeps/unix/sysv/aix/getrlimit.c: New file.
5638 * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
5639 * sysdeps/unix/sysv/aix/getrusage.c: New file.
5640 * sysdeps/unix/sysv/aix/link.c: New file.
5641 * sysdeps/unix/sysv/aix/madvise.c: New file.
5642 * sysdeps/unix/sysv/aix/mkdir.c: New file.
5643 * sysdeps/unix/sysv/aix/mknod.c: New file.
5644 * sysdeps/unix/sysv/aix/mprotect.c: New file.
5645 * sysdeps/unix/sysv/aix/msgctl.c: New file.
5646 * sysdeps/unix/sysv/aix/msgget.c: New file.
5647 * sysdeps/unix/sysv/aix/msgrcv.c: New file.
5649 2000-04-17 Andreas Jaeger <aj@suse.de>
5651 * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
5652 as suggested by Ulrich Drepper.
5653 (__dl_runtime_resolve): Remove unused variable, initialize sym
5655 (RTLD_START): Document OFFSET_GP_GOT.
5656 (OFFSET_GP_GOT): New magic value.
5657 (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
5658 (elf_machine_got_rel): Only declare strtab if needed.
5659 (elf_machine_relplt): Removed, it's not needed.
5660 (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
5662 * sysdeps/mips/add_n.S: Add newline at EOF.
5663 * sysdeps/mips/rshift.S: Likewise.
5664 * sysdeps/mips/mul_1.S: Likewise.
5665 * sysdeps/mips/lshift.S: Likewise.
5666 * sysdeps/mips/addmul_1.S: Likewise.
5668 2000-04-17 Ulrich Drepper <drepper@redhat.com>
5670 * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
5672 * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
5673 * elf/dl-lookup.c: Likewise.
5674 * elf/dl-init.c (_dl_init): Likewise.
5675 * elf/dl-fini.c (_dl_fini): Likewise.
5676 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
5677 * elf/dl-close.c (_dl_close): Likewise.
5678 * elf/rtld.c (_dl_start_final): Likewise.
5680 * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
5682 2000-04-15 Ulrich Drepper <drepper@redhat.com>
5684 * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
5685 only fall back on using Linux.
5687 * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
5688 Before testing versions check that we actually loaded the object
5689 and whether we are in trace mode. If not loaded during tracing don't
5690 test versions in this object.
5691 (_dl_check_all_versions): Take new parameter and pass to
5692 _dl_check_map_versions.
5693 * sysdeps/generic/ldsodefs.h: Update prototypes for
5694 _dl_check_all_versions and _dl_check_map_versions.
5695 * elf/rtld.c (struct version_check_args): Add dotrace.
5696 (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
5697 (dl_main): Pass info about trace mode to version_check_doit.
5698 * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
5699 _dl_check_all_versions.
5701 * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
5703 Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5705 * manual/argp.texi: Document index parameter of argp_parse.
5707 Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
5709 2000-04-14 Andreas Jaeger <aj@suse.de>
5711 * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
5712 SHMFS_SUPER_MAGIC. Remove definition of SHMFS_SUPER_MAGIC.
5714 * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
5716 2000-04-15 Ulrich Drepper <drepper@redhat.com>
5718 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
5719 compat_symbol call for old adjtime.
5721 * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
5722 function interface. Patch by Richard Henderson <rth@cygnus.com>.
5724 * posix/Makefile (headers): Add spawn.h.
5725 (distribute): Add spawn_int.h.
5726 (routines): Add spawn_faction_init, spawn_faction_destroy,
5727 spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
5728 spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
5729 spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
5730 spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
5731 * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
5732 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
5733 posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
5734 posix_spawnattr_init, posix_spawnattr_destroy,
5735 posix_spawnattr_getdefault, posix_spawnattr_setdefault,
5736 posix_spawnattr_getflags, posix_spawnattr_setflags,
5737 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
5739 * posix/spawn.c: New file.
5740 * posix/spawn.h: New file.
5741 * posix/spawn_faction_addclose.c: New file.
5742 * posix/spawn_faction_adddup2.c: New file.
5743 * posix/spawn_faction_addopen.c: New file.
5744 * posix/spawn_faction_destroy.c: New file.
5745 * posix/spawn_faction_init.c: New file.
5746 * posix/spawn_int.h: New file.
5747 * posix/spawnattr_destroy.c: New file.
5748 * posix/spawnattr_getdefault.c: New file.
5749 * posix/spawnattr_getflags.c: New file.
5750 * posix/spawnattr_getpgroup.c: New file.
5751 * posix/spawnattr_getschedparam.c: New file.
5752 * posix/spawnattr_getschedpolicy.c: New file.
5753 * posix/spawnattr_getsigmask.c: New file.
5754 * posix/spawnattr_init.c: New file.
5755 * posix/spawnattr_setdefault.c: New file.
5756 * posix/spawnattr_setflags.c: New file.
5757 * posix/spawnattr_setpgroup.c: New file.
5758 * posix/spawnattr_setschedparam.c: New file.
5759 * posix/spawnattr_setschedpolicy.c: New file.
5760 * posix/spawnattr_setsigmask.c: New file.
5761 * posix/spawni.c: New file.
5762 * posix/spawnp.c: New file.
5764 * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
5765 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5767 2000-04-14 Ulrich Drepper <drepper@redhat.com>
5769 * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
5770 * malloc/malloc.c: Implement posix_memalign for glibc.
5771 * include/stdlib.h: Add prototype for __posix_memalign.
5772 * stdlib/stdlib.h: Add prototype for posix_memalign.
5774 2000-04-14 Andreas Jaeger <aj@suse.de>
5776 * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
5778 (elf_machine_got_rel): Cast sym correctly.
5780 * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
5781 * sysdeps/mips/addmul_1.S: Likewise.
5782 * sysdeps/mips/lshift.S: Likewise.
5783 * sysdeps/mips/mul_1.S: Likewise.
5784 * sysdeps/mips/rshift.S: Likewise.
5785 * sysdeps/mips/sub_n.S: Likewise.
5786 * sysdeps/mips/submul_1.S: Likewise.
5788 * stdlib/stdlib.h: Fix typo in comment.
5790 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5791 2.2 for libdl, ld and libm.
5793 * sysdeps/generic/madvise.c: Fix typos.
5795 * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
5797 * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
5799 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
5802 2000-04-14 Ulrich Drepper <drepper@redhat.com>
5804 * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
5805 * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
5806 Make old name weak alias.
5807 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5808 * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
5809 Make old name weak alias.
5810 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5812 * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
5813 posix_fallocate, and posix_fallocate64.
5814 * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
5815 posix_fallocate, and posix_fallocate64.
5816 * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
5817 posix_fallocate, and posix_fallocate64.
5818 * sysdeps/generic/fadvise.c: New file.
5819 * sysdeps/generic/fadvise64.c: New file.
5820 * sysdeps/generic/fallocate.c: New file.
5821 * sysdeps/generic/fallocate64.c: New file.
5822 * sysdeps/posix/fallocate.c: New file.
5823 * sysdeps/posix/fallocate64.c: New file.
5824 * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
5825 POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
5826 POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
5827 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
5828 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5829 * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
5830 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5831 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5832 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5834 * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
5835 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5837 2000-04-13 Ulrich Drepper <drepper@redhat.com>
5839 * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
5840 * misc/sys/mman.h (posix_madvise): Add prototype.
5841 * sysdeps/generic/madvise.c (madvise): Renamed to __madvise. Make
5842 old name and posix_madvise weak aliases.
5843 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5844 * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
5845 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5846 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5847 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5848 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
5849 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5851 2000-04-13 Andreas Jaeger <aj@suse.de>
5853 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
5855 (elf_machine_got_rel): Only add runtime display if needed.
5856 (elf_machine_got_rel): Handle symbol versioning.
5858 2000-04-13 Andreas Jaeger <aj@suse.de>
5860 * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
5862 * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
5865 * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
5866 with some applications.
5867 Patches by Ralf Baechle <ralf@uni-koblenz.de>.
5869 * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
5870 * sysdeps/mips/bsd-_setjmp.S: Likewise.
5871 * sysdeps/mips/setjmp.S: Likewise.
5873 * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
5875 2000-04-13 Ulrich Drepper <drepper@redhat.com>
5877 * posix/globtest.sh: Work around inconsistency with expanding ~/
5878 in shell (PR libc/1690). Reported by patsmith@pobox.com.
5880 2000-04-12 Ulrich Drepper <drepper@redhat.com>
5882 * posix/getconf.c: Add support for many more POSIX options.
5883 * sysdeps/posix/sysconf.c: Likewise.
5884 * sysdeps/generic/bits/confname.h: Add many more POSIX options.
5885 * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
5887 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5888 * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
5889 CLOCK_PROCESS_CPUTIME_ID. Add define CLOCK_MONOTONIC and
5890 CLOCK_THREAD_CPUTIME_ID.
5891 * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
5892 CLOCK_PROCESS_CPUTIME_ID.
5893 * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
5894 __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID. Handle
5895 CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
5896 * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
5898 * malloc/Makefile (tests): Add tst-calloc.
5899 * malloc/tst-calloc.c: New file.
5901 * sysdeps/arm/libm-test-ulps: New file.
5903 * malloc/malloc.c: Undo all of today's changes.
5905 * locale/programs/locale.c (show_info): Don't try to look into
5906 data for LC_ALL (there is none).
5908 * malloc/malloc.c (cALLOc): Clear only what the user asked for and
5909 avoid writing over boundary.
5910 Patch by Greg McGary <gkm@eng.ascend.com>.
5912 * sysdeps/arm/memprof.h: New file.
5914 2000-04-12 Andreas Jaeger <aj@suse.de>
5916 * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
5918 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
5919 for memmem declaration.
5921 2000-04-12 Ulrich Drepper <drepper@redhat.com>
5923 * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
5925 * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
5927 * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
5929 * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
5930 Patch by Bart Veer <bartv@redhat.com>.
5932 * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
5935 2000-04-11 Andreas Jaeger <aj@suse.de>
5937 * sysdeps/mips/dl-machine.h: Update some comments.
5938 (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
5940 2000-04-11 Ulrich Drepper <drepper@redhat.com>
5942 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
5943 _POSIX_SHARED_MEMORY_OBJECTS.
5945 * rt/Makefile (tests): Add tst-shm.
5946 Add rules to generate tst-shm.
5947 * rt/tst-shm.c: New file.
5949 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
5952 * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
5953 * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
5954 * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
5955 * sysdeps/generic/shm_open.c: New file.
5956 * sysdeps/generic/shm_unlink.c: New file.
5957 * sysdeps/unix/sysv/linux/shm_open.c: New file.
5958 * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
5959 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
5960 __endmntent, __getmntent_r, __setmntent, and __statfs.
5962 * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
5963 fragmentation by allocating new memory at the end instead of
5966 * posix/globtest.sh: Fix last change.
5968 2000-04-10 Philip Blundell <philb@gnu.org>
5970 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
5971 IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
5972 IPV6_DROP_MEMBERSHIP.
5973 * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
5976 2000-04-11 Ulrich Drepper <drepper@redhat.com>
5978 * elf/readlib (process_file): Close streams in case of an error.
5980 2000-04-09 Andreas Jaeger <aj@suse.de>
5982 * elf/readlib.c (process_file): Check if file is big enough to
5983 contain aout and ELF headers.
5984 Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
5986 2000-04-10 Jes Sorensen <Jes.Sorensen@cern.ch>
5988 * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
5990 2000-04-11 Ulrich Drepper <drepper@redhat.com>
5992 * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
5994 * rt/Makefile (tests): Add tst-clock.
5995 Add rules to build tst-clock.
5996 * rt/tst-clock.c: New file.
5997 * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
5998 about initialization of nsec.
5999 * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
6000 about initialization of freq. Set retval to zero if successful.
6001 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
6003 2000-04-10 Ulrich Drepper <drepper@redhat.com>
6005 * Versions.def (librt): Add GLIBC_2.2.
6006 * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
6007 clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
6008 timer_getoverr, timer_gettime, and timer_settime.
6009 * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
6010 clock_settime, timer_create, timer_delete, timer_getoverrun,
6011 timer_gettime, and timer_settime.
6012 * sysdeps/generic/clock_getcpuclockid.c: New file.
6013 * sysdeps/generic/get_clockfreq.c: New file.
6014 * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
6015 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
6016 * sysdeps/mach/hurd/i386/bits/time.h: New file.
6017 * sysdeps/unix/i386/i586/clock_getres.c: New file.
6018 * sysdeps/unix/i386/i586/clock_gettime.c: New file.
6019 * sysdeps/unix/i386/i686/Implies: New file.
6020 * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
6021 * time/Makefile (routines): Move clock_getres, clock_gettime,
6022 clock_settime, timer_create, timer_delete, timer_getoverr,
6023 timer_gettime, and timer_settime to rt/Makefile.
6024 * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
6025 clock_settime, timer_create, timer_delete, timer_getoverrun,
6026 timer_gettime, and timer_settime.
6027 * time/time.h: Define pid_t. Add prototype for clock_getcpuclockid.
6029 * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility. Use __const__
6030 and not const as attribute name.
6032 2000-04-10 Thorsten Kukuk <kukuk@suse.de>
6034 * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
6036 2000-04-10 Andreas Schwab <schwab@suse.de>
6038 * posix/globtest.sh: Skip tests that depend on unreadable
6039 directories if run as root.
6041 2000-04-10 Ulrich Drepper <drepper@redhat.com>
6043 * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
6044 for correct range. From code by Kaz Kylheku <kaz@ashi.footprints.net>.
6046 2000-04-09 Ulrich Drepper <drepper@redhat.com>
6048 * sysdeps/unix/clock_gettime.c: New file.
6049 * sysdeps/unix/clock_settime.c: New file.
6050 * sysdeps/posix/clock_getres.c: New file.
6052 * conform/data/ftw.h-data: Add allow-header sys/stat.h.
6054 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
6055 lseek call be passing in a buffer which never allow a successful
6056 first getdents syscall if not at leas the initial entry can be
6057 stored in the user buffer.
6059 * localedata/Makefile: Add rules to clean up directories created by
6062 2000-04-09 Geoff Clare <gwc@unisoft.com>
6064 * localedata/tst-fmon.data: Added new tests for strfmon()
6065 using test locales with all combinations of cs_precedes,
6066 sign_posn and sep_by_space.
6067 * localedata/tst-fmon.sh: Updated to support the new tests.
6068 * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
6069 the localedef source for the new strfmon() test locale.
6070 * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
6071 * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
6072 * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
6073 * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
6074 * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
6075 * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
6076 * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
6077 * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
6078 * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
6079 * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
6080 * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
6081 * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
6082 * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
6083 * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
6085 * stdlib/strfmon.c: Correct problems with missing or extra
6086 spaces for unusual combinations of sign_posn and sep_by_space.
6087 Improved left-precision alignment code.
6089 2000-04-07 Andreas Jaeger <aj@suse.de>
6091 * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
6093 2000-04-10 Andreas Jaeger <aj@suse.de>
6095 * intl/Makefile: Don't run do-gettext-test when cross-compiling.
6097 2000-04-09 Ulrich Drepper <drepper@redhat.com>
6099 Implement handling of restartable conversion functions according to
6101 * iconv/gconv.h (__gconv_fct): Add additional parameter.
6102 * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
6103 * iconv/gconv.c: Pass additional parameter to conversion function.
6104 * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
6105 (internal_ucs4le_loop_single): New function.
6106 (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
6107 (__gconv_transform_internal_ascii): Likewise.
6108 (__gconv_transform_internal_utf8): Likewise.
6109 (__gconv_transform_utf8_internal): Likewise.
6110 (__gconv_transform_ucs2_internal): Likewise.
6111 (__gconv_transform_internal_ucs2): Likewise.
6112 (__gconv_transform_ucs2reverse_internal): Likewise.
6113 (__gconv_transform_internal_ucs2reverse): Likewise.
6114 (internal_ucs4le_loop_unaligned): Before return
6115 __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
6116 a valid character. Otherwise return __GCONV_ILLEGAL_INPUT.
6117 (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
6118 * iconv/loop.c: Fit in definition of function to convert one character
6119 for processing of left-over bytes from the state object.
6120 * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
6121 inend to match names in loop functions.
6122 (RESET_INPUT_BUFFER): Change apprpriately.
6123 (gconv): If needed, call function to process bytes from the state
6124 object. Similar at the end: store left over bytes if input is
6126 Take extra argument and add new argument to all calls of the
6127 conversion function.
6128 * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
6129 information in the state object to not conflict with length count.
6130 * iconvdata/iso-2022-jp.c: Likewise.
6131 * iconvdata/iso-2022-kr.c: Likewise.
6132 * iconvdata/unicode.c: Adjust for change change in parameters of
6134 * iconvdata/utf-16.c: Likewise.
6135 * libio/iofwide.c: Add new parameter to all calls of conversion
6137 * wcsmbs/btowc.c: Likewise.
6138 * wcsmbs/mbrtowc.c: Likewise.
6139 * wcsmbs/mbsnrtowcs.c: Likewise.
6140 * wcsmbs/mbsrtowcs.c: Likewise.
6141 * wcsmbs/wcrtomb.c: Likewise.
6142 * wcsmbs/wcsnrtombs.c: Likewise.
6143 * wcsmbs/wcsrtombs.c: Likewise.
6144 * wcsmbs/wctob.c: Likewise.
6146 * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
6149 2000-04-07 Andreas Jaeger <aj@suse.de>
6151 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
6154 2000-04-07 Ulrich Drepper <drepper@redhat.com>
6156 * wcsmbs/wchar.h (__mbstate_t): Rename elements. Make __value
6157 element a union to allow byte access.
6158 * iconvdata/iso-2022-cn.c: Adjust for change of element name in
6160 * iconvdata/iso-2022-jp.c: Likewise.
6161 * iconvdata/iso-2022-kr.c: Likewise.
6162 * wcsmbs/mbsinit.c: Likewise.
6163 * stdlib/mblen.c: Likewise.
6164 * stdio-common/printf-parse.h: Likewise.
6166 2000-04-06 Ulrich Drepper <drepper@redhat.com>
6168 * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
6169 kernel does not allow relative seeks on descriptors associated
6170 with directories. Go back to get the position in the directory
6171 every time we enter the function. Return -1 and set errno if one
6172 entry could be read from the kernel but does not fit into the
6173 buffer passed in by the user.
6175 * locale/programs/charmap.c (charmap_new_char): Add parameter step.
6176 Support ..(2).. ellipsis.
6177 (parse_charmap): Recognize ..(2).. etc and pass step down.
6178 Correctly generate names for UCS4 characters.
6180 * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
6181 (ctype_finish): We know the wide character value for <SP>,
6183 (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
6184 (charclass_ucs4_ellipsis): Likewise.
6185 (read_translit_ignore_entry): Store ellipsis step.
6186 (ctype_read): Recognize ..(2).. etc and pass step down.
6188 * locale/programs/linereader.c (lr_token): When seeing comment
6189 character ignore only rest of line in sources but stop at escaped
6191 Recognize ..(2).. and ....(2).....
6193 * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
6194 and tok_ellipsis4_2.
6196 2000-04-06 Andreas Jaeger <aj@suse.de>
6198 * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
6199 removed, remove it here also.
6200 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
6201 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
6202 * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
6203 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
6205 2000-04-06 Jakub Jelinek <jakub@redhat.com>
6207 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
6208 include bits/sigcontext.h.
6209 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
6211 2000-04-06 Ulrich Drepper <drepper@redhat.com>
6213 * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
6214 collation symbol definition. Value in quivalence definition must
6215 be defined, don't check that it is not.
6217 * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
6218 values as character names.
6220 * locale/programs/ld-ctype.c (get_character): Handle missing
6221 repertoire map correctly.
6223 2000-04-05 Cristian Gafton <gafton@redhat.com>
6225 * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
6226 because it is used in generic code.
6227 * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
6228 * wcsmbs/wcwidth.h: Declare __ctype32_b.
6229 * intl/gettext.c: Include <locale.h>.
6230 * intl/ngettext.c: Likewise.
6232 2000-04-05 Jakub Jelinek <jakub@redhat.com>
6234 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
6235 socklen_t type for size.
6236 * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
6237 init function interface.
6238 * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6239 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
6241 (__jmp_buf): Declare the whole type structure here, don't use
6244 2000-04-05 Ulrich Drepper <drepper@redhat.com>
6246 * iconv/skeleton.c (put16u): Fix typo.
6247 Reported by Bruno Haible <haible@ilog.fr>.
6249 * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
6250 * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
6251 * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
6252 * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
6253 * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
6254 * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
6256 * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
6257 * Makefile (distribute): Add abi-versions.awk and
6259 Patches by Torsten Duwe <duwe@caldera.de>.
6261 2000-04-05 Andreas Schwab <schwab@suse.de>
6263 * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
6265 2000-04-05 Andreas Schwab <schwab@suse.de>
6267 * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
6268 entry point, used on Hurd.
6270 2000-04-04 Andreas Jaeger <aj@suse.de>
6272 * intl/Makefile: Only run the gettext test with shared libraries.
6274 2000-03-16 Mark Kettenis <kettenis@gnu.org>
6276 * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
6277 Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
6279 2000-04-05 Roland McGrath <roland@baalperazim.frob.com>
6281 * Makeconfig: Undo last change.
6282 * configure.in: If --disable-shared was given, don't set VERSIONING,
6283 don't define DO_VERSIONING, and don't give scare warning for no
6285 * configure: Regenerated.
6287 2000-04-04 Roland McGrath <roland@baalperazim.frob.com>
6289 * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
6291 2000-04-04 Andreas Jaeger <aj@suse.de>
6293 * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
6295 2000-04-04 Ulrich Drepper <drepper@redhat.com>
6297 * elf/dl-runtime.c (fixup): Correct handling of symbols marked
6298 STV_HIDDEN and STV_INTERNAL during lookup.
6299 (profile_fixup): Likewise.
6300 * elf/dl-reloc.c (RESOLVE): Likewise.
6302 * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
6303 unaligned so that it compiles for system which need unaligned
6306 2000-04-04 Andreas Schwab <schwab@suse.de>
6308 * elf/cache.c (print_entry): Only look at the type field when
6311 2000-04-04 Andreas Schwab <schwab@suse.de>
6313 * iconvdata/big5.c (BODY): Fix typo.
6315 2000-04-04 Andreas Schwab <schwab@suse.de>
6317 * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
6318 function interface. Remove unused _dl_start_user entry point.
6320 2000-04-03 Andreas Jaeger <aj@suse.de>
6322 * include/arpa/inet.h (__inet_aton): Add protoype.
6324 2000-04-01 Andreas Jaeger <aj@suse.de>
6326 * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
6328 * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
6329 * sysdeps/mach/mips/thread_state.h: Likewise.
6331 * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
6332 * sysdeps/generic/fegetenv.c: Likewise.
6333 * sysdeps/generic/fesetenv.c: Likewise.
6334 * sysdeps/generic/feupdateenv.c: Likewise.
6335 * sysdeps/generic/fraiseexcpt.c: Likewise.
6336 * sysdeps/generic/fsetexcptflg.c: Likewise.
6337 * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
6338 * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
6339 * sysdeps/unix/sysv/linux/errlist.c: Likewise.
6340 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6342 2000-04-02 H.J. Lu <hjl@gnu.org>
6344 * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
6346 2000-04-03 Ulrich Drepper <drepper@redhat.com>
6348 * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
6349 (add_name_to_object): Add cast in malloc call.
6350 (fillin_rpath): Optimize loop to initialize ->status a bit.
6352 * sysdeps/i386/dl-machine.h: Undo last change.
6353 * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
6354 Restore %edx register after call here.
6356 * sysdeps/arm/atomicity.h: New file.
6357 Contributed by Jesper Skov <jskov@redhat.com>.
6359 2000-04-03 Roland McGrath <roland@baalperazim.frob.com>
6361 * Makeconfig (preprocess-versions): Undo last change.
6362 Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
6364 * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
6365 here, before we might move the stack.
6366 (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
6367 (init1): And not here.
6369 * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
6370 change, to restore argc value in call-clobbered register after
6371 RTLD_START_SPECIAL_INIT, which will contain a call.
6373 * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
6374 allocating and initializing L->l_initfini.
6376 * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
6378 2000-04-03 Ulrich Drepper <drepper@redhat.com>
6380 * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
6381 RUNPATH, RPATH, and LD_LIBRARY_PATH.
6382 (open_path): Change type of fourth parameter. Make pointer to array
6383 of pointers. Create variable dirs with original type.
6384 Track whether any directory for the object exists and if not,
6385 change *DIRSP to (void*) -1 to signal there is no such search path.
6386 (_dl_map_object): Change all calls of open_path.
6387 Rewrite decompose_rpath calls.
6389 2000-03-31 Andreas Schwab <schwab@suse.de>
6391 * string/strfry.c: Declare STATE as array of char instead of int
6392 and do not initialize it (done by initstate_r). Pass correct
6395 2000-04-03 Ulrich Drepper <drepper@redhat.com>
6397 * sysdeps/generic/ldsodefs.h: Fix typo in comment.
6399 * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
6400 instruction out of the code.
6402 2000-04-02 Ulrich Drepper <drepper@redhat.com>
6404 * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
6405 element at this position.
6407 * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
6408 * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
6410 * elf/dl-lookup.c (add_dependency): New function.
6411 (_dl_lookup_symbol): Use it whenever symbol was found in a global,
6412 dynamically loaded object.
6413 (_dl_lookup_symbol_skip): Likewise.
6414 (_dl_lookup_versioned_symbol): Likewise.
6415 (_dl_lookup_versioned_symbol_skip): Likewise.
6416 * elf/dl-open.c: Don't define _dl_load_lock here...
6417 * elf/rtld.c: ...but here...
6418 * elf/dl-support.c: ...and here.
6419 * elf/dl-close.c (_dl_close): Close also dependent objects introduce
6421 * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
6423 * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
6425 * dlfcn/glrefmain.c: Add one more debug message.
6427 * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
6429 * Makerules (sysd-versions): Use ( ) instead of { }.
6431 * elf/dl-load.c: Use __builtin_expect to signal that compiler should
6432 optimize for the non-debugging case.
6433 * elf/dl-lookup.c: Likewise.
6434 * sysdeps/generic/libc-start.c: Likewise.
6436 2000-04-02 Roland McGrath <roland@baalperazim.frob.com>
6438 * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
6439 (init1): Don't initialize __environ here, since init already does it.
6440 (first_init): New function, broken out of _init.
6441 (_hurd_stack_setup): Use it.
6442 [SHARED] (_dl_init_first): New function, renamed from old _init.
6443 (init1) [SHARED]: Don't call posixland_init here.
6444 (posixland_init): Take ENVP arg, so signature is usual for initializer.
6445 [SHARED] (_init): Define as alias for posixland_init.
6446 [! SHARED] (__libc_first_init): Define as alias for posixland_init.
6447 * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
6448 RTLD_START_SPECIAL_INIT before calling initializers.
6449 (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
6450 * sysdeps/mach/hurd/i386/dl-machine.h: New file.
6451 * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
6452 * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
6454 * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
6455 since we define the function with the name `tmpfile'.
6457 * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
6458 * hurd/Versions: Likewise.
6460 2000-04-02 Ulrich Drepper <drepper@redhat.com>
6462 * elf/dl-runtime.c (fixup): Fix typo in comment.
6464 * resolv/netdb.h (getnameinfo): All length parameters are of type
6466 * inet/getnameinfo.c: Likewise.
6468 2000-04-01 Ulrich Drepper <drepper@redhat.com>
6470 * posix/unistd.h (socklen_t): Define if it has not yet happened.
6471 (gethostname): Change type of second parameter to socklen_t.
6472 * include/unistd.h (__gethostname): Change type of second
6473 parameter to socklen_t.
6474 * sysdeps/generic/gethostname.c (__gethostname): Likewise.
6475 * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
6476 * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
6477 * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
6479 * sysdeps/unix/sysv/linux/gethostname.c: Removed.
6480 * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
6481 Allow definition elsewhere.
6482 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6483 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6484 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6485 * sysdeps/generic/bits/types.h: Define __socklen_t.
6486 * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
6487 * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
6488 * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
6489 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
6490 * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
6491 * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
6492 * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
6494 * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
6495 (inet_lnaof): Likewise.
6496 (inet_netof): Likewise.
6497 (inet_network): Likewise.
6498 (inet_aton): Likewise.
6499 (inet_makeaddr): Change parameter types to in_addr_t.
6500 (inet_neta): Likewise.
6501 (inet_ntop): Change type of last parameter to socklen_t.
6502 (inet_aton): Only make available if __USE_MISC.
6503 (inet_neta): Likewise.
6504 (inet_net_ntop): Likewise.
6505 (inet_net_pton): Likewise.
6506 (inet_nsap_ntoa): Likewise.
6508 * inet/in.h: Define in_port_t type.
6509 Define in_addr_t type.
6510 (struct in_addr): Use in_addr_t in definition.
6511 (IN_CLASSA): Use cast to in_addr_t.
6512 (IN_CLASSB): Likewise.
6513 (IN_CLASSC): Likewise.
6514 (IN_CLASSD): Likewise.
6515 (IN_EXPERIMENTAL): Likewise.
6516 (IN_BADCLASS): Likewise.
6517 (INADDR_ANY): Likewise.
6518 (INADDR_BROADCAST): Likewise.
6519 (INADDR_NONE): Likewise.
6520 (INADDR_LOOPBACK): Likewise.
6521 (INADDR_UNSPEC_GROUP): Likewise.
6522 (INADDR_ALLHOSTS_GROUP): Likewise.
6523 (INADDR_ALLRTRS_GROUP): Likewise.
6524 (INADDR_MAX_LOCAL_GROUP): Likewise.
6525 (struct sockaddr_in): Use in_port_t for sin_port element.
6526 (struct sockaddr_in6): Use in_port_t for sin6_port element.
6527 Use uint8_t instead of u_int8_t.
6529 * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
6530 Call __inet_aton instead of inet_aton.
6531 (__inet_aton): Renamed from inet_aton. Add weak alias under old name.
6533 * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
6534 (innetgr): Likewise.
6535 (struct addrinfo): Use socklen_t for ai_addrlen element.
6537 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
6538 IPV6_RECVERR): New defines.
6540 * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
6541 * inet/getnetbyad.c: Likewise.
6542 * inet/getnetbyad_r.c: Likewise.
6543 * nis/nss_nis/nis-network.c: Likewise.
6544 * nis/nssplus_nis/nisplus-network.c: Likewise.
6545 * nss/nss_files/files-network.c: Likewise.
6546 * resolv/netdb.h: Define uint32_t if not already happened.
6547 Include bits/netdb.h. Remove definition of struct netent.
6548 Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
6549 * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
6550 * sysdeps/generic/bits/netdb.h: New file.
6551 * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
6553 * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
6554 (tests): Add glrefmain.
6555 Add rules to build modules and run tests. Ignore result of glrefmain
6556 for now since it fails.
6557 * dlfcn/glrefmain.c: New file.
6558 * dlfcn/glreflib1.c: New file.
6559 * dlfcn/glreflib2.c: New file.
6561 * test-skeleton.c: Include <string.h> for strsignal prototype.
6563 * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
6566 * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
6567 former init-first.h. Initialize __libc_multiple_libcs.
6569 2000-03-31 Ulrich Drepper <drepper@redhat.com>
6571 * iconv/skeleton.c: Define access macros with u suffix. Adjust
6572 #if expression for use of unaligned function to the one used in
6573 the definition of these functions.
6574 * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
6575 * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
6576 (internal_ucs4le_loop_unaligned): New function.
6578 * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
6580 (module-names): Add dep1, dep2, dep3, and dep4.
6581 Add dependencies for dep* modules and order.
6582 Define rule for order.out which checks the result.
6583 * elf/dep1.c: New file.
6584 * elf/dep2.c: New file.
6585 * elf/dep3.c: New file.
6586 * elf/dep4.c: New file.
6587 * elf/order.c: New file.
6589 * elf/dl-init.c: Fix typo in comment.
6591 2000-03-31 Andreas Jaeger <aj@suse.de>
6593 * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
6594 init function interface.
6595 * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
6597 2000-03-31 Andreas Jaeger <aj@suse.de>
6599 * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
6600 * sysdeps/mips/fpu/fegetenv.c: Likewise.
6601 * sysdeps/mips/fpu/feupdateenv.c: Likewise.
6602 * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
6603 * sysdeps/mips/fpu/fesetenv.c: Likewise.
6605 * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
6606 anymore, update comment.
6608 * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6610 * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
6611 SHLIB_COMPAT - the struct is always needed.
6613 2000-03-31 Ulrich Drepper <drepper@redhat.com>
6615 * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
6616 * elf/dl-support.c: Define _dl_starting_up.
6618 2000-03-30 Ulrich Drepper <drepper@redhat.com>
6620 * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
6621 * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
6623 * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
6625 * elf/Makefile (dl-routines): Remove preinit.
6626 * elf/Versions: Remove _dl_preinit.
6627 * elf/dl-preinit.c: Removed. Move content into...
6628 * elf/dl-init.c: ...here.
6629 * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
6631 * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
6634 2000-03-29 Geoff Clare <gwc@unisoft.com>
6636 * stdlib/strfmon.c: Corrected problems with the code that
6637 sets default values for [np]_sep_by_space and
6638 [np]_sign_posn; also the new positive/negative alignment
6639 code from the previous patch was not quite right for
6642 * localedata/tst-fmon.data: Changes corresponding to the
6643 two sets of fixes made to stdlib/strfmon.c.
6645 2000-03-29 Jes Sorensen <jes@pcatls01.cern.ch>
6647 * malloc/malloc.c: Declare bit flags UL so that they will not
6648 default to int size when being inverted.
6650 2000-03-29 Andreas Jaeger <aj@suse.de>
6652 * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
6653 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
6655 2000-03-29 Andreas Jaeger <aj@suse.de>,
6656 Ralf Baechle <ralf@uni-koblenz.de>
6658 * Makeconfig: Introduce new variable SHARED to mark code used in
6660 * elf/dl-close.c: Use it instead of PIC.
6661 * elf/dl-load.c: Likewise.
6662 * elf/dl-open.c: Likewise.
6663 * hurd/geteuids.c: Likewise.
6664 * include/libc-symbols.h: Likewise.
6665 * include/shlib-compat.h: Likewise.
6666 * libio/freopen.c: Likewise.
6667 * linuxthreads/cancel.c: Likewise.
6668 * linuxthreads/pthread.c: Likewise.
6669 * linuxthreads/wrapsyscall.c: Likewise.
6670 * nss/nsswitch.c: Likewise.
6671 * stdio-common/vfprintf.c: Likewise.
6672 * sysdeps/arm/init-first.c: Likewise.
6673 * sysdeps/i386/init-first.c: Likewise
6674 * sysdeps/generic/init-first.c: Likewise.
6675 * sysdeps/generic/libc-start.c: Likewise.
6676 * sysdeps/mips/init-first.c: Likewise.
6677 * sysdeps/powerpc/elf/libc-start.c: Likewise.
6678 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6679 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
6680 * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
6681 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6683 * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
6685 2000-03-29 Andreas Jaeger <aj@suse.de>
6687 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
6688 Use D_PTR to access relocated entries in l_info.
6689 (elf_machine_rela): Likewise.
6691 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
6693 (elf_machine_rela): Likewise.
6695 * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
6697 (__elf_machine_fixup_plt): Likewise.
6698 (__process_machine_rela): Likewise.
6700 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
6701 (elf_machine_rela): Likewise.
6703 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
6704 (elf_machine_rel): Likewise.
6706 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
6707 (elf_machine_fixup_plt): Likewise.
6708 (elf_machine_rela): Likewise.
6710 2000-03-29 Andreas Jaeger <aj@suse.de>
6712 * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
6713 * sysdeps/unix/sysv/linux/semctl.c: Likewise.
6714 * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6715 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
6716 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
6717 * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
6718 * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
6719 * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
6720 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
6721 * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
6722 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
6723 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
6724 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
6725 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
6726 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6728 * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
6729 macros, remove K&R prototypes.
6731 2000-03-30 Ulrich Drepper <drepper@redhat.com>
6733 * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
6734 Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
6737 2000-03-30 Andreas Jaeger <aj@suse.de>
6739 * misc/sys/cdefs.h: Remove K&R support.
6741 2000-03-30 Ulrich Drepper <drepper@redhat.com>
6743 * iconv/skeleton.c: Avoid compiling unaligned versions in some
6745 * iconv/loop.c: Likewise.
6747 2000-03-29 Bruno Haible <haible@clisp.cons.org>
6749 * iconv/loop.c (put16): Remove __const. Fix access index.
6750 (put32): Remove __const. Use uint32_t instead of uint16_t.
6751 * iconv/skeleton.c: Likewise.
6753 2000-03-30 Roland McGrath <roland@baalperazim.frob.com>
6755 * mach/Versions (libc: GLIBC_2.0)
6756 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
6757 __vm_allocate on this.
6758 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
6759 mutex- and spinlock-related symbols on this.
6760 [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
6761 New version set. Lock-related symbols go here instead in this case.
6762 * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
6763 _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
6764 cthread_getspecific, cthread_setspecific, __libc_getspecific.
6766 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
6767 Put them here instead.
6768 [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
6769 New version set. Those cthreads symbols go here instead in this case.
6770 * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
6772 2000-03-30 Ulrich Drepper <drepper@redhat.com>
6774 * elf/dl-init.c (_dl_init): We don't need to call constructors
6775 recursively. Fold _dl_init_rec in _dl_init and optimize a bit more.
6777 Implement dynamic determination of constructor/destructor order in
6779 * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
6780 (GLIBC_2.2): Add _dl_init.
6781 * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
6782 r_duplist is not anymore allocated separately. l_initfini is and
6783 therefore free it if necessary.
6784 * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
6785 malloc block. Otherwise allocate l_initfini list only.
6786 Put dependencies for the object in l_initfini list.
6787 Sort dependencies for the object to be loaded topologically.
6788 * elf/dl-fini.c: Before running the destructors sort the topologically.
6789 * elf/dl-init.c (_dl_init): Renamed from _dl_init_next. Rewrite to
6790 call constructors instead of iterating over the pointers. Get list of
6791 objects for which to run constructors from l_initfini element. Accept
6792 argc, argv, and env as parameters and pass them to the constructors.
6793 * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
6794 with size of dynamic section.
6795 * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
6796 _dl_init_next and calling constructors ourself.
6797 * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
6798 Take argc, argv, and env as parameters and pass them to the
6799 constructors. Rewrite to call all constructors and not iterate over
6801 * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry. Don't
6802 precompute l_initcount and l_preinitcount.
6803 * elf/link.h (struct link_map): Add l_ldnum member.
6804 Make l_phdr_allocated part of the bitfield. Remove l_runcount,
6805 l_initcount, and l_preinitcount. Add l_initfini.
6806 * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
6808 * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
6810 * sysdeps/unix/sysv/linux/init-first.h: Removed.
6811 * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
6812 * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
6813 SYSDEP_CALL_INIT. Make _init a strong alias of init. The calling
6814 conventions now match.
6816 * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
6817 effect for shared objects. Don't emit message and call only for
6820 2000-03-29 Ulrich Drepper <drepper@redhat.com>
6822 * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
6823 CSA_Z243.4-1985-1..UCS2.
6824 * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
6827 2000-03-29 Andreas Jaeger <aj@suse.de>
6829 * include/unistd.h: Remove duplicate entry for __rmdir.
6830 Remove declaration of __mkdir since __mkdir is declared in
6833 * manual/creature.texi (Feature Test Macros): Fix typo, reported
6834 by Michael Deutschmann <michael@talamasca.ocis.net>.
6836 * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
6837 * sysdeps/mips/fpu/fegetenv.c: Likewise.
6838 * sysdeps/mips/fpu/fesetenv.c: Likewise.
6839 * sysdeps/mips/fpu/feupdateenv.c: Likewise.
6840 * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
6842 2000-03-28 Andreas Jaeger <aj@suse.de>
6844 * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
6845 declaration, the prototype is defined via bits/mathcalls.h.
6846 (__sincosf): Likewise.
6847 (__sincosl): Likewise.
6851 (__finite): Likewise.
6852 (__inline_mathcodeNP): New macro without prototype
6854 (__inline_mathcodeNP2): Likewise.
6855 (__inline_mathcodeNP3): Likewise.
6856 (__inline_mathcodeNP_): Likewise.
6857 (__inline_mathcodeNP2_): Likewise.
6858 (__inline_mathcodeNP3_): Likewise.
6859 (__inline_mathopNP): Likewise.
6860 (__inline_mathop_declNP): Likewise.
6861 (__inline_mathop_declNP_): Likewise.
6862 (__inline_mathcode_): Use __inline_mathcodeNP_.
6863 (__inline_mathcode2_): Use __inline_mathcodeNP2_.
6864 (__inline_mathcode3_): Use __inline_mathcodeNP3_.
6865 (__inline_mathop_decl_): Use __inline_mathop_declNP__.
6866 (__expm1l): Don't define prototype, the prototype is defined via
6872 (__atan2l): Likewise.
6877 (__fabsl): Likewise.
6895 (__sqrtl): Likewise.
6905 2000-03-28 Ulrich Drepper <drepper@redhat.com>
6907 * Makerules: If make variable md5 is defined to yes after
6908 generating dependencies generate MD5 sum for the object.
6910 * iconv/gconv_builtin.h: Fix length in transformation definition
6913 * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
6915 * iconv/loop.c: Define get16, get32, put16, and put32 macros to
6916 allow as well reading from/writing to unaligned addresses on machines
6917 which don't support this in hardware. Use FCTNAME macro to define
6918 function name. Include the file a second time for platforms which
6919 need special unaligned handling.
6920 * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
6921 to access potentially unaligned addresses. These macros are intended
6922 to be used only outside the loops.
6923 (unaligned): New definition. In case the machine can handle unaligned
6924 access define as zero. Otherwise as a variable which is initialized
6925 as nonzero in case the buffer passed in at runtime is unaligned with
6926 respect to the character set encoding involved.
6927 Call aligned or unaligned looop functions according to unaligned
6929 * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
6930 of direct casting pointer to potentially handle unaligned memory
6932 * iconvdata/8bit-generic.c: Likewise.
6933 * iconvdata/ansi_x3.110.c: Likewise.
6934 * iconvdata/big5.c: Likewise.
6935 * iconvdata/euc-cn.c: Likewise.
6936 * iconvdata/euc-jp.c: Likewise.
6937 * iconvdata/euc-kr.c: Likewise.
6938 * iconvdata/euc-tw.c: Likewise.
6939 * iconvdata/gbk.c: Likewise.
6940 * iconvdata/iso-2022-cn.c: Likewise.
6941 * iconvdata/iso-2022-jp.c: Likewise.
6942 * iconvdata/iso-2022-kr.c: Likewise.
6943 * iconvdata/iso646.c: Likewise.
6944 * iconvdata/iso_6937-2.c: Likewise.
6945 * iconvdata/iso_6937.c: Likewise.
6946 * iconvdata/johab.c: Likewise.
6947 * iconvdata/sjis.c: Likewise.
6948 * iconvdata/t.61.c: Likewise.
6949 * iconvdata/uhc.c: Likewise.
6950 * iconvdata/unicode.c: Likewise.
6951 * iconvdata/utf-16.c: Likewise.
6953 * locale/programs/simple-hash.c: Little optimizations. Remove K&R
6956 * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
6957 * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
6959 * malloc/mcheck.h (mcheck_check_all): Declare.
6961 * stdio-common/Makefile (tests): Add tst-obprintf.
6963 2000-03-28 Roland McGrath <roland@baalperazim.frob.com>
6965 * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
6966 Declare pthread_sigmask.
6968 * csu/version.c: Add 2000 to copyright years.
6969 Remove Emacs local variables section.
6971 2000-03-23 Bruno Haible <haible@clisp.cons.org>
6973 * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
6974 __gconv_transform_internal_ucs2little): Remove declarations.
6975 * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
6976 __gconv_transform_internal_ucs2): Never need to bswap_16.
6977 (__gconv_transform_ucs2reverse_internal,
6978 __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
6980 2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
6982 * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
6983 obsoleting version not being defined at all, in which case the
6984 result is always true.
6986 * Makeconfig (preprocess-versions): New canned sequence for running
6987 cpp on shlib-versions and the like.
6988 (soversions.i): Use it.
6989 * Makerules (Versions.all, sysd-versions): Use it to preprocess the
6990 Versions.def and Versions files.
6992 2000-03-27 Ulrich Drepper <drepper@redhat.com>
6994 * stdio-common/tst-obprintf.c (main): Add another check to see
6995 obstack_printf handling all possible beginnings of the block
6996 inside an obstack chunk.
6998 * locale/programs/localedef.c: Use __malloc_initialize_hook to
6999 install mcheck handler.
7001 * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
7004 2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
7006 * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
7008 * include/shlib-compat.h: Conditionalize <abi-versions.h> include
7009 on [HAVE_ELF && DO_VERSIONING].
7011 2000-03-27 Ulrich Drepper <drepper@redhat.com>
7013 * stdio-common/tst-obprintf.c: New file.
7015 2000-03-26 Ulrich Drepper <drepper@redhat.com>
7017 * libio/genops.c (_IO_default_xsputn): Little optimization. Call
7018 _IO_OVERFLOW directly instead through __overflow.
7020 * locale/programs/localedef.c (construct_output_path): If path
7021 contains a / compute the end of the directory name correctly.
7023 * include/features.h: Undef and document __USE_XOPEN2K.
7025 * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
7026 whenever a function is called. Initiated by calling mcheck_pedantic
7028 * malloc/mcheck.h: Declare mcheck_pedantic.
7029 * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
7030 * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
7033 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
7035 * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
7036 * dlfcn/dlopenold.c: Likewise.
7037 * nss/getXXbyYY_r.c: Likewise.
7038 * nss/getXXent_r.c: Likewise.
7039 * hurd/hurdinit.c: Likewise.
7040 * hurd/compat-20.c: Likewise.
7041 * libio/oldiofopen.c: Likewise.
7042 * libio/oldiofclose.c: Likewise.
7043 * libio/oldiofdopen.c: Likewise.
7044 * libio/oldfileops.c: Likewise.
7045 * libio/oldstdfiles.c: Likewise.
7046 * libio/oldiofsetpos.c: Likewise.
7047 * libio/oldiofgetpos.c: Likewise.
7048 * libio/oldiofgetpos64.c: Likewise.
7049 * libio/oldiofsetpos64.c: Likewise.
7050 * libio/oldiopopen.c: Likewise.
7051 * libio/oldpclose.c: Likewise.
7052 * libio/oldtmpfile.c: Likewise.
7053 * libio/freopen.c (freopen): Likewise.
7054 * libio/iofclose.c (_IO_new_fclose): Likewise.
7056 * sysdeps/mach/sys/reboot.h: Include <features.h>.
7057 (reboot): Declare it.
7059 * libio/Makefile (headers): Add bits/stdio-lock.h here.
7061 * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
7063 * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
7065 * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
7066 __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
7067 We need this for the sbrk decl, which can be included without Unix98.
7069 2000-03-20 Richard Henderson <rth@cygnus.com>
7071 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
7072 argument to yperr2nss is an int, not size_t.
7073 * posix/regex.c (print_partial_compiled_pattern): Cast all
7074 ptrdiff_t to long for printing.
7075 (print_compiled_pattern): Use Z for printing size_t.
7076 * posix/testfnm.c (tests): Avoid trigraphs.
7077 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7078 Use a C comment, not an assembly comment.
7080 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
7081 of __ASSUME_32BITUIDS.
7083 2000-03-26 Ulrich Drepper <drepper@redhat.com>
7085 * libio/iofopncook.c: Remove K&R prototypes.
7087 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
7089 * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
7090 an initial value of 1024 instead of RLIM_INFINITY.
7092 * Versions.def (libmachuser, libhurduser): Remove these sections,
7093 since these libraries do not presently use symbol versions.
7095 * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
7096 is RLIM_INFINITY, return -1 instead.
7098 2000-03-24 Andreas Jaeger <aj@suse.de>
7100 * Makefile (postclean): Added soversions.i.
7102 2000-03-24 Scott Bambrough <scottb@netwinder.org>
7104 * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
7105 _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
7106 and _FPU_IEEE. Change _FPU_RESERVED.
7108 2000-03-24 Scott Bambrough <scottb@netwinder.org>
7110 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
7112 2000-03-24 Roland McGrath <roland@baalperazim.frob.com>
7114 * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
7115 (gaih_inet): Remove unused duplicate variable.
7117 * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
7118 Don't use __libc_sa_len, which only exists for Linux. Just handle
7119 AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
7120 only flavors supported by this function anyway.
7122 2000-03-24 Geoff Clare <gwc@unisoft.com>
7124 * stdlib/strfmon.c: Corrected problems with missing signs and
7125 missing or extra spaces; allow for sign strings longer than
7126 one character; add padding to ensure positive and negative
7127 formats are aligned when a left precision is used.
7129 2000-03-26 Ulrich Drepper <drepper@redhat.com>
7131 * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
7132 Patch by John Mizel <John.Mizel@msdw.com>.
7134 2000-03-25 Ulrich Drepper <drepper@redhat.com>
7136 * manual/install.texi: Remove references to crypt add-on.
7138 2000-03-25 Roland McGrath <roland@baalperazim.frob.com>
7140 * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
7141 section while taking the _hurd_rlimit_lock.
7142 * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
7144 2000-03-24 Roland McGrath <roland@baalperazim.frob.com>
7146 * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
7149 * sysdeps/mach/hurd/if_index.c: New file.
7151 * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
7152 * sysdeps/gnu/net/if.h: here.
7153 (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
7154 * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
7155 * sysdeps/generic/net/if.h: New file. Declares just the standard
7156 functions and `struct if_nameindex' type.
7157 * socket/Makefile (headers): Add net/if.h here.
7158 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
7159 * sysdeps/mach/hurd/Dist: Remove it here.
7160 * sysdeps/unix/sysv/linux/Dist: And here.
7161 * sysdeps/generic/if_index.c: Include <net/if.h>.
7163 2000-03-24 Andreas Jaeger <aj@suse.de>
7165 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
7166 access relocated entries in l_info.
7167 (elf_machine_got_rel): Likewise.
7168 (elf_machine_runtime_setup): Likewise.
7169 * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
7170 (elf_machine_runtime_setup): Likewise.
7171 (__dl_runtime_resolve): Likewise.
7173 2000-03-23 Ulrich Drepper <drepper@redhat.com>
7175 * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
7176 * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
7177 according to RFC 2553.
7178 * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
7179 * inet/getnameinfo.c: Likewise.
7180 Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
7182 2000-03-23 Bruno Haible <haible@clisp.cons.org>
7184 * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
7185 Remove no-op pointer increment.
7187 2000-03-23 Andreas Jaeger <aj@suse.de>
7189 * stdio-common/tst-cookie.c (cookieseek): Change prototype to
7190 follow change for libio.h from 2000-03-10.
7192 2000-03-23 Andreas Jaeger <aj@suse.de>
7194 * elf/dl-addr.c: Adjust include paths for ldsodefs location
7196 * elf/dl-debug.c: Likewise.
7197 * elf/dl-deps.c: Likewise.
7198 * elf/dl-error.c: Likewise.
7199 * elf/dl-fini.c: Likewise.
7200 * elf/dl-init.c: Likewise.
7201 * elf/dl-load.c: Likewise.
7202 * elf/dl-lookup.c: Likewise.
7203 * elf/dl-minimal.c: Likewise.
7204 * elf/dl-object.c: Likewise.
7205 * elf/dl-open.c: Likewise.
7206 * elf/dl-preinit.c: Likewise.
7207 * elf/dl-profile.c: Likewise.
7208 * elf/dl-profstub.c: Likewise.
7209 * elf/dl-reloc.c: Likewise.
7210 * elf/dl-runtime.c: Likewise.
7211 * elf/dl-support.c: Likewise.
7212 * elf/dl-symbol.c: Likewise.
7213 * elf/dl-version.c: Likewise.
7214 * elf/rtld.c: Likewise.
7215 * elf/sprof.c: Likewise.
7216 * sysdeps/generic/dl-cache.c: Likewise.
7217 * sysdeps/generic/dl-origin.c: Likewise.
7218 * sysdeps/generic/dl-sysdep.c: Likewise.
7219 * sysdeps/generic/elf/backtracesyms.c: Likewise.
7220 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7221 * sysdeps/generic/libc-start.c: Likewise.
7222 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7223 * sysdeps/powerpc/dl-machine.c: Likewise.
7224 * sysdeps/powerpc/elf/libc-start.c: Likewise.
7225 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7226 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7227 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7229 * elf/ldsodefs.h: Move file to ...
7230 * sysdeps/generic/ldsodefs.h: ... here.
7232 * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
7234 * sysdeps/mips/elf/ldsodefs.h: New file.
7236 * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
7238 (_dl_check_map_versions): Likewise.
7239 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7240 * elf/dl-load.c (_dl_init_paths): Likewise.
7241 (_dl_map_object): Likewise.
7242 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
7243 (elf_get_dynamic_info): Likewise.
7244 * elf/do-lookup.h (FCT): Likewise.
7245 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
7246 * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7247 * elf/dl-addr.c (_dl_addr): Likewise.
7248 * elf/dl-runtime.c (profile_fixup): Likewise.
7250 * elf/dl-init.c (_dl_init_next): Likewise.
7251 * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
7252 * sysdeps/unix/sysv/linux/i386/dl-librecon.h
7253 (DISTINGUISH_LIB_VERSIONS): Likewise.
7254 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
7255 (elf_machine_rel): Likewise.
7257 * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
7258 for writable dynamic section.
7260 2000-03-22 Ulrich Drepper <drepper@redhat.com>
7262 * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
7263 large enough. Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
7265 2000-03-22 Andreas Jaeger <aj@suse.de>
7267 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
7268 from latest Linux kernel.
7270 2000-03-21 Andreas Jaeger <aj@suse.de>
7272 * Versions.def: Add version 2.1.4.
7274 2000-03-21 Ulrich Drepper <drepper@redhat.com>
7276 * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
7277 * libio/oldiofopen.c: Likewise.
7278 * libio/oldiofclose.c: Likewise.
7279 * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7281 2000-03-22 Roland McGrath <roland@baalperazim.frob.com>
7283 * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
7284 indicating the first version set to obsolete the conditionalized code.
7285 (compat_symbol): New macro.
7286 * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
7287 rhs be the ABI_* macro for the subsuming version. Assign increasing
7288 integer values to the ABI_* macros for supported versions.
7289 * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
7290 compat_symbol macro.
7292 2000-03-21 Ulrich Drepper <drepper@redhat.com>
7294 * nscd/connections.c (nscd_run): Pretty print.
7295 * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
7297 * manual/charset.texi: Fix typos. Rephrase.
7298 * manual/process.texi: Likewise.
7299 * manual/signal.texi: Likewise.
7300 Patches by Mike Coleman <mkc@kc.net>.
7302 * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
7304 * libio/iofdopen.c: Likewise.
7305 * libio/iofgetpos.c: Likewise.
7306 * libio/iofgetpos64.c: Likewise.
7307 * libio/iofopen.c: Likewise.
7308 * libio/iofsetpos.c: Likewise.
7309 * libio/iofsetpos64.c: Likewise.
7310 * libio/iopopen.c: Likewise.
7311 * libio/oldiofopen.c: Likewise.
7312 * libio/pclose.c: Likewise.
7313 * sysdeps/gnu/siglist.c: Likewise.
7314 * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7316 * include/shlib-compat.h (versioned_symbol): Give preprocessor the
7317 chance to expand VERSION_##lib##_##version.
7319 * libio/fileops.c: Use new macros from shlib-compat.h to define
7321 * libio/iofclose.c: Likewise.
7322 * libio/oldiofclose.c: Likewise.
7323 Patch by Roland McGrath <roland@frob.com>.
7325 2000-03-21 Jakub Jelinek <jakub@redhat.com>
7327 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
7328 Lay out struct sigcontext according to what really gets passed on
7330 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
7331 (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
7332 (prgregset_t, prfpregset_t): Define to elf_* types.
7333 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
7334 Define to correct value.
7335 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
7337 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
7339 2000-03-21 Roland McGrath <roland@baalperazim.frob.com>
7341 * scripts/firstversions.awk: Allow multiple version sets in the
7342 "earliest version" specification, meaning that version sets in the
7343 gaps between listed versions should be folded into the earliest later
7344 version that is explicitly listed.
7345 * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
7346 we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
7348 2000-03-21 Ulrich Drepper <drepper@redhat.com>
7350 * iconv/gconv_builtin.c: Include <endian.h>.
7351 * iconv/gconv_builtin.h: Add UCS-BE aliases.
7352 Add UCS-4LE transformation. Define UNICODEBIG and UNICODELITTLE
7353 according to current platform.
7354 * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
7355 __gconv_transform_internal_ucs2reverse, and
7356 __gconv_transform_internal_ucs4le.
7357 * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
7358 __gconv_transform_ucs2reverse_internal and
7359 __gconv_transform_internal_ucs2reverse.
7360 * iconvdata/Makefile (modules): Add UNICODE.
7361 (distribute): Add unicode.c.
7362 * iconvdata/gconv-modules: Add definitions for UNICODE module.
7363 * iconvdata/unicode.c: New file.
7365 * iconvdata/utf-16.c: Rewrite code to emit BOM. Correct code to
7366 determine byte order of input and convert accordingly.
7368 * iconvdata/utf-16.c (gconv_init): Fix typo.
7370 2000-03-20 Ulrich Drepper <drepper@redhat.com>
7372 * iconvdata/gconv-modules: Fix typo.
7374 * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
7377 * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
7379 2000-03-16 Thorsten Kukuk <kukuk@suse.de>
7381 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
7383 2000-03-20 Ulrich Drepper <drepper@redhat.com>
7385 * misc/Makefile (routines): Add mincore.
7387 2000-03-20 Andreas Jaeger <aj@suse.de>
7389 * sysdeps/generic/mincore.c: New stub file.
7391 * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
7392 from latest Linux kernel.
7394 2000-03-20 Ulrich Drepper <drepper@redhat.com>
7396 * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
7397 _SC_GETPW_R_SIZE_MAX.
7399 2000-03-20 Richard Henderson <rth@cygnus.com>
7401 * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
7404 2000-03-20 Richard Henderson <rth@cygnus.com>
7406 * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
7407 of arithmetic instructions.
7409 * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
7410 with the fpcr. Protect from INV exception.
7411 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7412 * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
7413 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7415 * sysdeps/alpha/fpu/s_copysign.c: New.
7416 * sysdeps/alpha/fpu/s_copysignf.c: New.
7417 * sysdeps/alpha/fpu/s_fabs.c: New.
7418 * sysdeps/alpha/fpu/s_fabsf.c: New.
7419 * sysdeps/alpha/fpu/s_rint.c: New.
7420 * sysdeps/alpha/fpu/s_rintf.c: New.
7422 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
7424 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
7426 * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
7427 * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
7428 Use physical addresses not KSEG addresses.
7429 (io_system): Add PYXIS.
7430 (io): Remove hae.reg, sys, hae_shift.
7431 (stb_mb, stw_mb, stl_mb, __sethae): New.
7432 (inline_outb, inline_outw, inline_outl): Don't set hae.
7433 (inline_inb, inline_inw, inline_inl): Likewise.
7434 (dense_sethae): New null function.
7435 (struct cpuinfo_data): New.
7436 (process_cpuinfo): Use local and stack variables, not static.
7437 Move readlink check here from init_iosys.
7438 (init_iosys): Use __pciconfig_iobase first. Know SX and LX as PYXIS.
7440 (_hae_shift): Calculate it here.
7441 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
7442 add pciconfig_iobase.
7444 2000-03-20 Roland McGrath <roland@baalperazim.frob.com>
7446 * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
7447 * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
7449 * scripts/versions.awk: Fixed version renaming code to distinguish
7452 2000-03-19 Ulrich Drepper <drepper@redhat.com>
7454 * include/stdlib.h: Add prototype for __cxa_atexit.
7456 * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
7457 _SLOWDOWN flags. Patch by Jim Blandy <jimb@cygnus.com>.
7459 2000-03-17 Cristian Gafton <gafton@redhat.com>
7461 * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
7462 existing rtld-installed-name.
7463 ($(rtld-installed-name)): Request libc-$(version) be installed too.
7464 replace existing rtld-installed-name using $(symbolic-link-prog).
7466 2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
7468 * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
7469 (insert_value, handle_ellipsis, collate_read): Replace %zu in format
7470 strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
7473 2000-03-19 Ulrich Drepper <drepper@redhat.com>
7475 * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
7476 glob64. Since there is no glob64 in the LFS proposal applications
7477 can assume that glob handles LFS situations. glob64 is only needed
7478 if alternative filesystem functions are used.
7480 2000-03-19 Geoff Clare <gwc@unisoft.com>
7482 * sysdeps/generic/glob.c: Correct gl_pathc value returned
7483 when GLOB_DOOFFS is set; correct handling of patterns
7484 containing escaped wildcards (and no unescaped ones);
7485 GLOB_ERR flag was being ignored in some situations.
7487 * posix/globtest.c, posix/globtest.sh: Updated to include
7488 tests for the problems fixed by the above changes to glob.c.
7490 * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
7492 2000-03-19 Roland McGrath <roland@baalperazim.frob.com>
7494 * Makeconfig (soversion.i): Use only first match for each lib.
7496 * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
7498 * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
7499 rather than $(sysd-dirs-done) to protect these rules.
7501 * Makerules (version-renames.def): Target removed.
7502 (Versions.all): Depend on soversions.i directly and parse it.
7504 * Makeconfig (soversions.i): New target, input-reading parts of
7505 soversions.mk generation moved here; result is a canonicalized
7506 list "LIB VERSION [SET]" for this configuration.
7507 (soversions.mk): Use that as input. Don't emit map-firstversions.
7508 * Makerules (version-renames.def): New target, generated from
7509 soversions.i with contents that was in $(map-firstversions).
7510 (Versions.all): Don't depend on soversions.mk, depend on
7511 version-renames.def instead; just cat it into the input.
7513 * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
7514 for $(map-firstversions), which better handles it being empty.
7516 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
7517 supported version for libc 0.2.90.libio to GLIBC_2.2.
7519 * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
7520 and use it to emit new variable `map-firstversions'.
7521 * scripts/firstversions.awk: New file.
7522 * Makerules (Versions.all): Use scripts/firstversions.awk and
7523 the $(map-firstversions) value to generate a modified versions list
7524 that includes renames in "A = B" syntax for each version set earlier
7525 than the "earliest symbol version" named in shlib-versions.
7526 * scripts/versions.awk: Recognize "A = B" lines in the input to mean
7527 rename version set A to B in the output to the intermediate file.
7528 * scripts/abi-versions.awk: New file.
7529 * Makerules (abi-versions.h): New target, generated by that script.
7530 [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
7531 * include/shlib-compat.h: New file, uses that generated header.
7533 2000-03-18 Roland McGrath <roland@baalperazim.frob.com>
7535 * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
7536 after stripping # comments, and then run it through cpp.
7537 This allows things like "%ifdef FOO" based on config.h settings.
7538 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
7540 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
7541 and other errors that indicate a pseudo-receive happened, grok through
7542 the message buffer for port rights that need references fixed up.
7544 2000-03-16 Andreas Jaeger <aj@suse.de>
7546 * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
7548 * sysdeps/unix/sysv/linux/madvise.c: Remove.
7550 * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
7551 from latest Linux kernel.
7552 * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
7554 * misc/sys/mman.h: Add prototype for mincore.
7556 2000-03-17 Ulrich Drepper <drepper@redhat.com>
7558 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
7559 entry for GLIBC_2.0 version of setrlimit.
7560 Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
7562 2000-03-16 Thorsten Kukuk <kukuk@suse.de>
7564 * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
7565 * nis/nss_compat/compat-initgroups.c: Likewise.
7566 * nis/nss_nis/nis-initgroups.c: Likewise.
7567 * nis/nss_nis/nis-netgrp.c: Likewise.
7568 * nis/nss_nis/nis-proto.c: Likewise.
7569 * nis/nss_nis/nis-rpc.c: Likewise.
7570 * nis/nss_nis/nis-service.c: Likewise.
7571 * nis/ypclnt.c: Likewise.
7573 2000-03-16 Andreas Jaeger <aj@suse.de>
7575 * manual/Makefile: MAKEINFO is set to `:' from configure if it
7576 doesn't exist, correct checks. Fixes PR libc/1649.
7578 2000-03-16 Thorsten Kukuk <kukuk@suse.de>
7580 * nscd/hstcache.c: Restore correct UID.
7581 * nscd/pwdcache.c: Likewise.
7582 Patch from Gabor Gombas <gombasg@inf.elte.hu>.
7584 2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
7586 * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
7587 macros for register names, in line with 2000-03-14 linux change.
7589 * sysdeps/mach/sched_yield.c: New file.
7591 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>
7593 * sysdeps/generic/lockfile.c: Include <stdio.h>
7594 (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
7595 case <libio.h> defined them.
7596 (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
7598 (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
7599 ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
7601 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
7602 for more pleasing parse error.
7604 2000-03-16 Ulrich Drepper <drepper@redhat.com>
7606 * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
7608 Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
7610 * elf/Makefile: Add rules to compile and run constload1 test.
7611 * elf/constload1.c: New file.
7612 * elf/constload2.c: New file.
7613 * elf/constload3.c: New file.
7615 2000-03-15 Ulrich Drepper <drepper@redhat.com>
7617 * sysdeps/posix/open64.c: Make __open64 weak alias.
7618 * sysdeps/posix/pread64.c: Make __pread64 weak alias.
7619 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
7620 * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
7621 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7622 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7623 * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
7624 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7625 * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7626 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7627 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7629 2000-03-14 Ulrich Drepper <drepper@redhat.com>
7631 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
7632 Nautilus. Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
7634 2000-03-16 Mark Kettenis <kettenis@gnu.org>
7636 * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
7637 Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
7639 2000-03-08 Andreas Jaeger <aj@suse.de>
7641 * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
7643 2000-03-14 Ulrich Drepper <drepper@redhat.com>
7645 * timezone/africa: Update from tzdata2000d.
7646 * timezone/asia: Likewise.
7647 * timezone/australasia: Likewise.
7648 * timezone/europe: Likewise.
7649 * timezone/northamerica: Likewise.
7650 * timezone/southamerica: Likewise.
7652 * po/fr.po: Update from translation team.
7653 * po/de.po: Likewise.
7655 * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
7656 last parameter. Move code to add map to global scope from here...
7657 * elf/dl-open.c (dl_open_worker): ...here.
7658 * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
7659 * elf/rtld.c: Adjust call to _dl_map_object_deps.
7661 * locale/programs/ld-collate.c (collate_read): Fix warning.
7663 * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
7664 values and macros for register names.
7666 * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
7667 returned by seek cookie function is -1.
7669 2000-03-14 Andreas Jaeger <aj@suse.de>
7671 * locale/localeconv.c (localeconv): Fix typo.
7672 Reported by Andre Charbonneau <andrec@corel.com>.
7674 2000-03-14 Ulrich Drepper <drepper@redhat.com>
7676 * iconv/skeleton.c: Increment __invocation_counter in inner loop
7677 since modules depend on it counting the number of times the conversion
7678 function got called.
7680 * iconv/gconv_open.c: Optimize loop to setup step data structure.
7682 * iconv/gconv.h: Pretty print.
7684 2000-03-04 Ulrich Drepper <drepper@redhat.com>
7686 * posix/wordexp-test.c: Correct one of the tests added in the last
7687 change. Really get the root passwd entry to check again ~root.
7689 2000-03-10 Andreas Jaeger <aj@suse.de>
7691 * manual/filesys.texi (Working Directory): Fix last patch.
7692 Patch by Martin Buchholz <martin@xemacs.org>.
7694 2000-03-10 Andreas Jaeger <aj@suse.de>
7696 * manual/creature.texi (Feature Test Macros): Fix language.
7698 2000-03-10 Roland McGrath <roland@baalperazim.frob.com>
7700 * mach/devstream.c (devstream_write, devstream_read): New functions.
7701 (input, output): Functions removed.
7702 (mach_open_devstream): Use devstream_{read,write} as cookie functions,
7703 using only the vanilla fopencookie interface.
7705 * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
7706 as macro for __io_functions.
7707 (funcsio): Use cookie_io_functions_t type name.
7708 (fopenport): Renamed from __fopenport. Rewrite to call fopencookie.
7710 * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
7712 (fopencookie): Use it.
7713 * libio/libio.h: Declare _IO_cookie_init.
7714 * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
7717 * libio/libio.h (__io_seek_fn): Fix second argument type
7718 to be a pointer, in line with the manual and the old stdio.
7719 * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
7721 * sysdeps/generic/bits/stdio-lock.h: New file.
7722 This is a stub with #error, but that's better than no file at all.
7724 2000-03-09 Martin Buchholz <martin@xemacs.org>
7726 * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
7727 * manual/message.texi (Using gettextized software): Doc Fixes.
7728 * manual/message.texi (Message Translation): Doc Fixes.
7729 * manual/filesys.texi (File Size): Doc Fixes.
7730 * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
7731 * locale/programs/ld-collate.c (collate_output): Doc Fixes.
7732 * iconv/gconv_db.c (find_derivation): Doc Fixes.
7733 * manual/install.texi: Doc Fixes.
7734 * manual/search.texi (Hash Search Function): Doc Fixes.
7735 * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
7736 * FAQ.in: Doc Fixes.
7737 * config.h.in: Doc Fixes.
7738 * sysdeps/generic/dl-sysdep.c: Doc Fixes.
7739 Doc Fixes. `allows to' is not correct English.
7741 * elf/rtld.c: Doc fixes.
7742 * manual/creature.texi (Feature Test Macros): Doc fixes.
7743 * manual/memory.texi (Hooks for Malloc): Doc Fixes.
7745 * manual/filesys.texi (Working Directory): Check for ERANGE to
7748 2000-02-23 Roland McGrath <roland@baalperazim.frob.com>
7750 * string/argz-stringify.c (__argz_stringify): Fix loop termination
7751 conditions so as not to clobber the final '\0' when there is only one
7752 element in the vector.
7754 2000-03-09 Roland McGrath <roland@baalperazim.frob.com>
7756 * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
7757 broken by 2000-02-27 change.
7759 * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
7761 2000-02-23 Roland McGrath <roland@baalperazim.frob.com>
7763 * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
7764 argument type, for 2000-02-22 change in signal/signal.h declaration.
7766 2000-03-09 Roland McGrath <roland@baalperazim.frob.com>
7768 * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
7769 to getdirentries64 (no __), since the Linux implementation
7770 has no __ name, and there is no declaration for the __ name.
7772 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
7774 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
7775 sed regexp so as not to break directory names including /../ within.
7777 * sysdeps/unix/bsd/bits/waitflags.h: File removed.
7778 The sysdeps/generic file is right for BSD. This file was in fact the
7779 Hurd file, but the only difference was the WNOREAP flag that was never
7780 actually implemented or used anywhere.
7782 * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
7783 since AC_PATH_PROG already does it for us.
7784 (PERL): Rewrite check added in 2000-02-29 change for syntactic
7785 correctness and sh portability. I replaced the broken check
7786 with a more sensible implementation of the apparently intended
7787 semantics, which might still be questionable. Using expr causes
7788 a non-numeric value for `perl -V:apiversion` to be accepted,
7789 refusing to use only a perl that reports a number less than 5;
7790 on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
7791 * configure: Regenerated.
7793 2000-03-08 Andreas Jaeger <aj@suse.de>
7795 * manual/crypt.texi: Fix paths.
7797 2000-03-07 Andreas Jaeger <aj@suse.de>
7799 * resolv/netdb.h: The descriptions of rresvport and rresvport_af
7801 Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
7804 2000-03-06 Andreas Jaeger <aj@suse.de>
7806 * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
7807 in __sgn1l, otherwise g++ fails to parse this.
7808 Reported by Sean Chen <sean.chen@turbolinux.com>.
7810 2000-03-03 Geoff Keating <geoffk@cygnus.com>
7812 * configure.in: Compute sizeof-long-double.
7813 * configure: Regenerated.
7814 * config.make.in: Make sizeof-long-double available to sub-makes.
7816 2000-03-03 Ulrich Drepper <drepper@cygnus.com>
7818 * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
7821 2000-03-03 Geoff Keating <geoffk@cygnus.com>
7823 * Makeconfig (rpath-dirs): Add crypt.
7824 (all-subdirs): Remove md5crypt.
7825 * crypt/sysdeps/unix/crypt.c: Move to crypt/.
7826 * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
7827 * sysdeps/generic/crypt-entry.c: Delete.
7828 * crypt/sysdeps/unix/crypt.h: Move to crypt/.
7829 * sysdeps/generic/crypt.h: Delete.
7830 * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
7831 * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
7832 * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
7833 * sysdeps/generic/des_impl.c: Delete.
7834 * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
7835 * crypt/sysdeps: Delete.
7836 * crypt/crypt_util.c: Don't use `patchlevel.h'.
7837 * md5-crypt/Versions: Move to crypt/.
7838 * md5-crypt/md5-crypt.c: Move to crypt/.
7839 * md5-crypt/md5.c: Move to crypt/.
7840 * md5-crypt/md5c-test.c: Move to crypt/.
7841 * md5-crypt/md5test.c: Move to crypt/.
7842 * md5-crypt: Delete.
7843 * crypt/Makefile: Adjust for new structure.
7845 2000-03-03 Paul Eggert <eggert@twinsun.com>
7847 * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
7848 define to 1 if not defined.
7850 2000-03-03 Andreas Jaeger <aj@suse.de>
7852 * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
7854 2000-03-03 Andreas Jaeger <aj@suse.de>
7856 * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
7858 (xdr_int64_t): Correctly handle lower half.
7859 Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
7861 2000-03-03 Ulrich Drepper <drepper@cygnus.com>
7863 * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
7866 2000-03-02 Andreas Jaeger <aj@suse.de>
7868 * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
7871 2000-03-02 Andreas Jaeger <aj@suse.de>
7873 * resolv/Makefile (headers): Add arpa/nameser_compat.h.
7875 2000-03-01 Andreas Jaeger <aj@suse.de>
7877 * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
7878 (tests): Added tst-getdate.
7880 * time/tst-getdate.c: New file.
7882 * time/datemsk: New file, needed for tst-getdate.
7884 2000-02-29 Cristian Gafton <gafton@redhat.com>
7886 * configure.in (CCVERSION): Require at least veersion 5 of perl API.
7888 2000-02-17 H.J. Lu <hjl@gnu.org>
7890 * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
7892 * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
7894 (svcudp_recv): Set up message with the new "xp_pad" field for
7896 (svcudp_reply): Support IP_PKTINFO if available.
7898 2000-03-01 Andreas Jaeger <aj@suse.de>
7900 * time/getdate.c (check_mday): Fix check for february.
7901 Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
7902 <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
7904 2000-03-02 Andreas Jaeger <aj@suse.de>
7906 * posix/unistd.h: __THROW has to precede __attribute__, otherwise
7907 g++ fails to parse this.
7908 Reported by Sean Chen <sean.chen@turbolinux.com>.
7910 2000-02-28 Ulrich Drepper <drepper@redhat.com>
7912 * io/creat.c: Moved to...
7913 * sysdeps/generic/creat.c: ...here.
7914 * io/creat64.c: Moved to...
7915 * sysdeps/generic/creat64.c: ...here.
7916 * io/lockf.c: Moved to...
7917 * sysdeps/generic/lockf.c: ...here.
7919 * crypt/crypt.texi: Moved to...
7920 * manual/crypt.texi: ...here.
7921 * crypt/examples/genpass.c: Moved to...
7922 * manual/examples/genpass.c: ...here.
7923 * crypt/examples/mygenpass.c: Moved to...
7924 * manual/examples/mygenpass.c: ...here.
7925 * crypt/examples/testpass.c: Moved to...
7926 * manual/examples/testpass.c: ...here.
7928 * manual/Makefile (chapters): Add crypt.
7929 * manual/conf.texi: Add usual header for not-last chapter.
7930 * manual/crypt.texi: Add special header for last chapter.
7932 2000-02-28 Geoff Keating <geoffk@cygnus.com>
7934 * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
7935 * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
7936 complain if there is no crypt add-on.
7937 * crypt/configure: Removed.
7939 * crypt/crypt.texi: Update documentation of US export restrictions
7940 to match the 14 Jan 2000 regulations.
7942 2000-02-28 Geoff Keating <geoffk@cygnus.com>
7944 * crypt: New subdirectory, merged in from the crypt add-on.
7946 2000-02-28 Ulrich Drepper <drepper@redhat.com>
7948 * include/unistd.h: Add __rmdir and __mkdir prototypes.
7951 See ChangeLog.10 for earlier changes.