Commit Graph

8943 Commits

Author SHA1 Message Date
Ulrich Drepper b1f6875087 Update.
2004-10-27  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-fini.c (_dl_fini): Fix search for map in maps array.
	Reverse order of namespaces.
	* elf/Makefile: Add rules to build and run tst-dlmopen3.
	* elf/tst-dlmopen3.c: New file.
	* elf/tst-dlmopen1mod.c: Add check whether constructor runs.
2004-10-27 20:27:40 +00:00
Ulrich Drepper 778cddad17 Update.
2004-10-27  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/generic/glob.c (globfree): Clear gl_pathv after freeing it.
	* posix/Makefile: Add rules to build and run bug-glob2 test.
	* posix/bug-glob2.c: New test.
2004-10-27 18:23:53 +00:00
Roland McGrath 3ba7b3831f * sysdeps/mach/hurd/i386/tls.h (HURD_TLS_DESC_DECL): New macro.
(_hurd_tls_init): Use it.
	(_hurd_tls_fork): New function.
	* sysdeps/mach/hurd/fork.c (__fork) [USE_TLS]: Call it.
2004-10-27 07:48:08 +00:00
Roland McGrath 269761cad3 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Initialize TCB->tcb. 2004-10-27 00:55:39 +00:00
Roland McGrath e65a6679f0 * sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t
type instead of uint16_t.  Formatting.
2004-10-26 18:11:31 +00:00
Roland McGrath e8210ece6e * login/openpty.c (openpty): Add libutil_hidden_def. 2004-10-26 02:36:52 +00:00
Roland McGrath 4463a2eed7 either libc_hidden_def or libnss_files_hidden_def, not hidden_def.
This file is also compiled into libnss_hesiod by #include.
2004-10-26 02:30:36 +00:00
Roland McGrath 8f8bd267e9 * sysdeps/unix/bsd/hp: Directory and all files removed.
These are now in the ports repository.
	* sysdeps/unix/bsd/osf: Likewise.
	* sysdeps/unix/bsd/sequent: Likewise.
	* sysdeps/unix/bsd/sony: Likewise.
	* sysdeps/unix/bsd/ultrix4: Likewise.
	* sysdeps/unix/sysv/aix: Likewise.
	* sysdeps/unix/sysv/hpux: Likewise.
	* sysdeps/unix/sysv/irix4: Likewise.
	* sysdeps/unix/sysv/isc2.2: Likewise.
	* sysdeps/unix/sysv/minix: Likewise.
	* sysdeps/unix/sysv/sco3.2.4: Likewise.
	* sysdeps/unix/sysv/sco3.2: Likewise.
	* sysdeps/unix/sysv/sysv4: Likewise.
2004-10-26 02:15:42 +00:00
Roland McGrath af5b614c7e * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define to
libnss_files_hidden_def, not hidden_def.  This file is also compiled
	into libnss_hesiod by #include.
2004-10-26 01:55:51 +00:00
Roland McGrath bae0f89e47 * configure.in (ASM_LINE_SEP): Move this setting to ...
* sysdeps/hppa/configure.in: ... here, new file.
	* sysdeps/hppa/configure: New generated file.
	* configure: Regenerated.
2004-10-26 01:35:59 +00:00
Ulrich Drepper c2a4357a45 Update.
2004-10-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/sh/dl-machine.h: Include sysdep.h.
	(ELF_MACHINE_RUNTIME_TRAMPOLINE): Add CFI directives.
	(elf_machine_runtime_setup): Add always_inline attribute.
	(_dl_start_user): Pass the correct environ.
	(elf_machine_rela): Replace static inline by auto inline, add
	always_inline attribute.
	(elf_machine_rela_relative): Likewise.
	(elf_machine_lazy_rel): Likewise.
2004-10-25 19:07:36 +00:00
Ulrich Drepper cd40e3a7cb Update.
* nis/nis_call.c: Pretty printing.  Minor cleanups.
2004-10-25 03:33:05 +00:00
Ulrich Drepper faf4346213 Update.
* nis/nis_addmember.c (nis_addmember): Add assert to check buffer
	bounds.
2004-10-25 03:16:46 +00:00
Ulrich Drepper 78d8d2117b Update.
* resolv/nss_dns/dns-host.c: Avoid using PLTs.
2004-10-24 23:02:46 +00:00
Ulrich Drepper b31b32b3aa Update.
* include/libc-symbols.h: Define hidden attribute macros for
	libnss_nisplus and libutil.
	* include/utmp.h: Add libutil_hidden_proto for login_tty.
	* login/login_tty.c: Add libutil_hidden_def.
	* nis/nisplus-parser.h: Add libnss_nisplus_hidden_proto for parsers.
	* nis/nss_nisplus/nisplus-parser.c: Add libnss_nisplus_hidden_def.
	* include/pty.h: New file.
	* include/rpcsvc/yp.h: New file.
	* include/rpcsvc/ypclnt.h: New file.
	* include/rpcsvc/ypupd.h: New file.
