aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog102
-rw-r--r--Make-dist5
-rw-r--r--Makefile2
-rw-r--r--libio/ioflockfile.c43
-rw-r--r--locale/Makefile2
-rw-r--r--nss/Makefile3
-rw-r--r--nss/nss_dns/dns-host.c11
-rw-r--r--nss/nss_files/files-netgrp.c5
-rw-r--r--resolv/Banner2
-rw-r--r--resolv/arpa/nameser.h7
-rw-r--r--resolv/gethnamaddr.c11
-rw-r--r--resolv/res_comp.c8
-rw-r--r--resolv/res_debug.c30
-rw-r--r--resolv/res_init.c2
-rw-r--r--resolv/res_send.c52
-rw-r--r--resolv/resolv.h6
-rw-r--r--stdio-common/Makefile2
-rw-r--r--stdio-common/tst-printf.c4
-rw-r--r--sunrpc/Makefile2
-rw-r--r--sunrpc/rpcsvc/yp.x291
-rw-r--r--sunrpc/svc_udp.c4
-rw-r--r--sysdeps/alpha/Dist2
-rw-r--r--sysdeps/alpha/strchr.c84
-rw-r--r--sysdeps/alpha/stxcpy.S33
-rw-r--r--sysdeps/libm-ieee754/w_cabs.c10
-rw-r--r--sysdeps/libm-ieee754/w_log10.c2
-rw-r--r--sysdeps/stub/e_log10l.c11
-rw-r--r--sysdeps/stub/e_logl.c11
-rw-r--r--sysdeps/stub/e_sqrtl.c11
-rw-r--r--sysdeps/stub/s_atanl.c12
-rw-r--r--sysdeps/stub/s_log1pl.c12
-rw-r--r--sysdeps/unix/sysv/linux/Dist8
-rw-r--r--sysdeps/unix/sysv/linux/Makefile3
-rw-r--r--sysdeps/unix/sysv/linux/alpha/brk.S1
-rw-r--r--sysdeps/unix/sysv/linux/sigcontext.h (renamed from sysdeps/unix/sysv/linux/i386/sigcontext.h)0
-rw-r--r--sysdeps/unix/sysv/linux/sys/procfs.h1
-rw-r--r--version.h2
37 files changed, 295 insertions, 502 deletions
diff --git a/ChangeLog b/ChangeLog
index fdd2883c38..eed04ff607 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,103 @@
+Fri Oct 11 19:13:34 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * locale/Makefile (CPPFLAGS): Set CHARMAP_PATH to
+ "$(i18ndir)/charmaps".
+
+Fri Oct 11 22:12:41 1996 NIIBE Yutaka <gniibe@mri.co.jp>
+
+ * sysdeps/unix/sysv/linux/sys/procfs.h: Include <asm/user.h>
+ to get definition of FPU description struct.
+
+ * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (subdir_headers):
+ Add net/if.h, net/if_ppp.h, net/ppp-comp.h, net/ppp_defs.h,
+ net/if_arp.h, and net/route.h.
+ * sysdeps/unix/sysv/linux/net/if_arp.h: New file.
+ * sysdeps/unix/sysv/linux/net/route.h: New file.
+
+Fri Oct 11 14:49:13 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/stub/readdir_r.c: New file. We need a stub version.
+ * sysdeps/stub/e_acosl.c: Likewise.
+ * sysdeps/stub/e_asinl.c: Likewise.
+ * sysdeps/stub/e_atan2l.c: Likewise.
+ * sysdeps/stub/e_expl.c: Likewise.
+ * sysdeps/stub/e_fmodl.c: Likewise.
+ * sysdeps/stub/e_log10l.c: Likewise.
+ * sysdeps/stub/e_logl.c: Likewise.
+ * sysdeps/stub/e_sqrtl.c: Likewise.
+ * sysdeps/stub/s_atanl.c: Likewise.
+ * sysdeps/stub/s_log1pl.c: Likewise.
+
+ * Makefile (distribute): Add nsswitch.h and netgroup.h.
+
+ * nss/Makefile (generated): db-netgrp.c is not generated.
+
+ * sysdeps/alpha/Dist: Add stxcpy.S and stxncpy.S.
+
+ * Make-dist (+out): Add $(dont_distribute).
+
+Fri Oct 11 00:27:18 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * stdio-common/Makefile (routines): Add tmpnam_r.
+
+Fri Oct 11 05:32:51 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * version.h: Bump version to 1.96.
+
+Fri Oct 11 18:13:47 1996 Andreas Jaeger <aj@arthur.pfalz.de>
+
+ * stdio-common/tst-printf.c: Some more cleanups.
+
+Fri Oct 11 02:48:02 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * resolv/arpa/nameser.h: Update from bind-4.9.5-T6B.
+ * resolv/resolv.h: Likewise.
+ * resolv/gethnamaddr.c: Likewise.
+ * resolv/res_comp.c: Likewise.
+ * resolv/res_debug.c: Likewise.
+ * resolv/res_init.c: Likewise.
+ * resolv/res_send.c: Likewise.
+ * resolv/Banner: Update version number.
+
+ * nss/nss_dns/dns-host.c: Update according to change in
+ resolv/gethnamaddr.c.
+
+Fri Oct 10 20:52:28 1996 Ralph Loader <loader@maths.ox.ac.uk>
+
+ * crypt/md5.c (md5_stream): When reading the block in several
+ pieces append to instead of replace previously read data.
+
+Thu Oct 10 15:53:17 1996 Richard Henderson <rth@tamu.edu>
+
+ * sysdeps/alpha/stxcpy.S ($unaligned): In single word copy, correct
+ last-byte-written bit for source word misalignment.
+ * sysdeps/alpha/strchr.c: Removed. There is now an assembler
+ version.
+
+Thu Oct 10 17:17:23 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * sunrpc/Makefile (rpcsvc): Remove yp.x. The corrected version
+ comes with glibc-nis.
+ * sunrpc/rpcsvc/yp.x: Removed.
+
+ * nss/nss_files/files-netgr.c (_nss_netgroup_parseline): Test
+ for *CURSOR to be NULL and dump a core if yes.
+
+Thu Oct 9 20:09:53 1996 Matthew Jacob <mjacob@feral.com>
+
+ * sysdeps/unix/sysv/linux/alpha/brk.S: Define _ERRNO_H before
+ including <errnos.h> to get error numbers.
+
+Thu Oct 10 14:00:01 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/unix/sysv/linux/i386/sigcontext.h: Moved file...
+ * sysdeps/unix/sysv/linux/sigcontext.h: ...to here. So the
+ Alpha people find a correct file.
+ * sysdeps/libm-ieee754/w_cabs.c: We cannot make __cabsl simply
+ an alias of __cabs since the structures have different names.
+ * sysdeps/libm-ieee754/w_log10.c: Fix typo in weak_alias.
+ Reported by Matthew Jacob <mjacob@feral.com>.
+
Wed Oct 9 00:24:52 1996 Jim Meyering <meyering@asic.sc.ti.com>
* time/strftime.c: Allow old K&R compilers compile this file.
@@ -11,7 +111,7 @@ Wed Oct 9 12:03:56 1996 Ulrich Drepper <drepper@cygnus.com>
Wed Oct 9 04:34:50 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/sys/procfs.h: Rewrite. We cannot use
- simply a wrapper around the <linux.elfcore.h> file since the
+ simply a wrapper around the <linux/elfcore.h> file since the
kernel header is not clean enough. We provide the definitions
in this file instead.
diff --git a/Make-dist b/Make-dist
index e6921b8533..cc8fdacf6e 100644
--- a/Make-dist
+++ b/Make-dist
@@ -29,6 +29,7 @@ endif
include $(..)Makeconfig
foo:=$(shell echo 'distribute=$(distribute)'>&2)
+foo:=$(shell echo 'dont_distribute=$(dont_distribute)'>&2)
foo:=$(shell echo 'foobar=$(filter %.c %.S %.s %.h,$(distribute))'>&2)
ifndef sysdep_dirs
@@ -111,8 +112,8 @@ sources := $(filter-out $(addsuffix .c,$(basename $(.S.s))),$(sources)) $(.S.s)
+out := $(patsubst %.S,%.c,$(+sysdep-names:.s=.c)) \
$(addsuffix .c,$(sysdep_routines)) \
- $(+subdir-nodist)
-#foo:=$(shell echo '+out=$(+out)' >&2; echo foofoo >&2)
+ $(+subdir-nodist) $(dont_distribute)
+foo:=$(shell echo '+out=$(+out)' >&2; echo foofoo >&2)
+tsrcs := $(filter-out $(+out), $(sources) $(all-headers) $(distribute)) \
$(+sysdeps)
foo:=$(shell echo 'made +tsrcs=$(+tsrcs)'>&2)
diff --git a/Makefile b/Makefile
index 8556b61761..9220372f52 100644
--- a/Makefile
+++ b/Makefile
@@ -242,7 +242,7 @@ distribute := README INSTALL FAQ NOTES NEWS PROJECTS \
config.h.in config.make.in config-name.in Makefile.in \
autolock.sh munch-tmpl.c munch.awk interp.c \
sysdep.h set-hooks.h libc-symbols.h version.h shlib-versions \
- rpm/Makefile rpm/template rpm/rpmrc
+ rpm/Makefile rpm/template rpm/rpmrc nsswitch.h netgroup.h
distribute := $(strip $(distribute))
generated := $(generated) stubs.h version-info.h
diff --git a/libio/ioflockfile.c b/libio/ioflockfile.c
deleted file mode 100644
index a68f4b662d..0000000000
--- a/libio/ioflockfile.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
-Copyright (C) 1996 Free Software Foundation
-
-This file is part of the GNU IO Library. This library is free
-software; you can redistribute it and/or modify it under the
-terms of the GNU General Public License as published by the
-Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this library; see the file COPYING. If not, write to the Free
-Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-As a special exception, if you link this library with files
-compiled with a GNU compiler to produce an executable, this does not cause
-the resulting executable to be covered by the GNU General Public License.
-This exception does not however invalidate any other reasons why
-the executable file might be covered by the GNU General Public License. */
-
-#include "libioP.h"
-#include <libc-lock.h>
-
-void
-_IO_flockfile (s)
- _IO_FILE *s;
-{
- __libc_lock_lock (s->_lock);
-}
-weak_alias (_IO_flockfile, flockfile)
-
-
-void
-_IO_funlockfile (s)
- _IO_FILE *s;
-{
- __libc_lock_unlock (s->_lock);
-}
-weak_alias (_IO_funlockfile, funlockfile)
diff --git a/locale/Makefile b/locale/Makefile
index c212b2e71c..cedcd7043c 100644
--- a/locale/Makefile
+++ b/locale/Makefile
@@ -65,7 +65,7 @@ $(objpfx)locale: $(locale-modules:%=$(objpfx)%.o)
$(objpfx)localedef $(objpfx)locale: $(lib-modules:%=$(objpfx)%.o)
CPPFLAGS := -DLOCALE_PATH='"$(localedir)"' \
- -DCHARMAP_PATH='"$(i18ndir)/charmap"' \
+ -DCHARMAP_PATH='"$(i18ndir)/charmaps"' \
-DLOCSRCDIR='"$(i18ndir)/locales"' -DHAVE_CONFIG_H \
-Iprograms $(CPPFLAGS)
diff --git a/nss/Makefile b/nss/Makefile
index 319bad5b29..a921bb7fdf 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -55,7 +55,8 @@ libnss_dns-routines := dns-host dns-network
libnss_db-routines := $(addprefix db-,$(filter-out hosts network,\
$(databases)))
-generated += $(addsuffix .c,$(libnss_db-routines))
+generated += $(filter-out db-netgrp.c, \
+ $(addsuffix .c,$(libnss_db-routines)))
distribute += db-XXX.c
libnss_files-inhibit-o = $(filter-out .so,$(object-suffixes))
diff --git a/nss/nss_dns/dns-host.c b/nss/nss_dns/dns-host.c
index f8d5d37e72..120923069c 100644
--- a/nss/nss_dns/dns-host.c
+++ b/nss/nss_dns/dns-host.c
@@ -589,15 +589,12 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
cp += n;
continue; /* XXX - had_error++ ? */
}
- if (haveanswer)
+ if (n != result->h_length)
{
- if (n != result->h_length)
- {
- cp += n;
- continue;
- }
+ cp += n;
+ continue;
}
- else
+ if (!haveanswer)
{
register int nn;
diff --git a/nss/nss_files/files-netgrp.c b/nss/nss_files/files-netgrp.c
index c653825c78..427c6bfe8d 100644
--- a/nss/nss_files/files-netgrp.c
+++ b/nss/nss_files/files-netgrp.c
@@ -188,6 +188,11 @@ _nss_netgroup_parseline (char **cursor, struct __netgrent *result,
const char *host, *user, *domain;
char *cp = *cursor;
+ /* Some sanity checks. */
+ if (cp == NULL)
+ /* User bug. setnetgrent() wasn't called before. */
+ abort ();
+
/* First skip leading spaces. */
while (isspace (*cp))
++cp;
diff --git a/resolv/Banner b/resolv/Banner
index e08f0b4cd3..5d0dc48e95 100644
--- a/resolv/Banner
+++ b/resolv/Banner
@@ -1 +1 @@
-BIND-4.9.5-T4B
+BIND-4.9.5-T6B
diff --git a/resolv/arpa/nameser.h b/resolv/arpa/nameser.h
index 2352af684c..66b3530d91 100644
--- a/resolv/arpa/nameser.h
+++ b/resolv/arpa/nameser.h
@@ -92,10 +92,8 @@
#include <sys/cdefs.h>
#ifdef _AUX_SOURCE
-#include <sys/types.h> /* ech for A/UX */
-#define res_send ucb_res_send /* already def'd in libc */
-#define _res_close _ucb_res_close /* removing res_send.o from the library */
-#endif /* gives an undefined symbol... */
+# include <sys/types.h>
+#endif
/*
* revision information. this is the release date in YYYYMMDD format.
@@ -182,6 +180,7 @@
#define T_NIMLOC 32 /* Nimrod locator */
#define T_SRV 33 /* Server selection */
#define T_ATMA 34 /* ATM Address */
+#define T_NAPTR 35 /* Naming Authority PoinTeR */
/* non standard */
#define T_UINFO 100 /* user (finger) information */
#define T_UID 101 /* user ID */
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c
index 1cae1f7295..7c3096c967 100644
--- a/resolv/gethnamaddr.c
+++ b/resolv/gethnamaddr.c
@@ -341,12 +341,11 @@ getanswer(answer, anslen, qname, qtype)
cp += n;
continue; /* XXX - had_error++ ? */
}
- if (haveanswer) {
- if (n != host.h_length) {
- cp += n;
- continue;
- }
- } else {
+ if (n != host.h_length) {
+ cp += n;
+ continue;
+ }
+ if (!haveanswer) {
register int nn;
host.h_name = bp;
diff --git a/resolv/res_comp.c b/resolv/res_comp.c
index 76f7cea5c5..d96fe6e432 100644
--- a/resolv/res_comp.c
+++ b/resolv/res_comp.c
@@ -394,8 +394,12 @@ int
res_ownok(dn)
const char *dn;
{
- if (asterchar(dn[0]) && periodchar(dn[1]))
- dn += 2;
+ if (asterchar(dn[0])) {
+ if (periodchar(dn[1]))
+ return (res_hnok(dn+2));
+ if (dn[1] == '\0')
+ return (1);
+ }
return (res_hnok(dn));
}
diff --git a/resolv/res_debug.c b/resolv/res_debug.c
index cc6f84fea1..49eef72cd2 100644
--- a/resolv/res_debug.c
+++ b/resolv/res_debug.c
@@ -671,7 +671,7 @@ __p_rr(cp, msg, file)
fprintf(file, "\t%s", inet_ntop(AF_INET6, cp, t, sizeof t));
cp += dlen;
break;
- }
+ }
case T_LOC: {
char t[255];
@@ -679,7 +679,30 @@ __p_rr(cp, msg, file)
(void) fprintf(file, "\t%s", loc_ntoa(cp, t));
cp += dlen;
break;
- }
+ }
+
+ case T_NAPTR: {
+ u_int order, preference;
+
+ order = _getshort(cp); cp += INT16SZ;
+ preference = _getshort(cp); cp += INT16SZ;
+ fprintf(file, "\t%u %u ",order, preference);
+ /* Flags */
+ n = *cp++;
+ fprintf(file,"\"%.*s\" ", (int)n, cp);
+ cp += n;
+ /* Service */
+ n = *cp++;
+ fprintf(file,"\"%.*s\" ", (int)n, cp);
+ cp += n;
+ /* Regexp */
+ n = *cp++;
+ fprintf(file,"\"%.*s\" ", (int)n, cp);
+ cp += n;
+ if ((cp = p_fqname(cp, msg, file)) == NULL)
+ return (NULL);
+ break;
+ }
case T_SRV: {
u_int priority, weight, port;
@@ -691,7 +714,7 @@ __p_rr(cp, msg, file)
if ((cp = p_fqname(cp, msg, file)) == NULL)
return (NULL);
break;
- }
+ }
case T_MINFO:
case T_RP:
@@ -908,6 +931,7 @@ const struct res_sym __p_type_syms[] = {
{T_UINFO, "UINFO", "user information (nonstandard)"},
{T_UID, "UID", "user ID (nonstandard)"},
{T_GID, "GID", "group ID (nonstandard)"},
+ {T_NAPTR, "NAPTR", "URN Naming Authority"},
#ifdef ALLOW_T_UNSPEC
{T_UNSPEC, "UNSPEC", "unspecified data (nonstandard)"},
#endif /* ALLOW_T_UNSPEC */
diff --git a/resolv/res_init.c b/resolv/res_init.c
index c8a74f6e05..459948660d 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -645,7 +645,7 @@ netinfo_res_init(haveenv, havesearch)
}
#endif /* NeXT */
-u_int16_t
+u_int
res_randomid()
{
struct timeval now;
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 3efc6cf96f..a5b4fba44b 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -94,8 +94,6 @@ static char rcsid[] = "$Id$";
# include <../conf/options.h>
#endif
-void _res_close __P((void));
-
static int s = -1; /* socket used for communications */
static int connected = 0; /* is the socket connected */
static int vc = 0; /* is the socket a virtual ciruit? */
@@ -320,7 +318,7 @@ res_send(buf, buflen, ans, anssiz)
struct sockaddr_in *nsap = &_res.nsaddr_list[ns];
same_ns:
if (badns & (1 << ns)) {
- _res_close();
+ res_close();
goto next_ns;
}
@@ -337,7 +335,7 @@ res_send(buf, buflen, ans, anssiz)
done = 1;
break;
case res_nextns:
- _res_close();
+ res_close();
goto next_ns;
case res_done:
return (resplen);
@@ -372,7 +370,7 @@ res_send(buf, buflen, ans, anssiz)
truncated = 0;
if ((s < 0) || (!vc)) {
if (s >= 0)
- _res_close();
+ res_close();
s = socket(PF_INET, SOCK_STREAM, 0);
if (s < 0) {
@@ -387,7 +385,7 @@ res_send(buf, buflen, ans, anssiz)
Aerror(stderr, "connect/v