Commit Graph

9114 Commits

Author SHA1 Message Date
Ulrich Drepper 1ba0f0895a Declare __isctype. 2002-09-01 18:23:10 +00:00
Roland McGrath 0f283ffc5e * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.

	* include/getopt.h: Include <features.h> before <posix/getopt.h>.

	* locale/findlocale.c (_nl_remove_locale): Don't search in
	_nl_locale_file_list if DATA->alloc is ld_archive.
	Use _nl_unload_locale to do the rest of the work.

	* locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
	of new structure to UNDELETABLE.

	* wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
	iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
	towlower, towupper): Macros removed.
	* ctype/ctype.h (__tobody): Put parens around macro argument.
	(__isctype): Macro removed.
	(__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
	(isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
	ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
	tolower, toupper): Macros and inlines removed.
	* include/ctype.h [! NOT_IN_libc]
	(isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
	ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
	tolower, toupper): Define here instead, using _NL_CURRENT.
	* ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
	using _NL_CURRENT.
	* ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
	* ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
	Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
	(__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
	(__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
	* locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
	conditional on SHLIB_COMPAT.  Don't set removed variables at all.
	* wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
	* wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
	* resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
	(ISSORTMASK): Update use.
	* intl/localealias.c [__GNUC__]: #undef alloca before #define.
	* nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
	(_nss_files_getENTNAME_r): Likewise.
	* nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
	Likewise.

	* Makerules (all-nonlib): Renamed from all-tests.
	Include $(others) here too.
	* locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
	CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
	CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
	CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
	CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
	the program modules via cppflags-iterator.mk.
	* sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
	Instead, catch all rpcgen-objs via cppflags-iterator.mk.

	* posix/tst-getconf.sh: If no third arg, work with static linking.
2002-09-01 12:39:40 +00:00
Roland McGrath 0ba454fccb * locale/categories.def (LC_TIME): No more _nl_postload_time.
* locale/setlocale.c (_nl_category_postload): Use weak refs only under
	[_NL_CURRENT_INDIRECT].
2002-08-31 21:09:35 +00:00
Roland McGrath 245cc7735d 2002-08-31 Roland McGrath <roland@redhat.com>
* locale/categories.def (LC_TIME): No more _nl_postload_time.
2002-08-31 21:08:10 +00:00
Ulrich Drepper cf22bc953f Update.
2002-08-31  Ulrich Drepper  <drepper@redhat.com>

	* time/tst-ftime_l.c (main): Also test strftime with uselocale.

	errlist-compat.c if versioning==yes.
2002-08-31 20:27:15 +00:00
Ulrich Drepper 281058289a (main): Also test strftime with uselocale. 2002-08-31 20:15:31 +00:00
Roland McGrath a0fc81e171 * locale/newlocale.c (__newlocale): Don't use strdup for names.
Instead, make the single allocation of the structure larger to hold
	the name strings.
	* locale/duplocale.c (__duplocale): Don't strdup names individually.
	Instead, calculate size for a single allocation and copy into it.
	* locale/freelocale.c (__freelocale): Don't free names individually.
2002-08-31 20:08:18 +00:00
Roland McGrath 6f8f031516 * locale/newlocale.c (__newlocale): Don't leak old data or names.
* locale/xlocale.h (__locale_struct): Move __names member last,
	for binary compatibility.
2002-08-31 19:00:28 +00:00
Roland McGrath 252e798302 2002-08-31 Roland McGrath <roland@redhat.com>
* locale/newlocale.c (__newlocale): Don't leak old data or names.
2002-08-31 19:00:15 +00:00
Ulrich Drepper 605decc1af Only depend on Versions.v.i for errlist-compat.c if versioning==yes. 2002-08-31 18:44:55 +00:00
Roland McGrath 426bf3a396 * locale/duplocale.c (__duplocale): Free names from the right array.
* locale/uselocale.c (__uselocale): Return previous locale when
	setting a new one.

	* locale/newlocale.c: Commit changes from 2002-08-30
	batch where I failed to commit this file:
	(__newlocale): Fill in __names array.
2002-08-31 18:29:52 +00:00
Roland McGrath 26e401242c 2002-08-31 Roland McGrath <roland@redhat.com>
* locale/newlocale.c: Commit changes from 2002-08-30
	batch where I failed to commit this file.
2002-08-31 18:28:32 +00:00
Ulrich Drepper 40c564251f Update.
2002-08-31  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/gnu/Makefile: Only depend on Versions.v.i for
	errlist-compat.c if build-shared==yes.
2002-08-31 18:25:50 +00:00
Ulrich Drepper 64b6a1a4e4 Only depend on Versions.v.i for errlist-compat.c if build-shared==yes. 2002-08-31 18:23:37 +00:00
Andreas Jaeger 78df0fcb80 Update.
* sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
	external functions with hidden attribute.
	(elf_machine_rela): Optimize.

	* sysdeps/x86_64/memset.S: New file.
	* sysdeps/x86_64/bzero.S: New file.
	* sysdeps/x86_64/stpcpy.S: New file.
	* sysdeps/x86_64/strcat.S: New file.
	* sysdeps/x86_64/strchr.S: New file.
	* sysdeps/x86_64/strcpy.S: New file.
	* sysdeps/x86_64/strcspn.S: New file.
	* sysdeps/x86_64/strlen.S: New file.
	* sysdeps/x86_64/strpbrk.S: New file.
	* sysdeps/x86_64/strspn.S: New file.
	* sysdeps/x86_64/strcmp.S: New file.
	* sysdeps/x86_64/strtok_r.S: New file.
	* sysdeps/x86_64/strtok.S: New file.
	* sysdeps/x86_64/memcpy.S: New file.
	* sysdeps/x86_64/mempcpy.S: New file.
2002-08-31 17:45:33 +00:00
Andreas Jaeger 7c9466bc76 Update.
2002-08-31  Andreas Jaeger  <aj@suse.de>

	* sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.

	* sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
2002-08-31 10:33:26 +00:00
Andreas Jaeger 22ca6116c0 Add ulps for double tests. 2002-08-31 10:32:59 +00:00
Ulrich Drepper 9649be24d4 Update.
* stdio-common/Makefile (generated): Add errlist-compat.c.

	* locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
2002-08-31 09:43:13 +00:00
Ulrich Drepper 1e05e2a9b4 Update.
2002-08-31  Ulrich Drepper  <drepper@redhat.com>

	* locale/localeinfo.h: Pretty printing.

	* stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
	form_number handling.

	(__aux_init_cache): New function.
	(__aux_init_cache): New function.
	* locale/programs/locarchive.c (struct oldlocrecent): New type.
	(oldlocrecentcmp): New function.
	* sysdeps/x86_64/fpu/bits/mathinline.h: New file.
	* sysdeps/x86_64/fpu/s_copysign.S: New file.
	* sysdeps/x86_64/fpu/s_copysignf.S: New file.
	* sysdeps/x86_64/fpu/s_copysignl.S: New file.
	* sysdeps/x86_64/fpu/s_finitel.S: New file.
	* sysdeps/x86_64/fpu/s_fmax.S: New file.
	* sysdeps/x86_64/fpu/s_fmaxf.S: New file.
	* sysdeps/x86_64/fpu/s_fmaxl.S: New file.
	* sysdeps/x86_64/fpu/s_fmin.S: New file.
	* sysdeps/x86_64/fpu/s_fminf.S: New file.
	* sysdeps/x86_64/fpu/s_fminl.S: New file.
	* locale/programs/locarchive.c (struct nameent, struct dataent): New
	types.
	* sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
	* sysdeps/x86_64/fpu/s_llrint.S: New file.
	* sysdeps/x86_64/fpu/s_llrintf.S: New file.
	* sysdeps/x86_64/fpu/s_llrintl.S: New file.
	* sysdeps/x86_64/fpu/s_lrint.S: New file.
	* sysdeps/x86_64/fpu/s_lrintf.S: New file.
	* sysdeps/x86_64/fpu/s_lrintl.S: New file.
	* sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
	(CAUSE_SHIFT): New macro.
	* sysdeps/sparc/sparc64/configure.in: New file.
	* sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
	* sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
	* sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
	* sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
	* sysdeps/x86_64/bits/setjmp.h: New file.
	* sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
	* sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
	* elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
	* sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
	* config.h.in (HAVE_BUILTIN_MEMSET): New macro.
	* elf/dl-deps.c (_dl_build_local_scope): New function.
	* elf/dl-lookup.c (_dl_debug_bindings): New function.
	(elf_machine_rela, elf_machine_rela_relative): New functions.
	(elf_machine_rela, elf_machine_rela_relative): New functions.
	* elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
	functions.
2002-08-31 09:26:42 +00:00
Ulrich Drepper eeae65e356 Don't use rule for crt%.o, spell it out as rules for crti.o and crtn.o. 2002-08-31 08:47:35 +00:00
Andreas Jaeger df5e9fa69f Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
	double tests.
2002-08-31 08:22:35 +00:00
Andreas Jaeger c816e07413 Update.
2002-08-31  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
	__start_context.

	* sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.

	* sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.

	* sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
	registers used for passing args.

	* sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
	all needed registers.

	* sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
	registers.

	* sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
	registers.
2002-08-31 08:06:48 +00:00
Andreas Jaeger ba1e2fe668 Linux/x86-64 makecontext implementation. 2002-08-31 08:04:45 +00:00
Roland McGrath cc6d371de3 * Makefile (extra-objs, omit-deps): Add crtn.
($(objpfx)libpthread.so): Depend on $(objpfx)crtn.o.
	($(objpfx)libpthread.so: +postinit): Append $(objpfx)crtn.o.
	($(objpfx)crtn.S): New target.
	($(objpfx)crt%.o): Pattern rule replaces crti.o target.
	(generated): Add crtn.S.

	* sysdeps/unix/sysv/linux/x86_64/Makefile ($(objpfx)specs): Massage
	crtn.o pathname too.
2002-08-31 05:31:31 +00:00
Roland McGrath c5e341eec9 2002-08-30 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/Makefile ($(objpfx)specs): Massage
	crtn.o pathname too.
2002-08-31 05:31:17 +00:00
Ulrich Drepper 795726d6ab Update.
2002-08-30  Ulrich Drepper  <drepper@redhat.com>

	* elf/dynamic-link.h (elf_get_dynamic_info): Mark with
	always_inline attribute.
2002-08-31 04:30:45 +00:00
Ulrich Drepper ff0a515eec (elf_get_dynamic_info): Mark with always_inline attribute. 2002-08-31 04:09:05 +00:00
Roland McGrath 37076fcc4c * stdlib/tst-setcontext.c (main): If makecontext does nothing,
presume it's the stub and bail without error.
2002-08-31 03:21:56 +00:00
Roland McGrath 8fea756af2 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).

	* nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
2002-08-31 00:02:18 +00:00
Roland McGrath e932b4062e * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
macros replace the i686 versions for 64-bit mode.
2002-08-30 23:09:46 +00:00
Roland McGrath 95ed9d8438 * locale/duplocale.c: Include <string.h>. 2002-08-30 22:07:28 +00:00
Roland McGrath 2b71beea82 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
[_LIBC] (category_to_name): Don't define the function.  Instead
	define a macro using _nl_category_names.
2002-08-30 19:36:12 +00:00
Roland McGrath 1ce8aaaedb * locale/xlocale.h (struct __locale_struct): New member `__names'.
* locale/xlocale.c (_nl_C_locobj): Update initializer.
	* locale/global-locale.c (_nl_global_locale): Likewise.
	* locale/duplocale.c (__duplocale): strdup __names elements.
	* locale/freelocale.c (__freelocale): Free __names elements.
	* locale/localename.c (_nl_current_names): Variable removed.
	(__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
	* locale/localeinfo.h (_nl_current_names): Removed decl.
	* locale/setlocale.c: Use _nl_global_locale->__names in place of
	_nl_current_names throughout.

	* locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).

	* sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
	and sys_nerr in the output file.

	* sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
	* scripts/cpp: Just use the environment variable.

	* libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
	* libio/tst-mmap-offend.c (do_test): Likewise.
	* libio/tst-mmap-fflushsync.c (do_test): Likewise.
	* libio/tst-mmap-eofsync.c (do_test): Likewise.
	* libio/tst-mmap2-eofsync.c (do_test): Likewise.
2002-08-30 10:36:44 +00:00
Roland McGrath ccaf730670 * locale/localename.c: If the current locale is the global locale, use
_nl_current_names; otherwise use the locale object.

2002-08-29  Roland McGrath  <roland@frob.com>

	* sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
2002-08-29  Roland McGrath  <roland@redhat.com>
2002-08-30 08:11:12 +00:00
Roland McGrath 44fbaddd54 2002-08-29 Roland McGrath <roland@redhat.com>
* sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
2002-08-30 08:09:29 +00:00
Ulrich Drepper 91e6367eac Update I/O mmap entry. 2002-08-30 07:12:22 +00:00
Ulrich Drepper dd0ee2e102 Update.
2002-08-29  Ulrich Drepper  <drepper@redhat.com>

	* libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
	'm' to enable mmap I/O.
	* libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
	former wasn't used (anymore?).
	(_IO_FLAGS2_MMAP): New define.
	* libio/genops.c (_IO_no_init): Initialize _flags2 field.
	* libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
	_IO_FLAGS2_MMAP bit is set.
	* libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
	Enable mmap-using mode only if 'm' was set.
2002-08-30 07:07:16 +00:00
Ulrich Drepper b7fc6d07af (_IO_new_file_fopen): Recognize new mode specifier 'm' to enable mmap I/O. 2002-08-30 07:04:16 +00:00
Roland McGrath cc13edc8d4 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
Change argument type from int to intptr_t.

	* locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
	initializer on [! _HURD_THREADVAR_H] (bad kludge).
	* sysdeps/mach/hurd/i386/init-first.c (init): Initialize
	_HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
	* hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
2002-08-30 01:51:11 +00:00
Roland McGrath 7a9ce79a3b * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
* sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).

	* sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.

	* include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
	* assert/assert-perr.c: Add libc_hidden_def.
	* elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.

	* sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
	found at all.
	* sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
	sys_errlist stuff to ...
	* sysdeps/unix/sysv/linux/Versions: ... here.

	* mach/mach.h: Include <features.h>.
2002-08-30 01:31:18 +00:00
Roland McGrath 868b78c83c * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
* sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
	define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
2002-08-29 23:24:40 +00:00
Roland McGrath c5738211bd * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
* iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
	(norm_add_slashes): alloca -> __alloca

	* sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
	p_vaddr/p_offset when computing LOADADDR.
2002-08-29 20:39:40 +00:00
Roland McGrath 459c2eef21 2002-08-29 Roland McGrath <roland@redhat.com>
* sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
2002-08-29 20:39:24 +00:00
Ulrich Drepper c9bf8c6000 (process_string_arg): Fix typo. 2002-08-29 11:13:21 +00:00
Ulrich Drepper c98d82db4c Update.
2002-08-29  Jakub Jelinek  <jakub@redhat.com>

	* stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
	string_malloced, it is unlikely to be set.
	Only call free with non-NULL workspace.
	* sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
	-mcpu=ultrasparc, not only tune for it.
	(ASFLAGS*): Set unconditionally.

2002-08-29  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/generic/readelflib.c (process_elf_file): Make loadaddr
	ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
	p_vaddr/p_offset when computing loadaddr.
2002-08-29 10:42:30 +00:00
Ulrich Drepper 69f8b5e823 Update.
* version.h (VERSION): Bump to 2.2.92.

	* time/Makefile (tst-ftime_l-ENV): New variable.
2002-08-29 10:12:49 +00:00
Ulrich Drepper c91bace45b Update.
2002-08-29  Ulrich Drepper  <drepper@redhat.com>

	* iconvdata/ibm870.c: All bytes are now used, no holes anymore.

	* localedata/charmaps/IBM870: Add correct mapping for <U017E>,
	<U017A>, <U017D> and <U0179>. Add missing mappings.
	Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.

	* gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
	Define ARCINDEX.  Bump MAXARCS to 1 << 20.
	(struct tostruct): Use ACRINDEX as type for link field.
	(statuc gmonparam): Likewise for froms.
	* gmon/gmon.c (__monstartup): Use currect cast for assignments to
	kcount and froms.
	(write_call_graph): Use correct type for from_index and to_index.
	* gmon/mcount.c: Use correct types for frompcindex and toindex
	variables.
	Patches by Dan Kegel <dank@kegel.com>.

	* sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
	canonical name.

	* time/strptime.c (ISSPACE): New #define.  Use isspace or
	__isspace_l.  Replace calls to isspace.
	(match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
2002-08-29 10:07:47 +00:00
Ulrich Drepper c885209322 Add correct mapping for <U017E>, <U017A>, <U017D> and <U0179>. Add missing mappings. 2002-08-29 09:45:29 +00:00
Roland McGrath 3d474d01ab * string/tst-strxfrm.c: Remove __ from function names. 2002-08-29 09:28:34 +00:00
Ulrich Drepper be5b0fbcb2 Use correct types for frompcindex and toindex variables. 2002-08-29 09:27:50 +00:00