Update.
2001-08-29 Ulrich Drepper <drepper@redhat.com> * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received first is from a previous call. Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670]. 2001-08-29 Andreas Schwab <schwab@suse.de> * sysdeps/ia64/fpu/libm-test-ulps: Updated. 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl> * config.make.in (INSTALL_SCRIPT): Define. * Makeconfig (INSTALL_SCRIPT): Define. * Makerules (do-install-script): New macro to install scripts using INSTALL_SCRIPT. (install-bin-script): New rule to install scripts with do-install-script. (install-bin-script-nosubdir): New rule. (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir. (distinfo-vars): Add $(install-bin-script). * Rules (others): Likewise. * Makefile (glibcbug): Install with install-bin-script. * debug/Makefile (xtrace): Likewise. (catchsegv): Likewise. * elf/Makefile (ldd): Likewise. * malloc/Makefile (mtrace): Likewise. * timezone/Makefile (tzselect): Likewise. 2001-08-29 H.J. Lu <hjl@gnu.org> * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to _dl_lookup_versioned_symbol () and _dl_lookup_symbol (). Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
This commit is contained in:
parent
07627f49f9
commit
6c3ebebd1e
37
ChangeLog
37
ChangeLog
@ -1,3 +1,38 @@
|
|||||||
|
2001-08-29 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
|
||||||
|
first is from a previous call.
|
||||||
|
Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
|
||||||
|
|
||||||
|
2001-08-29 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* sysdeps/ia64/fpu/libm-test-ulps: Updated.
|
||||||
|
|
||||||
|
2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
||||||
|
|
||||||
|
* config.make.in (INSTALL_SCRIPT): Define.
|
||||||
|
* Makeconfig (INSTALL_SCRIPT): Define.
|
||||||
|
* Makerules (do-install-script): New macro to install scripts using
|
||||||
|
INSTALL_SCRIPT.
|
||||||
|
(install-bin-script): New rule to install scripts with
|
||||||
|
do-install-script.
|
||||||
|
(install-bin-script-nosubdir): New rule.
|
||||||
|
(install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
|
||||||
|
(distinfo-vars): Add $(install-bin-script).
|
||||||
|
* Rules (others): Likewise.
|
||||||
|
* Makefile (glibcbug): Install with install-bin-script.
|
||||||
|
* debug/Makefile (xtrace): Likewise.
|
||||||
|
(catchsegv): Likewise.
|
||||||
|
* elf/Makefile (ldd): Likewise.
|
||||||
|
* malloc/Makefile (mtrace): Likewise.
|
||||||
|
* timezone/Makefile (tzselect): Likewise.
|
||||||
|
|
||||||
|
2001-08-29 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
|
||||||
|
ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
|
||||||
|
_dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
|
||||||
|
|
||||||
2001-08-29 Andreas Schwab <schwab@suse.de>
|
2001-08-29 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* sysdeps/m68k/fpu/libm-test-ulps: Updated.
|
* sysdeps/m68k/fpu/libm-test-ulps: Updated.
|
||||||
@ -5,7 +40,7 @@
|
|||||||
2001-08-28 H.J. Lu <hjl@gnu.org>
|
2001-08-28 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* Makeconfig (combreloc-LDFLAGS): New variable.
|
* Makeconfig (combreloc-LDFLAGS): New variable.
|
||||||
Add it to LDFALGS.so, LDFLAGS-rtld, and +link.
|
Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
|
||||||
* config.make.in (have-z-combreloc): New variable.
|
* config.make.in (have-z-combreloc): New variable.
|
||||||
* configure.in: Substitute libc_cv_z_combreloc.
|
* configure.in: Substitute libc_cv_z_combreloc.
|
||||||
|
|
||||||
|
4
Makefile
4
Makefile
@ -75,7 +75,7 @@ vpath %.h $(subdir-dirs)
|
|||||||
|
|
||||||
# What to install.
|
# What to install.
|
||||||
install-others = $(inst_includedir)/gnu/stubs.h
|
install-others = $(inst_includedir)/gnu/stubs.h
|
||||||
install-bin = glibcbug
|
install-bin-script = glibcbug
|
||||||
|
|
||||||
ifeq (yes,$(build-shared))
|
ifeq (yes,$(build-shared))
|
||||||
install-others += $(inst_includedir)/gnu/lib-names.h
|
install-others += $(inst_includedir)/gnu/lib-names.h
|
||||||
@ -84,7 +84,7 @@ endif
|
|||||||
include Makerules
|
include Makerules
|
||||||
|
|
||||||
ifeq ($(build-programs),yes)
|
ifeq ($(build-programs),yes)
|
||||||
others: $(addprefix $(objpfx),$(install-bin))
|
others: $(addprefix $(objpfx),$(install-bin-script))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Install from subdirectories too.
|
# Install from subdirectories too.
|
||||||
|
33
Makerules
33
Makerules
@ -720,10 +720,10 @@ force-install:
|
|||||||
# files in $(install-lib) matching `lib%.a' are ranlib'd after installation
|
# files in $(install-lib) matching `lib%.a' are ranlib'd after installation
|
||||||
# unless they also appear in $(non-lib.a). $(install-data) are installed
|
# unless they also appear in $(non-lib.a). $(install-data) are installed
|
||||||
# as they are into $(datadir). $(headers) are installed as they are in
|
# as they are into $(datadir). $(headers) are installed as they are in
|
||||||
# $(includedir). $(install-bin) and $(install-sbin) are installed from the
|
# $(includedir). $(install-bin), $(install-bin-script) and $(install-sbin)
|
||||||
# object directory into $(bindir) and $(sbindir), respectively.
|
# are installed from the object directory into $(bindir), $(bindir) and
|
||||||
# $(install-others) are absolute path names of files to install; rules to
|
# $(sbindir), respectively. $(install-others) are absolute path names of
|
||||||
# install them are defined elsewhere.
|
# files to install; rules to install them are defined elsewhere.
|
||||||
|
|
||||||
# The simple library name to install libc.a under.
|
# The simple library name to install libc.a under.
|
||||||
# This could be defined by a sysdep Makefile.
|
# This could be defined by a sysdep Makefile.
|
||||||
@ -762,6 +762,12 @@ $(INSTALL_PROGRAM) $< $@.new
|
|||||||
mv -f $@.new $@
|
mv -f $@.new $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define do-install-script
|
||||||
|
$(make-target-directory)
|
||||||
|
$(INSTALL_SCRIPT) $< $@.new
|
||||||
|
mv -f $@.new $@
|
||||||
|
endef
|
||||||
|
|
||||||
install-lib.so := $(filter %.so,$(install-lib:%_pic.a=%.so))
|
install-lib.so := $(filter %.so,$(install-lib:%_pic.a=%.so))
|
||||||
install-lib := $(filter-out %.so %_pic.a,$(install-lib))
|
install-lib := $(filter-out %.so %_pic.a,$(install-lib))
|
||||||
|
|
||||||
@ -929,6 +935,11 @@ $(addprefix $(inst_bindir)/,$(install-bin)): \
|
|||||||
$(inst_bindir)/%: $(objpfx)% $(+force)
|
$(inst_bindir)/%: $(objpfx)% $(+force)
|
||||||
$(do-install-program)
|
$(do-install-program)
|
||||||
endif
|
endif
|
||||||
|
ifdef install-bin-script
|
||||||
|
$(addprefix $(inst_bindir)/,$(install-bin-script)): \
|
||||||
|
$(inst_bindir)/%: $(objpfx)% $(+force)
|
||||||
|
$(do-install-script)
|
||||||
|
endif
|
||||||
ifdef install-rootsbin
|
ifdef install-rootsbin
|
||||||
$(addprefix $(inst_rootsbindir)/,$(install-rootsbin)): \
|
$(addprefix $(inst_rootsbindir)/,$(install-rootsbin)): \
|
||||||
$(inst_rootsbindir)/%: $(objpfx)% $(+force)
|
$(inst_rootsbindir)/%: $(objpfx)% $(+force)
|
||||||
@ -964,9 +975,11 @@ $(addprefix $(inst_includedir)/,$(headers)): $(inst_includedir)/%: % $(+force)
|
|||||||
$(do-install)
|
$(do-install)
|
||||||
endif # headers
|
endif # headers
|
||||||
|
|
||||||
.PHONY: install-bin-nosubdir install-rootsbin-nosubdir install-sbin-nosubdir \
|
.PHONY: install-bin-nosubdir install-bin-script-nosubdir \
|
||||||
install-lib-nosubdir install-data-nosubdir install-headers-nosubdir
|
install-rootsbin-nosubdir install-sbin-nosubdir install-lib-nosubdir \
|
||||||
|
install-data-nosubdir install-headers-nosubdir
|
||||||
install-bin-nosubdir: $(addprefix $(inst_bindir)/,$(install-bin))
|
install-bin-nosubdir: $(addprefix $(inst_bindir)/,$(install-bin))
|
||||||
|
install-bin-script-nosubdir: $(addprefix $(inst_bindir)/,$(install-bin-script))
|
||||||
install-rootsbin-nosubdir: \
|
install-rootsbin-nosubdir: \
|
||||||
$(addprefix $(inst_rootsbindir)/,$(install-rootsbin))
|
$(addprefix $(inst_rootsbindir)/,$(install-rootsbin))
|
||||||
install-sbin-nosubdir: $(addprefix $(inst_sbindir)/,$(install-sbin))
|
install-sbin-nosubdir: $(addprefix $(inst_sbindir)/,$(install-sbin))
|
||||||
@ -986,9 +999,9 @@ install-%:: install-%-nosubdir ;
|
|||||||
.PHONY: install install-no-libc.a-nosubdir
|
.PHONY: install install-no-libc.a-nosubdir
|
||||||
ifeq ($(build-programs),yes)
|
ifeq ($(build-programs),yes)
|
||||||
install-no-libc.a-nosubdir: install-headers-nosubdir install-data-nosubdir\
|
install-no-libc.a-nosubdir: install-headers-nosubdir install-data-nosubdir\
|
||||||
install-bin-nosubdir install-lib-nosubdir \
|
install-bin-nosubdir install-bin-script-nosubdir \
|
||||||
install-others-nosubdir install-rootsbin-nosubdir \
|
install-lib-nosubdir install-others-nosubdir \
|
||||||
install-sbin-nosubdir
|
install-rootsbin-nosubdir install-sbin-nosubdir
|
||||||
else
|
else
|
||||||
install-no-libc.a-nosubdir: install-headers-nosubdir install-data-nosubdir\
|
install-no-libc.a-nosubdir: install-headers-nosubdir install-data-nosubdir\
|
||||||
install-lib-nosubdir install-others-nosubdir
|
install-lib-nosubdir install-others-nosubdir
|
||||||
@ -1120,7 +1133,7 @@ $(foreach var,subdir-dirs sources elided-routines sysdep_routines \
|
|||||||
headers sysdep_headers distribute dont_distribute generated \
|
headers sysdep_headers distribute dont_distribute generated \
|
||||||
others tests test-srcs extra-libs $(extra-libs:%=%-routines) \
|
others tests test-srcs extra-libs $(extra-libs:%=%-routines) \
|
||||||
versioned \
|
versioned \
|
||||||
$(addprefix install-,lib lib.so data bin sbin others),
|
$(addprefix install-,lib lib.so data bin bin-script sbin others),
|
||||||
echo >> $@.new '$(subdir)-$(var) := $($(var))'
|
echo >> $@.new '$(subdir)-$(var) := $($(var))'
|
||||||
echo >> $@.new '$(var) = $$($(subdir)-$(var))')
|
echo >> $@.new '$(var) = $$($(subdir)-$(var))')
|
||||||
endef
|
endef
|
||||||
|
3
Rules
3
Rules
@ -41,7 +41,8 @@ all: objs lib others
|
|||||||
|
|
||||||
ifeq ($(build-programs),yes)
|
ifeq ($(build-programs),yes)
|
||||||
others: $(addprefix $(objpfx),$(extra-objs) \
|
others: $(addprefix $(objpfx),$(extra-objs) \
|
||||||
$(install-lib) $(install-bin) \
|
$(install-lib) \
|
||||||
|
$(install-bin) $(install-bin-script) \
|
||||||
$(install-rootsbin) $(install-sbin))
|
$(install-rootsbin) $(install-sbin))
|
||||||
else
|
else
|
||||||
others: $(addprefix $(objpfx),$(extra-objs) \
|
others: $(addprefix $(objpfx),$(extra-objs) \
|
||||||
|
@ -40,14 +40,15 @@ libpcprofile-routines = pcprofile
|
|||||||
libpcprofile-inhibit-o = $(filter-out .os,$(object-suffixes))
|
libpcprofile-inhibit-o = $(filter-out .os,$(object-suffixes))
|
||||||
|
|
||||||
others = pcprofiledump
|
others = pcprofiledump
|
||||||
install-bin = pcprofiledump xtrace
|
install-bin = pcprofiledump
|
||||||
|
install-bin-script = xtrace
|
||||||
|
|
||||||
include ../Makeconfig
|
include ../Makeconfig
|
||||||
|
|
||||||
distribute += catchsegv.sh xtrace.sh
|
distribute += catchsegv.sh xtrace.sh
|
||||||
ifeq ($(elf),yes)
|
ifeq ($(elf),yes)
|
||||||
ifeq ($(build-shared),yes)
|
ifeq ($(build-shared),yes)
|
||||||
install-bin += catchsegv
|
install-bin-script += catchsegv
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
generated = catchsegv xtrace
|
generated = catchsegv xtrace
|
||||||
|
@ -76,11 +76,11 @@ ifeq (yes,$(build-shared))
|
|||||||
extra-objs = $(all-rtld-routines:%=%.os) soinit.os sofini.os interp.os
|
extra-objs = $(all-rtld-routines:%=%.os) soinit.os sofini.os interp.os
|
||||||
generated += librtld.os dl-allobjs.os ld.so ldd
|
generated += librtld.os dl-allobjs.os ld.so ldd
|
||||||
install-others = $(inst_slibdir)/$(rtld-installed-name)
|
install-others = $(inst_slibdir)/$(rtld-installed-name)
|
||||||
install-bin = ldd
|
install-bin-script = ldd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
others = sprof sln
|
others = sprof sln
|
||||||
install-bin += sprof
|
install-bin = sprof
|
||||||
others-static = sln
|
others-static = sln
|
||||||
install-rootsbin = sln
|
install-rootsbin = sln
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ include ../Makeconfig
|
|||||||
|
|
||||||
# The Perl script to analyze the output of the mtrace functions.
|
# The Perl script to analyze the output of the mtrace functions.
|
||||||
ifneq ($(PERL),no)
|
ifneq ($(PERL),no)
|
||||||
install-bin = mtrace
|
install-bin-script = mtrace
|
||||||
generated = mtrace
|
generated = mtrace
|
||||||
|
|
||||||
# The Perl script will print addresses and to do this nicely we must know
|
# The Perl script will print addresses and to do this nicely we must know
|
||||||
@ -75,7 +75,7 @@ endif
|
|||||||
ifneq ($(cross-compiling),yes)
|
ifneq ($(cross-compiling),yes)
|
||||||
# If the gd library is available we build the `memusagestat' program.
|
# If the gd library is available we build the `memusagestat' program.
|
||||||
ifneq ($(LIBGD),no)
|
ifneq ($(LIBGD),no)
|
||||||
install-bin += memusagestat memusage
|
install-bin = memusagestat memusage
|
||||||
generated += memusagestat memusage
|
generated += memusagestat memusage
|
||||||
extra-objs += memusagestat.o
|
extra-objs += memusagestat.o
|
||||||
endif
|
endif
|
||||||
|
@ -135,12 +135,10 @@ __nis_findfastest (dir_binding *bind)
|
|||||||
struct findserv_req *pings;
|
struct findserv_req *pings;
|
||||||
struct sockaddr_in sin, saved_sin;
|
struct sockaddr_in sin, saved_sin;
|
||||||
int found = -1;
|
int found = -1;
|
||||||
u_int32_t xid_seed, xid_lookup;
|
u_int32_t xid_seed;
|
||||||
int sock, dontblock = 1;
|
int sock, dontblock = 1;
|
||||||
CLIENT *clnt;
|
CLIENT *clnt;
|
||||||
char clnt_res;
|
u_long i, j, pings_count, pings_max, fastest = -1;
|
||||||
void *foo = NULL;
|
|
||||||
u_long i, j, pings_count, pings_max;
|
|
||||||
struct cu_data *cu;
|
struct cu_data *cu;
|
||||||
|
|
||||||
pings_max = bind->server_len * 2; /* Reserve a little bit more memory
|
pings_max = bind->server_len * 2; /* Reserve a little bit more memory
|
||||||
@ -188,10 +186,9 @@ __nis_findfastest (dir_binding *bind)
|
|||||||
memcpy ((char *) &pings[pings_count].sin, (char *) &sin,
|
memcpy ((char *) &pings[pings_count].sin, (char *) &sin,
|
||||||
sizeof (sin));
|
sizeof (sin));
|
||||||
memcpy ((char *)&saved_sin, (char *)&sin, sizeof(sin));
|
memcpy ((char *)&saved_sin, (char *)&sin, sizeof(sin));
|
||||||
pings[pings_count].xid = xid_seed;
|
pings[pings_count].xid = xid_seed + pings_count;
|
||||||
pings[pings_count].server_nr = i;
|
pings[pings_count].server_nr = i;
|
||||||
pings[pings_count].server_ep = j;
|
pings[pings_count].server_ep = j;
|
||||||
++xid_seed;
|
|
||||||
++pings_count;
|
++pings_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,26 +222,30 @@ __nis_findfastest (dir_binding *bind)
|
|||||||
memcpy ((char *) &cu->cu_raddr, (char *) &pings[i].sin,
|
memcpy ((char *) &cu->cu_raddr, (char *) &pings[i].sin,
|
||||||
sizeof (struct sockaddr_in));
|
sizeof (struct sockaddr_in));
|
||||||
/* Transmit to NULLPROC, return immediately. */
|
/* Transmit to NULLPROC, return immediately. */
|
||||||
clnt_call (clnt, NULLPROC, (xdrproc_t) xdr_void, (caddr_t) foo,
|
clnt_call (clnt, NULLPROC,
|
||||||
(xdrproc_t) xdr_void, (caddr_t) & clnt_res, TIMEOUT00);
|
(xdrproc_t) xdr_void, (caddr_t) 0,
|
||||||
|
(xdrproc_t) xdr_void, (caddr_t) 0, TIMEOUT00);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Receive reply from NULLPROC asynchronously */
|
/* Receive reply from NULLPROC asynchronously */
|
||||||
memset ((char *) &clnt_res, 0, sizeof (clnt_res));
|
while (RPC_SUCCESS == clnt_call (clnt, NULLPROC,
|
||||||
clnt_call (clnt, NULLPROC, (xdrproc_t) NULL, (caddr_t) foo,
|
(xdrproc_t) NULL, (caddr_t) 0,
|
||||||
(xdrproc_t) xdr_void, (caddr_t) &clnt_res, TIMEOUT00);
|
(xdrproc_t) xdr_void, (caddr_t) 0,
|
||||||
|
TIMEOUT00))
|
||||||
xid_lookup = *((u_int32_t *) (cu->cu_inbuf));
|
|
||||||
for (i = 0; i < pings_count; i++)
|
|
||||||
{
|
{
|
||||||
if (pings[i].xid == xid_lookup)
|
fastest = *((u_int32_t *) (cu->cu_inbuf)) - xid_seed;
|
||||||
{
|
if (fastest < pings_count) {
|
||||||
bind->server_used = pings[i].server_nr;
|
break;
|
||||||
bind->current_ep = pings[i].server_ep;
|
}
|
||||||
found = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fastest < pings_count)
|
||||||
|
{
|
||||||
|
bind->server_used = pings[fastest].server_nr;
|
||||||
|
bind->current_ep = pings[fastest].server_ep;
|
||||||
|
found = 1;
|
||||||
|
}
|
||||||
|
|
||||||
auth_destroy (clnt->cl_auth);
|
auth_destroy (clnt->cl_auth);
|
||||||
clnt_destroy (clnt);
|
clnt_destroy (clnt);
|
||||||
close (sock);
|
close (sock);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -77,7 +77,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(have-ksh),yes)
|
ifeq ($(have-ksh),yes)
|
||||||
install-others += $(inst_zonedir)/iso3166.tab $(inst_zonedir)/zone.tab
|
install-others += $(inst_zonedir)/iso3166.tab $(inst_zonedir)/zone.tab
|
||||||
install-bin += tzselect
|
install-bin-script = tzselect
|
||||||
generated += tzselect
|
generated += tzselect
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user