aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog111
-rw-r--r--Makefile3
-rw-r--r--Makerules2
-rw-r--r--PROJECTS4
-rw-r--r--aliases.h1
-rw-r--r--config.make.in1
-rwxr-xr-xconfigure150
-rw-r--r--configure.in10
-rw-r--r--inet/Makefile12
-rw-r--r--inet/aliases.h61
-rw-r--r--inet/getaliasent.c26
-rw-r--r--inet/getaliasent_r.c29
-rw-r--r--inet/getaliasname.c30
-rw-r--r--inet/getaliasname_r.c29
-rw-r--r--inet/getnetgrent_r.c4
-rw-r--r--locale/programs/ld-collate.c2
-rw-r--r--manual/arith.texi8
-rw-r--r--manual/creature.texi7
-rw-r--r--manual/users.texi28
-rw-r--r--nss/Makefile8
-rw-r--r--nss/alias-lookup.c22
-rw-r--r--nss/databases.def32
-rw-r--r--nss/getXXbyYY.c72
-rw-r--r--nss/getXXbyYY_r.c2
-rw-r--r--nss/getXXent.c71
-rw-r--r--nss/getXXent_r.c2
-rw-r--r--nss/nss_db/db-XXX.c32
-rw-r--r--nss/nss_db/db-alias.c235
-rw-r--r--nss/nss_files/files-XXX.c120
-rw-r--r--nss/nss_files/files-alias.c424
-rw-r--r--nss/nss_files/files-parse.c42
-rw-r--r--posix/unistd.h2
-rw-r--r--resolv/Banner2
-rw-r--r--resolv/inet_net_pton.c18
-rw-r--r--resolv/res_debug.c2
-rw-r--r--sysdeps/generic/sigset.h6
-rw-r--r--sysdeps/posix/Makefile2
-rw-r--r--sysdeps/stub/lockfile.c2
-rw-r--r--sysdeps/unix/Makefile3
-rw-r--r--sysdeps/unix/sysv/linux/m68k/syscall.S5
-rw-r--r--sysdeps/unix/sysv/linux/m68k/sysdep.h5
-rw-r--r--time/strftime.c28
42 files changed, 1397 insertions, 258 deletions
diff --git a/ChangeLog b/ChangeLog
index 03ce8f6a4e..224069f631 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,110 @@
+Thu Nov 14 02:00:33 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * inet/Makefile (headers): Add aliases.h.
+ (routines): Add getaliasent_r, getaliasent, getaliasname, and
+ getaliasname_r.
+ * aliases.h: New file.
+ * inet/aliases.h: New file.
+ * inet/getaliasent.c: New file.
+ * inet/getaliasent_r.c: New file.
+ * inet/getaliasname.c: New file.
+ * inet/getaliasname_r.c: New file.
+ * nss/Makefile (databases): Add alias.
+ * nss/alias-lookup.c: New file.
+ * nss/databases.def: Add aliases and publickey.
+ * nss/nss_db/db-alias.c: New file.
+ * nss/nss_files/files-alias.c: New file.
+
+ * inet/getnetgrent_r.c (__internal_getnetgrent): Buffer length
+ argument to lookup function is of type size_t.
+ (innetgr): Likewise.
+ * nss/getXXbyYY_r.c: Likewise.
+ * nss/getXXent_r.c: Likewise.
+ * nss/nss_db/db-XXX.c: Likewise.
+
+ * nss/getXXbyYY.c: Don't provide static buffer. Resize if call
+ failed because buffer was too small.
+ * nss/getXXent.c: Likewise.
+
+ * nss/nss_files/files-XXX.c: Correct handling of shared file. The
+ getXXent_r function now uses f[gs]etpos to get to the correct
+ position.
+
+ * nss/nss_files/files-parse.c: Indent lines for better readability.
+
+ * malloc/obstack.c: Add new variable obstack_alloc_failed_handler
+ and new function print_and_abort. Remove all references to
+ alloc_failed field.
+ Add new function _obstack_memory_used.
+ * malloc/obstack.h (struct obstack): Remove field alloc_field.
+ Remove all references to alloc_failed field.
+ Add prototype for _obstack_memory_used.
+
+ * posix/unistd.h: Correct typo.
+
+Wed Nov 13 03:09:16 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * configure.in: Require at least autoconf-2.10.2.
+
+Tue Nov 12 03:35:01 1996 Christian von Roques <roques@pond.sub.org>
+
+ * malloc/obstack.h: Add new macro `obstack_make_room'.
+ * malloc/obstack.c: Add function implementation for
+ `obstack_make_room'.
+
+Mon Nov 11 13:54:04 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ Update to BIND-4.9.5-REL.
+ * resolv/Banner: Set to 4.9.5-REL.
+ * resolv/inet_net_pton.c: Was doing bad things to subnets and b'casts.
+ * resolv/res_debug.c (__fp_nquery): Could read past end of buffer.
+ (fix from BIND 8.1)
+
+ * config.make.in: Add definition for top_absdir.
+ * Makerules (make-link): Fix path to rellns-sh script.
+
+Sat Nov 9 02:15:24 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * posix/unistd.h: Fix comment.
+
+ * manual/arith.texi: Fix misspellings. Use `zero', not `null',
+ when talking about numbers.
+ * manual/users.texi: Likewise.
+ * manual/creature.texi: Likewise. Use @defvarx for a secondary
+ description header.
+
+Sat Nov 9 19:25:11 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * sysdeps/posix/Makefile ($(common-objpfx)mk-stdiolim): Depend on
+ the real posix1_lim.h file so that it works in all subdirs, not
+ only in posix.
+
+Sat Nov 9 02:08:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * Makefile ($(includedir)/gnu/lib-names.h): Quote arguments of tr.
+
+Sat Nov 9 02:06:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Don't depend
+ on $(before-compile) which hasn't been properly setup yet at this
+ point.
+
+Sat Nov 9 02:02:48 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * sysdeps/generic/sigset.h: Don't use implicit int which will
+ probably require a diagnostic in the next revision of the C
+ standard.
+ * sysdeps/stub/lockfile.c: Likewise.
+
+Sat Nov 9 01:57:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * sysdeps/unix/sysv/linux/m68k/syscall.S: Correct last change.
+ * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
+
+Mon Nov 11 02:53:14 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * time/strftime.c: Update copyright. Small cosmetic changes.
+
Sun Nov 10 23:28:16 1996 Ulrich Drepper <drepper@cygnus.com>
* inet/getprtname_r.c: Reformat copyright.
@@ -396,9 +503,9 @@ Sun Nov 3 17:29:06 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/stub/mktemp.c: Likewise.
* sysvipc/sys/ipc.h: Prototypes of ftok have to be of types `const
- char *' and `int'.
+ char *' and `int'.
* sysvipc/ftok.c: Likewise. Make sure only lower 8 bits of
- PROJ_ID are used.
+ PROJ_ID are used.
Sun Nov 3 03:21:28 1996 Heiko Schroeder <Heiko.Schroeder@post.rwth-aachen.de>
diff --git a/Makefile b/Makefile
index ac32185440..4b9dac757f 100644
--- a/Makefile
+++ b/Makefile
@@ -188,7 +188,8 @@ $(includedir)/gnu/lib-names.h: $(common-objpfx)soversions.mk
echo; \
(libs='$(all-sonames)';\
for l in $$libs; do \
- upname=`echo $$l | sed 's/[.]so.*//' | tr [:lower:]- [:upper:]_`; \
+ upname=`echo $$l | sed 's/[.]so.*//' | \
+ tr '[:lower:]-' '[:upper:]_'`; \
echo "#define $${upname}_SO $$l"; \
done;) | sort; \
echo; \
diff --git a/Makerules b/Makerules
index b7c95526b3..d1ac04f2aa 100644
--- a/Makerules
+++ b/Makerules
@@ -605,7 +605,7 @@ rm -f $(@F).new; \
if test '$(@D)' = '$(<D)'; then \
$(LN_S) $(<F) $(@F).new; \
else \
- $(SHELL) $(common-objpfx)$(..)rellns-sh $< $(@F).new; \
+ $(SHELL) $(top_absdir)/rellns-sh $< $(@F).new; \
fi; \
mv -f $(@F).new $(@F)
endef
diff --git a/PROJECTS b/PROJECTS
index 9f9d3bed33..fb3897c7d3 100644
--- a/PROJECTS
+++ b/PROJECTS
@@ -87,8 +87,8 @@ contact <bug-glibc@prep.ai.mit.edu>
duplicated work.
-[11] Write access function for netmasks, bootparams, publickey, automount,
- and aliases databases for nss_files and nss_db module.
+[11] Write access function for netmasks, bootparams, and automount
+ databases for nss_files and nss_db module.
The functions should be embedded in the nss scheme. This is not
hard and not all services must be supported at once.
diff --git a/aliases.h b/aliases.h
new file mode 100644
index 0000000000..cfe459d02d
--- /dev/null
+++ b/aliases.h
@@ -0,0 +1 @@
+#include <inet/aliases.h>
diff --git a/config.make.in b/config.make.in
index c52910ea85..d457b802f9 100644
--- a/config.make.in
+++ b/config.make.in
@@ -3,6 +3,7 @@
# Don't edit this file. Put configuration parameters in configparms instead.
# Installation prefixes.
+top_absdir = @top_absdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
diff --git a/configure b/configure
index dcbdebcc52..14ca8e2c8e 100755
--- a/configure
+++ b/configure
@@ -2,7 +2,7 @@
# From configure.in CVSid
# Guess values for system-dependent variables and create Makefiles.
-# Generated automatically using autoconf version 2.10
+# Generated automatically using autoconf version 2.10.3
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
@@ -355,7 +355,7 @@ EOF
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.10"
+ echo "configure generated by autoconf version 2.10.3"
exit 0 ;;
-with-* | --with-*)
@@ -550,6 +550,10 @@ fi
# This will get text that should go into config.make.
config_vars=
+# We need a variable with the absolute path to the toplevel build directory.
+top_absdir=`cd $srcdir; pwd`
+
+
# Check for a --with-gmp argument and set gmp-srcdir in config.make.
# Check whether --with-gmp or --without-gmp was given.
if test "${with_gmp+set}" = set; then
@@ -682,7 +686,6 @@ done
if test -z "$ac_aux_dir"; then
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
-ac_config_mkinstalldirs=$ac_aux_dir/mkinstalldirs
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
@@ -703,6 +706,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
+echo "configure:710: checking host system type" >&5
host_alias=$host
case "$host_alias" in
@@ -768,6 +772,7 @@ esac
# This can take a while to compute.
sysdep_dir=$srcdir/sysdeps
echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
+echo "configure:776: checking sysdep dirs" >&5
# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
@@ -968,6 +973,7 @@ echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+echo "configure:977: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1010,21 +1016,18 @@ fi
fi
echo "$ac_t""$INSTALL" 1>&6
-# The purpose of this command is only to make sure the auxiliary path
-# is set and that the symbol AC_REQUIRE_AC_PROG_MKINSTALLDIRS is set.
-
-
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-if test "$INSTALL" = "${srcdir}/install-sh"; then
+if test "$INSTALL" = "${srcdir}/install-sh -c"; then
# The makefiles need to use a different form to find it in $srcdir.
- INSTALL='$(..)./install-sh'
+ INSTALL="$top_absdir/install-sh -c"
fi
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
+echo "configure:1031: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1049,6 +1052,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:1056: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1079,6 +1083,7 @@ test -n "$MSGFMT" || MSGFMT=":"
echo $ac_n "checking build system type""... $ac_c" 1>&6
+echo "configure:1087: checking build system type" >&5
build_alias=$build
case "$build_alias" in
@@ -1104,6 +1109,7 @@ fi
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:1113: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1135,6 +1141,7 @@ if test $host != $build; then
# Extract the first word of "gcc cc", so it can be a program name with args.
set dummy gcc cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:1145: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1161,6 +1168,7 @@ fi
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+echo "configure:1172: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@@ -1175,33 +1183,37 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 1179 "configure"
+#line 1187 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 1194 "configure"
+#line 1204 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
CPP=/lib/cpp
fi
@@ -1219,6 +1231,7 @@ echo "$ac_t""$CPP" 1>&6
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:1235: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1249,6 +1262,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configur