Andreas Jaeger [Fri, 28 Jul 2000 13:37:56 +0000 (13:37 +0000)]
Update.
2000-07-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
* sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
_test_and_set.
(headers): Add sys/tas.h.
* sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
GLIBC_2.2 from libc.
* sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
* sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
_test_and_set.
Andreas Jaeger [Fri, 28 Jul 2000 13:36:23 +0000 (13:36 +0000)]
* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Implement for
R3K.
* sysdeps/mips/pt-machine.h (testandset): Likewise.
2000-07-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* sysdeps/mips/pspinlock.c (__pthread_spin_lock): Implement for
R3K.
* sysdeps/mips/pt-machine.h (testandset): Likewise.
Andreas Jaeger [Fri, 28 Jul 2000 11:53:16 +0000 (11:53 +0000)]
tst-langinfo.c: Include <string.h> for strcmp prototype.
2000-07-28 Andreas Jaeger <aj@suse.de>
* tst-langinfo.c: Include <string.h> for strcmp prototype.
Andreas Jaeger [Fri, 28 Jul 2000 08:13:51 +0000 (08:13 +0000)]
Update.
2000-07-28 Andreas Jaeger <aj@suse.de>
* sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
* dlfcn/Makefile ($(objpfx)tst-dladdr): New.
($(objpfx)tst-dladdr.out): new.
(tests): Add tst-dladdr.
($(objpfx)glrefmain): Use libdl.
* dlfcn/tst-dladdr.c: New file. Based on a test by Volkmar Sieh
<vs@caldera.de>.
Andreas Jaeger [Fri, 28 Jul 2000 07:37:38 +0000 (07:37 +0000)]
Add TCP options from Linux 2.4.
Ulrich Drepper [Thu, 27 Jul 2000 23:15:34 +0000 (23:15 +0000)]
Update.
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
ftruncate(64) calls.
2000-07-27 Jes Sorensen <jes@linuxcare.com>
Ulrich Drepper [Thu, 27 Jul 2000 22:18:43 +0000 (22:18 +0000)]
Update.
* intl/tst-translit.c: Include string.h to get prototype for
strcmp().
2000-07-27 Jes Sorensen <jes@linuxcare.com>
Ulrich Drepper [Thu, 27 Jul 2000 22:01:07 +0000 (22:01 +0000)]
Update.
2000-07-27 Jes Sorensen <jes@linuxcare.com>
* sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
name and add weak alias for __fork.
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
& pwrite to use __libc_<name> as strong names instead of
__syscall_<name>.
* include/sched.h: Add clone2 prototype.
2000-07-26 Jes Sorensen <jes@linuxcare.com>
* sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
procedure name twice.
2000-07-27 Philip Blundell <philb@gnu.org>
* malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
Ulrich Drepper [Thu, 27 Jul 2000 21:55:04 +0000 (21:55 +0000)]
(HAVE_MREMAP): Undo change of 1997-12-04.
Andreas Jaeger [Thu, 27 Jul 2000 15:43:37 +0000 (15:43 +0000)]
Update.
* sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
* sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
Reported by Andi Kleen <ak@suse.de>.
Andreas Jaeger [Thu, 27 Jul 2000 13:03:50 +0000 (13:03 +0000)]
Update.
2000-07-27 Andreas Jaeger <aj@suse.de>
* rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
(do_wait): Test requests with aio_return64.
(do_test): Change callers of do_wait.
Andreas Jaeger [Thu, 27 Jul 2000 13:03:23 +0000 (13:03 +0000)]
* rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
(do_wait): Test requests with aio_return64.
(do_test): Change callers of do_wait.
Ulrich Drepper [Thu, 27 Jul 2000 09:43:12 +0000 (09:43 +0000)]
Update.
2000-07-26 Andreas Jaeger <aj@suse.de>
* rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
(do_wait): Test requests with aio_return.
(do_test): Change callers of do_wait.
2000-07-27 Ulrich Drepper <drepper@redhat.com>
* rt/aio_misc.c (__aio_remove_request): New function. Handle removing
from request list. Don't do the list handling here, call
__aio_remove_request.
* rt/aio_misc.h: Add prototype for __aio_remove_request.
* rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
request might already be processed. Don't do the list handling
here, call __aio_remove_request.
* rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
LIO_DSYNC.
* rt/aio_misc.c: Add comment explaining why writer memory barriers
are missing.
Ulrich Drepper [Thu, 27 Jul 2000 09:38:42 +0000 (09:38 +0000)]
Don't assume __aio_find_req_fd succeeds since the request might already be processed. Don't do the list handling here, call __aio_remove_request.
Greg McGary [Thu, 27 Jul 2000 07:28:10 +0000 (07:28 +0000)]
* sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
* sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
in union init. Pass zero for ignored semnum arg to semctl.
* sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
2000-07-27 Greg McGary <greg@mcgary.org>
* sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
* sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
in union init. Pass zero for ignored semnum arg to semctl.
* sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
Greg McGary [Thu, 27 Jul 2000 06:25:28 +0000 (06:25 +0000)]
* sysdeps/gnu/bits/msq.h: Qualify kernel's
data structure pointers as __unbounded.
* sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
* sysdeps/generic/bp-semctl.h: New file.
* sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
pointers as __unbounded. Check bounds of syscall args.
* sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
* sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
* sysdeps/unix/sysv/linux/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/semop.c: Likewise.
* sysdeps/unix/sysv/linux/shmat.c: Likewise.
* sysdeps/unix/sysv/linux/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/shmdt.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
2000-07-26 Greg McGary <greg@mcgary.org>
* sysdeps/gnu/bits/msq.h: Qualify kernel's
data structure pointers as __unbounded.
* sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
* sysdeps/generic/bp-semctl.h: New file.
* sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
pointers as __unbounded. Check bounds of syscall args.
* sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
* sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
* sysdeps/unix/sysv/linux/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/semop.c: Likewise.
* sysdeps/unix/sysv/linux/shmat.c: Likewise.
* sysdeps/unix/sysv/linux/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/shmdt.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
Greg McGary [Thu, 27 Jul 2000 00:05:38 +0000 (00:05 +0000)]
fix typo in +link-bounded
Ulrich Drepper [Wed, 26 Jul 2000 23:00:05 +0000 (23:00 +0000)]
Update.
2000-07-26 Ulrich Drepper <drepper@redhat.com>
* libio/iofwide.c: Enable transliteration for conversion from wchar_t
by default.
* locale/C-ctype.c: Likewise.
* wcsmbs/wcsmbsload.c: Likewise.
Ulrich Drepper [Wed, 26 Jul 2000 19:02:00 +0000 (19:02 +0000)]
Update.
Contributed by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.Update.
Greg McGary [Wed, 26 Jul 2000 18:21:25 +0000 (18:21 +0000)]
update
2000-07-26 Greg McGary <greg@mcgary.org>
* Makeconfig (+link-bounded, link-libc-bounded,
link-extra-libs-bounded): New variables.
(built-program-cmd): Omit $(run-program-prefix) for static BP tests.
* Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
* Rules (tests-bp.out): New variable.
(tests): Conditionally add BP tests.
(binaries-bounded): Add variable and associated rule.
* csu/Makefile [build-bounded] (extra-objs, install-lib):
Move conditional stuff after place where condition is defined.
* malloc/malloc.c (bp-checks.h): Add #include.
(mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
(_bin_at): Add unbounded version of bin_at.
(IAV, chunk_alloc): Use unbounded _bin_at.
(mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
Wrap BOUNDED_N around return value.
(chunk_realloc): Adjust oldsize once.
* sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
(__ubp_memchr): Add correct decl.
(_CHECK_STRING): Use __ubp_memchr.
* sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
New alias for unbounded-pointer __memchr.
* sysdeps/i386/memchr.S: Likewise.
* sysdeps/ia64/memchr.S: Likewise.
* sysdeps/m68k/memchr.S: Likewise.
* sysdeps/sparc/sparc32/memchr.S: Likewise.
* sysdeps/sparc/sparc64/memchr.S: Likewise.
* sysdeps/vax/memchr.s: Likewise.
* sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
(SAVE_PTR): New macro. (save_ptr): Expand size as BP.
(strtok): Don't bother to write into SAVE_PTR when returning NULL.
* sysdeps/i386/i686/strtok.S: Likewise.
* sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
* sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
* sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
* sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
bounds of copy_result to mount_proc.
Greg McGary [Wed, 26 Jul 2000 18:18:43 +0000 (18:18 +0000)]
* Makeconfig (+link-bounded, link-libc-bounded,
link-extra-libs-bounded): New variables.
(built-program-cmd): Omit $(run-program-prefix) for static BP tests.
* Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
* Rules (tests-bp.out): New variable.
(tests): Conditionally add BP tests.
(binaries-bounded): Add variable and associated rule.
* csu/Makefile [build-bounded] (extra-objs, install-lib):
Move conditional stuff after place where condition is defined.
Ulrich Drepper [Wed, 26 Jul 2000 17:52:36 +0000 (17:52 +0000)]
Update.
2000-07-25 Bruno Haible <haible@clisp.cons.org>
* wctype/wctype.h (__wctrans_l): New declaration.
* wctype/wctrans_l.c: New file.
* wctype/Makefile (routines): Add wctrans_l.
* rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
* rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
Ulrich Drepper [Wed, 26 Jul 2000 16:20:41 +0000 (16:20 +0000)]
Update.
2000-07-26 Ulrich Drepper <drepper@redhat.com>
* posix/fnmatch_loop.c: Fixes for use outside glibc.
Patch by MacGyver <macgyver@tos.net>.
Ulrich Drepper [Wed, 26 Jul 2000 16:04:48 +0000 (16:04 +0000)]
Fixes for use outside glibc.
Andreas Jaeger [Wed, 26 Jul 2000 13:49:15 +0000 (13:49 +0000)]
Update.
2000-07-26 Andreas Jaeger <aj@suse.de>
* rt/tst-aio4.c: New file, slighlty modified version of tst-aio2.
* rt/tst-aio5.c: New file, slighlty modified version of tst-aio2.
* rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
* rt/tst-aio.c (test_file): Fix typo.
* rt/tst-aio64.c (test_file): Likewise.
* rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
* rt/Makefile: Add rules to build and run tst-aio3.
* sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
it's not needed and confuses only.
Andreas Jaeger [Wed, 26 Jul 2000 10:06:18 +0000 (10:06 +0000)]
Initialize p_sem_avail.
2000-07-26 Andreas Jaeger <aj@suse.de>
* pthread.c: Initialize p_sem_avail.
Ulrich Drepper [Wed, 26 Jul 2000 08:05:34 +0000 (08:05 +0000)]
Update.
2000-07-26 Ulrich Drepper <drepper@redhat.com>
* resolv/res_init.c: Add support for nameserver communication with
IPv6.
* resolv/res_send.c: Likewise.
* resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
in nsaddrs field.
Patch by <venaas@nvg.ntnu.no>.
Ulrich Drepper [Wed, 26 Jul 2000 06:40:20 +0000 (06:40 +0000)]
Update.
2000-07-25 Bruno Haible <haible@clisp.cons.org>
* locale/programs/ld-ctype.c (wctype_table_get): New function.
(wcwidth_table_get): New function.
(wcwidth_table_add): Call it.
(wctrans_table_get): New function.
(wctrans_table_add): Call it.
Ulrich Drepper [Wed, 26 Jul 2000 06:30:30 +0000 (06:30 +0000)]
Update.
* rt/lio_listio.c (lio_listio): Always disable individual
notification.
* rt/Makefile: Add rules to build and run tst-aio2.
* rt/tst-aio2.c: New file.
Ulrich Drepper [Wed, 26 Jul 2000 05:54:30 +0000 (05:54 +0000)]
Update.
2000-07-25 Ulrich Drepper <drepper@redhat.com>
* rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
Ulrich Drepper [Wed, 26 Jul 2000 03:32:13 +0000 (03:32 +0000)]
Update.
* internals.h (struct __pthread_descr_struct): Add p_sem_avail.
Ulrich Drepper [Wed, 26 Jul 2000 02:18:41 +0000 (02:18 +0000)]
Update.
* internals.h (strict __pthread_descr_struct): Add p_sem_avail.
* semaphore.c: Handle spurious wakeups.
* sysdeps/pthread/pthread.h: Add back PTHREAD_MUTX_FAST_NP as an alias
for PTHREAD_MUTEX_ADAPTIVE_NP for source code compatibility.
* pthread.c (__pthread_set_own_extricate): Use THREAD_GETMEM.
(__pthread_wait_for_restart): Likewise.
* condvar.c (pthread_cond_wait): Also check whether thread is
cancelable before aborting loop.
(pthread_cond_timedwait): Likewise.
Ulrich Drepper [Wed, 26 Jul 2000 01:37:02 +0000 (01:37 +0000)]
Update.
2000-07-25 Ulrich Drepper <drepper@redhat.com>
* signals.c (pthread_sighandler): Remove special code to restrore
%gs on x86.
(pthread_sighandler_t): Likewise.
Ulrich Drepper [Tue, 25 Jul 2000 22:27:43 +0000 (22:27 +0000)]
Update.
* libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
Ulrich Drepper [Tue, 25 Jul 2000 22:19:16 +0000 (22:19 +0000)]
Update.
2000-07-25 Mark Kettenis <kettenis@gnu.org>
* nss/nss_files/files-netgrp.c (strip_whitespace): New function.
(_nss_netgroup_parseline): Use strip_whitespace to strip off any
leading and trailing spaces from host, user and domain name.
2000-07-25 Jes Sorensen <jes@linuxcare.com>
* csu/defs.awk: Add support for need_endp.
2000-07-25 Mark Kettenis <kettenis@gnu.org>
* resolv/resolv.h: Remove __P from res_send_qhook and
res_send_rhook typedefs.
2000-07-25 Bruno Haible <haible@clisp.cons.org>
* intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
Ulrich Drepper [Tue, 25 Jul 2000 21:59:36 +0000 (21:59 +0000)]
Update.
2000-07-25 Ulrich Drepper <drepper@redhat.com>
* iconv/gconv_builtin.h: Add WCHAR_T alias.
Ulrich Drepper [Tue, 25 Jul 2000 21:57:31 +0000 (21:57 +0000)]
Add WCHAR_T alias.
Mark Kettenis [Tue, 25 Jul 2000 21:43:38 +0000 (21:43 +0000)]
* hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the calling thread, set the cancellation flag and return success instead of EINTR.
2000-07-25 Mark Kettenis <kettenis@gnu.org>
* hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
calling thread, set the cancellation flag and return success
instead of EINTR.
Ulrich Drepper [Tue, 25 Jul 2000 21:09:46 +0000 (21:09 +0000)]
Update.
* libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
* libio/tst-widetext.c: New file.
* libio/tst-widetext.input: New file.
* libio/iogetwline.c (_IO_getwline_info): Pretty print.
Ulrich Drepper [Tue, 25 Jul 2000 19:01:44 +0000 (19:01 +0000)]
Update.
2000-07-25 Ulrich Drepper <drepper@redhat.com>
* libio/wfileops.c (_IO_wfile_underflow): Correct not entirely
empty external buffer correctly.
Ulrich Drepper [Tue, 25 Jul 2000 18:55:52 +0000 (18:55 +0000)]
(_IO_wfile_underflow): Correct not entirely empty external buffer correctly.
Andreas Jaeger [Tue, 25 Jul 2000 10:34:14 +0000 (10:34 +0000)]
Update.
2000-07-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
__STRING(entry) and not #entry.
(_RTLD_EPILOGUE): Likewise.
* sysdeps/mips/mips64/dl-machine.h: Likewise.
2000-07-25 Andreas Jaeger <aj@suse.de>
* stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
according to changes in test program, run also with static only
builds.
($(objpfx)tst-printf.out): Likewise.
* stdio-common/tst-unbputc.sh: Likewise.
* stdio-common/tst-printf.sh: Likewise.
Andreas Jaeger [Tue, 25 Jul 2000 10:06:51 +0000 (10:06 +0000)]
* stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
according to changes in test program, run also with static only
builds.
($(objpfx)tst-printf.out): Likewise.
* stdio-common/tst-unbputc.sh: Likewise.
* stdio-common/tst-printf.sh: Likewise.
Ulrich Drepper [Tue, 25 Jul 2000 09:08:50 +0000 (09:08 +0000)]
Update.
* libio/wfileops.c (_IO_wdo_write): Correct return value.
Ulrich Drepper [Tue, 25 Jul 2000 07:08:50 +0000 (07:08 +0000)]
Update.
2000-07-25 Ulrich Drepper <drepper@redhat.com>
* libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
loop.
* libio/fileops.c: Pretty print.
Ulrich Drepper [Tue, 25 Jul 2000 07:01:50 +0000 (07:01 +0000)]
Pretty print.
Andreas Jaeger [Tue, 25 Jul 2000 06:12:57 +0000 (06:12 +0000)]
Update
* sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
check for offset.
* grp/initgroups.c (initgroups_dyn_function): Renamed from
initgroups_function, adopted prototype for change from 2000-07-23.
(initgroups): Follow type change.
Ulrich Drepper [Tue, 25 Jul 2000 04:37:22 +0000 (04:37 +0000)]
Update.
2000-07-23 Bruno Haible <haible@clisp.cons.org>
* wctype/wchar-lookup.h: New file.
* wctype/iswctype.c: Include "wchar-lookup.h".
(__iswctype): Support alternate locale format with 3-level tables.
* wctype/iswctype_l.c (__iswctype_l): Likewise.
* wctype/towctrans.c (__towctrans): Likewise.
* wctype/towctrans_l.c (__towctrans_l): Likewise.
* wctype/wcfuncs.c: Include "wchar-lookup.h".
(__ctype32_wctype, __ctype32_wctrans): Declare external.
(__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
__iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
__iswxdigit, towlower, towupper): Support alternate locale format
with 3-level tables.
* wctype/wcextra.c (iswblank): Likewise.
* wctype/wcfuncs_l.c: Include "wchar-lookup.h".
(__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
__iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
__iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
format with 3-level tables.
* wctype/wcextra_l.c (__iswblank_l): Likewise.
* wctype/wctype.c (__wctype): Likewise. In the alternate locale
format, return a 3-level table pointer.
* wctype/wctype_l.c (__wctype_l): Likewise.
* wctype/wctrans.c (wctrans): Likewise.
* wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
__ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
__ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
(iswctype): Remove macro definition.
* wcsmbs/wcwidth.h: Include "wchar-lookup.h".
(internal_wcwidth): Support alternate locale format with 3-level
tables.
* locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
New nl_items.
* locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
Define them as being type "word".
* locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
* ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
__ctype32_width): New exported variables.
* locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
alternate locale format. Don't initialize __ctype_names and
__ctype_width in the alternate locale format.
* locale/programs/localedef.h (oldstyle_tables): New declaration.
* locale/programs/localedef.c (oldstyle_tables): New variable.
(OPT_OLDSTYLE): New macro.
(options): Add --old-style option.
(parse_opt): Handle --old-style option.
* locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
map_offset, class_3level, map_3level, width_3level members.
(ctype_output): Support for alternate locale format: Computation of
nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
_NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
_NL_CTYPE_WIDTH now contains the three-level table. Extra elems
now contain both class and map tables.
(struct wctype_table): New type.
(wctype_table_init, wctype_table_add, wctype_table_finalize): New
functions.
(struct wcwidth_table): New type.
(wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
functions.
(struct wctrans_table): New type.
(wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
functions.
(allocate_arrays): Support for alternate locale format: Set
plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
to the first 256 characters. Compute ctype->map_3level. Set
ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
instead of ctype->width.
Ulrich Drepper [Tue, 25 Jul 2000 03:54:45 +0000 (03:54 +0000)]
Update.
* Makefile: Add rules to build, run, and distribute tst-langinfo.
* tst-langinfo.c: New file.
* tst-langinfo.sh: New file.
Ulrich Drepper [Tue, 25 Jul 2000 03:45:07 +0000 (03:45 +0000)]
Update.
* locales/ja_JP (era_d_t_fmt): Fix typo.
Ulrich Drepper [Tue, 25 Jul 2000 00:38:27 +0000 (00:38 +0000)]
Update.
2000-07-24 Ulrich Drepper <drepper@redhat.com>
* libio/iogetwline.c (_IO_getwline_info): Use wide character
string functions.
Ulrich Drepper [Mon, 24 Jul 2000 23:25:11 +0000 (23:25 +0000)]
Update.
2000-07-24 Jakub Jelinek <jakub@redhat.com>
* locales/de_DE (LC_TIME): Use `Mit', not `Mot' as abbreviation
for Wednesday. Patch by <enrico.scholz@informatik.tu-chemnitz.de>.
Ulrich Drepper [Mon, 24 Jul 2000 21:03:16 +0000 (21:03 +0000)]
Update.
2000-07-24 Jakub Jelinek <jakub@redhat.com>
* libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
in wide characters, not bytes.
* libio/tst_putwc.c (do_test): Add test for writing lots of data
into file.
2000-07-22 Bruno Haible <haible@clisp.cons.org>
* locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
LC_MEASUREMENT, LC_IDENTIFICATION.
* locale/xlocale.h (struct __locale_struct): Increase size of
__locales array.
* locale/duplocale.c (__duplocale): Copy newly added categories as
well.
* locale/freelocale.c (__freelocale): Free newly added categories.
* locale/newlocale.c (__newlocale): Fix typo in sanity check.
If a base is given, use it, don't simply return it.
2000-07-22 Bruno Haible <haible@clisp.cons.org>
* crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
variables, copied_key and copied_salt, instead of boolean variables.
Ulrich Drepper [Mon, 24 Jul 2000 17:24:21 +0000 (17:24 +0000)]
Update.
* pthread.c (__pthread_initial_thread): Update initializer.
(__pthread_manager_thread): Likewise.
(pthread_initialize): Move setrlimit call to...
(__pthread_initialize_manager): ...here.
(__pthread_reset_main_thread): Reset also soft limit on stack size.
Ulrich Drepper [Mon, 24 Jul 2000 17:23:50 +0000 (17:23 +0000)]
(__pthread_initial_thread): Update initializer. (__pthread_manager_thread): Likewise. (pthread_initialize): Move setrlimit call to... (__pthread_initialize_manager): ...here. (__pthread_reset_main_thread): Reset also soft limit on stack size.
Andreas Jaeger [Mon, 24 Jul 2000 16:52:03 +0000 (16:52 +0000)]
(__mmap64): Really fix check for offset.
Andreas Jaeger [Mon, 24 Jul 2000 16:48:34 +0000 (16:48 +0000)]
(initgroups_dyn_function): Renamed from initgroups_function, adopted prototype for change from 2000-07-23. (initgroups): Follow type change.
Ulrich Drepper [Mon, 24 Jul 2000 16:29:35 +0000 (16:29 +0000)]
Update.
* internals.h (struct _pthread_descr_struct): Add p_condvar_avail.
Ulrich Drepper [Mon, 24 Jul 2000 16:29:07 +0000 (16:29 +0000)]
(struct _pthread_descr_struct): Add p_condvar_avail.
Andreas Jaeger [Mon, 24 Jul 2000 14:31:37 +0000 (14:31 +0000)]
Update.
* sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
& PAGE_MASK case, reformat.
* string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
from stdin and setup environment.
Andreas Jaeger [Mon, 24 Jul 2000 13:42:22 +0000 (13:42 +0000)]
Update.
2000-07-24 Andreas Jaeger <aj@suse.de>
* string/Makefile ($(objpfx)tst-svc.out): Fix rule to read from
input from stdin and setup environment.
Andreas Jaeger [Mon, 24 Jul 2000 13:40:03 +0000 (13:40 +0000)]
($(objpfx)tst-svc.out): Fix rule to read from input from stdin and setup environment.
Andreas Schwab [Mon, 24 Jul 2000 13:35:30 +0000 (13:35 +0000)]
* sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
Andreas Schwab [Mon, 24 Jul 2000 13:33:15 +0000 (13:33 +0000)]
Remove mmap64 alias.
Ulrich Drepper [Mon, 24 Jul 2000 07:43:31 +0000 (07:43 +0000)]
Update.
2000-07-24 Ulrich Drepper <drepper@redhat.com>
* condvar.c: Handle spurious wakeups. [PR libc/1749].
* spinlock.h: If IMPLEMENT_TAS_WITH_CAS is defined use
Ulrich Drepper [Mon, 24 Jul 2000 05:41:25 +0000 (05:41 +0000)]
Update.
* string/endian.h: Explain the _*_ENDIAN constant values a bit
more. Patch by scarlet@mit.edu [PR libc/1799].
* io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
[PR libc/1792].
* argp/argp-parse.c (parser_finalize): Reverse order in which
parsers are run for ARGP_KEY_END. [PR libc/1755].
Ulrich Drepper [Mon, 24 Jul 2000 01:26:01 +0000 (01:26 +0000)]
Update.
* grp/initgroups.c (initgroups): Don't limit the possible number
of groups to NGROUPS_MAX. Allow dynamic resizing. Loop around
the setgroups call while the call fails and descrease the number
of groups each round.
The name of the initgroups function in the NSS modules changed.
(compat_call): Adapt for dynamic resizing.
* hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
Implement dynamic resizing.
* nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
Likewise.
* nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
* hesiod/Versions: Change exported interface name.
* nis/Versions: Change exported interface name.
2000-07-23 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Mon, 24 Jul 2000 00:22:08 +0000 (00:22 +0000)]
Update.
2000-07-23 Ulrich Drepper <drepper@redhat.com>
* locale/iso-639.def: Some errors corrected.
Patch by Keld Simonsen.
* include/limits.h: Update non-gcc portion.
Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
Ulrich Drepper [Mon, 24 Jul 2000 00:07:41 +0000 (00:07 +0000)]
(yesexpr): Add U005E at the beginning. (noexpr): Likewise.
Mark Kettenis [Sun, 23 Jul 2000 21:18:46 +0000 (21:18 +0000)]
* sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the program's data space, reallocate only the space that was just deallocated to release its backing space.
2000-07-22 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
program's data space, reallocate only the space that was just
deallocated to release its backing space.
Ulrich Drepper [Sun, 23 Jul 2000 17:40:46 +0000 (17:40 +0000)]
Update.
* stdio-common/vfprintf.c (process_string_arg): For wide character
version, handle precision also correctly.
Ulrich Drepper [Sun, 23 Jul 2000 16:33:04 +0000 (16:33 +0000)]
Update.
* nss/nss_files/files-hosts.c: Correct problem with three or more
entries with the same name.
Ulrich Drepper [Sun, 23 Jul 2000 09:07:39 +0000 (09:07 +0000)]
Update.
2000-07-23 Ulrich Drepper <drepper@redhat.com>
* nss/nss_files/files-hosts.c: Implement multi handling.
* resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
Ulrich Drepper [Sun, 23 Jul 2000 03:23:04 +0000 (03:23 +0000)]
Update.
* nss/nss_files/files-parse.c: Don't pollute namespace by using
strcasecmp.
Ulrich Drepper [Sun, 23 Jul 2000 01:23:29 +0000 (01:23 +0000)]
Update.
2000-07-22 Ulrich Drepper <drepper@redhat.com>
* grp/Makefile: Change Makefiles and tests to run only when necessary.
* malloc/Makefile: Likewise.
* malloc/tst-mtrace.sh: Likewise.
* posix/Makefile: Likewise.
* posix/globtest.sh: Likewise.
* posix/wordexp-tst.sh: Likewise.
* string/Makefile: Likewise.
Ulrich Drepper [Sun, 23 Jul 2000 00:20:47 +0000 (00:20 +0000)]
Update.
2000-07-22 Mark Kettenis <kettenis@gnu.org>
* locale/findlocale.c (locale_file_list): Use __LC_LAST as array
size instead of LC_ALL to take into account the new locale
categories.
Ulrich Drepper [Sat, 22 Jul 2000 22:31:57 +0000 (22:31 +0000)]
Update.
* intl/tst-translit.c (main): Update for now performed
transliteration.
Ulrich Drepper [Sat, 22 Jul 2000 21:22:08 +0000 (21:22 +0000)]
Update.
* iconv/gconv_trans.c: Correct a few bugs in the search loop. Remove
remainders of hash table.
* locale/categories.def: Remove remainders of transliteration
hash table.
* locale/langinfo.h: Likewise.
* locale/programs/ld-ctype.c: Likewise. Fix code to write out
transliteration tables.
* locale/gen-translit.pl: New file.
* locale/C-translit.h.in: New file.
* locale/C-ctype.c: Include C-translit.h. Initialize transliteration
data pointers with data from this file.
* locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
and gen-translit.pl.
Add rule to generate C-translit.h.
Ulrich Drepper [Sat, 22 Jul 2000 07:26:13 +0000 (07:26 +0000)]
Update.
* stdio-common/vfscanf.c: Handle input -- with format %f correctly
(it's no input error).
* stdio-common/tstscanf.c: Add test case for format %f with input --.
* stdio-common/scanf12.c: Correct expected result for first scanf.
Ulrich Drepper [Sat, 22 Jul 2000 07:02:05 +0000 (07:02 +0000)]
Update.
2000-07-22 Ulrich Drepper <drepper@redhat.com>
* stdio-common/vfprintf.c (process_string_arg): Correct handling
of multibyte character strings in %s format with precision.
Ulrich Drepper [Sat, 22 Jul 2000 04:25:38 +0000 (04:25 +0000)]
Update.
symbols and elements be named in reorder-after instructions.
Ulrich Drepper [Sat, 22 Jul 2000 03:52:21 +0000 (03:52 +0000)]
Update.
* locale/programs/ld-collate.c (collate_read): Allow collating
symbols be named in reorder-after instructions.
Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
Ulrich Drepper [Sat, 22 Jul 2000 02:36:19 +0000 (02:36 +0000)]
Update.
* locale/programs/ld-collate.c (handle_ellipsis): Test for
duplication with generated name, not the name of the first
character.
Patch by Yong Li <yong.li@asu.edu>.
Ulrich Drepper [Sat, 22 Jul 2000 02:26:07 +0000 (02:26 +0000)]
Update.
2000-07-21 Ulrich Drepper <drepper@redhat.com>
* sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
Ulrich Drepper [Sat, 22 Jul 2000 02:16:52 +0000 (02:16 +0000)]
Update.
2000-07-21 Wolfram Gloger <wg@malloc.de>
* malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
allocations only if a non-main arena cannot be extended.
* sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
UNCHECK_BOUNDS.
Ulrich Drepper [Fri, 21 Jul 2000 21:05:42 +0000 (21:05 +0000)]
Update.
2000-07-21 Ulrich Drepper <drepper@redhat.com>
* elf/dl-load.c (_dl_map_object): Take loader==NULL into account
in DF_1_NODEFLIB handling.
Ulrich Drepper [Fri, 21 Jul 2000 21:04:40 +0000 (21:04 +0000)]
(_dl_map_object): Take loader==NULL into account in DF_1_NODEFLIB handling.
Andreas Jaeger [Fri, 21 Jul 2000 13:23:36 +0000 (13:23 +0000)]
Update.
* elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
own rule.
Andreas Jaeger [Fri, 21 Jul 2000 13:05:51 +0000 (13:05 +0000)]
Update.
2000-07-21 Andreas Jaeger <aj@suse.de>
* libio/fwide.c: Include <wchar.h> for prototype.
Andreas Jaeger [Fri, 21 Jul 2000 12:59:48 +0000 (12:59 +0000)]
Include <wchar.h> for prototype.
Greg McGary [Fri, 21 Jul 2000 07:51:23 +0000 (07:51 +0000)]
* malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
Define in terms of chunk_at_offset.
(inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
(next_bin, prev_bin): offset by size of real array elements.
(chunk_align): Make `m' a scalar, since that's how it's used.
* malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
Define in terms of chunk_at_offset.
(inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
(next_bin, prev_bin): offset by size of real array elements.
(chunk_align): Make `m' a scalar, since that's how it's used.
2000-07-21 Greg McGary <greg@mcgary.org>
Greg McGary [Fri, 21 Jul 2000 07:43:25 +0000 (07:43 +0000)]
* sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS.
* sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
* sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
Wrap bounds around argv & envp and each of their string members.
* sysdeps/powerpc/elf/start.S: Designate BP symbols.
* sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
symbol in BP_SYM (). Discard bounds of address arg.
* sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
Discard bounds on address arg, add bounds to return value.
2000-07-21 Greg McGary <greg@mcgary.org>
* sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS.
* sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
* sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
Wrap bounds around argv & envp and each of their string members.
* sysdeps/powerpc/elf/start.S: Designate BP symbols.
* sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
symbol in BP_SYM (). Discard bounds of address arg.
* sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
Discard bounds on address arg, add bounds to return value.
Ulrich Drepper [Fri, 21 Jul 2000 07:21:02 +0000 (07:21 +0000)]
Rewrite rules to generate filtmod1.so.
Ulrich Drepper [Fri, 21 Jul 2000 06:58:27 +0000 (06:58 +0000)]
Update.
* elf/Makefile (tests): Add filter. Add rules to generate filter.
* elf/filter.c: New file.
* elf/filtmod1.c: New file.
* elf/filtmod2.c: New file.
Ulrich Drepper [Fri, 21 Jul 2000 06:43:05 +0000 (06:43 +0000)]
Update.
* elf/rtld.c: Define _dl_bind_not variable.
(process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
* elf/dl-support.c: Likewise.
* sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
* elf/dl-runtime.c (fixup): Don't remember looked up value if
_dl_bind_not.
(profile_fixup): Likewise.
Ulrich Drepper [Fri, 21 Jul 2000 06:15:13 +0000 (06:15 +0000)]
Update.
* libio/Makefile (routines): Add fwide.
* libio/iofwide.c (_IO_fwide): Remove locking. This is done in
fwide now. Internal calls to _IO_fwide must do locking themselves
or don't need locking.
* libio/fwide.c: New file.
* elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
Ulrich Drepper [Fri, 21 Jul 2000 05:07:54 +0000 (05:07 +0000)]
Update.
* elf/dl-load.c (_dl_map_object): Implement handling of
DF_1_NODEFLIB.
Ulrich Drepper [Fri, 21 Jul 2000 04:42:21 +0000 (04:42 +0000)]
Update.
* elf/Makefile: Add no modules for nodelete test.
* elf/nodelmod3.c: New file.
* elf/nodelmod4.c: New file.
* elf/nodelete.c: Also test case where dependency of dlopen() object
is marked nodelete.
* elf/nodlopen.c: New file.
* elf/nodlopenmod.c: New file.
Ulrich Drepper [Fri, 21 Jul 2000 04:12:25 +0000 (04:12 +0000)]
Update.
* elf/Makefile (tests): Add nodlopen. Add rules to generate nodlopen.
* include/dlfcn.h: Define __RTLD_DLOPEN.
* elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
and this is a dlopen() call, do not load the binary.
* dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
* dlfcn/dlopenold.c: Likewise.
* configure.in: Add test for -z nodelete option.
* config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
2000-07-20 Mark Kettenis <kettenis@gnu.org>
Make Hesiod NSS module thread-safe.
* hesiod/README.hesiod: Update.
* hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
_nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
_nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
* hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
hesiod-proto.
* hesiod/nss_hesiod/hesiod-init.c: New file.
* hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
* hesiod/nss_hesiod/hesiod-grp.c: Likewise.
* hesiod/nss_hesiod/nss_hesiod.h: New file.
* hesiod/nss_hesiod/hesiod-service.c
(_nss_hesiod_getservbyport_r): New function. Provide support for
looking up services by port number.
* hesiod/nss_hesiod/hesiod-proto.c: New file.
* hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
* hesiod/hesiod.h: Likewise.
* hesiod/hesiod_p.h: Likewise.
2000-07-20 Mark Kettenis <kettenis@gnu.org>
Fix problems with `struct __res_state' getting too big.
* resolv/resolv.h (struct __sockaddr_in): New definition.
(struct __res_state): Use __sockaddr_in instead of sockaddr_in in
the private parts of the structure to save some space.
* resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
(struct sockaddr_in *) in call to sock_eq.
Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
2000-07-20 Ulrich Drepper <drepper@redhat.com>
* sysdeps/mach/hurd/dl-sysdep.c: Likewise.
Ulrich Drepper [Fri, 21 Jul 2000 01:30:20 +0000 (01:30 +0000)]
Fix typos.
* pthread.c (pthread_initialize): Don't use sysconf to determine
2000-07-18 Kaz Kylheku <kaz@ashi.footprints.net>