2004-10-24 21:29:41 +00:00
Ulrich Drepper 7440c23e03 Update.
* include/libc-symbols.h: Define hidden attribute macros for libnsl.
	* include/rpcsvc/nislib.h: Use libnsl_hidden_proto for various
	functions.
	* nis/nis_add.c: Add libnsl_hidden_def.  Minor optimizations.
	* nis/nis_call.c: Likewise.
	* nis/nis_clone_obj.c: Likewise.
	* nis/nis_defaults.c: Likewise.
	* nis/nis_domain_of_r.c: Likewise.
	* nis/nis_error.c: Likewise.
	* nis/nis_file.c: Likewise.
	* nis/nis_free.c: Likewise.
	* nis/nis_local_names.c: Likewise.
	* nis/nis_lookup.c: Likewise.
	* nis/nis_modify.c: Likewise.
	* nis/nis_print.c: Likewise.
	* nis/nis_remove.c: Likewise.
	* nis/nis_subr.c: Likewise.
	* nis/nis_table.c: Likewise.
	* nis/nis_util.c: Likewise.
	* nis/yp_xdr.c: Likewise.
	* nis/ypclnt.c: Likewise.
	* nis/ypupdate_xdr.c: Likewise.
2004-10-24 20:29:20 +00:00
Ulrich Drepper 8aeb5058b6 Update.
* resolv/res_send.c (send_dg): Cope with failures.
2004-10-24 09:20:14 +00:00
Ulrich Drepper 8cf2663252 Update.
2004-10-24  Ulrich Drepper  <drepper@redhat.com>

	* include/libc-symbols.h: Define hidden attribute macros for
	libnss_files.
	* include/netdb.h: Use libnss_files_hidden_proto for the parsers
	defined in libnss_files, not libc_hidden_proto.
	* include/netinet/ether.h: Likewise.
	* include/rpc/netdb.h: Likewise.
	* nss/nss_files/files-parse.c: Use hidden_def in parser definitions
	instead of libc_hidden_def.
	* nss/nss_files/files-netgrp.c: Add libnss_files_hidden_def to
	_nss_netgroup_parseline definition.
2004-10-24 09:06:50 +00:00
Roland McGrath 02d6ab9fc4 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Don't return early
after an RPC succeeds.
2004-10-24 01:59:26 +00:00
Roland McGrath 82d247202c Moved ancient files to ports repository
* sysdeps/cris, sysdeps/unix/sysv/linux/cris: Likewise.
	* sysdeps/am29k, sysdeps/i860, sysdeps/i960, sysdeps/m88k: Likewise.
	* sysdeps/standalone, sysdeps/z8000: Likewise.
2004-10-23 21:38:39 +00:00
Roland McGrath 229cf8d96c Moved tahoe files to ports repository
* sysdeps/tahoe, sysdeps/unix/bsd/tahoe: Likewise.
2004-10-23 21:03:03 +00:00
Roland McGrath 2bfae43161 Moved vax files to ports repository
2004-10-23  Roland McGrath  <roland@frob.com>

	* sysdeps/vax, sysdeps/unix/bsd/vax: Directories and all files removed.
	These are now in the ports repository.
2004-10-23 20:39:12 +00:00
Roland McGrath ca306cc981 * Makefile (%.bz2, %.gz): Move these pattern rules ...
* Makerules: ... to here.
2004-10-23 20:10:46 +00:00
Ulrich Drepper 17a1031933 Update.
2004-10-23  Ulrich Drepper  <drepper@redhat.com>

	* resolv/res_send.c (send_dg): Combine write and read to socket
	into one loop.
2004-10-23 08:22:29 +00:00
Ulrich Drepper 390c662066 Update.
* resolv/res_send.c: Remove compatibility code which is unused in
	glibc and probably bitrotten.
