]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
update from main archive 970121 cvs/libc-970122
authorUlrich Drepper <drepper@redhat.com>
Wed, 22 Jan 1997 05:26:05 +0000 (05:26 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 22 Jan 1997 05:26:05 +0000 (05:26 +0000)
1997-01-21  Paul Eggert  <eggert@twinsun.com>

* posix/getopt.c (_getopt_internal): Return -1, not EOF, when args
are exhausted; this is required by POSIX.2.
* catgets/gencat.c, db/makedb.c, locale/programs/locale.c,
locale/programs/localedef.c, manual/examples/subopt.c,
posix/getopt.c, posix/getopt1.c, stdio-common/bug4.c,
sunrpc/rpcinfo.c (main): Check getopt return value against -1, not EOF.

Tue Jan 21 23:10:40 1997  Ulrich Drepper  <drepper@cygnus.com>

* version.h (VERSION): Bump to 1.102.

* sysdeps/unix/sysv/linux/alpha/Dist: Add kernel_sigaction.h.

* elf/Makefile: Don't use CFLAGS-dl-load.c, but instead
CPPFLAGS-dl-load.c so that dependencies can be determined correctly.
* elf/dl-load.c: Fix comment.

* time/Banner: New file.
* time/Makefile (distribute): Add Banner.

Update from ADO tzcode1997a and tzdata1997a.
* time/antarctica: Update.
* time/australia: Update.
* time/zdump.c: Update.
* time/zic.c: Update.
* time/zone.tab: Update.

Mon Jan 20 08:38:32 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* config.make.in (has-ldconfig): New variable.

* configure, configure.in (has_ldconfig): New substitute.

* sysdeps/unix/sysv/linux/configure.in (has_ldconfig): New,
check if $srcdir/elf/ldconfig.c exists.

* Makeconfig (rootsbindir): New, default as
$(exec_prefix)/sbin.
(rtld-version-installed-name): New, default as
ld-$(version).so.

* Makefile (install): Call `$(common-objpfx)elf/ldconfig -d'
only if $(cross-compiling) is no and $(build-shared) is yes.

* Makerules (make-shlib-link): New macro.
($(slibdir)/libfoo.so.$(libfoo.so-version)): Use
$(make-shlib-link) for symlink.
(install-rootsbin, install-rootsbin-nosubdir): New.
(install-no-libc.a-nosubdir): Add
install-rootsbin-nosubdir.

* Rules (others): Add $(install-rootsbin).

* config.make.in (rootsbindir): New.

* configure, configure.in (libc_cv_rootsbindir): New
substitute.

* elf/Makefile (others, install-rootsbin): New, set to
ldconfig.
(+link): New for static linking.
($(slibdir)/$(rtld-version-installed-name)): New.
($(slibdir)/$(rtld-installed-name)): Depend on
$(slibdir)/$(rtld-version-installed-name) and use
$(make-shlib-link) for symlink.

* sunrpc/xdr.c (xdr_string): Return FALSE if sp == NULL
while XDR_ENCODE.

* sysdeps/unix/sysv/linux/a.out.h: Use #include_next for
glibc internals.

* sysdeps/unix/sysv/linux/configure.in (libc_cv_rootsbindir):
New, set to "/sbin" if "$prefix" == "/usr".

Tue Jan 21 13:38:39 1997  Ulrich Drepper  <drepper@cygnus.com>

* Makefile (distribute): Add glibcbug.in.
Reported by Philip Blundell <pjb27@cam.ac.uk>.

* elf/Makefile ($(objpfx)trusted-dirs.h): Create elf/ subdir in
build directory if necessary.
Reported by marcus@shannon.sysc.pdx.edu (Marcus G. Daniels).

34 files changed:
ChangeLog
Makeconfig
Makefile
Makerules
Rules
catgets/gencat.c
config.make.in
configure
configure.in
db/makedb.c
elf/Makefile
elf/dl-load.c
locale/programs/locale.c
locale/programs/localedef.c
manual/examples/subopt.c
nis/Makefile
posix/getopt.c
posix/getopt.h
posix/getopt1.c
stdio-common/bug4.c
sunrpc/rpcinfo.c
sunrpc/xdr.c
sysdeps/unix/sysv/linux/a.out.h
sysdeps/unix/sysv/linux/alpha/Dist
sysdeps/unix/sysv/linux/configure
sysdeps/unix/sysv/linux/configure.in
time/Banner [new file with mode: 0644]
time/Makefile
time/antarctica
time/australasia
time/zdump.c
time/zic.c
time/zone.tab
version.h

index a42b6d0b6fbc483f44e2cd112d4e19dc671492dc..be142d580af476d02a479516d18faa179fb897a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,89 @@
+1997-01-21  Paul Eggert  <eggert@twinsun.com>
+
+       * posix/getopt.c (_getopt_internal): Return -1, not EOF, when args
+       are exhausted; this is required by POSIX.2.
+       * catgets/gencat.c, db/makedb.c, locale/programs/locale.c,
+       locale/programs/localedef.c, manual/examples/subopt.c,
+       posix/getopt.c, posix/getopt1.c, stdio-common/bug4.c,
+       sunrpc/rpcinfo.c (main): Check getopt return value against -1, not EOF.
+
+Tue Jan 21 23:10:40 1997  Ulrich Drepper  <drepper@cygnus.com>
+
+       * version.h (VERSION): Bump to 1.102.
+
+       * sysdeps/unix/sysv/linux/alpha/Dist: Add kernel_sigaction.h.
+
+       * elf/Makefile: Don't use CFLAGS-dl-load.c, but instead
+       CPPFLAGS-dl-load.c so that dependencies can be determined correctly.
+       * elf/dl-load.c: Fix comment.
+
+       * time/Banner: New file.
+       * time/Makefile (distribute): Add Banner.
+
+       Update from ADO tzcode1997a and tzdata1997a.
+       * time/antarctica: Update.
+       * time/australia: Update.
+       * time/zdump.c: Update.
+       * time/zic.c: Update.
+       * time/zone.tab: Update.
+
+Mon Jan 20 08:38:32 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
+
+       * config.make.in (has-ldconfig): New variable.
+
+       * configure, configure.in (has_ldconfig): New substitute.
+
+       * sysdeps/unix/sysv/linux/configure.in (has_ldconfig): New,
+       check if $srcdir/elf/ldconfig.c exists.
+
+       * Makeconfig (rootsbindir): New, default as
+       $(exec_prefix)/sbin.
+       (rtld-version-installed-name): New, default as
+       ld-$(version).so.
+
+       * Makefile (install): Call `$(common-objpfx)elf/ldconfig -d'
+       only if $(cross-compiling) is no and $(build-shared) is yes.
+
+       * Makerules (make-shlib-link): New macro.
+       ($(slibdir)/libfoo.so.$(libfoo.so-version)): Use
+       $(make-shlib-link) for symlink.
+       (install-rootsbin, install-rootsbin-nosubdir): New.
+       (install-no-libc.a-nosubdir): Add
+       install-rootsbin-nosubdir.
+
+       * Rules (others): Add $(install-rootsbin).
+
+       * config.make.in (rootsbindir): New.
+
+       * configure, configure.in (libc_cv_rootsbindir): New
+       substitute.
+
+       * elf/Makefile (others, install-rootsbin): New, set to
+       ldconfig.
+       (+link): New for static linking.
+       ($(slibdir)/$(rtld-version-installed-name)): New.
+       ($(slibdir)/$(rtld-installed-name)): Depend on
+       $(slibdir)/$(rtld-version-installed-name) and use
+       $(make-shlib-link) for symlink.
+
+       * sunrpc/xdr.c (xdr_string): Return FALSE if sp == NULL
+       while XDR_ENCODE.
+
+       * sysdeps/unix/sysv/linux/a.out.h: Use #include_next for
+       glibc internals.
+
+       * sysdeps/unix/sysv/linux/configure.in (libc_cv_rootsbindir):
+       New, set to "/sbin" if "$prefix" == "/usr".
+
+Tue Jan 21 13:38:39 1997  Ulrich Drepper  <drepper@cygnus.com>
+
+       * Makefile (distribute): Add glibcbug.in.
+       Reported by Philip Blundell <pjb27@cam.ac.uk>.
+
+       * elf/Makefile ($(objpfx)trusted-dirs.h): Create elf/ subdir in
+       build directory if necessary.
+       Reported by marcus@shannon.sysc.pdx.edu (Marcus G. Daniels).
+
 Tue Jan 21 04:05:20 1997  Ulrich Drepper  <drepper@cygnus.com>
 
        * version.h (VERSION): Bump to 1.101.
index 37d5f62173f083f5cc2dc236e65be49ec0ca99d2..46d9b72e7987f48e714a9a2488abb7c582f15a05 100644 (file)
@@ -194,6 +194,10 @@ bindir = $(exec_prefix)/bin
 endif
 
 # Where to install administrative programs.
+ifndef rootsbindir
+rootsbindir = $(exec_prefix)/sbin
+endif
+
 ifndef sbindir
 sbindir = $(exec_prefix)/sbin
 endif
@@ -561,6 +565,10 @@ rtld-installed-name = ld.so.1
 endif
 endif
 
+ifndef rtld-version-installed-name
+rtld-version-installed-name = ld-$(version).so
+endif
+
 endif # build-shared
 
 endif # Makeconfig not yet included
index 8f0a879053db83d19ca97a5cfe35c2ec57f4d5e9..0d47b07c146d12e183c87b93312fc8b70d02e830 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -111,6 +111,12 @@ include Makerules
 
 # Install from subdirectories too.
 install: subdir_install
+ifeq (no,$(cross-compiling))
+ifeq (yes,$(build-shared))
+       test ! -x $(common-objpfx)elf/ldconfig || \
+         $(common-objpfx)elf/ldconfig -d
+endif
+endif
 
 # Build subdirectory lib objects.
 lib-noranlib: subdir_lib
@@ -296,7 +302,7 @@ distribute  := README INSTALL FAQ NOTES NEWS PROJECTS                       \
               autolock.sh rellns-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 nsswitch.h netgroup.h \
-              mcheck.h
+              mcheck.h glibcbug.in
 
 distribute := $(strip $(distribute))
 generated := $(generated) stubs.h version-info.h
index 88d55a664aab29822bd417600372b098a942880c..08de5a17f9ea2b9b8b3db0c19ff443a2180a6aae 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -616,13 +616,27 @@ mv -f $@.new $@
 endef
 endif
 
+# XXX The following will have to be changed when `ldconfig' is available.
+ifneq (yes,$(cross-compiling))
+ifeq (yes,$(has-ldconfig))
+define make-shlib-link
+@:
+endef
+endif
+endif
+ifndef make-shlib-link
+define make-shlib-link
+$(make-link)
+endef
+endif
+
 ifdef libc.so-version
 # For a library specified to be version N, install three files:
 # libc.so      ->      libc.so.N       (e.g. libc.so.6)
 # libc.so.6    ->      libc-VERSION.so (e.g. libc-1.10.so)
 
 $(slibdir)/libc.so$(libc.so-version): $(slibdir)/libc-$(version).so
-       $(make-link)
+       $(make-shlib-link)
 $(slibdir)/libc-$(version).so: $(common-objpfx)libc.so; $(do-install-program)
 install: $(slibdir)/libc.so$(libc.so-version)
 
@@ -672,7 +686,8 @@ include $(o-iterator)
 
 ifeq (,$($(subdir)-version))
 define o-iterator-doit
-$(slibdir)/$o$($o-version): $(slibdir)/$(o:.so=)-$(version).so; $$(make-link)
+$(slibdir)/$o$($o-version): $(slibdir)/$(o:.so=)-$(version).so;
+       $$(make-shlib-link)
 endef
 object-suffixes-left := $(versioned)
 include $(o-iterator)
@@ -685,7 +700,7 @@ include $(o-iterator)
 else
 define o-iterator-doit
 $(slibdir)/$o$($o-version): $(slibdir)/$(o:.so=)-$($(subdir)-version).so;
-       $$(make-link)
+       $$(make-shlib-link)
 endef
 object-suffixes-left := $(versioned)
 include $(o-iterator)
@@ -718,6 +733,10 @@ ifdef install-bin
 $(addprefix $(bindir)/,$(install-bin)): $(bindir)/%: $(objpfx)%
        $(do-install-program)
 endif
+ifdef install-rootsbin
+$(addprefix $(rootsbindir)/,$(install-rootsbin)): $(rootsbindir)/%: $(objpfx)%
+       $(do-install-program)
+endif
 ifdef install-sbin
 $(addprefix $(sbindir)/,$(install-sbin)): $(sbindir)/%: $(objpfx)%
        $(do-install-program)
@@ -746,9 +765,10 @@ $(addprefix $(includedir)/,$(headers)): \
        $(includedir)/%: %;$(do-install)
 endif  # headers
 
-.PHONY: install-bin-nosubdir install-sbin-nosubdir install-lib-nosubdir \
-       install-data-nosubdir install-headers-nosubdir
+.PHONY: install-bin-nosubdir install-rootsbin-nosubdir install-sbin-nosubdir \
+       install-lib-nosubdir install-data-nosubdir install-headers-nosubdir
 install-bin-nosubdir: $(addprefix $(bindir)/,$(install-bin))
+install-rootsbin-nosubdir: $(addprefix $(rootsbindir)/,$(install-rootsbin))
 install-sbin-nosubdir: $(addprefix $(sbindir)/,$(install-sbin))
 install-lib-nosubdir: $(addprefix $(libdir)/,\
                       $(patsubst lib%.a,lib$(libprefix)%.a,$(install-lib.a)) \
@@ -766,7 +786,8 @@ install-%:: install-%-nosubdir ;
 .PHONY: install install-no-libc.a-nosubdir
 install-no-libc.a-nosubdir: install-headers-nosubdir install-data-nosubdir\
                            install-bin-nosubdir install-lib-nosubdir   \
-                           install-others-nosubdir install-sbin-nosubdir
+                           install-others-nosubdir install-rootsbin-nosubdir \
+                           install-sbin-nosubdir
 install: install-no-libc.a-nosubdir
 \f
 # Command to compile $< in $(objdir) using the native libraries.
diff --git a/Rules b/Rules
index 0cf6c002c0bb379e6aa50e570363e1429a0f951b..32b1753f44caa3b3fe63c8a8a3b32f5f215fdbc0 100644 (file)
--- a/Rules
+++ b/Rules
@@ -39,7 +39,8 @@ export subdir := $(subdir)
 all: objs lib others
 
 others: $(addprefix $(objpfx),$(extra-objs) \
-                             $(install-lib) $(install-bin) $(install-sbin))
+                             $(install-lib) $(install-bin) \
+                             $(install-rootsbin) $(install-sbin))
 
 ifneq  "$(findstring env,$(origin headers))" ""
 headers :=
index 1616abfa1e7efa7440ea1e00fac2136956d0789d..704705783292fe798a47a1c1eaeb3b0e70a2f02b 100644 (file)
@@ -141,7 +141,7 @@ main (int argc, char *argv[])
   header_name = NULL;
   result = NULL;
 
-  while ((opt = getopt_long (argc, argv, "hH:o:V", long_options, NULL)) != EOF)
+  while ((opt = getopt_long (argc, argv, "hH:o:V", long_options, NULL)) != -1)
     switch (opt)
       {
       case '\0':       /* Long option.  */
index a4a667625e68348f663e3f47498ddd3adeb8f600..0e61a145f16ea870e42b07a89b128f7cfe88a47b 100644 (file)
@@ -7,6 +7,11 @@ prefix = @prefix@
 exec_prefix = @exec_prefix@
 slibdir = @libc_cv_slibdir@
 sysconfdir = @libc_cv_sysconfdir@
+rootsbindir = $(install_root)@libc_cv_rootsbindir@
+
+# If ldconfig exists.  This will go away as soon as `ldconfig' is available
+# in GNU libc.
+has-ldconfig = @has_ldconfig@
 
 # System configuration.
 config-machine = @host_cpu@
index 64c9ea56323850c7966e86423998cded47ac3d91..e65b1b3e199eb9b6d683ae6772d0f4fc87bda683 100755 (executable)
--- a/configure
+++ b/configure
@@ -1950,6 +1950,8 @@ echo "$ac_t""$malloc" 1>&6
 
 
 
+
+
   
 if test $gnu_ld = yes; then
   cat >> confdefs.h <<\EOF
@@ -2162,6 +2164,8 @@ s%@malloc@%$malloc%g
 s%@USE_NEW_MALLOC@%$USE_NEW_MALLOC%g
 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
+s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
+s%@has_ldconfig@%$has_ldconfig%g
 s%@gnu_ld@%$gnu_ld%g
 s%@gnu_as@%$gnu_as%g
 s%@elf@%$elf%g
index 6cd3291bf1957e26a669358e73e3c6eb1d161cc7..7b17d88528233f830ef778fd0a5ab21a0229f6ce 100644 (file)
@@ -745,9 +745,11 @@ esac
 AC_SUBST(USE_NEW_MALLOC)
 AC_MSG_RESULT($malloc)
 
-
 AC_SUBST(libc_cv_slibdir)
 AC_SUBST(libc_cv_sysconfdir)
+AC_SUBST(libc_cv_rootsbindir)
+
+AC_SUBST(has_ldconfig)
 
 AC_SUBST(gnu_ld) AC_SUBST(gnu_as) AC_SUBST(elf)
 if test $gnu_ld = yes; then
index ebdb9014c88319ba34395327b9feeae10764b70c..7ce95487888184ed07eeef8a71b1618e16916fa0 100644 (file)
@@ -86,7 +86,7 @@ main (argc, argv)
   be_quiet = 0;
   output_name = NULL;
 
-  while ((opt = getopt_long (argc, argv, "fho:uV", long_options, NULL)) != EOF)
+  while ((opt = getopt_long (argc, argv, "fho:uV", long_options, NULL)) != -1)
     switch (opt)
       {
       case '\0':        /* Long option.  */
index 87f2d0d67d2be330ead0c70396bbe524a82571a1..63a63127f827a9bc315d8841fa07963644cb9ae0 100644 (file)
@@ -55,10 +55,22 @@ install-others      = $(slibdir)/$(rtld-installed-name)
 install-bin    = ldd
 endif
 
+ifeq (yes,$(has-ldconfig))
+others         = ldconfig
+install-rootsbin = ldconfig
+
+$(objpfx)ldconfig: ldconfig.o
+       $(CC) -nostdlib -nostartfiles -o $@ $(sysdep-LDFLAGS) -static         \
+             $(addprefix $(csu-objpfx),start.o) $(+preinit)                  \
+             $(filter-out $(addprefix $(csu-objpfx),start.o) $(+preinit)     \
+               $(link-extra-libs) $(common-objpfx)libc% $(+postinit),$^)     \
+             $(link-extra-libs) $(common-objpfx)libc.a $(gnulib) $(+postinit)
+endif
+
 include ../Rules
 
 
-ifeq (yes, $(build-shared))
+ifeq (yes,$(build-shared))
 # Make sure these things are built in the `make lib' pass so they can be used
 # to run programs during the `make others' pass.
 lib-noranlib: $(objpfx)$(rtld-installed-name) \
@@ -86,7 +98,7 @@ endef
 # The dl code in the static libc needs a default library path.
 CFLAGS-dl-support.c = -D'DEFAULT_RPATH="$(default-rpath)"'
 
-ifneq (ld.so, $(rtld-installed-name))
+ifneq (ld.so,$(rtld-installed-name))
 # Make sure ld.so.1 exists in the build directory so we can link
 # against it.
 $(objpfx)$(rtld-installed-name): $(objpfx)ld.so
@@ -99,18 +111,23 @@ endif
 # add directories to the list by defining $(user-defined-trusted-dirs)
 # before starting make.
 $(objpfx)trusted-dirs.h: Makefile
+       $(make-target-directory)
        (for dir in `echo "$(default-rpath) $(user-defined-trusted-dirs)" |   \
                     sed 's/:/ /g'`; do                                       \
           echo "  \"$$dir\",";                                               \
         done;) > $@T
        mv -f $@T $@
-CFLAGS-dl-load.c = -I$(objdir)/$(subdir)
+CPPFLAGS-dl-load.c = -I$(objdir)/$(subdir)
 
 # Specify the dependencies of libdl.so; its commands come from the generic
 # rule to build a shared library.
 $(objpfx)libdl.so: $(objpfx)libdl_pic.a $(common-objpfx)libc.so $(objpfx)ld.so
 
-$(slibdir)/$(rtld-installed-name): $(objpfx)ld.so; $(do-install-program)
+$(slibdir)/$(rtld-version-installed-name): $(objpfx)ld.so
+       $(do-install-program)
+
+$(slibdir)/$(rtld-installed-name): $(slibdir)/$(rtld-version-installed-name)
+       $(make-shlib-link)
 
 ifneq ($(have-bash2),yes)
 $(objpfx)ldd: ldd.sh.in $(common-objpfx)version.mk \
index 6a3d919976c4b06b5d352286f1af272b4a28067f..7368858f640cec1361f00e57cd1967611278bfb6 100644 (file)
@@ -627,7 +627,7 @@ _dl_map_object (struct link_map *loader, const char *name, int type,
          /* We haven't found an appropriate library.  But since we
             are only interested in the list of libraries this isn't
             so severe.  Fake an entry with all the information we
-            have (in fact only the name).  */
+            have.  */
          static const ElfW(Symndx) dummy_bucket = STN_UNDEF;
 
          /* Enter the new object in the list of loaded objects.  */
index d42081bb539e63882494f46694c6a7720f7dcdbf..8587345bf2c12eee95566d3736d6f90f645475e2 100644 (file)
@@ -153,7 +153,7 @@ main (int argc, char *argv[])
   textdomain (PACKAGE);
 
   while ((optchar = getopt_long (argc, argv, "achkmV", long_options, NULL))
-         != EOF)
+         != -1)
     switch (optchar)
       {
       case '\0':               /* Long option.  */
index 950f0d0e31564804a7c73363afb7be796d950452..580816b37e85b71544557958fa1aabdb55fc58ac 100644 (file)
@@ -127,7 +127,7 @@ main (int argc, char *argv[])
   textdomain (_libc_intl_domainname);
 
   while ((optchar = getopt_long (argc, argv, "cf:hi:u:vV", long_options, NULL))
-         != EOF)
+         != -1)
     switch (optchar)
       {
       case '\0':               /* Long option.  */
index 4a89f6441ef12d34715449ff36253b268079104a..df71720fe983c2cc7ff3e182565e62c67f25d67b 100644 (file)
@@ -29,7 +29,7 @@ main (int argc, char *argv[])
   char *subopts, *value;
   int opt;
 
-  while ((opt = getopt (argc, argv, "at:o:")) != EOF)
+  while ((opt = getopt (argc, argv, "at:o:")) != -1)
     switch (opt)
       {
       case 'a':
index a6d4d4f56a579d1f628154bad3dc3b42c0384fdf..98ef4090a220b184e4b2dfad7d1a9037b679647d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1996 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -22,6 +22,7 @@
 subdir := nis
 
 headers                        := $(wildcard rpcsvc/*.[hx])
+distribute             := nss-nis.h
 
 # These are the databases available for the nis (and perhaps later nisplus)
 # service.  This must be a superset of the services in nss.
index 1c79eaaae215e1df8f09437050e64051ca2fe812..f57f28129784182a5afeb59b067540fd7884b129 100644 (file)
@@ -126,7 +126,7 @@ char *optarg = NULL;
 
    On entry to `getopt', zero means this is the first call; initialize.
 
-   When `getopt' returns EOF, this is the index of the first of the
+   When `getopt' returns -1, this is the index of the first of the
    non-option elements that the caller should itself scan.
 
    Otherwise, `optind' communicates from one call to the next
@@ -188,7 +188,7 @@ int optopt = '?';
 
    The special argument `--' forces an end of option-scanning regardless
    of the value of `ordering'.  In the case of RETURN_IN_ORDER, only
-   `--' can cause `getopt' to return EOF with `optind' != ARGC.  */
+   `--' can cause `getopt' to return -1 with `optind' != ARGC.  */
 
 static enum
 {
@@ -417,7 +417,7 @@ _getopt_initialize (argc, argv, optstring)
    updating `optind' and `nextchar' so that the next call to `getopt' can
    resume the scan with the following option character or ARGV-element.
 
-   If there are no more option characters, `getopt' returns `EOF'.
+   If there are no more option characters, `getopt' returns -1.
    Then `optind' is the index in ARGV of the first ARGV-element
    that is not an option.  (The ARGV-elements have been permuted
    so that those that are not options now come last.)
@@ -546,7 +546,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
             that we previously skipped, so the caller will digest them.  */
          if (first_nonopt != last_nonopt)
            optind = first_nonopt;
-         return EOF;
+         return -1;
        }
 
       /* If we have come to a non-option and did not permute it,
@@ -555,7 +555,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
       if (NONOPTION_P)
        {
          if (ordering == REQUIRE_ORDER)
-           return EOF;
+           return -1;
          optarg = argv[optind++];
          return 1;
        }
@@ -945,7 +945,7 @@ main (argc, argv)
       int this_option_optind = optind ? optind : 1;
 
       c = getopt (argc, argv, "abc:d:0123456789");
-      if (c == EOF)
+      if (c == -1)
        break;
 
       switch (c)
index 9da23aac2b4f488de029eabdd9aa8e3063b384c9..7dad11b79ffe57d5beedbc1294d935859308d230 100644 (file)
@@ -1,5 +1,5 @@
 /* Declarations for getopt.
-   Copyright (C) 1989, 90, 91, 92, 93, 94, 96 Free Software Foundation, Inc.
+   Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc.
 
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.  The master source lives in /gd/gnu/lib.
@@ -40,7 +40,7 @@ extern char *optarg;
 
    On entry to `getopt', zero means this is the first call; initialize.
 
-   When `getopt' returns EOF, this is the index of the first of the
+   When `getopt' returns -1, this is the index of the first of the
    non-option elements that the caller should itself scan.
 
    Otherwise, `optind' communicates from one call to the next
index 358935db69e938b2bbb166b4e469facf72d8590e..19fd4a0cb53397b95439c2c081da3e7d6092f2ee 100644 (file)
@@ -1,6 +1,5 @@
 /* getopt_long and getopt_long_only entry points for GNU getopt.
-   Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 1996
-       Free Software Foundation, Inc.
+   Copyright (C) 1987,88,89,90,91,92,93,94,96,97 Free Software Foundation, Inc.
 
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.  The master source lives in /gd/gnu/lib.
@@ -124,7 +123,7 @@ main (argc, argv)
 
       c = getopt_long (argc, argv, "abc:d:0123456789",
                       long_options, &option_index);
-      if (c == EOF)
+      if (c == -1)
        break;
 
       switch (c)
index acf5b5433b51cd733815259a9df60a987e6e10b4..492a41d9230607bb6af04cc48255d23176255e75 100644 (file)
@@ -16,7 +16,7 @@ DEFUN(main, (argc, argv),
   char buffer[31];
   const char filename[] = "/tmp/bugtest";
 
-  while ((i = getopt (argc, argv, "rw")) != EOF)
+  while ((i = getopt (argc, argv, "rw")) != -1)
     switch (i)
       {
       case 'r':
index 0df991ae471d0be8837bd15dbd97048560aaa0d1..30932c83a67568d628b56a76e50c37f624704dd6 100644 (file)
@@ -94,7 +94,7 @@ main(argc, argv)
        function = NONE;
        portnum = 0;
        errflg = 0;
-       while ((c = getopt(argc, argv, "ptubdn:")) != EOF) {
+       while ((c = getopt(argc, argv, "ptubdn:")) != -1) {
                switch (c) {
 
                case 'p':
index c36afd983ca8bc7b16f2bf1c7da5e7c907fdf94d..969fa6ba047a630b85f5e2d7431d47c296ac2dfe 100644 (file)
@@ -575,6 +575,8 @@ xdr_string(xdrs, cpp, maxsize)
                }
                /* fall through... */
              case XDR_ENCODE:
+               if (sp == NULL)
+                       return FALSE;
                size = strlen(sp);
                break;
        }
index 027c49ad5502a1607932a94b1c173c4d4babc369..d963de74cf43370d6f97897b77180e90cd3a890e 100644 (file)
@@ -1 +1,5 @@
-#include <linux/a.out.h>
+#ifdef _LIBC
+# include_next <linux/a.out.h>
+#else
+# include <linux/a.out.h>
+#endif
index 368b49066d15a9cd5c85909a1a635b549d6198df..cdb11e98d036dc0984694d0631ef44dd1c08745d 100644 (file)
@@ -4,6 +4,7 @@ ioperm.c
 init-first.h
 clone.S
 sys/io.h
+kernel_sigaction.h
 kernel_termios.h
 sys/acct.h
 sys/procfs.h
index 42fe89c269c7c99309c6794dc17c13b4d0bc8e38..20923215ae32939a711fd0a57b40a3f299069ea6 100644 (file)
@@ -20,7 +20,7 @@ else
 #include "confdefs.h"
 #include <linux/version.h>
 int main() {
-#if LINUX_VERSION_CODE <  (2 *65536+ 0 *256+ 10) /* 2.0.10 */
+#if LINUX_VERSION_CODE <  ( *65536+ 0 *256+ 10) /* .0.10 */
 eat flaming death
 #endif
 ; return 0; }
@@ -55,6 +55,7 @@ fi
 if test "$prefix" = "/usr"; then
   libc_cv_slibdir="/lib"
   libc_cv_sysconfdir="/etc"
+  libc_cv_rootsbindir="/sbin"
 fi
 
 # Under Linux the LinuxThreads and crypt add-on should be available.
@@ -94,3 +95,9 @@ if test "$message"; then
     echo "$message"
   fi
 fi
+
+# Check whether `ldconfig' sources are available.  This will go away as soon
+# as ldconfig is available in GNU libc.
+if test -f $srcdir/elf/ldconfig.c; then
+  has_ldconfig=yes
+fi
index 4ac65d02faf04a3ba39eb7c9c941d9d0cbf17d2a..0c77d7d75ff60d02248001ad8a0d4ab56d2e4be8 100644 (file)
@@ -40,6 +40,7 @@ fi
 if test "$prefix" = "/usr"; then
   libc_cv_slibdir="/lib"
   libc_cv_sysconfdir="/etc"
+  libc_cv_rootsbindir="/sbin"
 fi
 
 # Under Linux the LinuxThreads and crypt add-on should be available.
@@ -79,3 +80,9 @@ if test "$message"; then
     echo "$message"
   fi
 fi
+
+# Check whether `ldconfig' sources are available.  This will go away as soon
+# as ldconfig is available in GNU libc.
+if test -f $srcdir/elf/ldconfig.c; then
+  has_ldconfig=yes
+fi
diff --git a/time/Banner b/time/Banner
new file mode 100644 (file)
index 0000000..eb972db
--- /dev/null
@@ -0,0 +1 @@
+tzcode1997a and tzdata1997a by Arthur David Olson et. al.
index af03fa2961fea7dcfaaaa438b6105657d89eabba..21ad62e0713f32da26c4c6dc9328495a27a8d8d4 100644 (file)
@@ -23,7 +23,8 @@ subdir        := time
 
 headers        := time.h sys/time.h sys/timeb.h timebits.h
 distribute := tzfile.h private.h scheck.c ialloc.c yearistype  \
-             iso3166.tab zone.tab tzselect.ksh checktab.awk
+             iso3166.tab zone.tab tzselect.ksh checktab.awk    \
+             Banner
 extra-objs = scheck.o ialloc.o $(tzfiles:%=z.%)
 
 routines       := offtime asctime clock ctime ctime_r difftime \
@@ -45,7 +46,7 @@ tzfiles := africa antarctica asia australasia europe northamerica \
           solar87 solar88 solar89
 # pacificnew doesn't compile; if it is to be used, it should be included in
 # northamerica.
-distribute := $(distribute) $(tzfiles) leapseconds pacificnew simplebackw
+distribute += $(tzfiles) leapseconds pacificnew simplebackw
 
 install-sbin := zic zdump
 
index b4a7d397a34fd70c2ec9f0de475e184dd2bdb751..1cff7552d13e0bd1472822f81107011a28073069 100644 (file)
@@ -1,10 +1,11 @@
-# @(#)antarctica       7.5
+# @(#)antarctica       7.6
 
-# From Paul Eggert (1996-09-03):
+# From Paul Eggert (1997-01-20):
 # To keep things manageable, we list only locations occupied year-round;
 # see <URL:http://earth.agu.org/amen/nations.html> (1996-05-24).
 # Unless otherwise specified, we have no time zone information.
 #
+# Except for the French entries,
 # I made up all time zone abbreviations mentioned here; corrections welcome!
 # FORMAT is `___' and GMTOFF is 0 for locations while uninhabited.
 
@@ -56,16 +57,41 @@ Zone Antarctica/Mawson      0       -       ___     1954 Feb 13
 # Finland - year-round base
 # Aboa, Queen Maud Land, since 1988
 
-# France
+# France - year-round bases
+#
+# From Antoine Leca <Antoine.Leca@Renault.FR> (1997-01-20):
+# Time data are from Nicole Pailleau at the IFRTP
+# (French Institute for Polar Research and Technology).
+# She confirms that French Southern Territories and Terre Adelie bases
+# don't observe daylight saving time, even if Terre Adelie supplies came
+# from Tasmania.
 #
 # French Southern Territories with year-round inhabitants
-# Amsterdam Island
-# Crozet Islands
-# Kerguelen Islands
-# St Paul Island
 #
-# year-round base
-# Dumont d'Urville, Adelie Land, since IGY
+# Martin-de-Vivies Base, Amsterdam Island, -374105+0773155, since 1950
+# Alfred-Faure Base, Crozet Islands, -462551+0515152, since 1964
+# Port-aux-Francais, Kerguelen Islands, -492110+0701303, since 1951
+#
+# St Paul Island - near Amsterdam, uninhabited since 1927
+#
+# Zone NAME            GMTOFF  RULES   FORMAT  [UNTIL]
+Zone Indian/Kerguelen  0       -       ___     1950    # Port-aux-Francais
+                       5:00    -       TFT     # ISO code TF Time
+#
+# year-round base in the main continent
+# Dumont-d'Urville, Terre Adelie (Adelie Land), -6040+14001, since 1956-11
+#
+# Another base at Port-Martin, 50km east, began operation in 1947.
+# It was destroyed by fire on 1952-01-14.
+#
+# Zone NAME            GMTOFF  RULES   FORMAT  [UNTIL]
+Zone Antarctica/DumontDUrville 0 -     ___     1947
+                       10:00   -       PMT     1952 Jan 14 # Port-Martin Time
+                       0       -       ___     1956 Nov
+                       10:00   -       DDUT    # Dumont-d'Urville Time
+# Reference:
+# <URL:http://www.icair.iac.org.nz/science/reports/fr/IFRTP.html> (1996-09-10)
+
 
 # Germany - year-round base
 # Georg von Neumayer
index 811e569127e14993306b729765dc725dc69e1b14..aa6387997e0a97cf073aabd77dbbd415be56e7fb 100644 (file)
@@ -1,4 +1,4 @@
-# @(#)australasia      7.31
+# @(#)australasia      7.32
 # This file also includes Pacific islands.
 
 # Notes are at the end of this file
@@ -22,6 +22,7 @@ Rule  Aus     1943    only    -       Oct      3      2:00    1:00    -
 # Zone NAME            GMTOFF  RULES   FORMAT  [UNTIL]
 # Northern Territory
 Zone Australia/Darwin   8:43:20 -      LMT     1895 Feb
+                        9:00   -       CST     1899 May
                         9:30   -       CST     1917 Jan 1 0:01
                         9:30   Aus     CST
 # Western Australia
index 1058a840efa279354ec975a83b260190919a4472..e5ed82f1044d0c5ac9436c932817c3fe8d0d5ef4 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef lint
 #ifndef NOID
-static char    elsieid[] = "@(#)zdump.c        7.24";
+static char    elsieid[] = "@(#)zdump.c        7.25";
 #endif /* !defined NOID */
 #endif /* !defined lint */
 
@@ -159,7 +159,7 @@ char *      argv[];
                if (c == 'v')
                        vflag = 1;
                else    cutoff = optarg;
-       if (c != EOF ||
+       if ((c != EOF && c != -1) ||
                (optind == argc - 1 && strcmp(argv[optind], "=") == 0)) {
                        (void) fprintf(stderr,
 _("%s: usage is %s [ -v ] [ -c cutoff ] zonename ...\n"),
index 5a0063ab4b1544a761d6d8edafd486ba83f472eb..9ab3967e98466e6e612f96da5193a8914728c6ee 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef lint
 #ifndef NOID
-static char    elsieid[] = "@(#)zic.c  7.80";
+static char    elsieid[] = "@(#)zic.c  7.81";
 #endif /* !defined NOID */
 #endif /* !defined lint */
 
@@ -476,7 +476,7 @@ char *      argv[];
        (void) textdomain(TZ_DOMAIN);
 #endif /* HAVE_GETTEXT - 0 */
        progname = argv[0];
-       while ((c = getopt(argc, argv, "d:l:p:L:vsy:")) != EOF)
+       while ((c = getopt(argc, argv, "d:l:p:L:vsy:")) != EOF && c != -1)
                switch (c) {
                        default:
                                usage();
index 9d86110ca7aa60ea54348a4ec8a1ba261e392a30..6d91b4ea6c7d9d4b0511d63c6407d35f66077761 100644 (file)
@@ -34,6 +34,7 @@ AQ    -9000+00000     Antarctica/South_Pole   Amundsen-Scott Station, South Pole
 AQ     -6448-06406     Antarctica/Palmer       Palmer Station, Anvers Island
 AQ     -6736+06253     Antarctica/Mawson       Mawson Station, Holme Bay
 AQ     -6617+11031     Antarctica/Casey        Casey Station, Bailey Peninsula
+AQ     -6040+14001     Antarctica/DumontDUrville       Dumont-d'Urville Base, Terre Adelie
 AR     -3436-05827     America/Buenos_Aires    E Argentina (BA, DF, SC, TF)
 AR     -3257-06040     America/Rosario NE Argentina (SF, ER, CN, MN, CC, FM, LP, CH)
 AR     -3124-06411     America/Cordoba W Argentina (CB, SA, TM, LR, SJ, SL, NQ, RN)
@@ -310,6 +311,7 @@ SY  +3330+03618     Asia/Damascus
 SZ     -2618+03106     Africa/Mbabane
 TC     +2128-07108     America/Grand_Turk
 TD     +1207+01503     Africa/Ndjamena
+TF     -492110+0701303 Indian/Kerguelen
 TG     +0608+00113     Africa/Lome
 TH     +1345+10031     Asia/Bangkok
 TJ     +3835+06848     Asia/Dushanbe
index 3ce9ff8d7d17c683b617c9be9d5e47ed42524ef3..3b861215ba662281eeceac9524c405d60359e294 100644 (file)
--- a/version.h
+++ b/version.h
@@ -1,4 +1,4 @@
 /* This file just defines the current version number of libc.  */
 
 #define RELEASE "alpha"
-#define VERSION "1.101"
+#define VERSION "1.102"