Commit Graph

2291 Commits

Author SHA1 Message Date
Ulrich Drepper 69071b2ab6 Update.
* sysdeps/generic/setenv.c (free_mem): New function.  Free all
	allocated memory.
2000-08-31 20:30:50 +00:00
Ulrich Drepper a778db0624 Update.
* sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
	relocate ld.so don't add supprt for relocations which should not
	appear in ld.so.
2000-08-31 08:28:44 +00:00
Ulrich Drepper f55727ca53 Update.
* sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
	_dl_all_init_dirs.
	* include/link.h (struct r_search_path_struct): New.
	(struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
	* elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
	_dl_all_init_dirs.
	* elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
	* elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
	added at startup time.
	* elf/dl-load.c: Fix memory handling.  r_search_path_struct
	contains element to remember fact that we can free memory.
	(all_dirs): Renamed to _dl_all_dirs.  Made global.
	(_dl_init_all_dirs): New variable.
	(fillin_rpath): Save one malloc call.
	(decompose_rpath): Change interface.  New first parameter points to
	r_search_path_struct.
	(_dl_init_paths): Adjust for changes.  Mark all memory as not
	deletable.  Set _dl_init_all_paths value.
	(open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
	parameter replaced with r_search_path_struct *.  Information about
	freeing now contained in r_search_path_struct.
	(_dl_map_object): Adjust for above changes.

	* elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
2000-08-31 02:27:07 +00:00
Ulrich Drepper db7dc81100 Update.
* sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
	return 0 for success but always < 0 on failure.
2000-08-30 18:28:16 +00:00
Ulrich Drepper 07d94f9045 Update.
* sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
	inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
2000-08-29 02:37:20 +00:00
Ulrich Drepper 04ea3b0fbb Update.
2000-08-27  Bruno Haible  <haible@clisp.cons.org>

	* string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
	If nrules == 0 and srclen < n, copy only srclen + 1 characters.

	* sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
	If the result is fits in the buffer, copy only as many bytes as needed.

	* sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
	buffer after copying numbuf into it.
	* sysdeps/mach/_strerror.c (__strerror_r): Likewise.

2000-08-27  Bruno Haible  <haible@clisp.cons.org>

	* posix/confstr.c (confstr): When string_len > len, NUL-terminate
	the result.  When string_len < len, don't clear the rest of the buffer.

2000-08-27  Bruno Haible  <haible@clisp.cons.org>

	Support for new LC_COLLATE format.
	* locale/coll-lookup.h: New file.
	* locale/weightwc.h (findidx): When size == 0, call
	collidx_table_lookup.
	* wcsmbs/wcscoll.c: Include coll-lookup.h.
	* wcsmbs/wcsxfrm.c: Likewise.
	* posix/fnmatch.c: Likewise.
	* posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
	collseq_table_lookup.
	* locale/programs/3level.h: New file.
	* locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
	by including "3level.h".
	* locale/programs/ld-collate.c (wchead_table, collidx_table,
	collseq_table): New types, defined by including "3level.h".
	(locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
	(encoding_mask, encoding_byte): Remove.
	(utf8_encode): Use simple shifts instead.
	(collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
	to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
	(collate_output): New local variable tablewc_3level. When
	!oldstyle_tables, set table_size to 0 and names to NULL and fill
	tablewc_3level instead of tablewc. Change format of TABLEWC and
	COLLSEQWC entries written to the file.
	* locale/C-collate.c (collseqwc): Change format.
	(_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
	of COLLSEQWC.
	* locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.

2000-08-27  Bruno Haible  <haible@clisp.cons.org>

	* locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
	(locale_ctype_t): New charnames_idx field.
	(ctype_startup): Initialize charnames_idx field.
	(find_idx): Speed up dramatically by using charnames_idx inverse table.

2000-08-27  Bruno Haible  <haible@clisp.cons.org>

	* locale/C-ctype.c: Switch to new locale format.
	(_nl_C_LC_CTYPE_names): Remove array.
	(STRUCT_CTYPE_CLASS): New macro.
	(_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
	graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
	New three-level tables.
	(_nl_C_LC_CTYPE_width): Change from array to three-level table.
	(_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
	to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
	12 class tables and 2 map tables at the end.
	* ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
	(_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
	graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
	New declarations.
	(b): Remove trailing semicolon.
	(__ctype_names, __ctype_width): Don't initialize.
	(__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.

2000-08-27  Bruno Haible  <haible@clisp.cons.org>

	* elf/dl-load.c (open_path): Add a argument telling whether *dirsp
	is guaranteed to be allocated with the same malloc() and may be
	passed to free().
	(_dl_map_object): Update open_path calls. If rtld_search_dirs has
	been set to empty by an earlier open_path call, don't pass it again.
2000-08-29 01:20:23 +00:00
Ulrich Drepper 924102e7a6 Update.
* sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
	inclusion.
2000-08-28 23:36:01 +00:00
Andreas Jaeger 7b9bb94d43 Tweaks for AMD Athlon. 2000-08-28 15:15:32 +00:00
Mark Kettenis b222360c50 * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from getpeername. Use ISO C style function definition. (getpeername): Provide weak alias. * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from setrlimit. Use ISO C style function definition. (setrlimit): Provide weak alias.
2000-08-28  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
	getpeername.  Use ISO C style function definition.
	(getpeername): Provide weak alias.
	* sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
	setrlimit.  Use ISO C style function definition.
	(setrlimit): Provide weak alias.
2000-08-28 14:05:55 +00:00
Andreas Jaeger ba55e591e7 Update.
2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* shlib-versions: Add a rule for S/390 to the libm version list.
	* sysdeps/s390/Versions: New file.
	* sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
	* sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
	* sysdeps/unix/sysv/linux/s390/Versions: New file.
	* sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
	* sysdeps/unix/sysv/linux/s390/chown.c: New file.
	* sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
	* sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
	* sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
	* sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
	* sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
	* sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
	* sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
	* sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
	* sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
	* sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
	* sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
	* sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
	* sysdeps/unix/sysv/linux/s390/xstat.c: New file.
2000-08-28 11:17:03 +00:00
Ulrich Drepper 67c28b1228 Update.
* sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
	(CFLAGS-initfini.s): Add -DWEAK_GMON_START.
2000-08-28 08:39:15 +00:00
Geoff Keating 5a3641520e * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
* sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
2000-08-28 06:20:43 +00:00
Geoff Keating e4df97b85c * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
* sysdeps/powerpc/fpu/feenablxcpt.c: New file. 
* sysdeps/powerpc/fpu/fegetexcept.c: New file. 
* sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
2000-08-27  Geoff Keating  <geoffk@cygnus.com>

	* sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
	* sysdeps/powerpc/fpu/feenablxcpt.c: New file.
	* sysdeps/powerpc/fpu/fegetexcept.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
2000-08-28 05:59:48 +00:00
Ulrich Drepper 48bde9c35c Update.
2000-08-27  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
	__inline.
2000-08-27 16:54:09 +00:00
Ulrich Drepper 6a72ae2124 Update.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
	syscall.
2000-08-27 03:28:06 +00:00
Ulrich Drepper d4cfddf947 Update.
* sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
	(sysdep_routines): Add oldgetrlimit64.
2000-08-27 01:02:34 +00:00
Ulrich Drepper 2b7238dda8 Update.
2000-08-26  Ulrich Drepper  <drepper@redhat.com>

	* elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
	reldepmod2.c, reldepmod3.c, and reldepmod4.c.
	(tests): Add unload, reldep, reldep2, and reldep3.
	(modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
	and reldepmod4.
	Add rules to build and run unload, reldep, reldep2, and reldep3.
	* elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
	Don't create relocation dependency if it is nonzero.
	(_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
	can never happen here.
	(_dl_lookup_versioned_symbol): Add new parameter explicit.
	Don't create relocation dependency if it is nonzero.
	(_dl_lookup_versioned_symbol_skip): Remove relocation dependency
	stuff.  This can never happen here.
	* sysdeps/generic/ldsodefs.h: Change prototypes.
	* elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
	_dl_lookup_up and _dl_lookup_versioned_symbol.
	(RESOLV): Likewise.
	* elf/dl-runtime.c (fixup): Likewise.
	(profile_fixup): Likewise.
	* elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
	_dl_lookup_symbol.
	* elf/dl-symbol.c (_dl_symbol_value): Likewise.
	* elf/rtld.c (dl_main): Likewise.
	* elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
	_dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
	and pass down the caller map.
	(_dl_vsym): Likewise.
	* elf/reldep.c: New file.
	* elf/reldep2.c: New file.
	* elf/reldep3.c: New file.
	* elf/reldepmod1.c: New file.
	* elf/reldepmod2.c: New file.
	* elf/reldepmod3.c: New file.
	* elf/reldepmod4.c: New file.
	* elf/unload.c: New file.
	* elf/unloadmod.c: New file.

	* elf/do-lookup.h: Remove unused undef_name parameter.
	* elf/dl-lookup.c: Adjust callers.
2000-08-26 23:41:19 +00:00
Greg McGary 53c065086b * sysdeps/i386/memchr.S: Check high bound against
chars actually scanned. 
* sysdeps/i386/memcmp.S: Likewise. 
* sysdeps/i386/stpncpy.S: Adjust high-bound check to 
account for pointers that lie one beyond end-of-buffer.
2000-08-25 21:09:43 +00:00
Ulrich Drepper bb8d0fd5b1 Update.
2000-08-21  Jes Sorensen  <jes@linuxcare.com>

	* sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
	getrlimit to the list.

2000-08-18  Jes Sorensen  <jes@linuxcare.com>

	* sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
	long double format so use ldbl-96 instead of ldbl-128.
2000-08-25 19:02:14 +00:00
Ulrich Drepper b0af120fd0 Update.
* sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
	even if bits 10 a 11 are non-zero.
	* sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
2000-08-25 18:23:57 +00:00
Ulrich Drepper b7fb789d88 Update.
2000-08-25  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/posix/system.c (__libc_system): We cannot use vfork here
	since we call sigaction in the child.
2000-08-25 16:37:20 +00:00
Andreas Jaeger 5b4c9fed26 Use __setrlimit as strong name. 2000-08-24 10:18:49 +00:00
Andreas Jaeger 0067c4cffb Update.
2000-08-24  Denis Joseph Barrow    <djbarrow@de.ibm.com>

	* sysdeps/s390/fpu/fedisblxcpt.c: New file.
	* sysdeps/s390/fpu/feenablxcpt.c: New file.
	* sysdeps/s390/fpu/fegetexcept.c: New file.
	* sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
	FPC_VALID_MASK.
2000-08-24 09:57:58 +00:00
Andreas Jaeger d97d1d64d2 Use __setrlimit as strong name. 2000-08-24 08:08:51 +00:00
Ulrich Drepper 80bae720f5 Update.
2000-08-24  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/s390/Dist: Add fpu/fenv_libc.h.
	* sysdeps/alpha/Dist: Likewise.
2000-08-24 07:41:38 +00:00
Andreas Jaeger 994cc0ea88 (_EXTERN_INLINE): Remove. Use static __inline instead of _EXTERN_INLINE. 2000-08-23 16:57:31 +00:00
Andreas Jaeger 39d4e06f6d Update.
2000-08-23  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
	__setrlimit as strong name. Takes only 2 arguments.

	* sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
	takes only 2 arguments.
2000-08-23 14:20:17 +00:00
Andreas Jaeger ea18f67073 Update.
* sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
2000-08-23 09:53:54 +00:00
Andreas Jaeger 113d09451d Add __ to JB_GPR* defines. 2000-08-23 09:03:54 +00:00
Andreas Jaeger b57c47393a Use __setrlimit as strong name. 2000-08-23 06:55:15 +00:00
Ulrich Drepper b4246fd63d Update.
2000-08-23  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
	otherwise __LINUX_KERNEL_VERSION might not be defined.
	(MIN): Define if not already defined.
2000-08-23 06:52:05 +00:00
Ulrich Drepper c43a17327f (_dl_sysdep_start): Move DL_SYSDEP_OSCHECK before the use of the first system call. 2000-08-22 17:59:19 +00:00
Ulrich Drepper 32b4fe6a63 Update.
* elf/Makefile (distribute): Add dl-osinfo.h.
	* sysdeps/generic/dl-osinfo.h: New file.
	* sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
	* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
	if defined.
	* sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
	only for !SHARED case.  Get the code from dl-osinfo.h.
2000-08-22 17:48:22 +00:00
Andreas Jaeger 0557e37afc * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove. * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove. * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove. * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove. 2000-08-22 14:10:38 +00:00
Ulrich Drepper 8859f57623 Update.
2000-08-22  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
	* sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
	(__syscall__sysctl): Add.
2000-08-22 09:10:20 +00:00
Ulrich Drepper 63336471f0 Update.
* sysdeps/i370/Implies: Removed.
	* sysdeps/mvs/Implies: Removed.

	* catgets/catgets.c (catopen): Filter out env_var values with / if
	necessary.

	* locale/findlocale.c (_nl_find_locale): Move test for unusable
	locale name after all getenvs.
2000-08-21 20:58:00 +00:00
Ulrich Drepper fb7268b292 Update.
* sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
	of gethostbyname2_r call.
2000-08-21 19:12:24 +00:00
Andreas Jaeger 2028802cee S390 specific ftestexcept implementation. 2000-08-21 17:10:50 +00:00
Andreas Jaeger 6d9109f5ae Linux/S390 specific <sys/procfs.h> version. 2000-08-21 17:09:14 +00:00
Andreas Jaeger ab3e43136e Move elf definitions to sys/procfs.h as proposed by Mark Kettenis. 2000-08-21 17:08:21 +00:00
Andreas Jaeger d1518c9de0 Linux/S390 implmentation of lchown. 2000-08-21 17:08:11 +00:00
Andreas Jaeger 9546f2e25a Linux/S390 specific version. 2000-08-21 17:07:40 +00:00
Andreas Jaeger 005926ffaf Remove sys/reg.h. 2000-08-21 17:07:07 +00:00
Andreas Jaeger 528be9fe8e Add sys/procfs.h. 2000-08-21 17:06:46 +00:00
Ulrich Drepper 4aebaa6bd9 Update.
* argp/argp-help.c: Unify use of function aliases to make more compact
	PLT.
	* include/libintl.h: Likewise.
	* inet/rcmd.c: Likewise.
	* intl/dcigettext.c: Likewise.
	* libio/iofputws.c: Likewise.
	* libio/iofputws_u.c: Likewise.
	* libio/iogetwline.c: Likewise.
	* libio/swprintf.c: Likewise.
	* malloc/malloc.c: Likewise.
	* nss/digits_dots.c: Likewise.
	* posix/fnmatch.c: Likewise.
	* posix/spawn_faction_addclose.c: Likewise.
	* posix/spawn_faction_adddup2.c: Likewise.
	* posix/spawn_faction_addopen.c: Likewise.
	* posix/spawni.c: Likewise.
	* posix/wordexp.c: Likewise.
	* posix/spawni.c: Likewise.
	* resolv/res_hconf.c: Likewise.
	* resolv/res_init.c: Likewise.
	* shadow/lckpwdf.c: Likewise.
	* signal/sighold.c: Likewise.
	* signal/sigrelse.c: Likewise.
	* stdio-common/printf-parse.h: Likewise.
	* stdio-common/printf-prs.c: Likewise.
	* stdio-common/printf_fp.c: Likewise.
	* stdio-common/vfprintf.c: Likewise.
	* stdio-common/vfscanf.c: Likewise.
	* stdlib/rpmatch.c: Likewise.
	* sunrpc/create_xid.c: Likewise.
	* sunrpc/key_call.c: Likewise.
	* sysdeps/generic/setrlimit64.c: Likewise.
	* sysdeps/generic/utmp_file.c: Likewise.
	* sysdeps/generic/vlimit.c: Likewise.
	* sysdeps/posix/posix_fallocate.c: Likewise.
	* sysdeps/posix/posix_fallocate64.c: Likewise.
	* sysdeps/posix/sigpause.c: Likewise.
	* sysdeps/posix/sigset.c: Likewise.
	* sysdeps/unix/grantpt.c: Likewise.
	* sysdeps/unix/bsd/ualarm.c: Likewise.
	* sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
	* sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
	* sysdeps/unix/sysv/linux/ttyname.c: Likewise.
	* sysdeps/unix/sysv/linux/ulimit.c: Likewise.
	* time/strftime.c: Likewise.
	* wcsmbs/wcscoll.c: Likewise.
	* wcsmbs/wcsxfrm.c: Likewise.

	* sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
	postinc/predec instruction.
2000-08-21 04:18:25 +00:00
Ulrich Drepper 479a9deb9a (_FPU_GETCW): Allow gcc to generic postinc/postdec instruction. (_FPU_SETCW): Likewise. 2000-08-20 16:42:35 +00:00
Ulrich Drepper 60f0e64b3c Update.
* malloc/mtrace.pl (usage): Inform about --help.

2000-08-19  Wolfram Gloger  <wg@malloc.de>

	* malloc/malloc.c (new_heap): try harder to get an aligned chunk of
	size HEAP_MAX_SIZE.

2000-08-19  Andreas Jaeger  <aj@suse.de>

	* shlib-versions: Remove libnss_db, libdb and libdb1.

2000-08-19  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
	* sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
	* sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
	* sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
	* sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
	* sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
	* sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
	* sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
	* sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
	* sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
	getdents.
	* sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
	* sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.

2000-08-18  Jakub Jelinek  <jakub@redhat.com>

	* include/glob.h (__glob64): Add prototype.
	* sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
	define glob and glob_in_dir.
	* sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
	* sysdeps/unix/sysv/linux/arm/Versions: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
	* sysdeps/unix/sysv/linux/i386/glob64.c: New file.
	* sysdeps/unix/sysv/linux/arm/glob64.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
	* sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.

2000-08-18  Jakub Jelinek  <jakub@redhat.com>

	* malloc/Makefile (memusage): libmemusage.so is installed in slibdir.

2000-08-17  Andreas Jaeger  <aj@suse.de>

	* math/test-fenv.c (fe_single_test): New function.
	(fe_env_tests): Use fe_single_test.
	(feenable_test): New tests for feenable/fedisable and
	fegetexcpetions.
	(feexcp_mask_test): New function.
	(feexcp_nomask_test): New function.

2000-08-19  Richard Henderson  <rth@cygnus.com>

	* sysdeps/alpha/fpu/fenv_libc.h: New file.
	* sysdeps/alpha/fpu/fclrexcpt.c: Use it.
	* sysdeps/alpha/fpu/fegetenv.c: Likewise.
	* sysdeps/alpha/fpu/fesetround.c: Likewise.
	* sysdeps/alpha/fpu/fegetround.c: Likewise.
	* sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
	* sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
	* sysdeps/alpha/fpu/ftestexcept.c: Likewise.
	* sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
	* sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
	* sysdeps/alpha/fpu/fegetexcept.c: Likewise.
	* sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
	* sysdeps/alpha/fpu/fesetenv.c: Likewise.
	* sysdeps/alpha/fpu/feupdateenv.c: Likewise.
	* sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
	* sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
	(FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.

2000-08-19  Andreas Jaeger  <aj@suse.de>
2000-08-19 16:58:09 +00:00
Ulrich Drepper 277723d891 fenv definitions for Linux/Alpha. 2000-08-19 16:06:09 +00:00
Ulrich Drepper 752a2a50d4 Update.
2000-08-19  Ulrich Drepper  <drepper@redhat.com>

	* elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
	* elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
	a dynamically loaded object remove old l_initfini list.
	* elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
	remove some dynamically allocated memory blocks in the dynamic
	loading data structures.
	* elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
	* elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
	Instead call _dl_check_map_versions only for the dependencies.
	* elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
	information of initial objects as not free-able.
	* sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
	element.

	* elf/filter.c: Call mtrace.
	* elf/restest1.c: Likewise.  Close the objects.
	* elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
	debug information.

	* elf/constload1.c: Add comment explaining not freed memory.
2000-08-19 07:17:09 +00:00
Andreas Jaeger 1689f54798 Add pads to show alignment for structs stat and stat64. Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>. 2000-08-18 06:11:11 +00:00
Ulrich Drepper 09970c4efd Update.
* sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
	handling.  Patch by Richard Henderson <rth@twiddle.net>.
2000-08-18 00:11:06 +00:00
Ulrich Drepper 4c4b95182b Update.
2000-08-16  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/sparc/fpu/fedisblxcpt.c: New file.
	* sysdeps/sparc/fpu/feenablxcpt.c: New file.
	* sysdeps/sparc/fpu/fegetexcept.c: New file.
	* sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.

	* sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
	to match Solaris.
2000-08-17 20:38:57 +00:00
Ulrich Drepper 319b400bb5 Update.
* sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
	(_FPU_SETCW): Likewise.
	Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2000-08-17 20:31:43 +00:00
Ulrich Drepper 0f6b172f72 Update.
2000-08-17  Ulrich Drepper  <drepper@redhat.com>

	* stdio-common/printf_fp.c: Fix chars_needed computation.
	Patch by Greg McGary <greg@mcgary.org>.

2000-08-17  Jakub Jelinek  <jakub@redhat.com>

	* elf/dl-load.c (_dl_map_object): Don't crash if both loader and
	_dl_loaded are NULL.

2000-08-17  Jakub Jelinek  <jakub@redhat.com>

	* manual/arith.texi (feholdexcept): Returns 0 on success.

2000-08-17  Andreas Jaeger  <aj@suse.de>

	* sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
	(ifr_newname): New.
	Reported by Andi Kleen <ak@suse.de>.

2000-08-17  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/alpha/fpu/fedisblxcpt.c: New file.
	* sysdeps/alpha/fpu/feenablxcpt.c: New file.
	* sysdeps/alpha/fpu/fegetexcept.c: New file.

2000-08-16  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
	of buf->st_ino and kbuf->st_ino, not __st_ino.
	If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
	* sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
	directive so that only linux/getdents.c is used, not some
	architecture specific one.

2000-08-16  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
	enabled, not disabled exceptions.
	* sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
	* sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.

	($(addprefix $(objpfx),$(tests)),
	$(addprefix $(objpfx),$(librt-tests))):
	* include/link.h: Undo last patches.  Hurd now has stat64.
2000-08-17 19:36:13 +00:00
Ulrich Drepper 522554b159 Return currently enabled, not disabled exceptions. 2000-08-17 18:43:01 +00:00
Greg McGary e64911d1d6 Update.
2000-08-17  Greg McGary  <greg@mcgary.org>

	* Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
	from test program name when constructing suffix for $(LDLIBS-*).
	(bounded-thread-library): New variable.
	* crypt/Makefile
	[build-shared, build-static] (libcrypt-dep): Remove variable.
	($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
	[build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
	* linuxthreads/Makefile (libpthread, librt): Remove variables.
	(librt-tests): Add variable.  (tests): Use it.
	[build-shared, build-static]
	($(addprefix $(objpfx),$(tests)), $(addprefix $(objpfx),$(librt-tests))):
	Consolidate individual dependencies.
	[build-bounded]
	($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
	Add dependencies.
	* math/Makefile (LDLIBS-*): Remove variables (they are redundant).
	[build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
	* misc/Makefile
	[build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
	* rt/Makefile
	[build-shared, build-static]
	($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
	[build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.

2000-08-17  Greg McGary  <greg@mcgary.org>

	* sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
	* sysdeps/unix/make-syscalls.sh: Likewise.
	* sysdeps/unix/sysv/linux/shmctl.c: Likewise.
	* sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
	* sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
	* sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.

2000-08-17  Greg McGary  <greg@mcgary.org>

	* sysdeps/i386/fpu/s_frexp.S: Check bounds.
	Wrap extern symbols in BP_SYM ().
	* sysdeps/i386/fpu/s_frexpf.S: Likewise.
	* sysdeps/i386/fpu/s_frexpl.S: Likewise.
	* sysdeps/i386/fpu/s_remquo.S: Likewise.
	* sysdeps/i386/fpu/s_remquof.S: Likewise.
	* sysdeps/i386/fpu/s_remquol.S: Likewise.
	* sysdeps/i386/fpu/s_sincos.S: Likewise.
	* sysdeps/i386/fpu/s_sincosf.S: Likewise.
	* sysdeps/i386/fpu/s_sincosl.S: Likewise.
	* sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
	* sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2000-08-17 07:38:02 +00:00
Greg McGary 9e25f6e29b * sysdeps/i386/fpu/s_frexp.S: Check bounds.
Wrap extern symbols in BP_SYM (). 
* sysdeps/i386/fpu/s_frexpf.S: Likewise. 
* sysdeps/i386/fpu/s_frexpl.S: Likewise. 
* sysdeps/i386/fpu/s_remquo.S: Likewise. 
* sysdeps/i386/fpu/s_remquof.S: Likewise. 
* sysdeps/i386/fpu/s_remquol.S: Likewise. 
* sysdeps/i386/fpu/s_sincos.S: Likewise. 
* sysdeps/i386/fpu/s_sincosf.S: Likewise. 
* sysdeps/i386/fpu/s_sincosl.S: Likewise. 
* sysdeps/unix/sysv/linux/i386/clone.S: Likewise. 
* sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2000-08-17 07:36:19 +00:00
Andreas Schwab 9a81430bf9 * sysdeps/m68k/fpu/fegetexcept.c: New file. * sysdeps/m68k/fpu/fedisblxcpt.c: New file. * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2000-08-16  Andreas Schwab  <schwab@suse.de>

	* sysdeps/m68k/fpu/fegetexcept.c: New file.
	* sysdeps/m68k/fpu/fedisblxcpt.c: New file.
	* sysdeps/m68k/fpu/feenablxcpt.c: New file.
2000-08-16 15:08:45 +00:00
Ulrich Drepper 74e61bb4e5 Declare _nl_loaded. 2000-08-16 06:22:45 +00:00
Ulrich Drepper ad04a62fbe (fedisableexcept): Mask, not unmask, exceptions. 2000-08-16 02:36:25 +00:00
Ulrich Drepper 3a41e72395 Update.
* sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
	* sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
	(sysdep_routines): Add oldgetrlimit64.
	* sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
	Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2000-08-16 01:40:12 +00:00
Ulrich Drepper 5763742fc7 Update.
2000-08-15  Ulrich Drepper  <drepper@redhat.com>

	* include/link.h: Undo last patches.  Hurd now had stat64.
	* elf/Makefile: Likewise.
	* elf/dl-load.c: Likewise.
	* elf/dl-misc.c: Likewise.
	* elf/dl-profile.c: Likewise.
	* sysdeps/generic/sysd-link.h: Removed.
	* sysdeps/unix/sysv/linux/sysd-link.h: Removed.

	* rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
	thread event callback function.
	(__aio_notify_only): Use function above.
	Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2000-08-16 01:28:07 +00:00
Mark Kettenis dee6b86d37 * sysdeps/mach/hurd/lseek64.c: New file.
2000-08-16  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/lseek64.c: New file.
2000-08-16 00:19:33 +00:00
Mark Kettenis 724000bc4a * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t): Remove typedefs. * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove typedefs. * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove typedefs. * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
* sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
	Remove typedefs.
	* sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
	typedefs.
	* sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
	typedefs.
	* sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.

2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2000-08-15 19:01:50 +00:00
Mark Kettenis fd811dc69a * sysdeps/mach/hurd/xstatconv.c: New file. * sysdeps/mach/hurd/fxstat64.c: New file. * sysdeps/mach/hurd/lxstat64.c: New file. * sysdeps/mach/hurd/xstat64.c: New file. * sysdeps/mach/hurd/Dist: Add xstatconv.c.
* sysdeps/mach/hurd/xstatconv.c: New file.
	* sysdeps/mach/hurd/fxstat64.c: New file.
	* sysdeps/mach/hurd/lxstat64.c: New file.
	* sysdeps/mach/hurd/xstat64.c: New file.
	* sysdeps/mach/hurd/Dist: Add xstatconv.c.

2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2000-08-15 18:47:06 +00:00
Mark Kettenis 3142475c1a * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs): Initialize, needed for change in common symbol handling in newer binutils. Mirrors 2000-01-03 change made by Andreas Schwab.
2000-08-15  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
	Initialize, needed for change in common symbol handling in newer
	binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2000-08-15 16:25:27 +00:00
Ulrich Drepper fc7f617d30 Update.
* include/link.h: Include sysd-link.h.
	* sysdeps/generic/sysd-link.h: New file.
	* sysdeps/unix/sysv/linux/sysd-link.h: New file.
	* elf/Makefile (distribute): Add sysd-link.h.
	* elf/dl-load.c: Use definitions from sysd-link.h instead of stat
	types and functions directly.
	* elf/dl-misc.c: Likewise.
	* elf/dl-profile.c: Likewise.

	* elf/loadfail.c (main): Close all successfully loaded objects.
2000-08-15 08:06:15 +00:00
Ulrich Drepper b8fd550293 Update.
* sysdeps/posix/ttyname.c: Make name variable from getttyname function
	global (with file scope).  Add __libc_subfreeres function to free the
	string.
	* sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
	in ttyname function.

	* sysdeps/generic/strtok.c: Remove initializer for olds variable.

	* crypt/md5-crypt.c: Let destructor deallocate static buffer.

	* iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
	mapping them to /x5c and /x7e respectively.
2000-08-15 06:12:25 +00:00
Ulrich Drepper 14860991fc Update.
2000-08-14  Jakub Jelinek  <jakub@redhat.com>

	* dirent/Versions (getdirentries64): Export at GLIBC_2.2.
	* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_GETDENTS64_SYSCALL): Define.
	* sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
	syscall if available to get d_type fields.
	* sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
	* sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
	__lxstat64): Export at GLIBC_2.2.
	(alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
	Likewise.
	* sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
	* sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
	* sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
	getdirentries64, versionsort64): Remove.
	* sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
	getdirentries64, versionsort64): Remove.
2000-08-14 17:41:59 +00:00
Andreas Jaeger 4863ed87de Fix typo in comment. 2000-08-14 08:18:08 +00:00
Ulrich Drepper 47b853e801 Update.
2000-08-13  Ulrich Drepper  <drepper@redhat.com>

	* posix/Makefile: Remove rules to generate glob package.

	* posix/Makefile (tests): Add tst-regexloc.
	(tst-regexloc-ENV): Add LOCPATH.
	* posix/tst-regexloc.c: New file.
2000-08-14 06:17:28 +00:00
Ulrich Drepper 91bc38d09c Update.
2000-08-12  Andreas Jaeger  <aj@suse.de>

	* include/features.h (__STDC_ISO_10646__): Define.
	Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.

	* include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.

	* locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
	for revision 6 and up).

	* posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
	including <time.h>.
	* time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
	to get definitions of just these types.

	* signal/signal.h: Define thread signal handling functions also for
	POSIX95.

	* sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
	POSIX95.
	* sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
	* sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
	* sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.

	* sysvipc/sys/shm.h: Define pid_t for XPG.

	* wcsmbs/wchar.h: Make the various wide char string and stream
	functions available for the respective XPG versions.
2000-08-14 04:57:27 +00:00
Ulrich Drepper 7e3399b393 Update.
* nss/Makefile: Remove rules to build and distribute nss_db.

	* sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
	* sysdeps/generic/scandir64.c: Likewise.
	* sysdeps/generic/versionsort64.c: Likewise.

2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2000-08-14 00:57:30 +00:00
Ulrich Drepper 451fc03299 Update.
2000-08-12  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/generic/scandir64.c: Include <dirent.h>.
2000-08-12 22:20:07 +00:00
Ulrich Drepper 2390667ff2 Update.
2000-08-12  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
	__USE_FILE_OFFSET64 correctly for locking.
	* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2000-08-12 22:17:43 +00:00
Ulrich Drepper 00c02822b8 Update.
2000-08-12  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
	Define for 2.4.1 on sparc as well.
	* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
	for F_GETLK64, F_SETLK64, and F_SETLKW64.
	* sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
	* sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2000-08-12 22:08:19 +00:00
Ulrich Drepper f39b19c7ee (__ASSUME_FCNTL64): Define for 2.4.1 on sparc as well. 2000-08-12 22:05:11 +00:00
Andreas Jaeger facd11c28e Update.
* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
	F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2000-08-12 10:01:20 +00:00
Andreas Jaeger 567152ea54 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set mips2 for assembler. * sysdeps/mips/pt-machine.h (testandset): Add .set mips2 for assembler. (__compare_and_swap): Likewise. * sysdeps/mips/pspinlock.c (__pthread_spin_lock): Likewise. 2000-08-12 09:29:03 +00:00
Ulrich Drepper 966e8ffc00 Define __have_no_fcntl64 static. 2000-08-12 08:46:30 +00:00
Ulrich Drepper 590a63937a Update.
2000-08-12  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
	if fnctl64 is not available for F_*LK*64.

	* sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2000-08-12 08:39:46 +00:00
Ulrich Drepper 21f6a10036 Update.
2000-08-12  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
	Define for 2.4.1 on x86.
	* sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
	* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
	for F_GETLK64, F_SETLK64, and F_SETLKW64.

	* dirent/dirent.h: Define DT_WHT.

	* sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
	* sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
	* sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
	* sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
	* sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
	* sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2000-08-12 08:22:14 +00:00
Ulrich Drepper 56ddf355da Update.
2000-08-11  Ulrich Drepper  <drepper@redhat.com>

	* rt/aio_cancel.c: If canceling a specific request which is running
	*really* do nothing.
	* rt/aio_misc.h: Add `done' to states of a request.
	* rt/aio_misc.c: Add several tests for the correct state.
	Simplify request table memory handling.

2000-08-10  Jakub Jelinek  <jakub@redhat.com>

	* dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
	* dirent/scandir64.c: Move...
	* sysdeps/generic/scandir64.c: ...here.
	* dirent/alphasort64.c: Move...
	* sysdeps/generic/alphasort64.c: ...here.
	* dirent/versionsort64.c: Move...
	* sysdeps/generic/versionsort64.c: ...here.
	* sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
	getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
	Export symbols at GLIBC_2.2.
	* sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
	* include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
	__versionsort64): Add prototypes.
	* io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
	* sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
	unused prototype.
	* sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
	and GLIBC_2.2.
	* sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
	* sysdeps/unix/sysv/linux/alpha/getdents.c: New.
	* sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
	* sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
	__u_quad_t.
	* sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
	Adjust for kernel-2.4.0-test6 layout.
	* sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
	GLIBC_2.1 and GLIBC_2.2.
	* sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
	* sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
	* sysdeps/unix/sysv/linux/i386/getdents64.c: New.
	* sysdeps/unix/sysv/linux/i386/olddirent.h: New.
	* sysdeps/unix/sysv/linux/i386/readdir64.c: New.
	* sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
	* sysdeps/unix/sysv/linux/i386/scandir64.c: New.
	* sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
	* sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
	* sysdeps/unix/sysv/linux/ia64/getdents.c: New.
	* sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
	* sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
	* sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
	* sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
	__u_quad_t.
	* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
	* sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
	* sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
	* sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
	* sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
	* sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
	* sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
	__u_quad_t.
	* sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
	* sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
	Define.
	* sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
	* sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
	* sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
	* sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
	* sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
	Define.
	* sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
	alpha/readdir.c.
	* sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
	alpha/readdir_r.c
	* sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
	* sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
	* sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
	_HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
	st_ino from __st_ino.
	* sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
	* sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
	* sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
	xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
	set __st_ino in addition to st_ino.
	* sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
	* sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
	__old_getdents64 as well.
	* sysdeps/unix/sysv/linux/getdirentries.c: Use it for
	getdirentries64 and old_getdirentries64 as well.
	* sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
	__GETDENTS): Define.
	(GETDENTS64): Remove.
	* sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
	Define.
	(GETDENTS64): Remove.
	* sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
	* sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
	* sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
	as well.
	* sysdeps/unix/readdir_r.c: Use it for readdir64_r and
	__old_readdir64_r as well.
	* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.

	* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2000-08-12 05:14:52 +00:00
Ulrich Drepper 8ad801270c Add SI_KERNEL define. Add missing ILL_BADIADDR to enum and make ILL_BREAK match the define of the kernel. Add missing __SEG_PSTKOVF definition. Adjust the padding of struct siginfo and struct sigevent to match the fact that sigval_t is 64 bit. 2000-08-10 22:10:17 +00:00
Andreas Jaeger 444ee64510 Synch struct stat64 and stat with current MIPS kernel. 2000-08-10 12:39:48 +00:00
Ulrich Drepper 835bf8e016 Update.
2000-08-01  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
	elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
	sysdeps/unix/sysv/linux/i386/sys/procfs.h.
	Remove the junk that's only relevant in the Linux kernel itself.
	Add a warning saying that this file is now obsolete, and include
	<sys/procfs.h>.
	* sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
	ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
	here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
	<signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
	`struct elf_prstatus' that are #ifdef'ed out.  Improve comments
	and add the notice that the file is primarily there for GDB.
	* sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.

2000-08-09  Jakub Jelinek  <jakub@redhat.com>

	* time/tzfile.c (__tzfile_compute): __tzstring zones
	from zone_names.

2000-08-09  Jakub Jelinek  <jakub@redhat.com>

	* resolv/resolv.h (__res_state): Surround prototype with
	__BEGIN_DECLS/__END_DECLS.
	* sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.

2000-08-04  Jes Sorensen  <jes@linuxcare.com>

	* sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
	Make independant of asm/resource.h from the Linux kernel.

2000-08-06  Bruno Haible  <haible@clisp.cons.org>

	* iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.

2000-08-06  Bruno Haible  <haible@clisp.cons.org>

	* intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
	* locale/Makefile (locale-CPPFLAGS): Likewise.

2000-08-09  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/i386/fpu/libm-test-ulps: Increase several error values
	for AMD processors.

2000-08-03  Jakub Jelinek  <jakub@redhat.com>

	* misc/Versions (mincore): Export at GLIBC_2.2.

2000-08-03  Bruno Haible  <haible@clisp.cons.org>

	* intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2000-08-10 04:40:02 +00:00
Mark Kettenis 36f7b1df97 * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from socketpair. Made socketpair a weak alias. * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using __socketpair. Use S_IFIFO protocol to make pipes POSIX conforming, but fall back on the old protocol if the socket server doesn't support it. * include/sys/socket.h: Add prototype for __socketpair.
2000-08-02  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
	socketpair.  Made socketpair a weak alias.
	* sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
	__socketpair.  Use S_IFIFO protocol to make pipes POSIX
	conforming, but fall back on the old protocol if the socket server
	doesn't support it.
	* include/sys/socket.h: Add prototype for __socketpair.
2000-08-09 21:05:45 +00:00
Greg McGary eb48f491b1 * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
frame pointer early so that we save caller's frame pointer. 
* sysdeps/i386/elf/setjmp.S: Likewise.
	* sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
	frame pointer early so that we save caller's frame pointer.
	* sysdeps/i386/elf/setjmp.S: Likewise.
2000-08-03 21:39:16 +00:00
Greg McGary 274aead395 * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
* io/test-utime.c: Test passing NULL as utimbuf* arg.
2000-08-03 20:04:31 +00:00
Ulrich Drepper 74dd1fee1c Update.
* sysdeps/ia64/Dist: Add _mcount.S.

	* sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.

	* sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.

	* elf/Makefile (distribute): Add missing modules.
2000-08-02 22:44:39 +00:00
Ulrich Drepper 349e00ef6a Update.
* sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2000-08-02 22:03:45 +00:00
Ulrich Drepper cfd57cdc0f Update.
* sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
	asm/resource.h.
2000-08-02 18:58:15 +00:00
Ulrich Drepper 543a70cc8e Undo last change. 2000-08-02 15:27:16 +00:00
Andreas Jaeger 847b055c65 Update.
2000-08-02  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/s390/Dist: New file.
	* sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
	* sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
	* sysdeps/unix/sysv/linux/s390/syscall.S: New file.
	* sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
	* sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
	* sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
	* sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
	* sysdeps/unix/sysv/linux/s390/socket.S: New file.
	* sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
	* sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
	* sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
	* sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
	* sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
	* sysdeps/unix/sysv/linux/s390/setregid.c: New file.
	* sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
	* sysdeps/unix/sysv/linux/s390/setgid.c: New file.
	* sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
	* sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
	* sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
	* sysdeps/unix/sysv/linux/s390/setegid.c: New file.
	* sysdeps/unix/sysv/linux/s390/semctl.c: New file.
	* sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
	* sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
	* sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
	* sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
	* sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
	* sysdeps/unix/sysv/linux/s390/mmap.S: New file.
	* sysdeps/unix/sysv/linux/s390/getuid.c: New file.
	* sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
	* sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
	* sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
	* sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
	* sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
	* sysdeps/unix/sysv/linux/s390/getegid.c: New file.
	* sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
	* sysdeps/unix/sysv/linux/s390/fchown.c: New file.
	* sysdeps/unix/sysv/linux/s390/clone.S: New file.
	* sysdeps/unix/sysv/linux/s390/brk.c: New file.
	* sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
	* sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
	* sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
	* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
	* sysdeps/unix/sysv/linux/s390/Makefile: New file.
	* sysdeps/s390/sysdep.h: New file.
	* sysdeps/s390/sys/ucontext.h: New file.
	* sysdeps/s390/sub_n.S: New file.
	* sysdeps/s390/strncpy.S: New file.
	* sysdeps/s390/strcpy.S: New file.
	* sysdeps/s390/stackinfo.h: New file.
	* sysdeps/s390/setjmp.S: New file.
	* sysdeps/s390/s390-mcount.S: New file.
	* sysdeps/s390/mul_1.S: New file.
	* sysdeps/s390/memusage.h: New file.
	* sysdeps/s390/memset.S: New file.
	* sysdeps/s390/memcpy.S: New file.
	* sysdeps/s390/memchr.S: New file.
	* sysdeps/s390/machine-gmon.h: New file.
	* sysdeps/s390/ldbl2mpn.c: New file.
	* sysdeps/s390/gmp-mparam.h: New file.
	* sysdeps/s390/fpu/fpu_control.h: New file.
	* sysdeps/s390/fpu/fesetround.c: New file.
	* sysdeps/s390/fpu/fegetround.c: New file.
	* sysdeps/s390/fpu/fclrexcpt.c: New file.
	* sysdeps/s390/fpu/bits/fenv.h: New file.
	* sysdeps/s390/ffs.c: New file.
	* sysdeps/s390/elf/start.S: New file.
	* sysdeps/s390/elf/setjmp.S: New file.
	* sysdeps/s390/elf/bsd-setjmp.S: New file.
	* sysdeps/s390/elf/bsd-_setjmp.S: New file.
	* sysdeps/s390/dl-machine.h: New file.
	* sysdeps/s390/bzero.S: New file.
	* sysdeps/s390/bsd-setjmp.S: New file.
	* sysdeps/s390/bsd-_setjmp.S: New file.
	* sysdeps/s390/bits/string.h: New file.
	* sysdeps/s390/bits/setjmp.h: New file.
	* sysdeps/s390/bits/huge_val.h: New file.
	* sysdeps/s390/bits/endian.h: New file.
	* sysdeps/s390/bits/byteswap.h: New file.
	* sysdeps/s390/bcopy.S: New file.
	* sysdeps/s390/backtrace.c: New file.
	* sysdeps/s390/atomicity.h: New file.
	* sysdeps/s390/asm-syntax.h: New file.
	* sysdeps/s390/addmul_1.S: New file.
	* sysdeps/s390/add_n.S: New file.
	* sysdeps/s390/abort-instr.h: New file.
	* sysdeps/s390/__longjmp.c: New file.
	* sysdeps/s390/Makefile: New file.
	* sysdeps/s390/Implies: New file.
	* sysdeps/s390/Dist: New file.
	Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2000-08-02 15:15:00 +00:00
Ulrich Drepper be18eced55 Update.
Remove incompatible IPv6 extension of RPC.
	* sunrpc/Makefile: Undo changes.
	* sunrpc/rpc_main.c: Likewise.
	* sunrpc/rpc/clnt.h: Likewise.
	* sunrpc/rpc/svc.h: Likewise.
	* sunrpc/bindrsvprt6.c: Removed.
	* sunrpc/clnt_tcp6.c: Removed.
	* sunrpc/clnt_udp6.c: Removed.
	* sunrpc/svc_tcp6.c: Removed.
	* sunrpc/svc_udp6.c: Removed.

	* intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
	dgettext, and dcgettetxt.

	* intl/locale.alias: Update japanese aliases.
2000-08-02 07:01:41 +00:00
Ulrich Drepper ca8d5a5f3d Update.
* sysdeps/ia64/bits/byteswap.h: New file.
	Patch by Dan Pop <Dan.Pop@cern.ch>.

	* misc/sys/cdefs.h: Define __attribute_format_arg__.
	* intl/libintl.h: Use it here instead of using __attribute__ directly.

2000-07-13  H.J. Lu  <hjl@gnu.org>

	* posix/regex.c (re_max_failures): Set to 4000.

2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2000-08-02 01:19:29 +00:00
Mark Kettenis 15f033cf1c * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into acount that elf/rtld's main program might remove some varibales from the environment if we're trying to be secure. Move the Hurd startup data if necessary, or, if we there is no startup data, make sure the magical convention that ARGV[0] is stored just after the environment list.
2000-07-29  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
	acount that elf/rtld's main program might remove some varibales
	from the environment if we're trying to be secure.  Move the Hurd
	startup data if necessary, or, if we there is no startup data,
	make sure the magical convention that ARGV[0] is stored just after
	the environment list.
2000-08-01 20:24:20 +00:00
Ulrich Drepper b73204bf74 Update.
2000-08-01  Philip Blundell  <philb@gnu.org>

	* sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
	(sysdep_routines): Add oldgetrlimit, oldsetrlimit.
	* sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
	oldsetrlimit for GLIBC_2.0.

	(LINE_PARSER): Allow any number of spaces between ip address and
	number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
	* nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
	Likewise.
	* Make-dist (dist): Resolve `..' in file names.
2000-08-01 19:14:14 +00:00
Ulrich Drepper 9b4f7699ba Add oldgetrlimit, oldsetrlimit for GLIBC_2.0. 2000-08-01 19:10:53 +00:00
Andreas Jaeger 5cc90078d4 Update.
2000-08-01  Andreas Jaeger  <aj@suse.de>

	* hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.

	* elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.

	* wctype/Makefile (distribute): Add wchar-lookup.h.

	* sysdeps/generic/Dist: Add bp-checks.h.

	* iconvdata/Makefile (distribute): Add isiri-3342.h.
2000-08-01 13:06:28 +00:00