2004-10-23 06:45:30 +00:00
Roland McGrath 3fd352b01b * elf/elf.h: Add R_MN10300_* relocation numbers. 2004-10-23 02:52:41 +00:00
Roland McGrath 030d37152a [BZ #471] Fix imported from gnulib.
* time/mktime.c (leapyear, ydms_tm_diff): Year is of type
	long int, not int, to avoid problems when tm_year == INT_MAX
	and tm_mon > 12.
	(__mktime_intenral): Compute year using long int arithmetic,
	not int arithmetic, to avoid problems on hosts where time_t
	and long are 64 bits but int is 32.
2004-10-22 22:24:08 +00:00
Roland McGrath 347a6c2dd8 [BZ #468] Import a fix from gnulib.
* time/mktime.c [! DEBUG]: Do not include <string.h>.
	It's needed only if DEBUG is nonzero.
2004-10-22 22:21:36 +00:00
Roland McGrath 743c00e3ce [BZ #470] Import fix from gnulib.
* time/mktime.c [!_LIBC] (__mktime_internal): Define to
	mktime_internal, to avoid clashes with any __mktime_internal
	function defined in the standard library.
2004-10-22 22:17:48 +00:00
Roland McGrath 7203529423 [BZ #469] Imported from gnulib.
* time/mktime.c (__isleap): Remove; all uses replaced by:
	(leapyear): New function, which avoids overflow by not adding
	1900 to year before testing whether it is a leap year.
2004-10-22 22:15:54 +00:00
Roland McGrath c60a75408e [BZ #472]
2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
	[BZ #472] Imported from gnulib.
	* time/mktime.c (Local Variables): Remove -DHAVE_TIME_R_POSIX;
	no longer used.
2004-10-22 22:11:00 +00:00
Ulrich Drepper dde3199641 Update.
* debug/execinfo.h: Remove __THROW from backtrace prototype.

2004-10-22  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/Makefile (CFLAGS-backtrace.c): Add -fexceptions.
	* sysdeps/i386/backtrace.c: Include <bits/libc-lock.h>, <dlfcn.h>,
	<stdlib.h> and <unwind.h>.  Remove <bp-checks.h> include.
	(struct trace_arg): New type.
	(unwind_backtrace, unwind_getip, unwind_getcfa, unwind_getgr): New
	fn pointers resp. macros.
	(init, backtrace_helper): New functions.
	(__backtrace): Rewritten to use _Unwind_Backtrace first and fall
	back to frame pointer walking.

2004-10-22  Ulrich Drepper  <drepper@redhat.com>
2004-10-22 21:08:43 +00:00
Ulrich Drepper 7d902c2298 Update.
2004-10-22  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/Versions: Things are still in flux, it
	seems.  Undo last additions.
2004-10-22 19:58:34 +00:00
Ulrich Drepper da9f699f31 Update.
2004-10-21  Ulrich Drepper  <drepper@redhat.com>

	* posix/execvp.c (execvp): Also ignore ENODEV and ETIMEDOUT errno
	values.
2004-10-22 06:27:54 +00:00
Roland McGrath 6d864d156d * Makeconfig ($(common-objpfx)shlib-versions.v.i): Check also
$(config-sysdirs) for shlib-versions files.

	* Makeconfig ($(common-objpfx)soversions.i): Replace shell loop with
	use of ...
	* scripts/soversions.awk: ... this new file.  Collect lib info and
	match any DEFAULT line before emitting anything, so DEFAULT can come
	later in the concatenation of shlib-versions files.
2004-10-21 01:29:31 +00:00
Roland McGrath cb57664d29 * manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED,
EKEYREVOKED, EKEYREJECTED.
	* sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.3.4): New errlist.
	* sysdeps/gnu/errlist.c: Regenerated

	* sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count
	higher than ERR_MAX reports.  Instead, emit a #define ERR_MAX.
	* sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target.
	(generated): Add errlist-compat.h.
	* sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to
	define ERR_MAX and use that for table size.
2004-10-20 10:05:07 +00:00
Ulrich Drepper 13772215fc Update.
2004-10-20  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/syscalls.list: Add entries for setaltroot,
	key_add, key_request, and keyctl syscalls.
	* sysdeps/unix/sysv/linux/Versions: Export them.
2004-10-20 07:09:15 +00:00
Roland McGrath dcad57a893 * sysdeps/mach/readonly-area.c: New file. 2004-10-20 06:43:19 +00:00
Roland McGrath 28767054da typo
* sysdeps/generic/ldsodefs.h (_dl_debug_state): Don't mark as
2004-10-20 06:20:16 +00:00
Ulrich Drepper 7e46ec8ccc Update.
2004-10-19  Ulrich Drepper  <drepper@redhat.com>

	* elf/Versions [ld, GLIBC_PRIVATE]: Add _dl_debug_state.
	* elf/dl-debug.c (_dl_debug_state): Add rtld_hidden_def.
	* sysdeps/generic/ldsodefs.h (_dl_debug_state): Don't maek as
	hidden but use rtld_hidden_proto.
2004-10-19 22:21:46 +00:00
Ulrich Drepper 1866ae9455 Update.
2004-10-19  Alfred M. Szmidt  <ams@gnu.org>

	* sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
	(__readonly_area): ... this.
2004-10-19 21:45:14 +00:00
Ulrich Drepper 708c687a6f Update.
2004-10-18  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking
	destlen only every 4 bytes.
2004-10-19 21:21:42 +00:00
Ulrich Drepper 653aeda549 Update.
2004-10-19  Ulrich Drepper  <drepper@redhat.com>

	* nss/getent.c (hosts_keys): Let inet_pton decide whether the
	string is an address or not.
2004-10-19 21:11:32 +00:00
Ulrich Drepper a019191bba Update.
* elf/dl-addr.c (_dl_addr): Don't look at STT_TLS symbols.
	Use DL_SYMBOL_ADDRESS to set dli_saddr.
2004-10-19 16:44:56 +00:00
Ulrich Drepper 0325dd20dd Update.
2004-10-19  Jakub Jelinek  <jakub@redhat.com>

	* debug/Makefile (catchsegv): Prefix $LIB with a backslash.
2004-10-19 16:05:21 +00:00
Ulrich Drepper 08c6477a9c Update.
2004-10-19  Ulrich Drepper  <drepper@redhat.com>

	* debug/Makefile ($(objpfx)catchsegv): To support multilib
	platforms, use $LIB in path to slibdir.

2004-10-19  Jakub Jelinek  <jakub@redhat.com>

	* debug/catchsegv.sh: Update copyright year.
	Use mktemp to create segv_output file.
2004-10-19 10:36:18 +00:00
Ulrich Drepper 5f21997b9d Update.
2004-10-18  Jakub Jelinek  <jakub@redhat.com>

	* elf/dl-libc.c (__libc_dlsym_private, __libc_register_dl_open_hook):
	New functions.
	(__libc_dlopen_mode): Call __libc_register_dl_open_hook and
	__libc_register_dlfcn_hook.
	* dlfcn/Makefile (routines, elide-routines.os): Set.
	Add rules to build and test tststatic2.
	* dlfcn/tststatic2.c: New test.
	* dlfcn/modstatic2.c: New test module.
	* dlfcn/dladdr.c: Call _dlfcn_hook from libdl.so if not NULL.
	Define __ prefixed routine in libc.a and in libdl.a just call it.
	* dlfcn/dladdr1.c: Likewise.
	* dlfcn/dlclose.c: Likewise.
	* dlfcn/dlerror.c: Likewise.
	* dlfcn/dlinfo.c: Likewise.
	* dlfcn/dlmopen.c: Likewise.
	* dlfcn/dlopen.c: Likewise.
	* dlfcn/dlopenold.c: Likewise.
	* dlfcn/dlsym.c: Likewise.
	* dlfcn/dlvsym.c: Likewise.
	* dlfcn/sdladdr.c: New file.
	* dlfcn/sdladdr1.c: New file.
	* dlfcn/sdlclose.c: New file.
	* dlfcn/sdlerror.c: New file.
	* dlfcn/sdlinfo.c: New file.
	* dlfcn/sdlopen.c: New file.
	* dlfcn/sdlsym.c: New file.
	* dlfcn/sdlvsym.c: New file.
	* dlfcn/Versions (libdl): Export _dlfcn_hook@GLIBC_PRIVATE.
	* include/dlfcn.h (DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define.
	(struct dlfcn_hook): New type.
	(_dlfcn_hook): New extern decl.
	(__dlopen, __dlclose, __dlsym, __dlerror, __dladdr, __dladdr1,
	__dlinfo, __dlmopen, __libc_dlsym_private,
	__libc_register_dl_open_hook, __libc_register_dlfcn_hook): New
	prototypes.
	(__dlvsym): Use DL_CALLER_DECL.
	* include/libc-symbols.h: Define libdl_hidden_proto and friends.

	* malloc/arena.c (_dl_open_hook): Extern decl.
	(ptmalloc_init): Don't call _dl_addr when dlopened from statically
	linked programs but don't use brk for them either.
2004-10-18 23:17:46 +00:00
Roland McGrath 761bbac5d8 * dlfcn/bug-dlsym1.c (main): Remove bogus setenv call. 2004-10-18 18:54:06 +00:00
Ulrich Drepper 55838f3efd Update.
2004-10-18  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-open.c (dl_open_worker): Avoid dereferencing map in
	statically linked code if there might none be found.
2004-10-18 15:44:52 +00:00
Andreas Jaeger 36106aabeb Update.
2004-10-06  Maciej W. Rozycki  <macro@mips.com>

	* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
	(__SYSCALL_CLOBBERS): Add "memory".
	* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
	(__SYSCALL_CLOBBERS): Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
	(__SYSCALL_CLOBBERS): Likewise.
2004-10-18 05:17:42 +00:00